{"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nif (!file_exists(__DIR__.'/src')) {\n exit(0);\n}\n\n$fileHeaderParts = [\n <<<'EOF'\n This file is part of the Symfony package.\n\n (c) Fabien Potencier \n\n EOF,\n <<<'EOF'\n\n For the full copyright and license information, please view the LICENSE\n file that was distributed with this source code.\n EOF,\n];\n\nreturn ", "suffix": "| uniq | sort`\n '@PHP8x1Migration:risky' => true,\n '@PHPUnit9x1Migration:risky' => true, // take version from src/Symfony/Bridge/PhpUnit/phpunit.xml.dist#L4\n '@Symfony' => true,\n '@Symfony:risky' => true,\n 'header_comment", "middle": "(new PhpCsFixer\\Config())\n ->setParallelConfig(PhpCsFixer\\Runner\\Parallel\\ParallelConfigFactory::detect())\n ->setRules([\n '@PHP8x1Migration' => true, // take lowest version from `git grep -h '\"php\"' **/composer.json ", "meta": {"filepath": ".php-cs-fixer.dist.php", "language": "php", "file_size": 4998, "cut_index": 614, "middle_length": 229}} {"prefix": " package that have been modified.\n */\n\nif (3 > $_SERVER['argc']) {\n echo \"Usage: app-packages modified-files\\n\";\n exit(1);\n}\n\n$allPackages = json_decode($_SERVER['argv'][1], true, 512, \\JSON_THROW_ON_ERROR);\n$modifiedFiles = json_decode($_SERVER['argv'][2], true, 512, \\JSON_THROW_ON_ERROR);\n\n// Sort to get the longest name first (match bridge not component)\nusort($allPackages, function($a, $b) {\n return strlen($b) <=> strlen($a) ?: $a <=> $b;\n});\n\nfunction getPackageType(string $packageDir): string", "suffix": "geDir) => 'component_bridge',\n str_contains($packageDir, 'Symfony/Component/') => 'component',\n str_contains($packageDir, 'Symfony/Contracts/') => 'contract',\n str_ends_with($packageDir, 'Symfony/Contracts') => 'contracts',\n def", "middle": "\n{\n return match (true) {\n str_contains($packageDir, 'Symfony/Bridge/') => 'bridge',\n str_contains($packageDir, 'Symfony/Bundle/') => 'bundle',\n 1 === preg_match('@Symfony/Component/[^/]+/Bridge/@', $packa", "meta": {"filepath": ".github/get-modified-packages.php", "language": "php", "file_size": 2171, "cut_index": 563, "middle_length": 229}} {"prefix": "SAPI) {\n echo \"This script can only be run from the command line.\\n\";\n exit(1);\n}\n\n$mainRepo = 'https://github.com/symfony/symfony';\nexec('find src -name composer.json', $packages);\n\nforeach ($packages as $package) {\n $package = dirname($package);\n $c = file_get_contents($package.'/.gitattributes');\n $c = preg_replace('{^/\\.git.*+\\n}m', '', $c);\n $c .= \"/.git* export-ignore\\n\";\n file_put_contents($package.'/.gitattributes', $c);\n\n @mkdir($package.'/.github');\n file_put_contents($p", "suffix": "is what we call a \"subtree split\": a read-only subset of that main repository.\n We're looking forward to your PR there!\n\n EOTXT\n );\n\n @mkdir($package.'/.github/workflows');\n file_put_contents($package.'/.github/workflows/close-pull-r", "middle": "ackage.'/.github/PULL_REQUEST_TEMPLATE.md', <<defaultLocale = \\Locale::getDefault();\n \\Locale", "middle": "he mozilla code is also interesting to check for.\n *\n * As mentioned by chx http://drupal.org/node/1273968 we can cover all by testing number from 0 to 199\n *\n * The goal to cover all languages is too far fetched so this test cas", "meta": {"filepath": "src/Symfony/Contracts/Translation/Test/TranslatorTest.php", "language": "php", "file_size": 16689, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Service;\n\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\n\n/**\n * A ServiceSubscriber exposes its dependencies via the static {@link getSubscribedServices} method.\n *\n * The getSubscribedServices method returns an array of service types required by such instances,\n * optionally keyed b", "suffix": " any other services not specified by the method.\n *\n * It is expected that ServiceSubscriber instances consume PSR-11-based service locators internally.\n * This interface does not dictate any injection method for these service locators, although constructo", "middle": "y the service names used internally. Service types that start with an interrogation\n * mark \"?\" are optional, while the other ones are mandatory service dependencies.\n *\n * The injected service locators SHOULD NOT allow access to", "meta": {"filepath": "src/Symfony/Contracts/Service/ServiceSubscriberInterface.php", "language": "php", "file_size": 2750, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Contracts\\HttpClient;\n\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Test\\HttpClientTestCase;\n\n/**\n * Provides flexible methods for requesting HTTP resources synchronously or asynchronously.\n *\n * @see HttpClientTestCase for a reference test suite\n *\n * @author Nicolas Grekas \n */\ninterface HttpClientInterface\n{\n public const OPTIONS_DEFAULTS = [\n // array|string - an array", "suffix": " // string - a token enabling HTTP Bearer authorization (RFC 6750)\n 'auth_bearer' => null,\n // string[] - associative array of query string values to merge with the request's URL\n 'query' => [],\n // iterable|string[]|string[]", "middle": " containing the username as first value, and optionally the\n // password as the second one; or string like username:password - enabling HTTP Basic\n // authentication (RFC 7617)\n 'auth_basic' => null,\n ", "meta": {"filepath": "src/Symfony/Contracts/HttpClient/HttpClientInterface.php", "language": "php", "file_size": 6166, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Tests\\Service;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberTrait;\n\nclass LegacyParentTes", "suffix": " LegacyParentTestService implements ServiceSubscriberInterface\n{\n use ServiceSubscriberTrait;\n\n protected $container;\n\n #[SubscribedService]\n public function aService(): Service2\n {\n return $this->container->get(__METHOD__);\n }\n\n ", "middle": "tService\n{\n public function aParentService(): Service1\n {\n }\n\n public function setContainer(ContainerInterface $container): ?ContainerInterface\n {\n return $container;\n }\n}\n\nclass LegacyTestService extends", "meta": {"filepath": "src/Symfony/Contracts/Tests/Service/LegacyTestService.php", "language": "php", "file_size": 2416, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Tests\\Cache;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Contracts\\Cache\\CacheTrait;\n\n/**\n * @author Tobias Nyholm \n */\nclass CacheTraitTest extends TestCase\n{\n public function testSave()\n {\n $item = $this->createMock(CacheItemInterface:", "suffix": "d data');\n\n $cache = $this->getMockBuilder(TestPool::class)\n ->onlyMethods(['getItem', 'save'])\n ->getMock();\n $cache->expects($this->once())\n ->method('getItem')\n ->with('key')\n ->willRe", "middle": ":class);\n $item->method('set')\n ->willReturn($item);\n $item->method('isHit')\n ->willReturn(false);\n\n $item->expects($this->once())\n ->method('set')\n ->with('compute", "meta": {"filepath": "src/Symfony/Contracts/Tests/Cache/CacheTraitTest.php", "language": "php", "file_size": 3835, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Cache;\n\nuse Psr\\Cache\\InvalidArgumentException;\n\n/**\n * Allows invalidating cached items using tags.\n *\n * @author Nicolas Grekas \n */\ninterface TagAwareCacheInterface extends CacheInterface\n{\n /**\n * Invalidates cached item", "suffix": " * race conditions.\n *\n * @param string[] $tags An array of tags to invalidate\n *\n * @return bool True on success\n *\n * @throws InvalidArgumentException When $tags is not valid\n */\n public function invalidateTags(array $t", "middle": "s using tags.\n *\n * When implemented on a PSR-6 pool, invalidation should not apply\n * to deferred items. Instead, they should be committed as usual.\n * This allows replacing old tagged values by new ones without\n", "meta": {"filepath": "src/Symfony/Contracts/Cache/TagAwareCacheInterface.php", "language": "php", "file_size": 1011, "cut_index": 512, "middle_length": 229}} {"prefix": "معتدل مائل للغامق',\n '👩🏽‍❤‍💋‍👩🏿' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل، وبشرة بلون غامق',\n '👩🏾‍❤‍💋‍👩🏻' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق، وبشرة بلون فاتح',\n '👩🏾‍❤‍💋‍👩🏼' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق، وبشرة بلون فاتح ومعتدل',\n '👩🏾‍❤‍💋‍👩🏽' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق، وبشرة بلون معتدل',\n '👩🏾‍❤‍💋‍👩🏾' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق',\n '👩🏾‍❤‍💋‍👩🏿' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق، وبشرة بلو", "suffix": "ن معتدل',\n '👩🏿‍❤‍💋‍👩🏾' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق، وبشرة بلون معتدل مائل للغامق',\n '👩🏿‍❤‍💋‍👩🏿' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق',\n '🧑🏻‍🫯‍🧑🏼' => 'مصارعون: بشرة بلون فاتح وبشرة بلون فاتح ومعتدل',\n '🧑🏻‍🫯‍🧑🏽' => 'مصارعون: بشرة بلو", "middle": "ن غامق',\n '👩🏿‍❤‍💋‍👩🏻' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق، وبشرة بلون فاتح',\n '👩🏿‍❤‍💋‍👩🏼' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق، وبشرة بلون فاتح ومعتدل',\n '👩🏿‍❤‍💋‍👩🏽' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق، وبشرة بلو", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ar.php", "language": "php", "file_size": 273797, "cut_index": 7068, "middle_length": 229}} {"prefix": " '👨🏿‍🦲' => 'gwaz : krocʼhen teñval, moal',\n '👱🏿‍♀' => 'meleganez : krocʼhen teñval',\n '👩🏿‍🦰' => 'maouez : krocʼhen teñval, blev ruz',\n '👩🏿‍🦱' => 'maouez : krocʼhen teñval, blev rodellek',\n '👩🏿‍🦳' => 'maouez : krocʼhen teñval, blev gwenn',\n '👩🏿‍🦲' => 'maouez : krocʼhen teñval, moal',\n '👨🏿‍🎓' => 'studier : krocʼhen teñval',\n '👩🏿‍🎓' => 'studierez : krocʼhen teñval',\n '👨🏿‍🏫' => 'kelenner : krocʼhen teñval',\n '👩🏿‍🏫' => 'kelennerez : krocʼhen teñval',\n '👨🏿‍⚖' => 'barner : krocʼhen te", "suffix": "en teñval',\n '👨🏿‍🏭' => 'micherour : krocʼhen teñval',\n '👩🏿‍🏭' => 'micherourez : krocʼhen teñval',\n '👨🏿‍💼' => 'implijad : krocʼhen teñval',\n '👩🏿‍💼' => 'implijadez : krocʼhen teñval',\n '👨🏿‍🔬' => 'skiantour : krocʼhen teñval',\n '👩🏿‍🔬' => 'sk", "middle": "ñval',\n '👩🏿‍⚖' => 'barnerez : krocʼhen teñval',\n '👨🏿‍🌾' => 'labourer-douar : krocʼhen teñval',\n '👩🏿‍🌾' => 'labourerez-douar : krocʼhen teñval',\n '👨🏿‍🍳' => 'keginer : krocʼhen teñval',\n '👩🏿‍🍳' => 'keginerez : krocʼh", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-br.php", "language": "php", "file_size": 47485, "cut_index": 2151, "middle_length": 229}} {"prefix": "farbe',\n '👩🏿‍❤‍💋‍👨🏾' => 'sich küssendes Paar: Frau, Mann, dunkle Hautfarbe und mitteldunkle Hautfarbe',\n '👩🏿‍❤‍💋‍👨🏿' => 'sich küssendes Paar: Frau, Mann und dunkle Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏻' => 'sich küssendes Paar: Frau, Frau und helle Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏼' => 'sich küssendes Paar: Frau, Frau, helle Hautfarbe und mittelhelle Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏽' => 'sich küssendes Paar: Frau, Frau, helle Hautfarbe und mittlere Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏾' => 'sich küssendes Paar: Frau, Frau, helle Hautfa", "suffix": "‍❤‍💋‍👩🏼' => 'sich küssendes Paar: Frau, Frau und mittelhelle Hautfarbe',\n '👩🏼‍❤‍💋‍👩🏽' => 'sich küssendes Paar: Frau, Frau, mittelhelle Hautfarbe und mittlere Hautfarbe',\n '👩🏼‍❤‍💋‍👩🏾' => 'sich küssendes Paar: Frau, Frau, mittelhelle Hautfarbe und mitt", "middle": "rbe und mitteldunkle Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏿' => 'sich küssendes Paar: Frau, Frau, helle Hautfarbe und dunkle Hautfarbe',\n '👩🏼‍❤‍💋‍👩🏻' => 'sich küssendes Paar: Frau, Frau, mittelhelle Hautfarbe und helle Hautfarbe',\n '👩🏼", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-de.php", "language": "php", "file_size": 212737, "cut_index": 7068, "middle_length": 229}} {"prefix": "ns): array\n{\n array_reduce($versions, function ($carry, $version) use (&$expandedVersions) {\n return $expandedVersions[] = array_filter(array_merge($carry, $version), fn ($v) => '__unset' !== $v);\n }, []);\n\n return $expandedVersions ?? [];\n}\n\nif (3 > $_SERVER['argc']) {\n echo \"Usage: branch version dir1 dir2 ... dirN\\n\";\n exit(1);\n}\nchdir(dirname(__DIR__));\n\n$dirs = $_SERVER['argv'];\narray_shift($dirs);\n$mergeBase = trim(shell_exec(sprintf('git merge-base \"%s\" HEAD', array_shift($dirs)", "suffix": "]['preferred-install'];\n\nforeach ($dirs as $k => $dir) {\n if (!system(\"git diff --name-only $mergeBase -- $dir\", $exitStatus)) {\n if ($exitStatus) {\n exit($exitStatus);\n }\n unset($dirs[$k]);\n continue;\n }\n ec", "middle": ")));\n$version = array_shift($dirs);\n\n$packages = [];\n$flags = JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;\n$preferredInstall = json_decode(file_get_contents(__DIR__.'/composer-config.json'), true)['config'", "meta": {"filepath": ".github/build-packages.php", "language": "php", "file_size": 3437, "cut_index": 614, "middle_length": 229}} {"prefix": "ONS env var when running this script.\\n\";\n exit(1);\n}\n\nrequire __DIR__.'/../.phpunit/phpunit/vendor/autoload.php';\n\n$loader = require __DIR__.'/../vendor/autoload.php';\n\nSymfony\\Component\\ErrorHandler\\DebugClassLoader::enable();\n\n$missingReturnTypes = [];\nforeach ($loader->getClassMap() as $class => $file) {\n $file = realpath($file);\n\n switch (true) {\n case false !== strpos($file, '/src/Symfony/Component/Cache/Traits/Redis'):\n case false !== strpos($file, '/src/Symfony/Component/Cache", "suffix": "ony/Bridge/Doctrine/Middleware/Debug/'):\n case false !== strpos($file, '/src/Symfony/Bridge/Doctrine/Tests/Fixtures/LegacyQueryMock.php'):\n case false !== strpos($file, '/src/Symfony/Bridge/PhpUnit/'):\n case false !== strpos($file, '/s", "middle": "/Traits/Relay'):\n if (!str_ends_with($file, 'Proxy.php')) {\n break;\n }\n continue 2;\n case false !== strpos($file, '/vendor/'):\n case false !== strpos($file, '/src/Symf", "meta": {"filepath": ".github/patch-types.php", "language": "php", "file_size": 5730, "cut_index": 716, "middle_length": 229}} {"prefix": "ubmitted as a PR on the lowest maintained branch,\n// possibly after using GPT to translate all the targets it contains\n// (state=\"needs-review-translation\" should then be used on corresponding target tags.)\n\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Translation\\Loader\\XliffFileLoader;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nrequire __DIR__.'/../vendor/autoload.php';\n\nfunction dumpXliff1(string $defaultLocale, MessageCatalogue $messages, string $domain, ?\\DOMElement $header = nu", "suffix": "asis:names:tc:xliff:document:1.2');\n\n $xliffFile = $xliff->appendChild($dom->createElement('file'));\n $xliffFile->setAttribute('source-language', str_replace('_', '-', $defaultLocale));\n $xliffFile->setAttribute('target-language', 'no' === $messag", "middle": "ll)\n{\n $dom = new \\DOMDocument('1.0', 'utf-8');\n $dom->formatOutput = true;\n\n $xliff = $dom->appendChild($dom->createElement('xliff'));\n $xliff->setAttribute('version', '1.2');\n $xliff->setAttribute('xmlns', 'urn:o", "meta": {"filepath": ".github/sync-translations.php", "language": "php", "file_size": 5383, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Contracts\\Translation;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\n\n/**\n * A trait to help implement TranslatorInterface and LocaleAwareInterface.\n *\n * @author Fabien Potencier \n */\ntrait TranslatorTrait\n{\n private ?string $locale = null;\n\n /**\n * @return void\n */\n public function setLocale(string $locale)\n {\n $this->locale = $locale;\n }\n\n public function getLocale(): string\n ", "suffix": " {\n if (null === $id || '' === $id) {\n return '';\n }\n\n foreach ($parameters as $k => $v) {\n if ($v instanceof TranslatableInterface) {\n $parameters[$k] = $v->trans($this, $locale);\n }\n ", "middle": " {\n return $this->locale ?: (class_exists(\\Locale::class) ? \\Locale::getDefault() : 'en');\n }\n\n public function trans(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string\n ", "meta": {"filepath": "src/Symfony/Contracts/Translation/TranslatorTrait.php", "language": "php", "file_size": 7986, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Translation;\n\n/**\n * @author Fabien Potencier \n */\ninterface TranslatorInterface\n{\n /**\n * Translates the given message.\n *\n * When a number is provided as a parameter named \"%count%\", the message is parsed for plural\n * forms and a translation is chosen acc", "suffix": "mber, locale and the pluralization rules in the message\n * itself.\n *\n * The message supports two different types of pluralization rules:\n *\n * interval: {0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples\n ", "middle": "ording to this number using the following rules:\n *\n * Given a message with different plural translations separated by a\n * pipe (|), this method returns the correct portion of the message based\n * on the given nu", "meta": {"filepath": "src/Symfony/Contracts/Translation/TranslatorInterface.php", "language": "php", "file_size": 2562, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Service;\n\n/**\n * Provides a way to reset an object to its initial state.\n *\n * When calling the \"reset()\" method on an object, it should be put back to its\n * initial state. This usually means clearing any internal buffers and forwarding\n * the ca", "suffix": "ces, so that they can be used to handle several requests in the same\n * process loop (note that we advise making your services stateless instead of\n * implementing this interface when possible.)\n */\ninterface ResetInterface\n{\n /**\n * @return void\n ", "middle": "ll to internal dependencies. All properties of the object should be put\n * back to the same state it had when it was first ready to use.\n *\n * This method could be called, for example, to recycle objects that are used as\n * servi", "meta": {"filepath": "src/Symfony/Contracts/Service/ResetInterface.php", "language": "php", "file_size": 1035, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Service;\n\nuse Psr\\Container\\ContainerExceptionInterface;\nuse Psr\\Container\\NotFoundExceptionInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(ContainerExceptionInterface::class);\nclass_exists(NotFoundExceptionInterface::class);\n\n/**\n * A trait to help implement ServiceProviderInterface.\n *\n * @author Robin Chalas factories[$id]);\n }\n\n public function get(string $id): mixed\n {\n if (!isset($this-", "middle": "bin.chalas@gmail.com>\n * @author Nicolas Grekas \n */\ntrait ServiceLocatorTrait\n{\n private array $loading = [];\n private array $providedTypes;\n\n /**\n * @param array $factories\n */\n", "meta": {"filepath": "src/Symfony/Contracts/Service/ServiceLocatorTrait.php", "language": "php", "file_size": 3604, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Service;\n\nuse Psr\\Container\\ContainerInterface;\n\n/**\n * A ServiceProviderInterface exposes the identifiers and the types of services provided by a container.\n *\n * @author Nicolas Grekas \n * @author Mateusz Sip \n *\n * @t", "suffix": " * Returns an associative array of service types keyed by the identifiers provided by the current container.\n *\n * Examples:\n *\n * * ['logger' => 'Psr\\Log\\LoggerInterface'] means the object provides a service named \"logger\" that implemen", "middle": "emplate-covariant T of mixed\n */\ninterface ServiceProviderInterface extends ContainerInterface\n{\n /**\n * @return T\n */\n public function get(string $id): mixed;\n\n public function has(string $id): bool;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Contracts/Service/ServiceProviderInterface.php", "language": "php", "file_size": 1382, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Service;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\n\n/**\n * Implementation of ServiceSubscriberInterface that determines subscribed services\n * from methods that have the #[SubscribedService] attribute.\n *\n * Service ids are available as \"Clas", "suffix": "d ContainerInterface $container;\n\n public static function getSubscribedServices(): array\n {\n $services = method_exists(get_parent_class(self::class) ?: '', __FUNCTION__) ? parent::getSubscribedServices() : [];\n\n $reflectors = [\n ", "middle": "sName::methodName\" so that the implementation\n * of subscriber methods can be just `return $this->container->get(__METHOD__);`.\n *\n * @author Kevin Bond \n */\ntrait ServiceMethodsSubscriberTrait\n{\n protecte", "meta": {"filepath": "src/Symfony/Contracts/Service/ServiceMethodsSubscriberTrait.php", "language": "php", "file_size": 4173, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Service\\Attribute;\n\nuse Symfony\\Contracts\\Service\\ServiceMethodsSubscriberTrait;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\n/**\n * For use as the return value for {@see ServiceSubscriberInterface}.\n *\n * @example new SubscribedService('http_client', HttpC", "suffix": "(\\Attribute::TARGET_METHOD | \\Attribute::TARGET_PROPERTY)]\nfinal class SubscribedService\n{\n /** @var object[] */\n public array $attributes;\n\n /**\n * @param string|null $key The key to use for the service\n * @param string|null ", "middle": "lientInterface::class, false, new Target('githubApi'))\n *\n * Use with {@see ServiceMethodsSubscriberTrait} to mark a method's return type\n * as a subscribed service.\n *\n * @author Kevin Bond \n */\n#[\\Attribute", "meta": {"filepath": "src/Symfony/Contracts/Service/Attribute/SubscribedService.php", "language": "php", "file_size": 1553, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Service\\Test;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerExceptionInterface;\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\Container\\NotFoundExceptionInterface;\nuse Symfony\\Contracts\\Service\\ServiceLocatorTrait;\n\nabstract class ServiceLocatorTestCase extends TestCase\n{\n /**\n ", "suffix": "iceLocatorTrait;\n };\n }\n\n public function testHas()\n {\n $locator = $this->getServiceLocator([\n 'foo' => static fn () => 'bar',\n 'bar' => static fn () => 'baz',\n static fn () => 'dummy',\n ]);\n\n ", "middle": " * @param array $factories\n */\n protected function getServiceLocator(array $factories): ContainerInterface\n {\n return new class($factories) implements ContainerInterface {\n use Serv", "meta": {"filepath": "src/Symfony/Contracts/Service/Test/ServiceLocatorTestCase.php", "language": "php", "file_size": 2992, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\HttpClient;\n\nuse Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\RedirectionExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ServerExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\Transport", "suffix": "ortExceptionInterface when a network error occurs\n */\n public function getStatusCode(): int;\n\n /**\n * Gets the HTTP headers of the response.\n *\n * @param bool $throw Whether an exception should be thrown on 3/4/5xx status codes\n *", "middle": "ExceptionInterface;\n\n/**\n * A (lazily retrieved) HTTP response.\n *\n * @author Nicolas Grekas \n */\ninterface ResponseInterface\n{\n /**\n * Gets the HTTP status code of the response.\n *\n * @throws Transp", "meta": {"filepath": "src/Symfony/Contracts/HttpClient/ResponseInterface.php", "language": "php", "file_size": 4819, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\HttpClient;\n\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\n\n/**\n * The interface of chunks returned by ResponseStreamInterface::current().\n *\n * When the chunk is first, last or timeout, the content MUST be empty.\n * When an unchecked timeout or a network error occurs, a", "suffix": "out has been reached.\n *\n * @throws TransportExceptionInterface on a network error\n */\n public function isTimeout(): bool;\n\n /**\n * Tells when headers just arrived.\n *\n * @throws TransportExceptionInterface on a network error ", "middle": " TransportExceptionInterface\n * MUST be thrown by the destructor unless one was already thrown by another method.\n *\n * @author Nicolas Grekas \n */\ninterface ChunkInterface\n{\n /**\n * Tells when the idle time", "meta": {"filepath": "src/Symfony/Contracts/HttpClient/ChunkInterface.php", "language": "php", "file_size": 2048, "cut_index": 563, "middle_length": 229}} {"prefix": "is->assertSame([], $response->getInfo('response_headers'));\n $this->assertSame($data, $response->getInfo()['user_data']);\n $this->assertSame(200, $response->getStatusCode());\n\n $info = $response->getInfo();\n $this->assertNull($info['error']);\n $this->assertSame(0, $info['redirect_count']);\n $this->assertSame('HTTP/1.1 200 OK', $info['response_headers'][0]);\n $this->assertSame('Host: localhost:8057', $info['response_headers'][1]);\n $this->assertSame('ht", "suffix": " $body = json_decode($response->getContent(), true);\n $this->assertSame($body, $response->toArray());\n\n $this->assertSame('HTTP/1.1', $body['SERVER_PROTOCOL']);\n $this->assertSame('/', $body['REQUEST_URI']);\n $this->assertSa", "middle": "tp://localhost:8057/', $info['url']);\n\n $headers = $response->getHeaders();\n\n $this->assertSame('localhost:8057', $headers['host'][0]);\n $this->assertSame(['application/json'], $headers['content-type']);\n\n ", "meta": {"filepath": "src/Symfony/Contracts/HttpClient/Test/HttpClientTestCase.php", "language": "php", "file_size": 40871, "cut_index": 2151, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\HttpClient\\Test;\n\nuse Symfony\\Component\\Process\\PhpExecutableFinder;\nuse Symfony\\Component\\Process\\Process;\n\nclass TestHttpServer\n{\n private static array $process = [];\n\n /**\n * @param string|null $workingDirectory\n */\n public static function start(int $", "suffix": " } else {\n $ip = '127.0.0.1';\n }\n\n if (isset(self::$process[$port])) {\n self::$process[$port]->stop();\n } else {\n register_shutdown_function(static function () use ($port) {\n self::$pr", "middle": "port = 8057/* , ?string $workingDirectory = null */): Process\n {\n $workingDirectory = \\func_get_args()[1] ?? __DIR__.'/Fixtures/web';\n\n if (0 > $port) {\n $port = -$port;\n $ip = '[::1]';\n ", "meta": {"filepath": "src/Symfony/Contracts/HttpClient/Test/TestHttpServer.php", "language": "php", "file_size": 1755, "cut_index": 537, "middle_length": 229}} {"prefix": "f (!$_POST) {\n $_POST = json_decode(file_get_contents('php://input'), true);\n $_POST['content-type'] = $_SERVER['HTTP_CONTENT_TYPE'] ?? '?';\n}\n\n$headers = [\n 'SERVER_PROTOCOL',\n 'SERVER_NAME',\n 'REQUEST_URI',\n 'REQUEST_METHOD',\n 'PHP_AUTH_USER',\n 'PHP_AUTH_PW',\n 'REMOTE_ADDR',\n 'REMOTE_PORT',\n];\n\nforeach ($headers as $k) {\n if (isset($_SERVER[$k])) {\n $vars[$k] = $_SERVER[$k];\n }\n}\n\nforeach ($_SERVER as $k => $v) {\n if (str_starts_with($k, 'HTTP_')) {\n $v", "suffix": " header('X-Request-Vars: '.json_encode($vars, \\JSON_UNESCAPED_SLASHES | \\JSON_UNESCAPED_UNICODE));\n header('Content-Length: '.strlen($json), true);\n break;\n\n case '/':\n case '/?a=a&b=b':\n case 'http://127.0.0.1:8057/':\n case", "middle": "ars[$k] = $v;\n }\n}\n\n$json = json_encode($vars, \\JSON_PRETTY_PRINT | \\JSON_UNESCAPED_SLASHES | \\JSON_UNESCAPED_UNICODE);\n\nswitch (parse_url($vars['REQUEST_URI'], \\PHP_URL_PATH)) {\n default:\n exit;\n\n case '/head':\n ", "meta": {"filepath": "src/Symfony/Contracts/HttpClient/Test/Fixtures/web/index.php", "language": "php", "file_size": 5622, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Contracts\\Tests\\Service;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhp;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\nuse Symfony\\Contracts\\Service\\ServiceLocatorTrait;\nuse Symfony\\Contracts\\Service\\ServiceMethodsSubscriberTrait;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\nuse Symfony\\Contracts\\Tests\\Service\\Fix", "suffix": "\n\nclass ServiceMethodsSubscriberTraitTest extends TestCase\n{\n public function testMethodsOnParentsAndChildrenAreIgnoredInGetSubscribedServices()\n {\n $expected = [\n TestService::class.'::aService' => Service2::class,\n Test", "middle": "tures\\HookedPropertyService;\nuse Symfony\\Contracts\\Tests\\Service\\Fixtures\\MyDependency;\nuse Symfony\\Contracts\\Tests\\Service\\Fixtures\\NonHookedPropertyService;\nuse Symfony\\Contracts\\Tests\\Service\\Fixtures\\WriteOnlyPropertyService;", "meta": {"filepath": "src/Symfony/Contracts/Tests/Service/ServiceMethodsSubscriberTraitTest.php", "language": "php", "file_size": 6953, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Tests\\Service\\Fixtures;\n\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\nuse Symfony\\Contracts\\Service\\ServiceMethodsSubscriberTrait;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\nfinal class HookedPropertyService implements ServiceSu", "suffix": "cy $myNullableDependency {\n get => $this->container->has(__METHOD__) ? $this->container->get(__METHOD__) : null;\n }\n\n #[SubscribedService(nullable: true)]\n public MyDependency $myTentativeDependency {\n get => $this->container->has(__", "middle": "bscriberInterface\n{\n use ServiceMethodsSubscriberTrait;\n\n #[SubscribedService]\n public MyDependency $myDependency {\n get => $this->container->get(__METHOD__);\n }\n\n #[SubscribedService]\n public ?MyDependen", "meta": {"filepath": "src/Symfony/Contracts/Tests/Service/Fixtures/HookedPropertyService.php", "language": "php", "file_size": 1444, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Service;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\n\ntrigger_deprecation('symfony/contracts', 'v3.5', '\"%s\" is deprecated, use \"ServiceMethodsSubscriberTrait\" instead.', ServiceSubscriberTrait::class);\n\n/**\n * Implementation of ServiceSubscrib", "suffix": "ust `return $this->container->get(__METHOD__);`.\n *\n * @property ContainerInterface $container\n *\n * @author Kevin Bond \n *\n * @deprecated since symfony/contracts v3.5, use ServiceMethodsSubscriberTrait instead\n */\ntrait ServiceSubscri", "middle": "erInterface that determines subscribed services\n * from methods that have the #[SubscribedService] attribute.\n *\n * Service ids are available as \"ClassName::methodName\" so that the implementation\n * of subscriber methods can be j", "meta": {"filepath": "src/Symfony/Contracts/Service/ServiceSubscriberTrait.php", "language": "php", "file_size": 3233, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Tests\\Service;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\nuse Symfony\\Contracts\\Service\\ServiceLocatorTrait;\nuse Symfo", "suffix": "BeforeClass(): void\n {\n class_exists(LegacyTestService::class);\n }\n\n public function testMethodsOnParentsAndChildrenAreIgnoredInGetSubscribedServices()\n {\n $expected = [\n LegacyTestService::class.'::aService' => Service", "middle": "ny\\Contracts\\Service\\ServiceSubscriberInterface;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberTrait;\n\n#[IgnoreDeprecations]\n#[Group('legacy')]\nclass ServiceSubscriberTraitTest extends TestCase\n{\n public static function setUp", "meta": {"filepath": "src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php", "language": "php", "file_size": 3204, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Cache;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Psr\\Cache\\InvalidArgumentException;\nuse Psr\\Log\\LoggerInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(InvalidArgumentException::class);\n\n/**\n * An implementation of CacheInterface for PSR-6 CacheItemPoolInterface cl", "suffix": "ey, $callback, $beta, $metadata);\n }\n\n public function delete(string $key): bool\n {\n return $this->deleteItem($key);\n }\n\n /**\n * @param-immediately-invoked-callable $callback\n */\n private function doGet(CacheItemPoolInterfa", "middle": "asses.\n *\n * @author Nicolas Grekas \n */\ntrait CacheTrait\n{\n public function get(string $key, callable $callback, ?float $beta = null, ?array &$metadata = null): mixed\n {\n return $this->doGet($this, $k", "meta": {"filepath": "src/Symfony/Contracts/Cache/CacheTrait.php", "language": "php", "file_size": 2542, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Cache;\n\nuse Psr\\Cache\\CacheException;\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\InvalidArgumentException;\n\n/**\n * Augments PSR-6's CacheItemInterface with support for tags and metadata.\n *\n * @author Nicolas Grekas \n */\ninterface ItemInterface extend", "suffix": "seconds.\n */\n public const METADATA_CTIME = 'ctime';\n\n /**\n * References the list of tags that were assigned to the item, as string[].\n */\n public const METADATA_TAGS = 'tags';\n\n /**\n * Reserved characters that cannot be used in", "middle": "s CacheItemInterface\n{\n /**\n * References the Unix timestamp stating when the item will expire.\n */\n public const METADATA_EXPIRY = 'expiry';\n\n /**\n * References the time the item took to be created, in milli", "meta": {"filepath": "src/Symfony/Contracts/Cache/ItemInterface.php", "language": "php", "file_size": 1790, "cut_index": 537, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Cache;\n\nuse Psr\\Cache\\InvalidArgumentException;\n\n/**\n * Enables namespace-based invalidation by prefixing keys with backend-native namespace separators.\n *\n * Note that calling `withSubNamespace()` MUST NOT mutate the pool, but return a new instance instead.\n *\n * When tags are used, they MUS", "suffix": "s \n */\ninterface NamespacedPoolInterface\n{\n /**\n * @throws InvalidArgumentException If the namespace contains characters found in ItemInterface's RESERVED_CHARACTERS\n */\n public function withSubNamespace(string $namespace): sta", "middle": "T ignore sub-namespaces.\n *\n * @author Nicolas Greka", "meta": {"filepath": "src/Symfony/Contracts/Cache/NamespacedPoolInterface.php", "language": "php", "file_size": 874, "cut_index": 559, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Cache;\n\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\InvalidArgumentException;\n\n/**\n * Covers most simple to advanced caching needs.\n *\n * @author Nicolas Grekas \n */\ninterface CacheInterface\n{\n /**\n * Fetches a value from the pool or computes it if not found.\n *\n ", "suffix": "ntrol. It could also\n * be an ItemInterface instance when its additional features are needed.\n *\n * @template T\n *\n * @param string $key The key of the item to retrieve from the cache\n * @param (callable(CacheItemInterface,bool):T)|", "middle": " * On cache misses, a callback is called that should return the missing value.\n * This callback is given a PSR-6 CacheItemInterface instance corresponding to the\n * requested key, that could be used e.g. for expiration co", "meta": {"filepath": "src/Symfony/Contracts/Cache/CacheInterface.php", "language": "php", "file_size": 2310, "cut_index": 563, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\Cache;\n\nuse Psr\\Cache\\CacheItemInterface;\n\n/**\n * Computes and returns the cached value of an item.\n *\n * @author Nicolas Grekas \n *\n * @template T\n */\ninterface CallbackInterface\n{\n /**\n * @param CacheItemInterface|ItemInterface $item", "suffix": "ol &$save Should be set to false when the value should not be saved in the pool\n *\n * @return T The computed value for the passed item\n */\n public function __invoke(CacheItemInterface $item, bool &$save): mixed;\n}", "middle": " The item to compute the value for\n * @param bo", "meta": {"filepath": "src/Symfony/Contracts/Cache/CallbackInterface.php", "language": "php", "file_size": 832, "cut_index": 523, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nif (!function_exists('trigger_deprecation')) {\n /**\n * Triggers a silenced deprecation notice.\n *\n * @param string $package The name of the Composer package that is triggering the deprecation\n * @param string $version The version of the package that intro", "suffix": "*/\n function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void\n {\n @trigger_error(($package || $version ? \"Since $package $version: \" : '').($args ? vsprintf($message, $args) : $message), \\E_USER_DEPR", "middle": "duced the deprecation\n * @param string $message The message of the deprecation\n * @param mixed ...$args Values to insert in the message using printf() formatting\n *\n * @author Nicolas Grekas \n ", "meta": {"filepath": "src/Symfony/Contracts/Deprecation/function.php", "language": "php", "file_size": 1014, "cut_index": 512, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\EventDispatcher;\n\nuse Psr\\EventDispatcher\\StoppableEventInterface;\n\n/**\n * Event is the base class for classes containing event data.\n *\n * This class contains no event data. It is used by events that do not pass\n * state information to an event handler when", "suffix": "nwage@gmail.com>\n * @author Roman Borschel \n * @author Bernhard Schussek \n * @author Nicolas Grekas \n */\nclass Event implements StoppableEventInterface\n{\n private bool $propagationStopped = fal", "middle": " an event is raised.\n *\n * You can call the method stopPropagation() to abort the execution of\n * further listeners in your event listener.\n *\n * @author Guilherme Blanco \n * @author Jonathan Wage \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Emoji\\Util;\n\n/**\n * @internal\n */\nclass GzipStreamWrapper\n{\n /** @var resource|null */\n public $context;\n\n /** @var resource */\n private $handle;\n private string $path;\n\n public static function require(string $path): array\n {\n if (!\\extension_loaded('zlib')) {\n ", "suffix": "cache_is_script_cached') || !@opcache_is_script_cached($path)) {\n stream_wrapper_unregister('file');\n stream_wrapper_register('file', self::class);\n }\n\n return require $path;\n }\n\n public function stream_open(string", "middle": " throw new \\LogicException(\\sprintf('The \"zlib\" extension is required to load the \"%s/%s\" map, please enable it in your php.ini file.', basename(\\dirname($path)), basename($path)));\n }\n\n if (!\\function_exists('op", "meta": {"filepath": "src/Symfony/Component/Emoji/Util/GzipStreamWrapper.php", "language": "php", "file_size": 2226, "cut_index": 563, "middle_length": 229}} {"prefix": "ani a εda so, ne wedeε ani a εda hᴐ kakra',\n '👩🏻‍❤‍💋‍👩🏾' => 'Mfeano: maame, maame, wedeε ani a εda so, ne wedeε ani tuntum kakra',\n '👩🏻‍❤‍💋‍👩🏿' => 'Mfeano: maame, maame, wedeε ani a εda so, ne wedeε ani tuntum',\n '👩🏼‍❤‍💋‍👩🏻' => 'Mfeano: maame, maame, wedeε ani a εda so kakra, ne wedeε ani a εda so',\n '👩🏼‍❤‍💋‍👩🏼' => 'Mfeano: maame, maame, ne wedeε ani a εda so kakra',\n '👩🏼‍❤‍💋‍👩🏽' => 'Mfeano: maame, maame, wedeε ani a εda so kakra, ne wedeε ani a εda hᴐ kakra',\n '👩🏼‍❤‍💋‍👩🏾' => 'Mfeano: maam", "suffix": "ε ani a εda so',\n '👩🏽‍❤‍💋‍👩🏼' => 'Mfeano: maame, maame, wedeε ani a εda hᴐ kakra, ne wedeε ani a εda so kakra',\n '👩🏽‍❤‍💋‍👩🏽' => 'Mfeano: maame, maame, ne wedeε ani a εda hᴐ kakra',\n '👩🏽‍❤‍💋‍👩🏾' => 'Mfeano: maame, maame, wedeε ani a εda hᴐ kakra, n", "middle": "e, maame, wedeε ani a εda so kakra, ne wedeε ani tuntum kakra',\n '👩🏼‍❤‍💋‍👩🏿' => 'Mfeano: maame, maame, wedeε ani a εda so kakra, ne wedeε ani tuntum',\n '👩🏽‍❤‍💋‍👩🏻' => 'Mfeano: maame, maame, wedeε ani a εda hᴐ kakra, ne wede", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ak.php", "language": "php", "file_size": 214618, "cut_index": 7068, "middle_length": 229}} {"prefix": "ትግል: የቆዳ ዓይነት-4 እና መሃከለኛ ቀላ ያለ የቆዳ ቀለም',\n '🧑🏽‍🫯‍🧑🏾' => 'ነጻ ትግል: የቆዳ ዓይነት-4 እና የቆዳ ዓይነት-5',\n '🧑🏽‍🫯‍🧑🏿' => 'ነጻ ትግል: የቆዳ ዓይነት-4 እና የቆዳ ዓይነት-6',\n '🧑🏾‍🫯‍🧑🏻' => 'ነጻ ትግል: የቆዳ ዓይነት-5 እና የቆዳ ዓይነት-1-2',\n '🧑🏾‍🫯‍🧑🏼' => 'ነጻ ትግል: የቆዳ ዓይነት-5 እና መሃከለኛ ቀላ ያለ የቆዳ ቀለም',\n '🧑🏾‍🫯‍🧑🏽' => 'ነጻ ትግል: የቆዳ ዓይነት-5 እና የቆዳ ዓይነት-4',\n '🧑🏾‍🫯‍🧑🏿' => 'ነጻ ትግል: የቆዳ ዓይነት-5 እና የቆዳ ዓይነት-6',\n '🧑🏿‍🫯‍🧑🏻' => 'ነጻ ትግል: የቆዳ ዓይነት-6 እና የቆዳ ዓይነት-1-2',\n '🧑🏿‍🫯‍🧑🏼' => 'ነጻ ትግል: የቆዳ ዓይነት-6 እና መሃከለኛ ቀላ ያለ የቆዳ ቀለም',\n '🧑🏿‍🫯‍🧑🏽' => 'ነጻ ትግል:", "suffix": " እና የቆዳ ዓይነት-4',\n '🧑🏻‍❤‍🧑🏾' => 'ልብ በመሃላቸው ያሉ ጥንዶች: ጎልማሳ፣ ጎልማሳ፣ የቆዳ ዓይነት-1-2 እና የቆዳ ዓይነት-5',\n '🧑🏻‍❤‍🧑🏿' => 'ልብ በመሃላቸው ያሉ ጥንዶች: ጎልማሳ፣ ጎልማሳ፣ የቆዳ ዓይነት-1-2 እና የቆዳ ዓይነት-6',\n '🧑🏼‍❤‍🧑🏻' => 'ልብ በመሃላቸው ያሉ ጥንዶች: ጎልማሳ፣ ጎልማሳ፣ መሃከለኛ ቀላ ያለ የቆዳ ቀለም እና የቆዳ ዓይነት-1-", "middle": " የቆዳ ዓይነት-6 እና የቆዳ ዓይነት-4',\n '🧑🏿‍🫯‍🧑🏾' => 'ነጻ ትግል: የቆዳ ዓይነት-6 እና የቆዳ ዓይነት-5',\n '🧑🏻‍❤‍🧑🏼' => 'ልብ በመሃላቸው ያሉ ጥንዶች: ጎልማሳ፣ ጎልማሳ፣ የቆዳ ዓይነት-1-2 እና መሃከለኛ ቀላ ያለ የቆዳ ቀለም',\n '🧑🏻‍❤‍🧑🏽' => 'ልብ በመሃላቸው ያሉ ጥንዶች: ጎልማሳ፣ ጎልማሳ፣ የቆዳ ዓይነት-1-2", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-am.php", "language": "php", "file_size": 278692, "cut_index": 7068, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Contracts\\EventDispatcher;\n\nuse Psr\\EventDispatcher\\EventDispatcherInterface as PsrEventDispatcherInterface;\n\n/**\n * Allows providing hooks on domain-specific lifecycles by dispatching events.\n */\ninterface EventDispatcherInterface extends PsrEventDispatche", "suffix": "ull $eventName The name of the event to dispatch. If not supplied,\n * the class of $event should be used instead.\n *\n * @return T The passed $event MUST be returned\n */\n public function dispatch(object $even", "middle": "rInterface\n{\n /**\n * Dispatches an event to all registered listeners.\n *\n * @template T of object\n *\n * @param T $event The event to pass to the event handlers/listeners\n * @param string|n", "meta": {"filepath": "src/Symfony/Contracts/EventDispatcher/EventDispatcherInterface.php", "language": "php", "file_size": 1039, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Emoji;\n\nuse Symfony\\Component\\Emoji\\Util\\GzipStreamWrapper;\n\nif (!class_exists(\\Transliterator::class)) {\n throw new \\LogicException(\\sprintf('You cannot use the \"%s\\EmojiTransliterator\" class as the \"intl\" extension is not installed. See https://php.net/intl.', __NAMESPACE__));\n}\n\nfinal class EmojiTransliterator extends \\Transliterator\n{\n ", "suffix": "text' => 'text-emoji',\n 'github-emoji' => 'emoji-github',\n 'gitlab-emoji' => 'emoji-gitlab',\n 'slack-emoji' => 'emoji-slack',\n 'text-emoji' => 'emoji-text',\n ];\n\n public readonly string $id;\n\n private array $map;\n\n p", "middle": "private const QUICK_CHECK = \"\\xA9\\xAE\\xE2\\xE3\\xF0\";\n private const REVERSEABLE_IDS = [\n 'emoji-github' => 'github-emoji',\n 'emoji-gitlab' => 'gitlab-emoji',\n 'emoji-slack' => 'slack-emoji',\n 'emoji-", "meta": {"filepath": "src/Symfony/Component/Emoji/EmojiTransliterator.php", "language": "php", "file_size": 4960, "cut_index": 614, "middle_length": 229}} {"prefix": "n: vrou, vrou, medium-donker velkleur, ligte velkleur',\n '👩🏾‍❤‍💋‍👩🏼' => 'soen: vrou, vrou, medium-donker velkleur, medium-ligte velkleur',\n '👩🏾‍❤‍💋‍👩🏽' => 'soen: vrou, vrou, medium-donker velkleur, medium velkleur',\n '👩🏾‍❤‍💋‍👩🏾' => 'soen: vrou, vrou, medium-donker velkleur',\n '👩🏾‍❤‍💋‍👩🏿' => 'soen: vrou, vrou, medium-donker velkleur, donker velkleur',\n '👩🏿‍❤‍💋‍👩🏻' => 'soen: vrou, vrou, donker velkleur, ligte velkleur',\n '👩🏿‍❤‍💋‍👩🏼' => 'soen: vrou, vrou, donker velkleur, medium-ligte velkleu", "suffix": " 'stoeiers: ligte velkleur, medium-ligte velkleur',\n '🧑🏻‍🫯‍🧑🏽' => 'stoeiers: ligte velkleur, medium velkleur',\n '🧑🏻‍🫯‍🧑🏾' => 'stoeiers: ligte velkleur, medium-donker velkleur',\n '🧑🏻‍🫯‍🧑🏿' => 'stoeiers: ligte velkleur, donker velkleur',\n '🧑🏼‍🫯‍🧑", "middle": "r',\n '👩🏿‍❤‍💋‍👩🏽' => 'soen: vrou, vrou, donker velkleur, medium velkleur',\n '👩🏿‍❤‍💋‍👩🏾' => 'soen: vrou, vrou, donker velkleur, medium-donker velkleur',\n '👩🏿‍❤‍💋‍👩🏿' => 'soen: vrou, vrou, donker velkleur',\n '🧑🏻‍🫯‍🧑🏼' =>", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-af.php", "language": "php", "file_size": 204186, "cut_index": 7068, "middle_length": 229}} {"prefix": "معتدل مائل للغامق',\n '👩🏽‍❤‍💋‍👩🏿' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل، وبشرة بلون غامق',\n '👩🏾‍❤‍💋‍👩🏻' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق، وبشرة بلون فاتح',\n '👩🏾‍❤‍💋‍👩🏼' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق، وبشرة بلون فاتح ومعتدل',\n '👩🏾‍❤‍💋‍👩🏽' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق، وبشرة بلون معتدل',\n '👩🏾‍❤‍💋‍👩🏾' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق',\n '👩🏾‍❤‍💋‍👩🏿' => 'قبلة: سيدة، وسيدة، وبشرة بلون معتدل مائل للغامق، وبشرة بلو", "suffix": "ن معتدل',\n '👩🏿‍❤‍💋‍👩🏾' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق، وبشرة بلون معتدل مائل للغامق',\n '👩🏿‍❤‍💋‍👩🏿' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق',\n '🧑🏻‍🫯‍🧑🏼' => 'مصارعون: بشرة بلون فاتح وبشرة بلون فاتح ومعتدل',\n '🧑🏻‍🫯‍🧑🏽' => 'مصارعون: بشرة بلو", "middle": "ن غامق',\n '👩🏿‍❤‍💋‍👩🏻' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق، وبشرة بلون فاتح',\n '👩🏿‍❤‍💋‍👩🏼' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق، وبشرة بلون فاتح ومعتدل',\n '👩🏿‍❤‍💋‍👩🏽' => 'قبلة: سيدة، وسيدة، وبشرة بلون غامق، وبشرة بلو", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ar_sa.php", "language": "php", "file_size": 273808, "cut_index": 7068, "middle_length": 229}} {"prefix": " '🇦🇸' => 'bandera: Samoa Americana',\n '🇦🇹' => 'bandera: Austria',\n '🇦🇺' => 'bandera: Australia',\n '🇦🇼' => 'bandera: Aruba',\n '🇦🇽' => 'bandera: Islles Aland',\n '🇦🇿' => 'bandera: Azerbaixán',\n '🇧🇦' => 'bandera: Bosnia y Herzegovina',\n '🇧🇧' => 'bandera: Barbados',\n '🇧🇩' => 'bandera: Bangladex',\n '🇧🇪' => 'bandera: Bélxica',\n '🇧🇫' => 'bandera: Burkina Fasu',\n '🇧🇬' => 'bandera: Bulgaria',\n '🇧🇭' => 'bandera: Baḥréin',\n '🇧🇮' => 'bandera: Burundi',\n '🇧🇯' => 'bandera: Bení", "suffix": "andera: Les Bahames',\n '🇧🇹' => 'bandera: Bután',\n '🇧🇻' => 'bandera: Islla Bouvet',\n '🇧🇼' => 'bandera: Botsuana',\n '🇧🇾' => 'bandera: Bielorrusia',\n '🇧🇿' => 'bandera: Belize',\n '🇨🇦' => 'bandera: Canadá',\n '🇨🇨' => 'bandera: Islles Cocos (", "middle": "n',\n '🇧🇱' => 'bandera: San Bartolomé',\n '🇧🇲' => 'bandera: Les Bermudes',\n '🇧🇳' => 'bandera: Brunéi',\n '🇧🇴' => 'bandera: Bolivia',\n '🇧🇶' => 'bandera: Caribe neerlandés',\n '🇧🇷' => 'bandera: Brasil',\n '🇧🇸' => 'b", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ast.php", "language": "php", "file_size": 11110, "cut_index": 921, "middle_length": 229}} {"prefix": "‍❤‍💋‍👩🏿' => 'öpüş: qadın, qadın, orta-tünd dəri tonu, tünd dəri tonu',\n '👩🏿‍❤‍💋‍👩🏻' => 'öpüş: qadın, qadın, tünd dəri tonu, açıq dəri tonu',\n '👩🏿‍❤‍💋‍👩🏼' => 'öpüş: qadın, qadın, tünd dəri tonu, orta-açıq dəri tonu',\n '👩🏿‍❤‍💋‍👩🏽' => 'öpüş: qadın, qadın, tünd dəri tonu, orta dəri tonu',\n '👩🏿‍❤‍💋‍👩🏾' => 'öpüş: qadın, qadın, tünd dəri tonu, orta-tünd dəri tonu',\n '👩🏿‍❤‍💋‍👩🏿' => 'öpüş: qadın, qadın, tünd dəri tonu',\n '🧑🏻‍🫯‍🧑🏼' => 'güləş: açıq dəri tonu, orta-açıq dəri tonu',\n '🧑🏻‍🫯‍🧑🏽' => 'g", "suffix": "🏼‍🫯‍🧑🏽' => 'güləş: orta-açıq dəri tonu, orta dəri tonu',\n '🧑🏼‍🫯‍🧑🏾' => 'güləş: orta-açıq dəri tonu, orta-tünd dəri tonu',\n '🧑🏼‍🫯‍🧑🏿' => 'güləş: orta-açıq dəri tonu, tünd dəri tonu',\n '🧑🏽‍🫯‍🧑🏻' => 'güləş: orta dəri tonu, açıq dəri tonu',\n '🧑🏽‍🫯‍", "middle": "üləş: açıq dəri tonu, orta dəri tonu',\n '🧑🏻‍🫯‍🧑🏾' => 'güləş: açıq dəri tonu, orta-tünd dəri tonu',\n '🧑🏻‍🫯‍🧑🏿' => 'güləş: açıq dəri tonu, tünd dəri tonu',\n '🧑🏼‍🫯‍🧑🏻' => 'güləş: orta-açıq dəri tonu, açıq dəri tonu',\n '🧑", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-az.php", "language": "php", "file_size": 212050, "cut_index": 7068, "middle_length": 229}} {"prefix": "'🇦🇸' => 'bendèra: Samoa Amrik',\n '🇦🇹' => 'bendèra: Ostenrèk',\n '🇦🇺' => 'bendèra: Ostrali',\n '🇦🇼' => 'bendèra: Aruba',\n '🇦🇽' => 'bendèra: Pulo Olan',\n '🇦🇿' => 'bendèra: Asèrbaijan',\n '🇧🇦' => 'bendèra: Bosni èn Hèrségowina',\n '🇧🇧' => 'bendèra: Barbados',\n '🇧🇩' => 'bendèra: Benggaladésa',\n '🇧🇪' => 'bendèra: Bèlgi',\n '🇧🇫' => 'bendèra: Burkina Paso',\n '🇧🇬' => 'bendèra: Bulgari',\n '🇧🇭' => 'bendèra: Bahrén',\n '🇧🇮' => 'bendèra: Burundi',\n '🇧🇯' => 'bendèra: Bénin',\n '🇧🇱' ", "suffix": " '🇧🇹' => 'bendèra: Butan',\n '🇧🇻' => 'bendèra: Pulo Buwèt',\n '🇧🇼' => 'bendèra: Boswana',\n '🇧🇾' => 'bendèra: Ruslan Puti',\n '🇧🇿' => 'bendèra: Bélis',\n '🇨🇦' => 'bendèra: Kanada',\n '🇨🇨' => 'bendèra: Pulo Kokos (Keeling)',\n '🇨🇩' => 'bendè", "middle": "=> 'bendèra: Sint-Bartoloméus',\n '🇧🇲' => 'bendèra: Bermuda',\n '🇧🇳' => 'bendèra: Bruné',\n '🇧🇴' => 'bendèra: Boliwi',\n '🇧🇶' => 'bendèra: Welanda Karaiben',\n '🇧🇷' => 'bendèra: Brasil',\n '🇧🇸' => 'bendèra: Bahama',\n ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-bew.php", "language": "php", "file_size": 11889, "cut_index": 921, "middle_length": 229}} {"prefix": "ারি-হালকা ত্বকের রঙ, মাঝারি-কালো ত্বকের রঙ',\n '👩🏼‍❤‍💋‍👩🏿' => 'চুম্বন: মহিলা, মহিলা, মাঝারি-হালকা ত্বকের রঙ, কালো ত্বকের রঙ',\n '👩🏽‍❤‍💋‍👩🏻' => 'চুম্বন: মহিলা, মহিলা, মাঝারি ত্বকের রঙ, হালকা ত্বকের রঙ',\n '👩🏽‍❤‍💋‍👩🏼' => 'চুম্বন: মহিলা, মহিলা, মাঝারি ত্বকের রঙ, মাঝারি-হালকা ত্বকের রঙ',\n '👩🏽‍❤‍💋‍👩🏽' => 'চুম্বন: মহিলা, মহিলা, মাঝারি ত্বকের রঙ',\n '👩🏽‍❤‍💋‍👩🏾' => 'চুম্বন: মহিলা, মহিলা, মাঝারি ত্বকের রঙ, মাঝারি-কালো ত্বকের রঙ',\n '👩🏽‍❤‍💋‍👩🏿' => 'চুম্বন: মহিলা, মহিলা, মাঝারি ত্বকের রঙ, কালো ত্বকের রঙ',", "suffix": "্বকের রঙ, মাঝারি ত্বকের রঙ',\n '👩🏾‍❤‍💋‍👩🏾' => 'চুম্বন: মহিলা, মহিলা, মাঝারি-কালো ত্বকের রঙ',\n '👩🏾‍❤‍💋‍👩🏿' => 'চুম্বন: মহিলা, মহিলা, মাঝারি-কালো ত্বকের রঙ, কালো ত্বকের রঙ',\n '👩🏿‍❤‍💋‍👩🏻' => 'চুম্বন: মহিলা, মহিলা, কালো ত্বকের রঙ, হালকা ত্বকের রঙ',\n ", "middle": "\n '👩🏾‍❤‍💋‍👩🏻' => 'চুম্বন: মহিলা, মহিলা, মাঝারি-কালো ত্বকের রঙ, হালকা ত্বকের রঙ',\n '👩🏾‍❤‍💋‍👩🏼' => 'চুম্বন: মহিলা, মহিলা, মাঝারি-কালো ত্বকের রঙ, মাঝারি-হালকা ত্বকের রঙ',\n '👩🏾‍❤‍💋‍👩🏽' => 'চুম্বন: মহিলা, মহিলা, মাঝারি-কালো ত", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-bn.php", "language": "php", "file_size": 397350, "cut_index": 7068, "middle_length": 229}} {"prefix": "‍❤‍💋‍👩🏼' => 'চুমা: তিৰোতা, তিৰোতা, মধ্যমীয়া ছালৰ ৰং, মধ্যমীয়া-পাতল ছালৰ ৰং',\n '👩🏽‍❤‍💋‍👩🏽' => 'চুমা: তিৰোতা, তিৰোতা, মধ্যমীয়া ছালৰ ৰং',\n '👩🏽‍❤‍💋‍👩🏾' => 'চুমা: তিৰোতা, তিৰোতা, মধ্যমীয়া ছালৰ ৰং, মধ্যমীয়া-ক’লা ছালৰ ৰং',\n '👩🏽‍❤‍💋‍👩🏿' => 'চুমা: তিৰোতা, তিৰোতা, মধ্যমীয়া ছালৰ ৰং, ক’লা ছালৰ ৰং',\n '👩🏾‍❤‍💋‍👩🏻' => 'চুমা: তিৰোতা, তিৰোতা, মধ্যমীয়া-ক’লা ছালৰ ৰং, পাতল ছালৰ ৰং',\n '👩🏾‍❤‍💋‍👩🏼' => 'চুমা: তিৰোতা, তিৰোতা, মধ্যমীয়া-ক’লা ছালৰ ৰং, মধ্যমীয়া-পাতল ছালৰ ৰং',\n '👩🏾‍❤‍💋‍👩🏽' => 'চুমা: তিৰোতা, তিৰ", "suffix": ", তিৰোতা, ক’লা ছালৰ ৰং, পাতল ছালৰ ৰং',\n '👩🏿‍❤‍💋‍👩🏼' => 'চুমা: তিৰোতা, তিৰোতা, ক’লা ছালৰ ৰং, মধ্যমীয়া-পাতল ছালৰ ৰং',\n '👩🏿‍❤‍💋‍👩🏽' => 'চুমা: তিৰোতা, তিৰোতা, ক’লা ছালৰ ৰং, মধ্যমীয়া ছালৰ ৰং',\n '👩🏿‍❤‍💋‍👩🏾' => 'চুমা: তিৰোতা, তিৰোতা, ক’লা ছালৰ ৰং, মধ্য", "middle": "োতা, মধ্যমীয়া-ক’লা ছালৰ ৰং, মধ্যমীয়া ছালৰ ৰং',\n '👩🏾‍❤‍💋‍👩🏾' => 'চুমা: তিৰোতা, তিৰোতা, মধ্যমীয়া-ক’লা ছালৰ ৰং',\n '👩🏾‍❤‍💋‍👩🏿' => 'চুমা: তিৰোতা, তিৰোতা, মধ্যমীয়া-ক’লা ছালৰ ৰং, ক’লা ছালৰ ৰং',\n '👩🏿‍❤‍💋‍👩🏻' => 'চুমা: তিৰোতা", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-as.php", "language": "php", "file_size": 399109, "cut_index": 7068, "middle_length": 229}} {"prefix": "еү: ҡатын, ҡатын, уртаса ҡара тән төҫө һәм уртаса аҡһыл тән төҫө',\n '👩🏾‍❤‍💋‍👩🏽' => 'үбеү: ҡатын, ҡатын, уртаса ҡара тән төҫө һәм уртаса тән төҫө',\n '👩🏾‍❤‍💋‍👩🏾' => 'үбеү: ҡатын, ҡатын һәм уртаса ҡара тән төҫө',\n '👩🏾‍❤‍💋‍👩🏿' => 'үбеү: ҡатын, ҡатын, уртаса ҡара тән төҫө һәм ҡара тән төҫө',\n '👩🏿‍❤‍💋‍👩🏻' => 'үбеү: ҡатын, ҡатын, ҡара тән төҫө һәм аҡһыл тән төҫө',\n '👩🏿‍❤‍💋‍👩🏼' => 'үбеү: ҡатын, ҡатын, ҡара тән төҫө һәм уртаса аҡһыл тән төҫө',\n '👩🏿‍❤‍💋‍👩🏽' => 'үбеү: ҡатын, ҡатын, ҡара тән төҫө һәм ", "suffix": ",\n '🧑🏻‍🫯‍🧑🏽' => 'көрәшселәр: аҡһыл тән төҫө һәм уртаса тән төҫө',\n '🧑🏻‍🫯‍🧑🏾' => 'көрәшселәр: аҡһыл тән төҫө һәм уртаса ҡара тән төҫө',\n '🧑🏻‍🫯‍🧑🏿' => 'көрәшселәр: аҡһыл тән төҫө һәм ҡара тән төҫө',\n '🧑🏼‍🫯‍🧑🏻' => 'көрәшселәр: уртаса аҡһыл тән төҫ", "middle": "уртаса тән төҫө',\n '👩🏿‍❤‍💋‍👩🏾' => 'үбеү: ҡатын, ҡатын, ҡара тән төҫө һәм уртаса ҡара тән төҫө',\n '👩🏿‍❤‍💋‍👩🏿' => 'үбеү: ҡатын, ҡатын һәм ҡара тән төҫө',\n '🧑🏻‍🫯‍🧑🏼' => 'көрәшселәр: аҡһыл тән төҫө һәм уртаса аҡһыл тән төҫө'", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ba.php", "language": "php", "file_size": 291938, "cut_index": 7068, "middle_length": 229}} {"prefix": "'🐈‍⬛' => 'ganyaʊ gaɖono',\n '🐻‍❄' => 'ursifɔnɔ',\n '🐦‍⬛' => 'gasapɩ́ gaɖono',\n '🐦‍🔥' => 'gasapɩ́ fenis',\n '🦵' => 'ʊkei',\n '👂' => 'gʊtɔ',\n '👃' => 'gɩŋʊnʊ',\n '🧠' => 'gʊfaŋa',\n '🫀' => 'gɩfolu',\n '🫁' => 'akufɛrɛfɛrɛ',\n '🦷' => 'gʊnyoo',\n '🦴' => 'ŋkǝwa',\n '👀' => 'ɩnyine',\n '👁' => 'gɩnyine',\n '👅' => 'gɩɖanʊ',\n '👄' => 'ganɔ',\n '🐵' => 'akʊná agayɛ',\n '🐒' => 'akʊná',\n '🦍' => 'goril',\n '🦧' => 'ʊrantan',\n '🐶' => 'asna agayɛ',\n '🐕' => 'asna',\n '🦮' => 'asǝnt", "suffix": "nayar agayɛ',\n '🐅' => 'atabɩyarɩ ɩsǝnayar',\n '🐆' => 'atabɩyarɩ',\n '🐴' => 'asuko agayɛ',\n '🫎' => 'ayʊlʊkpatɩ',\n '🫏' => 'gakɔŋkɔŋɔ́',\n '🐎' => 'asuko',\n '🦄' => 'asuko gʊyʊlʊyar',\n '🦓' => 'gakɔŋkɔŋɔ́ ɩsǝnayar',\n '🦌' => 'gajagʊyʊlʊ',\n", "middle": "oŋokafɔnɔrɛ',\n '🐩' => 'asna ɩsana pùùù',\n '🐺' => 'Asnaŋɔnja abʊmbɔnɔ',\n '🦊' => 'asnaŋɔnja ajala',\n '🦝' => 'ursijalɩ',\n '🐱' => 'ganyaʊ kaayɛ',\n '🐈' => 'ganyaʊ',\n '🦁' => 'guuni agayɛ',\n '🐯' => 'atabɩyarɩ ɩsǝ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-blo.php", "language": "php", "file_size": 3323, "cut_index": 563, "middle_length": 229}} {"prefix": "тон скуры',\n '👩🏼‍❤‍💋‍👩🏽' => 'пацалунак: жанчына жанчына сярэднясветлы тон скуры сярэдні тон скуры',\n '👩🏼‍❤‍💋‍👩🏾' => 'пацалунак: жанчына жанчына сярэднясветлы тон скуры сярэдняцёмны тон скуры',\n '👩🏼‍❤‍💋‍👩🏿' => 'пацалунак: жанчына жанчына сярэднясветлы тон скуры цёмны тон скуры',\n '👩🏽‍❤‍💋‍👩🏻' => 'пацалунак: жанчына жанчына сярэдні тон скуры светлы тон скуры',\n '👩🏽‍❤‍💋‍👩🏼' => 'пацалунак: жанчына жанчына сярэдні тон скуры сярэднясветлы тон скуры',\n '👩🏽‍❤‍💋‍👩🏽' => 'пацалунак: жанчына жанчына ся", "suffix": " жанчына сярэдняцёмны тон скуры светлы тон скуры',\n '👩🏾‍❤‍💋‍👩🏼' => 'пацалунак: жанчына жанчына сярэдняцёмны тон скуры сярэднясветлы тон скуры',\n '👩🏾‍❤‍💋‍👩🏽' => 'пацалунак: жанчына жанчына сярэдняцёмны тон скуры сярэдні тон скуры',\n '👩🏾‍❤‍💋‍👩🏾' => ", "middle": "рэдні тон скуры',\n '👩🏽‍❤‍💋‍👩🏾' => 'пацалунак: жанчына жанчына сярэдні тон скуры сярэдняцёмны тон скуры',\n '👩🏽‍❤‍💋‍👩🏿' => 'пацалунак: жанчына жанчына сярэдні тон скуры цёмны тон скуры',\n '👩🏾‍❤‍💋‍👩🏻' => 'пацалунак: жанчына", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-be.php", "language": "php", "file_size": 306495, "cut_index": 7068, "middle_length": 229}} {"prefix": "‍💋‍👩🏽' => 'целувка: жена, жена, средно тъмна кожа, средна на цвят кожа',\n '👩🏾‍❤‍💋‍👩🏾' => 'целувка: жена, жена, средно тъмна кожа',\n '👩🏾‍❤‍💋‍👩🏿' => 'целувка: жена, жена, средно тъмна кожа, тъмна кожа',\n '👩🏿‍❤‍💋‍👩🏻' => 'целувка: жена, жена, тъмна кожа, светла кожа',\n '👩🏿‍❤‍💋‍👩🏼' => 'целувка: жена, жена, тъмна кожа, средно светла кожа',\n '👩🏿‍❤‍💋‍👩🏽' => 'целувка: жена, жена, тъмна кожа, средна на цвят кожа',\n '👩🏿‍❤‍💋‍👩🏾' => 'целувка: жена, жена, тъмна кожа, средно тъмна кожа',\n '👩🏿‍❤‍💋‍👩🏿' ", "suffix": "🏿' => 'борци: светла кожа и тъмна кожа',\n '🧑🏼‍🫯‍🧑🏻' => 'борци: средно светла кожа и светла кожа',\n '🧑🏼‍🫯‍🧑🏽' => 'борци: средно светла кожа и средна на цвят кожа',\n '🧑🏼‍🫯‍🧑🏾' => 'борци: средно светла кожа и средно тъмна кожа',\n '🧑🏼‍🫯‍🧑🏿' => 'бор", "middle": "=> 'целувка: жена, жена, тъмна кожа',\n '🧑🏻‍🫯‍🧑🏼' => 'борци: светла кожа и средно светла кожа',\n '🧑🏻‍🫯‍🧑🏽' => 'борци: светла кожа и средна на цвят кожа',\n '🧑🏻‍🫯‍🧑🏾' => 'борци: светла кожа и средно тъмна кожа',\n '🧑🏻‍🫯‍🧑", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-bg.php", "language": "php", "file_size": 287307, "cut_index": 7068, "middle_length": 229}} {"prefix": "ca i pell morena',\n '👩🏿‍❤‍💋‍👩🏾' => 'petó: dona, dona, pell molt fosca i pell fosca',\n '👩🏿‍❤‍💋‍👩🏿' => 'petó: dona, dona i pell molt fosca',\n '🧑🏻‍🫯‍🧑🏼' => 'persones que lluiten: pell molt clara i pell bastant clara',\n '🧑🏻‍🫯‍🧑🏽' => 'persones que lluiten: pell molt clara i pell morena',\n '🧑🏻‍🫯‍🧑🏾' => 'persones que lluiten: pell molt clara i pell fosca',\n '🧑🏻‍🫯‍🧑🏿' => 'persones que lluiten: pell molt clara i pell molt fosca',\n '🧑🏼‍🫯‍🧑🏻' => 'persones que lluiten: pell bastant clara i pell mol", "suffix": " fosca',\n '🧑🏽‍🫯‍🧑🏻' => 'persones que lluiten: pell morena i pell molt clara',\n '🧑🏽‍🫯‍🧑🏼' => 'persones que lluiten: pell morena i pell bastant clara',\n '🧑🏽‍🫯‍🧑🏾' => 'persones que lluiten: pell morena i pell fosca',\n '🧑🏽‍🫯‍🧑🏿' => 'persones que ll", "middle": "t clara',\n '🧑🏼‍🫯‍🧑🏽' => 'persones que lluiten: pell bastant clara i pell morena',\n '🧑🏼‍🫯‍🧑🏾' => 'persones que lluiten: pell bastant clara i pell fosca',\n '🧑🏼‍🫯‍🧑🏿' => 'persones que lluiten: pell bastant clara i pell molt", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ca.php", "language": "php", "file_size": 206985, "cut_index": 7068, "middle_length": 229}} {"prefix": "ca i pell morena',\n '👩🏿‍❤‍💋‍👩🏾' => 'petó: dona, dona, pell molt fosca i pell fosca',\n '👩🏿‍❤‍💋‍👩🏿' => 'petó: dona, dona i pell molt fosca',\n '🧑🏻‍🫯‍🧑🏼' => 'persones que lluiten: pell molt clara i pell bastant clara',\n '🧑🏻‍🫯‍🧑🏽' => 'persones que lluiten: pell molt clara i pell morena',\n '🧑🏻‍🫯‍🧑🏾' => 'persones que lluiten: pell molt clara i pell fosca',\n '🧑🏻‍🫯‍🧑🏿' => 'persones que lluiten: pell molt clara i pell molt fosca',\n '🧑🏼‍🫯‍🧑🏻' => 'persones que lluiten: pell bastant clara i pell mol", "suffix": " fosca',\n '🧑🏽‍🫯‍🧑🏻' => 'persones que lluiten: pell morena i pell molt clara',\n '🧑🏽‍🫯‍🧑🏼' => 'persones que lluiten: pell morena i pell bastant clara',\n '🧑🏽‍🫯‍🧑🏾' => 'persones que lluiten: pell morena i pell fosca',\n '🧑🏽‍🫯‍🧑🏿' => 'persones que ll", "middle": "t clara',\n '🧑🏼‍🫯‍🧑🏽' => 'persones que lluiten: pell bastant clara i pell morena',\n '🧑🏼‍🫯‍🧑🏾' => 'persones que lluiten: pell bastant clara i pell fosca',\n '🧑🏼‍🫯‍🧑🏿' => 'persones que lluiten: pell bastant clara i pell molt", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ca_es.php", "language": "php", "file_size": 206985, "cut_index": 7068, "middle_length": 229}} {"prefix": "ᏗᏴᎳᏘ ᎤᏁᎦᎸ ᏄᎿᏍᏛᎢ',\n '👩🏾‍❤‍💋‍👩🏽' => 'ᎠᏔᏪᏙᎢᏍᏗ: ᎠᎨᏯ, ᎠᎨᏯ, ᎠᏲᏟᎨ-ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ, ᎠᏲᏟᎨ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n '👩🏾‍❤‍💋‍👩🏾' => 'ᎠᏔᏪᏙᎢᏍᏗ: ᎠᎨᏯ, ᎠᎨᏯ, ᎠᏲᏟᎨ-ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n '👩🏾‍❤‍💋‍👩🏿' => 'ᎠᏔᏪᏙᎢᏍᏗ: ᎠᎨᏯ, ᎠᎨᏯ, ᎠᏲᏟᎨ-ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ, ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n '👩🏿‍❤‍💋‍👩🏻' => 'ᎠᏔᏪᏙᎢᏍᏗ: ᎠᎨᏯ, ᎠᎨᏯ, ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ, ᎤᏗᏴᎳᏘ ᎤᏁᎦᎵ ᏄᏍᏛᎢ',\n '👩🏿‍❤‍💋‍👩🏼' => 'ᎠᏔᏪᏙᎢᏍᏗ: ᎠᎨᏯ, ᎠᎨᏯ, ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ, ᎠᏲᏟᎨ-ᎤᏗᏴᎳᏘ ᎤᏁᎦᎸ ᏄᎿᏍᏛᎢ',\n '👩🏿‍❤‍💋‍👩🏽' => 'ᎠᏔᏪᏙᎢᏍᏗ: ᎠᎨᏯ, ᎠᎨᏯ, ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ, ᎠᏲᏟᎨ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n '👩🏿‍❤‍💋‍👩🏾' => 'ᎠᏔᏪᏙᎢᏍᏗ: ᎠᎨᏯ, ᎠᎨᏯ, ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ, ", "suffix": "ᎠᏂᏴᏫ ᏓᏁᎯᎲ: ᎤᏗᏴᎳᏘ ᎤᏁᎦᎵ ᏄᏍᏛᎢ, ᎠᏲᏟᎨ-ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n '🧑🏻‍🫯‍🧑🏿' => 'ᎠᏂᏴᏫ ᏓᏁᎯᎲ: ᎤᏗᏴᎳᏘ ᎤᏁᎦᎵ ᏄᏍᏛᎢ, ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n '🧑🏼‍🫯‍🧑🏻' => 'ᎠᏂᏴᏫ ᏓᏁᎯᎲ: ᎠᏲᏟᎨ-ᎤᏗᏴᎳᏘ ᎤᏁᎦᎸ ᏄᎿᏍᏛᎢ, ᎤᏗᏴᎳᏘ ᎤᏁᎦᎵ ᏄᏍᏛᎢ',\n '🧑🏼‍🫯‍🧑🏽' => 'ᎠᏂᏴᏫ ᏓᏁᎯᎲ: ᎠᏲᏟᎨ-ᎤᏗᏴᎳᏘ ᎤᏁᎦᎸ ᏄᎿᏍᏛᎢ, ᎠᏲᏟᎨ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n ", "middle": "ᎠᏲᏟᎨ-ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n '👩🏿‍❤‍💋‍👩🏿' => 'ᎠᏔᏪᏙᎢᏍᏗ: ᎠᎨᏯ, ᎠᎨᏯ, ᎤᎵᏏᎩ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n '🧑🏻‍🫯‍🧑🏼' => 'ᎠᏂᏴᏫ ᏓᏁᎯᎲ: ᎤᏗᏴᎳᏘ ᎤᏁᎦᎵ ᏄᏍᏛᎢ, ᎠᏲᏟᎨ-ᎤᏗᏴᎳᏘ ᎤᏁᎦᎸ ᏄᎿᏍᏛᎢ',\n '🧑🏻‍🫯‍🧑🏽' => 'ᎠᏂᏴᏫ ᏓᏁᎯᎲ: ᎤᏗᏴᎳᏘ ᎤᏁᎦᎵ ᏄᏍᏛᎢ, ᎠᏲᏟᎨ ᎣᏁᎦᎸ ᏄᏍᏛᎢ',\n '🧑🏻‍🫯‍🧑🏾' => '", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-chr.php", "language": "php", "file_size": 340870, "cut_index": 7068, "middle_length": 229}} {"prefix": "там-ҫутӑ тӗсӗ сӑран тӗксӗм тонӗ',\n '👩🏽‍❤‍💋‍👩🏻' => 'чупту: хӗрарӑм хӗрарӑм сӑран вӑтам тонӗ сӑран ҫутӑ тӗсӗ',\n '👩🏽‍❤‍💋‍👩🏼' => 'чупту: хӗрарӑм хӗрарӑм сӑран вӑтам тонӗ ӳт-тирӗн вӑтам-ҫутӑ тӗсӗ',\n '👩🏽‍❤‍💋‍👩🏽' => 'чупту: хӗрарӑм хӗрарӑм сӑран вӑтам тонӗ',\n '👩🏽‍❤‍💋‍👩🏾' => 'чупту: хӗрарӑм хӗрарӑм сӑран вӑтам тонӗ сӑран вӑтам тӗксӗм тонӗ',\n '👩🏽‍❤‍💋‍👩🏿' => 'чупту: хӗрарӑм хӗрарӑм сӑран вӑтам тонӗ сӑран тӗксӗм тонӗ',\n '👩🏾‍❤‍💋‍👩🏻' => 'чупту: хӗрарӑм хӗрарӑм сӑран вӑтам тӗксӗм тонӗ сӑран ҫутӑ тӗсӗ',\n", "suffix": "вӑтам тӗксӗм тонӗ',\n '👩🏾‍❤‍💋‍👩🏿' => 'чупту: хӗрарӑм хӗрарӑм сӑран вӑтам тӗксӗм тонӗ сӑран тӗксӗм тонӗ',\n '👩🏿‍❤‍💋‍👩🏻' => 'чупту: хӗрарӑм хӗрарӑм сӑран тӗксӗм тонӗ сӑран ҫутӑ тӗсӗ',\n '👩🏿‍❤‍💋‍👩🏼' => 'чупту: хӗрарӑм хӗрарӑм сӑран тӗксӗм тонӗ ӳт-тирӗн ", "middle": " '👩🏾‍❤‍💋‍👩🏼' => 'чупту: хӗрарӑм хӗрарӑм сӑран вӑтам тӗксӗм тонӗ ӳт-тирӗн вӑтам-ҫутӑ тӗсӗ',\n '👩🏾‍❤‍💋‍👩🏽' => 'чупту: хӗрарӑм хӗрарӑм сӑран вӑтам тӗксӗм тонӗ сӑран вӑтам тонӗ',\n '👩🏾‍❤‍💋‍👩🏾' => 'чупту: хӗрарӑм хӗрарӑм сӑран ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-cv.php", "language": "php", "file_size": 302530, "cut_index": 7068, "middle_length": 229}} {"prefix": "k teint',\n '👩🏿‍❤‍💋‍👩🏻' => 'kys: kvinde, kvinde, mørk teint og lys teint',\n '👩🏿‍❤‍💋‍👩🏼' => 'kys: kvinde, kvinde, mørk teint og medium til lys teint',\n '👩🏿‍❤‍💋‍👩🏽' => 'kys: kvinde, kvinde, mørk teint og medium teint',\n '👩🏿‍❤‍💋‍👩🏾' => 'kys: kvinde, kvinde, mørk teint og medium til mørk teint',\n '👩🏿‍❤‍💋‍👩🏿' => 'kys: kvinde, kvinde og mørk teint',\n '🧑🏻‍🫯‍🧑🏼' => 'brydere: lys teint og medium til lys teint',\n '🧑🏻‍🫯‍🧑🏽' => 'brydere: lys teint og medium teint',\n '🧑🏻‍🫯‍🧑🏾' => 'brydere: lys tei", "suffix": "'brydere: medium til lys teint og medium til mørk teint',\n '🧑🏼‍🫯‍🧑🏿' => 'brydere: medium til lys teint og mørk teint',\n '🧑🏽‍🫯‍🧑🏻' => 'brydere: medium teint og lys teint',\n '🧑🏽‍🫯‍🧑🏼' => 'brydere: medium teint og medium til lys teint',\n '🧑🏽‍🫯‍🧑🏾'", "middle": "nt og medium til mørk teint',\n '🧑🏻‍🫯‍🧑🏿' => 'brydere: lys teint og mørk teint',\n '🧑🏼‍🫯‍🧑🏻' => 'brydere: medium til lys teint og lys teint',\n '🧑🏼‍🫯‍🧑🏽' => 'brydere: medium til lys teint og medium teint',\n '🧑🏼‍🫯‍🧑🏾' => ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-da.php", "language": "php", "file_size": 188094, "cut_index": 7068, "middle_length": 229}} {"prefix": "boja kože i umjerena boja kože',\n '👩🏻‍❤‍💋‍👩🏾' => 'poljubac: žena, žena, svijetla boja kože i umjereno tamna boja kože',\n '👩🏻‍❤‍💋‍👩🏿' => 'poljubac: žena, žena, svijetla boja kože i tamna boja kože',\n '👩🏼‍❤‍💋‍👩🏻' => 'poljubac: žena, žena, umjereno svijetla boja kože i svijetla boja kože',\n '👩🏼‍❤‍💋‍👩🏼' => 'poljubac: žena, žena i umjereno svijetla boja kože',\n '👩🏼‍❤‍💋‍👩🏽' => 'poljubac: žena, žena, umjereno svijetla boja kože i umjerena boja kože',\n '👩🏼‍❤‍💋‍👩🏾' => 'poljubac: žena, žena, umjeren", "suffix": "👩🏽‍❤‍💋‍👩🏼' => 'poljubac: žena, žena, umjerena boja kože i umjereno svijetla boja kože',\n '👩🏽‍❤‍💋‍👩🏽' => 'poljubac: žena, žena i umjerena boja kože',\n '👩🏽‍❤‍💋‍👩🏾' => 'poljubac: žena, žena, umjerena boja kože i umjereno tamna boja kože',\n '👩🏽‍❤‍💋‍👩🏿", "middle": "o svijetla boja kože i umjereno tamna boja kože',\n '👩🏼‍❤‍💋‍👩🏿' => 'poljubac: žena, žena, umjereno svijetla boja kože i tamna boja kože',\n '👩🏽‍❤‍💋‍👩🏻' => 'poljubac: žena, žena, umjerena boja kože i svijetla boja kože',\n '", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-bs.php", "language": "php", "file_size": 216860, "cut_index": 7068, "middle_length": 229}} {"prefix": "ca i pell morena',\n '👩🏿‍❤‍💋‍👩🏾' => 'petó: dona, dona, pell molt fosca i pell fosca',\n '👩🏿‍❤‍💋‍👩🏿' => 'petó: dona, dona i pell molt fosca',\n '🧑🏻‍🫯‍🧑🏼' => 'persones que lluiten: pell molt clara i pell bastant clara',\n '🧑🏻‍🫯‍🧑🏽' => 'persones que lluiten: pell molt clara i pell morena',\n '🧑🏻‍🫯‍🧑🏾' => 'persones que lluiten: pell molt clara i pell fosca',\n '🧑🏻‍🫯‍🧑🏿' => 'persones que lluiten: pell molt clara i pell molt fosca',\n '🧑🏼‍🫯‍🧑🏻' => 'persones que lluiten: pell bastant clara i pell mol", "suffix": " fosca',\n '🧑🏽‍🫯‍🧑🏻' => 'persones que lluiten: pell morena i pell molt clara',\n '🧑🏽‍🫯‍🧑🏼' => 'persones que lluiten: pell morena i pell bastant clara',\n '🧑🏽‍🫯‍🧑🏾' => 'persones que lluiten: pell morena i pell fosca',\n '🧑🏽‍🫯‍🧑🏿' => 'persones que ll", "middle": "t clara',\n '🧑🏼‍🫯‍🧑🏽' => 'persones que lluiten: pell bastant clara i pell morena',\n '🧑🏼‍🫯‍🧑🏾' => 'persones que lluiten: pell bastant clara i pell fosca',\n '🧑🏼‍🫯‍🧑🏿' => 'persones que lluiten: pell bastant clara i pell molt", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ca_es_valencia.php", "language": "php", "file_size": 206985, "cut_index": 7068, "middle_length": 229}} {"prefix": "cusan: menyw, menyw, arlliw croen canolig-golau, arlliw croen canolog',\n '👩🏼‍❤‍💋‍👩🏾' => 'cusan: menyw, menyw, arlliw croen canolig-golau, arlliw croen canolig-tywyll',\n '👩🏼‍❤‍💋‍👩🏿' => 'cusan: menyw, menyw, arlliw croen canolig-golau, arlliw croen tywyll',\n '👩🏽‍❤‍💋‍👩🏻' => 'cusan: menyw, menyw, arlliw croen canolog, arlliw croen golau',\n '👩🏽‍❤‍💋‍👩🏼' => 'cusan: menyw, menyw, arlliw croen canolog, arlliw croen canolig-golau',\n '👩🏽‍❤‍💋‍👩🏽' => 'cusan: menyw, menyw, arlliw croen canolog',\n '👩🏽‍❤‍", "suffix": "-tywyll, arlliw croen golau',\n '👩🏾‍❤‍💋‍👩🏼' => 'cusan: menyw, menyw, arlliw croen canolig-tywyll, arlliw croen canolig-golau',\n '👩🏾‍❤‍💋‍👩🏽' => 'cusan: menyw, menyw, arlliw croen canolig-tywyll, arlliw croen canolog',\n '👩🏾‍❤‍💋‍👩🏾' => 'cusan: menyw, ", "middle": "💋‍👩🏾' => 'cusan: menyw, menyw, arlliw croen canolog, arlliw croen canolig-tywyll',\n '👩🏽‍❤‍💋‍👩🏿' => 'cusan: menyw, menyw, arlliw croen canolog, arlliw croen tywyll',\n '👩🏾‍❤‍💋‍👩🏻' => 'cusan: menyw, menyw, arlliw croen canolig", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-cy.php", "language": "php", "file_size": 219984, "cut_index": 7068, "middle_length": 229}} {"prefix": "𑄨𑄉𑄧𑄢𑄴',\n '👨‍🏭' => '𑄜𑄳𑄠𑄇𑄴𑄑𑄮𑄢𑄨𑄖𑄴 𑄇𑄟𑄴 𑄉𑄧𑄢𑄨𑄠𑄬 𑄟𑄧𑄢𑄧𑄘𑄴',\n '👩‍🏭' => '𑄜𑄳𑄠𑄇𑄴𑄑𑄮𑄢𑄨𑄖𑄴 𑄇𑄟𑄴 𑄉𑄧𑄢𑄨𑄠𑄬 𑄟𑄨𑄣𑄬',\n '👨‍🔬' => '𑄟𑄧𑄢𑄧𑄘𑄴 𑄝𑄨𑄉𑄳𑄠𑄴𑄚𑄨',\n '👩‍🔬' => '𑄟𑄨𑄣𑄬 𑄝𑄨𑄉𑄳𑄠𑄴𑄚𑄨',\n '👨‍✈' => '𑄟𑄧𑄢𑄧𑄘𑄴 𑄝𑄨𑄟𑄚𑄴 𑄌𑄣𑄬𑄠𑄳𑄠',\n '👩‍✈' => '𑄟𑄨𑄣𑄬 𑄝𑄨𑄟𑄚𑄴 𑄌𑄣𑄬𑄠𑄳𑄠',\n '👮‍♂' => '𑄟𑄧𑄢𑄧𑄘𑄴 𑄛𑄪𑄣𑄨𑄌𑄴 𑄃𑄧𑄜𑄨𑄥𑄢𑄴',\n '👮‍♀' => '𑄟𑄨𑄣𑄬 𑄛𑄪𑄣𑄨𑄌𑄴 𑄃𑄧𑄜𑄨𑄥𑄢𑄴',\n '🏳‍🌈' => '𑄢𑄚𑄴𑄎𑄪𑄚𑄨 𑄝𑄝𑄧𑄘',\n '🇦🇨' => '𑄙𑄧𑄏: 𑄃𑄳𑄠𑄥𑄴𑄥𑄬𑄚𑄴𑄥𑄧𑄚𑄴 𑄃𑄭𑄣𑄳𑄠𑄚𑄴𑄓𑄴',\n '🇦🇩' => '𑄙𑄧𑄏: 𑄃𑄚𑄴𑄓𑄮𑄢',\n '🇦🇪' => '𑄙𑄧𑄏: 𑄎𑄧𑄙 𑄃𑄢𑄧𑄝𑄴 𑄃𑄟𑄨𑄢𑄖𑄴',\n '🇦🇫' => '𑄙𑄧𑄏: 𑄃𑄛𑄴𑄉𑄚𑄨𑄌𑄴𑄖𑄚𑄴',\n '🇦🇬' => '𑄙𑄧𑄏: 𑄆𑄚𑄴𑄖𑄨𑄉𑄱 𑄃𑄮 𑄝𑄢𑄴𑄟𑄪𑄓',\n ", "suffix": "𑄙𑄧𑄏: 𑄃𑄧𑄌𑄴𑄑𑄳𑄢𑄨𑄠',\n '🇦🇺' => '𑄙𑄧𑄏: 𑄃𑄌𑄴𑄑𑄳𑄢𑄬𑄣𑄨𑄠',\n '🇦🇼' => '𑄙𑄧𑄏: 𑄃𑄢𑄪𑄝',\n '🇦🇽' => '𑄙𑄧𑄏: 𑄃𑄣𑄚𑄴𑄓𑄧 𑄉𑄭 𑄉𑄭 𑄞𑄨𑄘𑄳𑄠',\n '🇦🇿' => '𑄙𑄧𑄏: 𑄃𑄎𑄢𑄴𑄝𑄭𑄎𑄚𑄴',\n '🇧🇦' => '𑄙𑄧𑄏: 𑄝𑄧𑄥𑄴𑄚𑄨𑄠 𑄃𑄮 𑄦𑄢𑄴𑄎𑄬𑄉𑄮𑄞𑄨𑄚',\n '🇧🇧' => '𑄙𑄧𑄏: 𑄝𑄢𑄴𑄝𑄘𑄮𑄌𑄴',\n '🇧🇩' => '𑄙𑄧𑄏: 𑄝𑄁𑄣𑄘𑄬𑄌𑄴',\n '🇧🇪' => '𑄙𑄧", "middle": " '🇦🇮' => '𑄙𑄧𑄏: 𑄄𑄳𑄠𑄋𑄴𑄉𑄪𑄃𑄨𑄣',\n '🇦🇱' => '𑄙𑄧𑄏: 𑄃𑄣𑄴𑄝𑄬𑄚𑄨𑄠',\n '🇦🇲' => '𑄙𑄧𑄏: 𑄃𑄢𑄴𑄟𑄬𑄚𑄨𑄠',\n '🇦🇴' => '𑄙𑄧𑄏: 𑄃𑄳𑄠𑄋𑄴𑄉𑄮𑄣',\n '🇦🇶' => '𑄙𑄧𑄏: 𑄃𑄳𑄠𑄚𑄴𑄑𑄢𑄴𑄇𑄧𑄑𑄨𑄇',\n '🇦🇷' => '𑄙𑄧𑄏: 𑄃𑄢𑄴𑄎𑄬𑄚𑄴𑄑𑄨𑄚',\n '🇦🇸' => '𑄙𑄧𑄏: 𑄃𑄟𑄬𑄢𑄨𑄇𑄚𑄴 𑄥𑄟𑄮𑄠',\n '🇦🇹' => '", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ccp.php", "language": "php", "file_size": 32922, "cut_index": 921, "middle_length": 229}} {"prefix": "olibek: žena, žena, světlý odstín pleti a středně světlý odstín pleti',\n '👩🏻‍❤‍💋‍👩🏽' => 'polibek: žena, žena, světlý odstín pleti a střední odstín pleti',\n '👩🏻‍❤‍💋‍👩🏾' => 'polibek: žena, žena, světlý odstín pleti a středně tmavý odstín pleti',\n '👩🏻‍❤‍💋‍👩🏿' => 'polibek: žena, žena, světlý odstín pleti a tmavý odstín pleti',\n '👩🏼‍❤‍💋‍👩🏻' => 'polibek: žena, žena, středně světlý odstín pleti a světlý odstín pleti',\n '👩🏼‍❤‍💋‍👩🏼' => 'polibek: žena, žena a středně světlý odstín pleti',\n '👩🏼‍❤‍💋‍👩", "suffix": " světlý odstín pleti a tmavý odstín pleti',\n '👩🏽‍❤‍💋‍👩🏻' => 'polibek: žena, žena, střední odstín pleti a světlý odstín pleti',\n '👩🏽‍❤‍💋‍👩🏼' => 'polibek: žena, žena, střední odstín pleti a středně světlý odstín pleti',\n '👩🏽‍❤‍💋‍👩🏽' => 'polibek: žen", "middle": "🏽' => 'polibek: žena, žena, středně světlý odstín pleti a střední odstín pleti',\n '👩🏼‍❤‍💋‍👩🏾' => 'polibek: žena, žena, středně světlý odstín pleti a středně tmavý odstín pleti',\n '👩🏼‍❤‍💋‍👩🏿' => 'polibek: žena, žena, středně", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-cs.php", "language": "php", "file_size": 235649, "cut_index": 7068, "middle_length": 229}} {"prefix": "t peau claire',\n '👩🏽‍❤‍💋‍👩🏼' => 'bisou : femme, femme, peau légèrement mate et peau modérément claire',\n '👩🏽‍❤‍💋‍👩🏽' => 'bisou : femme, femme et peau légèrement mate',\n '👩🏽‍❤‍💋‍👩🏾' => 'bisou : femme, femme, peau légèrement mate et peau modérément foncée',\n '👩🏽‍❤‍💋‍👩🏿' => 'bisou : femme, femme, peau légèrement mate et peau foncée',\n '👩🏾‍❤‍💋‍👩🏻' => 'bisou : femme, femme, peau modérément foncée et peau claire',\n '👩🏾‍❤‍💋‍👩🏼' => 'bisou : femme, femme, peau modérément foncée et peau modérément c", "suffix": "cée et peau foncée',\n '👩🏿‍❤‍💋‍👩🏻' => 'bisou : femme, femme, peau foncée et peau claire',\n '👩🏿‍❤‍💋‍👩🏼' => 'bisou : femme, femme, peau foncée et peau modérément claire',\n '👩🏿‍❤‍💋‍👩🏽' => 'bisou : femme, femme, peau foncée et peau légèrement mate',\n ", "middle": "laire',\n '👩🏾‍❤‍💋‍👩🏽' => 'bisou : femme, femme, peau modérément foncée et peau légèrement mate',\n '👩🏾‍❤‍💋‍👩🏾' => 'bisou : femme, femme et peau modérément foncée',\n '👩🏾‍❤‍💋‍👩🏿' => 'bisou : femme, femme, peau modérément fon", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-fr_ca.php", "language": "php", "file_size": 226296, "cut_index": 7068, "middle_length": 229}} {"prefix": "=> 'चुंबन: महिला, महिला, साँवली त्वचा, हल्की गोरी त्वचा',\n '👩🏿‍❤‍💋‍👩🏽' => 'चुंबन: महिला, महिला, साँवली त्वचा, गेहुँआ त्वचा',\n '👩🏿‍❤‍💋‍👩🏾' => 'चुंबन: महिला, महिला, साँवली त्वचा, हल्की साँवली त्वचा',\n '👩🏿‍❤‍💋‍👩🏿' => 'चुंबन: महिला, महिला, साँवली त्वचा',\n '🧑🏻‍🫯‍🧑🏼' => 'पहलवान: गोरी त्वचा, हल्की गोरी त्वचा',\n '🧑🏻‍🫯‍🧑🏽' => 'पहलवान: गोरी त्वचा, गेहुँआ त्वचा',\n '🧑🏻‍🫯‍🧑🏾' => 'पहलवान: गोरी त्वचा, हल्की साँवली त्वचा',\n '🧑🏻‍🫯‍🧑🏿' => 'पहलवान: गोरी त्वचा, साँवली त्वचा',\n '🧑🏼‍🫯‍🧑🏻' => 'पहलवान: हल्क", "suffix": "हलवान: गेहुँआ त्वचा, गोरी त्वचा',\n '🧑🏽‍🫯‍🧑🏼' => 'पहलवान: गेहुँआ त्वचा, हल्की गोरी त्वचा',\n '🧑🏽‍🫯‍🧑🏾' => 'पहलवान: गेहुँआ त्वचा, हल्की साँवली त्वचा',\n '🧑🏽‍🫯‍🧑🏿' => 'पहलवान: गेहुँआ त्वचा, साँवली त्वचा',\n '🧑🏾‍🫯‍🧑🏻' => 'पहलवान: हल्की साँवली त्वचा, ग", "middle": "ी गोरी त्वचा, गोरी त्वचा',\n '🧑🏼‍🫯‍🧑🏽' => 'पहलवान: हल्की गोरी त्वचा, गेहुँआ त्वचा',\n '🧑🏼‍🫯‍🧑🏾' => 'पहलवान: हल्की गोरी त्वचा, हल्की साँवली त्वचा',\n '🧑🏼‍🫯‍🧑🏿' => 'पहलवान: हल्की गोरी त्वचा, साँवली त्वचा',\n '🧑🏽‍🫯‍🧑🏻' => 'प", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-hi.php", "language": "php", "file_size": 367983, "cut_index": 7068, "middle_length": 229}} {"prefix": "үресшілер: 4-тері түсі 3-тері түрі',\n '🧑🏽‍🫯‍🧑🏾' => 'күресшілер: 4-тері түсі 5-тері түсі',\n '🧑🏽‍🫯‍🧑🏿' => 'күресшілер: 4-тері түсі 6-тері түсі',\n '🧑🏾‍🫯‍🧑🏻' => 'күресшілер: 5-тері түсі 1–2 тері түсі',\n '🧑🏾‍🫯‍🧑🏼' => 'күресшілер: 5-тері түсі 3-тері түрі',\n '🧑🏾‍🫯‍🧑🏽' => 'күресшілер: 5-тері түсі 4-тері түсі',\n '🧑🏾‍🫯‍🧑🏿' => 'күресшілер: 5-тері түсі 6-тері түсі',\n '🧑🏿‍🫯‍🧑🏻' => 'күресшілер: 6-тері түсі 1–2 тері түсі',\n '🧑🏿‍🫯‍🧑🏼' => 'күресшілер: 6-тері түсі 3-тері түрі',\n '🧑🏿‍🫯‍🧑🏽' => 'күрес", "suffix": "❤‍🧑🏾' => 'махаббат: адам адам 1–2 тері түсі 5-тері түсі',\n '🧑🏻‍❤‍🧑🏿' => 'махаббат: адам адам 1–2 тері түсі 6-тері түсі',\n '🧑🏼‍❤‍🧑🏻' => 'махаббат: адам адам 3-тері түрі 1–2 тері түсі',\n '🧑🏼‍❤‍🧑🏽' => 'махаббат: адам адам 3-тері түрі 4-тері түсі',\n ", "middle": "шілер: 6-тері түсі 4-тері түсі',\n '🧑🏿‍🫯‍🧑🏾' => 'күресшілер: 6-тері түсі 5-тері түсі',\n '🧑🏻‍❤‍🧑🏼' => 'махаббат: адам адам 1–2 тері түсі 3-тері түрі',\n '🧑🏻‍❤‍🧑🏽' => 'махаббат: адам адам 1–2 тері түсі 4-тері түсі',\n '🧑🏻‍", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-kk.php", "language": "php", "file_size": 262085, "cut_index": 7068, "middle_length": 229}} {"prefix": " gaišs ādas tonis',\n '👩🏻‍❤‍💋‍👩🏼' => 'skūpsts: sieviete, sieviete, gaišs ādas tonis un vidēji gaišs ādas tonis',\n '👩🏻‍❤‍💋‍👩🏽' => 'skūpsts: sieviete, sieviete, gaišs ādas tonis un vidējs ādas tonis',\n '👩🏻‍❤‍💋‍👩🏾' => 'skūpsts: sieviete, sieviete, gaišs ādas tonis un vidēji tumšs ādas tonis',\n '👩🏻‍❤‍💋‍👩🏿' => 'skūpsts: sieviete, sieviete, gaišs ādas tonis un tumšs ādas tonis',\n '👩🏼‍❤‍💋‍👩🏻' => 'skūpsts: sieviete, sieviete, vidēji gaišs ādas tonis un gaišs ādas tonis',\n '👩🏼‍❤‍💋‍👩🏼' => 'skūpsts: s", "suffix": "šs ādas tonis',\n '👩🏼‍❤‍💋‍👩🏿' => 'skūpsts: sieviete, sieviete, vidēji gaišs ādas tonis un tumšs ādas tonis',\n '👩🏽‍❤‍💋‍👩🏻' => 'skūpsts: sieviete, sieviete, vidējs ādas tonis un gaišs ādas tonis',\n '👩🏽‍❤‍💋‍👩🏼' => 'skūpsts: sieviete, sieviete, vidējs ", "middle": "ieviete, sieviete un vidēji gaišs ādas tonis',\n '👩🏼‍❤‍💋‍👩🏽' => 'skūpsts: sieviete, sieviete, vidēji gaišs ādas tonis un vidējs ādas tonis',\n '👩🏼‍❤‍💋‍👩🏾' => 'skūpsts: sieviete, sieviete, vidēji gaišs ādas tonis un vidēji tum", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-lv.php", "language": "php", "file_size": 226368, "cut_index": 7068, "middle_length": 229}} {"prefix": "farbe',\n '👩🏿‍❤‍💋‍👨🏾' => 'sich küssendes Paar: Frau, Mann, dunkle Hautfarbe und mitteldunkle Hautfarbe',\n '👩🏿‍❤‍💋‍👨🏿' => 'sich küssendes Paar: Frau, Mann und dunkle Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏻' => 'sich küssendes Paar: Frau, Frau und helle Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏼' => 'sich küssendes Paar: Frau, Frau, helle Hautfarbe und mittelhelle Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏽' => 'sich küssendes Paar: Frau, Frau, helle Hautfarbe und mittlere Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏾' => 'sich küssendes Paar: Frau, Frau, helle Hautfa", "suffix": "‍❤‍💋‍👩🏼' => 'sich küssendes Paar: Frau, Frau und mittelhelle Hautfarbe',\n '👩🏼‍❤‍💋‍👩🏽' => 'sich küssendes Paar: Frau, Frau, mittelhelle Hautfarbe und mittlere Hautfarbe',\n '👩🏼‍❤‍💋‍👩🏾' => 'sich küssendes Paar: Frau, Frau, mittelhelle Hautfarbe und mitt", "middle": "rbe und mitteldunkle Hautfarbe',\n '👩🏻‍❤‍💋‍👩🏿' => 'sich küssendes Paar: Frau, Frau, helle Hautfarbe und dunkle Hautfarbe',\n '👩🏼‍❤‍💋‍👩🏻' => 'sich küssendes Paar: Frau, Frau, mittelhelle Hautfarbe und helle Hautfarbe',\n '👩🏼", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-de_ch.php", "language": "php", "file_size": 212737, "cut_index": 7068, "middle_length": 229}} {"prefix": ", σκούρος τόνος δέρματος, ανοιχτόχρωμος τόνος δέρματος',\n '👩🏿‍❤‍💋‍👨🏼' => 'φιλί: γυναίκα, άντρας, σκούρος τόνος δέρματος, μεσαίος-ανοιχτόχρωμος τόνος δέρματος',\n '👩🏿‍❤‍💋‍👨🏽' => 'φιλί: γυναίκα, άντρας, σκούρος τόνος δέρματος, μεσαίος τόνος δέρματος',\n '👩🏿‍❤‍💋‍👨🏾' => 'φιλί: γυναίκα, άντρας, σκούρος τόνος δέρματος, μεσαίος-σκούρος τόνος δέρματος',\n '👩🏿‍❤‍💋‍👨🏿' => 'φιλί: γυναίκα, άντρας, σκούρος τόνος δέρματος',\n '👩🏻‍❤‍💋‍👩🏻' => 'φιλί: γυναίκα, γυναίκα, ανοιχτόχρωμος τόνος δέρματος',\n '👩🏻‍❤‍💋‍👩🏼", "suffix": "κα, γυναίκα, ανοιχτόχρωμος τόνος δέρματος, μεσαίος-σκούρος τόνος δέρματος',\n '👩🏻‍❤‍💋‍👩🏿' => 'φιλί: γυναίκα, γυναίκα, ανοιχτόχρωμος τόνος δέρματος, σκούρος τόνος δέρματος',\n '👩🏼‍❤‍💋‍👩🏻' => 'φιλί: γυναίκα, γυναίκα, μεσαίος-ανοιχτόχρωμος τόνος δέρματος,", "middle": "' => 'φιλί: γυναίκα, γυναίκα, ανοιχτόχρωμος τόνος δέρματος, μεσαίος-ανοιχτόχρωμος τόνος δέρματος',\n '👩🏻‍❤‍💋‍👩🏽' => 'φιλί: γυναίκα, γυναίκα, ανοιχτόχρωμος τόνος δέρματος, μεσαίος τόνος δέρματος',\n '👩🏻‍❤‍💋‍👩🏾' => 'φιλί: γυναί", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-el.php", "language": "php", "file_size": 359818, "cut_index": 7068, "middle_length": 229}} {"prefix": "🏾‍❤‍💋‍👩🏼' => 'kiss: woman, woman, medium-dark skin tone, medium-light skin tone',\n '👩🏾‍❤‍💋‍👩🏽' => 'kiss: woman, woman, medium-dark skin tone, medium skin tone',\n '👩🏾‍❤‍💋‍👩🏾' => 'kiss: woman, woman, medium-dark skin tone',\n '👩🏾‍❤‍💋‍👩🏿' => 'kiss: woman, woman, medium-dark skin tone, dark skin tone',\n '👩🏿‍❤‍💋‍👩🏻' => 'kiss: woman, woman, dark skin tone, light skin tone',\n '👩🏿‍❤‍💋‍👩🏼' => 'kiss: woman, woman, dark skin tone, medium-light skin tone',\n '👩🏿‍❤‍💋‍👩🏽' => 'kiss: woman, woman, dark skin", "suffix": "skin tone',\n '🧑🏻‍🫯‍🧑🏽' => 'people wrestling: light skin tone, medium skin tone',\n '🧑🏻‍🫯‍🧑🏾' => 'people wrestling: light skin tone, medium-dark skin tone',\n '🧑🏻‍🫯‍🧑🏿' => 'people wrestling: light skin tone, dark skin tone',\n '🧑🏼‍🫯‍🧑🏻' => 'people ", "middle": " tone, medium skin tone',\n '👩🏿‍❤‍💋‍👩🏾' => 'kiss: woman, woman, dark skin tone, medium-dark skin tone',\n '👩🏿‍❤‍💋‍👩🏿' => 'kiss: woman, woman, dark skin tone',\n '🧑🏻‍🫯‍🧑🏼' => 'people wrestling: light skin tone, medium-light ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-en_001.php", "language": "php", "file_size": 202019, "cut_index": 7068, "middle_length": 229}} {"prefix": "🏾‍❤‍💋‍👩🏼' => 'kiss: woman, woman, medium-dark skin tone, medium-light skin tone',\n '👩🏾‍❤‍💋‍👩🏽' => 'kiss: woman, woman, medium-dark skin tone, medium skin tone',\n '👩🏾‍❤‍💋‍👩🏾' => 'kiss: woman, woman, medium-dark skin tone',\n '👩🏾‍❤‍💋‍👩🏿' => 'kiss: woman, woman, medium-dark skin tone, dark skin tone',\n '👩🏿‍❤‍💋‍👩🏻' => 'kiss: woman, woman, dark skin tone, light skin tone',\n '👩🏿‍❤‍💋‍👩🏼' => 'kiss: woman, woman, dark skin tone, medium-light skin tone',\n '👩🏿‍❤‍💋‍👩🏽' => 'kiss: woman, woman, dark skin", "suffix": "skin tone',\n '🧑🏻‍🫯‍🧑🏽' => 'people wrestling: light skin tone, medium skin tone',\n '🧑🏻‍🫯‍🧑🏾' => 'people wrestling: light skin tone, medium-dark skin tone',\n '🧑🏻‍🫯‍🧑🏿' => 'people wrestling: light skin tone, dark skin tone',\n '🧑🏼‍🫯‍🧑🏻' => 'people ", "middle": " tone, medium skin tone',\n '👩🏿‍❤‍💋‍👩🏾' => 'kiss: woman, woman, dark skin tone, medium-dark skin tone',\n '👩🏿‍❤‍💋‍👩🏿' => 'kiss: woman, woman, dark skin tone',\n '🧑🏻‍🫯‍🧑🏼' => 'people wrestling: light skin tone, medium-light ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-en_ca.php", "language": "php", "file_size": 202143, "cut_index": 7068, "middle_length": 229}} {"prefix": "🏾‍❤‍💋‍👩🏼' => 'kiss: woman, woman, medium-dark skin tone, medium-light skin tone',\n '👩🏾‍❤‍💋‍👩🏽' => 'kiss: woman, woman, medium-dark skin tone, medium skin tone',\n '👩🏾‍❤‍💋‍👩🏾' => 'kiss: woman, woman, medium-dark skin tone',\n '👩🏾‍❤‍💋‍👩🏿' => 'kiss: woman, woman, medium-dark skin tone, dark skin tone',\n '👩🏿‍❤‍💋‍👩🏻' => 'kiss: woman, woman, dark skin tone, light skin tone',\n '👩🏿‍❤‍💋‍👩🏼' => 'kiss: woman, woman, dark skin tone, medium-light skin tone',\n '👩🏿‍❤‍💋‍👩🏽' => 'kiss: woman, woman, dark skin", "suffix": "skin tone',\n '🧑🏻‍🫯‍🧑🏽' => 'people wrestling: light skin tone, medium skin tone',\n '🧑🏻‍🫯‍🧑🏾' => 'people wrestling: light skin tone, medium-dark skin tone',\n '🧑🏻‍🫯‍🧑🏿' => 'people wrestling: light skin tone, dark skin tone',\n '🧑🏼‍🫯‍🧑🏻' => 'people ", "middle": " tone, medium skin tone',\n '👩🏿‍❤‍💋‍👩🏾' => 'kiss: woman, woman, dark skin tone, medium-dark skin tone',\n '👩🏿‍❤‍💋‍👩🏿' => 'kiss: woman, woman, dark skin tone',\n '🧑🏻‍🫯‍🧑🏼' => 'people wrestling: light skin tone, medium-light ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-en_in.php", "language": "php", "file_size": 202165, "cut_index": 7068, "middle_length": 229}} {"prefix": " '👩🏾‍❤‍💋‍👨🏿' => 'pareja besándose: mujer, hombre, tono de piel oscuro medio, tono de piel oscuro',\n '👩🏿‍❤‍💋‍👨🏻' => 'pareja besándose: mujer, hombre, tono de piel oscuro, tono de piel claro',\n '👩🏿‍❤‍💋‍👨🏼' => 'pareja besándose: mujer, hombre, tono de piel oscuro, tono de piel claro medio',\n '👩🏿‍❤‍💋‍👨🏽' => 'pareja besándose: mujer, hombre, tono de piel oscuro, tono de piel medio',\n '👩🏿‍❤‍💋‍👨🏾' => 'pareja besándose: mujer, hombre, tono de piel oscuro, tono de piel oscuro medio',\n '👩🏿‍❤‍💋‍👨🏿' =>", "suffix": " '👩🏻‍❤‍💋‍👩🏽' => 'pareja besándose: mujer, mujer, tono de piel claro, tono de piel medio',\n '👩🏻‍❤‍💋‍👩🏾' => 'pareja besándose: mujer, mujer, tono de piel claro, tono de piel oscuro medio',\n '👩🏻‍❤‍💋‍👩🏿' => 'pareja besándose: mujer, mujer, tono de pie", "middle": " 'pareja besándose: mujer, hombre, tono de piel oscuro',\n '👩🏻‍❤‍💋‍👩🏻' => 'pareja besándose: mujer, mujer, tono de piel claro',\n '👩🏻‍❤‍💋‍👩🏼' => 'pareja besándose: mujer, mujer, tono de piel claro, tono de piel claro medio',\n", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-es_419.php", "language": "php", "file_size": 228538, "cut_index": 7068, "middle_length": 229}} {"prefix": "🏾‍❤‍💋‍👩🏼' => 'kiss: woman, woman, medium-dark skin tone, medium-light skin tone',\n '👩🏾‍❤‍💋‍👩🏽' => 'kiss: woman, woman, medium-dark skin tone, medium skin tone',\n '👩🏾‍❤‍💋‍👩🏾' => 'kiss: woman, woman, medium-dark skin tone',\n '👩🏾‍❤‍💋‍👩🏿' => 'kiss: woman, woman, medium-dark skin tone, dark skin tone',\n '👩🏿‍❤‍💋‍👩🏻' => 'kiss: woman, woman, dark skin tone, light skin tone',\n '👩🏿‍❤‍💋‍👩🏼' => 'kiss: woman, woman, dark skin tone, medium-light skin tone',\n '👩🏿‍❤‍💋‍👩🏽' => 'kiss: woman, woman, dark skin", "suffix": "skin tone',\n '🧑🏻‍🫯‍🧑🏽' => 'people wrestling: light skin tone, medium skin tone',\n '🧑🏻‍🫯‍🧑🏾' => 'people wrestling: light skin tone, medium-dark skin tone',\n '🧑🏻‍🫯‍🧑🏿' => 'people wrestling: light skin tone, dark skin tone',\n '🧑🏼‍🫯‍🧑🏻' => 'people ", "middle": " tone, medium skin tone',\n '👩🏿‍❤‍💋‍👩🏾' => 'kiss: woman, woman, dark skin tone, medium-dark skin tone',\n '👩🏿‍❤‍💋‍👩🏿' => 'kiss: woman, woman, dark skin tone',\n '🧑🏻‍🫯‍🧑🏼' => 'people wrestling: light skin tone, medium-light ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-en.php", "language": "php", "file_size": 202165, "cut_index": 7068, "middle_length": 229}} {"prefix": "🏾‍❤‍💋‍👩🏼' => 'kiss: woman, woman, medium-dark skin tone, medium-light skin tone',\n '👩🏾‍❤‍💋‍👩🏽' => 'kiss: woman, woman, medium-dark skin tone, medium skin tone',\n '👩🏾‍❤‍💋‍👩🏾' => 'kiss: woman, woman, medium-dark skin tone',\n '👩🏾‍❤‍💋‍👩🏿' => 'kiss: woman, woman, medium-dark skin tone, dark skin tone',\n '👩🏿‍❤‍💋‍👩🏻' => 'kiss: woman, woman, dark skin tone, light skin tone',\n '👩🏿‍❤‍💋‍👩🏼' => 'kiss: woman, woman, dark skin tone, medium-light skin tone',\n '👩🏿‍❤‍💋‍👩🏽' => 'kiss: woman, woman, dark skin", "suffix": "skin tone',\n '🧑🏻‍🫯‍🧑🏽' => 'people wrestling: light skin tone, medium skin tone',\n '🧑🏻‍🫯‍🧑🏾' => 'people wrestling: light skin tone, medium-dark skin tone',\n '🧑🏻‍🫯‍🧑🏿' => 'people wrestling: light skin tone, dark skin tone',\n '🧑🏼‍🫯‍🧑🏻' => 'people ", "middle": " tone, medium skin tone',\n '👩🏿‍❤‍💋‍👩🏾' => 'kiss: woman, woman, dark skin tone, medium-dark skin tone',\n '👩🏿‍❤‍💋‍👩🏿' => 'kiss: woman, woman, dark skin tone',\n '🧑🏻‍🫯‍🧑🏼' => 'people wrestling: light skin tone, medium-light ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-en_au.php", "language": "php", "file_size": 202305, "cut_index": 7068, "middle_length": 229}} {"prefix": "> 'se póškajucy pórik: žeńska, muski, śamna barwa kóže a swětła barwa kóže',\n '👩🏿‍❤‍💋‍👨🏼' => 'se póškajucy pórik: žeńska, muski, śamna barwa kóže a srjejźnoswětła barwa kóže',\n '👩🏿‍❤‍💋‍👨🏽' => 'se póškajucy pórik: žeńska, muski, śamna barwa kóže a wósrědna barwa kóže',\n '👩🏿‍❤‍💋‍👨🏾' => 'se póškajucy pórik: žeńska, muski, śamna barwa kóže a srjejźnośamna barwa kóže',\n '👩🏿‍❤‍💋‍👨🏿' => 'se póškajucy pórik: žeńska, muski a śamna barwa kóže',\n '👩🏻‍❤‍💋‍👩🏻' => 'se póškajucy pórik: žeńska, žeńska a swět", "suffix": "‍👩🏾' => 'se póškajucy pórik: žeńska, žeńska, swětła barwa kóže a srjejźnośamna barwa kóže',\n '👩🏻‍❤‍💋‍👩🏿' => 'se póškajucy pórik: žeńska, žeńska, swětła barwa kóže a śamna barwa kóže',\n '👩🏼‍❤‍💋‍👩🏻' => 'se póškajucy pórik: žeńska, žeńska, srjejźnoswětł", "middle": "ła barwa kóže',\n '👩🏻‍❤‍💋‍👩🏼' => 'se póškajucy pórik: žeńska, žeńska, swětła barwa kóže a srjejźnoswětła barwa kóže',\n '👩🏻‍❤‍💋‍👩🏽' => 'se póškajucy pórik: žeńska, žeńska, swětła barwa kóže a wósrědna barwa kóže',\n '👩🏻‍❤‍💋", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-dsb.php", "language": "php", "file_size": 236271, "cut_index": 7068, "middle_length": 229}} {"prefix": "no de piel claro, tono de piel oscuro medio',\n '👩🏻‍❤‍💋‍👩🏿' => 'beso: mujer, mujer, tono de piel claro, tono de piel oscuro',\n '👩🏼‍❤‍💋‍👩🏻' => 'beso: mujer, mujer, tono de piel claro medio, tono de piel claro',\n '👩🏼‍❤‍💋‍👩🏼' => 'beso: mujer, mujer, tono de piel claro medio',\n '👩🏼‍❤‍💋‍👩🏽' => 'beso: mujer, mujer, tono de piel claro medio, tono de piel medio',\n '👩🏼‍❤‍💋‍👩🏾' => 'beso: mujer, mujer, tono de piel claro medio, tono de piel oscuro medio',\n '👩🏼‍❤‍💋‍👩🏿' => 'beso: mujer, mujer, tono de p", "suffix": "so: mujer, mujer, tono de piel medio',\n '👩🏽‍❤‍💋‍👩🏾' => 'beso: mujer, mujer, tono de piel medio, tono de piel oscuro medio',\n '👩🏽‍❤‍💋‍👩🏿' => 'beso: mujer, mujer, tono de piel medio, tono de piel oscuro',\n '👩🏾‍❤‍💋‍👩🏻' => 'beso: mujer, mujer, tono de", "middle": "iel claro medio, tono de piel oscuro',\n '👩🏽‍❤‍💋‍👩🏻' => 'beso: mujer, mujer, tono de piel medio, tono de piel claro',\n '👩🏽‍❤‍💋‍👩🏼' => 'beso: mujer, mujer, tono de piel medio, tono de piel claro medio',\n '👩🏽‍❤‍💋‍👩🏽' => 'be", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-es.php", "language": "php", "file_size": 227489, "cut_index": 7068, "middle_length": 229}} {"prefix": "🏾‍❤‍💋‍👩🏼' => 'kiss: woman, woman, medium-dark skin tone, medium-light skin tone',\n '👩🏾‍❤‍💋‍👩🏽' => 'kiss: woman, woman, medium-dark skin tone, medium skin tone',\n '👩🏾‍❤‍💋‍👩🏾' => 'kiss: woman, woman, medium-dark skin tone',\n '👩🏾‍❤‍💋‍👩🏿' => 'kiss: woman, woman, medium-dark skin tone, dark skin tone',\n '👩🏿‍❤‍💋‍👩🏻' => 'kiss: woman, woman, dark skin tone, light skin tone',\n '👩🏿‍❤‍💋‍👩🏼' => 'kiss: woman, woman, dark skin tone, medium-light skin tone',\n '👩🏿‍❤‍💋‍👩🏽' => 'kiss: woman, woman, dark skin", "suffix": "skin tone',\n '🧑🏻‍🫯‍🧑🏽' => 'people wrestling: light skin tone, medium skin tone',\n '🧑🏻‍🫯‍🧑🏾' => 'people wrestling: light skin tone, medium-dark skin tone',\n '🧑🏻‍🫯‍🧑🏿' => 'people wrestling: light skin tone, dark skin tone',\n '🧑🏼‍🫯‍🧑🏻' => 'people ", "middle": " tone, medium skin tone',\n '👩🏿‍❤‍💋‍👩🏾' => 'kiss: woman, woman, dark skin tone, medium-dark skin tone',\n '👩🏿‍❤‍💋‍👩🏿' => 'kiss: woman, woman, dark skin tone',\n '🧑🏻‍🫯‍🧑🏼' => 'people wrestling: light skin tone, medium-light ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-en_gb.php", "language": "php", "file_size": 202168, "cut_index": 7068, "middle_length": 229}} {"prefix": "l claro y tono de piel medio',\n '👩🏻‍❤‍💋‍👩🏾' => 'beso: mujer, mujer, tono de piel claro y tono de piel oscuro medio',\n '👩🏻‍❤‍💋‍👩🏿' => 'beso: mujer, mujer, tono de piel claro y tono de piel oscuro',\n '👩🏼‍❤‍💋‍👩🏻' => 'beso: mujer, mujer, tono de piel claro medio y tono de piel claro',\n '👩🏼‍❤‍💋‍👩🏼' => 'beso: mujer, mujer y tono de piel claro medio',\n '👩🏼‍❤‍💋‍👩🏽' => 'beso: mujer, mujer, tono de piel claro medio y tono de piel medio',\n '👩🏼‍❤‍💋‍👩🏾' => 'beso: mujer, mujer, tono de piel claro medio ", "suffix": "jer, mujer, tono de piel medio y tono de piel claro medio',\n '👩🏽‍❤‍💋‍👩🏽' => 'beso: mujer, mujer y tono de piel medio',\n '👩🏽‍❤‍💋‍👩🏾' => 'beso: mujer, mujer, tono de piel medio y tono de piel oscuro medio',\n '👩🏽‍❤‍💋‍👩🏿' => 'beso: mujer, mujer, tono ", "middle": "y tono de piel oscuro medio',\n '👩🏼‍❤‍💋‍👩🏿' => 'beso: mujer, mujer, tono de piel claro medio y tono de piel oscuro',\n '👩🏽‍❤‍💋‍👩🏻' => 'beso: mujer, mujer, tono de piel medio y tono de piel claro',\n '👩🏽‍❤‍💋‍👩🏼' => 'beso: mu", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-es_us.php", "language": "php", "file_size": 227841, "cut_index": 7068, "middle_length": 229}} {"prefix": "ine, naine, keskmine nahatoon, keskmiselt hele nahatoon',\n '👩🏽‍❤‍💋‍👩🏽' => 'musi: naine, naine, keskmine nahatoon',\n '👩🏽‍❤‍💋‍👩🏾' => 'musi: naine, naine, keskmine nahatoon, keskmiselt tume nahatoon',\n '👩🏽‍❤‍💋‍👩🏿' => 'musi: naine, naine, keskmine nahatoon, tume nahatoon',\n '👩🏾‍❤‍💋‍👩🏻' => 'musi: naine, naine, keskmiselt tume nahatoon, hele nahatoon',\n '👩🏾‍❤‍💋‍👩🏼' => 'musi: naine, naine, keskmiselt tume nahatoon, keskmiselt hele nahatoon',\n '👩🏾‍❤‍💋‍👩🏽' => 'musi: naine, naine, keskmiselt tume na", "suffix": "n, hele nahatoon',\n '👩🏿‍❤‍💋‍👩🏼' => 'musi: naine, naine, tume nahatoon, keskmiselt hele nahatoon',\n '👩🏿‍❤‍💋‍👩🏽' => 'musi: naine, naine, tume nahatoon, keskmine nahatoon',\n '👩🏿‍❤‍💋‍👩🏾' => 'musi: naine, naine, tume nahatoon, keskmiselt tume nahatoon'", "middle": "hatoon, keskmine nahatoon',\n '👩🏾‍❤‍💋‍👩🏾' => 'musi: naine, naine, keskmiselt tume nahatoon',\n '👩🏾‍❤‍💋‍👩🏿' => 'musi: naine, naine, keskmiselt tume nahatoon, tume nahatoon',\n '👩🏿‍❤‍💋‍👩🏻' => 'musi: naine, naine, tume nahatoo", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-et.php", "language": "php", "file_size": 208661, "cut_index": 7068, "middle_length": 229}} {"prefix": "سی',\n '🧑🏾‍🫯‍🧑🏻' => 'کُشتی‌گیران: پوست گندمی،‏ پوست سفید',\n '🧑🏾‍🫯‍🧑🏼' => 'کُشتی‌گیران: پوست گندمی،‏ پوست روشن',\n '🧑🏾‍🫯‍🧑🏽' => 'کُشتی‌گیران: پوست گندمی،‏ پوست طلایی',\n '🧑🏾‍🫯‍🧑🏿' => 'کُشتی‌گیران: پوست گندمی،‏ پوست آبنوسی',\n '🧑🏿‍🫯‍🧑🏻' => 'کُشتی‌گیران: پوست آبنوسی،‏ پوست سفید',\n '🧑🏿‍🫯‍🧑🏼' => 'کُشتی‌گیران: پوست آبنوسی،‏ پوست روشن',\n '🧑🏿‍🫯‍🧑🏽' => 'کُشتی‌گیران: پوست آبنوسی،‏ پوست طلایی',\n '🧑🏿‍🫯‍🧑🏾' => 'کُشتی‌گیران: پوست آبنوسی،‏ پوست گندمی',\n '🧑🏻‍❤‍🧑🏼' => 'زوج عاشق: شخص،‏ شخص،‏ پوست سفید،", "suffix": "> 'زوج عاشق: شخص،‏ شخص،‏ پوست روشن، و پوست سفید',\n '🧑🏼‍❤‍🧑🏽' => 'زوج عاشق: شخص،‏ شخص،‏ پوست روشن، و پوست طلایی',\n '🧑🏼‍❤‍🧑🏾' => 'زوج عاشق: شخص،‏ شخص،‏ پوست روشن، و پوست گندمی',\n '🧑🏼‍❤‍🧑🏿' => 'زوج عاشق: شخص،‏ شخص،‏ پوست روشن، و پوست آبنوسی',\n '🧑🏽", "middle": " و پوست روشن',\n '🧑🏻‍❤‍🧑🏽' => 'زوج عاشق: شخص،‏ شخص،‏ پوست سفید، و پوست طلایی',\n '🧑🏻‍❤‍🧑🏾' => 'زوج عاشق: شخص،‏ شخص،‏ پوست سفید، و پوست گندمی',\n '🧑🏻‍❤‍🧑🏿' => 'زوج عاشق: شخص،‏ شخص،‏ پوست سفید، و پوست آبنوسی',\n '🧑🏼‍❤‍🧑🏻' =", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-fa.php", "language": "php", "file_size": 240545, "cut_index": 7068, "middle_length": 229}} {"prefix": "aghahalikan: babae, lalaki, katamtamang dark na kulay ng balat, katamtamang kulay ng balat',\n '👩🏾‍❤‍💋‍👨🏾' => 'maghahalikan: babae, lalaki, katamtamang dark na kulay ng balat',\n '👩🏾‍❤‍💋‍👨🏿' => 'maghahalikan: babae, lalaki, katamtamang dark na kulay ng balat, dark na kulay ng balat',\n '👩🏿‍❤‍💋‍👨🏻' => 'maghahalikan: babae, lalaki, dark na kulay ng balat, light na kulay ng balat',\n '👩🏿‍❤‍💋‍👨🏼' => 'maghahalikan: babae, lalaki, dark na kulay ng balat, katamtamang light na kulay ng balat',\n '👩🏿‍❤‍💋‍👨", "suffix": "an: babae, lalaki, dark na kulay ng balat',\n '👩🏻‍❤‍💋‍👩🏻' => 'maghahalikan: babae, babae, light na kulay ng balat',\n '👩🏻‍❤‍💋‍👩🏼' => 'maghahalikan: babae, babae, light na kulay ng balat, katamtamang light na kulay ng balat',\n '👩🏻‍❤‍💋‍👩🏽' => 'maghaha", "middle": "🏽' => 'maghahalikan: babae, lalaki, dark na kulay ng balat, katamtamang kulay ng balat',\n '👩🏿‍❤‍💋‍👨🏾' => 'maghahalikan: babae, lalaki, dark na kulay ng balat, katamtamang dark na kulay ng balat',\n '👩🏿‍❤‍💋‍👨🏿' => 'maghahalik", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-fil.php", "language": "php", "file_size": 242557, "cut_index": 7068, "middle_length": 229}} {"prefix": "ast: kona, kona, ljósur húðarlitur, miðalljósur húðarlitur',\n '👩🏻‍❤‍💋‍👩🏽' => 'tvey íð mussast: kona, kona, ljósur húðarlitur, miðal húðarlitur',\n '👩🏻‍❤‍💋‍👩🏾' => 'tvey íð mussast: kona, kona, ljósur húðarlitur, miðalmyrkur húðarlitur',\n '👩🏻‍❤‍💋‍👩🏿' => 'tvey íð mussast: kona, kona, ljósur húðarlitur, myrkur húðarlitur',\n '👩🏼‍❤‍💋‍👩🏻' => 'tvey íð mussast: kona, kona, miðalljósur húðarlitur, ljósur húðarlitur',\n '👩🏼‍❤‍💋‍👩🏼' => 'tvey íð mussast: kona, kona, miðalljósur húðarlitur',\n '👩🏼‍❤‍💋‍👩🏽' ", "suffix": "jósur húðarlitur, myrkur húðarlitur',\n '👩🏽‍❤‍💋‍👩🏻' => 'tvey íð mussast: kona, kona, miðal húðarlitur, ljósur húðarlitur',\n '👩🏽‍❤‍💋‍👩🏼' => 'tvey íð mussast: kona, kona, miðal húðarlitur, miðalljósur húðarlitur',\n '👩🏽‍❤‍💋‍👩🏽' => 'tvey íð mussast: ko", "middle": "=> 'tvey íð mussast: kona, kona, miðalljósur húðarlitur, miðal húðarlitur',\n '👩🏼‍❤‍💋‍👩🏾' => 'tvey íð mussast: kona, kona, miðalljósur húðarlitur, miðalmyrkur húðarlitur',\n '👩🏼‍❤‍💋‍👩🏿' => 'tvey íð mussast: kona, kona, miðall", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-fo.php", "language": "php", "file_size": 222720, "cut_index": 7068, "middle_length": 229}} {"prefix": ",\n '👩🏼‍❤‍💋‍👩🏽' => 'beso: mujer, mujer, tono de piel claro medio, tono de piel medio',\n '👩🏼‍❤‍💋‍👩🏾' => 'beso: mujer, mujer, tono de piel claro medio, tono de piel oscuro medio',\n '👩🏼‍❤‍💋‍👩🏿' => 'beso: mujer, mujer, tono de piel claro medio, tono de piel oscuro',\n '👩🏽‍❤‍💋‍👩🏻' => 'beso: mujer, mujer, tono de piel medio, tono de piel claro',\n '👩🏽‍❤‍💋‍👩🏼' => 'beso: mujer, mujer, tono de piel medio, tono de piel claro medio',\n '👩🏽‍❤‍💋‍👩🏽' => 'beso: mujer, mujer, tono de piel medio',\n '👩🏽‍❤‍💋‍", "suffix": " de piel claro',\n '👩🏾‍❤‍💋‍👩🏼' => 'beso: mujer, mujer, tono de piel oscuro medio, tono de piel claro medio',\n '👩🏾‍❤‍💋‍👩🏽' => 'beso: mujer, mujer, tono de piel oscuro medio, tono de piel medio',\n '👩🏾‍❤‍💋‍👩🏾' => 'beso: mujer, mujer, tono de piel oscu", "middle": "👩🏾' => 'beso: mujer, mujer, tono de piel medio, tono de piel oscuro medio',\n '👩🏽‍❤‍💋‍👩🏿' => 'beso: mujer, mujer, tono de piel medio, tono de piel oscuro',\n '👩🏾‍❤‍💋‍👩🏻' => 'beso: mujer, mujer, tono de piel oscuro medio, tono", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-es_mx.php", "language": "php", "file_size": 226553, "cut_index": 7068, "middle_length": 229}} {"prefix": " mota eta bitarteko azal-tonua',\n '👩🏿‍❤‍💋‍👩🏾' => 'musu: emakumea, emakumea, 6. mota eta 5. mota',\n '👩🏿‍❤‍💋‍👩🏿' => 'musu: emakumea, emakumea eta 6. mota',\n '🧑🏻‍🫯‍🧑🏼' => 'borrokalariak: 1–2. mota eta 3. mota',\n '🧑🏻‍🫯‍🧑🏽' => 'borrokalariak: 1–2. mota eta bitarteko azal-tonua',\n '🧑🏻‍🫯‍🧑🏾' => 'borrokalariak: 1–2. mota eta 5. mota',\n '🧑🏻‍🫯‍🧑🏿' => 'borrokalariak: 1–2. mota eta 6. mota',\n '🧑🏼‍🫯‍🧑🏻' => 'borrokalariak: 3. mota eta 1–2. mota',\n '🧑🏼‍🫯‍🧑🏽' => 'borrokalariak: 3. mota eta bitarteko", "suffix": "tarteko azal-tonua eta 3. mota',\n '🧑🏽‍🫯‍🧑🏾' => 'borrokalariak: bitarteko azal-tonua eta 5. mota',\n '🧑🏽‍🫯‍🧑🏿' => 'borrokalariak: bitarteko azal-tonua eta 6. mota',\n '🧑🏾‍🫯‍🧑🏻' => 'borrokalariak: 5. mota eta 1–2. mota',\n '🧑🏾‍🫯‍🧑🏼' => 'borrokalaria", "middle": " azal-tonua',\n '🧑🏼‍🫯‍🧑🏾' => 'borrokalariak: 3. mota eta 5. mota',\n '🧑🏼‍🫯‍🧑🏿' => 'borrokalariak: 3. mota eta 6. mota',\n '🧑🏽‍🫯‍🧑🏻' => 'borrokalariak: bitarteko azal-tonua eta 1–2. mota',\n '🧑🏽‍🫯‍🧑🏼' => 'borrokalariak: bi", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-eu.php", "language": "php", "file_size": 207992, "cut_index": 7068, "middle_length": 229}} {"prefix": "\n '👩🏾‍❤‍💋‍👩🏻' => 'bisou : femme, femme, peau mate et peau claire',\n '👩🏾‍❤‍💋‍👩🏼' => 'bisou : femme, femme, peau mate et peau moyennement claire',\n '👩🏾‍❤‍💋‍👩🏽' => 'bisou : femme, femme, peau mate et peau légèrement mate',\n '👩🏾‍❤‍💋‍👩🏾' => 'bisou : femme, femme et peau mate',\n '👩🏾‍❤‍💋‍👩🏿' => 'bisou : femme, femme, peau mate et peau foncée',\n '👩🏿‍❤‍💋‍👩🏻' => 'bisou : femme, femme, peau foncée et peau claire',\n '👩🏿‍❤‍💋‍👩🏼' => 'bisou : femme, femme, peau foncée et peau moyennement claire',\n ", "suffix": "s faisant de la lutte : peau claire et peau moyennement claire',\n '🧑🏻‍🫯‍🧑🏽' => 'personnes faisant de la lutte : peau claire et peau légèrement mate',\n '🧑🏻‍🫯‍🧑🏾' => 'personnes faisant de la lutte : peau claire et peau mate',\n '🧑🏻‍🫯‍🧑🏿' => 'personne", "middle": "'👩🏿‍❤‍💋‍👩🏽' => 'bisou : femme, femme, peau foncée et peau légèrement mate',\n '👩🏿‍❤‍💋‍👩🏾' => 'bisou : femme, femme, peau foncée et peau mate',\n '👩🏿‍❤‍💋‍👩🏿' => 'bisou : femme, femme et peau foncée',\n '🧑🏻‍🫯‍🧑🏼' => 'personne", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-fr.php", "language": "php", "file_size": 218519, "cut_index": 7068, "middle_length": 229}} {"prefix": "𞤤𞤦𞤢𞤲𞤭𞤴𞤢𞥄',\n '🇦🇲' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤀𞤪𞤥𞤫𞤲𞤭𞤴𞤢𞥄',\n '🇦🇴' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤀𞤲𞤺𞤮𞤤𞤢𞥄',\n '🇦🇶' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤀𞤲𞤼𞤢𞤪𞤼𞤭𞤳𞤢𞥄',\n '🇦🇷' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤀𞤪𞤶𞤢𞤲𞤼𞤭𞤲𞤢𞥄',\n '🇦🇸' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤅𞤢𞤥𞤵𞤱𞤢 𞤀𞤥𞤫𞤪𞤭𞤳𞤭𞤴𞤢𞤲𞤳𞤮',\n '🇦🇹' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤌𞤼𞤭𞤪𞤧𞤢',\n '🇦🇺' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤌𞤧𞤼𞤢𞤪𞤤𞤭𞤴𞤢𞥄',\n '🇦🇼' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤀𞤪𞤵𞤦𞤢𞥄',\n '🇦🇽' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤕𞤵𞤪𞤭𞥅𞤶𞤫 𞤀𞤤𞤢𞤲𞤣',\n '🇦🇿' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤀𞥁𞤫𞤪𞤦𞤢𞤭𞤶𞤢𞥄𞤲',\n '🇧🇦' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤮𞤧𞤲𞤭𞤴𞤢 & 𞤖𞤫𞤪𞤧𞤫𞤳𞤮𞤾𞤭𞤲𞤢𞥄',\n '🇧🇧' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤢𞤪𞤦𞤫𞥅𞤣𞤮𞥅𞤧',\n '🇧🇩' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤢𞤲𞤺𞤭𞤤𞤢𞤣𞤫𞥅𞤧',\n '🇧🇪' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤫𞤤𞤶𞤭𞤳𞤢𞥄',", "suffix": " 𞤄𞤭𞤪𞤥𞤵𞤣𞤢',\n '🇧🇳' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤵𞤪𞤲𞤢𞥄𞤴',\n '🇧🇴' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤮𞤤𞤭𞥅𞤾𞤭𞤴𞤢𞥄',\n '🇧🇶' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤑𞤢𞤪𞤦𞤭𞤴𞤢𞥄 𞤖𞤮𞤤𞤢𞤲𞤣𞤭𞤴𞤢𞥄',\n '🇧🇷' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤪𞤢𞤧𞤭𞤤',\n '🇧🇸' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤢𞤸𞤢𞤥𞤢𞥄𞤧',\n '🇧🇹' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤵𞥅𞤼𞤢𞥄𞤲',\n '🇧🇻' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤅𞤵𞤪𞤭𞥅𞤪𞤫 𞤄𞤵𞥅𞤾𞤫𞥅',", "middle": "\n '🇧🇫' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤵𞤪𞤳𞤭𞤲𞤢 𞤊𞤢𞤧𞤮𞥅',\n '🇧🇬' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤵𞥅𞤤𞤺𞤢𞤪𞤭𞤴𞤢𞥄',\n '🇧🇭' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤢𞤸𞤢𞤪𞤢𞤴𞤲',\n '🇧🇮' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤵𞤪𞤵𞤲𞤣𞤭',\n '🇧🇯' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤄𞤫𞤲𞤫𞤲',\n '🇧🇱' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤: 𞤅𞤼. 𞤄𞤢𞤪𞤼𞤫𞤤𞤭𞤥𞤭',\n '🇧🇲' => '𞤼𞤵𞤼𞤢𞤱𞤢𞤤:", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ff_adlm.php", "language": "php", "file_size": 31832, "cut_index": 921, "middle_length": 229}} {"prefix": "f, jonk hidj an madel jonk hidj',\n '👩🏿‍❤‍💋‍👩🏿' => 'süüse: wüf, wüf an jonk hidj',\n '🧑🏻‍🫯‍🧑🏼' => 'persuunen kemfe: laacht hidjet an madel laacht hidj',\n '🧑🏻‍🫯‍🧑🏽' => 'persuunen kemfe: laacht hidjet an madel hidj',\n '🧑🏻‍🫯‍🧑🏾' => 'persuunen kemfe: laacht hidjet an madel jonk hidj',\n '🧑🏻‍🫯‍🧑🏿' => 'persuunen kemfe: laacht hidjet an jonk hidj',\n '🧑🏼‍🫯‍🧑🏻' => 'persuunen kemfe: madel laacht hidj an laacht hidjet',\n '🧑🏼‍🫯‍🧑🏽' => 'persuunen kemfe: madel laacht hidj an madel hidj',\n '🧑🏼‍🫯‍🧑🏾' =", "suffix": "del hidj an madel laacht hidj',\n '🧑🏽‍🫯‍🧑🏾' => 'persuunen kemfe: madel hidj an madel jonk hidj',\n '🧑🏽‍🫯‍🧑🏿' => 'persuunen kemfe: madel hidj an jonk hidj',\n '🧑🏾‍🫯‍🧑🏻' => 'persuunen kemfe: madel jonk hidj an laacht hidjet',\n '🧑🏾‍🫯‍🧑🏼' => 'persuune", "middle": "> 'persuunen kemfe: madel laacht hidj an madel jonk hidj',\n '🧑🏼‍🫯‍🧑🏿' => 'persuunen kemfe: madel laacht hidj an jonk hidj',\n '🧑🏽‍🫯‍🧑🏻' => 'persuunen kemfe: madel hidj an laacht hidjet',\n '🧑🏽‍🫯‍🧑🏼' => 'persuunen kemfe: ma", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-frr.php", "language": "php", "file_size": 178604, "cut_index": 7068, "middle_length": 229}} {"prefix": "ireannach, duine, tòna meadhanach doilleir a’ chraicinn ’s tòna meadhanach soilleir a’ chraicinn',\n '👩🏾‍❤‍💋‍👨🏽' => 'pòg: boireannach, duine, tòna meadhanach doilleir a’ chraicinn ’s tòna meadhanach a’ chraicinn',\n '👩🏾‍❤‍💋‍👨🏾' => 'pòg: boireannach, duine ’s tòna meadhanach doilleir a’ chraicinn',\n '👩🏾‍❤‍💋‍👨🏿' => 'pòg: boireannach, duine, tòna meadhanach doilleir a’ chraicinn ’s tòna doilleir a’ chraicinn',\n '👩🏿‍❤‍💋‍👨🏻' => 'pòg: boireannach, duine, tòna doilleir a’ chraicinn ’s tòna soilleir a’ ch", "suffix": ",\n '👩🏿‍❤‍💋‍👨🏾' => 'pòg: boireannach, duine, tòna doilleir a’ chraicinn ’s tòna meadhanach doilleir a’ chraicinn',\n '👩🏿‍❤‍💋‍👨🏿' => 'pòg: boireannach, duine ’s tòna doilleir a’ chraicinn',\n '👩🏻‍❤‍💋‍👩🏻' => 'pòg: boireannach, boireannach ’s tòna soill", "middle": "raicinn',\n '👩🏿‍❤‍💋‍👨🏼' => 'pòg: boireannach, duine, tòna doilleir a’ chraicinn ’s tòna meadhanach soilleir a’ chraicinn',\n '👩🏿‍❤‍💋‍👨🏽' => 'pòg: boireannach, duine, tòna doilleir a’ chraicinn ’s tòna meadhanach a’ chraicinn'", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-gd.php", "language": "php", "file_size": 267668, "cut_index": 7068, "middle_length": 229}} {"prefix": "cat:',\n '👱‍♂' => ':blond_haired_man:',\n '👱‍♀' => ':blonde_woman:',\n '🙇‍♂' => ':bowing_man:',\n '🙇‍♀' => ':bowing_woman:',\n '👰‍♀' => ':woman_with_veil:',\n '🧗‍♂' => ':climbing_man:',\n '🧗‍♀' => ':climbing_woman:',\n '👷‍♂' => ':construction_worker_man:',\n '👷‍♀' => ':construction_worker_woman:',\n '🧑‍🍳' => ':cook:',\n '👨‍🦱' => ':curly_haired_man:',\n '👩‍🦱' => ':curly_haired_woman:',\n '👯‍♂' => ':dancing_men:',\n '👯‍♀' => ':dancing_women:',\n '🧏‍♂' => ':deaf_man:',\n '🧏‍♀' =", "suffix": "actory_worker:',\n '🧚‍♂' => ':fairy_man:',\n '🧚‍♀' => ':fairy_woman:',\n '👨‍👦' => ':family_man_boy:',\n '👨‍👧' => ':family_man_girl:',\n '👩‍👦' => ':family_woman_boy:',\n '👩‍👧' => ':family_woman_girl:',\n '🧑‍🌾' => ':farmer:',\n '🕵‍♀' => ':fem", "middle": "> ':deaf_woman:',\n '🧝‍♂' => ':elf_man:',\n '🧝‍♀' => ':elf_woman:',\n '👁‍🗨' => ':eye_speech_bubble:',\n '😮‍💨' => ':face_exhaling:',\n '😶‍🌫' => ':face_in_clouds:',\n '😵‍💫' => ':face_with_spiral_eyes:',\n '🧑‍🏭' => ':f", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-github.php", "language": "php", "file_size": 59267, "cut_index": 2151, "middle_length": 229}} {"prefix": "_woman_woman_medium_light_skin_tone_light_skin_tone:',\n '👩🏼‍❤️‍💋‍👩🏾' => ':kiss_woman_woman_medium_light_skin_tone_medium_dark_skin_tone:',\n '👩🏼‍❤️‍💋‍👩🏽' => ':kiss_woman_woman_medium_light_skin_tone_medium_skin_tone:',\n '👩🏽‍❤️‍💋‍👩🏽' => ':kiss_woman_woman_medium_skin_tone:',\n '👩🏽‍❤️‍💋‍👩🏿' => ':kiss_woman_woman_medium_skin_tone_dark_skin_tone:',\n '👩🏽‍❤️‍💋‍👩🏻' => ':kiss_woman_woman_medium_skin_tone_light_skin_tone:',\n '👩🏽‍❤️‍💋‍👩🏾' => ':kiss_woman_woman_medium_skin_tone_medium_dark_skin_tone:',", "suffix": " '👨🏿‍❤️‍👨🏾' => ':couple_with_heart_man_man_dark_skin_tone_medium_dark_skin_tone:',\n '👨🏿‍❤️‍👨🏼' => ':couple_with_heart_man_man_dark_skin_tone_medium_light_skin_tone:',\n '👨🏿‍❤️‍👨🏽' => ':couple_with_heart_man_man_dark_skin_tone_medium_skin_tone:',\n ", "middle": "\n '👩🏽‍❤️‍💋‍👩🏼' => ':kiss_woman_woman_medium_skin_tone_medium_light_skin_tone:',\n '👨🏿‍❤️‍👨🏿' => ':couple_with_heart_man_man_dark_skin_tone:',\n '👨🏿‍❤️‍👨🏻' => ':couple_with_heart_man_man_dark_skin_tone_light_skin_tone:',\n ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-gitlab.php", "language": "php", "file_size": 183161, "cut_index": 7068, "middle_length": 229}} {"prefix": " '👩🏿‍❤‍💋‍👨🏿' => 'sumba: mace, namiji, launin fata mai duhu',\n '👩🏻‍❤‍💋‍👩🏻' => 'sumba: mace, mace, launin fata mai haske',\n '👩🏻‍❤‍💋‍👩🏼' => 'sumba: mace, mace, launin fata mai haske, launin fata mai madaidaicin haske',\n '👩🏻‍❤‍💋‍👩🏽' => 'sumba: mace, mace, launin fata mai haske, madaidaicin launin fata',\n '👩🏻‍❤‍💋‍👩🏾' => 'sumba: mace, mace, launin fata mai haske, launin fata mai madaidaicin duhu',\n '👩🏻‍❤‍💋‍👩🏿' => 'sumba: mace, mace, launin fata mai haske, launin fata mai duhu',\n '👩🏼‍❤‍💋‍👩🏻' =", "suffix": " madaidaicin launin fata',\n '👩🏼‍❤‍💋‍👩🏾' => 'sumba: mace, mace, launin fata mai madaidaicin haske, launin fata mai madaidaicin duhu',\n '👩🏼‍❤‍💋‍👩🏿' => 'sumba: mace, mace, launin fata mai madaidaicin haske, launin fata mai duhu',\n '👩🏽‍❤‍💋‍👩🏻' => 'sum", "middle": "> 'sumba: mace, mace, launin fata mai madaidaicin haske, launin fata mai haske',\n '👩🏼‍❤‍💋‍👩🏼' => 'sumba: mace, mace, launin fata mai madaidaicin haske',\n '👩🏼‍❤‍💋‍👩🏽' => 'sumba: mace, mace, launin fata mai madaidaicin haske,", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ha_ne.php", "language": "php", "file_size": 228842, "cut_index": 7068, "middle_length": 229}} {"prefix": "=> 'נשיקה: אישה, אישה, גוון עור כהה, גוון עור בהיר בינוני',\n '👩🏿‍❤‍💋‍👩🏽' => 'נשיקה: אישה, אישה, גוון עור כהה, גוון עור בינוני',\n '👩🏿‍❤‍💋‍👩🏾' => 'נשיקה: אישה, אישה, גוון עור כהה, גוון עור כהה בינוני',\n '👩🏿‍❤‍💋‍👩🏿' => 'נשיקה: אישה, אישה, גוון עור כהה',\n '🧑🏻‍🫯‍🧑🏼' => 'מתאבקים: גוון עור בהיר, גוון עור בהיר בינוני',\n '🧑🏻‍🫯‍🧑🏽' => 'מתאבקים: גוון עור בהיר, גוון עור בינוני',\n '🧑🏻‍🫯‍🧑🏾' => 'מתאבקים: גוון עור בהיר, גוון עור כהה בינוני',\n '🧑🏻‍🫯‍🧑🏿' => 'מתאבקים: גוון עור בהיר, גוון עור כהה',\n '🧑", "suffix": "עור בהיר בינוני, גוון עור כהה',\n '🧑🏽‍🫯‍🧑🏻' => 'מתאבקים: גוון עור בינוני, גוון עור בהיר',\n '🧑🏽‍🫯‍🧑🏼' => 'מתאבקים: גוון עור בינוני, גוון עור בהיר בינוני',\n '🧑🏽‍🫯‍🧑🏾' => 'מתאבקים: גוון עור בינוני, גוון עור כהה בינוני',\n '🧑🏽‍🫯‍🧑🏿' => 'מתאבקים: גוון", "middle": "🏼‍🫯‍🧑🏻' => 'מתאבקים: גוון עור בהיר בינוני, גוון עור בהיר',\n '🧑🏼‍🫯‍🧑🏽' => 'מתאבקים: גוון עור בהיר בינוני, גוון עור בינוני',\n '🧑🏼‍🫯‍🧑🏾' => 'מתאבקים: גוון עור בהיר בינוני, גוון עור כהה בינוני',\n '🧑🏼‍🫯‍🧑🏿' => 'מתאבקים: גוון ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-he.php", "language": "php", "file_size": 260423, "cut_index": 7068, "middle_length": 229}} {"prefix": "umma iho',\n '👩🏿‍❤‍💋‍👩🏿' => 'pusu: nainen, nainen, tumma iho',\n '🧑🏻‍🫯‍🧑🏼' => 'painijat: vaalea iho, keskivaalea iho',\n '🧑🏻‍🫯‍🧑🏽' => 'painijat: vaalea iho, tummanvaalea iho',\n '🧑🏻‍🫯‍🧑🏾' => 'painijat: vaalea iho, keskitumma iho',\n '🧑🏻‍🫯‍🧑🏿' => 'painijat: vaalea iho, tumma iho',\n '🧑🏼‍🫯‍🧑🏻' => 'painijat: keskivaalea iho, vaalea iho',\n '🧑🏼‍🫯‍🧑🏽' => 'painijat: keskivaalea iho, tummanvaalea iho',\n '🧑🏼‍🫯‍🧑🏾' => 'painijat: keskivaalea iho, keskitumma iho',\n '🧑🏼‍🫯‍🧑🏿' => 'painijat: keskivaal", "suffix": "jat: tummanvaalea iho, tumma iho',\n '🧑🏾‍🫯‍🧑🏻' => 'painijat: keskitumma iho, vaalea iho',\n '🧑🏾‍🫯‍🧑🏼' => 'painijat: keskitumma iho, keskivaalea iho',\n '🧑🏾‍🫯‍🧑🏽' => 'painijat: keskitumma iho, tummanvaalea iho',\n '🧑🏾‍🫯‍🧑🏿' => 'painijat: keskitumma ", "middle": "ea iho, tumma iho',\n '🧑🏽‍🫯‍🧑🏻' => 'painijat: tummanvaalea iho, vaalea iho',\n '🧑🏽‍🫯‍🧑🏼' => 'painijat: tummanvaalea iho, keskivaalea iho',\n '🧑🏽‍🫯‍🧑🏾' => 'painijat: tummanvaalea iho, keskitumma iho',\n '🧑🏽‍🫯‍🧑🏿' => 'paini", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-fi.php", "language": "php", "file_size": 197426, "cut_index": 7068, "middle_length": 229}} {"prefix": "o',\n '👩🏻‍❤‍💋‍👩🏽' => 'parella bicándose: muller, muller, ton de pel moi claro, ton de pel medio',\n '👩🏻‍❤‍💋‍👩🏾' => 'parella bicándose: muller, muller, ton de pel moi claro, ton de pel escuro',\n '👩🏻‍❤‍💋‍👩🏿' => 'parella bicándose: muller, muller, ton de pel moi claro, ton de pel moi escuro',\n '👩🏼‍❤‍💋‍👩🏻' => 'parella bicándose: muller, muller, ton de pel claro, ton de pel moi claro',\n '👩🏼‍❤‍💋‍👩🏼' => 'parella bicándose: muller, muller, ton de pel claro',\n '👩🏼‍❤‍💋‍👩🏽' => 'parella bicándose: mulle", "suffix": "escuro',\n '👩🏽‍❤‍💋‍👩🏻' => 'parella bicándose: muller, muller, ton de pel medio, ton de pel moi claro',\n '👩🏽‍❤‍💋‍👩🏼' => 'parella bicándose: muller, muller, ton de pel medio, ton de pel claro',\n '👩🏽‍❤‍💋‍👩🏽' => 'parella bicándose: muller, muller, ton ", "middle": "r, muller, ton de pel claro, ton de pel medio',\n '👩🏼‍❤‍💋‍👩🏾' => 'parella bicándose: muller, muller, ton de pel claro, ton de pel escuro',\n '👩🏼‍❤‍💋‍👩🏿' => 'parella bicándose: muller, muller, ton de pel claro, ton de pel moi ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-gl.php", "language": "php", "file_size": 216277, "cut_index": 7068, "middle_length": 229}} {"prefix": "નો આછો રંગ',\n '👩🏽‍❤‍💋‍👩🏼' => 'ચુંબન: સ્ત્રી, સ્ત્રી, મધ્યમ ચામડીનો રંગ, ચામડીનો મધ્યમ આછો રંગ',\n '👩🏽‍❤‍💋‍👩🏽' => 'ચુંબન: સ્ત્રી, સ્ત્રી, મધ્યમ ચામડીનો રંગ',\n '👩🏽‍❤‍💋‍👩🏾' => 'ચુંબન: સ્ત્રી, સ્ત્રી, મધ્યમ ચામડીનો રંગ, મધ્યમ ઘેરો ચામડીનો રંગ',\n '👩🏽‍❤‍💋‍👩🏿' => 'ચુંબન: સ્ત્રી, સ્ત્રી, મધ્યમ ચામડીનો રંગ, ઘેરો ચામડીનો રંગ',\n '👩🏾‍❤‍💋‍👩🏻' => 'ચુંબન: સ્ત્રી, સ્ત્રી, મધ્યમ ઘેરો ચામડીનો રંગ, ચામડીનો આછો રંગ',\n '👩🏾‍❤‍💋‍👩🏼' => 'ચુંબન: સ્ત્રી, સ્ત્રી, મધ્યમ ઘેરો ચામડીનો રંગ, ચામડીનો મધ્યમ આછો રંગ',\n '👩", "suffix": "રંગ',\n '👩🏿‍❤‍💋‍👩🏻' => 'ચુંબન: સ્ત્રી, સ્ત્રી, ઘેરો ચામડીનો રંગ, ચામડીનો આછો રંગ',\n '👩🏿‍❤‍💋‍👩🏼' => 'ચુંબન: સ્ત્રી, સ્ત્રી, ઘેરો ચામડીનો રંગ, ચામડીનો મધ્યમ આછો રંગ',\n '👩🏿‍❤‍💋‍👩🏽' => 'ચુંબન: સ્ત્રી, સ્ત્રી, ઘેરો ચામડીનો રંગ, મધ્યમ ચામડીનો રંગ',\n '", "middle": "🏾‍❤‍💋‍👩🏽' => 'ચુંબન: સ્ત્રી, સ્ત્રી, મધ્યમ ઘેરો ચામડીનો રંગ, મધ્યમ ચામડીનો રંગ',\n '👩🏾‍❤‍💋‍👩🏾' => 'ચુંબન: સ્ત્રી, સ્ત્રી, મધ્યમ ઘેરો ચામડીનો રંગ',\n '👩🏾‍❤‍💋‍👩🏿' => 'ચુંબન: સ્ત્રી, સ્ત્રી, મધ્યમ ઘેરો ચામડીનો રંગ, ઘેરો ચામડીનો ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-gu.php", "language": "php", "file_size": 394996, "cut_index": 7068, "middle_length": 229}} {"prefix": ", ton cnis meánach',\n '👩🏾‍❤‍💋‍👩🏾' => 'póg: bean, bean, ton cnis meándorcha',\n '👩🏾‍❤‍💋‍👩🏿' => 'póg: bean, bean, ton cnis meándorcha, ton cnis dorcha',\n '👩🏿‍❤‍💋‍👩🏻' => 'póg: bean, bean, ton cnis dorcha, ton cnis geal',\n '👩🏿‍❤‍💋‍👩🏼' => 'póg: bean, bean, ton cnis dorcha, ton cnis mheánach-gheal',\n '👩🏿‍❤‍💋‍👩🏽' => 'póg: bean, bean, ton cnis dorcha, ton cnis meánach',\n '👩🏿‍❤‍💋‍👩🏾' => 'póg: bean, bean, ton cnis dorcha, ton cnis meándorcha',\n '👩🏿‍❤‍💋‍👩🏿' => 'póg: bean, bean, ton cnis dorcha',\n ", "suffix": " cnis geal, ton cnis dorcha',\n '🧑🏼‍🫯‍🧑🏻' => 'coraíocht: ton cnis mheánach-gheal, ton cnis geal',\n '🧑🏼‍🫯‍🧑🏽' => 'coraíocht: ton cnis mheánach-gheal, ton cnis meánach',\n '🧑🏼‍🫯‍🧑🏾' => 'coraíocht: ton cnis mheánach-gheal, ton cnis meándorcha',\n '🧑🏼", "middle": " '🧑🏻‍🫯‍🧑🏼' => 'coraíocht: ton cnis geal, ton cnis mheánach-gheal',\n '🧑🏻‍🫯‍🧑🏽' => 'coraíocht: ton cnis geal, ton cnis meánach',\n '🧑🏻‍🫯‍🧑🏾' => 'coraíocht: ton cnis geal, ton cnis meándorcha',\n '🧑🏻‍🫯‍🧑🏿' => 'coraíocht: ton", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ga.php", "language": "php", "file_size": 218035, "cut_index": 7068, "middle_length": 229}} {"prefix": " '👩🏿‍❤‍💋‍👨🏿' => 'sumba: mace, namiji, launin fata mai duhu',\n '👩🏻‍❤‍💋‍👩🏻' => 'sumba: mace, mace, launin fata mai haske',\n '👩🏻‍❤‍💋‍👩🏼' => 'sumba: mace, mace, launin fata mai haske, launin fata mai madaidaicin haske',\n '👩🏻‍❤‍💋‍👩🏽' => 'sumba: mace, mace, launin fata mai haske, madaidaicin launin fata',\n '👩🏻‍❤‍💋‍👩🏾' => 'sumba: mace, mace, launin fata mai haske, launin fata mai madaidaicin duhu',\n '👩🏻‍❤‍💋‍👩🏿' => 'sumba: mace, mace, launin fata mai haske, launin fata mai duhu',\n '👩🏼‍❤‍💋‍👩🏻' =", "suffix": " madaidaicin launin fata',\n '👩🏼‍❤‍💋‍👩🏾' => 'sumba: mace, mace, launin fata mai madaidaicin haske, launin fata mai madaidaicin duhu',\n '👩🏼‍❤‍💋‍👩🏿' => 'sumba: mace, mace, launin fata mai madaidaicin haske, launin fata mai duhu',\n '👩🏽‍❤‍💋‍👩🏻' => 'sum", "middle": "> 'sumba: mace, mace, launin fata mai madaidaicin haske, launin fata mai haske',\n '👩🏼‍❤‍💋‍👩🏼' => 'sumba: mace, mace, launin fata mai madaidaicin haske',\n '👩🏼‍❤‍💋‍👩🏽' => 'sumba: mace, mace, launin fata mai madaidaicin haske,", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ha.php", "language": "php", "file_size": 228843, "cut_index": 7068, "middle_length": 229}} {"prefix": "🏼‍🫯‍🧑🏻' => 'wrestling karte log: medium-fair skin, Fair skin',\n '🧑🏼‍🫯‍🧑🏽' => 'wrestling karte log: medium-fair skin, medium skin',\n '🧑🏼‍🫯‍🧑🏾' => 'wrestling karte log: medium-fair skin, medium-dark skin',\n '🧑🏼‍🫯‍🧑🏿' => 'wrestling karte log: medium-fair skin, dark skin',\n '🧑🏽‍🫯‍🧑🏻' => 'wrestling karte log: medium skin, Fair skin',\n '🧑🏽‍🫯‍🧑🏼' => 'wrestling karte log: medium skin, medium-fair skin',\n '🧑🏽‍🫯‍🧑🏾' => 'wrestling karte log: medium skin, medium-dark skin',\n '🧑🏽‍🫯‍🧑🏿' => 'wrestling", "suffix": "ark skin, medium skin',\n '🧑🏾‍🫯‍🧑🏿' => 'wrestling karte log: medium-dark skin, dark skin',\n '🧑🏿‍🫯‍🧑🏻' => 'wrestling karte log: dark skin, Fair skin',\n '🧑🏿‍🫯‍🧑🏼' => 'wrestling karte log: dark skin, medium-fair skin',\n '🧑🏿‍🫯‍🧑🏽' => 'wrestling kart", "middle": " karte log: medium skin, dark skin',\n '🧑🏾‍🫯‍🧑🏻' => 'wrestling karte log: medium-dark skin, Fair skin',\n '🧑🏾‍🫯‍🧑🏼' => 'wrestling karte log: medium-dark skin, medium-fair skin',\n '🧑🏾‍🫯‍🧑🏽' => 'wrestling karte log: medium-d", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-hi_latn.php", "language": "php", "file_size": 230895, "cut_index": 7068, "middle_length": 229}} {"prefix": "oljubac: žena, muškarac, tamno smeđa boja kože i smeđa boja kože',\n '👩🏿‍❤‍💋‍👨🏿' => 'poljubac: žena, muškarac i tamno smeđa boja kože',\n '👩🏻‍❤‍💋‍👩🏻' => 'poljubac: žena, žena i svijetla boja kože',\n '👩🏻‍❤‍💋‍👩🏼' => 'poljubac: žena, žena, svijetla boja kože i svijetlo maslinasta boja kože',\n '👩🏻‍❤‍💋‍👩🏽' => 'poljubac: žena, žena, svijetla boja kože i maslinasta boja kože',\n '👩🏻‍❤‍💋‍👩🏾' => 'poljubac: žena, žena, svijetla boja kože i smeđa boja kože',\n '👩🏻‍❤‍💋‍👩🏿' => 'poljubac: žena, žena, svijet", "suffix": "poljubac: žena, žena, svijetlo maslinasta boja kože i maslinasta boja kože',\n '👩🏼‍❤‍💋‍👩🏾' => 'poljubac: žena, žena, svijetlo maslinasta boja kože i smeđa boja kože',\n '👩🏼‍❤‍💋‍👩🏿' => 'poljubac: žena, žena, svijetlo maslinasta boja kože i tamno smeđa b", "middle": "la boja kože i tamno smeđa boja kože',\n '👩🏼‍❤‍💋‍👩🏻' => 'poljubac: žena, žena, svijetlo maslinasta boja kože i svijetla boja kože',\n '👩🏼‍❤‍💋‍👩🏼' => 'poljubac: žena, žena i svijetlo maslinasta boja kože',\n '👩🏼‍❤‍💋‍👩🏽' => '", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-hr.php", "language": "php", "file_size": 223686, "cut_index": 7068, "middle_length": 229}} {"prefix": " '👩🏽‍❤‍💋‍👩🏻' => 'csók: nő, nő, közepes bőrtónus és világos bőrtónus',\n '👩🏽‍❤‍💋‍👩🏼' => 'csók: nő, nő, közepes bőrtónus és közepesen világos bőrtónus',\n '👩🏽‍❤‍💋‍👩🏽' => 'csók: nő, nő és közepes bőrtónus',\n '👩🏽‍❤‍💋‍👩🏾' => 'csók: nő, nő, közepes bőrtónus és közepesen sötét bőrtónus',\n '👩🏽‍❤‍💋‍👩🏿' => 'csók: nő, nő, közepes bőrtónus és sötét bőrtónus',\n '👩🏾‍❤‍💋‍👩🏻' => 'csók: nő, nő, közepesen sötét bőrtónus és világos bőrtónus',\n '👩🏾‍❤‍💋‍👩🏼' => 'csók: nő, nő, közepesen sötét bőrtónus és közepesen", "suffix": "ét bőrtónus',\n '👩🏿‍❤‍💋‍👩🏻' => 'csók: nő, nő, sötét bőrtónus és világos bőrtónus',\n '👩🏿‍❤‍💋‍👩🏼' => 'csók: nő, nő, sötét bőrtónus és közepesen világos bőrtónus',\n '👩🏿‍❤‍💋‍👩🏽' => 'csók: nő, nő, sötét bőrtónus és közepes bőrtónus',\n '👩🏿‍❤‍💋‍👩🏾' => ", "middle": " világos bőrtónus',\n '👩🏾‍❤‍💋‍👩🏽' => 'csók: nő, nő, közepesen sötét bőrtónus és közepes bőrtónus',\n '👩🏾‍❤‍💋‍👩🏾' => 'csók: nő, nő és közepesen sötét bőrtónus',\n '👩🏾‍❤‍💋‍👩🏿' => 'csók: nő, nő, közepesen sötét bőrtónus és söt", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-hu.php", "language": "php", "file_size": 222608, "cut_index": 7068, "middle_length": 229}} {"prefix": "amba: tono de pelle medio clar',\n '🦵🏽' => 'gamba: tono de pelle medie',\n '🦵🏾' => 'gamba: tono de pelle medio-obscur',\n '🦵🏿' => 'gamba: tono de pelle obscur',\n '🦶🏻' => 'pede: tono de pelle clar',\n '🦶🏼' => 'pede: tono de pelle medio clar',\n '🦶🏽' => 'pede: tono de pelle medie',\n '🦶🏾' => 'pede: tono de pelle medio-obscur',\n '🦶🏿' => 'pede: tono de pelle obscur',\n '👂🏻' => 'aure: tono de pelle clar',\n '👂🏼' => 'aure: tono de pelle medio clar',\n '👂🏽' => 'aure: tono de pelle medie',\n ", "suffix": "diophono: tono de pelle medie',\n '🦻🏾' => 'aure con audiophono: tono de pelle medio-obscur',\n '🦻🏿' => 'aure con audiophono: tono de pelle obscur',\n '👃🏻' => 'naso: tono de pelle clar',\n '👃🏼' => 'naso: tono de pelle medio clar',\n '👃🏽' => 'naso:", "middle": " '👂🏾' => 'aure: tono de pelle medio-obscur',\n '👂🏿' => 'aure: tono de pelle obscur',\n '🦻🏻' => 'aure con audiophono: tono de pelle clar',\n '🦻🏼' => 'aure con audiophono: tono de pelle medio clar',\n '🦻🏽' => 'aure con au", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ia.php", "language": "php", "file_size": 15915, "cut_index": 921, "middle_length": 229}} {"prefix": "le ahụ maka òji',\n '👩🏿‍❤‍💋‍👨🏻' => 'nsusò ọnụ: nwanyị, nwoke, ọtanjele ahụ maka òji, ọtanjele ahụ maka ọcha',\n '👩🏿‍❤‍💋‍👨🏼' => 'nsusò ọnụ: nwanyị, nwoke, ọtanjele ahụ maka òji, ọtanjele ahụ maka ọcha-ndịna etiti',\n '👩🏿‍❤‍💋‍👨🏽' => 'nsusò ọnụ: nwanyị, nwoke, ọtanjele ahụ maka òji, ọtanjele ahụ ndịna etiti',\n '👩🏿‍❤‍💋‍👨🏾' => 'nsusò ọnụ: nwanyị, nwoke, ọtanjele ahụ maka òji, ọtanjele ahụ maka òji-ndịna etiti',\n '👩🏿‍❤‍💋‍👨🏿' => 'nsusò ọnụ: nwanyị, nwoke, ọtanjele ahụ maka òji',\n '👩🏻‍❤‍💋‍👩🏻' => 'nsu", "suffix": "tanjele ahụ ndịna etiti',\n '👩🏻‍❤‍💋‍👩🏾' => 'nsusò ọnụ: nwanyị, nwanyị, ọtanjele ahụ maka ọcha, ọtanjele ahụ maka òji-ndịna etiti',\n '👩🏻‍❤‍💋‍👩🏿' => 'nsusò ọnụ: nwanyị, nwanyị, ọtanjele ahụ maka ọcha, ọtanjele ahụ maka òji',\n '👩🏼‍❤‍💋‍👩🏻' => 'nsusò ọn", "middle": "sò ọnụ: nwanyị, nwanyị, ọtanjele ahụ maka ọcha',\n '👩🏻‍❤‍💋‍👩🏼' => 'nsusò ọnụ: nwanyị, nwanyị, ọtanjele ahụ maka ọcha, ọtanjele ahụ maka ọcha-ndịna etiti',\n '👩🏻‍❤‍💋‍👩🏽' => 'nsusò ọnụ: nwanyị, nwanyị, ọtanjele ahụ maka ọcha, ọ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ig.php", "language": "php", "file_size": 260317, "cut_index": 7068, "middle_length": 229}} {"prefix": "arnagione scura e carnagione abbastanza chiara',\n '👩🏿‍❤‍💋‍👨🏽' => 'bacio tra coppia: donna, uomo, carnagione scura e carnagione olivastra',\n '👩🏿‍❤‍💋‍👨🏾' => 'bacio tra coppia: donna, uomo, carnagione scura e carnagione abbastanza scura',\n '👩🏿‍❤‍💋‍👨🏿' => 'bacio tra coppia: donna, uomo e carnagione scura',\n '👩🏻‍❤‍💋‍👩🏻' => 'bacio tra coppia: donna, donna e carnagione chiara',\n '👩🏻‍❤‍💋‍👩🏼' => 'bacio tra coppia: donna, donna, carnagione chiara e carnagione abbastanza chiara',\n '👩🏻‍❤‍💋‍👩🏽' => 'bac", "suffix": "nagione chiara e carnagione scura',\n '👩🏼‍❤‍💋‍👩🏻' => 'bacio tra coppia: donna, donna, carnagione abbastanza chiara e carnagione chiara',\n '👩🏼‍❤‍💋‍👩🏼' => 'bacio tra coppia: donna, donna e carnagione abbastanza chiara',\n '👩🏼‍❤‍💋‍👩🏽' => 'bacio tra cop", "middle": "io tra coppia: donna, donna, carnagione chiara e carnagione olivastra',\n '👩🏻‍❤‍💋‍👩🏾' => 'bacio tra coppia: donna, donna, carnagione chiara e carnagione abbastanza scura',\n '👩🏻‍❤‍💋‍👩🏿' => 'bacio tra coppia: donna, donna, car", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-it.php", "language": "php", "file_size": 225705, "cut_index": 7068, "middle_length": 229}} {"prefix": " 薄い肌色',\n '👩🏻‍❤‍💋‍👩🏼' => '2人でキス: 女性 女性 薄い肌色 やや薄い肌色',\n '👩🏻‍❤‍💋‍👩🏽' => '2人でキス: 女性 女性 薄い肌色 中間の肌色',\n '👩🏻‍❤‍💋‍👩🏾' => '2人でキス: 女性 女性 薄い肌色 やや濃い肌色',\n '👩🏻‍❤‍💋‍👩🏿' => '2人でキス: 女性 女性 薄い肌色 濃い肌色',\n '👩🏼‍❤‍💋‍👩🏻' => '2人でキス: 女性 女性 やや薄い肌色 薄い肌色',\n '👩🏼‍❤‍💋‍👩🏼' => '2人でキス: 女性 女性 やや薄い肌色',\n '👩🏼‍❤‍💋‍👩🏽' => '2人でキス: 女性 女性 やや薄い肌色 中間の肌色',\n '👩🏼‍❤‍💋‍👩🏾' => '2人でキス: 女性 女性 やや薄い肌色 やや濃い肌色',\n '👩🏼‍❤‍💋‍👩🏿' => '2人でキス: 女性 女性 やや薄い肌色 濃い肌色',\n '👩🏽‍❤‍💋‍👩🏻' => '2人でキス: 女性 女性 中間の肌色 薄い肌色',\n '👩🏽‍❤‍💋‍👩🏼' => '2人でキス: 女性 女性 中間の肌色 や", "suffix": " やや薄い肌色',\n '👩🏾‍❤‍💋‍👩🏽' => '2人でキス: 女性 女性 やや濃い肌色 中間の肌色',\n '👩🏾‍❤‍💋‍👩🏾' => '2人でキス: 女性 女性 やや濃い肌色',\n '👩🏾‍❤‍💋‍👩🏿' => '2人でキス: 女性 女性 やや濃い肌色 濃い肌色',\n '👩🏿‍❤‍💋‍👩🏻' => '2人でキス: 女性 女性 濃い肌色 薄い肌色',\n '👩🏿‍❤‍💋‍👩🏼' => '2人でキス: 女性 女性 濃い肌色 やや薄い肌色',\n '👩🏿‍❤‍💋‍👩🏽' =", "middle": "や薄い肌色',\n '👩🏽‍❤‍💋‍👩🏽' => '2人でキス: 女性 女性 中間の肌色',\n '👩🏽‍❤‍💋‍👩🏾' => '2人でキス: 女性 女性 中間の肌色 やや濃い肌色',\n '👩🏽‍❤‍💋‍👩🏿' => '2人でキス: 女性 女性 中間の肌色 濃い肌色',\n '👩🏾‍❤‍💋‍👩🏻' => '2人でキス: 女性 女性 やや濃い肌色 薄い肌色',\n '👩🏾‍❤‍💋‍👩🏼' => '2人でキス: 女性 女性 やや濃い肌色", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ja.php", "language": "php", "file_size": 205288, "cut_index": 3790, "middle_length": 229}} {"prefix": ", კანის მუქი ტონალობა',\n '👩🏻‍❤‍💋‍👩🏻' => 'კოცნა: ქალი, ქალი, კანის ღია ტონალობა',\n '👩🏻‍❤‍💋‍👩🏼' => 'კოცნა: ქალი, ქალი, კანის ღია ტონალობა, ღიადან საშუალომდე კანის ტონალობა',\n '👩🏻‍❤‍💋‍👩🏽' => 'კოცნა: ქალი, ქალი, კანის ღია ტონალობა, კანის საშუალო ტონალობა',\n '👩🏻‍❤‍💋‍👩🏾' => 'კოცნა: ქალი, ქალი, კანის ღია ტონალობა, საშუალოდან მუქამდე კანის ტონალობა',\n '👩🏻‍❤‍💋‍👩🏿' => 'კოცნა: ქალი, ქალი, კანის ღია ტონალობა, კანის მუქი ტონალობა',\n '👩🏼‍❤‍💋‍👩🏻' => 'კოცნა: ქალი, ქალი, ღიადან საშუალომდე კანის ტონალობა, კ", "suffix": ", ღიადან საშუალომდე კანის ტონალობა, საშუალოდან მუქამდე კანის ტონალობა',\n '👩🏼‍❤‍💋‍👩🏿' => 'კოცნა: ქალი, ქალი, ღიადან საშუალომდე კანის ტონალობა, კანის მუქი ტონალობა',\n '👩🏽‍❤‍💋‍👩🏻' => 'კოცნა: ქალი, ქალი, კანის საშუალო ტონალობა, კანის ღია ტონალობა',\n '", "middle": "ანის ღია ტონალობა',\n '👩🏼‍❤‍💋‍👩🏼' => 'კოცნა: ქალი, ქალი, ღიადან საშუალომდე კანის ტონალობა',\n '👩🏼‍❤‍💋‍👩🏽' => 'კოცნა: ქალი, ქალი, ღიადან საშუალომდე კანის ტონალობა, კანის საშუალო ტონალობა',\n '👩🏼‍❤‍💋‍👩🏾' => 'კოცნა: ქალი, ქალი", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ka.php", "language": "php", "file_size": 446379, "cut_index": 7068, "middle_length": 229}} {"prefix": "rěnjoćmowa barba kože',\n '👩🏿‍❤‍💋‍👨🏿' => 'porik, kiž so koši: žona, muž a ćmowa barba kože',\n '👩🏻‍❤‍💋‍👩🏻' => 'porik, kiž so koši: žona, žona a swětła barba kože',\n '👩🏻‍❤‍💋‍👩🏼' => 'porik, kiž so koši: žona, žona, swětła barba kože a srěnjoswětła barba kože',\n '👩🏻‍❤‍💋‍👩🏽' => 'porik, kiž so koši: žona, žona, swětła barba kože a srěnja barba kože',\n '👩🏻‍❤‍💋‍👩🏾' => 'porik, kiž so koši: žona, žona, swětła barba kože a srěnjoćmowa barba kože',\n '👩🏻‍❤‍💋‍👩🏿' => 'porik, kiž so koši: žona, žona, swětł", "suffix": " 'porik, kiž so koši: žona, žona, srěnjoswětła barba kože a srěnja barba kože',\n '👩🏼‍❤‍💋‍👩🏾' => 'porik, kiž so koši: žona, žona, srěnjoswětła barba kože a srěnjoćmowa barba kože',\n '👩🏼‍❤‍💋‍👩🏿' => 'porik, kiž so koši: žona, žona, srěnjoswětła barba ko", "middle": "a barba kože a ćmowa barba kože',\n '👩🏼‍❤‍💋‍👩🏻' => 'porik, kiž so koši: žona, žona, srěnjoswětła barba kože a swětła barba kože',\n '👩🏼‍❤‍💋‍👩🏼' => 'porik, kiž so koši: žona, žona a srěnjoswětła barba kože',\n '👩🏼‍❤‍💋‍👩🏽' =>", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-hsb.php", "language": "php", "file_size": 229582, "cut_index": 7068, "middle_length": 229}} {"prefix": "a, warna kulit cerah-sedang, warna kulit cerah',\n '👩🏼‍❤‍💋‍👩🏼' => 'berciuman: wanita, wanita, warna kulit cerah-sedang',\n '👩🏼‍❤‍💋‍👩🏽' => 'berciuman: wanita, wanita, warna kulit cerah-sedang, warna kulit sedang',\n '👩🏼‍❤‍💋‍👩🏾' => 'berciuman: wanita, wanita, warna kulit cerah-sedang, warna kulit gelap-sedang',\n '👩🏼‍❤‍💋‍👩🏿' => 'berciuman: wanita, wanita, warna kulit cerah-sedang, warna kulit gelap',\n '👩🏽‍❤‍💋‍👩🏻' => 'berciuman: wanita, wanita, warna kulit sedang, warna kulit cerah',\n '👩🏽‍❤‍💋‍👩🏼'", "suffix": "ap-sedang',\n '👩🏽‍❤‍💋‍👩🏿' => 'berciuman: wanita, wanita, warna kulit sedang, warna kulit gelap',\n '👩🏾‍❤‍💋‍👩🏻' => 'berciuman: wanita, wanita, warna kulit gelap-sedang, warna kulit cerah',\n '👩🏾‍❤‍💋‍👩🏼' => 'berciuman: wanita, wanita, warna kulit gelap", "middle": " => 'berciuman: wanita, wanita, warna kulit sedang, warna kulit cerah-sedang',\n '👩🏽‍❤‍💋‍👩🏽' => 'berciuman: wanita, wanita, warna kulit sedang',\n '👩🏽‍❤‍💋‍👩🏾' => 'berciuman: wanita, wanita, warna kulit sedang, warna kulit gel", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-id.php", "language": "php", "file_size": 217963, "cut_index": 7068, "middle_length": 229}} {"prefix": "‍💋‍👩🏼' => 'ambung: wong wadon, wong wadon, kulit kuning, kulit putih langsep',\n '👩🏽‍❤‍💋‍👩🏽' => 'ambung: wong wadon, wong wadon, kulit kuning',\n '👩🏽‍❤‍💋‍👩🏾' => 'ambung: wong wadon, wong wadon, kulit kuning, kulit sawo mateng',\n '👩🏽‍❤‍💋‍👩🏿' => 'ambung: wong wadon, wong wadon, kulit kuning, kulit ireng',\n '👩🏾‍❤‍💋‍👩🏻' => 'ambung: wong wadon, wong wadon, kulit sawo mateng, kulit putih',\n '👩🏾‍❤‍💋‍👩🏼' => 'ambung: wong wadon, wong wadon, kulit sawo mateng, kulit putih langsep',\n '👩🏾‍❤‍💋‍👩🏽' => 'am", "suffix": "❤‍💋‍👩🏻' => 'ambung: wong wadon, wong wadon, kulit ireng, kulit putih',\n '👩🏿‍❤‍💋‍👩🏼' => 'ambung: wong wadon, wong wadon, kulit ireng, kulit putih langsep',\n '👩🏿‍❤‍💋‍👩🏽' => 'ambung: wong wadon, wong wadon, kulit ireng, kulit kuning',\n '👩🏿‍❤‍💋‍👩🏾' =>", "middle": "bung: wong wadon, wong wadon, kulit sawo mateng, kulit kuning',\n '👩🏾‍❤‍💋‍👩🏾' => 'ambung: wong wadon, wong wadon, kulit sawo mateng',\n '👩🏾‍❤‍💋‍👩🏿' => 'ambung: wong wadon, wong wadon, kulit sawo mateng, kulit ireng',\n '👩🏿‍", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-jv.php", "language": "php", "file_size": 208123, "cut_index": 7068, "middle_length": 229}} {"prefix": "r',\n '👩🏾‍❤‍💋‍👩🏼' => 'koss: kona, kona, meðaldökkur húðlitur og meðalljós húðlitur',\n '👩🏾‍❤‍💋‍👩🏽' => 'koss: kona, kona, meðaldökkur húðlitur og millihúðlitur',\n '👩🏾‍❤‍💋‍👩🏾' => 'koss: kona, kona og meðaldökkur húðlitur',\n '👩🏾‍❤‍💋‍👩🏿' => 'koss: kona, kona, meðaldökkur húðlitur og dökkur húðlitur',\n '👩🏿‍❤‍💋‍👩🏻' => 'koss: kona, kona, dökkur húðlitur og ljós húðlitur',\n '👩🏿‍❤‍💋‍👩🏼' => 'koss: kona, kona, dökkur húðlitur og meðalljós húðlitur',\n '👩🏿‍❤‍💋‍👩🏽' => 'koss: kona, kona, dökkur húðlitur", "suffix": "🫯‍🧑🏽' => 'glíma: ljós húðlitur og millihúðlitur',\n '🧑🏻‍🫯‍🧑🏾' => 'glíma: ljós húðlitur og meðaldökkur húðlitur',\n '🧑🏻‍🫯‍🧑🏿' => 'glíma: ljós húðlitur og dökkur húðlitur',\n '🧑🏼‍🫯‍🧑🏻' => 'glíma: meðalljós húðlitur og ljós húðlitur',\n '🧑🏼‍🫯‍🧑🏽' => '", "middle": " og millihúðlitur',\n '👩🏿‍❤‍💋‍👩🏾' => 'koss: kona, kona, dökkur húðlitur og meðaldökkur húðlitur',\n '👩🏿‍❤‍💋‍👩🏿' => 'koss: kona, kona og dökkur húðlitur',\n '🧑🏻‍🫯‍🧑🏼' => 'glíma: ljós húðlitur og meðalljós húðlitur',\n '🧑🏻‍", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-is.php", "language": "php", "file_size": 210451, "cut_index": 7068, "middle_length": 229}} {"prefix": "յնի մաշկ և միջին մուգ գույնի մաշկ',\n '👩🏽‍❤‍💋‍👩🏿' => 'համբույր․ կին կին միջին գույնի մաշկ և մուգ գույնի մաշկ',\n '👩🏾‍❤‍💋‍👩🏻' => 'համբույր․ կին կին միջին մուգ գույնի մաշկ և բաց գույնի մաշկ',\n '👩🏾‍❤‍💋‍👩🏼' => 'համբույր․ կին կին միջին մուգ գույնի մաշկ և միջին բաց գույնի մաշկ',\n '👩🏾‍❤‍💋‍👩🏽' => 'համբույր․ կին կին միջին մուգ գույնի մաշկ և միջին գույնի մաշկ',\n '👩🏾‍❤‍💋‍👩🏾' => 'համբույր․ կին կին և միջին մուգ գույնի մաշկ',\n '👩🏾‍❤‍💋‍👩🏿' => 'համբույր․ կին կին միջին մուգ գույնի մաշկ և մուգ գույնի մաշկ',\n ", "suffix": "',\n '👩🏿‍❤‍💋‍👩🏾' => 'համբույր․ կին կին մուգ գույնի մաշկ և միջին մուգ գույնի մաշկ',\n '👩🏿‍❤‍💋‍👩🏿' => 'համբույր․ կին կին և մուգ գույնի մաշկ',\n '🧑🏻‍🫯‍🧑🏼' => 'ըմբշամարտիկներ․ բաց գույնի մաշկ և միջին բաց գույնի մաշկ',\n '🧑🏻‍🫯‍🧑🏽' => 'ըմբշամարտիկներ․ բա", "middle": " '👩🏿‍❤‍💋‍👩🏻' => 'համբույր․ կին կին մուգ գույնի մաշկ և բաց գույնի մաշկ',\n '👩🏿‍❤‍💋‍👩🏼' => 'համբույր․ կին կին մուգ գույնի մաշկ և միջին բաց գույնի մաշկ',\n '👩🏿‍❤‍💋‍👩🏽' => 'համբույր․ կին կին մուգ գույնի մաշկ և միջին գույնի մաշկ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-hy.php", "language": "php", "file_size": 299452, "cut_index": 7068, "middle_length": 229}} {"prefix": "سى',\n '🧑🏻‍🫯‍🧑🏼' => 'كۇرەسشىلەر: 1–2 تەرى ءتۇسى، 3-تەرى ءتۇرى',\n '🧑🏻‍🫯‍🧑🏽' => 'كۇرەسشىلەر: 1–2 تەرى ءتۇسى، 4-تەرى ءتۇسى',\n '🧑🏻‍🫯‍🧑🏾' => 'كۇرەسشىلەر: 1–2 تەرى ءتۇسى، 5-تەرى ءتۇسى',\n '🧑🏻‍🫯‍🧑🏿' => 'كۇرەسشىلەر: 1–2 تەرى ءتۇسى، 6-تەرى ءتۇسى',\n '🧑🏼‍🫯‍🧑🏻' => 'كۇرەسشىلەر: 3-تەرى ءتۇرى، 1–2 تەرى ءتۇسى',\n '🧑🏼‍🫯‍🧑🏽' => 'كۇرەسشىلەر: 3-تەرى ءتۇرى، 4-تەرى ءتۇسى',\n '🧑🏼‍🫯‍🧑🏾' => 'كۇرەسشىلەر: 3-تەرى ءتۇرى، 5-تەرى ءتۇسى',\n '🧑🏼‍🫯‍🧑🏿' => 'كۇرەسشىلەر: 3-تەرى ءتۇرى، 6-تەرى ءتۇسى',\n '🧑🏽‍🫯‍🧑🏻' => 'كۇرەسشى", "suffix": " 'كۇرەسشىلەر: 5-تەرى ءتۇسى، 1–2 تەرى ءتۇسى',\n '🧑🏾‍🫯‍🧑🏼' => 'كۇرەسشىلەر: 5-تەرى ءتۇسى، 3-تەرى ءتۇرى',\n '🧑🏾‍🫯‍🧑🏽' => 'كۇرەسشىلەر: 5-تەرى ءتۇسى، 4-تەرى ءتۇسى',\n '🧑🏾‍🫯‍🧑🏿' => 'كۇرەسشىلەر: 5-تەرى ءتۇسى، 6-تەرى ءتۇسى',\n '🧑🏿‍🫯‍🧑🏻' => 'كۇرەسشىلەر: 6-تە", "middle": "لەر: 4-تەرى ءتۇسى، 1–2 تەرى ءتۇسى',\n '🧑🏽‍🫯‍🧑🏼' => 'كۇرەسشىلەر: 4-تەرى ءتۇسى، 3-تەرى ءتۇرى',\n '🧑🏽‍🫯‍🧑🏾' => 'كۇرەسشىلەر: 4-تەرى ءتۇسى، 5-تەرى ءتۇسى',\n '🧑🏽‍🫯‍🧑🏿' => 'كۇرەسشىلەر: 4-تەرى ءتۇسى، 6-تەرى ءتۇسى',\n '🧑🏾‍🫯‍🧑🏻' =>", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-kk_arab.php", "language": "php", "file_size": 269530, "cut_index": 7068, "middle_length": 229}} {"prefix": ", ಮಹಿಳೆ, ಮಧ್ಯಮ ಬಣ್ಣದ ಚರ್ಮ, ಮಧ್ಯಮ-ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ',\n '👩🏽‍❤‍💋‍👩🏿' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಮಧ್ಯಮ ಬಣ್ಣದ ಚರ್ಮ, ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ',\n '👩🏾‍❤‍💋‍👩🏻' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಮಧ್ಯಮ-ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ, ತಿಳಿ ಬಣ್ಣದ ಚರ್ಮ',\n '👩🏾‍❤‍💋‍👩🏼' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಮಧ್ಯಮ-ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ, ಮಧ್ಯಮ-ತಿಳಿ ಬಣ್ಣದ ಚರ್ಮ',\n '👩🏾‍❤‍💋‍👩🏽' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಮಧ್ಯಮ-ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ, ಮಧ್ಯಮ ಬಣ್ಣದ ಚರ್ಮ',\n '👩🏾‍❤‍💋‍👩🏾' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಮಧ್ಯಮ-ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ',\n '👩🏾‍❤‍💋‍👩🏿' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಮಧ್ಯಮ-ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ, ಗಾಢ ಬಣ್ಣದ", "suffix": "್ಣದ ಚರ್ಮ',\n '👩🏿‍❤‍💋‍👩🏾' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ, ಮಧ್ಯಮ-ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ',\n '👩🏿‍❤‍💋‍👩🏿' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ',\n '🧑🏻‍🫯‍🧑🏼' => 'ಕುಸ್ತಿಪಟುಗಳು: ತಿಳಿ ಬಣ್ಣದ ಚರ್ಮ, ಮಧ್ಯಮ-ತಿಳಿ ಬಣ್ಣದ ಚರ್ಮ',\n '🧑🏻‍🫯‍🧑🏽' => 'ಕುಸ್ತಿಪಟುಗಳು: ತಿ", "middle": " ಚರ್ಮ',\n '👩🏿‍❤‍💋‍👩🏻' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ, ತಿಳಿ ಬಣ್ಣದ ಚರ್ಮ',\n '👩🏿‍❤‍💋‍👩🏼' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ, ಮಧ್ಯಮ-ತಿಳಿ ಬಣ್ಣದ ಚರ್ಮ',\n '👩🏿‍❤‍💋‍👩🏽' => 'ಚುಂಬನ: ಮಹಿಳೆ, ಮಹಿಳೆ, ಗಾಢ ಬಣ್ಣದ ಚರ್ಮ, ಮಧ್ಯಮ ಬಣ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-kn.php", "language": "php", "file_size": 408934, "cut_index": 7068, "middle_length": 229}} {"prefix": "‍❤‍💋‍👩🏽' => 'उमो: बायल, बायल, मध्यम-गाढ कातीचो रंग, मध्यम कातीचो रंग',\n '👩🏾‍❤‍💋‍👩🏾' => 'उमो: बायल, बायल, मध्यम-गाढ कातीचो रंग',\n '👩🏾‍❤‍💋‍👩🏿' => 'उमो: बायल, बायल, मध्यम-गाढ कातीचो रंग, गाढ कातीचो रंग',\n '👩🏿‍❤‍💋‍👩🏻' => 'उमो: बायल, बायल, गाढ कातीचो रंग, उजळ कातीचो रंग',\n '👩🏿‍❤‍💋‍👩🏼' => 'उमो: बायल, बायल, गाढ कातीचो रंग, मध्यम-उजळ कातीचो रंग',\n '👩🏿‍❤‍💋‍👩🏽' => 'उमो: बायल, बायल, गाढ कातीचो रंग, मध्यम कातीचो रंग',\n '👩🏿‍❤‍💋‍👩🏾' => 'उमो: बायल, बायल, गाढ कातीचो रंग, मध्यम-गाढ कातीचो रंग',\n '👩🏿‍❤‍💋", "suffix": "तात: उजळ कातीचो रंग, मध्यम-गाढ कातीचो रंग',\n '🧑🏻‍🫯‍🧑🏿' => 'लोक मल्लयुध्द करतात: उजळ कातीचो रंग, गाढ कातीचो रंग',\n '🧑🏼‍🫯‍🧑🏻' => 'लोक मल्लयुध्द करतात: मध्यम-उजळ कातीचो रंग, उजळ कातीचो रंग',\n '🧑🏼‍🫯‍🧑🏽' => 'लोक मल्लयुध्द करतात: मध्यम-उजळ कातीचो रंग, म", "middle": "‍👩🏿' => 'उमो: बायल, बायल, गाढ कातीचो रंग',\n '🧑🏻‍🫯‍🧑🏼' => 'लोक मल्लयुध्द करतात: उजळ कातीचो रंग, मध्यम-उजळ कातीचो रंग',\n '🧑🏻‍🫯‍🧑🏽' => 'लोक मल्लयुध्द करतात: उजळ कातीचो रंग, मध्यम कातीचो रंग',\n '🧑🏻‍🫯‍🧑🏾' => 'लोक मल्लयुध्द कर", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-kok.php", "language": "php", "file_size": 386648, "cut_index": 7068, "middle_length": 229}} {"prefix": "рөшчүлөр: кара, буудай жүздүү',\n '🧑🏿‍🫯‍🧑🏽' => 'күрөшчүлөр: кара, орточо',\n '🧑🏿‍🫯‍🧑🏾' => 'күрөшчүлөр: кара, кара тору',\n '🧑🏻‍❤‍🧑🏼' => 'сүйүшкөн түгөйлөр: адам, адам, акжуумал, буудай жүздүү',\n '🧑🏻‍❤‍🧑🏽' => 'сүйүшкөн түгөйлөр: адам, адам, акжуумал, орточо',\n '🧑🏻‍❤‍🧑🏾' => 'сүйүшкөн түгөйлөр: адам, адам, акжуумал, кара тору',\n '🧑🏻‍❤‍🧑🏿' => 'сүйүшкөн түгөйлөр: адам, адам, акжуумал, кара',\n '🧑🏼‍❤‍🧑🏻' => 'сүйүшкөн түгөйлөр: адам, адам, буудай жүздүү, акжуумал',\n '🧑🏼‍❤‍🧑🏽' => 'сүйүшкөн түгөй", "suffix": ", адам, орточо, акжуумал',\n '🧑🏽‍❤‍🧑🏼' => 'сүйүшкөн түгөйлөр: адам, адам, орточо, буудай жүздүү',\n '🧑🏽‍❤‍🧑🏾' => 'сүйүшкөн түгөйлөр: адам, адам, орточо, кара тору',\n '🧑🏽‍❤‍🧑🏿' => 'сүйүшкөн түгөйлөр: адам, адам, орточо, кара',\n '🧑🏾‍❤‍🧑🏻' => 'сүйүш", "middle": "лөр: адам, адам, буудай жүздүү, орточо',\n '🧑🏼‍❤‍🧑🏾' => 'сүйүшкөн түгөйлөр: адам, адам, буудай жүздүү, кара тору',\n '🧑🏼‍❤‍🧑🏿' => 'сүйүшкөн түгөйлөр: адам, адам, буудай жүздүү, кара',\n '🧑🏽‍❤‍🧑🏻' => 'сүйүшкөн түгөйлөр: адам", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ky.php", "language": "php", "file_size": 264482, "cut_index": 7068, "middle_length": 229}} {"prefix": "> 'baxo: òmmo, òmmo, carnaxon scua e carnaxon cô d’öiva',\n '👨🏿‍❤‍💋‍👨🏾' => 'baxo: òmmo, òmmo, carnaxon scua e carnaxon assæ scua',\n '👨🏿‍❤‍💋‍👨🏿' => 'baxo: òmmo, òmmo e carnaxon scua',\n '👩🏻‍❤‍💋‍👨🏻' => 'baxo: dònna, òmmo e carnaxon ciæa',\n '👩🏻‍❤‍💋‍👨🏼' => 'baxo: dònna, òmmo, carnaxon ciæa e carnaxon assæ ciæa',\n '👩🏻‍❤‍💋‍👨🏽' => 'baxo: dònna, òmmo, carnaxon ciæa e carnaxon cô d’öiva',\n '👩🏻‍❤‍💋‍👨🏾' => 'baxo: dònna, òmmo, carnaxon ciæa e carnaxon assæ scua',\n '👩🏻‍❤‍💋‍👨🏿' => 'baxo: dònna, òmmo, c", "suffix": "arnaxon cô d’öiva',\n '👩🏼‍❤‍💋‍👨🏾' => 'baxo: dònna, òmmo, carnaxon assæ ciæa e carnaxon assæ scua',\n '👩🏼‍❤‍💋‍👨🏿' => 'baxo: dònna, òmmo, carnaxon assæ ciæa e carnaxon scua',\n '👩🏽‍❤‍💋‍👨🏻' => 'baxo: dònna, òmmo, carnaxon cô d’öiva e carnaxon ciæa',\n ", "middle": "arnaxon ciæa e carnaxon scua',\n '👩🏼‍❤‍💋‍👨🏻' => 'baxo: dònna, òmmo, carnaxon assæ ciæa e carnaxon ciæa',\n '👩🏼‍❤‍💋‍👨🏼' => 'baxo: dònna, òmmo e carnaxon assæ ciæa',\n '👩🏼‍❤‍💋‍👨🏽' => 'baxo: dònna, òmmo, carnaxon assæ ciæa e c", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-lij.php", "language": "php", "file_size": 137339, "cut_index": 3790, "middle_length": 229}} {"prefix": " moteris moteris tamsios odos',\n '👩🏾‍❤‍💋‍👩🏿' => 'bučinys: moteris moteris tamsios odos itin tamsios odos',\n '👩🏿‍❤‍💋‍👩🏻' => 'bučinys: moteris moteris itin tamsios odos šviesios odos',\n '👩🏿‍❤‍💋‍👩🏼' => 'bučinys: moteris moteris itin tamsios odos vidutinio gymio',\n '👩🏿‍❤‍💋‍👩🏽' => 'bučinys: moteris moteris itin tamsios odos rusvos odos',\n '👩🏿‍❤‍💋‍👩🏾' => 'bučinys: moteris moteris itin tamsios odos tamsios odos',\n '👩🏿‍❤‍💋‍👩🏿' => 'bučinys: moteris moteris itin tamsios odos',\n '🧑🏻‍🫯‍🧑🏼' => 'imty", "suffix": " '🧑🏼‍🫯‍🧑🏻' => 'imtynininkai: vidutinio gymio šviesios odos',\n '🧑🏼‍🫯‍🧑🏽' => 'imtynininkai: vidutinio gymio rusvos odos',\n '🧑🏼‍🫯‍🧑🏾' => 'imtynininkai: vidutinio gymio tamsios odos',\n '🧑🏼‍🫯‍🧑🏿' => 'imtynininkai: vidutinio gymio itin tamsios odos',", "middle": "nininkai: šviesios odos vidutinio gymio',\n '🧑🏻‍🫯‍🧑🏽' => 'imtynininkai: šviesios odos rusvos odos',\n '🧑🏻‍🫯‍🧑🏾' => 'imtynininkai: šviesios odos tamsios odos',\n '🧑🏻‍🫯‍🧑🏿' => 'imtynininkai: šviesios odos itin tamsios odos',\n", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-lt.php", "language": "php", "file_size": 210285, "cut_index": 7068, "middle_length": 229}} {"prefix": " talemmast',\n '🧑🏾‍🐰‍🧑🏿' => 'imdanen s yimeẓẓuɣen n yiwtal: taglimt tubrikt talemmast, taglimt tubrikt',\n '🧑🏿‍🐰‍🧑🏻' => 'imdanen s yimeẓẓuɣen n yiwtal: taglimt tubrikt, taglimt taceɛlalt',\n '🧑🏿‍🐰‍🧑🏼' => 'imdanen s yimeẓẓuɣen n yiwtal: taglimt tubrikt, tagwlimt taceɛlalt talemmast',\n '🧑🏿‍🐰‍🧑🏽' => 'imdanen s yimeẓẓuɣen n yiwtal: taglimt tubrikt, taglimt talemmast',\n '🧑🏿‍🐰‍🧑🏾' => 'imdanen s yimeẓẓuɣen n yiwtal: taglimt tubrikt, taglimt tubrikt talemmast',\n '👨🏻‍❤‍👨🏻' => 'tayuga s wul: argaz, arg", "suffix": " s wul: argaz, argaz, taglimt taceɛlalt, taglimt tubrikt talemmast',\n '👨🏻‍❤‍👨🏿' => 'tayuga s wul: argaz, argaz, taglimt taceɛlalt, taglimt tubrikt',\n '👨🏼‍❤‍👨🏻' => 'tayuga s wul: argaz, argaz, tagwlimt taceɛlalt talemmast, taglimt taceɛlalt',\n '👨🏼‍", "middle": "az, taglimt taceɛlalt',\n '👨🏻‍❤‍👨🏼' => 'tayuga s wul: argaz, argaz, taglimt taceɛlalt, tagwlimt taceɛlalt talemmast',\n '👨🏻‍❤‍👨🏽' => 'tayuga s wul: argaz, argaz, taglimt taceɛlalt, taglimt talemmast',\n '👨🏻‍❤‍👨🏾' => 'tayuga", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-kab.php", "language": "php", "file_size": 107619, "cut_index": 3790, "middle_length": 229}} {"prefix": "មៅល្មម',\n '🧑🏽‍🫯‍🧑🏿' => 'មនុស្សបោកចំបាប់: សម្បុរស្រអែម សម្បុរខ្មៅ',\n '🧑🏾‍🫯‍🧑🏻' => 'មនុស្សបោកចំបាប់: សម្បុរខ្មៅល្មម សម្បុរស',\n '🧑🏾‍🫯‍🧑🏼' => 'មនុស្សបោកចំបាប់: សម្បុរខ្មៅល្មម សម្បុរសល្មម',\n '🧑🏾‍🫯‍🧑🏽' => 'មនុស្សបោកចំបាប់: សម្បុរខ្មៅល្មម សម្បុរស្រអែម',\n '🧑🏾‍🫯‍🧑🏿' => 'មនុស្សបោកចំបាប់: សម្បុរខ្មៅល្មម សម្បុរខ្មៅ',\n '🧑🏿‍🫯‍🧑🏻' => 'មនុស្សបោកចំបាប់: សម្បុរខ្មៅ សម្បុរស',\n '🧑🏿‍🫯‍🧑🏼' => 'មនុស្សបោកចំបាប់: សម្បុរខ្មៅ សម្បុរសល្មម',\n '🧑🏿‍🫯‍🧑🏽' => 'មនុស្សបោកចំបាប់: សម្បុរខ្មៅ សម្បុរស្រអែម',\n '🧑🏿‍🫯‍🧑🏾'", "suffix": "=> 'បេះដូងនៅចន្លោះគូស្នេហ៍: មនុស្សធំ មនុស្សធំ សម្បុរស សម្បុរខ្មៅល្មម',\n '🧑🏻‍❤‍🧑🏿' => 'បេះដូងនៅចន្លោះគូស្នេហ៍: មនុស្សធំ មនុស្សធំ សម្បុរស សម្បុរខ្មៅ',\n '🧑🏼‍❤‍🧑🏻' => 'បេះដូងនៅចន្លោះគូស្នេហ៍: មនុស្សធំ មនុស្សធំ សម្បុរសល្មម សម្បុរស',\n '🧑🏼‍❤‍🧑🏽' => 'បេះដ", "middle": " => 'មនុស្សបោកចំបាប់: សម្បុរខ្មៅ សម្បុរខ្មៅល្មម',\n '🧑🏻‍❤‍🧑🏼' => 'បេះដូងនៅចន្លោះគូស្នេហ៍: មនុស្សធំ មនុស្សធំ សម្បុរស សម្បុរសល្មម',\n '🧑🏻‍❤‍🧑🏽' => 'បេះដូងនៅចន្លោះគូស្នេហ៍: មនុស្សធំ មនុស្សធំ សម្បុរស សម្បុរស្រអែម',\n '🧑🏻‍❤‍🧑🏾' ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-km.php", "language": "php", "file_size": 366796, "cut_index": 7068, "middle_length": 229}} {"prefix": "🇮' => 'ala: Anguîla',\n '🇦🇱' => 'ala: Albanya',\n '🇦🇲' => 'ala: Ermenistan',\n '🇦🇴' => 'ala: Angola',\n '🇦🇶' => 'ala: Antarktîka',\n '🇦🇷' => 'ala: Arjantîn',\n '🇦🇸' => 'ala: Samoaya Amerîkanî',\n '🇦🇹' => 'ala: Awistirya',\n '🇦🇺' => 'ala: Awistralya',\n '🇦🇼' => 'ala: Arûba',\n '🇦🇽' => 'ala: Giravên Alandê',\n '🇦🇿' => 'ala: Azerbeycan',\n '🇧🇦' => 'ala: Bosna û Hersek',\n '🇧🇧' => 'ala: Barbados',\n '🇧🇩' => 'ala: Bengladeş',\n '🇧🇪' => 'ala: Belçîka',\n '🇧🇫' => 'ala: Burkîna Faso'", "suffix": "îvya',\n '🇧🇶' => 'ala: Holendaya Karayîbê',\n '🇧🇷' => 'ala: Brezîlya',\n '🇧🇸' => 'ala: Bahama',\n '🇧🇹' => 'ala: Bûtan',\n '🇧🇻' => 'ala: Girava Bouvetê',\n '🇧🇼' => 'ala: Botswana',\n '🇧🇾' => 'ala: Belarûs',\n '🇧🇿' => 'ala: Belîze',\n '🇨🇦' ", "middle": ",\n '🇧🇬' => 'ala: Bulgaristan',\n '🇧🇭' => 'ala: Behreyn',\n '🇧🇮' => 'ala: Bûrûndî',\n '🇧🇯' => 'ala: Bênîn',\n '🇧🇱' => 'ala: Saint Barthelemy',\n '🇧🇲' => 'ala: Bermûda',\n '🇧🇳' => 'ala: Brûney',\n '🇧🇴' => 'ala: Bol", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ku.php", "language": "php", "file_size": 11143, "cut_index": 716, "middle_length": 229}} {"prefix": "ດຳ, ສີຜິວໂທນຂາວປານກາງ',\n '👩🏿‍❤‍💋‍👩🏽' => 'ຈູບ: ແມ່ຍິງ, ແມ່ຍິງ, ສີຜິວໂທນດຳ, ສີຜິວໂທນປານກາງ',\n '👩🏿‍❤‍💋‍👩🏾' => 'ຈູບ: ແມ່ຍິງ, ແມ່ຍິງ, ສີຜິວໂທນດຳ, ສີຜິວໂທນດຳປານກາງ',\n '👩🏿‍❤‍💋‍👩🏿' => 'ຈູບ: ແມ່ຍິງ, ແມ່ຍິງ, ສີຜິວໂທນດຳ',\n '🧑🏻‍🫯‍🧑🏼' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນຂາວ, ສີຜິວໂທນຂາວປານກາງ',\n '🧑🏻‍🫯‍🧑🏽' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນຂາວ, ສີຜິວໂທນປານກາງ',\n '🧑🏻‍🫯‍🧑🏾' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນຂາວ, ສີຜິວໂທນດຳປານກາງ',\n '🧑🏻‍🫯‍🧑🏿' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນຂາວ, ສີຜິວໂທນດຳ',\n '🧑🏼‍🫯‍🧑🏻' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນຂາວປານກາງ, ສີ", "suffix": "ມວຍປໍ້າ: ສີຜິວໂທນປານກາງ, ສີຜິວໂທນຂາວ',\n '🧑🏽‍🫯‍🧑🏼' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນປານກາງ, ສີຜິວໂທນຂາວປານກາງ',\n '🧑🏽‍🫯‍🧑🏾' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນປານກາງ, ສີຜິວໂທນດຳປານກາງ',\n '🧑🏽‍🫯‍🧑🏿' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນປານກາງ, ສີຜິວໂທນດຳ',\n '🧑🏾‍🫯‍🧑🏻' => 'ນັກມວຍປໍ້", "middle": "ຜິວໂທນຂາວ',\n '🧑🏼‍🫯‍🧑🏽' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນຂາວປານກາງ, ສີຜິວໂທນປານກາງ',\n '🧑🏼‍🫯‍🧑🏾' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນຂາວປານກາງ, ສີຜິວໂທນດຳປານກາງ',\n '🧑🏼‍🫯‍🧑🏿' => 'ນັກມວຍປໍ້າ: ສີຜິວໂທນຂາວປານກາງ, ສີຜິວໂທນດຳ',\n '🧑🏽‍🫯‍🧑🏻' => 'ນັກ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-lo.php", "language": "php", "file_size": 360593, "cut_index": 7068, "middle_length": 229}} {"prefix": "rf',\n '👨🏾‍❤‍💋‍👨🏾' => 'Kuss: Mann, Mann, mëtteldäischter Hautfaarf',\n '👨🏾‍❤‍💋‍👨🏿' => 'Kuss: Mann, Mann, mëtteldäischter Hautfaarf, däischter Hautfaarf',\n '👨🏿‍❤‍💋‍👨🏻' => 'Kuss: Mann, Mann, däischter Hautfaarf, hell Hautfaarf',\n '👨🏿‍❤‍💋‍👨🏼' => 'Kuss: Mann, Mann, däischter Hautfaarf, mëttelhell Hautfaarf',\n '👨🏿‍❤‍💋‍👨🏽' => 'Kuss: Mann, Mann, däischter Hautfaarf, mëttel Hautfaarf',\n '👨🏿‍❤‍💋‍👨🏾' => 'Kuss: Mann, Mann, däischter Hautfaarf, mëtteldäischter Hautfaarf',\n '👨🏿‍❤‍💋‍👨🏿' => 'Kuss: Mann,", "suffix": ",\n '👩🏻‍❤‍💋‍👨🏾' => 'Kuss: Fra, Mann, hell Hautfaarf, mëtteldäischter Hautfaarf',\n '👩🏻‍❤‍💋‍👨🏿' => 'Kuss: Fra, Mann, hell Hautfaarf, däischter Hautfaarf',\n '👩🏼‍❤‍💋‍👨🏻' => 'Kuss: Fra, Mann, mëttelhell Hautfaarf, hell Hautfaarf',\n '👩🏼‍❤‍💋‍👨🏼' => 'Ku", "middle": " Mann, däischter Hautfaarf',\n '👩🏻‍❤‍💋‍👨🏻' => 'Kuss: Fra, Mann, hell Hautfaarf',\n '👩🏻‍❤‍💋‍👨🏼' => 'Kuss: Fra, Mann, hell Hautfaarf, mëttelhell Hautfaarf',\n '👩🏻‍❤‍💋‍👨🏽' => 'Kuss: Fra, Mann, hell Hautfaarf, mëttel Hautfaarf'", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-lb.php", "language": "php", "file_size": 154535, "cut_index": 3790, "middle_length": 229}} {"prefix": "‍👩‍👧' => 'familie: mand, kvinde, pige',\n '👨‍👨‍👦' => 'familie: mand, mand, dreng',\n '👨‍👨‍👧' => 'familie: mand, mand, pige',\n '👩‍👩‍👦' => 'familie: kvinde, kvinde, dreng',\n '👩‍👩‍👧' => 'familie: kvinde, kvinde, pige',\n '👨‍👦‍👦' => 'familie: mand, dreng, dreng',\n '👨‍👧‍👦' => 'familie: mand, pige, dreng',\n '👨‍👧‍👧' => 'familie: mand, pige, pige',\n '👩‍👦‍👦' => 'familie: kvinde, dreng, dreng',\n '👩‍👧‍👦' => 'familie: kvinde, pige, dreng',\n '👩‍👧‍👧' => 'familie: kvinde, pige, pige',\n '👨‍👦' ", "suffix": " '🙍‍♂' => 'mand rynker panden',\n '🙍‍♀' => 'kvinde rynker panden',\n '🙎‍♂' => 'mand surmuler',\n '🙎‍♀' => 'kvinde surmuler',\n '🙅‍♂' => 'mand signalerer nej',\n '🙅‍♀' => 'kvinde signalerer nej',\n '🙆‍♂' => 'mand signalerer ok',\n '🙆‍♀' => '", "middle": "=> 'familie: mand, dreng',\n '👨‍👧' => 'familie: mand, pige',\n '👩‍👦' => 'familie: kvinde, dreng',\n '👩‍👧' => 'familie: kvinde, pige',\n '👁‍🗨' => 'øje i taleboble',\n '👱‍♂' => 'blond mand',\n '👱‍♀' => 'blond kvinde',\n ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-kl.php", "language": "php", "file_size": 37092, "cut_index": 1331, "middle_length": 229}} {"prefix": ": 여자 여자 하얀 피부 연한 갈색 피부',\n '👩🏻‍❤‍💋‍👩🏽' => '키스: 여자 여자 하얀 피부 갈색 피부',\n '👩🏻‍❤‍💋‍👩🏾' => '키스: 여자 여자 하얀 피부 진한 갈색 피부',\n '👩🏻‍❤‍💋‍👩🏿' => '키스: 여자 여자 하얀 피부 검은색 피부',\n '👩🏼‍❤‍💋‍👩🏻' => '키스: 여자 여자 연한 갈색 피부 하얀 피부',\n '👩🏼‍❤‍💋‍👩🏼' => '키스: 여자 여자 연한 갈색 피부',\n '👩🏼‍❤‍💋‍👩🏽' => '키스: 여자 여자 연한 갈색 피부 갈색 피부',\n '👩🏼‍❤‍💋‍👩🏾' => '키스: 여자 여자 연한 갈색 피부 진한 갈색 피부',\n '👩🏼‍❤‍💋‍👩🏿' => '키스: 여자 여자 연한 갈색 피부 검은색 피부',\n '👩🏽‍❤‍💋‍👩🏻' => '키스: 여자 여자 갈색 피부 하얀 피부',\n '👩🏽‍❤‍💋‍👩🏼' => '키스: 여자 여자 갈색 피부 연한 갈색 피부',\n '👩🏽‍❤‍💋‍👩🏽' => '키스: 여자 ", "suffix": " 진한 갈색 피부 갈색 피부',\n '👩🏾‍❤‍💋‍👩🏾' => '키스: 여자 여자 진한 갈색 피부',\n '👩🏾‍❤‍💋‍👩🏿' => '키스: 여자 여자 진한 갈색 피부 검은색 피부',\n '👩🏿‍❤‍💋‍👩🏻' => '키스: 여자 여자 검은색 피부 하얀 피부',\n '👩🏿‍❤‍💋‍👩🏼' => '키스: 여자 여자 검은색 피부 연한 갈색 피부',\n '👩🏿‍❤‍💋‍👩🏽' => '키스: 여자 여자 검은색 피부 갈색 피부',\n '👩🏿‍❤‍💋", "middle": "여자 갈색 피부',\n '👩🏽‍❤‍💋‍👩🏾' => '키스: 여자 여자 갈색 피부 진한 갈색 피부',\n '👩🏽‍❤‍💋‍👩🏿' => '키스: 여자 여자 갈색 피부 검은색 피부',\n '👩🏾‍❤‍💋‍👩🏻' => '키스: 여자 여자 진한 갈색 피부 하얀 피부',\n '👩🏾‍❤‍💋‍👩🏼' => '키스: 여자 여자 진한 갈색 피부 연한 갈색 피부',\n '👩🏾‍❤‍💋‍👩🏽' => '키스: 여자 여자", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ko.php", "language": "php", "file_size": 213191, "cut_index": 3790, "middle_length": 229}} {"prefix": "ᱲ',\n '🐕‍🦺' => 'ᱠᱟᱹᱢᱤ ᱥᱮᱛᱟ',\n '🐈‍⬛' => 'ᱦᱮᱱᱫᱮ ᱯᱩᱥᱤ',\n '🐦‍⬛' => 'ᱦᱮᱱᱫᱮ ᱪᱮᱬᱮ',\n '🇦🇨' => 'ᱪᱤᱨ: ᱟᱥᱮᱱᱥᱤᱭᱟᱹᱱ ᱟᱭᱞᱮᱸᱰ',\n '🇦🇩' => 'ᱪᱤᱨ: ᱟᱱᱰᱚᱨᱟ',\n '🇦🇪' => 'ᱪᱤᱨ: ᱡᱩᱢᱤᱫ ᱟᱨᱟᱹᱵ ᱮᱢᱤᱨᱮᱴᱥ',\n '🇦🇫' => 'ᱪᱤᱨ: ᱟᱯᱷᱜᱟᱱᱤᱥᱛᱟᱱ',\n '🇦🇬' => 'ᱪᱤᱨ: ᱟᱱᱴᱤᱜᱩᱣᱟ ᱟᱨ ᱵᱟᱹᱨᱢᱩᱱᱰᱟ',\n '🇦🇮' => 'ᱪᱤᱨ: ᱟᱹᱱᱜᱩᱭᱞᱟ',\n '🇦🇱' => 'ᱪᱤᱨ: ᱟᱞᱵᱟᱱᱤᱭᱟ',\n '🇦🇲' => 'ᱪᱤᱨ: ᱟᱨᱢᱮᱱᱤᱭᱟ',\n '🇦🇴' => 'ᱪᱤᱨ: ᱟᱹᱱᱜᱚᱞᱟ',\n '🇦🇶' => 'ᱪᱤᱨ: ᱟᱱᱴᱟᱨᱠᱴᱤᱠᱟ',\n '🇦🇷' => 'ᱪᱤᱨ: ᱟᱨᱡᱮᱱᱴᱤᱱᱟ',\n '🇦🇸' => 'ᱪᱤᱨ: ᱟᱢᱮᱨᱤᱠᱟᱹᱱ ᱥᱟᱢᱚᱣᱟ',\n '🇦🇹' => 'ᱪᱤᱨ: ᱟᱥᱴᱨᱮᱞᱤᱭᱟ',\n '", "suffix": " => 'ᱪᱤᱨ: ᱵᱮᱞᱡᱤᱭᱟᱹᱢ',\n '🇧🇫' => 'ᱪᱤᱨ: ᱵᱩᱨᱠᱤᱱᱟ ᱯᱷᱟᱥᱚ',\n '🇧🇬' => 'ᱪᱤᱨ: ᱵᱩᱞᱜᱟᱨᱤᱭᱟ',\n '🇧🇭' => 'ᱪᱤᱨ: ᱵᱟᱦᱨᱮᱱ',\n '🇧🇮' => 'ᱪᱤᱨ: ᱵᱩᱨᱩᱱᱰᱤ',\n '🇧🇯' => 'ᱪᱤᱨ: ᱵᱮᱱᱤᱱ',\n '🇧🇱' => 'ᱪᱤᱨ: ᱮᱥ ᱴᱤ ᱵᱟᱨᱛᱷᱮᱞᱮᱢᱤ',\n '🇧🇲' => 'ᱪᱤᱨ: ᱵᱟᱹᱨᱢᱩᱱᱰᱟ',\n '🇧🇳' => 'ᱪᱤᱨ: ᱵᱽᱨᱩ", "middle": "🇦🇺' => 'ᱪᱤᱨ: ᱚᱥᱴᱨᱮᱞᱤᱭᱟ',\n '🇦🇼' => 'ᱪᱤᱨ: ᱟᱹᱨᱩᱵᱟ',\n '🇦🇽' => 'ᱪᱤᱨ: ᱮᱞᱮᱸᱰ ᱫᱣᱤᱯᱫᱳᱞ',\n '🇦🇿' => 'ᱪᱤᱨ: ᱟᱹᱡᱟᱹᱨᱵᱮᱭᱡᱟᱱ',\n '🇧🇦' => 'ᱪᱤᱨ: ᱵᱚᱥᱱᱤᱭᱟ ᱟᱨ ᱦᱟᱹᱨᱡᱮᱜᱚᱣᱤᱭᱟ',\n '🇧🇧' => 'ᱪᱤᱨ: ᱵᱟᱨᱵᱟᱰᱚᱥ',\n '🇧🇩' => 'ᱪᱤᱨ: ᱵᱟᱝᱞᱟᱫᱮᱥ',\n '🇧🇪'", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sat.php", "language": "php", "file_size": 30054, "cut_index": 921, "middle_length": 229}} {"prefix": "koža i srednje tamna koža',\n '👩🏻‍❤‍💋‍👩🏿' => 'poljubac: žena, žena, svijetla koža i tamna koža',\n '👩🏼‍❤‍💋‍👩🏻' => 'poljubac: žena, žena, srednje svijetla koža i svijetla koža',\n '👩🏼‍❤‍💋‍👩🏼' => 'poljubac: žena, žena i srednje svijetla koža',\n '👩🏼‍❤‍💋‍👩🏽' => 'poljubac: žena, žena, srednje svijetla koža i ni svijetla ni tamna koža',\n '👩🏼‍❤‍💋‍👩🏾' => 'poljubac: žena, žena, srednje svijetla koža i srednje tamna koža',\n '👩🏼‍❤‍💋‍👩🏿' => 'poljubac: žena, žena, srednje svijetla koža i tamna koža',\n ", "suffix": "a ni tamna koža',\n '👩🏽‍❤‍💋‍👩🏾' => 'poljubac: žena, žena, ni svijetla ni tamna koža i srednje tamna koža',\n '👩🏽‍❤‍💋‍👩🏿' => 'poljubac: žena, žena, ni svijetla ni tamna koža i tamna koža',\n '👩🏾‍❤‍💋‍👩🏻' => 'poljubac: žena, žena, srednje tamna koža i s", "middle": "'👩🏽‍❤‍💋‍👩🏻' => 'poljubac: žena, žena, ni svijetla ni tamna koža i svijetla koža',\n '👩🏽‍❤‍💋‍👩🏼' => 'poljubac: žena, žena, ni svijetla ni tamna koža i srednje svijetla koža',\n '👩🏽‍❤‍💋‍👩🏽' => 'poljubac: žena, žena i ni svijetl", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sr_latn_ba.php", "language": "php", "file_size": 211243, "cut_index": 7068, "middle_length": 229}} {"prefix": "ʻuli',\n '👩🏽‍❤‍💋‍👩🏻' => 'ʻuma: fefine, fefine, kili melomelo mo e kili hinehina',\n '👩🏽‍❤‍💋‍👩🏼' => 'ʻuma: fefine, fefine, kili melomelo mo e kili kelokelo',\n '👩🏽‍❤‍💋‍👩🏽' => 'ʻuma: fefine, fefine mo e kili melomelo',\n '👩🏽‍❤‍💋‍👩🏾' => 'ʻuma: fefine, fefine, kili melomelo mo e kili melomelo-ʻuliʻuli',\n '👩🏽‍❤‍💋‍👩🏿' => 'ʻuma: fefine, fefine, kili melomelo mo e kili ʻuliʻuli',\n '👩🏾‍❤‍💋‍👩🏻' => 'ʻuma: fefine, fefine, kili melomelo-ʻuliʻuli mo e kili hinehina',\n '👩🏾‍❤‍💋‍👩🏼' => 'ʻuma: fefine, fefine", "suffix": "fefine, fefine, kili melomelo-ʻuliʻuli mo e kili ʻuliʻuli',\n '👩🏿‍❤‍💋‍👩🏻' => 'ʻuma: fefine, fefine, kili ʻuliʻuli mo e kili hinehina',\n '👩🏿‍❤‍💋‍👩🏼' => 'ʻuma: fefine, fefine, kili ʻuliʻuli mo e kili kelokelo',\n '👩🏿‍❤‍💋‍👩🏽' => 'ʻuma: fefine, fefine, ", "middle": ", kili melomelo-ʻuliʻuli mo e kili kelokelo',\n '👩🏾‍❤‍💋‍👩🏽' => 'ʻuma: fefine, fefine, kili melomelo-ʻuliʻuli mo e kili melomelo',\n '👩🏾‍❤‍💋‍👩🏾' => 'ʻuma: fefine, fefine mo e kili melomelo-ʻuliʻuli',\n '👩🏾‍❤‍💋‍👩🏿' => 'ʻuma: ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-to.php", "language": "php", "file_size": 212875, "cut_index": 7068, "middle_length": 229}} {"prefix": "а кожа 5',\n '👩🏾‍❤‍💋‍👩🏿' => 'бакнеж: жена, жена, тип на кожа 5 и тип на кожа 6',\n '👩🏿‍❤‍💋‍👩🏻' => 'бакнеж: жена, жена, тип на кожа 6 и тип на кожа 1–2',\n '👩🏿‍❤‍💋‍👩🏼' => 'бакнеж: жена, жена, тип на кожа 6 и тип на кожа 3',\n '👩🏿‍❤‍💋‍👩🏽' => 'бакнеж: жена, жена, тип на кожа 6 и тип на кожа 4',\n '👩🏿‍❤‍💋‍👩🏾' => 'бакнеж: жена, жена, тип на кожа 6 и тип на кожа 5',\n '👩🏿‍❤‍💋‍👩🏿' => 'бакнеж: жена, жена и тип на кожа 6',\n '🧑🏻‍🫯‍🧑🏼' => 'лица кои се борат: тип на кожа 1–2 и тип на кожа 3',\n '🧑🏻‍🫯‍🧑", "suffix": "се борат: тип на кожа 3 и тип на кожа 1–2',\n '🧑🏼‍🫯‍🧑🏽' => 'лица кои се борат: тип на кожа 3 и тип на кожа 4',\n '🧑🏼‍🫯‍🧑🏾' => 'лица кои се борат: тип на кожа 3 и тип на кожа 5',\n '🧑🏼‍🫯‍🧑🏿' => 'лица кои се борат: тип на кожа 3 и тип на кожа 6',\n '", "middle": "🏽' => 'лица кои се борат: тип на кожа 1–2 и тип на кожа 4',\n '🧑🏻‍🫯‍🧑🏾' => 'лица кои се борат: тип на кожа 1–2 и тип на кожа 5',\n '🧑🏻‍🫯‍🧑🏿' => 'лица кои се борат: тип на кожа 1–2 и тип на кожа 6',\n '🧑🏼‍🫯‍🧑🏻' => 'лица кои ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-mk.php", "language": "php", "file_size": 268936, "cut_index": 7068, "middle_length": 229}} {"prefix": "hiira, toonii gogaa gurraachaa, toonii gogaa ifaa',\n '👩🏿‍❤‍💋‍👨🏼' => 'dhungoo: dubartii, dhiira, toonii gogaa gurraachaa, toonii gogaa ifaa-gidduugaleessa',\n '👩🏿‍❤‍💋‍👨🏽' => 'dhungoo: dubartii, dhiira, toonii gogaa gurraachaa, toonii godaa gidduugaleessa',\n '👩🏿‍❤‍💋‍👨🏾' => 'dhungoo: dubartii, dhiira, toonii gogaa gurraachaa, toonii gogaa gurraacha-gidduugaleessa',\n '👩🏿‍❤‍💋‍👨🏿' => 'dhungoo: dubartii, dhiira, toonii gogaa gurraachaa',\n '👩🏻‍❤‍💋‍👩🏻' => 'dhungoo: dubartii, dubartii, toonii gogaa ifaa", "suffix": "oo: dubartii, dubartii, toonii gogaa ifaa, toonii gogaa gurraacha-gidduugaleessa',\n '👩🏻‍❤‍💋‍👩🏿' => 'dhungoo: dubartii, dubartii, toonii gogaa ifaa, toonii gogaa gurraachaa',\n '👩🏼‍❤‍💋‍👩🏻' => 'dhungoo: dubartii, dubartii, toonii gogaa ifaa-gidduugalees", "middle": "',\n '👩🏻‍❤‍💋‍👩🏼' => 'dhungoo: dubartii, dubartii, toonii gogaa ifaa, toonii gogaa ifaa-gidduugaleessa',\n '👩🏻‍❤‍💋‍👩🏽' => 'dhungoo: dubartii, dubartii, toonii gogaa ifaa, toonii godaa gidduugaleessa',\n '👩🏻‍❤‍💋‍👩🏾' => 'dhung", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-om.php", "language": "php", "file_size": 223899, "cut_index": 7068, "middle_length": 229}} {"prefix": "=> 'kihi: wahine, wahine, kiri āhua waenga, kiri āhua waenga-parauri',\n '👩🏽‍❤‍💋‍👩🏿' => 'kihi: wahine, wahine, kiri āhua waenga, kiri āhua parauri',\n '👩🏾‍❤‍💋‍👩🏻' => 'kihi: wahine, wahine, kiri āhua waenga-parauri, kiri āhua māmā',\n '👩🏾‍❤‍💋‍👩🏼' => 'kihi: wahine, wahine, kiri āhua waenga-parauri, kiri āhua māmā-waenga',\n '👩🏾‍❤‍💋‍👩🏽' => 'kihi: wahine, wahine, kiri āhua waenga-parauri, kiri āhua waenga',\n '👩🏾‍❤‍💋‍👩🏾' => 'kihi: wahine, wahine, kiri āhua waenga-parauri',\n '👩🏾‍❤‍💋‍👩🏿' => 'kihi: wa", "suffix": "🏿‍❤‍💋‍👩🏽' => 'kihi: wahine, wahine, kiri āhua parauri, kiri āhua waenga',\n '👩🏿‍❤‍💋‍👩🏾' => 'kihi: wahine, wahine, kiri āhua parauri, kiri āhua waenga-parauri',\n '👩🏿‍❤‍💋‍👩🏿' => 'kihi: wahine, wahine, kiri āhua parauri',\n '🧑🏻‍🫯‍🧑🏼' => 'tāngata mamau:", "middle": "hine, wahine, kiri āhua waenga-parauri, kiri āhua parauri',\n '👩🏿‍❤‍💋‍👩🏻' => 'kihi: wahine, wahine, kiri āhua parauri, kiri āhua māmā',\n '👩🏿‍❤‍💋‍👩🏼' => 'kihi: wahine, wahine, kiri āhua parauri, kiri āhua māmā-waenga',\n '👩", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-mi.php", "language": "php", "file_size": 167638, "cut_index": 7068, "middle_length": 229}} {"prefix": "वचा, मध्यम उजळ त्वचा',\n '🧑🏻‍🫯‍🧑🏽' => 'कुस्तीगीर: उजळ त्वचा, मध्यम त्वचा',\n '🧑🏻‍🫯‍🧑🏾' => 'कुस्तीगीर: उजळ त्वचा, मध्यम काळसर त्वचा',\n '🧑🏻‍🫯‍🧑🏿' => 'कुस्तीगीर: उजळ त्वचा, काळसर त्वचा',\n '🧑🏼‍🫯‍🧑🏻' => 'कुस्तीगीर: मध्यम उजळ त्वचा, उजळ त्वचा',\n '🧑🏼‍🫯‍🧑🏽' => 'कुस्तीगीर: मध्यम उजळ त्वचा, मध्यम त्वचा',\n '🧑🏼‍🫯‍🧑🏾' => 'कुस्तीगीर: मध्यम उजळ त्वचा, मध्यम काळसर त्वचा',\n '🧑🏼‍🫯‍🧑🏿' => 'कुस्तीगीर: मध्यम उजळ त्वचा, काळसर त्वचा',\n '🧑🏽‍🫯‍🧑🏻' => 'कुस्तीगीर: मध्यम त्वचा, उजळ त्वचा',\n '🧑🏽‍🫯‍🧑🏼' => 'कुस्त", "suffix": "=> 'कुस्तीगीर: मध्यम काळसर त्वचा, मध्यम उजळ त्वचा',\n '🧑🏾‍🫯‍🧑🏽' => 'कुस्तीगीर: मध्यम काळसर त्वचा, मध्यम त्वचा',\n '🧑🏾‍🫯‍🧑🏿' => 'कुस्तीगीर: मध्यम काळसर त्वचा, काळसर त्वचा',\n '🧑🏿‍🫯‍🧑🏻' => 'कुस्तीगीर: काळसर त्वचा, उजळ त्वचा',\n '🧑🏿‍🫯‍🧑🏼' => 'कुस्तीगी", "middle": "ीगीर: मध्यम त्वचा, मध्यम उजळ त्वचा',\n '🧑🏽‍🫯‍🧑🏾' => 'कुस्तीगीर: मध्यम त्वचा, मध्यम काळसर त्वचा',\n '🧑🏽‍🫯‍🧑🏿' => 'कुस्तीगीर: मध्यम त्वचा, काळसर त्वचा',\n '🧑🏾‍🫯‍🧑🏻' => 'कुस्तीगीर: मध्यम काळसर त्वचा, उजळ त्वचा',\n '🧑🏾‍🫯‍🧑🏼' ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-mr.php", "language": "php", "file_size": 368811, "cut_index": 7068, "middle_length": 229}} {"prefix": "rah dan ton kulit gelap',\n '👩🏼‍❤‍💋‍👩🏻' => 'cium: perempuan, perempuan, ton kulit sederhana cerah dan ton kulit cerah',\n '👩🏼‍❤‍💋‍👩🏼' => 'cium: perempuan, perempuan dan ton kulit sederhana cerah',\n '👩🏼‍❤‍💋‍👩🏽' => 'cium: perempuan, perempuan, ton kulit sederhana cerah dan ton kulit sederhana',\n '👩🏼‍❤‍💋‍👩🏾' => 'cium: perempuan, perempuan, ton kulit sederhana cerah dan ton kulit sederhana gelap',\n '👩🏼‍❤‍💋‍👩🏿' => 'cium: perempuan, perempuan, ton kulit sederhana cerah dan ton kulit gelap',\n '👩🏽‍❤", "suffix": "an ton kulit sederhana',\n '👩🏽‍❤‍💋‍👩🏾' => 'cium: perempuan, perempuan, ton kulit sederhana dan ton kulit sederhana gelap',\n '👩🏽‍❤‍💋‍👩🏿' => 'cium: perempuan, perempuan, ton kulit sederhana dan ton kulit gelap',\n '👩🏾‍❤‍💋‍👩🏻' => 'cium: perempuan, pere", "middle": "‍💋‍👩🏻' => 'cium: perempuan, perempuan, ton kulit sederhana dan ton kulit cerah',\n '👩🏽‍❤‍💋‍👩🏼' => 'cium: perempuan, perempuan, ton kulit sederhana dan ton kulit sederhana cerah',\n '👩🏽‍❤‍💋‍👩🏽' => 'cium: perempuan, perempuan d", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ms.php", "language": "php", "file_size": 222226, "cut_index": 7068, "middle_length": 229}} {"prefix": "-१-२',\n '👩🏽‍❤‍💋‍👩🏼' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-४,छालाको प्रकार-३',\n '👩🏽‍❤‍💋‍👩🏽' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे,छालाको प्रकार-४',\n '👩🏽‍❤‍💋‍👩🏾' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-४,छालाको प्रकार-५',\n '👩🏽‍❤‍💋‍👩🏿' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-४,छालाको प्रकार-६',\n '👩🏾‍❤‍💋‍👩🏻' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-५,छालाको प्रकार-१-२',\n '👩🏾‍❤‍💋‍👩🏼' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-५,छालाको प्रकार-३',\n '👩🏾‍❤‍", "suffix": " '👩🏿‍❤‍💋‍👩🏻' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-६,छालाको प्रकार-१-२',\n '👩🏿‍❤‍💋‍👩🏼' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-६,छालाको प्रकार-३',\n '👩🏿‍❤‍💋‍👩🏽' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-६,छालाको प्रकार-४',\n", "middle": "💋‍👩🏽' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-५,छालाको प्रकार-४',\n '👩🏾‍❤‍💋‍👩🏾' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे,छालाको प्रकार-५',\n '👩🏾‍❤‍💋‍👩🏿' => 'चुम्बन: छोरीमान्छे,छोरीमान्छे, छालाको प्रकार-५,छालाको प्रकार-६',\n ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ne.php", "language": "php", "file_size": 381379, "cut_index": 7068, "middle_length": 229}} {"prefix": "med hjarte: vaksen, vaksen, hudtype 5, hudtype 1–2',\n '🧑🏾‍❤‍🧑🏼' => 'par med hjarte: vaksen, vaksen, hudtype 5, hudtype 3',\n '🧑🏾‍❤‍🧑🏽' => 'par med hjarte: vaksen, vaksen, hudtype 5, hudtype 4',\n '🧑🏾‍❤‍🧑🏿' => 'par med hjarte: vaksen, vaksen, hudtype 5, hudtype 6',\n '🧑🏿‍❤‍🧑🏻' => 'par med hjarte: vaksen, vaksen, hudtype 6, hudtype 1–2',\n '🧑🏿‍❤‍🧑🏼' => 'par med hjarte: vaksen, vaksen, hudtype 6, hudtype 3',\n '🧑🏿‍❤‍🧑🏽' => 'par med hjarte: vaksen, vaksen, hudtype 6, hudtype 4',\n '🧑🏿‍❤‍🧑🏾' => 'p", "suffix": " hudtype 1–2, hudtype 5',\n '🧑🏻‍🐰‍🧑🏿' => 'personar med kaninøyre: hudtype 1–2, hudtype 6',\n '🧑🏼‍🐰‍🧑🏻' => 'personar med kaninøyre: hudtype 3, hudtype 1–2',\n '🧑🏼‍🐰‍🧑🏽' => 'personar med kaninøyre: hudtype 3, hudtype 4',\n '🧑🏼‍🐰‍🧑🏾' => 'personar med ", "middle": "ar med hjarte: vaksen, vaksen, hudtype 6, hudtype 5',\n '🧑🏻‍🐰‍🧑🏼' => 'personar med kaninøyre: hudtype 1–2, hudtype 3',\n '🧑🏻‍🐰‍🧑🏽' => 'personar med kaninøyre: hudtype 1–2, hudtype 4',\n '🧑🏻‍🐰‍🧑🏾' => 'personar med kaninøyre:", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-nn.php", "language": "php", "file_size": 113083, "cut_index": 3790, "middle_length": 229}} {"prefix": "onna, mmala wa letlalo wa magareng',\n '👩🏽‍❤‍💋‍👨🏾' => 'atlana: mosadi, monna, mmala wa letlalo wa magareng, mmala wa letlalo wo moswana wa magareng',\n '👩🏽‍❤‍💋‍👨🏿' => 'atlana: mosadi, monna, mmala wa letlalo wa magareng, mmala wa letlalo wo moswana',\n '👩🏾‍❤‍💋‍👨🏻' => 'atlana: mosadi, monna, mmala wa letlalo wo moswana wa magareng, mmala wa letlalo wa go taga',\n '👩🏾‍❤‍💋‍👨🏼' => 'atlana: mosadi, monna, mmala wa letlalo wo moswana wa magareng, mmala wa letlalo wa go taga wa magareng',\n '👩🏾‍❤‍💋‍👨🏽' =", "suffix": "la wa letlalo wo moswana wa magareng, mmala wa letlalo wo moswana',\n '👩🏿‍❤‍💋‍👨🏻' => 'atlana: mosadi, monna, mmala wa letlalo wo moswana, mmala wa letlalo wa go taga',\n '👩🏿‍❤‍💋‍👨🏼' => 'atlana: mosadi, monna, mmala wa letlalo wo moswana, mmala wa letla", "middle": "> 'atlana: mosadi, monna, mmala wa letlalo wo moswana wa magareng, mmala wa letlalo wa magareng',\n '👩🏾‍❤‍💋‍👨🏾' => 'atlana: mosadi, monna, mmala wa letlalo wo moswana wa magareng',\n '👩🏾‍❤‍💋‍👨🏿' => 'atlana: mosadi, monna, mma", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-nso.php", "language": "php", "file_size": 194062, "cut_index": 7068, "middle_length": 229}} {"prefix": ", ମଧ୍ୟମ ଚର୍ମ ରଙ୍ଗ',\n '👩🏽‍❤‍💋‍👩🏾' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ମଧ୍ୟମ ଚର୍ମ ରଙ୍ଗ, ମଧ୍ୟମ-ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ',\n '👩🏽‍❤‍💋‍👩🏿' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ମଧ୍ୟମ ଚର୍ମ ରଙ୍ଗ, ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ',\n '👩🏾‍❤‍💋‍👩🏻' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ମଧ୍ୟମ-ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ, ହାଲକା ଚର୍ମ ରଙ୍ଗ',\n '👩🏾‍❤‍💋‍👩🏼' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ମଧ୍ୟମ-ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ, ମଧ୍ୟମ-ହାଲକା ଚର୍ମ ରଙ୍ଗ',\n '👩🏾‍❤‍💋‍👩🏽' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ମଧ୍ୟମ-ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ, ମଧ୍ୟମ ଚର୍ମ ରଙ୍ଗ',\n '👩🏾‍❤‍💋‍👩🏾' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ମଧ୍ୟମ-ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ',\n '👩🏾‍❤‍💋‍👩🏿' =", "suffix": "‍❤‍💋‍👩🏽' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ, ମଧ୍ୟମ ଚର୍ମ ରଙ୍ଗ',\n '👩🏿‍❤‍💋‍👩🏾' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ, ମଧ୍ୟମ-ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ',\n '👩🏿‍❤‍💋‍👩🏿' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ',\n '🧑🏻‍🫯‍🧑🏼' => 'କୁସ୍ତି ଲଢୁଥିବା ଲୋକମାନେ: ହାଲକା", "middle": "> 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ମଧ୍ୟମ-ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ, ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ',\n '👩🏿‍❤‍💋‍👩🏻' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ, ହାଲକା ଚର୍ମ ରଙ୍ଗ',\n '👩🏿‍❤‍💋‍👩🏼' => 'ଚୁମ୍ବନ: ମହିଳା, ମହିଳା, ଗାଢ଼ ଚର୍ମ ରଙ୍ଗ, ମଧ୍ୟମ-ହାଲକା ଚର୍ମ ରଙ୍ଗ',\n '👩🏿", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-or.php", "language": "php", "file_size": 389723, "cut_index": 7068, "middle_length": 229}} {"prefix": "മ നിറം, ഇടത്തരം ഇരുണ്ട ചർമ്മ നിറം',\n '👩🏻‍❤‍💋‍👩🏿' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, തെളിഞ്ഞ ചർമ്മ നിറം, ഇരുണ്ട ചർമ്മ നിറം',\n '👩🏼‍❤‍💋‍👩🏻' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ഇടത്തരം തെളിഞ്ഞ ചർമ്മ നിറം, തെളിഞ്ഞ ചർമ്മ നിറം',\n '👩🏼‍❤‍💋‍👩🏼' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ഇടത്തരം തെളിഞ്ഞ ചർമ്മ നിറം',\n '👩🏼‍❤‍💋‍👩🏽' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ഇടത്തരം തെളിഞ്ഞ ചർമ്മ നിറം, ചർമ്മത്തിന്റെ നിറം-4',\n '👩🏼‍❤‍💋‍👩🏾' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ഇടത്തരം തെളിഞ്ഞ ചർമ്മ നിറം, ഇടത്തരം ഇരുണ്ട ചർമ്മ നിറം',\n '👩🏼‍❤‍💋‍👩🏿' => 'ച", "suffix": " ഇടത്തരം തെളിഞ്ഞ ചർമ്മ നിറം',\n '👩🏽‍❤‍💋‍👩🏽' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ചർമ്മത്തിന്റെ നിറം-4',\n '👩🏽‍❤‍💋‍👩🏾' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ചർമ്മത്തിന്റെ നിറം-4, ഇടത്തരം ഇരുണ്ട ചർമ്മ നിറം',\n '👩🏽‍❤‍💋‍👩🏿' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ചർമ്മത്തിന്റെ ന", "middle": "ുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ഇടത്തരം തെളിഞ്ഞ ചർമ്മ നിറം, ഇരുണ്ട ചർമ്മ നിറം',\n '👩🏽‍❤‍💋‍👩🏻' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ചർമ്മത്തിന്റെ നിറം-4, തെളിഞ്ഞ ചർമ്മ നിറം',\n '👩🏽‍❤‍💋‍👩🏼' => 'ചുംബനം: സ്‌ത്രീ, സ്‌ത്രീ, ചർമ്മത്തിന്റെ നിറം-4,", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ml.php", "language": "php", "file_size": 444560, "cut_index": 7068, "middle_length": 229}} {"prefix": "ċar tal-ġilda, u ton medju tal-ġilda',\n '👩🏼‍❤‍💋‍👩🏾' => 'bewsa: mara, mara, ton medju-ċar tal-ġilda, u ton medju-skur tal-ġilda',\n '👩🏼‍❤‍💋‍👩🏿' => 'bewsa: mara, mara, ton medju-ċar tal-ġilda, u ton skur tal-ġilda',\n '👩🏽‍❤‍💋‍👩🏻' => 'bewsa: mara, mara, ton medju tal-ġilda, u ton ċar tal-ġilda',\n '👩🏽‍❤‍💋‍👩🏼' => 'bewsa: mara, mara, ton medju tal-ġilda, u ton medju-ċar tal-ġilda',\n '👩🏽‍❤‍💋‍👩🏽' => 'bewsa: mara, mara, u ton medju tal-ġilda',\n '👩🏽‍❤‍💋‍👩🏾' => 'bewsa: mara, mara, ton medju tal-ġilda, ", "suffix": "a, mara, ton medju-skur tal-ġilda, u ton medju-ċar tal-ġilda',\n '👩🏾‍❤‍💋‍👩🏽' => 'bewsa: mara, mara, ton medju-skur tal-ġilda, u ton medju tal-ġilda',\n '👩🏾‍❤‍💋‍👩🏾' => 'bewsa: mara, mara, u ton medju-skur tal-ġilda',\n '👩🏾‍❤‍💋‍👩🏿' => 'bewsa: mara, mar", "middle": "u ton medju-skur tal-ġilda',\n '👩🏽‍❤‍💋‍👩🏿' => 'bewsa: mara, mara, ton medju tal-ġilda, u ton skur tal-ġilda',\n '👩🏾‍❤‍💋‍👩🏻' => 'bewsa: mara, mara, ton medju-skur tal-ġilda, u ton ċar tal-ġilda',\n '👩🏾‍❤‍💋‍👩🏼' => 'bewsa: mar", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-mt.php", "language": "php", "file_size": 166546, "cut_index": 7068, "middle_length": 229}} {"prefix": "အသားနုရောင်',\n '👩🏽‍❤‍💋‍👩🏽' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီးနှင့် အသားလတ်ရောင်',\n '👩🏽‍❤‍💋‍👩🏾' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး - အသားလတ်ရောင်နှင့် အသားညိုရောင်',\n '👩🏽‍❤‍💋‍👩🏿' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး - အသားလတ်ရောင်နှင့် အသားမည်းရောင်',\n '👩🏾‍❤‍💋‍👩🏻' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး - အသားညိုရောင်နှင့် အသားဖြူရောင်',\n '👩🏾‍❤‍💋‍👩🏼' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး - အသားညိုရောင်နှင့် အသားနုရောင်',\n '👩🏾‍❤‍💋‍👩🏽' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး - အသားညိုရောင်နှင့် အသားလတ", "suffix": "်းရောင်နှင့် အသားဖြူရောင်',\n '👩🏿‍❤‍💋‍👩🏼' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး - အသားမည်းရောင်နှင့် အသားနုရောင်',\n '👩🏿‍❤‍💋‍👩🏽' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး - အသားမည်းရောင်နှင့် အသားလတ်ရောင်',\n '👩🏿‍❤‍💋‍👩🏾' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး -", "middle": "်ရောင်',\n '👩🏾‍❤‍💋‍👩🏾' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီးနှင့် အသားညိုရောင်',\n '👩🏾‍❤‍💋‍👩🏿' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး - အသားညိုရောင်နှင့် အသားမည်းရောင်',\n '👩🏿‍❤‍💋‍👩🏻' => 'အနမ်း − အမျိုးသမီး - အမျိုးသမီး - အသားမည", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-my.php", "language": "php", "file_size": 427062, "cut_index": 7068, "middle_length": 229}} {"prefix": "le',\n '👨‍👨‍👧‍👧' => 'familha: òme, òme, dròlla e dròlla',\n '👩‍👩‍👧‍👦' => 'familha: femna, femna, dròlla e dròlle',\n '👩‍👩‍👦‍👦' => 'familha: femna, femna, dròlle e dròlle',\n '👩‍👩‍👧‍👧' => 'familha: femna, femna, dròlla e dròlla',\n '👨‍👩‍👦' => 'familha: òme, femna e dròlle',\n '👨‍👩‍👧' => 'familha: òme, femna e dròlla',\n '👨‍👨‍👦' => 'familha: òme, òme e dròlle',\n '👨‍👨‍👧' => 'familha: òme, òme e dròlla',\n '👩‍👩‍👦' => 'familha: femna, femna e dròlle',\n '👩‍👩‍👧' => 'familha: femna, femna e dr", "suffix": "na, dròlla e dròlle',\n '👩‍👧‍👧' => 'familha: femna, dròlla e dròlla',\n '👨‍👦' => 'familha: òme e dròlle',\n '👨‍👧' => 'familha: òme e dròlla',\n '👩‍👦' => 'familha: femna e dròlle',\n '👩‍👧' => 'familha: femna e dròlla',\n '❤‍🔥' => 'còr en fòc',\n ", "middle": "òlla',\n '👨‍👦‍👦' => 'familha: òme, dròlle e dròlle',\n '👨‍👧‍👦' => 'familha: òme, dròlla e dròlle',\n '👨‍👧‍👧' => 'familha: òme, dròlla e dròlla',\n '👩‍👦‍👦' => 'familha: femna, dròlle e dròlle',\n '👩‍👧‍👦' => 'familha: fem", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-oc.php", "language": "php", "file_size": 18313, "cut_index": 921, "middle_length": 229}} {"prefix": "ага зэргийн цайвар',\n '👩🏿‍❤‍💋‍👩🏽' => 'үнсэлт: эмэгтэй хүн эмэгтэй хүн бор дунд зэргийн',\n '👩🏿‍❤‍💋‍👩🏾' => 'үнсэлт: эмэгтэй хүн эмэгтэй хүн бор бордуу',\n '👩🏿‍❤‍💋‍👩🏿' => 'үнсэлт: эмэгтэй хүн эмэгтэй хүн бор',\n '🧑🏻‍🫯‍🧑🏼' => 'бөх: цайвар бага зэргийн цайвар',\n '🧑🏻‍🫯‍🧑🏽' => 'бөх: цайвар дунд зэргийн',\n '🧑🏻‍🫯‍🧑🏾' => 'бөх: цайвар бордуу',\n '🧑🏻‍🫯‍🧑🏿' => 'бөх: цайвар бор',\n '🧑🏼‍🫯‍🧑🏻' => 'бөх: бага зэргийн цайвар цайвар',\n '🧑🏼‍🫯‍🧑🏽' => 'бөх: бага зэргийн цайвар дунд зэргийн',\n '🧑🏼‍🫯‍🧑🏾' =", "suffix": "уу',\n '🧑🏽‍🫯‍🧑🏿' => 'бөх: дунд зэргийн бор',\n '🧑🏾‍🫯‍🧑🏻' => 'бөх: бордуу цайвар',\n '🧑🏾‍🫯‍🧑🏼' => 'бөх: бордуу бага зэргийн цайвар',\n '🧑🏾‍🫯‍🧑🏽' => 'бөх: бордуу дунд зэргийн',\n '🧑🏾‍🫯‍🧑🏿' => 'бөх: бордуу бор',\n '🧑🏿‍🫯‍🧑🏻' => 'бөх: бор цайвар',\n ", "middle": "> 'бөх: бага зэргийн цайвар бордуу',\n '🧑🏼‍🫯‍🧑🏿' => 'бөх: бага зэргийн цайвар бор',\n '🧑🏽‍🫯‍🧑🏻' => 'бөх: дунд зэргийн цайвар',\n '🧑🏽‍🫯‍🧑🏼' => 'бөх: дунд зэргийн бага зэргийн цайвар',\n '🧑🏽‍🫯‍🧑🏾' => 'бөх: дунд зэргийн борд", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-mn.php", "language": "php", "file_size": 278828, "cut_index": 7068, "middle_length": 229}} {"prefix": ",\n '🧑🏾‍🫯‍🧑🏻' => 'brytere: hudtype 5, hudtype 1–2',\n '🧑🏾‍🫯‍🧑🏼' => 'brytere: hudtype 5, hudtype 3',\n '🧑🏾‍🫯‍🧑🏽' => 'brytere: hudtype 5, hudtype 4',\n '🧑🏾‍🫯‍🧑🏿' => 'brytere: hudtype 5, hudtype 6',\n '🧑🏿‍🫯‍🧑🏻' => 'brytere: hudtype 6, hudtype 1–2',\n '🧑🏿‍🫯‍🧑🏼' => 'brytere: hudtype 6, hudtype 3',\n '🧑🏿‍🫯‍🧑🏽' => 'brytere: hudtype 6, hudtype 4',\n '🧑🏿‍🫯‍🧑🏾' => 'brytere: hudtype 6, hudtype 5',\n '🧑🏻‍❤‍🧑🏼' => 'par med hjerte: voksen, voksen, hudtype 1–2, hudtype 3',\n '🧑🏻‍❤‍🧑🏽' => 'par med hjert", "suffix": "oksen, voksen, hudtype 3, hudtype 1–2',\n '🧑🏼‍❤‍🧑🏽' => 'par med hjerte: voksen, voksen, hudtype 3, hudtype 4',\n '🧑🏼‍❤‍🧑🏾' => 'par med hjerte: voksen, voksen, hudtype 3, hudtype 5',\n '🧑🏼‍❤‍🧑🏿' => 'par med hjerte: voksen, voksen, hudtype 3, hudtype 6", "middle": "e: voksen, voksen, hudtype 1–2, hudtype 4',\n '🧑🏻‍❤‍🧑🏾' => 'par med hjerte: voksen, voksen, hudtype 1–2, hudtype 5',\n '🧑🏻‍❤‍🧑🏿' => 'par med hjerte: voksen, voksen, hudtype 1–2, hudtype 6',\n '🧑🏼‍❤‍🧑🏻' => 'par med hjerte: v", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-no.php", "language": "php", "file_size": 185279, "cut_index": 7068, "middle_length": 229}} {"prefix": "ouw, getinte huidskleur, lichte huidskleur',\n '👩🏽‍❤‍💋‍👩🏼' => 'kus: vrouw, vrouw, getinte huidskleur, lichtgetinte huidskleur',\n '👩🏽‍❤‍💋‍👩🏽' => 'kus: vrouw, vrouw, getinte huidskleur',\n '👩🏽‍❤‍💋‍👩🏾' => 'kus: vrouw, vrouw, getinte huidskleur, donkergetinte huidskleur',\n '👩🏽‍❤‍💋‍👩🏿' => 'kus: vrouw, vrouw, getinte huidskleur, donkere huidskleur',\n '👩🏾‍❤‍💋‍👩🏻' => 'kus: vrouw, vrouw, donkergetinte huidskleur, lichte huidskleur',\n '👩🏾‍❤‍💋‍👩🏼' => 'kus: vrouw, vrouw, donkergetinte huidskleur, lichtg", "suffix": "skleur, donkere huidskleur',\n '👩🏿‍❤‍💋‍👩🏻' => 'kus: vrouw, vrouw, donkere huidskleur, lichte huidskleur',\n '👩🏿‍❤‍💋‍👩🏼' => 'kus: vrouw, vrouw, donkere huidskleur, lichtgetinte huidskleur',\n '👩🏿‍❤‍💋‍👩🏽' => 'kus: vrouw, vrouw, donkere huidskleur, geti", "middle": "etinte huidskleur',\n '👩🏾‍❤‍💋‍👩🏽' => 'kus: vrouw, vrouw, donkergetinte huidskleur, getinte huidskleur',\n '👩🏾‍❤‍💋‍👩🏾' => 'kus: vrouw, vrouw, donkergetinte huidskleur',\n '👩🏾‍❤‍💋‍👩🏿' => 'kus: vrouw, vrouw, donkergetinte huid", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-nl.php", "language": "php", "file_size": 215008, "cut_index": 7068, "middle_length": 229}} {"prefix": "cket:' => '🦗',\n ':cricket-bat-and-ball:' => '🏏',\n ':crocodile:' => '🐊',\n ':croissant:' => '🥐',\n ':crossed-fingers:' => '🤞',\n ':crossed-flags:' => '🎌',\n ':crown:' => '👑',\n ':crutch:' => '🩼',\n ':cry:' => '😢',\n ':crying-cat-face:' => '😿',\n ':crystal-ball:' => '🔮',\n ':cucumber:' => '🥒',\n ':cup-with-straw:' => '🥤',\n ':cupcake:' => '🧁',\n ':cupid:' => '💘',\n ':curling-stone:' => '🥌',\n ':curly-loop:' => '➰',\n ':currency-exchange:' => '💱',\n ':curry:' => '🍛',\n '", "suffix": " ':deaf-person:' => '🧏',\n ':deciduous-tree:' => '🌳',\n ':deer:' => '🦌',\n ':department-store:' => '🏬',\n ':diamond-shape-with-a-dot-inside:' => '💠',\n ':disappointed:' => '😞',\n ':disappointed-relieved:' => '😥',\n ':disguised-face:' => '🥸',", "middle": ":custard:' => '🍮',\n ':customs:' => '🛃',\n ':cut-of-meat:' => '🥩',\n ':cyclone:' => '🌀',\n ':dancer:' => '💃',\n ':dancers:' => '👯',\n ':dango:' => '🍡',\n ':dart:' => '🎯',\n ':dash:' => '💨',\n ':date:' => '📅',\n ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/text-emoji.php", "language": "php", "file_size": 212326, "cut_index": 7068, "middle_length": 229}} {"prefix": " => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਹਲਕਾ ਕਣਕਵੰਨਾ ਰੰਗ, ਕਣਕਵੰਨਾ ਰੰਗ',\n '🧑🏼‍🫯‍🧑🏾' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਹਲਕਾ ਕਣਕਵੰਨਾ ਰੰਗ, ਦਰਮਿਆਨਾ ਕਾਲਾ ਰੰਗ',\n '🧑🏼‍🫯‍🧑🏿' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਹਲਕਾ ਕਣਕਵੰਨਾ ਰੰਗ, ਕਾਲਾ ਰੰਗ',\n '🧑🏽‍🫯‍🧑🏻' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਕਣਕਵੰਨਾ ਰੰਗ, ਗੋਰਾ ਰੰਗ',\n '🧑🏽‍🫯‍🧑🏼' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਕਣਕਵੰਨਾ ਰੰਗ, ਹਲਕਾ ਕਣਕਵੰਨਾ ਰੰਗ',\n '🧑🏽‍🫯‍🧑🏾' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਕਣਕਵੰਨਾ ਰੰਗ, ਦਰਮਿਆਨਾ ਕਾਲਾ ਰੰਗ',\n '🧑🏽‍🫯‍🧑🏿' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਕਣਕਵੰਨਾ ਰੰਗ, ਕਾਲਾ ਰੰਗ',\n '🧑🏾‍🫯‍🧑🏻' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਦਰਮਿਆਨਾ ਕਾਲਾ ਰੰਗ, ਗੋਰਾ ਰੰਗ',\n '🧑", "suffix": "ਕ: ਕਾਲਾ ਰੰਗ, ਗੋਰਾ ਰੰਗ',\n '🧑🏿‍🫯‍🧑🏼' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਕਾਲਾ ਰੰਗ, ਹਲਕਾ ਕਣਕਵੰਨਾ ਰੰਗ',\n '🧑🏿‍🫯‍🧑🏽' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਕਾਲਾ ਰੰਗ, ਕਣਕਵੰਨਾ ਰੰਗ',\n '🧑🏿‍🫯‍🧑🏾' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਕਾਲਾ ਰੰਗ, ਦਰਮਿਆਨਾ ਕਾਲਾ ਰੰਗ',\n '🧑🏻‍❤‍🧑🏼' => 'ਦਿਲ ਨਾਲ ਪ੍ਰੇਮੀ ਜੋੜਾ: ਵਿਅਕਤੀ", "middle": "🏾‍🫯‍🧑🏼' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਦਰਮਿਆਨਾ ਕਾਲਾ ਰੰਗ, ਹਲਕਾ ਕਣਕਵੰਨਾ ਰੰਗ',\n '🧑🏾‍🫯‍🧑🏽' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਦਰਮਿਆਨਾ ਕਾਲਾ ਰੰਗ, ਕਣਕਵੰਨਾ ਰੰਗ',\n '🧑🏾‍🫯‍🧑🏿' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋਕ: ਦਰਮਿਆਨਾ ਕਾਲਾ ਰੰਗ, ਕਾਲਾ ਰੰਗ',\n '🧑🏿‍🫯‍🧑🏻' => 'ਕੁਸ਼ਤੀ ਕਰਦੇ ਲੋ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-pa.php", "language": "php", "file_size": 344413, "cut_index": 7068, "middle_length": 229}} {"prefix": "n Ton, Dák Skín Ton',\n '👩🏿‍❤‍💋‍👩🏻' => 'Kis: Wúman, Wúman, Dák Skín Ton, Laít Skín Ton',\n '👩🏿‍❤‍💋‍👩🏼' => 'Kis: Wúman, Wúman, Dák Skín Ton, Mídíọ́m-Laít Skín Ton',\n '👩🏿‍❤‍💋‍👩🏽' => 'Kis: Wúman, Wúman, Dák Skín Ton, Mídíọ́m Skín Ton',\n '👩🏿‍❤‍💋‍👩🏾' => 'Kis: Wúman, Wúman, Dák Skín Ton, Mídíọ́m Dák Skín Ton',\n '👩🏿‍❤‍💋‍👩🏿' => 'Kis: Wúman, Wúman, Dák Skín Ton',\n '🧑🏻‍🫯‍🧑🏼' => 'Pípul Wé De Rẹ́sul: Laít Skín Ton, Mídíọ́m-Laít Skín Ton',\n '🧑🏻‍🫯‍🧑🏽' => 'Pípul Wé De Rẹ́sul: Laít Skín Ton, Mídíọ́m Skín", "suffix": " '🧑🏼‍🫯‍🧑🏽' => 'Pípul Wé De Rẹ́sul: Mídíọ́m-Laít Skín Ton, Mídíọ́m Skín Ton',\n '🧑🏼‍🫯‍🧑🏾' => 'Pípul Wé De Rẹ́sul: Mídíọ́m-Laít Skín Ton, Mídíọ́m Dák Skín Ton',\n '🧑🏼‍🫯‍🧑🏿' => 'Pípul Wé De Rẹ́sul: Mídíọ́m-Laít Skín Ton, Dák Skín Ton',\n '🧑🏽‍🫯‍🧑🏻' => ", "middle": " Ton',\n '🧑🏻‍🫯‍🧑🏾' => 'Pípul Wé De Rẹ́sul: Laít Skín Ton, Mídíọ́m Dák Skín Ton',\n '🧑🏻‍🫯‍🧑🏿' => 'Pípul Wé De Rẹ́sul: Laít Skín Ton, Dák Skín Ton',\n '🧑🏼‍🫯‍🧑🏻' => 'Pípul Wé De Rẹ́sul: Mídíọ́m-Laít Skín Ton, Laít Skín Ton',\n ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-pcm.php", "language": "php", "file_size": 243405, "cut_index": 7068, "middle_length": 229}} {"prefix": "‍❤‍💋‍👩🏿' => 'چومنا: زنانی, زنانی, ہلکی درمیانی رنگت آلی جلد, کالی رنگت آلی جلد',\n '👩🏽‍❤‍💋‍👩🏻' => 'چومنا: زنانی, زنانی, درمیانی رنگت آلی جلد, ہلکی رنگت آلی جلد',\n '👩🏽‍❤‍💋‍👩🏼' => 'چومنا: زنانی, زنانی, درمیانی رنگت آلی جلد, ہلکی درمیانی رنگت آلی جلد',\n '👩🏽‍❤‍💋‍👩🏽' => 'چومنا: زنانی, زنانی, درمیانی رنگت آلی جلد',\n '👩🏽‍❤‍💋‍👩🏾' => 'چومنا: زنانی, زنانی, درمیانی رنگت آلی جلد, درمیانی کالی رنگت آلی جلد',\n '👩🏽‍❤‍💋‍👩🏿' => 'چومنا: زنانی, زنانی, درمیانی رنگت آلی جلد, کالی رنگت آلی جلد',\n '👩🏾‍❤‍💋‍👩🏻' => ", "suffix": "لد, درمیانی رنگت آلی جلد',\n '👩🏾‍❤‍💋‍👩🏾' => 'چومنا: زنانی, زنانی, درمیانی کالی رنگت آلی جلد',\n '👩🏾‍❤‍💋‍👩🏿' => 'چومنا: زنانی, زنانی, درمیانی کالی رنگت آلی جلد, کالی رنگت آلی جلد',\n '👩🏿‍❤‍💋‍👩🏻' => 'چومنا: زنانی, زنانی, کالی رنگت آلی جلد, ہلکی رنگت آل", "middle": "'چومنا: زنانی, زنانی, درمیانی کالی رنگت آلی جلد, ہلکی رنگت آلی جلد',\n '👩🏾‍❤‍💋‍👩🏼' => 'چومنا: زنانی, زنانی, درمیانی کالی رنگت آلی جلد, ہلکی درمیانی رنگت آلی جلد',\n '👩🏾‍❤‍💋‍👩🏽' => 'چومنا: زنانی, زنانی, درمیانی کالی رنگت آلی ج", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-pa_arab.php", "language": "php", "file_size": 321896, "cut_index": 7068, "middle_length": 229}} {"prefix": "\n '👩🏿‍❤‍💋‍👩🏻' => 'beijo: mulher, mulher, pele escura e pele clara',\n '👩🏿‍❤‍💋‍👩🏼' => 'beijo: mulher, mulher, pele escura e pele morena clara',\n '👩🏿‍❤‍💋‍👩🏽' => 'beijo: mulher, mulher, pele escura e pele morena',\n '👩🏿‍❤‍💋‍👩🏾' => 'beijo: mulher, mulher, pele escura e pele morena escura',\n '👩🏿‍❤‍💋‍👩🏿' => 'beijo: mulher, mulher e pele escura',\n '🧑🏻‍🫯‍🧑🏼' => 'pessoas lutando: pele clara e pele morena clara',\n '🧑🏻‍🫯‍🧑🏽' => 'pessoas lutando: pele clara e pele morena',\n '🧑🏻‍🫯‍🧑🏾' => 'pessoas l", "suffix": "le morena',\n '🧑🏼‍🫯‍🧑🏾' => 'pessoas lutando: pele morena clara e pele morena escura',\n '🧑🏼‍🫯‍🧑🏿' => 'pessoas lutando: pele morena clara e pele escura',\n '🧑🏽‍🫯‍🧑🏻' => 'pessoas lutando: pele morena e pele clara',\n '🧑🏽‍🫯‍🧑🏼' => 'pessoas lutando: pe", "middle": "utando: pele clara e pele morena escura',\n '🧑🏻‍🫯‍🧑🏿' => 'pessoas lutando: pele clara e pele escura',\n '🧑🏼‍🫯‍🧑🏻' => 'pessoas lutando: pele morena clara e pele clara',\n '🧑🏼‍🫯‍🧑🏽' => 'pessoas lutando: pele morena clara e pe", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-pt.php", "language": "php", "file_size": 206195, "cut_index": 7068, "middle_length": 229}} {"prefix": "ch’a: warmi, warmi, tunpa qara niraq, tunpa yana qara niraq',\n '👩🏽‍❤‍💋‍👩🏿' => 'much’a: warmi, warmi, tunpa qara niraq, yana qara niraq',\n '👩🏾‍❤‍💋‍👩🏻' => 'much’a: warmi, warmi, tunpa yana qara niraq, chuya qara niraq',\n '👩🏾‍❤‍💋‍👩🏼' => 'much’a: warmi, warmi, tunpa yana qara niraq, tunpa chuya qara niraq',\n '👩🏾‍❤‍💋‍👩🏽' => 'much’a: warmi, warmi, tunpa yana qara niraq, tunpa qara niraq',\n '👩🏾‍❤‍💋‍👩🏾' => 'much’a: warmi, warmi, tunpa yana qara niraq',\n '👩🏾‍❤‍💋‍👩🏿' => 'much’a: warmi, warmi, tunpa ", "suffix": "i, warmi, yana qara niraq, tunpa qara niraq',\n '👩🏿‍❤‍💋‍👩🏾' => 'much’a: warmi, warmi, yana qara niraq, tunpa yana qara niraq',\n '👩🏿‍❤‍💋‍👩🏿' => 'much’a: warmi, warmi, yana qara niraq',\n '🧑🏻‍🫯‍🧑🏼' => 'maqanakuq runa: chuya qara niraq, tunpa chuya qar", "middle": "yana qara niraq, yana qara niraq',\n '👩🏿‍❤‍💋‍👩🏻' => 'much’a: warmi, warmi, yana qara niraq, chuya qara niraq',\n '👩🏿‍❤‍💋‍👩🏼' => 'much’a: warmi, warmi, yana qara niraq, tunpa chuya qara niraq',\n '👩🏿‍❤‍💋‍👩🏽' => 'much’a: warm", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-qu.php", "language": "php", "file_size": 191965, "cut_index": 7068, "middle_length": 229}} {"prefix": "🏿‍❤‍💋‍👨🏾' => 'Tz’umanik: Ixoq, Achi, q’eq ub’antajik b’aqilal, retal-q’eq ub’antajik b’aqilal',\n '👩🏿‍❤‍💋‍👨🏿' => 'Tz’umanik: Ixoq, Achi, q’eq ub’antajik b’aqilal',\n '👩🏻‍❤‍💋‍👩🏻' => 'Tz’umanik: Ixoq, Ixoq, saq ub’antajik b’aqilal',\n '👩🏻‍❤‍💋‍👩🏼' => 'Tz’umanik: Ixoq, Ixoq, saq ub’antajik b’aqilal, retal saq ub’antajik b’aqilal',\n '👩🏻‍❤‍💋‍👩🏽' => 'Tz’umanik: Ixoq, Ixoq, saq ub’antajik b’aqilal, retal ub’antajik b’aqilal',\n '👩🏻‍❤‍💋‍👩🏾' => 'Tz’umanik: Ixoq, Ixoq, saq ub’antajik b’aqilal, retal-q’eq ub", "suffix": "' => 'Tz’umanik: Ixoq, Ixoq, retal saq ub’antajik b’aqilal',\n '👩🏼‍❤‍💋‍👩🏽' => 'Tz’umanik: Ixoq, Ixoq, retal saq ub’antajik b’aqilal, retal ub’antajik b’aqilal',\n '👩🏼‍❤‍💋‍👩🏾' => 'Tz’umanik: Ixoq, Ixoq, retal saq ub’antajik b’aqilal, retal-q’eq ub’antaj", "middle": "’antajik b’aqilal',\n '👩🏻‍❤‍💋‍👩🏿' => 'Tz’umanik: Ixoq, Ixoq, saq ub’antajik b’aqilal, q’eq ub’antajik b’aqilal',\n '👩🏼‍❤‍💋‍👩🏻' => 'Tz’umanik: Ixoq, Ixoq, retal saq ub’antajik b’aqilal, saq ub’antajik b’aqilal',\n '👩🏼‍❤‍💋‍👩🏼", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-quc.php", "language": "php", "file_size": 194642, "cut_index": 7068, "middle_length": 229}} {"prefix": "💋‍👩🏿' => 'sărut: femeie, femeie, ton deschis al pielii, ton închis al pielii',\n '👩🏼‍❤‍💋‍👩🏻' => 'sărut: femeie, femeie, ton semi‑deschis al pielii, ton deschis al pielii',\n '👩🏼‍❤‍💋‍👩🏼' => 'sărut: femeie, femeie, ton semi‑deschis al pielii',\n '👩🏼‍❤‍💋‍👩🏽' => 'sărut: femeie, femeie, ton semi‑deschis al pielii, ton mediu al pielii',\n '👩🏼‍❤‍💋‍👩🏾' => 'sărut: femeie, femeie, ton semi‑deschis al pielii, ton semi‑închis al pielii',\n '👩🏼‍❤‍💋‍👩🏿' => 'sărut: femeie, femeie, ton semi‑deschis al pielii, ton", "suffix": "emeie, femeie, ton mediu al pielii',\n '👩🏽‍❤‍💋‍👩🏾' => 'sărut: femeie, femeie, ton mediu al pielii, ton semi‑închis al pielii',\n '👩🏽‍❤‍💋‍👩🏿' => 'sărut: femeie, femeie, ton mediu al pielii, ton închis al pielii',\n '👩🏾‍❤‍💋‍👩🏻' => 'sărut: femeie, femei", "middle": " închis al pielii',\n '👩🏽‍❤‍💋‍👩🏻' => 'sărut: femeie, femeie, ton mediu al pielii, ton deschis al pielii',\n '👩🏽‍❤‍💋‍👩🏼' => 'sărut: femeie, femeie, ton mediu al pielii, ton semi‑deschis al pielii',\n '👩🏽‍❤‍💋‍👩🏽' => 'sărut: f", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ro.php", "language": "php", "file_size": 239418, "cut_index": 7068, "middle_length": 229}} {"prefix": "🏼‍❤‍💋‍👩🏿' => 'поцелуй: женщина женщина светлый тон кожи очень темный тон кожи',\n '👩🏽‍❤‍💋‍👩🏻' => 'поцелуй: женщина женщина средний тон кожи очень светлый тон кожи',\n '👩🏽‍❤‍💋‍👩🏼' => 'поцелуй: женщина женщина средний тон кожи светлый тон кожи',\n '👩🏽‍❤‍💋‍👩🏽' => 'поцелуй: женщина женщина средний тон кожи',\n '👩🏽‍❤‍💋‍👩🏾' => 'поцелуй: женщина женщина средний тон кожи темный тон кожи',\n '👩🏽‍❤‍💋‍👩🏿' => 'поцелуй: женщина женщина средний тон кожи очень темный тон кожи',\n '👩🏾‍❤‍💋‍👩🏻' => 'поцелуй: женщи", "suffix": "> 'поцелуй: женщина женщина темный тон кожи',\n '👩🏾‍❤‍💋‍👩🏿' => 'поцелуй: женщина женщина темный тон кожи очень темный тон кожи',\n '👩🏿‍❤‍💋‍👩🏻' => 'поцелуй: женщина женщина очень темный тон кожи очень светлый тон кожи',\n '👩🏿‍❤‍💋‍👩🏼' => 'поцелуй: женщ", "middle": "на женщина темный тон кожи очень светлый тон кожи',\n '👩🏾‍❤‍💋‍👩🏼' => 'поцелуй: женщина женщина темный тон кожи светлый тон кожи',\n '👩🏾‍❤‍💋‍👩🏽' => 'поцелуй: женщина женщина темный тон кожи средний тон кожи',\n '👩🏾‍❤‍💋‍👩🏾' =", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ru.php", "language": "php", "file_size": 298249, "cut_index": 7068, "middle_length": 229}} {"prefix": "andera: Argentina',\n '🇦🇹' => 'bandera: Austria',\n '🇦🇺' => 'bandera: Australia',\n '🇦🇼' => 'bandera: Aruba',\n '🇧🇦' => 'bandera: Bosnia i Herzegowina',\n '🇧🇧' => 'bandera: Barbados',\n '🇧🇪' => 'bandera: Bèlgika',\n '🇧🇬' => 'bandera: Bulgaria',\n '🇧🇱' => 'bandera: Saint Bathélemy',\n '🇧🇲' => 'bandera: Bermuda',\n '🇧🇴' => 'bandera: Bolivia',\n '🇧🇶' => 'bandera: Antia Hulandes',\n '🇧🇷' => 'bandera: Brazil',\n '🇧🇸' => 'bandera: Bahamas',\n '🇧🇻' => 'bandera: Isla Bouvet',\n '🇧🇼' =>", "suffix": "ongo - Brazzaville',\n '🇨🇭' => 'bandera: Suisa',\n '🇨🇮' => 'bandera: Côte d’Ivoire',\n '🇨🇱' => 'bandera: Chile',\n '🇨🇲' => 'bandera: Camerun',\n '🇨🇳' => 'bandera: China',\n '🇨🇴' => 'bandera: Colombia',\n '🇨🇷' => 'bandera: Costa Rica',\n '🇨🇺", "middle": " 'bandera: Botswana',\n '🇧🇾' => 'bandera: Belarus',\n '🇧🇿' => 'bandera: Belize',\n '🇨🇦' => 'bandera: Canada',\n '🇨🇩' => 'bandera: Congo - Kinshasa',\n '🇨🇫' => 'bandera: Repúblika Sentroafrikano',\n '🇨🇬' => 'bandera: C", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-pap.php", "language": "php", "file_size": 7194, "cut_index": 716, "middle_length": 229}} {"prefix": "a i karnacja średnia',\n '👩🏻‍❤‍💋‍👩🏾' => 'pocałunek: kobieta, kobieta, karnacja jasna i karnacja średnio ciemna',\n '👩🏻‍❤‍💋‍👩🏿' => 'pocałunek: kobieta, kobieta, karnacja jasna i karnacja ciemna',\n '👩🏼‍❤‍💋‍👩🏻' => 'pocałunek: kobieta, kobieta, karnacja średnio jasna i karnacja jasna',\n '👩🏼‍❤‍💋‍👩🏼' => 'pocałunek: kobieta, kobieta i karnacja średnio jasna',\n '👩🏼‍❤‍💋‍👩🏽' => 'pocałunek: kobieta, kobieta, karnacja średnio jasna i karnacja średnia',\n '👩🏼‍❤‍💋‍👩🏾' => 'pocałunek: kobieta, kobieta, karna", "suffix": "🏽‍❤‍💋‍👩🏼' => 'pocałunek: kobieta, kobieta, karnacja średnia i karnacja średnio jasna',\n '👩🏽‍❤‍💋‍👩🏽' => 'pocałunek: kobieta, kobieta i karnacja średnia',\n '👩🏽‍❤‍💋‍👩🏾' => 'pocałunek: kobieta, kobieta, karnacja średnia i karnacja średnio ciemna',\n '👩", "middle": "cja średnio jasna i karnacja średnio ciemna',\n '👩🏼‍❤‍💋‍👩🏿' => 'pocałunek: kobieta, kobieta, karnacja średnio jasna i karnacja ciemna',\n '👩🏽‍❤‍💋‍👩🏻' => 'pocałunek: kobieta, kobieta, karnacja średnia i karnacja jasna',\n '👩", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-pl.php", "language": "php", "file_size": 227060, "cut_index": 7068, "middle_length": 229}} {"prefix": "𐴍𐴞: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '🧎‍♂‍➡' => '𐴀𐴝𐴣𐴍𐴥𐴟𐴃𐴢 𐴁𐴤𐴡𐴌𐴊𐴧𐴞𐴘𐴝 𐴁𐴠𐴍𐴝: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '🧑‍🦯‍➡' => '𐴓𐴝𐴍𐴥𐴞 𐴊𐴤𐴡𐴙𐴅𐴧𐴙𐴝 𐴔𐴝𐴕𐴥𐴟𐴙𐴐𐴢: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '👨‍🦯‍➡' => '𐴓𐴝𐴍𐴥𐴞 𐴊𐴤𐴡𐴙𐴅𐴧𐴙𐴝 𐴁𐴠𐴍𐴝: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '👩‍🦯‍➡' => '𐴓𐴝𐴍𐴥𐴞 𐴊𐴤𐴡𐴙𐴅𐴧𐴙𐴝 𐴁𐴠𐴍𐴞: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '🧑‍🦼‍➡' => '𐴔𐴡𐴄𐴤𐴡𐴌 𐴖𐴥𐴠𐴓𐴆𐴤𐴙𐴝𐴌𐴡𐴃𐴢 𐴁𐴡𐴙𐴐𐴧𐴤𐴙𐴝 𐴔𐴝𐴕𐴥𐴟𐴙𐴐𐴢: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '👨‍🦼‍➡' => '𐴔𐴡𐴄𐴤𐴡𐴌 𐴖𐴥𐴠𐴓𐴆𐴤𐴙𐴝𐴌𐴡𐴃𐴢 𐴁𐴡𐴙𐴐𐴧𐴤𐴙𐴝 𐴁𐴠𐴍𐴝: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '👩‍🦼‍➡' => '𐴔𐴡𐴄𐴤𐴡𐴌 𐴖𐴥𐴠𐴓𐴆𐴤𐴙𐴝𐴌𐴡𐴃𐴢 𐴁𐴡𐴙𐴐𐴧𐴤𐴙𐴝 𐴁𐴠𐴍𐴞: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '🧑‍🦽‍➡' => '𐴖𐴥𐴠𐴓𐴆𐴤𐴙𐴝𐴌𐴡𐴃𐴢 𐴁𐴡𐴙𐴐𐴧𐴤𐴙𐴝 𐴔𐴝𐴕𐴥𐴟𐴙𐴐𐴢: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '👨‍🦽‍➡' => '𐴖𐴥𐴠𐴓𐴆", "suffix": "𐴝𐴕𐴥𐴟𐴙𐴐𐴢',\n '👨‍❤‍👨' => '𐴎𐴟𐴌 𐴀𐴝𐴌 𐴑𐴡𐴓𐴥𐴡𐴁𐴢: 𐴔𐴝𐴕𐴥𐴟𐴙𐴐𐴢, 𐴔𐴝𐴕𐴥𐴟𐴙𐴐𐴢',\n '👩‍❤‍👩' => '𐴎𐴟𐴌 𐴀𐴝𐴌 𐴑𐴡𐴓𐴥𐴡𐴁𐴢: 𐴁𐴠𐴍𐴞, 𐴁𐴠𐴍𐴞',\n '👨‍👩‍👦' => '𐴒𐴤𐴡𐴌 𐴒𐴟𐴐𐴧𐴞: 𐴔𐴝𐴕𐴥𐴟𐴙𐴐𐴢, 𐴁𐴠𐴍𐴞, 𐴉𐴟𐴖𐴝',\n '👨‍👩‍👧' => '𐴒𐴤𐴡𐴌 𐴒𐴟𐴐𐴧𐴞: 𐴔𐴝𐴕𐴥𐴟𐴙𐴐𐴢, 𐴁𐴠𐴍𐴞, 𐴔𐴝𐴘𐴧𐴝',\n '👨‍👨‍👦' => '𐴒𐴤𐴡𐴌 𐴒𐴟𐴐𐴧𐴞: 𐴔𐴝𐴕𐴥𐴟𐴙𐴐𐴢, 𐴔𐴝𐴕𐴥𐴟", "middle": "𐴤𐴙𐴝𐴌𐴡𐴃𐴢 𐴁𐴡𐴙𐴐𐴧𐴤𐴙𐴝 𐴁𐴠𐴍𐴝: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '👩‍🦽‍➡' => '𐴖𐴥𐴠𐴓𐴆𐴤𐴙𐴝𐴌𐴡𐴃𐴢 𐴁𐴡𐴙𐴐𐴧𐴤𐴙𐴝 𐴁𐴠𐴍𐴞: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '🏃‍♀‍➡' => '𐴊𐴦𐴟𐴣𐴌𐴠𐴌𐴊𐴧𐴠 𐴁𐴠𐴍𐴞: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '🏃‍♂‍➡' => '𐴊𐴦𐴟𐴣𐴌𐴠𐴌𐴊𐴧𐴠 𐴁𐴠𐴍𐴝: — 𐴋𐴠𐴕 𐴔𐴟𐴑𐴤𐴝',\n '👩‍❤‍👨' => '𐴎𐴟𐴌 𐴀𐴝𐴌 𐴑𐴡𐴓𐴥𐴡𐴁𐴢: 𐴁𐴠𐴍𐴞, 𐴔", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-rhg.php", "language": "php", "file_size": 45332, "cut_index": 1331, "middle_length": 229}} {"prefix": "10-1187',\n '🧑‍💻' => 'E13-017',\n '👨‍💻' => 'E10-1168',\n '👩‍💻' => 'E10-1184',\n '🧑‍🎤' => 'E13-018',\n '👨‍🎤' => 'E10-1164',\n '👩‍🎤' => 'E10-1180',\n '🧑‍🎨' => 'E13-019',\n '👨‍🎨' => 'E10-1165',\n '👩‍🎨' => 'E10-1181',\n '🧑‍✈' => 'E13-020',\n '👨‍✈' => 'E10-1160',\n '👩‍✈' => 'E10-1176',\n '🧑‍🚀' => 'E13-021',\n '👨‍🚀' => 'E10-1172',\n '👩‍🚀' => 'E10-1188',\n '🧑‍🚒' => 'E13-022',\n '👨‍🚒' => 'E10-1173',\n '👩‍🚒' => 'E10-1189',\n '👮‍♂' => 'E10-1191',\n '👮‍♀' => 'E10-1190',\n '🕵‍♂", "suffix": "'E13-078',\n '👰‍♂' => 'E13-080',\n '👰‍♀' => 'E13-079',\n '👩‍🍼' => 'E13-081',\n '👨‍🍼' => 'E13-082',\n '🧑‍🍼' => 'E13-083',\n '🧑‍🎄' => 'E13-084',\n '🦸‍♂' => 'E11-043',\n '🦸‍♀' => 'E11-042',\n '🦹‍♂' => 'E11-046',\n '🦹‍♀' => 'E11-045',\n '", "middle": "' => 'E10-1209',\n '🕵‍♀' => 'E10-1208',\n '💂‍♂' => 'E10-1203',\n '💂‍♀' => 'E10-1202',\n '👷‍♂' => 'E10-1199',\n '👷‍♀' => 'E10-1198',\n '👳‍♂' => 'E10-1197',\n '👳‍♀' => 'E10-1196',\n '🤵‍♂' => 'E13-077',\n '🤵‍♀' => ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-root.php", "language": "php", "file_size": 41119, "cut_index": 2151, "middle_length": 229}} {"prefix": "5 e tipo de pele 4',\n '👩🏾‍❤‍💋‍👩🏾' => 'beijo: mulher, mulher e tipo de pele 5',\n '👩🏾‍❤‍💋‍👩🏿' => 'beijo: mulher, mulher, tipo de pele 5 e tipo de pele 6',\n '👩🏿‍❤‍💋‍👩🏻' => 'beijo: mulher, mulher, tipo de pele 6 e tipo de pele 1–2',\n '👩🏿‍❤‍💋‍👩🏼' => 'beijo: mulher, mulher, tipo de pele 6 e tipo de pele 3',\n '👩🏿‍❤‍💋‍👩🏽' => 'beijo: mulher, mulher, tipo de pele 6 e tipo de pele 4',\n '👩🏿‍❤‍💋‍👩🏾' => 'beijo: mulher, mulher, tipo de pele 6 e tipo de pele 5',\n '👩🏿‍❤‍💋‍👩🏿' => 'beijo: mulher, mulher e", "suffix": ",\n '🧑🏻‍🫯‍🧑🏿' => 'pessoas a lutar: tipo de pele 1–2 e tipo de pele 6',\n '🧑🏼‍🫯‍🧑🏻' => 'pessoas a lutar: tipo de pele 3 e tipo de pele 1–2',\n '🧑🏼‍🫯‍🧑🏽' => 'pessoas a lutar: tipo de pele 3 e tipo de pele 4',\n '🧑🏼‍🫯‍🧑🏾' => 'pessoas a lutar: tipo de ", "middle": " tipo de pele 6',\n '🧑🏻‍🫯‍🧑🏼' => 'pessoas a lutar: tipo de pele 1–2 e tipo de pele 3',\n '🧑🏻‍🫯‍🧑🏽' => 'pessoas a lutar: tipo de pele 1–2 e tipo de pele 4',\n '🧑🏻‍🫯‍🧑🏾' => 'pessoas a lutar: tipo de pele 1–2 e tipo de pele 5'", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-pt_pt.php", "language": "php", "file_size": 211349, "cut_index": 7068, "middle_length": 229}} {"prefix": "yirabura, ibara ry’uruhu rw’inzobe',\n '👩🏾‍❤‍💋‍👨🏾' => 'gusomana: umugore, umugabo, ibara ry’uruhu rw’inzobe yirabura',\n '👩🏾‍❤‍💋‍👨🏿' => 'gusomana: umugore, umugabo, ibara ry’uruhu rw’inzobe yirabura, ibara ry’uruhu rwirabura',\n '👩🏿‍❤‍💋‍👨🏻' => 'gusomana: umugore, umugabo, ibara ry’uruhu rwirabura, ibara ry’uruhu rwera',\n '👩🏿‍❤‍💋‍👨🏼' => 'gusomana: umugore, umugabo, ibara ry’uruhu rwirabura, ibara ry’uruhu rwera gahoro',\n '👩🏿‍❤‍💋‍👨🏽' => 'gusomana: umugore, umugabo, ibara ry’uruhu rwirabura, ibara ", "suffix": "omana: umugore, umugore, ibara ry’uruhu rwera',\n '👩🏻‍❤‍💋‍👩🏼' => 'gusomana: umugore, umugore, ibara ry’uruhu rwera, ibara ry’uruhu rwera gahoro',\n '👩🏻‍❤‍💋‍👩🏽' => 'gusomana: umugore, umugore, ibara ry’uruhu rwera, ibara ry’uruhu rw’inzobe',\n '👩🏻‍❤‍💋", "middle": "ry’uruhu rw’inzobe',\n '👩🏿‍❤‍💋‍👨🏾' => 'gusomana: umugore, umugabo, ibara ry’uruhu rwirabura, ibara ry’uruhu rw’inzobe yirabura',\n '👩🏿‍❤‍💋‍👨🏿' => 'gusomana: umugore, umugabo, ibara ry’uruhu rwirabura',\n '👩🏻‍❤‍💋‍👩🏻' => 'gus", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-rw.php", "language": "php", "file_size": 187836, "cut_index": 7068, "middle_length": 229}} {"prefix": "persone, persone, pedde iscura e pedde bastante iscura',\n '👨🏻‍❤‍💋‍👨🏻' => 'basu: òmine, òmine e pedde crara',\n '👨🏻‍❤‍💋‍👨🏼' => 'basu: òmine, òmine, pedde crara e pedde bastante crara',\n '👨🏻‍❤‍💋‍👨🏽' => 'basu: òmine, òmine, pedde crara e pedde de colore mèdiu',\n '👨🏻‍❤‍💋‍👨🏾' => 'basu: òmine, òmine, pedde crara e pedde bastante iscura',\n '👨🏻‍❤‍💋‍👨🏿' => 'basu: òmine, òmine, pedde crara e pedde iscura',\n '👨🏼‍❤‍💋‍👨🏻' => 'basu: òmine, òmine, pedde bastante crara e pedde crara',\n '👨🏼‍❤‍💋‍👨🏼' => 'b", "suffix": "👨🏿' => 'basu: òmine, òmine, pedde bastante crara e pedde iscura',\n '👨🏽‍❤‍💋‍👨🏻' => 'basu: òmine, òmine, pedde de colore mèdiu e pedde crara',\n '👨🏽‍❤‍💋‍👨🏼' => 'basu: òmine, òmine, pedde de colore mèdiu e pedde bastante crara',\n '👨🏽‍❤‍💋‍👨🏽' => 'basu:", "middle": "asu: òmine, òmine e pedde bastante crara',\n '👨🏼‍❤‍💋‍👨🏽' => 'basu: òmine, òmine, pedde bastante crara e pedde de colore mèdiu',\n '👨🏼‍❤‍💋‍👨🏾' => 'basu: òmine, òmine, pedde bastante crara e pedde bastante iscura',\n '👨🏼‍❤‍💋‍", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sc.php", "language": "php", "file_size": 72954, "cut_index": 2151, "middle_length": 229}} {"prefix": "හි වර්ගය-1-2',\n '👩🏽‍❤‍💋‍👩🏼' => 'හාදුව: කාන්තාව, කාන්තාව, සමෙහි වර්ගය-4, සහ සමෙහි වර්ගය-3',\n '👩🏽‍❤‍💋‍👩🏽' => 'හාදුව: කාන්තාව, කාන්තාව, සහ සමෙහි වර්ගය-4',\n '👩🏽‍❤‍💋‍👩🏾' => 'හාදුව: කාන්තාව, කාන්තාව, සමෙහි වර්ගය-4, සහ සමෙහි වර්ගය-5',\n '👩🏽‍❤‍💋‍👩🏿' => 'හාදුව: කාන්තාව, කාන්තාව, සමෙහි වර්ගය-4, සහ සමෙහි වර්ගය-6',\n '👩🏾‍❤‍💋‍👩🏻' => 'හාදුව: කාන්තාව, කාන්තාව, සමෙහි වර්ගය-5, සහ සමෙහි වර්ගය-1-2',\n '👩🏾‍❤‍💋‍👩🏼' => 'හාදුව: කාන්තාව, කාන්තාව, සමෙහි වර්ගය-5, සහ සමෙහි වර්ගය-3',\n '👩🏾‍❤‍💋‍👩🏽' => 'හාදුව: කාන්තාව, ", "suffix": ", සමෙහි වර්ගය-6, සහ සමෙහි වර්ගය-1-2',\n '👩🏿‍❤‍💋‍👩🏼' => 'හාදුව: කාන්තාව, කාන්තාව, සමෙහි වර්ගය-6, සහ සමෙහි වර්ගය-3',\n '👩🏿‍❤‍💋‍👩🏽' => 'හාදුව: කාන්තාව, කාන්තාව, සමෙහි වර්ගය-6, සහ සමෙහි වර්ගය-4',\n '👩🏿‍❤‍💋‍👩🏾' => 'හාදුව: කාන්තාව, කාන්තාව, සමෙහි වර්ගය-6, ", "middle": "කාන්තාව, සමෙහි වර්ගය-5, සහ සමෙහි වර්ගය-4',\n '👩🏾‍❤‍💋‍👩🏾' => 'හාදුව: කාන්තාව, කාන්තාව, සහ සමෙහි වර්ගය-5',\n '👩🏾‍❤‍💋‍👩🏿' => 'හාදුව: කාන්තාව, කාන්තාව, සමෙහි වර්ගය-5, සහ සමෙහි වර්ගය-6',\n '👩🏿‍❤‍💋‍👩🏻' => 'හාදුව: කාන්තාව, කාන්තාව", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-si.php", "language": "php", "file_size": 371457, "cut_index": 7068, "middle_length": 229}} {"prefix": "edný tón pleti, stredne tmavý tón pleti',\n '👩🏽‍❤‍💋‍👩🏿' => 'bozk: žena, žena, stredný tón pleti, tmavý tón pleti',\n '👩🏾‍❤‍💋‍👩🏻' => 'bozk: žena, žena, stredne tmavý tón pleti, svetlý tón pleti',\n '👩🏾‍❤‍💋‍👩🏼' => 'bozk: žena, žena, stredne tmavý tón pleti, stredne svetlý tón pleti',\n '👩🏾‍❤‍💋‍👩🏽' => 'bozk: žena, žena, stredne tmavý tón pleti, stredný tón pleti',\n '👩🏾‍❤‍💋‍👩🏾' => 'bozk: žena, žena, stredne tmavý tón pleti',\n '👩🏾‍❤‍💋‍👩🏿' => 'bozk: žena, žena, stredne tmavý tón pleti, tmavý tón ple", "suffix": "leti',\n '👩🏿‍❤‍💋‍👩🏾' => 'bozk: žena, žena, tmavý tón pleti, stredne tmavý tón pleti',\n '👩🏿‍❤‍💋‍👩🏿' => 'bozk: žena, žena, tmavý tón pleti',\n '🧑🏻‍🫯‍🧑🏼' => 'zápasiaci ľudia: svetlý tón pleti, stredne svetlý tón pleti',\n '🧑🏻‍🫯‍🧑🏽' => 'zápasiaci ľudi", "middle": "ti',\n '👩🏿‍❤‍💋‍👩🏻' => 'bozk: žena, žena, tmavý tón pleti, svetlý tón pleti',\n '👩🏿‍❤‍💋‍👩🏼' => 'bozk: žena, žena, tmavý tón pleti, stredne svetlý tón pleti',\n '👩🏿‍❤‍💋‍👩🏽' => 'bozk: žena, žena, tmavý tón pleti, stredný tón p", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sk.php", "language": "php", "file_size": 217515, "cut_index": 7068, "middle_length": 229}} {"prefix": ", srednje svetel ten kože in svetel ten kože',\n '👩🏼‍❤‍💋‍👩🏼' => 'poljub: ženska, ženska in srednje svetel ten kože',\n '👩🏼‍❤‍💋‍👩🏽' => 'poljub: ženska, ženska, srednje svetel ten kože in srednji ten kože',\n '👩🏼‍❤‍💋‍👩🏾' => 'poljub: ženska, ženska, srednje svetel ten kože in srednje temen ten kože',\n '👩🏼‍❤‍💋‍👩🏿' => 'poljub: ženska, ženska, srednje svetel ten kože in temen ten kože',\n '👩🏽‍❤‍💋‍👩🏻' => 'poljub: ženska, ženska, srednji ten kože in svetel ten kože',\n '👩🏽‍❤‍💋‍👩🏼' => 'poljub: ženska, ž", "suffix": "ljub: ženska, ženska, srednji ten kože in temen ten kože',\n '👩🏾‍❤‍💋‍👩🏻' => 'poljub: ženska, ženska, srednje temen ten kože in svetel ten kože',\n '👩🏾‍❤‍💋‍👩🏼' => 'poljub: ženska, ženska, srednje temen ten kože in srednje svetel ten kože',\n '👩🏾‍❤‍💋‍👩", "middle": "enska, srednji ten kože in srednje svetel ten kože',\n '👩🏽‍❤‍💋‍👩🏽' => 'poljub: ženska, ženska in srednji ten kože',\n '👩🏽‍❤‍💋‍👩🏾' => 'poljub: ženska, ženska, srednji ten kože in srednje temen ten kože',\n '👩🏽‍❤‍💋‍👩🏿' => 'po", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sl.php", "language": "php", "file_size": 216989, "cut_index": 7068, "middle_length": 229}} {"prefix": "e e errët e nuancë lëkure gjysmë e çelët',\n '👩🏿‍❤‍💋‍👨🏽' => 'puthje: grua, burrë, nuancë lëkure e errët e nuancë lëkure zeshkane',\n '👩🏿‍❤‍💋‍👨🏾' => 'puthje: grua, burrë, nuancë lëkure e errët e nuancë lëkure gjysmë e errët',\n '👩🏿‍❤‍💋‍👨🏿' => 'puthje: grua, burrë e nuancë lëkure e errët',\n '👩🏻‍❤‍💋‍👩🏻' => 'puthje: grua, grua e nuancë lëkure e çelët',\n '👩🏻‍❤‍💋‍👩🏼' => 'puthje: grua, grua, nuancë lëkure e çelët e nuancë lëkure gjysmë e çelët',\n '👩🏻‍❤‍💋‍👩🏽' => 'puthje: grua, grua, nuancë lëkure e ç", "suffix": "' => 'puthje: grua, grua, nuancë lëkure gjysmë e çelët e nuancë lëkure e çelët',\n '👩🏼‍❤‍💋‍👩🏼' => 'puthje: grua, grua e nuancë lëkure gjysmë e çelët',\n '👩🏼‍❤‍💋‍👩🏽' => 'puthje: grua, grua, nuancë lëkure gjysmë e çelët e nuancë lëkure zeshkane',\n '👩🏼", "middle": "elët e nuancë lëkure zeshkane',\n '👩🏻‍❤‍💋‍👩🏾' => 'puthje: grua, grua, nuancë lëkure e çelët e nuancë lëkure gjysmë e errët',\n '👩🏻‍❤‍💋‍👩🏿' => 'puthje: grua, grua, nuancë lëkure e çelët e nuancë lëkure e errët',\n '👩🏼‍❤‍💋‍👩🏻", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sq.php", "language": "php", "file_size": 241554, "cut_index": 7068, "middle_length": 229}} {"prefix": " ни светла ни тамна кожа',\n '👩🏼‍❤‍💋‍👩🏾' => 'пољубац: жена, жена, средње светла кожа и средње тамна кожа',\n '👩🏼‍❤‍💋‍👩🏿' => 'пољубац: жена, жена, средње светла кожа и тамна кожа',\n '👩🏽‍❤‍💋‍👩🏻' => 'пољубац: жена, жена, ни светла ни тамна кожа и светла кожа',\n '👩🏽‍❤‍💋‍👩🏼' => 'пољубац: жена, жена, ни светла ни тамна кожа и средње светла кожа',\n '👩🏽‍❤‍💋‍👩🏽' => 'пољубац: жена, жена и ни светла ни тамна кожа',\n '👩🏽‍❤‍💋‍👩🏾' => 'пољубац: жена, жена, ни светла ни тамна кожа и средње тамна кожа',\n ", "suffix": "а',\n '👩🏾‍❤‍💋‍👩🏽' => 'пољубац: жена, жена, средње тамна кожа и ни светла ни тамна кожа',\n '👩🏾‍❤‍💋‍👩🏾' => 'пољубац: жена, жена и средње тамна кожа',\n '👩🏾‍❤‍💋‍👩🏿' => 'пољубац: жена, жена, средње тамна кожа и тамна кожа',\n '👩🏿‍❤‍💋‍👩🏻' => 'пољубац: ", "middle": "'👩🏽‍❤‍💋‍👩🏿' => 'пољубац: жена, жена, ни светла ни тамна кожа и тамна кожа',\n '👩🏾‍❤‍💋‍👩🏻' => 'пољубац: жена, жена, средње тамна кожа и светла кожа',\n '👩🏾‍❤‍💋‍👩🏼' => 'пољубац: жена, жена, средње тамна кожа и средње светла кож", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sr_cyrl.php", "language": "php", "file_size": 289426, "cut_index": 7068, "middle_length": 229}} {"prefix": "koža',\n '👩🏼‍❤‍💋‍👩🏼' => 'poljubac: žena, žena i srednje svetla koža',\n '👩🏼‍❤‍💋‍👩🏽' => 'poljubac: žena, žena, srednje svetla koža i ni svetla ni tamna koža',\n '👩🏼‍❤‍💋‍👩🏾' => 'poljubac: žena, žena, srednje svetla koža i srednje tamna koža',\n '👩🏼‍❤‍💋‍👩🏿' => 'poljubac: žena, žena, srednje svetla koža i tamna koža',\n '👩🏽‍❤‍💋‍👩🏻' => 'poljubac: žena, žena, ni svetla ni tamna koža i svetla koža',\n '👩🏽‍❤‍💋‍👩🏼' => 'poljubac: žena, žena, ni svetla ni tamna koža i srednje svetla koža',\n '👩🏽‍❤‍💋‍👩🏽' ", "suffix": "🏾‍❤‍💋‍👩🏻' => 'poljubac: žena, žena, srednje tamna koža i svetla koža',\n '👩🏾‍❤‍💋‍👩🏼' => 'poljubac: žena, žena, srednje tamna koža i srednje svetla koža',\n '👩🏾‍❤‍💋‍👩🏽' => 'poljubac: žena, žena, srednje tamna koža i ni svetla ni tamna koža',\n '👩🏾‍❤‍💋", "middle": "=> 'poljubac: žena, žena i ni svetla ni tamna koža',\n '👩🏽‍❤‍💋‍👩🏾' => 'poljubac: žena, žena, ni svetla ni tamna koža i srednje tamna koža',\n '👩🏽‍❤‍💋‍👩🏿' => 'poljubac: žena, žena, ni svetla ni tamna koža i tamna koža',\n '👩", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sr_latn.php", "language": "php", "file_size": 207794, "cut_index": 7068, "middle_length": 229}} {"prefix": "🧑🏿' => 'خلک پهلواني کوي: د روڼ پوستکي ټون و تور پوستکۍ',\n '🧑🏼‍🫯‍🧑🏻' => 'خلک پهلواني کوي: غنمی-روښانه پوستکۍ و د روڼ پوستکي ټون',\n '🧑🏼‍🫯‍🧑🏽' => 'خلک پهلواني کوي: غنمی-روښانه پوستکۍ و غنم رنګه',\n '🧑🏼‍🫯‍🧑🏾' => 'خلک پهلواني کوي: غنمی-روښانه پوستکۍ و غنمی-تورنګه پوستکۍ',\n '🧑🏼‍🫯‍🧑🏿' => 'خلک پهلواني کوي: غنمی-روښانه پوستکۍ و تور پوستکۍ',\n '🧑🏽‍🫯‍🧑🏻' => 'خلک پهلواني کوي: غنم رنګه و د روڼ پوستکي ټون',\n '🧑🏽‍🫯‍🧑🏼' => 'خلک پهلواني کوي: غنم رنګه و غنمی-روښانه پوستکۍ',\n '🧑🏽‍🫯‍🧑🏾' => 'خلک پهلواني کوي: ", "suffix": "ښانه پوستکۍ',\n '🧑🏾‍🫯‍🧑🏽' => 'خلک پهلواني کوي: غنمی-تورنګه پوستکۍ و غنم رنګه',\n '🧑🏾‍🫯‍🧑🏿' => 'خلک پهلواني کوي: غنمی-تورنګه پوستکۍ و تور پوستکۍ',\n '🧑🏿‍🫯‍🧑🏻' => 'خلک پهلواني کوي: تور پوستکۍ و د روڼ پوستکي ټون',\n '🧑🏿‍🫯‍🧑🏼' => 'خلک پهلواني کوي: تور ", "middle": "غنم رنګه و غنمی-تورنګه پوستکۍ',\n '🧑🏽‍🫯‍🧑🏿' => 'خلک پهلواني کوي: غنم رنګه و تور پوستکۍ',\n '🧑🏾‍🫯‍🧑🏻' => 'خلک پهلواني کوي: غنمی-تورنګه پوستکۍ و د روڼ پوستکي ټون',\n '🧑🏾‍🫯‍🧑🏼' => 'خلک پهلواني کوي: غنمی-تورنګه پوستکۍ و غنمی-رو", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ps.php", "language": "php", "file_size": 263633, "cut_index": 7068, "middle_length": 229}} {"prefix": "💋‍👩🏾' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း၊ သီၽိဝ်ၼိူဝ်ႉၶၢဝ် လႄႈ သီၽိဝ်ၼိူဝ်ႉလမ်ပၢၼ်ၵၢင်',\n '👩🏻‍❤‍💋‍👩🏿' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း၊ သီၽိဝ်ၼိူဝ်ႉၶၢဝ် လႄႈ သီၽိဝ်ၼိူဝ်ႉလမ်',\n '👩🏼‍❤‍💋‍👩🏻' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း၊ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇပၢၼ်ၵၢင် လႄႈ သီၽိဝ်ၼိူဝ်ႉၶၢဝ်',\n '👩🏼‍❤‍💋‍👩🏼' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း လႄႈ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇပၢၼ်ၵၢင်',\n '👩🏼‍❤‍💋‍👩🏽' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း၊ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇပၢၼ်ၵၢင် လႄႈ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇ',\n '👩🏼‍❤‍💋‍👩🏾' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း၊ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇပၢၼ်ၵၢင် လႄႈ", "suffix": "ုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း၊ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇ လႄႈ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇပၢၼ်ၵၢင်',\n '👩🏽‍❤‍💋‍👩🏽' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း လႄႈ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇ',\n '👩🏽‍❤‍💋‍👩🏾' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း၊ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇ လႄႈ သီၽိဝ်ၼိူဝ်ႉလမ်ပၢၼ်ၵၢင်',\n '👩🏽‍❤‍💋‍👩🏿' => ", "middle": " သီၽိဝ်ၼိူဝ်ႉလမ်ပၢၼ်ၵၢင်',\n '👩🏼‍❤‍💋‍👩🏿' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း၊ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇပၢၼ်ၵၢင် လႄႈ သီၽိဝ်ၼိူဝ်ႉလမ်',\n '👩🏽‍❤‍💋‍👩🏻' => 'ၸုပ်ႇ: ၽူႈယိင်း၊ ၽူႈယိင်း၊ သီၽိဝ်ၼိူဝ်ႉၵမ်ႇ လႄႈ သီၽိဝ်ၼိူဝ်ႉၶၢဝ်',\n '👩🏽‍❤‍💋‍👩🏼' => 'ၸ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-shn.php", "language": "php", "file_size": 441501, "cut_index": 7068, "middle_length": 229}} {"prefix": "> 'shumis: naag, naag, jidh nooc madaw oo dhexe',\n '👩🏾‍❤‍💋‍👩🏿' => 'shumis: naag, naag, jidh nooc madaw oo dhexe, jidh madaw',\n '👩🏿‍❤‍💋‍👩🏻' => 'shumis: naag, naag, jidh madaw, jidh fudud',\n '👩🏿‍❤‍💋‍👩🏼' => 'shumis: naag, naag, jidh madaw, jidh fudud oo dhexe',\n '👩🏿‍❤‍💋‍👩🏽' => 'shumis: naag, naag, jidh madaw, jidh nooc dhexe',\n '👩🏿‍❤‍💋‍👩🏾' => 'shumis: naag, naag, jidh madaw, jidh nooc madaw oo dhexe',\n '👩🏿‍❤‍💋‍👩🏿' => 'shumis: naag, naag, jidh madaw',\n '🧑🏻‍🫯‍🧑🏼' => 'dad lagdamaya: jidh fudu", "suffix": "🏻' => 'dad lagdamaya: jidh fudud oo dhexe, jidh fudud',\n '🧑🏼‍🫯‍🧑🏽' => 'dad lagdamaya: jidh fudud oo dhexe, jidh nooc dhexe',\n '🧑🏼‍🫯‍🧑🏾' => 'dad lagdamaya: jidh fudud oo dhexe, jidh nooc madaw oo dhexe',\n '🧑🏼‍🫯‍🧑🏿' => 'dad lagdamaya: jidh fudud oo ", "middle": "d, jidh fudud oo dhexe',\n '🧑🏻‍🫯‍🧑🏽' => 'dad lagdamaya: jidh fudud, jidh nooc dhexe',\n '🧑🏻‍🫯‍🧑🏾' => 'dad lagdamaya: jidh fudud, jidh nooc madaw oo dhexe',\n '🧑🏻‍🫯‍🧑🏿' => 'dad lagdamaya: jidh fudud, jidh madaw',\n '🧑🏼‍🫯‍🧑", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-so.php", "language": "php", "file_size": 213327, "cut_index": 7068, "middle_length": 229}} {"prefix": "ена, жена, средње свијетла кожа и свијетла кожа',\n '👩🏼‍❤‍💋‍👩🏼' => 'пољубац: жена, жена и средње свијетла кожа',\n '👩🏼‍❤‍💋‍👩🏽' => 'пољубац: жена, жена, средње свијетла кожа и ни свијетла ни тамна кожа',\n '👩🏼‍❤‍💋‍👩🏾' => 'пољубац: жена, жена, средње свијетла кожа и средње тамна кожа',\n '👩🏼‍❤‍💋‍👩🏿' => 'пољубац: жена, жена, средње свијетла кожа и тамна кожа',\n '👩🏽‍❤‍💋‍👩🏻' => 'пољубац: жена, жена, ни свијетла ни тамна кожа и свијетла кожа',\n '👩🏽‍❤‍💋‍👩🏼' => 'пољубац: жена, жена, ни свијетла ни там", "suffix": "на, ни свијетла ни тамна кожа и тамна кожа',\n '👩🏾‍❤‍💋‍👩🏻' => 'пољубац: жена, жена, средње тамна кожа и свијетла кожа',\n '👩🏾‍❤‍💋‍👩🏼' => 'пољубац: жена, жена, средње тамна кожа и средње свијетла кожа',\n '👩🏾‍❤‍💋‍👩🏽' => 'пољубац: жена, жена, средње та", "middle": "на кожа и средње свијетла кожа',\n '👩🏽‍❤‍💋‍👩🏽' => 'пољубац: жена, жена и ни свијетла ни тамна кожа',\n '👩🏽‍❤‍💋‍👩🏾' => 'пољубац: жена, жена, ни свијетла ни тамна кожа и средње тамна кожа',\n '👩🏽‍❤‍💋‍👩🏿' => 'пољубац: жена, же", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sr_cyrl_ba.php", "language": "php", "file_size": 296238, "cut_index": 7068, "middle_length": 229}} {"prefix": " '🏋️‍♂️' => ':man-lifting-weights:',\n '🏌️‍♀️' => ':woman-golfing:',\n '🏌️‍♂️' => ':man-golfing:',\n '🏳️‍⚧️' => ':transgender_flag:',\n '👁️‍🗨️' => ':eye-in-speech-bubble:',\n '👨‍👦‍👦' => ':man-boy-boy:',\n '👨‍👧‍👦' => ':man-girl-boy:',\n '👨‍👧‍👧' => ':man-girl-girl:',\n '👨‍👨‍👦' => ':man-man-boy:',\n '👨‍👨‍👧' => ':man-man-girl:',\n '👨‍👩‍👦' => ':man-woman-boy:',\n '👨‍👩‍👧' => ':man-woman-girl:',\n '👩‍👦‍👦' => ':woman-boy-boy:',\n '👩‍👧‍👦' => ':woman-girl-boy:',\n '👩‍👧‍👧' => ':woman-gir", "suffix": "lt_child:',\n '🧑‍🧒‍🧒' => ':family_adult_child_child:',\n '⛹️‍♀️' => ':woman-bouncing-ball:',\n '⛹️‍♂️' => ':man-bouncing-ball:',\n '🏃‍♀️' => ':woman-running:',\n '🏃‍♂️' => ':man-running:',\n '🏃‍➡️' => ':person_running_facing_right:',\n '🏄‍♀️'", "middle": "l-girl:',\n '👩‍👩‍👦' => ':woman-woman-boy:',\n '👩‍👩‍👧' => ':woman-woman-girl:',\n '🕵️‍♀️' => ':female-detective:',\n '🕵️‍♂️' => ':male-detective:',\n '🧑‍🤝‍🧑' => ':people_holding_hands:',\n '🧑‍🧑‍🧒' => ':family_adult_adu", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-slack.php", "language": "php", "file_size": 62390, "cut_index": 2151, "middle_length": 229}} {"prefix": " '🧑🏼‍🫯‍🧑🏽' => 'persunas che lutgan: pel mez clera, pel media',\n '🧑🏼‍🫯‍🧑🏾' => 'persunas che lutgan: pel mez clera, pel mez stgira',\n '🧑🏼‍🫯‍🧑🏿' => 'persunas che lutgan: pel mez clera, pel stgira',\n '🧑🏽‍🫯‍🧑🏻' => 'persunas che lutgan: pel media, pel clera',\n '🧑🏽‍🫯‍🧑🏼' => 'persunas che lutgan: pel media, pel mez clera',\n '🧑🏽‍🫯‍🧑🏾' => 'persunas che lutgan: pel media, pel mez stgira',\n '🧑🏽‍🫯‍🧑🏿' => 'persunas che lutgan: pel media, pel stgira',\n '🧑🏾‍🫯‍🧑🏻' => 'persunas che lutgan: pel mez stgi", "suffix": "‍🫯‍🧑🏻' => 'persunas che lutgan: pel stgira, pel clera',\n '🧑🏿‍🫯‍🧑🏼' => 'persunas che lutgan: pel stgira, pel mez clera',\n '🧑🏿‍🫯‍🧑🏽' => 'persunas che lutgan: pel stgira, pel media',\n '🧑🏿‍🫯‍🧑🏾' => 'persunas che lutgan: pel stgira, pel mez stgira',\n ", "middle": "ra, pel clera',\n '🧑🏾‍🫯‍🧑🏼' => 'persunas che lutgan: pel mez stgira, pel mez clera',\n '🧑🏾‍🫯‍🧑🏽' => 'persunas che lutgan: pel mez stgira, pel media',\n '🧑🏾‍🫯‍🧑🏿' => 'persunas che lutgan: pel mez stgira, pel stgira',\n '🧑🏿", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-rm.php", "language": "php", "file_size": 196637, "cut_index": 7068, "middle_length": 229}} {"prefix": "=> '',\n '👩🏿‍❤‍💋‍👨🏾' => '',\n '👩🏿‍❤‍💋‍👨🏿' => '',\n '👨🏻‍❤‍💋‍👨🏻' => '',\n '👨🏻‍❤‍💋‍👨🏼' => '',\n '👨🏻‍❤‍💋‍👨🏽' => '',\n '👨🏻‍❤‍💋‍👨🏾' => '',\n '👨🏻‍❤‍💋‍👨🏿' => '',\n '👨🏼‍❤‍💋‍👨🏻' => '',\n '👨🏼‍❤‍💋‍👨🏼' => '',\n '👨🏼‍❤‍💋‍👨🏽' => '',\n '👨🏼‍❤‍💋‍👨🏾' => '',\n '👨🏼‍❤‍💋‍👨🏿' => '',\n '👨🏽‍❤‍💋‍👨🏻' => '',\n '👨🏽‍❤‍💋‍👨🏼' => '',\n '👨🏽‍❤‍💋‍👨🏽' => '',\n '👨🏽‍❤‍💋‍👨🏾' => '',\n '👨🏽‍❤‍💋‍👨🏿' => '',\n '👨🏾‍❤‍💋‍👨🏻' => '',\n '👨🏾‍❤‍💋‍👨🏼' => '',\n '👨🏾‍❤‍💋‍👨🏽' => '',\n '👨🏾‍❤‍💋‍👨🏾' => '',\n '👨🏾‍❤‍💋‍👨🏿' => '',", "suffix": ",\n '👩🏼‍❤‍💋‍👩🏻' => '',\n '👩🏼‍❤‍💋‍👩🏼' => '',\n '👩🏼‍❤‍💋‍👩🏽' => '',\n '👩🏼‍❤‍💋‍👩🏾' => '',\n '👩🏼‍❤‍💋‍👩🏿' => '',\n '👩🏽‍❤‍💋‍👩🏻' => '',\n '👩🏽‍❤‍💋‍👩🏼' => '',\n '👩🏽‍❤‍💋‍👩🏽' => '',\n '👩🏽‍❤‍💋‍👩🏾' => '',\n '👩🏽‍❤‍💋‍👩🏿' => '',\n '👩🏾‍❤‍💋‍👩🏻' => '',\n ", "middle": "\n '👨🏿‍❤‍💋‍👨🏻' => '',\n '👨🏿‍❤‍💋‍👨🏼' => '',\n '👨🏿‍❤‍💋‍👨🏽' => '',\n '👨🏿‍❤‍💋‍👨🏾' => '',\n '👨🏿‍❤‍💋‍👨🏿' => '',\n '👩🏻‍❤‍💋‍👩🏻' => '',\n '👩🏻‍❤‍💋‍👩🏼' => '',\n '👩🏻‍❤‍💋‍👩🏽' => '',\n '👩🏻‍❤‍💋‍👩🏾' => '',\n '👩🏻‍❤‍💋‍👩🏿' => ''", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-strip.php", "language": "php", "file_size": 136855, "cut_index": 3790, "middle_length": 229}} {"prefix": "ande personer: mellanljus hy, mellanmörk hy',\n '🧑🏼‍🫯‍🧑🏿' => 'brottande personer: mellanljus hy, mörk hy',\n '🧑🏽‍🫯‍🧑🏻' => 'brottande personer: mellanfärgad hy, ljus hy',\n '🧑🏽‍🫯‍🧑🏼' => 'brottande personer: mellanfärgad hy, mellanljus hy',\n '🧑🏽‍🫯‍🧑🏾' => 'brottande personer: mellanfärgad hy, mellanmörk hy',\n '🧑🏽‍🫯‍🧑🏿' => 'brottande personer: mellanfärgad hy, mörk hy',\n '🧑🏾‍🫯‍🧑🏻' => 'brottande personer: mellanmörk hy, ljus hy',\n '🧑🏾‍🫯‍🧑🏼' => 'brottande personer: mellanmörk hy, mellanljus hy',", "suffix": " mörk hy, mellanljus hy',\n '🧑🏿‍🫯‍🧑🏽' => 'brottande personer: mörk hy, mellanfärgad hy',\n '🧑🏿‍🫯‍🧑🏾' => 'brottande personer: mörk hy, mellanmörk hy',\n '🧑🏻‍❤‍🧑🏼' => 'par med hjärta: person, person, ljus hy, mellanljus hy',\n '🧑🏻‍❤‍🧑🏽' => 'par med h", "middle": "\n '🧑🏾‍🫯‍🧑🏽' => 'brottande personer: mellanmörk hy, mellanfärgad hy',\n '🧑🏾‍🫯‍🧑🏿' => 'brottande personer: mellanmörk hy, mörk hy',\n '🧑🏿‍🫯‍🧑🏻' => 'brottande personer: mörk hy, ljus hy',\n '🧑🏿‍🫯‍🧑🏼' => 'brottande personer:", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sv_fi.php", "language": "php", "file_size": 191882, "cut_index": 7068, "middle_length": 229}} {"prefix": ", ngozi nyeupe kiasi na ngozi nyeusi',\n '👩🏽‍❤‍💋‍👩🏻' => 'busu: mwanamke, mwanamke, ngozi ya kahawia na ngozi nyeupe',\n '👩🏽‍❤‍💋‍👩🏼' => 'busu: mwanamke, mwanamke, ngozi ya kahawia na ngozi nyeupe kiasi',\n '👩🏽‍❤‍💋‍👩🏽' => 'busu: mwanamke, mwanamke na ngozi ya kahawia',\n '👩🏽‍❤‍💋‍👩🏾' => 'busu: mwanamke, mwanamke, ngozi ya kahawia na ngozi nyeusi kiasi',\n '👩🏽‍❤‍💋‍👩🏿' => 'busu: mwanamke, mwanamke, ngozi ya kahawia na ngozi nyeusi',\n '👩🏾‍❤‍💋‍👩🏻' => 'busu: mwanamke, mwanamke, ngozi nyeusi kiasi na ng", "suffix": "amke na ngozi nyeusi kiasi',\n '👩🏾‍❤‍💋‍👩🏿' => 'busu: mwanamke, mwanamke, ngozi nyeusi kiasi na ngozi nyeusi',\n '👩🏿‍❤‍💋‍👩🏻' => 'busu: mwanamke, mwanamke, ngozi nyeusi na ngozi nyeupe',\n '👩🏿‍❤‍💋‍👩🏼' => 'busu: mwanamke, mwanamke, ngozi nyeusi na ngozi", "middle": "ozi nyeupe',\n '👩🏾‍❤‍💋‍👩🏼' => 'busu: mwanamke, mwanamke, ngozi nyeusi kiasi na ngozi nyeupe kiasi',\n '👩🏾‍❤‍💋‍👩🏽' => 'busu: mwanamke, mwanamke, ngozi nyeusi kiasi na ngozi ya kahawia',\n '👩🏾‍❤‍💋‍👩🏾' => 'busu: mwanamke, mwan", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sw_ke.php", "language": "php", "file_size": 222327, "cut_index": 7068, "middle_length": 229}} {"prefix": ": வகை 4, வகை 6',\n '🧑🏾‍🫯‍🧑🏻' => 'மல்யுத்தம்: வகை 5, வகை 1–2',\n '🧑🏾‍🫯‍🧑🏼' => 'மல்யுத்தம்: வகை 5, வகை 3',\n '🧑🏾‍🫯‍🧑🏽' => 'மல்யுத்தம்: வகை 5, வகை 4',\n '🧑🏾‍🫯‍🧑🏿' => 'மல்யுத்தம்: வகை 5, வகை 6',\n '🧑🏿‍🫯‍🧑🏻' => 'மல்யுத்தம்: வகை 6, வகை 1–2',\n '🧑🏿‍🫯‍🧑🏼' => 'மல்யுத்தம்: வகை 6, வகை 3',\n '🧑🏿‍🫯‍🧑🏽' => 'மல்யுத்தம்: வகை 6, வகை 4',\n '🧑🏿‍🫯‍🧑🏾' => 'மல்யுத்தம்: வகை 6, வகை 5',\n '🧑🏻‍❤‍🧑🏼' => 'காதலர்கள்: வயது வந்தவர், வயது வந்தவர், வகை 1–2, வகை 3',\n '🧑🏻‍❤‍🧑🏽' => 'காதலர்கள்: வயது வந்தவர், வயது வந்தவர், ", "suffix": "வகை 1–2',\n '🧑🏼‍❤‍🧑🏽' => 'காதலர்கள்: வயது வந்தவர், வயது வந்தவர், வகை 3, வகை 4',\n '🧑🏼‍❤‍🧑🏾' => 'காதலர்கள்: வயது வந்தவர், வயது வந்தவர், வகை 3, வகை 5',\n '🧑🏼‍❤‍🧑🏿' => 'காதலர்கள்: வயது வந்தவர், வயது வந்தவர், வகை 3, வகை 6',\n '🧑🏽‍❤‍🧑🏻' => 'காதலர்கள்: வ", "middle": "வகை 1–2, வகை 4',\n '🧑🏻‍❤‍🧑🏾' => 'காதலர்கள்: வயது வந்தவர், வயது வந்தவர், வகை 1–2, வகை 5',\n '🧑🏻‍❤‍🧑🏿' => 'காதலர்கள்: வயது வந்தவர், வயது வந்தவர், வகை 1–2, வகை 6',\n '🧑🏼‍❤‍🧑🏻' => 'காதலர்கள்: வயது வந்தவர், வயது வந்தவர், வகை 3, ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ta.php", "language": "php", "file_size": 335123, "cut_index": 7068, "middle_length": 229}} {"prefix": "-woman-woman-medium-light-skin-tone-light-skin-tone:',\n '👩🏼‍❤️‍💋‍👩🏾' => ':kiss-woman-woman-medium-light-skin-tone-medium-dark-skin-tone:',\n '👩🏼‍❤️‍💋‍👩🏽' => ':kiss-woman-woman-medium-light-skin-tone-medium-skin-tone:',\n '👩🏽‍❤️‍💋‍👩🏽' => ':kiss-woman-woman-medium-skin-tone:',\n '👩🏽‍❤️‍💋‍👩🏿' => ':kiss-woman-woman-medium-skin-tone-dark-skin-tone:',\n '👩🏽‍❤️‍💋‍👩🏻' => ':kiss-woman-woman-medium-skin-tone-light-skin-tone:',\n '👩🏽‍❤️‍💋‍👩🏾' => ':kiss-woman-woman-medium-skin-tone-medium-dark-skin-tone:',", "suffix": " '👨🏿‍❤️‍👨🏾' => ':couple-with-heart-man-man-dark-skin-tone-medium-dark-skin-tone:',\n '👨🏿‍❤️‍👨🏼' => ':couple-with-heart-man-man-dark-skin-tone-medium-light-skin-tone:',\n '👨🏿‍❤️‍👨🏽' => ':couple-with-heart-man-man-dark-skin-tone-medium-skin-tone:',\n ", "middle": "\n '👩🏽‍❤️‍💋‍👩🏼' => ':kiss-woman-woman-medium-skin-tone-medium-light-skin-tone:',\n '👨🏿‍❤️‍👨🏿' => ':couple-with-heart-man-man-dark-skin-tone:',\n '👨🏿‍❤️‍👨🏻' => ':couple-with-heart-man-man-dark-skin-tone-light-skin-tone:',\n ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-text.php", "language": "php", "file_size": 196124, "cut_index": 7068, "middle_length": 229}} {"prefix": "т, ранги торики пӯст',\n '👩🏽‍❤‍💋‍👩🏻' => 'бӯса: зан, зан, ранги миёнаи пӯст, ранги равшани пӯст',\n '👩🏽‍❤‍💋‍👩🏼' => 'бӯса: зан, зан, ранги миёнаи пӯст, ранги равшании миёнаи пӯст',\n '👩🏽‍❤‍💋‍👩🏽' => 'бӯса: зан, зан, ранги миёнаи пӯст',\n '👩🏽‍❤‍💋‍👩🏾' => 'бӯса: зан, зан, ранги миёнаи пӯст, ранги торики миёнаи пӯст',\n '👩🏽‍❤‍💋‍👩🏿' => 'бӯса: зан, зан, ранги миёнаи пӯст, ранги торики пӯст',\n '👩🏾‍❤‍💋‍👩🏻' => 'бӯса: зан, зан, ранги торики миёнаи пӯст, ранги равшани пӯст',\n '👩🏾‍❤‍💋‍👩🏼' => 'бӯса: зан, за", "suffix": "зан, зан, ранги торики миёнаи пӯст, ранги торики пӯст',\n '👩🏿‍❤‍💋‍👩🏻' => 'бӯса: зан, зан, ранги торики пӯст, ранги равшани пӯст',\n '👩🏿‍❤‍💋‍👩🏼' => 'бӯса: зан, зан, ранги торики пӯст, ранги равшании миёнаи пӯст',\n '👩🏿‍❤‍💋‍👩🏽' => 'бӯса: зан, зан, ранг", "middle": "н, ранги торики миёнаи пӯст, ранги равшании миёнаи пӯст',\n '👩🏾‍❤‍💋‍👩🏽' => 'бӯса: зан, зан, ранги торики миёнаи пӯст, ранги миёнаи пӯст',\n '👩🏾‍❤‍💋‍👩🏾' => 'бӯса: зан, зан, ранги торики миёнаи пӯст',\n '👩🏾‍❤‍💋‍👩🏿' => 'бӯса: ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-tg.php", "language": "php", "file_size": 251633, "cut_index": 7068, "middle_length": 229}} {"prefix": "ይቲ፣ ጸሊም ቆርበት ቆርበት፣ ማእከላይ-ጸሊም ቆርበት ቆርበት',\n '👩🏿‍❤‍💋‍👩🏿' => 'ምስዓም፦ ሰበይቲ፣ ሰበይቲ፣ ጸሊም ቆርበት ቆርበት',\n '🧑🏻‍🫯‍🧑🏼' => 'ሰባት እናተቓለሱ፦ ፍኹስ ዝበለ ቆርበት፣ ማእከላይ-ፈኲስ ቆርበት ዘለዎ',\n '🧑🏻‍🫯‍🧑🏽' => 'ሰባት እናተቓለሱ፦ ፍኹስ ዝበለ ቆርበት፣ ማእከላይ ቆርበት ዘለዎ',\n '🧑🏻‍🫯‍🧑🏾' => 'ሰባት እናተቓለሱ፦ ፍኹስ ዝበለ ቆርበት፣ ማእከላይ-ጸሊም ቆርበት ቆርበት',\n '🧑🏻‍🫯‍🧑🏿' => 'ሰባት እናተቓለሱ፦ ፍኹስ ዝበለ ቆርበት፣ ጸሊም ቆርበት ቆርበት',\n '🧑🏼‍🫯‍🧑🏻' => 'ሰባት እናተቓለሱ፦ ማእከላይ-ፈኲስ ቆርበት ዘለዎ፣ ፍኹስ ዝበለ ቆርበት',\n '🧑🏼‍🫯‍🧑🏽' => 'ሰባት እናተቓለሱ፦ ማእከላይ-ፈኲስ ቆርበት ዘለዎ፣ ማእከላይ ቆርበት ዘለዎ',\n '🧑🏼‍🫯‍🧑🏾' => 'ሰባት እናተቓለሱ፦ ማእከ", "suffix": "ዎ',\n '🧑🏽‍🫯‍🧑🏾' => 'ሰባት እናተቓለሱ፦ ማእከላይ ቆርበት ዘለዎ፣ ማእከላይ-ጸሊም ቆርበት ቆርበት',\n '🧑🏽‍🫯‍🧑🏿' => 'ሰባት እናተቓለሱ፦ ማእከላይ ቆርበት ዘለዎ፣ ጸሊም ቆርበት ቆርበት',\n '🧑🏾‍🫯‍🧑🏻' => 'ሰባት እናተቓለሱ፦ ማእከላይ-ጸሊም ቆርበት ቆርበት፣ ፍኹስ ዝበለ ቆርበት',\n '🧑🏾‍🫯‍🧑🏼' => 'ሰባት እናተቓለሱ፦ ማእከላይ-ጸሊም ቆርበት ቆርበት፣ ማእከላይ", "middle": "ላይ-ፈኲስ ቆርበት ዘለዎ፣ ማእከላይ-ጸሊም ቆርበት ቆርበት',\n '🧑🏼‍🫯‍🧑🏿' => 'ሰባት እናተቓለሱ፦ ማእከላይ-ፈኲስ ቆርበት ዘለዎ፣ ጸሊም ቆርበት ቆርበት',\n '🧑🏽‍🫯‍🧑🏻' => 'ሰባት እናተቓለሱ፦ ማእከላይ ቆርበት ዘለዎ፣ ፍኹስ ዝበለ ቆርበት',\n '🧑🏽‍🫯‍🧑🏼' => 'ሰባት እናተቓለሱ፦ ማእከላይ ቆርበት ዘለዎ፣ ማእከላይ-ፈኲስ ቆርበት ዘለ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ti.php", "language": "php", "file_size": 332565, "cut_index": 7068, "middle_length": 229}} {"prefix": " ни светла ни тамна кожа',\n '👩🏼‍❤‍💋‍👩🏾' => 'пољубац: жена, жена, средње светла кожа и средње тамна кожа',\n '👩🏼‍❤‍💋‍👩🏿' => 'пољубац: жена, жена, средње светла кожа и тамна кожа',\n '👩🏽‍❤‍💋‍👩🏻' => 'пољубац: жена, жена, ни светла ни тамна кожа и светла кожа',\n '👩🏽‍❤‍💋‍👩🏼' => 'пољубац: жена, жена, ни светла ни тамна кожа и средње светла кожа',\n '👩🏽‍❤‍💋‍👩🏽' => 'пољубац: жена, жена и ни светла ни тамна кожа',\n '👩🏽‍❤‍💋‍👩🏾' => 'пољубац: жена, жена, ни светла ни тамна кожа и средње тамна кожа',\n ", "suffix": "а',\n '👩🏾‍❤‍💋‍👩🏽' => 'пољубац: жена, жена, средње тамна кожа и ни светла ни тамна кожа',\n '👩🏾‍❤‍💋‍👩🏾' => 'пољубац: жена, жена и средње тамна кожа',\n '👩🏾‍❤‍💋‍👩🏿' => 'пољубац: жена, жена, средње тамна кожа и тамна кожа',\n '👩🏿‍❤‍💋‍👩🏻' => 'пољубац: ", "middle": "'👩🏽‍❤‍💋‍👩🏿' => 'пољубац: жена, жена, ни светла ни тамна кожа и тамна кожа',\n '👩🏾‍❤‍💋‍👩🏻' => 'пољубац: жена, жена, средње тамна кожа и светла кожа',\n '👩🏾‍❤‍💋‍👩🏼' => 'пољубац: жена, жена, средње тамна кожа и средње светла кож", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sr.php", "language": "php", "file_size": 289426, "cut_index": 7068, "middle_length": 229}} {"prefix": "ande personer: mellanljus hy, mellanmörk hy',\n '🧑🏼‍🫯‍🧑🏿' => 'brottande personer: mellanljus hy, mörk hy',\n '🧑🏽‍🫯‍🧑🏻' => 'brottande personer: mellanfärgad hy, ljus hy',\n '🧑🏽‍🫯‍🧑🏼' => 'brottande personer: mellanfärgad hy, mellanljus hy',\n '🧑🏽‍🫯‍🧑🏾' => 'brottande personer: mellanfärgad hy, mellanmörk hy',\n '🧑🏽‍🫯‍🧑🏿' => 'brottande personer: mellanfärgad hy, mörk hy',\n '🧑🏾‍🫯‍🧑🏻' => 'brottande personer: mellanmörk hy, ljus hy',\n '🧑🏾‍🫯‍🧑🏼' => 'brottande personer: mellanmörk hy, mellanljus hy',", "suffix": " mörk hy, mellanljus hy',\n '🧑🏿‍🫯‍🧑🏽' => 'brottande personer: mörk hy, mellanfärgad hy',\n '🧑🏿‍🫯‍🧑🏾' => 'brottande personer: mörk hy, mellanmörk hy',\n '🧑🏻‍❤‍🧑🏼' => 'par med hjärta: person, person, ljus hy, mellanljus hy',\n '🧑🏻‍❤‍🧑🏽' => 'par med h", "middle": "\n '🧑🏾‍🫯‍🧑🏽' => 'brottande personer: mellanmörk hy, mellanfärgad hy',\n '🧑🏾‍🫯‍🧑🏿' => 'brottande personer: mellanmörk hy, mörk hy',\n '🧑🏿‍🫯‍🧑🏻' => 'brottande personer: mörk hy, ljus hy',\n '🧑🏿‍🫯‍🧑🏼' => 'brottande personer:", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sv.php", "language": "php", "file_size": 191882, "cut_index": 7068, "middle_length": 229}} {"prefix": "దు: మహిళ, మహిళ, లేత చర్మపు రంగు, మధ్యస్థ చర్మపు రంగు',\n '👩🏻‍❤‍💋‍👩🏾' => 'ముద్దు: మహిళ, మహిళ, లేత చర్మపు రంగు, మధ్యస్థంగా ముదురు చర్మపు రంగు',\n '👩🏻‍❤‍💋‍👩🏿' => 'ముద్దు: మహిళ, మహిళ, లేత చర్మపు రంగు, ముదురు చర్మపు రంగు',\n '👩🏼‍❤‍💋‍👩🏻' => 'ముద్దు: మహిళ, మహిళ, మధ్యస్థంగా లేత చర్మపు రంగు, లేత చర్మపు రంగు',\n '👩🏼‍❤‍💋‍👩🏼' => 'ముద్దు: మహిళ, మహిళ, మధ్యస్థంగా లేత చర్మపు రంగు',\n '👩🏼‍❤‍💋‍👩🏽' => 'ముద్దు: మహిళ, మహిళ, మధ్యస్థంగా లేత చర్మపు రంగు, మధ్యస్థ చర్మపు రంగు',\n '👩🏼‍❤‍💋‍👩🏾' => 'ముద్దు: మహిళ, మహిళ, మధ్యస", "suffix": "🏽‍❤‍💋‍👩🏼' => 'ముద్దు: మహిళ, మహిళ, మధ్యస్థ చర్మపు రంగు, మధ్యస్థంగా లేత చర్మపు రంగు',\n '👩🏽‍❤‍💋‍👩🏽' => 'ముద్దు: మహిళ, మహిళ, మధ్యస్థ చర్మపు రంగు',\n '👩🏽‍❤‍💋‍👩🏾' => 'ముద్దు: మహిళ, మహిళ, మధ్యస్థ చర్మపు రంగు, మధ్యస్థంగా ముదురు చర్మపు రంగు',\n '👩🏽‍❤‍💋‍👩🏿' =", "middle": "్థంగా లేత చర్మపు రంగు, మధ్యస్థంగా ముదురు చర్మపు రంగు',\n '👩🏼‍❤‍💋‍👩🏿' => 'ముద్దు: మహిళ, మహిళ, మధ్యస్థంగా లేత చర్మపు రంగు, ముదురు చర్మపు రంగు',\n '👩🏽‍❤‍💋‍👩🏻' => 'ముద్దు: మహిళ, మహిళ, మధ్యస్థ చర్మపు రంగు, లేత చర్మపు రంగు',\n '👩", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-te.php", "language": "php", "file_size": 458718, "cut_index": 7068, "middle_length": 229}} {"prefix": "a wa bontsho jo bo mo magareng, letlalo la mmala o o mo magareng',\n '👩🏾‍❤‍💋‍👨🏾' => 'atla: mosadi, monna, letlalo la mmala wa bontsho jo bo mo magareng',\n '👩🏾‍❤‍💋‍👨🏿' => 'atla: mosadi, monna, letlalo la mmala wa bontsho jo bo mo magareng, letlalo la mmala o montsho',\n '👩🏿‍❤‍💋‍👨🏻' => 'atla: mosadi, monna, letlalo la mmala o montsho, letlalo le lesweu',\n '👩🏿‍❤‍💋‍👨🏼' => 'atla: mosadi, monna, letlalo la mmala o montsho, letlalo le le bosweu jo bo mo magareng',\n '👩🏿‍❤‍💋‍👨🏽' => 'atla: mosadi, monna,", "suffix": " la mmala o montsho',\n '👩🏻‍❤‍💋‍👩🏻' => 'atla: mosadi, mosadi, letlalo le lesweu',\n '👩🏻‍❤‍💋‍👩🏼' => 'atla: mosadi, mosadi, letlalo le lesweu, letlalo le le bosweu jo bo mo magareng',\n '👩🏻‍❤‍💋‍👩🏽' => 'atla: mosadi, mosadi, letlalo le lesweu, letlalo l", "middle": " letlalo la mmala o montsho, letlalo la mmala o o mo magareng',\n '👩🏿‍❤‍💋‍👨🏾' => 'atla: mosadi, monna, letlalo la mmala o montsho, letlalo la mmala wa bontsho jo bo mo magareng',\n '👩🏿‍❤‍💋‍👨🏿' => 'atla: mosadi, monna, letlalo", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-tn.php", "language": "php", "file_size": 196866, "cut_index": 7068, "middle_length": 229}} {"prefix": "=> 'ماڻهو ڪشتي وڙهندي: پڪو رنگ، وچولو ڪارو رنگ',\n '🧑🏽‍🫯‍🧑🏿' => 'ماڻهو ڪشتي وڙهندي: پڪو رنگ، ڪارو رنگ',\n '🧑🏾‍🫯‍🧑🏻' => 'ماڻهو ڪشتي وڙهندي: وچولو ڪارو رنگ، گوري رنگت',\n '🧑🏾‍🫯‍🧑🏼' => 'ماڻهو ڪشتي وڙهندي: وچولو ڪارو رنگ، وچولي گوري رنگت',\n '🧑🏾‍🫯‍🧑🏽' => 'ماڻهو ڪشتي وڙهندي: وچولو ڪارو رنگ، پڪو رنگ',\n '🧑🏾‍🫯‍🧑🏿' => 'ماڻهو ڪشتي وڙهندي: وچولو ڪارو رنگ، ڪارو رنگ',\n '🧑🏿‍🫯‍🧑🏻' => 'ماڻهو ڪشتي وڙهندي: ڪارو رنگ، گوري رنگت',\n '🧑🏿‍🫯‍🧑🏼' => 'ماڻهو ڪشتي وڙهندي: ڪارو رنگ، وچولي گوري رنگت',\n '🧑🏿‍🫯‍🧑🏽' => 'م", "suffix": "ڪو رنگ',\n '🧑🏻‍❤‍🧑🏾' => 'دل سان جوڙو: بالغ، بالغ، گوري رنگت, وچولو ڪارو رنگ',\n '🧑🏻‍❤‍🧑🏿' => 'دل سان جوڙو: بالغ، بالغ، گوري رنگت, ڪارو رنگ',\n '🧑🏼‍❤‍🧑🏻' => 'دل سان جوڙو: بالغ، بالغ، وچولي گوري رنگت, گوري رنگت',\n '🧑🏼‍❤‍🧑🏽' => 'دل سان جوڙو: بالغ، با", "middle": "اڻهو ڪشتي وڙهندي: ڪارو رنگ، پڪو رنگ',\n '🧑🏿‍🫯‍🧑🏾' => 'ماڻهو ڪشتي وڙهندي: ڪارو رنگ، وچولو ڪارو رنگ',\n '🧑🏻‍❤‍🧑🏼' => 'دل سان جوڙو: بالغ، بالغ، گوري رنگت, وچولي گوري رنگت',\n '🧑🏻‍❤‍🧑🏽' => 'دل سان جوڙو: بالغ، بالغ، گوري رنگت, پ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sd.php", "language": "php", "file_size": 251665, "cut_index": 7068, "middle_length": 229}} {"prefix": " ผู้หญิง โทนผิวสีเข้ม และ โทนผิวสีแทน',\n '👩🏿‍❤‍💋‍👩🏿' => 'จูบ: ผู้หญิง ผู้หญิง และ โทนผิวสีเข้ม',\n '🧑🏻‍🫯‍🧑🏼' => 'นักมวยปล้ำ: โทนผิวสีขาว โทนผิวสีขาวเหลือง',\n '🧑🏻‍🫯‍🧑🏽' => 'นักมวยปล้ำ: โทนผิวสีขาว โทนผิวสีเหลือง',\n '🧑🏻‍🫯‍🧑🏾' => 'นักมวยปล้ำ: โทนผิวสีขาว โทนผิวสีแทน',\n '🧑🏻‍🫯‍🧑🏿' => 'นักมวยปล้ำ: โทนผิวสีขาว โทนผิวสีเข้ม',\n '🧑🏼‍🫯‍🧑🏻' => 'นักมวยปล้ำ: โทนผิวสีขาวเหลือง โทนผิวสีขาว',\n '🧑🏼‍🫯‍🧑🏽' => 'นักมวยปล้ำ: โทนผิวสีขาวเหลือง โทนผิวสีเหลือง',\n '🧑🏼‍🫯‍🧑🏾' => 'นักมวยปล้ำ: โทนผิวสีขาวเหลือง โทน", "suffix": "ทนผิวสีเหลือง โทนผิวสีแทน',\n '🧑🏽‍🫯‍🧑🏿' => 'นักมวยปล้ำ: โทนผิวสีเหลือง โทนผิวสีเข้ม',\n '🧑🏾‍🫯‍🧑🏻' => 'นักมวยปล้ำ: โทนผิวสีแทน โทนผิวสีขาว',\n '🧑🏾‍🫯‍🧑🏼' => 'นักมวยปล้ำ: โทนผิวสีแทน โทนผิวสีขาวเหลือง',\n '🧑🏾‍🫯‍🧑🏽' => 'นักมวยปล้ำ: โทนผิวสีแทน โทนผิวสี", "middle": "ผิวสีแทน',\n '🧑🏼‍🫯‍🧑🏿' => 'นักมวยปล้ำ: โทนผิวสีขาวเหลือง โทนผิวสีเข้ม',\n '🧑🏽‍🫯‍🧑🏻' => 'นักมวยปล้ำ: โทนผิวสีเหลือง โทนผิวสีขาว',\n '🧑🏽‍🫯‍🧑🏼' => 'นักมวยปล้ำ: โทนผิวสีเหลือง โทนผิวสีขาวเหลือง',\n '🧑🏽‍🫯‍🧑🏾' => 'นักมวยปล้ำ: โ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-th.php", "language": "php", "file_size": 341124, "cut_index": 7068, "middle_length": 229}} {"prefix": ", ngozi nyeupe kiasi na ngozi nyeusi',\n '👩🏽‍❤‍💋‍👩🏻' => 'busu: mwanamke, mwanamke, ngozi ya kahawia na ngozi nyeupe',\n '👩🏽‍❤‍💋‍👩🏼' => 'busu: mwanamke, mwanamke, ngozi ya kahawia na ngozi nyeupe kiasi',\n '👩🏽‍❤‍💋‍👩🏽' => 'busu: mwanamke, mwanamke na ngozi ya kahawia',\n '👩🏽‍❤‍💋‍👩🏾' => 'busu: mwanamke, mwanamke, ngozi ya kahawia na ngozi nyeusi kiasi',\n '👩🏽‍❤‍💋‍👩🏿' => 'busu: mwanamke, mwanamke, ngozi ya kahawia na ngozi nyeusi',\n '👩🏾‍❤‍💋‍👩🏻' => 'busu: mwanamke, mwanamke, ngozi nyeusi kiasi na ng", "suffix": "amke na ngozi nyeusi kiasi',\n '👩🏾‍❤‍💋‍👩🏿' => 'busu: mwanamke, mwanamke, ngozi nyeusi kiasi na ngozi nyeusi',\n '👩🏿‍❤‍💋‍👩🏻' => 'busu: mwanamke, mwanamke, ngozi nyeusi na ngozi nyeupe',\n '👩🏿‍❤‍💋‍👩🏼' => 'busu: mwanamke, mwanamke, ngozi nyeusi na ngozi", "middle": "ozi nyeupe',\n '👩🏾‍❤‍💋‍👩🏼' => 'busu: mwanamke, mwanamke, ngozi nyeusi kiasi na ngozi nyeupe kiasi',\n '👩🏾‍❤‍💋‍👩🏽' => 'busu: mwanamke, mwanamke, ngozi nyeusi kiasi na ngozi ya kahawia',\n '👩🏾‍❤‍💋‍👩🏾' => 'busu: mwanamke, mwan", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-sw.php", "language": "php", "file_size": 222182, "cut_index": 7068, "middle_length": 229}} {"prefix": "ارا ئاچ تېرە رەڭگى',\n '👨🏿‍❤‍💋‍👨🏽' => 'سۆيۈش: ئەر, ئەر, توق تېرە رەڭ, and ئارا تېرە رەڭگى',\n '👨🏿‍❤‍💋‍👨🏾' => 'سۆيۈش: ئەر, ئەر, توق تېرە رەڭ, and ئارا توق تېرە رەڭگى',\n '👨🏿‍❤‍💋‍👨🏿' => 'سۆيۈش: ئەر, ئەر, and توق تېرە رەڭ',\n '👩🏻‍❤‍💋‍👨🏻' => 'سۆيۈش: ئايال, ئەر, and ئاچ تېرە رەڭ',\n '👩🏻‍❤‍💋‍👨🏼' => 'سۆيۈش: ئايال, ئەر, ئاچ تېرە رەڭ, and ئارا ئاچ تېرە رەڭگى',\n '👩🏻‍❤‍💋‍👨🏽' => 'سۆيۈش: ئايال, ئەر, ئاچ تېرە رەڭ, and ئارا تېرە رەڭگى',\n '👩🏻‍❤‍💋‍👨🏾' => 'سۆيۈش: ئايال, ئەر, ئاچ تېرە رەڭ, and ئارا توق تېرە رە", "suffix": "‍❤‍💋‍👨🏽' => 'سۆيۈش: ئايال, ئەر, ئارا ئاچ تېرە رەڭگى, and ئارا تېرە رەڭگى',\n '👩🏼‍❤‍💋‍👨🏾' => 'سۆيۈش: ئايال, ئەر, ئارا ئاچ تېرە رەڭگى, and ئارا توق تېرە رەڭگى',\n '👩🏼‍❤‍💋‍👨🏿' => 'سۆيۈش: ئايال, ئەر, ئارا ئاچ تېرە رەڭگى, and توق تېرە رەڭ',\n '👩🏽‍❤‍💋‍👨🏻' ", "middle": "ڭگى',\n '👩🏻‍❤‍💋‍👨🏿' => 'سۆيۈش: ئايال, ئەر, ئاچ تېرە رەڭ, and توق تېرە رەڭ',\n '👩🏼‍❤‍💋‍👨🏻' => 'سۆيۈش: ئايال, ئەر, ئارا ئاچ تېرە رەڭگى, and ئاچ تېرە رەڭ',\n '👩🏼‍❤‍💋‍👨🏼' => 'سۆيۈش: ئايال, ئەر, and ئارا ئاچ تېرە رەڭگى',\n '👩🏼", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ug.php", "language": "php", "file_size": 208218, "cut_index": 3790, "middle_length": 229}} {"prefix": "an, orta goýy deri reňki, orta açyk deri reňki',\n '👩🏾‍❤‍💋‍👩🏽' => 'posa: zenan, zenan, orta goýy deri reňki, orta deri reňki',\n '👩🏾‍❤‍💋‍👩🏾' => 'posa: zenan, zenan, orta goýy deri reňki',\n '👩🏾‍❤‍💋‍👩🏿' => 'posa: zenan, zenan, orta goýy deri reňki, goýy deri reňki',\n '👩🏿‍❤‍💋‍👩🏻' => 'posa: zenan, zenan, goýy deri reňki, açyk deri reňki',\n '👩🏿‍❤‍💋‍👩🏼' => 'posa: zenan, zenan, goýy deri reňki, orta açyk deri reňki',\n '👩🏿‍❤‍💋‍👩🏽' => 'posa: zenan, zenan, goýy deri reňki, orta deri reňki',\n '👩🏿‍❤‍", "suffix": "eş tutýan adamlar: açyk deri reňki, orta deri reňki',\n '🧑🏻‍🫯‍🧑🏾' => 'göreş tutýan adamlar: açyk deri reňki, orta goýy deri reňki',\n '🧑🏻‍🫯‍🧑🏿' => 'göreş tutýan adamlar: açyk deri reňki, goýy deri reňki',\n '🧑🏼‍🫯‍🧑🏻' => 'göreş tutýan adamlar: orta aç", "middle": "💋‍👩🏾' => 'posa: zenan, zenan, goýy deri reňki, orta goýy deri reňki',\n '👩🏿‍❤‍💋‍👩🏿' => 'posa: zenan, zenan, goýy deri reňki',\n '🧑🏻‍🫯‍🧑🏼' => 'göreş tutýan adamlar: açyk deri reňki, orta açyk deri reňki',\n '🧑🏻‍🫯‍🧑🏽' => 'gör", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-tk.php", "language": "php", "file_size": 215122, "cut_index": 7068, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreAcquiringException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreExpiredException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreReleasingException;\nuse Symfony\\Component\\Semaphore\\Key;\nuse Symfony\\Component\\Semaphore\\PersistingStoreInterface;\nuse Symfony\\Component\\Semaphore\\Semaphore;\n\n/**\n * @au", "suffix": "re = $this->createMock(PersistingStoreInterface::class);\n $semaphore = new Semaphore($key, $store);\n\n $store\n ->expects($this->once())\n ->method('save')\n ->with($key, 300.0)\n ;\n\n $this->assertTru", "middle": "thor Jérémy Derussé \n * @author Grégoire Pineau \n */\nclass SemaphoreTest extends TestCase\n{\n public function testAcquireReturnsTrue()\n {\n $key = new Key('key', 1);\n $sto", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/SemaphoreTest.php", "language": "php", "file_size": 7888, "cut_index": 716, "middle_length": 229}} {"prefix": "presents a string of Unicode grapheme clusters encoded as UTF-8.\n *\n * A letter followed by combining characters (accents typically) form what Unicode defines\n * as a grapheme cluster: a character as humans mean it in written texts. This class knows\n * about the concept and won't split a letter apart from its combining accents. It also\n * ensures all string comparisons happen on their canonically-composed representation,\n * ignoring e.g. the order in which accents are listed when a letter has many of them.\n", "suffix": "ic function __construct(string $string = '')\n {\n if ('' === $string || normalizer_is_normalized($this->string = $string)) {\n return;\n }\n\n if (false === $string = normalizer_normalize($string)) {\n throw new Inva", "middle": " *\n * @see https://unicode.org/reports/tr15/\n *\n * @author Nicolas Grekas \n * @author Hugo Hamon \n *\n * @throws ExceptionInterface\n */\nclass UnicodeString extends AbstractUnicodeString\n{\n publ", "meta": {"filepath": "src/Symfony/Component/String/UnicodeString.php", "language": "php", "file_size": 13952, "cut_index": 921, "middle_length": 229}} {"prefix": "кіри',\n '👩🏽‍❤‍💋‍👨🏿' => 'чоловік і жінка, що цілуються: жінка, чоловік, помірний тон шкіри і темний тон шкіри',\n '👩🏾‍❤‍💋‍👨🏻' => 'чоловік і жінка, що цілуються: жінка, чоловік, помірно темний тон шкіри і світлий тон шкіри',\n '👩🏾‍❤‍💋‍👨🏼' => 'чоловік і жінка, що цілуються: жінка, чоловік, помірно темний тон шкіри і помірно світлий тон шкіри',\n '👩🏾‍❤‍💋‍👨🏽' => 'чоловік і жінка, що цілуються: жінка, чоловік, помірно темний тон шкіри і помірний тон шкіри',\n '👩🏾‍❤‍💋‍👨🏾' => 'чоловік і жінка, що цілують", "suffix": "емний тон шкіри і світлий тон шкіри',\n '👩🏿‍❤‍💋‍👨🏼' => 'чоловік і жінка, що цілуються: жінка, чоловік, темний тон шкіри і помірно світлий тон шкіри',\n '👩🏿‍❤‍💋‍👨🏽' => 'чоловік і жінка, що цілуються: жінка, чоловік, темний тон шкіри і помірний тон шкіри", "middle": "ся: жінка, чоловік і помірно темний тон шкіри',\n '👩🏾‍❤‍💋‍👨🏿' => 'чоловік і жінка, що цілуються: жінка, чоловік, помірно темний тон шкіри і темний тон шкіри',\n '👩🏿‍❤‍💋‍👨🏻' => 'чоловік і жінка, що цілуються: жінка, чоловік, т", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-uk.php", "language": "php", "file_size": 332154, "cut_index": 7068, "middle_length": 229}} {"prefix": "ri',\n '👩🏿‍❤‍💋‍👩🏻' => 'bo‘sa olish: ayol ayol 6-teri turi 1–2-teri turi',\n '👩🏿‍❤‍💋‍👩🏼' => 'bo‘sa olish: ayol ayol 6-teri turi 3-teri turi',\n '👩🏿‍❤‍💋‍👩🏽' => 'bo‘sa olish: ayol ayol 6-teri turi 4-teri turi',\n '👩🏿‍❤‍💋‍👩🏾' => 'bo‘sa olish: ayol ayol 6-teri turi 5-teri turi',\n '👩🏿‍❤‍💋‍👩🏿' => 'bo‘sa olish: ayol ayol 6-teri turi',\n '🧑🏻‍🫯‍🧑🏼' => 'kurashchilar: 1–2-teri turi 3-teri turi',\n '🧑🏻‍🫯‍🧑🏽' => 'kurashchilar: 1–2-teri turi 4-teri turi',\n '🧑🏻‍🫯‍🧑🏾' => 'kurashchilar: 1–2-teri turi 5-teri", "suffix": " 5-teri turi',\n '🧑🏼‍🫯‍🧑🏿' => 'kurashchilar: 3-teri turi 6-teri turi',\n '🧑🏽‍🫯‍🧑🏻' => 'kurashchilar: 4-teri turi 1–2-teri turi',\n '🧑🏽‍🫯‍🧑🏼' => 'kurashchilar: 4-teri turi 3-teri turi',\n '🧑🏽‍🫯‍🧑🏾' => 'kurashchilar: 4-teri turi 5-teri turi',\n '🧑🏽", "middle": " turi',\n '🧑🏻‍🫯‍🧑🏿' => 'kurashchilar: 1–2-teri turi 6-teri turi',\n '🧑🏼‍🫯‍🧑🏻' => 'kurashchilar: 3-teri turi 1–2-teri turi',\n '🧑🏼‍🫯‍🧑🏽' => 'kurashchilar: 3-teri turi 4-teri turi',\n '🧑🏼‍🫯‍🧑🏾' => 'kurashchilar: 3-teri turi", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-uz.php", "language": "php", "file_size": 199185, "cut_index": 7068, "middle_length": 229}} {"prefix": "màu da trung bình',\n '👩🏽‍❤‍💋‍👩🏾' => 'nụ hôn: phụ nữ, phụ nữ, màu da trung bình, màu da tối trung bình',\n '👩🏽‍❤‍💋‍👩🏿' => 'nụ hôn: phụ nữ, phụ nữ, màu da trung bình, màu da tối',\n '👩🏾‍❤‍💋‍👩🏻' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối trung bình, màu da sáng',\n '👩🏾‍❤‍💋‍👩🏼' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối trung bình, màu da sáng trung bình',\n '👩🏾‍❤‍💋‍👩🏽' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối trung bình, màu da trung bình',\n '👩🏾‍❤‍💋‍👩🏾' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối trung bình',\n ", "suffix": "\n '👩🏿‍❤‍💋‍👩🏽' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối, màu da trung bình',\n '👩🏿‍❤‍💋‍👩🏾' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối, màu da tối trung bình',\n '👩🏿‍❤‍💋‍👩🏿' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối',\n '🧑🏻‍🫯‍🧑🏼' => 'người chơi vật: màu da s", "middle": " '👩🏾‍❤‍💋‍👩🏿' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối trung bình, màu da tối',\n '👩🏿‍❤‍💋‍👩🏻' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối, màu da sáng',\n '👩🏿‍❤‍💋‍👩🏼' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối, màu da sáng trung bình',", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-vi.php", "language": "php", "file_size": 239129, "cut_index": 7068, "middle_length": 229}} {"prefix": " '👩🏽‍❤‍💋‍👨🏿' => 'phuza: ibhinqa, indoda, ithoni yesikhumba esiphakathi, ithoni yesikhumba emnyama',\n '👩🏾‍❤‍💋‍👨🏻' => 'phuza: ibhinqa, indoda, ithoni yesikhumba esiphakathi mnyama, ithoni yesikhumba esikhanyayo',\n '👩🏾‍❤‍💋‍👨🏼' => 'phuza: ibhinqa, indoda, ithoni yesikhumba esiphakathi mnyama, ithoni yesikhumba esikhanyayo phakathi',\n '👩🏾‍❤‍💋‍👨🏽' => 'phuza: ibhinqa, indoda, ithoni yesikhumba esiphakathi mnyama, ithoni yesikhumba esiphakathi',\n '👩🏾‍❤‍💋‍👨🏾' => 'phuza: ibhinqa, indoda, ithoni yesikhu", "suffix": "anyayo',\n '👩🏿‍❤‍💋‍👨🏼' => 'phuza: ibhinqa, indoda, ithoni yesikhumba emnyama, ithoni yesikhumba esikhanyayo phakathi',\n '👩🏿‍❤‍💋‍👨🏽' => 'phuza: ibhinqa, indoda, ithoni yesikhumba emnyama, ithoni yesikhumba esiphakathi',\n '👩🏿‍❤‍💋‍👨🏾' => 'phuza: ibhin", "middle": "mba esiphakathi mnyama',\n '👩🏾‍❤‍💋‍👨🏿' => 'phuza: ibhinqa, indoda, ithoni yesikhumba esiphakathi mnyama, ithoni yesikhumba emnyama',\n '👩🏿‍❤‍💋‍👨🏻' => 'phuza: ibhinqa, indoda, ithoni yesikhumba emnyama, ithoni yesikhumba esikh", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-xh.php", "language": "php", "file_size": 191852, "cut_index": 7068, "middle_length": 229}} {"prefix": "ẹ̀',\n '👩🏿‍❤‍💋‍👩🏽' => 'Ifẹnuko: Obìnrin, Obìnrin, adúláwọ̀, amọ́láwọ̀ díẹ̀',\n '👩🏿‍❤‍💋‍👩🏾' => 'Ifẹnuko: Obìnrin, Obìnrin, adúláwọ̀, adúláwọ̀ díẹ̀',\n '👩🏿‍❤‍💋‍👩🏿' => 'Ifẹnuko: Obìnrin, Obìnrin, adúláwọ̀',\n '🧑🏻‍🫯‍🧑🏼' => 'Awọn Onigidigbo: amọ́lára àtiamọ́lára díẹ̀',\n '🧑🏻‍🫯‍🧑🏽' => 'Awọn Onigidigbo: amọ́lára àtiamọ́láwọ̀ díẹ̀',\n '🧑🏻‍🫯‍🧑🏾' => 'Awọn Onigidigbo: amọ́lára àtiadúláwọ̀ díẹ̀',\n '🧑🏻‍🫯‍🧑🏿' => 'Awọn Onigidigbo: amọ́lára àtiadúláwọ̀',\n '🧑🏼‍🫯‍🧑🏻' => 'Awọn Onigidigbo: amọ́lára díẹ̀ àtiam", "suffix": "ọn Onigidigbo: amọ́láwọ̀ díẹ̀ àtiamọ́lára',\n '🧑🏽‍🫯‍🧑🏼' => 'Awọn Onigidigbo: amọ́láwọ̀ díẹ̀ àtiamọ́lára díẹ̀',\n '🧑🏽‍🫯‍🧑🏾' => 'Awọn Onigidigbo: amọ́láwọ̀ díẹ̀ àtiadúláwọ̀ díẹ̀',\n '🧑🏽‍🫯‍🧑🏿' => 'Awọn Onigidigbo: amọ́láwọ̀ díẹ̀ àtiadúláwọ̀',\n '🧑🏾‍🫯‍", "middle": "ọ́lára',\n '🧑🏼‍🫯‍🧑🏽' => 'Awọn Onigidigbo: amọ́lára díẹ̀ àtiamọ́láwọ̀ díẹ̀',\n '🧑🏼‍🫯‍🧑🏾' => 'Awọn Onigidigbo: amọ́lára díẹ̀ àtiadúláwọ̀ díẹ̀',\n '🧑🏼‍🫯‍🧑🏿' => 'Awọn Onigidigbo: amọ́lára díẹ̀ àtiadúláwọ̀',\n '🧑🏽‍🫯‍🧑🏻' => 'Aw", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-yo.php", "language": "php", "file_size": 242937, "cut_index": 7068, "middle_length": 229}} {"prefix": "=> '吻: 女人 女人 中肤色 中深肤色',\n '👩🏽‍❤‍💋‍👩🏿' => '吻: 女人 女人 中肤色 深肤色',\n '👩🏾‍❤‍💋‍👩🏻' => '吻: 女人 女人 中深肤色 浅肤色',\n '👩🏾‍❤‍💋‍👩🏼' => '吻: 女人 女人 中深肤色 中浅肤色',\n '👩🏾‍❤‍💋‍👩🏽' => '吻: 女人 女人 中深肤色 中肤色',\n '👩🏾‍❤‍💋‍👩🏾' => '吻: 女人 女人 中深肤色',\n '👩🏾‍❤‍💋‍👩🏿' => '吻: 女人 女人 中深肤色 深肤色',\n '👩🏿‍❤‍💋‍👩🏻' => '吻: 女人 女人 深肤色 浅肤色',\n '👩🏿‍❤‍💋‍👩🏼' => '吻: 女人 女人 深肤色 中浅肤色',\n '👩🏿‍❤‍💋‍👩🏽' => '吻: 女人 女人 深肤色 中肤色',\n '👩🏿‍❤‍💋‍👩🏾' => '吻: 女人 女人 深肤色 中深肤色',\n '👩🏿‍❤‍💋‍👩🏿' => '吻: 女人 女人 深肤色',\n '🧑🏻‍🫯‍🧑🏼' => '摔交嘅人: 浅肤色 中浅肤色',\n '🧑🏻‍🫯‍🧑🏽' => '摔交嘅人: ", "suffix": "‍🧑🏻' => '摔交嘅人: 中肤色 浅肤色',\n '🧑🏽‍🫯‍🧑🏼' => '摔交嘅人: 中肤色 中浅肤色',\n '🧑🏽‍🫯‍🧑🏾' => '摔交嘅人: 中肤色 中深肤色',\n '🧑🏽‍🫯‍🧑🏿' => '摔交嘅人: 中肤色 深肤色',\n '🧑🏾‍🫯‍🧑🏻' => '摔交嘅人: 中深肤色 浅肤色',\n '🧑🏾‍🫯‍🧑🏼' => '摔交嘅人: 中深肤色 中浅肤色',\n '🧑🏾‍🫯‍🧑🏽' => '摔交嘅人: 中深肤色 中肤色',\n '🧑🏾‍🫯‍🧑🏿' => '摔交嘅", "middle": "浅肤色 中肤色',\n '🧑🏻‍🫯‍🧑🏾' => '摔交嘅人: 浅肤色 中深肤色',\n '🧑🏻‍🫯‍🧑🏿' => '摔交嘅人: 浅肤色 深肤色',\n '🧑🏼‍🫯‍🧑🏻' => '摔交嘅人: 中浅肤色 浅肤色',\n '🧑🏼‍🫯‍🧑🏽' => '摔交嘅人: 中浅肤色 中肤色',\n '🧑🏼‍🫯‍🧑🏾' => '摔交嘅人: 中浅肤色 中深肤色',\n '🧑🏼‍🫯‍🧑🏿' => '摔交嘅人: 中浅肤色 深肤色',\n '🧑🏽‍🫯", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-yue_hans.php", "language": "php", "file_size": 178464, "cut_index": 3790, "middle_length": 229}} {"prefix": "🏼' => '親:女人 女人 褐皮膚 黃皮膚',\n '👩🏾‍❤‍💋‍👩🏽' => '親:女人 女人 褐皮膚 淺褐皮膚',\n '👩🏾‍❤‍💋‍👩🏾' => '親:女人 女人 褐皮膚',\n '👩🏾‍❤‍💋‍👩🏿' => '親:女人 女人 褐皮膚 黑皮膚',\n '👩🏿‍❤‍💋‍👩🏻' => '親:女人 女人 黑皮膚 白皮膚',\n '👩🏿‍❤‍💋‍👩🏼' => '親:女人 女人 黑皮膚 黃皮膚',\n '👩🏿‍❤‍💋‍👩🏽' => '親:女人 女人 黑皮膚 淺褐皮膚',\n '👩🏿‍❤‍💋‍👩🏾' => '親:女人 女人 黑皮膚 褐皮膚',\n '👩🏿‍❤‍💋‍👩🏿' => '親:女人 女人 黑皮膚',\n '🧑🏻‍🫯‍🧑🏼' => '摔角手:白皮膚 黃皮膚',\n '🧑🏻‍🫯‍🧑🏽' => '摔角手:白皮膚 淺褐皮膚',\n '🧑🏻‍🫯‍🧑🏾' => '摔角手:白皮膚 褐皮膚',\n '🧑🏻‍🫯‍🧑🏿' => '摔角手:白皮膚 黑皮膚',\n '🧑🏼‍🫯‍🧑🏻' => '摔角手:黃皮膚 白皮膚',\n '🧑🏼‍🫯‍🧑🏽' => '摔角手:黃皮膚 淺褐", "suffix": "膚',\n '🧑🏾‍🫯‍🧑🏼' => '摔角手:褐皮膚 黃皮膚',\n '🧑🏾‍🫯‍🧑🏽' => '摔角手:褐皮膚 淺褐皮膚',\n '🧑🏾‍🫯‍🧑🏿' => '摔角手:褐皮膚 黑皮膚',\n '🧑🏿‍🫯‍🧑🏻' => '摔角手:黑皮膚 白皮膚',\n '🧑🏿‍🫯‍🧑🏼' => '摔角手:黑皮膚 黃皮膚',\n '🧑🏿‍🫯‍🧑🏽' => '摔角手:黑皮膚 淺褐皮膚',\n '🧑🏿‍🫯‍🧑🏾' => '摔角手:黑皮膚 褐皮膚',\n '🧑🏻‍❤‍🧑🏼' => '相愛:大人 大人", "middle": "皮膚',\n '🧑🏼‍🫯‍🧑🏾' => '摔角手:黃皮膚 褐皮膚',\n '🧑🏼‍🫯‍🧑🏿' => '摔角手:黃皮膚 黑皮膚',\n '🧑🏽‍🫯‍🧑🏻' => '摔角手:淺褐皮膚 白皮膚',\n '🧑🏽‍🫯‍🧑🏼' => '摔角手:淺褐皮膚 黃皮膚',\n '🧑🏽‍🫯‍🧑🏾' => '摔角手:淺褐皮膚 褐皮膚',\n '🧑🏽‍🫯‍🧑🏿' => '摔角手:淺褐皮膚 黑皮膚',\n '🧑🏾‍🫯‍🧑🏻' => '摔角手:褐皮膚 白皮", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-zh_hant.php", "language": "php", "file_size": 171440, "cut_index": 3790, "middle_length": 229}} {"prefix": "akela: uhlobo-3, uhlobo-1-2',\n '🧑🏼‍🫯‍🧑🏽' => 'abashayi-sibhakela: uhlobo-3, uhlobo-4',\n '🧑🏼‍🫯‍🧑🏾' => 'abashayi-sibhakela: uhlobo-3, uhlobo-5',\n '🧑🏼‍🫯‍🧑🏿' => 'abashayi-sibhakela: uhlobo-3, uhlobo-6',\n '🧑🏽‍🫯‍🧑🏻' => 'abashayi-sibhakela: uhlobo-4, uhlobo-1-2',\n '🧑🏽‍🫯‍🧑🏼' => 'abashayi-sibhakela: uhlobo-4, uhlobo-3',\n '🧑🏽‍🫯‍🧑🏾' => 'abashayi-sibhakela: uhlobo-4, uhlobo-5',\n '🧑🏽‍🫯‍🧑🏿' => 'abashayi-sibhakela: uhlobo-4, uhlobo-6',\n '🧑🏾‍🫯‍🧑🏻' => 'abashayi-sibhakela: uhlobo-5, uhlobo-1-2',\n '🧑", "suffix": "',\n '🧑🏿‍🫯‍🧑🏼' => 'abashayi-sibhakela: uhlobo-6, uhlobo-3',\n '🧑🏿‍🫯‍🧑🏽' => 'abashayi-sibhakela: uhlobo-6, uhlobo-4',\n '🧑🏿‍🫯‍🧑🏾' => 'abashayi-sibhakela: uhlobo-6, uhlobo-5',\n '🧑🏻‍❤‍🧑🏼' => 'izithandani ezinenhliziyo: mdala, mdala, uhlobo-1-2, uhlob", "middle": "🏾‍🫯‍🧑🏼' => 'abashayi-sibhakela: uhlobo-5, uhlobo-3',\n '🧑🏾‍🫯‍🧑🏽' => 'abashayi-sibhakela: uhlobo-5, uhlobo-4',\n '🧑🏾‍🫯‍🧑🏿' => 'abashayi-sibhakela: uhlobo-5, uhlobo-6',\n '🧑🏿‍🫯‍🧑🏻' => 'abashayi-sibhakela: uhlobo-6, uhlobo-1-2", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-zu.php", "language": "php", "file_size": 192395, "cut_index": 7068, "middle_length": 229}} {"prefix": "_flags:' => '🎌',\n ':crown:' => '👑',\n ':crutch:' => '🩼',\n ':cry:' => '😢',\n ':crying_cat_face:' => '😿',\n ':crystal_ball:' => '🔮',\n ':cucumber:' => '🥒',\n ':cup_with_straw:' => '🥤',\n ':cupcake:' => '🧁',\n ':cupid:' => '💘',\n ':curling_stone:' => '🥌',\n ':curly_hair:' => '🦱',\n ':curly_loop:' => '➰',\n ':currency_exchange:' => '💱',\n ':curry:' => '🍛',\n ':custard:' => '🍮',\n ':customs:' => '🛃',\n ':cut_of_meat:' => '🥩',\n ':cyclone:' => '🌀',\n ':dancer:' => '💃',\n ", "suffix": "nd_shape_with_a_dot_inside:' => '💠',\n ':disappointed:' => '😞',\n ':disappointed_relieved:' => '😥',\n ':disguised_face:' => '🥸',\n ':diving_mask:' => '🤿',\n ':diya_lamp:' => '🪔',\n ':dizzy:' => '💫',\n ':dizzy_face:' => '😵',\n ':dna:' => '🧬'", "middle": "':dancers:' => '👯',\n ':dango:' => '🍡',\n ':dart:' => '🎯',\n ':dash:' => '💨',\n ':date:' => '📅',\n ':deaf_person:' => '🧏',\n ':deciduous_tree:' => '🌳',\n ':deer:' => '🦌',\n ':department_store:' => '🏬',\n ':diamo", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/gitlab-emoji.php", "language": "php", "file_size": 183161, "cut_index": 7068, "middle_length": 229}} {"prefix": "ی درمیانی -ہلکی رنگت، اور جلد کی سیاہ رنگت',\n '👩🏽‍❤‍💋‍👩🏻' => 'بوسہ: عورت، عورت، جلد کی درمیانی رنگت، اور جلد کی ہلکی رنگت',\n '👩🏽‍❤‍💋‍👩🏼' => 'بوسہ: عورت، عورت، جلد کی درمیانی رنگت، اور جلد کی درمیانی -ہلکی رنگت',\n '👩🏽‍❤‍💋‍👩🏽' => 'بوسہ: عورت، عورت، اور جلد کی درمیانی رنگت',\n '👩🏽‍❤‍💋‍👩🏾' => 'بوسہ: عورت، عورت، جلد کی درمیانی رنگت، اور جلد کی درمیانی سیاہ رنگت',\n '👩🏽‍❤‍💋‍👩🏿' => 'بوسہ: عورت، عورت، جلد کی درمیانی رنگت، اور جلد کی سیاہ رنگت',\n '👩🏾‍❤‍💋‍👩🏻' => 'بوسہ: عورت، عورت، جلد کی درمیانی سیاہ ", "suffix": "' => 'بوسہ: عورت، عورت، اور جلد کی درمیانی سیاہ رنگت',\n '👩🏾‍❤‍💋‍👩🏿' => 'بوسہ: عورت، عورت، جلد کی درمیانی سیاہ رنگت، اور جلد کی سیاہ رنگت',\n '👩🏿‍❤‍💋‍👩🏻' => 'بوسہ: عورت، عورت، جلد کی سیاہ رنگت، اور جلد کی ہلکی رنگت',\n '👩🏿‍❤‍💋‍👩🏼' => 'بوسہ: عورت، عور", "middle": "رنگت، اور جلد کی ہلکی رنگت',\n '👩🏾‍❤‍💋‍👩🏼' => 'بوسہ: عورت، عورت، جلد کی درمیانی سیاہ رنگت، اور جلد کی درمیانی -ہلکی رنگت',\n '👩🏾‍❤‍💋‍👩🏽' => 'بوسہ: عورت، عورت، جلد کی درمیانی سیاہ رنگت، اور جلد کی درمیانی رنگت',\n '👩🏾‍❤‍💋‍👩🏾", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ur.php", "language": "php", "file_size": 302978, "cut_index": 7068, "middle_length": 229}} {"prefix": "eereer, xeesaayu der bu xawa ñuul',\n '👩🏼‍❤‍💋‍👩🏿' => 'fóon: jigéen, jigéen, xeesaayu der bu xeereer, xeesaayu der bu ñuul',\n '👩🏽‍❤‍💋‍👩🏻' => 'fóon: jigéen, jigéen, xeesaayu der bu yam, xeesaayu der bu woyof',\n '👩🏽‍❤‍💋‍👩🏼' => 'fóon: jigéen, jigéen, xeesaayu der bu yam, xeesaayu der bu xeereer',\n '👩🏽‍❤‍💋‍👩🏽' => 'fóon: jigéen, jigéen, xeesaayu der bu yam',\n '👩🏽‍❤‍💋‍👩🏾' => 'fóon: jigéen, jigéen, xeesaayu der bu yam, xeesaayu der bu xawa ñuul',\n '👩🏽‍❤‍💋‍👩🏿' => 'fóon: jigéen, jigéen, xeesaayu der ", "suffix": "💋‍👩🏽' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul, xeesaayu der bu yam',\n '👩🏾‍❤‍💋‍👩🏾' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul',\n '👩🏾‍❤‍💋‍👩🏿' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul, xeesaayu der bu ñuul',\n '👩🏿‍❤‍💋‍👩", "middle": "bu yam, xeesaayu der bu ñuul',\n '👩🏾‍❤‍💋‍👩🏻' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul, xeesaayu der bu woyof',\n '👩🏾‍❤‍💋‍👩🏼' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul, xeesaayu der bu xeereer',\n '👩🏾‍❤‍", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-wo.php", "language": "php", "file_size": 165025, "cut_index": 7068, "middle_length": 229}} {"prefix": "=> '吻: 女人 女人 中膚色 中深膚色',\n '👩🏽‍❤‍💋‍👩🏿' => '吻: 女人 女人 中膚色 深膚色',\n '👩🏾‍❤‍💋‍👩🏻' => '吻: 女人 女人 中深膚色 淺膚色',\n '👩🏾‍❤‍💋‍👩🏼' => '吻: 女人 女人 中深膚色 中淺膚色',\n '👩🏾‍❤‍💋‍👩🏽' => '吻: 女人 女人 中深膚色 中膚色',\n '👩🏾‍❤‍💋‍👩🏾' => '吻: 女人 女人 中深膚色',\n '👩🏾‍❤‍💋‍👩🏿' => '吻: 女人 女人 中深膚色 深膚色',\n '👩🏿‍❤‍💋‍👩🏻' => '吻: 女人 女人 深膚色 淺膚色',\n '👩🏿‍❤‍💋‍👩🏼' => '吻: 女人 女人 深膚色 中淺膚色',\n '👩🏿‍❤‍💋‍👩🏽' => '吻: 女人 女人 深膚色 中膚色',\n '👩🏿‍❤‍💋‍👩🏾' => '吻: 女人 女人 深膚色 中深膚色',\n '👩🏿‍❤‍💋‍👩🏿' => '吻: 女人 女人 深膚色',\n '🧑🏻‍🫯‍🧑🏼' => '摔跤嘅人: 淺膚色 中淺膚色',\n '🧑🏻‍🫯‍🧑🏽' => '摔跤嘅人: ", "suffix": "‍🧑🏻' => '摔跤嘅人: 中膚色 淺膚色',\n '🧑🏽‍🫯‍🧑🏼' => '摔跤嘅人: 中膚色 中淺膚色',\n '🧑🏽‍🫯‍🧑🏾' => '摔跤嘅人: 中膚色 中深膚色',\n '🧑🏽‍🫯‍🧑🏿' => '摔跤嘅人: 中膚色 深膚色',\n '🧑🏾‍🫯‍🧑🏻' => '摔跤嘅人: 中深膚色 淺膚色',\n '🧑🏾‍🫯‍🧑🏼' => '摔跤嘅人: 中深膚色 中淺膚色',\n '🧑🏾‍🫯‍🧑🏽' => '摔跤嘅人: 中深膚色 中膚色',\n '🧑🏾‍🫯‍🧑🏿' => '摔跤嘅", "middle": "淺膚色 中膚色',\n '🧑🏻‍🫯‍🧑🏾' => '摔跤嘅人: 淺膚色 中深膚色',\n '🧑🏻‍🫯‍🧑🏿' => '摔跤嘅人: 淺膚色 深膚色',\n '🧑🏼‍🫯‍🧑🏻' => '摔跤嘅人: 中淺膚色 淺膚色',\n '🧑🏼‍🫯‍🧑🏽' => '摔跤嘅人: 中淺膚色 中膚色',\n '🧑🏼‍🫯‍🧑🏾' => '摔跤嘅人: 中淺膚色 中深膚色',\n '🧑🏼‍🫯‍🧑🏿' => '摔跤嘅人: 中淺膚色 深膚色',\n '🧑🏽‍🫯", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-yue.php", "language": "php", "file_size": 178464, "cut_index": 3790, "middle_length": 229}} {"prefix": "膚',\n '👩🏻‍❤‍💋‍👩🏿' => '錫緊嘅一男一女:女人 女人 白皮膚 黑皮膚',\n '👩🏼‍❤‍💋‍👩🏻' => '錫緊嘅一男一女:女人 女人 黃皮膚 白皮膚',\n '👩🏼‍❤‍💋‍👩🏼' => '錫緊嘅一男一女:女人 女人 黃皮膚',\n '👩🏼‍❤‍💋‍👩🏽' => '錫緊嘅一男一女:女人 女人 黃皮膚 中等皮膚',\n '👩🏼‍❤‍💋‍👩🏾' => '錫緊嘅一男一女:女人 女人 黃皮膚 中深皮膚',\n '👩🏼‍❤‍💋‍👩🏿' => '錫緊嘅一男一女:女人 女人 黃皮膚 黑皮膚',\n '👩🏽‍❤‍💋‍👩🏻' => '錫緊嘅一男一女:女人 女人 中等皮膚 白皮膚',\n '👩🏽‍❤‍💋‍👩🏼' => '錫緊嘅一男一女:女人 女人 中等皮膚 黃皮膚',\n '👩🏽‍❤‍💋‍👩🏽' => '錫緊嘅一男一女:女人 女人 中等皮膚',\n '👩🏽‍❤‍💋‍👩🏾' => '錫緊嘅一男一女:女人 女人 中等皮膚 中深皮膚',\n '👩🏽‍❤‍💋‍👩🏿' => '錫緊嘅一男一女:女人 女人 中等皮膚 黑皮膚',\n '👩🏾‍❤‍💋‍👩🏻' => '錫緊嘅一", "suffix": "女人 黑皮膚 白皮膚',\n '👩🏿‍❤‍💋‍👩🏼' => '錫緊嘅一男一女:女人 女人 黑皮膚 黃皮膚',\n '👩🏿‍❤‍💋‍👩🏽' => '錫緊嘅一男一女:女人 女人 黑皮膚 中等皮膚',\n '👩🏿‍❤‍💋‍👩🏾' => '錫緊嘅一男一女:女人 女人 黑皮膚 中深皮膚',\n '👩🏿‍❤‍💋‍👩🏿' => '錫緊嘅一男一女:女人 女人 黑皮膚',\n '🧑🏻‍🫯‍🧑🏼' => '摔角選手:白皮膚 黃皮膚',\n '🧑🏻‍🫯‍🧑🏽' => '摔角選手:白皮膚 中等皮膚',\n ", "middle": "男一女:女人 女人 中深皮膚 白皮膚',\n '👩🏾‍❤‍💋‍👩🏼' => '錫緊嘅一男一女:女人 女人 中深皮膚 黃皮膚',\n '👩🏾‍❤‍💋‍👩🏽' => '錫緊嘅一男一女:女人 女人 中深皮膚 中等皮膚',\n '👩🏾‍❤‍💋‍👩🏾' => '錫緊嘅一男一女:女人 女人 中深皮膚',\n '👩🏾‍❤‍💋‍👩🏿' => '錫緊嘅一男一女:女人 女人 中深皮膚 黑皮膚',\n '👩🏿‍❤‍💋‍👩🏻' => '錫緊嘅一男一女:女人 ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-zh_hant_hk.php", "language": "php", "file_size": 181176, "cut_index": 3790, "middle_length": 229}} {"prefix": "'🐈‍⬛',\n ':blond_haired_man:' => '👱‍♂',\n ':blonde_woman:' => '👱‍♀',\n ':bowing_man:' => '🙇‍♂',\n ':bowing_woman:' => '🙇‍♀',\n ':woman_with_veil:' => '👰‍♀',\n ':climbing_man:' => '🧗‍♂',\n ':climbing_woman:' => '🧗‍♀',\n ':construction_worker_man:' => '👷‍♂',\n ':construction_worker_woman:' => '👷‍♀',\n ':cook:' => '🧑‍🍳',\n ':curly_haired_man:' => '👨‍🦱',\n ':curly_haired_woman:' => '👩‍🦱',\n ':dancing_men:' => '👯‍♂',\n ':dancing_women:' => '👯‍♀',\n ':deaf_man:' => '🧏‍♂',\n ':deaf_", "suffix": "rker:' => '🧑‍🏭',\n ':fairy_man:' => '🧚‍♂',\n ':fairy_woman:' => '🧚‍♀',\n ':family_man_boy:' => '👨‍👦',\n ':family_man_girl:' => '👨‍👧',\n ':family_woman_boy:' => '👩‍👦',\n ':family_woman_girl:' => '👩‍👧',\n ':farmer:' => '🧑‍🌾',\n ':female_detec", "middle": "woman:' => '🧏‍♀',\n ':elf_man:' => '🧝‍♂',\n ':elf_woman:' => '🧝‍♀',\n ':eye_speech_bubble:' => '👁‍🗨',\n ':face_exhaling:' => '😮‍💨',\n ':face_in_clouds:' => '😶‍🌫',\n ':face_with_spiral_eyes:' => '😵‍💫',\n ':factory_wo", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/github-emoji.php", "language": "php", "file_size": 59267, "cut_index": 2151, "middle_length": 229}} {"prefix": "rter\\VarExporter;\n\nBuilder::cleanTarget();\n$emojisCodePoints = Builder::getEmojisCodePoints();\nBuilder::saveRules(Builder::buildRules($emojisCodePoints));\nBuilder::saveRules(Builder::buildStripRules($emojisCodePoints));\n\n$emojiMaps = ['slack', 'github', 'gitlab'];\n\nforeach ($emojiMaps as $map) {\n $maps = Builder::{\"build{$map}Maps\"}($emojisCodePoints);\n Builder::saveRules(array_combine([\"emoji-$map\", \"$map-emoji\"], Builder::createRules($maps, true)));\n}\n\nBuilder::saveRules(Builder::buildTextRules($emo", "suffix": " $emojisCodePoints = [];\n foreach ($lines as $line) {\n $line = trim($line);\n if (!$line || str_starts_with($line, '#')) {\n continue;\n }\n\n // 263A FE0F ; fully-qualified # ☺️ E0.6 s", "middle": "jisCodePoints, $emojiMaps));\n\nfinal class Builder\n{\n private const TARGET_DIR = __DIR__.'/../data/';\n\n public static function getEmojisCodePoints(): array\n {\n $lines = file(__DIR__.'/vendor/emoji-test.txt');\n\n ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/bin/build.php", "language": "php", "file_size": 9237, "cut_index": 921, "middle_length": 229}} {"prefix": ": kadın kadın orta koyu cilt tonu orta cilt tonu',\n '👩🏾‍❤‍💋‍👩🏾' => 'öpücük: kadın kadın orta koyu cilt tonu',\n '👩🏾‍❤‍💋‍👩🏿' => 'öpücük: kadın kadın orta koyu cilt tonu koyu cilt tonu',\n '👩🏿‍❤‍💋‍👩🏻' => 'öpücük: kadın kadın koyu cilt tonu açık cilt tonu',\n '👩🏿‍❤‍💋‍👩🏼' => 'öpücük: kadın kadın koyu cilt tonu orta açık cilt tonu',\n '👩🏿‍❤‍💋‍👩🏽' => 'öpücük: kadın kadın koyu cilt tonu orta cilt tonu',\n '👩🏿‍❤‍💋‍👩🏾' => 'öpücük: kadın kadın koyu cilt tonu orta koyu cilt tonu',\n '👩🏿‍❤‍💋‍👩🏿' => 'öpüc", "suffix": "yu cilt tonu',\n '🧑🏻‍🫯‍🧑🏿' => 'güreşen kişiler: açık cilt tonu koyu cilt tonu',\n '🧑🏼‍🫯‍🧑🏻' => 'güreşen kişiler: orta açık cilt tonu açık cilt tonu',\n '🧑🏼‍🫯‍🧑🏽' => 'güreşen kişiler: orta açık cilt tonu orta cilt tonu',\n '🧑🏼‍🫯‍🧑🏾' => 'güreşen kişi", "middle": "ük: kadın kadın koyu cilt tonu',\n '🧑🏻‍🫯‍🧑🏼' => 'güreşen kişiler: açık cilt tonu orta açık cilt tonu',\n '🧑🏻‍🫯‍🧑🏽' => 'güreşen kişiler: açık cilt tonu orta cilt tonu',\n '🧑🏻‍🫯‍🧑🏾' => 'güreşen kişiler: açık cilt tonu orta ko", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-tr.php", "language": "php", "file_size": 209946, "cut_index": 7068, "middle_length": 229}} {"prefix": "色中等-浅肤色',\n '👩🏽‍❤‍💋‍👩🏽' => '亲吻: 女人女人中等肤色',\n '👩🏽‍❤‍💋‍👩🏾' => '亲吻: 女人女人中等肤色中等-深肤色',\n '👩🏽‍❤‍💋‍👩🏿' => '亲吻: 女人女人中等肤色较深肤色',\n '👩🏾‍❤‍💋‍👩🏻' => '亲吻: 女人女人中等-深肤色较浅肤色',\n '👩🏾‍❤‍💋‍👩🏼' => '亲吻: 女人女人中等-深肤色中等-浅肤色',\n '👩🏾‍❤‍💋‍👩🏽' => '亲吻: 女人女人中等-深肤色中等肤色',\n '👩🏾‍❤‍💋‍👩🏾' => '亲吻: 女人女人中等-深肤色',\n '👩🏾‍❤‍💋‍👩🏿' => '亲吻: 女人女人中等-深肤色较深肤色',\n '👩🏿‍❤‍💋‍👩🏻' => '亲吻: 女人女人较深肤色较浅肤色',\n '👩🏿‍❤‍💋‍👩🏼' => '亲吻: 女人女人较深肤色中等-浅肤色',\n '👩🏿‍❤‍💋‍👩🏽' => '亲吻: 女人女人较深肤色中等肤色',\n '👩🏿‍❤‍💋‍👩🏾' => '亲吻: 女人女人较深肤色中等-深肤色',\n '👩🏿‍❤‍💋‍👩🏿' => '亲吻: ", "suffix": " '🧑🏼‍🫯‍🧑🏾' => '摔跤选手: 中等-浅肤色中等-深肤色',\n '🧑🏼‍🫯‍🧑🏿' => '摔跤选手: 中等-浅肤色较深肤色',\n '🧑🏽‍🫯‍🧑🏻' => '摔跤选手: 中等肤色较浅肤色',\n '🧑🏽‍🫯‍🧑🏼' => '摔跤选手: 中等肤色中等-浅肤色',\n '🧑🏽‍🫯‍🧑🏾' => '摔跤选手: 中等肤色中等-深肤色',\n '🧑🏽‍🫯‍🧑🏿' => '摔跤选手: 中等肤色较深肤色',\n '🧑🏾‍🫯‍🧑🏻' => '摔跤选手: 中等-深肤色较浅肤色',", "middle": "女人女人较深肤色',\n '🧑🏻‍🫯‍🧑🏼' => '摔跤选手: 较浅肤色中等-浅肤色',\n '🧑🏻‍🫯‍🧑🏽' => '摔跤选手: 较浅肤色中等肤色',\n '🧑🏻‍🫯‍🧑🏾' => '摔跤选手: 较浅肤色中等-深肤色',\n '🧑🏻‍🫯‍🧑🏿' => '摔跤选手: 较浅肤色较深肤色',\n '🧑🏼‍🫯‍🧑🏻' => '摔跤选手: 中等-浅肤色较浅肤色',\n '🧑🏼‍🫯‍🧑🏽' => '摔跤选手: 中等-浅肤色中等肤色',\n", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-zh.php", "language": "php", "file_size": 181761, "cut_index": 3790, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Emoji\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Emoji\\EmojiTransliterator;\nuse Symfony\\Component\\Finder\\Finder;\n\n#[RequiresPhpExtension('intl')]\nclass EmojiTransliteratorTest extends TestCase\n{\n #[DataProvider('provideTransliterateTests')]\n public function testTransliterate(string $locale, string $input, string $expected", "suffix": "\n 'fr',\n 'un 😺, 🐈‍⬛, et a 🦁 vont au 🏞️',\n 'un chat qui sourit, chat noir, et a tête de lion vont au parc national️',\n ];\n yield [\n 'en',\n 'a 😺, 🐈‍⬛, and a 🦁 go to 🏞️... 😍 🎉 💛',\n ", "middle": ")\n {\n $tr = EmojiTransliterator::create('emoji-'.$locale);\n\n $this->assertSame($expected, $tr->transliterate($input));\n }\n\n public static function provideTransliterateTests(): iterable\n {\n yield [", "meta": {"filepath": "src/Symfony/Component/Emoji/Tests/EmojiTransliteratorTest.php", "language": "php", "file_size": 7109, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore;\n\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreAcquiringException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreExpiredException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreReleasingException;\n\n/**\n * @author Grégoire Pineau \n * @author Jérémy Derussé \n */\ninterface PersistingStoreInterface\n{\n /**\n * Stores the resource if the semaphore is not full.\n *\n * @throws SemaphoreAcquiringException\n */\n public fu", "meta": {"filepath": "src/Symfony/Component/Semaphore/PersistingStoreInterface.php", "language": "php", "file_size": 1749, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore;\n\nuse Psr\\Log\\LoggerAwareInterface;\nuse Psr\\Log\\LoggerAwareTrait;\n\n/**\n * Factory provides method to create semaphores.\n *\n * @author Grégoire Pineau \n * @author Jérémy Derussé \n * @author Hamza Amrouche \n */\nclass SemaphoreFactory implements LoggerAwareInterface\n{\n use LoggerAwareTrait;\n\n public function __construct(\n private PersistingStoreInterface $store,\n ) {\n }\n\n /**\n * @param float|null ", "meta": {"filepath": "src/Symfony/Component/Semaphore/SemaphoreFactory.php", "language": "php", "file_size": 1830, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Serializer;\n\nuse Symfony\\Component\\Semaphore\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Semaphore\\Key;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * Normal", "suffix": "pe and type validation and converts construction\n * failures to {@see NotNormalizableValueException} so HTTP boundaries can\n * catch a single exception type. The opaque `state` map is forwarded to the\n * Key as-is; callers transferring keys across a trust ", "middle": "izes {@see Key} instances for transferring between processes.\n *\n * Trust boundary: the payload accepted by {@see denormalize()} is the\n * public-array shape documented on {@see Key::__serialize()}. The\n * normalizer performs sha", "meta": {"filepath": "src/Symfony/Component/Semaphore/Serializer/SemaphoreKeyNormalizer.php", "language": "php", "file_size": 4106, "cut_index": 614, "middle_length": 229}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Exception;\n\nuse Symfony\\Component\\Semaphore\\Key;\n\n/**\n * SemaphoreExpiredException is thrown when a semaphore may conflict due to a TTL expiration.\n *\n * @author Jérémy Derussé \n * @author Grégoire Pineau \n */\nclass SemaphoreExpiredException extends \\R", "meta": {"filepath": "src/Symfony/Component/Semaphore/Exception/SemaphoreExpiredException.php", "language": "php", "file_size": 831, "cut_index": 516, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Store;\n\nuse Symfony\\Component\\Lock\\Exception\\LockReleasingException;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Lock\\LockInterface;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreAcquiringException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreExpiredException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreReleasingException;\nuse Symfony\\Component\\Semaphore\\Key;\nuse Symfony\\Component\\Semaphore\\Persistin", "suffix": " }\n\n /**\n * Acquires `weight` slots through the underlying {@see LockFactory} and\n * stores the live {@see LockInterface} instances on the {@see Key}.\n *\n * Side effects on success:\n * - per-store state: an array of acquired {@see ", "middle": "gStoreInterface;\n\n/**\n * @author Alexander Schranz \n */\nfinal class LockStore implements PersistingStoreInterface\n{\n public function __construct(\n private readonly LockFactory $lockFactory,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Semaphore/Store/LockStore.php", "language": "php", "file_size": 6491, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Store;\n\nuse Relay\\Cluster as RelayCluster;\nuse Relay\\Relay;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Semaphore\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Semaphore\\PersistingStoreInterface;\n\n/**\n * ", "suffix": "ed connection types:\n * - {@see LockFactory} -> {@see LockStore}\n * - \\Redis, \\RedisArray, \\RedisCluster -> {@see RedisStore}\n * - {@see Relay}, {@see RelayCluster} (when the Relay extension is loaded)\n * - {@see \\", "middle": "StoreFactory create stores and connections.\n *\n * @author Jérémy Derussé \n */\nclass StoreFactory\n{\n /**\n * Creates a {@see PersistingStoreInterface} from a connection object or DSN.\n *\n * Accept", "meta": {"filepath": "src/Symfony/Component/Semaphore/Store/StoreFactory.php", "language": "php", "file_size": 2930, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\Semaphore\\Key;\nuse Symfony\\Component\\Semaphore\\PersistingStoreInterface;\nuse Symfony\\Component\\Semaphore\\SemaphoreFactory;\n\n/**\n * @author Jérémy Derussé \n * @author Grégoire Pineau", "suffix": " ->expects($this->exactly(2))\n ->method('save')\n ->with($this->callback(static function ($key) use (&$keys) {\n $keys[] = $key;\n\n return true;\n }));\n\n $factory = new SemaphoreFacto", "middle": " \n */\nclass SemaphoreFactoryTest extends TestCase\n{\n public function testCreateSemaphore()\n {\n $store = $this->createMock(PersistingStoreInterface::class);\n\n $keys = [];\n $store\n ", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/SemaphoreFactoryTest.php", "language": "php", "file_size": 2228, "cut_index": 563, "middle_length": 229}} {"prefix": " ':man-lifting-weights:' => '🏋️‍♂️',\n ':woman-golfing:' => '🏌️‍♀️',\n ':man-golfing:' => '🏌️‍♂️',\n ':transgender_flag:' => '🏳️‍⚧️',\n ':eye-in-speech-bubble:' => '👁️‍🗨️',\n ':man-boy-boy:' => '👨‍👦‍👦',\n ':man-girl-boy:' => '👨‍👧‍👦',\n ':man-girl-girl:' => '👨‍👧‍👧',\n ':man-man-boy:' => '👨‍👨‍👦',\n ':man-man-girl:' => '👨‍👨‍👧',\n ':man-woman-boy:' => '👨‍👩‍👦',\n ':man-woman-girl:' => '👨‍👩‍👧',\n ':woman-boy-boy:' => '👩‍👦‍👦',\n ':woman-girl-boy:' => '👩‍👧‍👦',\n ':woman-girl-girl:' =>", "suffix": "=> '🧑‍🧑‍🧒',\n ':family_adult_child_child:' => '🧑‍🧒‍🧒',\n ':woman-bouncing-ball:' => '⛹️‍♀️',\n ':man-bouncing-ball:' => '⛹️‍♂️',\n ':woman-running:' => '🏃‍♀️',\n ':man-running:' => '🏃‍♂️',\n ':person_running_facing_right:' => '🏃‍➡️',\n ':woma", "middle": " '👩‍👧‍👧',\n ':woman-woman-boy:' => '👩‍👩‍👦',\n ':woman-woman-girl:' => '👩‍👩‍👧',\n ':female-detective:' => '🕵️‍♀️',\n ':male-detective:' => '🕵️‍♂️',\n ':people_holding_hands:' => '🧑‍🤝‍🧑',\n ':family_adult_adult_child:' ", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/slack-emoji.php", "language": "php", "file_size": 64619, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore;\n\nuse Psr\\Log\\LoggerAwareInterface;\nuse Psr\\Log\\LoggerAwareTrait;\nuse Symfony\\Component\\Semaphore\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Semaphore\\Exception\\RuntimeException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreAcquiringException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreExpiredException;\nuse ", "suffix": "russe.com>\n */\nfinal class Semaphore implements SemaphoreInterface, LoggerAwareInterface\n{\n use LoggerAwareTrait;\n\n private bool $dirty = false;\n\n public function __construct(\n private Key $key,\n private PersistingStoreInterface $sto", "middle": "Symfony\\Component\\Semaphore\\Exception\\SemaphoreReleasingException;\n\n/**\n * Semaphore is the default implementation of the SemaphoreInterface.\n *\n * @author Grégoire Pineau \n * @author Jérémy Derussé \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Exception;\n\nuse Symfony\\Component\\Semaphore\\Key;\n\n/**\n * SemaphoreAcquiringException is thrown when an issue happens during the acquisition of a semaphore.\n *\n * @author Jérémy Derussé \n * @author Grégoire Pineau \n ", "meta": {"filepath": "src/Symfony/Component/Semaphore/Exception/SemaphoreAcquiringException.php", "language": "php", "file_size": 807, "cut_index": 517, "middle_length": 14}} {"prefix": "ymfony\\Component\\Semaphore\\Exception\\SemaphoreAcquiringException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreExpiredException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreStorageException;\nuse Symfony\\Component\\Semaphore\\Key;\nuse Symfony\\Component\\Semaphore\\PersistingStoreInterface;\n\n/**\n * RedisStore is a PersistingStoreInterface implementation using Redis as store engine.\n *\n * @author Grégoire Pineau \n * @author Jérémy Derussé \n */\nclass RedisStore i", "suffix": "dis,\n ) {\n }\n\n public function save(Key $key, float $ttlInSecond): void\n {\n if (0 > $ttlInSecond) {\n throw new InvalidArgumentException(\"The TTL should be greater than 0, '$ttlInSecond' given.\");\n }\n\n $script = '", "middle": "mplements PersistingStoreInterface\n{\n private const NO_SCRIPT_ERROR_MESSAGE_PREFIX = 'NOSCRIPT';\n\n public function __construct(\n private \\Redis|Relay|RelayCluster|\\RedisArray|\\RedisCluster|\\Predis\\ClientInterface $re", "meta": {"filepath": "src/Symfony/Component/Semaphore/Store/RedisStore.php", "language": "php", "file_size": 9764, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Semaphore\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Semaphore\\Exception\\UnserializableKeyException;\nuse Symfony\\Component\\Semaphore\\Key;\nuse Symfony\\Component\\Sem", "suffix": "ore::class, base64_encode(random_bytes(32)));\n\n $copy = unserialize(serialize($key));\n $this->assertSame(5, $copy->getLimit());\n $this->assertSame(2, $copy->getWeight());\n $this->assertEquals($key->getState(RedisStore::class), $", "middle": "aphore\\Store\\RedisStore;\n\n/**\n * @author Paul Clegg \n */\nclass KeyTest extends TestCase\n{\n public function testSerialize()\n {\n $key = new Key(__METHOD__, 5, 2);\n $key->setState(RedisSt", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/KeyTest.php", "language": "php", "file_size": 2225, "cut_index": 563, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Exception;\n\nuse Symfony\\Component\\Semaphore\\Key;\n\n/**\n * SemaphoreReleasingException is thrown when an issue happens during the release of a semaphore.\n *\n * @author Jérémy Derussé \n * @author Grégoire Pineau \n */\nc", "meta": {"filepath": "src/Symfony/Component/Semaphore/Exception/SemaphoreReleasingException.php", "language": "php", "file_size": 803, "cut_index": 517, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore;\n\nuse Symfony\\Component\\Semaphore\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Semaphore\\Exception\\UnserializableKeyException;\n\n/**\n * Key is a container for the state of the semaphores in stores.\n *\n * @author Grégoire Pineau \n * @author Jérémy Derussé \n */\nfinal class Key\n{\n priv", "suffix": "rivate int $limit,\n private int $weight = 1,\n ) {\n if (1 > $limit) {\n throw new InvalidArgumentException(\"The limit ($limit) should be greater than 0.\");\n }\n if (1 > $weight) {\n throw new InvalidArgument", "middle": "ate ?float $expiringTime = null;\n private array $state = [];\n private bool $serializable = true;\n private ?string $unserializableOwner = null;\n\n public function __construct(\n private string $resource,\n p", "meta": {"filepath": "src/Symfony/Component/Semaphore/Key.php", "language": "php", "file_size": 4928, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Serializer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Semaphore\\Key;\nuse Symfony\\Component\\Semaphore\\Serializer\\SemaphoreKeyNormalizer;\nuse Symfony\\Component\\Semaphore\\Store\\RedisStore;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\n\nclass S", "suffix": "ey->reduceLifetime(1);\n\n $normalizer = new SemaphoreKeyNormalizer();\n $copy = $normalizer->denormalize($normalizer->normalize($key), Key::class);\n\n $this->assertSame(5, $copy->getLimit());\n $this->assertSame(2, $copy->getWeight(", "middle": "emaphoreKeyNormalizerTest extends TestCase\n{\n public function testNormalizeAndDenormalize()\n {\n $key = new Key(__METHOD__, 5, 2);\n $key->setState(RedisStore::class, base64_encode(random_bytes(32)));\n $k", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Serializer/SemaphoreKeyNormalizerTest.php", "language": "php", "file_size": 2586, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreAcquiringException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreExpiredException;\nuse Symfony\\Component\\Semaphore\\Key;\nuse Symfony\\Component\\Semaphore\\PersistingStoreInterface;\n\n/**\n * @author Jérémy Derussé \n * @author Grégoire Pineau \n */\nabstract class AbstractStoreTestCase extends TestCase\n{", "suffix": "tore->exists($key));\n $store->save($key, 10);\n $this->assertTrue($store->exists($key));\n $store->delete($key);\n $this->assertFalse($store->exists($key));\n }\n\n public function testSaveWithDifferentResources()\n {\n ", "middle": "\n abstract protected function getStore(): PersistingStoreInterface;\n\n public function testSaveExistAndDelete()\n {\n $store = $this->getStore();\n\n $key = new Key(__METHOD__, 1);\n\n $this->assertFalse($s", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/AbstractStoreTestCase.php", "language": "php", "file_size": 6929, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\n/**\n * @author Jérémy Derussé \n */\nclass PredisStoreTest extends AbstractRedisStoreTestCase\n{\n public static function setUpBeforeClass(): void\n {\n $redis = new \\Predis\\Client(array_combine(['host', 'port'], explode(':', getenv('REDIS_HOST')) + [1 => null]));\n", "suffix": " } catch (\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n protected function getRedisConnection(): \\Predis\\Client\n {\n $redis = new \\Predis\\Client(array_combine(['host', 'port'], explode(':', getenv('REDI", "middle": " try {\n $redis->connect();\n ", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/PredisStoreTest.php", "language": "php", "file_size": 979, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\n\n/**\n * @author Jérémy Derussé \n */\n#[RequiresPhpExtension('redis')]\nclass RedisArrayStoreTest extends AbstractRedisStoreTestCase\n{\n public stat", "suffix": "plode(':', getenv('REDIS_HOST')));\n } catch (\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n protected function getRedisConnection(): \\RedisArray\n {\n return new \\RedisArray([getenv('REDIS_HOST')])", "middle": "ic function setUpBeforeClass(): void\n {\n if (!class_exists(\\RedisArray::class)) {\n self::markTestSkipped('The RedisArray class is required.');\n }\n try {\n (new \\Redis())->connect(...ex", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/RedisArrayStoreTest.php", "language": "php", "file_size": 1010, "cut_index": 512, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Relay\\Cluster as RelayCluster;\n\n#[RequiresPhpExtension('relay')]\nclass RelayClusterStoreTest extends AbstractRedisStoreTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!class_exists(RelayCluster::class", "suffix": "uster class is required.');\n }\n\n if (false === getenv('REDIS_CLUSTER_HOSTS')) {\n self::markTestSkipped('REDIS_CLUSTER_HOSTS env var is not defined.');\n }\n }\n\n protected function getRedisConnection(): RelayCluster\n {", "middle": ")) {\n self::markTestSkipped('The Relay\\Cl", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/RelayClusterStoreTest.php", "language": "php", "file_size": 983, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Lock\\Store\\FlockStore;\nuse Symfony\\Component\\Semaphore\\Store\\LockStore;\nuse Symfony\\Component\\Semaphore\\Store\\RedisStore;\nuse Symfon", "suffix": "string $expectedStoreClass)\n {\n $store = StoreFactory::createStore($connection);\n\n $this->assertInstanceOf($expectedStoreClass, $store);\n }\n\n public static function validConnections(): \\Generator\n {\n yield [new LockFactory(", "middle": "y\\Component\\Semaphore\\Store\\StoreFactory;\n\n/**\n * @author Jérémy Derussé \n */\nclass StoreFactoryTest extends TestCase\n{\n #[DataProvider('validConnections')]\n public function testCreateStore($connection, ", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/StoreFactoryTest.php", "language": "php", "file_size": 2098, "cut_index": 563, "middle_length": 229}} {"prefix": "m>\n *\n * @throws ExceptionInterface\n */\nabstract class AbstractUnicodeString extends AbstractString\n{\n public const NFC = \\Normalizer::NFC;\n public const NFD = \\Normalizer::NFD;\n public const NFKC = \\Normalizer::NFKC;\n public const NFKD = \\Normalizer::NFKD;\n\n // all ASCII letters sorted by typical frequency of occurrence\n private const ASCII = \"\\x20\\x65\\x69\\x61\\x73\\x6E\\x74\\x72\\x6F\\x6C\\x75\\x64\\x5D\\x5B\\x63\\x6D\\x70\\x27\\x0A\\x67\\x7C\\x68\\x76\\x2E\\x66\\x62\\x2C\\x3A\\x3D\\x2D\\x71\\x31\\x30\\x43\\x32\\x2A\\x7", "suffix": "\\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\";\n\n // the subset of folded case mappings that is not in lower case mappings\n private const FOLD_FROM = ['İ', 'µ'", "middle": "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", "meta": {"filepath": "src/Symfony/Component/String/AbstractUnicodeString.php", "language": "php", "file_size": 29215, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\String;\n\nuse Symfony\\Component\\String\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\String\\Exception\\InvalidArgumentException;\n\n/**\n * Represents a string of Unicode code points encoded as UTF-8.\n *\n * @author Nicolas Grekas \n * @author Hugo Hamon \n *\n * @throws ExceptionInterface\n */\nclass CodePointString extends AbstractUnicodeString\n{\n public function __construct(string $string = '')\n {\n if ", "suffix": " {\n $str = clone $this;\n $str->string .= 1 >= \\count($suffix) ? ($suffix[0] ?? '') : implode('', $suffix);\n\n if (!preg_match('//u', $str->string)) {\n throw new InvalidArgumentException('Invalid UTF-8 string.');\n }\n\n", "middle": "('' !== $string && !preg_match('//u', $string)) {\n throw new InvalidArgumentException('Invalid UTF-8 string.');\n }\n\n $this->string = $string;\n }\n\n public function append(string ...$suffix): static\n ", "meta": {"filepath": "src/Symfony/Component/String/CodePointString.php", "language": "php", "file_size": 7720, "cut_index": 716, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String;\n\nenum TruncateMode\n{\n /**\n * Will cut exactly at given length.\n *\n * Length: 14\n * Source: Lorem ipsum dolor sit amet\n * Output: Lorem ipsum do\n */\n case Char;\n\n /**\n * Returns the string up to the last complete word containing the spec", "suffix": ": Lorem ipsum dolor sit amet\n * Output: Lorem ipsum\n */\n case WordBefore;\n\n /**\n * Returns the string up to the complete word after or at the given length.\n *\n * Length: 14\n * Source: Lorem ipsum dolor sit amet\n * Output: ", "middle": "ified length.\n *\n * Length: 14\n * Source", "meta": {"filepath": "src/Symfony/Component/String/TruncateMode.php", "language": "php", "file_size": 903, "cut_index": 547, "middle_length": 52}} {"prefix": "ɛ̀',\n '👩🏿‍❤‍💋‍👩🏽' => 'Ifɛnuko: Obìnrin, Obìnrin, adúláwɔ̀, amɔ́láwɔ̀ díɛ̀',\n '👩🏿‍❤‍💋‍👩🏾' => 'Ifɛnuko: Obìnrin, Obìnrin, adúláwɔ̀, adúláwɔ̀ díɛ̀',\n '👩🏿‍❤‍💋‍👩🏿' => 'Ifɛnuko: Obìnrin, Obìnrin, adúláwɔ̀',\n '🧑🏻‍🫯‍🧑🏼' => 'Awɔn Onigidigbo: amɔ́lára àtiamɔ́lára díɛ̀',\n '🧑🏻‍🫯‍🧑🏽' => 'Awɔn Onigidigbo: amɔ́lára àtiamɔ́láwɔ̀ díɛ̀',\n '🧑🏻‍🫯‍🧑🏾' => 'Awɔn Onigidigbo: amɔ́lára àtiadúláwɔ̀ díɛ̀',\n '🧑🏻‍🫯‍🧑🏿' => 'Awɔn Onigidigbo: amɔ́lára àtiadúláwɔ̀',\n '🧑🏼‍🫯‍🧑🏻' => 'Awɔn Onigidigbo: amɔ́lára díɛ̀ àtiam", "suffix": "ɔn Onigidigbo: amɔ́láwɔ̀ díɛ̀ àtiamɔ́lára',\n '🧑🏽‍🫯‍🧑🏼' => 'Awɔn Onigidigbo: amɔ́láwɔ̀ díɛ̀ àtiamɔ́lára díɛ̀',\n '🧑🏽‍🫯‍🧑🏾' => 'Awɔn Onigidigbo: amɔ́láwɔ̀ díɛ̀ àtiadúláwɔ̀ díɛ̀',\n '🧑🏽‍🫯‍🧑🏿' => 'Awɔn Onigidigbo: amɔ́láwɔ̀ díɛ̀ àtiadúláwɔ̀',\n '🧑🏾‍🫯‍", "middle": "ɔ́lára',\n '🧑🏼‍🫯‍🧑🏽' => 'Awɔn Onigidigbo: amɔ́lára díɛ̀ àtiamɔ́láwɔ̀ díɛ̀',\n '🧑🏼‍🫯‍🧑🏾' => 'Awɔn Onigidigbo: amɔ́lára díɛ̀ àtiadúláwɔ̀ díɛ̀',\n '🧑🏼‍🫯‍🧑🏿' => 'Awɔn Onigidigbo: amɔ́lára díɛ̀ àtiadúláwɔ̀',\n '🧑🏽‍🫯‍🧑🏻' => 'Aw", "meta": {"filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-yo_bj.php", "language": "php", "file_size": 231731, "cut_index": 7068, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\nuse Relay\\Cluster as RelayCluster;\nuse Relay\\Relay;\nuse Symfony\\Component\\Semaphore\\PersistingStoreInterface;\nuse Symfony\\Component\\Semaphore\\Store\\RedisStore;\n\n/**\n * @author Jérémy Derussé \n */\nabstract class AbstractRedisS", "suffix": "tract protected function getRedisConnection(): \\Redis|Relay|RelayCluster|\\RedisArray|\\RedisCluster|\\Predis\\ClientInterface;\n\n public function getStore(): PersistingStoreInterface\n {\n return new RedisStore($this->getRedisConnection());\n }\n}\n", "middle": "toreTestCase extends AbstractStoreTestCase\n{\n abs", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/AbstractRedisStoreTestCase.php", "language": "php", "file_size": 846, "cut_index": 535, "middle_length": 52}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\n\n/**\n * @author Jérémy Derussé \n */\n#[RequiresPhpExtension('redis')]\nclass RedisClusterStoreTest extends AbstractRedisStoreTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!class_exists", "suffix": "Skipped('The RedisCluster class is required.');\n }\n if (!getenv('REDIS_CLUSTER_HOSTS')) {\n self::markTestSkipped('REDIS_CLUSTER_HOSTS env var is not defined.');\n }\n }\n\n protected function getRedisConnection(): \\RedisCl", "middle": "(\\RedisCluster::class)) {\n self::markTest", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/RedisClusterStoreTest.php", "language": "php", "file_size": 998, "cut_index": 582, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Relay\\Relay;\n\n#[RequiresPhpExtension('relay')]\n#[Group('integration')]\nclass RelayStoreTest extends AbstractRedisStoreTestCase", "suffix": "lic static function setUpBeforeClass(): void\n {\n try {\n new Relay(...explode(':', getenv('REDIS_HOST')));\n } catch (\\Relay\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n protected funct", "middle": "\n{\n protected function setUp(): void\n {\n try {\n $this->getRedisConnection()->flushDB();\n } catch (\\Relay\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n pub", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/RelayStoreTest.php", "language": "php", "file_size": 1111, "cut_index": 515, "middle_length": 229}} {"prefix": "ntException;\nuse Symfony\\Component\\String\\Exception\\RuntimeException;\n\n/**\n * Represents a binary-safe string of bytes.\n *\n * @author Nicolas Grekas \n * @author Hugo Hamon \n *\n * @throws ExceptionInterface\n */\nclass ByteString extends AbstractString\n{\n private const ALPHABET_ALPHANUMERIC = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';\n\n public function __construct(string $string = '')\n {\n $this->string = $string;\n }\n\n /*\n * The foll", "suffix": " the MIT license (https://github.com/hhvm/hsl/blob/master/LICENSE).\n *\n * Copyright (c) 2004-2020, Facebook, Inc. (https://www.facebook.com/)\n */\n\n public static function fromRandom(int $length = 16, ?string $alphabet = null): self\n {\n ", "middle": "owing method was derived from code of the Hack Standard Library (v4.40 - 2020-05-03)\n *\n * https://github.com/hhvm/hsl/blob/80a42c02f036f72a42f0415e80d6b847f4bf62d5/src/random/private.php#L16\n *\n * Code subject to", "meta": {"filepath": "src/Symfony/Component/String/ByteString.php", "language": "php", "file_size": 13553, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore;\n\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreAcquiringException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreExpiredException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreReleasingException;\n\n/**\n * SemaphoreInterface defines an interface ", "suffix": " has reached its limit.\n *\n * @throws SemaphoreAcquiringException If the semaphore cannot be acquired\n */\n public function acquire(): bool;\n\n /**\n * Increase the duration of an acquired semaphore.\n *\n * @throws SemaphoreExpire", "middle": "to manipulate the status of a semaphore.\n *\n * @author Jérémy Derussé \n * @author Grégoire Pineau \n */\ninterface SemaphoreInterface\n{\n /**\n * Acquires the semaphore. If the semaphore", "meta": {"filepath": "src/Symfony/Component/Semaphore/SemaphoreInterface.php", "language": "php", "file_size": 1571, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\n\n/**\n * @author Jérémy Derussé \n */\n#[RequiresPhpExtension('redis')]\nclass RedisStoreTest extends AbstractRedisStoreTestCase\n{\n protected functi", "suffix": " } catch (\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n protected function getRedisConnection(): \\Redis\n {\n $redis = new \\Redis();\n $redis->connect(...explode(':', getenv('REDIS_HOST')));\n\n ", "middle": "on setUp(): void\n {\n $this->getRedisConnection()->flushDB();\n }\n\n public static function setUpBeforeClass(): void\n {\n try {\n (new \\Redis())->connect(...explode(':', getenv('REDIS_HOST')));\n ", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/RedisStoreTest.php", "language": "php", "file_size": 1030, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String;\n\n/**\n * A string whose value is computed lazily by a callback.\n *\n * @author Nicolas Grekas \n */\nclass LazyString implements \\Stringable, \\JsonSerializable\n{\n private \\Closure|string $value;\n\n /**\n * @param callable|array $callback A callable or a [Closure, method] lazy-callable\n */\n public static function ", "suffix": " 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)).']'));\n }\n\n $lazyString = new static();\n ", "middle": "fromCallable(callable|array $callback, mixed ...$arguments): static\n {\n if (\\is_array($callback) && !\\is_callable($callback) && !(($callback[0] ?? null) instanceof \\Closure || 2 < \\count($callback))) {\n throw", "meta": {"filepath": "src/Symfony/Component/String/LazyString.php", "language": "php", "file_size": 4410, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Semaphore\\Tests\\Store;\n\nuse Symfony\\Component\\Lock\\Exception\\LockAcquiringException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Exception\\LockReleasingException;\nuse Symfony\\Component\\Lock\\Key as LockKey;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface as LockPersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\FlockStore;\nuse Symfony\\Component\\Lock\\St", "suffix": "\nuse Symfony\\Component\\Semaphore\\Key;\nuse Symfony\\Component\\Semaphore\\PersistingStoreInterface;\nuse Symfony\\Component\\Semaphore\\Store\\LockStore;\n\nclass LockStoreTest extends AbstractStoreTestCase\n{\n public function getStore(): PersistingStoreInterface\n ", "middle": "ore\\InMemoryStore;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreAcquiringException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreExpiredException;\nuse Symfony\\Component\\Semaphore\\Exception\\SemaphoreReleasingException;", "meta": {"filepath": "src/Symfony/Component/Semaphore/Tests/Store/LockStoreTest.php", "language": "php", "file_size": 7538, "cut_index": 716, "middle_length": 229}} {"prefix": "hamon@neuf.fr>\n *\n * @throws ExceptionInterface\n */\nabstract class AbstractString implements \\Stringable, \\JsonSerializable\n{\n public const PREG_PATTERN_ORDER = \\PREG_PATTERN_ORDER;\n public const PREG_SET_ORDER = \\PREG_SET_ORDER;\n public const PREG_OFFSET_CAPTURE = \\PREG_OFFSET_CAPTURE;\n public const PREG_UNMATCHED_AS_NULL = \\PREG_UNMATCHED_AS_NULL;\n\n public const PREG_SPLIT = 0;\n public const PREG_SPLIT_NO_EMPTY = \\PREG_SPLIT_NO_EMPTY;\n public const PREG_SPLIT_DELIM_CAPTURE = \\PREG_SPL", "suffix": ");\n\n /**\n * Unwraps instances of AbstractString back to strings.\n *\n * @return string[]|array\n */\n public static function unwrap(array $values): array\n {\n foreach ($values as $k => $v) {\n if ($v instanceof self) {", "middle": "IT_DELIM_CAPTURE;\n public const PREG_SPLIT_OFFSET_CAPTURE = \\PREG_SPLIT_OFFSET_CAPTURE;\n\n protected string $string = '';\n protected ?bool $ignoreCase = false;\n\n abstract public function __construct(string $string = ''", "meta": {"filepath": "src/Symfony/Component/String/AbstractString.php", "language": "php", "file_size": 19725, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Resources;\n\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\String\\Exception\\RuntimeException;\nuse Symfony\\Component\\VarExporter\\VarExporter;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @internal\n */\nfinal class WcswidthDataGenerator\n{\n private HttpClientInterface $client;\n\n public function __cons", "suffix": ";\n\n $this->writeZeroWidthData();\n }\n\n private function writeWideWidthData(): void\n {\n if (!preg_match('/^# EastAsianWidth-(\\d+\\.\\d+\\.\\d+)\\.txt/', $content = $this->client->request('GET', 'EastAsianWidth.txt')->getContent(), $matches)", "middle": "truct(\n private string $outDir,\n ) {\n $this->client = HttpClient::createForBaseUri('https://www.unicode.org/Public/UNIDATA/');\n }\n\n public function generate(): void\n {\n $this->writeWideWidthData()", "meta": {"filepath": "src/Symfony/Component/String/Resources/WcswidthDataGenerator.php", "language": "php", "file_size": 3364, "cut_index": 614, "middle_length": 229}} {"prefix": "9200,\n ],\n [\n 9203,\n 9203,\n ],\n [\n 9725,\n 9726,\n ],\n [\n 9748,\n 9749,\n ],\n [\n 9776,\n 9783,\n ],\n [\n 9800,\n 9811,\n ],\n [\n 9855,\n 9855,\n ],\n [\n 9866,\n 9871,\n ],\n [\n 9875,\n 9875,\n ],\n [\n 9889,\n 9889,\n ],\n [\n 9898,\n 9899,\n ],\n [\n 9917,\n 9918,\n ],\n [\n 9924,\n 9925,\n ],\n [\n ", "suffix": "8,\n ],\n [\n 9981,\n 9981,\n ],\n [\n 9989,\n 9989,\n ],\n [\n 9994,\n 9995,\n ],\n [\n 10024,\n 10024,\n ],\n [\n 10060,\n 10060,\n ],\n [\n 10062,\n 10062,\n ", "middle": " 9934,\n 9934,\n ],\n [\n 9940,\n 9940,\n ],\n [\n 9962,\n 9962,\n ],\n [\n 9970,\n 9971,\n ],\n [\n 9973,\n 9973,\n ],\n [\n 9978,\n 997", "meta": {"filepath": "src/Symfony/Component/String/Resources/data/wcswidth_table_wide.php", "language": "php", "file_size": 12805, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\String\\Resources\\WcswidthDataGenerator;\n\nif ('cli' !== \\PHP_SAPI) {\n throw new Exception('This script must be run from the command line.');\n}\n\nerror_reporting(\\E_ALL);\n\nset_error_handler(static function (int $type, string $msg, string $file, int $line): void {\n", "suffix": " if (!$root) {\n echo \"Caused by\\n\";\n }\n\n echo $cause::class.': '.$cause->getMessage().\"\\n\";\n echo \"\\n\";\n echo $cause->getFile().':'.$cause->getLine().\"\\n\";\n echo $cause->getTraceAsString().\"\\n\";\n\n $cau", "middle": " throw new ErrorException($msg, 0, $type, $file, $line);\n});\n\nset_exception_handler(static function (Throwable $exception): void {\n echo \"\\n\";\n\n $cause = $exception;\n $root = true;\n\n while (null !== $cause) {\n ", "meta": {"filepath": "src/Symfony/Component/String/Resources/bin/update-data.php", "language": "php", "file_size": 1445, "cut_index": 524, "middle_length": 229}} {"prefix": " $unicodeWidthTests[] = [2, '1️⃣'];\n }\n\n return array_merge(\n parent::provideWidth(),\n $unicodeWidthTests\n );\n }\n\n public function testCreateFromStringWithInvalidUtf8Input()\n {\n $this->expectException(InvalidArgumentException::class);\n\n static::createFromString(\"\\xE9\");\n }\n\n public function testAscii()\n {\n $s = static::createFromString('Dieser Wert sollte größer oder gleich');\n $this->assertSame('Dieser Wert ", "suffix": "tatic fn ($c) => str_replace('ö', 'OE', $c);\n\n $s = static::createFromString('Dieser Wert sollte größer oder gleich');\n $this->assertSame('Dieser Wert sollte grOEsser oder gleich', (string) $s->ascii([$rule]));\n }\n\n #[DataProvider('pro", "middle": "sollte grosser oder gleich', (string) $s->ascii());\n $this->assertSame('Dieser Wert sollte groesser oder gleich', (string) $s->ascii(['de-ASCII']));\n }\n\n public function testAsciiClosureRule()\n {\n $rule = s", "meta": {"filepath": "src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php", "language": "php", "file_size": 23676, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Tests;\n\nuse Symfony\\Component\\String\\AbstractString;\nuse Symfony\\Component\\String\\ByteString;\nuse Symfony\\Component\\String\\Exception\\InvalidArgumentException;\n\nclass ByteStringTest extends AbstractAsciiTestCase\n{\n protected static function createFromString(string $string): AbstractStrin", "suffix": "s $char) {\n self::assertNotNull((new ByteString('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'))->indexOf($char));\n }\n }\n\n public function testFromRandomWithSpecificChars()\n {\n $random = ByteString::fromRando", "middle": "g\n {\n return new ByteString($string);\n }\n\n public function testFromRandom()\n {\n $random = ByteString::fromRandom(32);\n\n self::assertSame(32, $random->length());\n foreach ($random->chunk() a", "meta": {"filepath": "src/Symfony/Component/String/Tests/ByteStringTest.php", "language": "php", "file_size": 2938, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\String\\AbstractString;\nuse Symfony\\Component\\String\\ByteString;\nuse Symfony\\Component\\String\\UnicodeString;\n\nuse function Symfony\\Component\\String\\b;\nuse function Symfony\\Component\\", "suffix": "rtEquals($expected, s($input));\n }\n\n public static function provideSStrings(): array\n {\n return [\n [new UnicodeString(''), ''],\n [new UnicodeString(''), null],\n [new UnicodeString('foo'), 'foo'],\n ", "middle": "String\\s;\nuse function Symfony\\Component\\String\\u;\n\nfinal class FunctionsTest extends TestCase\n{\n #[DataProvider('provideSStrings')]\n public function testS(AbstractString $expected, ?string $input)\n {\n $this->asse", "meta": {"filepath": "src/Symfony/Component/String/Tests/FunctionsTest.php", "language": "php", "file_size": 2178, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Slugger;\n\nuse Symfony\\Component\\Emoji\\EmojiTransliterator;\nuse Symfony\\Component\\String\\AbstractUnicodeString;\nuse Symfony\\Component\\String\\UnicodeString;\nuse Symfony\\Contracts\\Translation\\LocaleAwareInterface;\n\nif (!interface_exists(LocaleAwareInterface::class)) {\n throw new \\LogicException('You cannot use the \"Symfony\\Component\\String\\Slugger\\AsciiSlugger\" as the \"symfony/translation-contracts\" package is not installed. Try running \"c", "suffix": "_ID = [\n 'am' => 'Amharic-Latin',\n 'ar' => 'Arabic-Latin',\n 'az' => 'Azerbaijani-Latin',\n 'be' => 'Belarusian-Latin',\n 'bg' => 'Bulgarian-Latin',\n 'bn' => 'Bengali-Latin',\n 'de' => 'de-ASCII',\n 'el' =", "middle": "omposer require symfony/translation-contracts\".');\n}\n\n/**\n * @author Titouan Galopin \n */\nclass AsciiSlugger implements SluggerInterface, LocaleAwareInterface\n{\n private const LOCALE_TO_TRANSLITERATOR", "meta": {"filepath": "src/Symfony/Component/String/Slugger/AsciiSlugger.php", "language": "php", "file_size": 7040, "cut_index": 716, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String;\n\nif (!\\function_exists(u::class)) {\n function u(?string $string = ''): UnicodeString\n {\n return new UnicodeString($string ?? '');\n }\n}\n\nif (!\\function_exists(b::class)) {\n function b(?string $string = ''): ByteString\n {\n retur", "suffix": "tion_exists(s::class)) {\n /**\n * @return UnicodeString|ByteString\n */\n function s(?string $string = ''): AbstractString\n {\n $string ??= '';\n\n return preg_match('//u', $string) ? new UnicodeString($string) : new ByteString($st", "middle": "n new ByteString($string ?? '');\n }\n}\n\nif (!\\func", "meta": {"filepath": "src/Symfony/Component/String/Resources/functions.php", "language": "php", "file_size": 852, "cut_index": 529, "middle_length": 52}} {"prefix": "मस्ते' === $string) {\n $this->markTestSkipped('Skipping due to issue ICU-21661.');\n }\n\n $instance = static::createFromString($string);\n $instance = $form ? $instance->normalize($form) : $instance;\n\n $this->assertSame($expected, $instance->bytesAt($offset));\n }\n\n public static function provideBytesAt(): array\n {\n return [\n [[], '', 0],\n [[], 'a', 1],\n [[0x62], 'abc', 1],\n [[0x63], 'abcde', -3],\n ];\n }", "suffix": "tance->indexOf($needle), $instance->containsAny($needle));\n }\n\n #[DataProvider('provideIndexOfIgnoreCase')]\n public function testContainsAnyIgnoreCase(?int $result, string $string, $needle, int $offset)\n {\n $instance = static::createFrom", "middle": "\n\n #[DataProvider('provideIndexOf')]\n public function testContainsAny(?int $result, string $string, $needle, int $offset)\n {\n $instance = static::createFromString($string);\n\n $this->assertSame(null !== $ins", "meta": {"filepath": "src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php", "language": "php", "file_size": 55845, "cut_index": 2151, "middle_length": 229}} {"prefix": "74,\n ],\n [\n 1476,\n 1477,\n ],\n [\n 1479,\n 1479,\n ],\n [\n 1552,\n 1562,\n ],\n [\n 1611,\n 1631,\n ],\n [\n 1648,\n 1648,\n ],\n [\n 1750,\n 1756,\n ],\n [\n 1759,\n 1764,\n ],\n [\n 1767,\n 1768,\n ],\n [\n 1770,\n 1773,\n ],\n [\n 1809,\n 1809,\n ],\n [\n 1840,\n 1866,\n ],\n [\n 1958,\n 1968,\n ],\n [\n ", "suffix": "\n ],\n [\n 2137,\n 2139,\n ],\n [\n 2199,\n 2207,\n ],\n [\n 2250,\n 2273,\n ],\n [\n 2275,\n 2306,\n ],\n [\n 2362,\n 2362,\n ],\n [\n 2364,\n 2364,\n ],\n ", "middle": " 2027,\n 2035,\n ],\n [\n 2045,\n 2045,\n ],\n [\n 2070,\n 2073,\n ],\n [\n 2075,\n 2083,\n ],\n [\n 2085,\n 2087,\n ],\n [\n 2089,\n 2093,", "meta": {"filepath": "src/Symfony/Component/String/Resources/data/wcswidth_table_zero.php", "language": "php", "file_size": 15453, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Tests;\n\nuse Symfony\\Component\\String\\AbstractString;\nuse Symfony\\Component\\String\\CodePointString;\n\nclass CodePointStringTest extends AbstractUnicodeTestCase\n{\n protected static function createFromString(string $string): AbstractString\n {\n ", "suffix": "cessed as a grapheme cluster\n [8, 'अनुच्छेद'],\n ]\n );\n }\n\n public static function provideBytesAt(): array\n {\n return array_merge(\n parent::provideBytesAt(),\n [\n [[0x61], ", "middle": " return new CodePointString($string);\n }\n\n public static function provideLength(): array\n {\n return array_merge(\n parent::provideLength(),\n [\n // 8 instead of 5 if it were pro", "meta": {"filepath": "src/Symfony/Component/String/Tests/CodePointStringTest.php", "language": "php", "file_size": 1536, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Transport;\n\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Konstantin Myakshin getScheme(), $this->getSupportedSchemes(), true);\n }\n\n /**\n * @return string[]\n */\n ", "middle": "com>\n * @author Fabien Potencier \n */\nabstract class AbstractTransportFactory implements TransportFactoryInterface\n{\n public function __construct(\n protected ?EventDispatcherInterface $dispatcher = n", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport/AbstractTransportFactory.php", "language": "php", "file_size": 1448, "cut_index": 524, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Exception\\MultipleExclusiveOptionsUsedException;\n\nclass MultipleExclusiveOptionsUsedExceptionTest extends TestCase\n{\n public function testMessage()\n {\n $", "suffix": "w MultipleExclusiveOptionsUsedException(['foo', 'bar'], ['foo', 'bar', 'baz']);\n\n $this->assertSame(\n 'Multiple exclusive options have been used \"foo\", \"bar\". Only one of \"foo\", \"bar\", \"baz\" can be used.',\n $exception->getMessa", "middle": "exception = ne", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Exception/MultipleExclusiveOptionsUsedExceptionTest.php", "language": "php", "file_size": 816, "cut_index": 522, "middle_length": 14}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Exception;\n\n/**\n * @author Yuriy Vilks \n */\nclass MultipleExclusiveOptionsUsedException extends InvalidArgumentException\n{\n /**\n * @param string[] $usedExclusiveOptions\n * @param string[] $exclusiveOptions\n */\n public function __construct(array $usedExclusiveOptions, array $exclusiveOptions, ", "suffix": " = \\sprintf(\n 'Multiple exclusive options have been used \"%s\". Only one of \"%s\" can be used.',\n implode('\", \"', $usedExclusiveOptions),\n implode('\", \"', $exclusiveOptions)\n );\n\n parent::__construct($message, 0", "middle": "?\\Throwable $previous = null)\n {\n $message", "meta": {"filepath": "src/Symfony/Component/Notifier/Exception/MultipleExclusiveOptionsUsedException.php", "language": "php", "file_size": 936, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\String\\Slugger\\AsciiSlugger;\n\nclass SluggerTest extends TestCase\n{\n #[RequiresPhpExtension('intl')]\n #[DataProvider('provideSlug')]\n public function testSlug(string $st", "suffix": " {\n return [\n ['Стойността трябва да бъде лъжа', 'bg', 'Stoinostta-tryabva-da-bude-luzha'],\n ['You & I', 'en', 'You-and-I'],\n ['symfony@symfony.com', 'en', 'symfony-at-symfony-com'],\n ['Dieser Wert sollt", "middle": "ring, string $locale, string $expectedSlug)\n {\n $slugger = new AsciiSlugger($locale);\n\n $this->assertSame($expectedSlug, (string) $slugger->slug($string));\n }\n\n public static function provideSlug(): array\n ", "meta": {"filepath": "src/Symfony/Component/String/Tests/SluggerTest.php", "language": "php", "file_size": 4254, "cut_index": 614, "middle_length": 229}} {"prefix": "String;\n\nclass UnicodeStringTestToStringGadget\n{\n public static bool $fired = false;\n\n public function __toString(): string\n {\n self::$fired = true;\n\n return '';\n }\n}\n\nclass UnicodeStringTest extends AbstractUnicodeTestCase\n{\n public function testUnserializeRejectsObjectInTypedStringProperty()\n {\n $payload = \\sprintf(\n 'O:%d:\"%s\":1:{s:6:\"string\";O:%d:\"%s\":0:{}}',\n \\strlen(UnicodeString::class), UnicodeString::class,\n \\strlen(UnicodeStri", "suffix": "odCallException.');\n } catch (\\BadMethodCallException $e) {\n }\n\n $this->assertFalse(UnicodeStringTestToStringGadget::$fired, '__toString gadget must not fire during unserialize');\n }\n\n #[DataProvider('provideTrimNormalization')]\n", "middle": "ngTestToStringGadget::class), UnicodeStringTestToStringGadget::class,\n );\n UnicodeStringTestToStringGadget::$fired = false;\n\n try {\n unserialize($payload);\n $this->fail('Expected BadMeth", "meta": {"filepath": "src/Symfony/Component/String/Tests/UnicodeStringTest.php", "language": "php", "file_size": 12101, "cut_index": 921, "middle_length": 229}} {"prefix": "EnglishInflector;\n\nclass EnglishInflectorTest extends TestCase\n{\n public static function singularizeProvider()\n {\n // see http://english-zone.com/spelling/plurals.html\n // see http://www.scribd.com/doc/3271143/List-of-100-Irregular-Plural-Nouns-in-English\n return [\n ['accesses', 'access'],\n ['addresses', 'address'],\n ['agendas', 'agenda'],\n ['albums', 'album'],\n ['alumnae', 'alumna'],\n ['alumni', 'alumnus'],\n ", "suffix": " ['arches', ['arch', 'arche']],\n ['articles', 'article'],\n ['atlases', ['atlas', 'atlase', 'atlasis']],\n ['axes', ['ax', 'axe', 'axis']],\n ['babies', 'baby'],\n ['bacteria', 'bacterium'],\n ", "middle": " ['analyses', ['analys', 'analyse', 'analysis']],\n ['ankles', 'ankle'],\n ['antennae', 'antenna'],\n ['antennas', 'antenna'],\n ['appendices', ['appendex', 'appendix', 'appendice']],\n ", "meta": {"filepath": "src/Symfony/Component/String/Tests/Inflector/EnglishInflectorTest.php", "language": "php", "file_size": 13553, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Tests\\Inflector;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\String\\Inflector\\SpanishInflector;\n\nclass SpanishInflectorTest extends TestCase\n{\n public static function singularizeProvider(): array\n {\n return [\n // vowels (RAE 3.2a, 3.2c)\n ['peras', ", "suffix": " ['cafés', 'café'],\n ['isrealís', 'isrealí'],\n ['burós', 'buró'],\n ['tisús', 'tisú'],\n\n // ending in -ión\n ['aviones', 'avión'],\n ['camiones', 'camión'],\n\n // ending in ", "middle": "'pera'],\n ['especies', 'especie'],\n ['álcalis', 'álcali'],\n ['códigos', 'código'],\n ['espíritus', 'espíritu'],\n\n // accented (RAE 3.2a, 3.2c)\n ['papás', 'papá'],\n ", "meta": {"filepath": "src/Symfony/Component/String/Tests/Inflector/SpanishInflectorTest.php", "language": "php", "file_size": 4264, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Inflector;\n\n/**\n * French inflector.\n *\n * This class does only inflect nouns; not adjectives nor composed words like \"soixante-dix\".\n */\nfinal class FrenchInflector implements InflectorInterface\n{\n /**\n * A list of all rules for pluralise.\n *\n * @see https://la-conjugaison.nouvelobs.com/regles/grammaire/le-pluriel-des-noms-121.php\n */\n private const PLURALIZE_REGEXP = [\n // First entry: regexp\n // Secon", "suffix": "uralized with a \"x\"\n // Les mots finissant par \"eau\" prennent tous un \"x\" au pluriel\n ['/(eau)$/i', '\\1x'],\n\n // Words finishing with \"au\" are pluralized with a \"x\" excepted \"landau\"\n // Les mots finissant par \"au\" prennent un \"", "middle": "d entry: replacement\n\n // Words finishing with \"s\", \"x\" or \"z\" are invariables\n // Les mots finissant par \"s\", \"x\" ou \"z\" sont invariables\n ['/(s|x|z)$/i', '\\1'],\n\n // Words finishing with \"eau\" are pl", "meta": {"filepath": "src/Symfony/Component/String/Inflector/FrenchInflector.php", "language": "php", "file_size": 5963, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Inflector;\n\nfinal class SpanishInflector implements InflectorInterface\n{\n /**\n * A list of all rules for pluralise.\n *\n * @see https://www.spanishdict.com/guide/spanish-plural-noun-forms\n * @see https://www.rae.es/gram%C3%A1tica/morfolog%C3%ADa/la-formaci%C3%B3n-del-plural-plurales-en-s-y-plurales-en-es-reglas-generales\n", "suffix": ")\n ['/(a|e|i|o|u|á|é|í|ó|ú)$/i', '\\1s'],\n\n // Word ending in s or x and the previous letter is accented (RAE 3.2n)\n ['/ás$/i', 'ases'],\n ['/és$/i', 'eses'],\n ['/ís$/i', 'ises'],\n ['/ós$/i', 'oses'],\n ['/ús$/", "middle": " */\n // First entry: regex\n // Second entry: replacement\n private const PLURALIZE_REGEXP = [\n // Specials sí, no\n ['/(sí|no)$/i', '\\1es'],\n\n // Words ending with vowel must use -s (RAE 3.2a, 3.2c", "meta": {"filepath": "src/Symfony/Component/String/Inflector/SpanishInflector.php", "language": "php", "file_size": 3600, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier;\n\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Notifier\\Event\\MessageEvent;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Tra", "suffix": "t(\n private TransportInterface $transport,\n private ?MessageBusInterface $bus = null,\n private ?EventDispatcherInterface $dispatcher = null,\n ) {\n }\n\n public function __toString(): string\n {\n return 'chat';\n }\n\n ", "middle": "nsport\\TransportInterface;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * @author Fabien Potencier \n */\nfinal class Chatter implements ChatterInterface\n{\n public function __construc", "meta": {"filepath": "src/Symfony/Component/Notifier/Chatter.php", "language": "php", "file_size": 1449, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Component\\Notifier\\Transport\\FailoverTransport;\nuse Symfony\\Component\\Notifier\\Transport\\NullTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\RoundRobinTransport;\nuse Symfony\\Component\\Notifier\\Transport\\TransportFactoryInterface;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\nuse Symfon", "suffix": "s Transport\n{\n private const FACTORY_CLASSES = [\n Bridge\\AllMySms\\AllMySmsTransportFactory::class,\n Bridge\\AmazonSns\\AmazonSnsTransportFactory::class,\n Bridge\\Bandwidth\\BandwidthTransportFactory::class,\n Bridge\\Bluesky\\Bluesk", "middle": "y\\Component\\Notifier\\Transport\\Transports;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Fabien Potencier \n */\nfinal clas", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport.php", "language": "php", "file_size": 8230, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Exception;\n\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass TransportException extends RuntimeException implements TransportExceptionInterface\n{\n private string $debu", "suffix": "g') ?? '';\n\n parent::__construct($message, $code, $previous);\n }\n\n public function getResponse(): ResponseInterface\n {\n return $this->response;\n }\n\n public function getDebug(): string\n {\n return $this->debug;\n }\n}\n", "middle": "g = '';\n\n public function __construct(\n string $message,\n private ResponseInterface $response,\n int $code = 0,\n ?\\Throwable $previous = null,\n ) {\n $this->debug .= $response->getInfo('debu", "meta": {"filepath": "src/Symfony/Component/Notifier/Exception/TransportException.php", "language": "php", "file_size": 997, "cut_index": 512, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\Notifier\\Event\\NotificationEvents;\nuse Symfony\\Com", "suffix": "tificationLoggerListener $logger,\n ) {\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n $this->data['events'] = $this->logger->getEvents();\n }\n\n public function getEvents()", "middle": "ponent\\Notifier\\EventListener\\NotificationLoggerListener;\n\n/**\n * @author Fabien Potencier \n */\nfinal class NotificationDataCollector extends DataCollector\n{\n public function __construct(\n private No", "meta": {"filepath": "src/Symfony/Component/Notifier/DataCollector/NotificationDataCollector.php", "language": "php", "file_size": 1227, "cut_index": 518, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Exception;\n\n/**\n * @author Fabien Potencier \n */\nclass IncompleteDsnException extends InvalidArgumentException\n{\n public function __construct(\n string $message,\n private ?string $dsn = null,\n ?\\Throwable $previous = n", "suffix": " if ($dsn) {\n $message = \\sprintf('Invalid \"%s\" notifier DSN: %s', $dsn, $message);\n }\n\n parent::__construct($message, 0, $previous);\n }\n\n public function getOriginalDsn(): string\n {\n return $this->dsn;\n }\n", "middle": "ull,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Exception/IncompleteDsnException.php", "language": "php", "file_size": 808, "cut_index": 536, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\RunInSeparateProcess;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\String\\LazyString;\n\nclass LazyStringTest extends TestCase\n{\n public function testLazyString()\n {\n $count = 0;\n $s = LazyString::fromCallable(static function () use (&$count) {\n return ++$count;", "suffix": "= LazyString::fromCallable(static fn () => []);\n\n $this->expectException(\\TypeError::class);\n $this->expectExceptionMessageMatches('{^Return value of .*\\{closure.*\\}\\(\\) passed to '.preg_quote(LazyString::class).'::fromCallable\\(\\) must be of", "middle": "\n });\n\n $this->assertSame(0, $count);\n $this->assertSame('1', (string) $s);\n $this->assertSame(1, $count);\n }\n\n #[RunInSeparateProcess]\n public function testReturnTypeError()\n {\n $s ", "meta": {"filepath": "src/Symfony/Component/String/Tests/LazyStringTest.php", "language": "php", "file_size": 3747, "cut_index": 614, "middle_length": 229}} {"prefix": "signia (insigne)\n ['saingisni', 9, true, true, 'insigne'],\n ['aingisni', 8, true, true, 'insigne'],\n\n // passersby (passerby)\n ['ybsressap', 9, true, true, 'passerby'],\n\n // nodes (node)\n ['sedon', 5, true, true, 'node'],\n\n // bacteria (bacterium)\n ['airetcab', 8, true, true, 'bacterium'],\n\n // issues (issue)\n ['seussi', 6, true, true, 'issue'],\n\n // corpora (corpus)\n ['aroproc', 7, true, true, 'corpus'],\n\n // criteri", "suffix": " // genera (genus)\n ['areneg', 6, true, true, 'genus'],\n\n // media (medium)\n ['aidem', 5, true, true, 'medium'],\n\n // memoranda (memorandum)\n ['adnaromem', 9, true, true, 'memorandum'],\n\n // phenomena (phenomenon)", "middle": "a (criterion)\n ['airetirc', 8, true, true, 'criterion'],\n\n // curricula (curriculum)\n ['alucirruc', 9, true, true, 'curriculum'],\n\n // quora (quorum)\n ['arouq', 5, true, true, 'quorum'],\n\n ", "meta": {"filepath": "src/Symfony/Component/String/Inflector/EnglishInflector.php", "language": "php", "file_size": 18135, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Notifier\\Channel\\ChannelInterface;\nuse Symfony\\Component\\Notifier\\Channel\\ChannelPolicy;\nuse Symfony\\Component\\Notifier\\Channel\\ChannelPolicyInterface;\nuse Symfony\\Component\\Notifier\\Channel\\SmsChannel;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Compo", "suffix": "ifier implements NotifierInterface\n{\n private array $adminRecipients = [];\n\n /**\n * @param ChannelInterface[]|ContainerInterface $channels\n */\n public function __construct(\n private array|ContainerInterface $channels,\n privat", "middle": "nent\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Recipient\\NoRecipient;\nuse Symfony\\Component\\Notifier\\Recipient\\RecipientInterface;\n\n/**\n * @author Fabien Potencier \n */\nfinal class Not", "meta": {"filepath": "src/Symfony/Component/Notifier/Notifier.php", "language": "php", "file_size": 4094, "cut_index": 614, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Exception;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\n\n/**\n * @author Oskar Stark \n */\nclass UnsupportedMessageTypeException extends LogicException\n{\n public function __construct(string $transport, strin", "suffix": " $message = \\sprintf(\n 'The \"%s\" transport only supports instances of \"%s\" (instance of \"%s\" given).',\n $transport,\n $supported,\n get_debug_type($given)\n );\n\n parent::__construct($message);\n }\n}\n", "middle": "g $supported, MessageInterface $given)\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Exception/UnsupportedMessageTypeException.php", "language": "php", "file_size": 831, "cut_index": 523, "middle_length": 52}} {"prefix": "molodchick@gmail.com>\n */\nclass UnsupportedSchemeException extends LogicException\n{\n private const SCHEME_TO_PACKAGE_MAP = [\n 'allmysms' => [\n 'class' => Bridge\\AllMySms\\AllMySmsTransportFactory::class,\n 'package' => 'symfony/all-my-sms-notifier',\n ],\n 'bandwidth' => [\n 'class' => Bridge\\Bandwidth\\BandwidthTransportFactory::class,\n 'package' => 'symfony/bandwidth-notifier',\n ],\n 'bluesky' => [\n 'class' => Bridge\\Blu", "suffix": "otifier',\n ],\n 'chatwork' => [\n 'class' => Bridge\\Chatwork\\ChatworkTransportFactory::class,\n 'package' => 'symfony/chatwork-notifier',\n ],\n 'clickatell' => [\n 'class' => Bridge\\Clickatell\\Clickat", "middle": "esky\\BlueskyTransportFactory::class,\n 'package' => 'symfony/bluesky-notifier',\n ],\n 'brevo' => [\n 'class' => Bridge\\Brevo\\BrevoTransportFactory::class,\n 'package' => 'symfony/brevo-n", "meta": {"filepath": "src/Symfony/Component/Notifier/Exception/UnsupportedSchemeException.php", "language": "php", "file_size": 14537, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Tests\\Slugger;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\String\\Slugger\\AsciiSlugger;\n\nclass AsciiSluggerTest extends TestCase\n{\n #[DataProvider('provideSlugTests')]\n public function testSlug(string $expected, string $st", "suffix": "rovideSlugTests(): iterable\n {\n yield ['', ''];\n yield ['foo', ' foo '];\n yield ['foo-bar', 'foo bar'];\n\n yield ['foo-bar', 'foo@bar', '-'];\n yield ['foo-at-bar', 'foo@bar', '-', 'en'];\n\n yield ['e-a', 'é$!à'];\n", "middle": "ring, string $separator = '-', ?string $locale = null)\n {\n $slugger = new AsciiSlugger();\n\n $this->assertSame($expected, (string) $slugger->slug($string, $separator, $locale));\n }\n\n public static function p", "meta": {"filepath": "src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php", "language": "php", "file_size": 4319, "cut_index": 614, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Inflector;\n\ninterface InflectorInterface\n{\n /**\n * Returns the singular forms of a string.\n *\n * If the method can't determine the form with certainty, several possible singulars are returned.\n *\n * @return string[]\n */\n", "suffix": "ay;\n\n /**\n * Returns the plural forms of a string.\n *\n * If the method can't determine the form with certainty, several possible plurals are returned.\n *\n * @return string[]\n */\n public function pluralize(string $singular): ar", "middle": " public function singularize(string $plural): arr", "meta": {"filepath": "src/Symfony/Component/String/Inflector/InflectorInterface.php", "language": "php", "file_size": 835, "cut_index": 520, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Transport;\n\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\Notifier\\Event\\FailedMessageEvent;\nuse Symfony\\Component\\Notifier\\Event\\MessageEvent;\nuse Symfony\\Component\\Notifier\\Event\\SentMessageEvent;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony", "suffix": "or Fabien Potencier \n */\nabstract class AbstractTransport implements TransportInterface\n{\n protected const HOST = 'localhost';\n\n protected ?string $host = null;\n protected ?int $port = null;\n\n public function __construct(\n ", "middle": "\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @auth", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport/AbstractTransport.php", "language": "php", "file_size": 2717, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\String\\Tests\\Inflector;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\String\\Inflector\\FrenchInflector;\n\nclass FrenchInflectorTest extends TestCase\n{\n public static function pluralizeProvider()\n {\n return [\n // Le pluriel par défaut\n ['voiture', 'voitures']", "suffix": "\n ['héros', 'héros'],\n ['nez', 'nez'],\n ['rictus', 'rictus'],\n ['sans', 'sans'],\n ['souris', 'souris'],\n ['tas', 'tas'],\n ['toux', 'toux'],\n\n // Les mots finissant en e", "middle": ",\n // special characters\n ['œuf', 'œufs'],\n ['oeuf', 'oeufs'],\n\n // Les mots finissant par s, x, z sont invariables en nombre\n ['bois', 'bois'],\n ['fils', 'fils'],", "meta": {"filepath": "src/Symfony/Component/String/Tests/Inflector/FrenchInflectorTest.php", "language": "php", "file_size": 5077, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Transport;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\MissingRequiredOptionException;\n\n/**\n * @author Fabien Potencier \n * @author Oskar Stark \n */\nfinal class Dsn\n{\n private string $scheme;\n private string $host;\n pr", "suffix": "ng $dsn)\n {\n $this->originalDsn = $dsn;\n\n if (false === $params = parse_url($dsn)) {\n throw new InvalidArgumentException('The notifier DSN is invalid.');\n }\n\n if (!isset($params['scheme'])) {\n throw new ", "middle": "ivate ?string $user;\n private ?string $password;\n private ?int $port;\n private ?string $path;\n private array $options = [];\n private string $originalDsn;\n\n public function __construct(#[\\SensitiveParameter] stri", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport/Dsn.php", "language": "php", "file_size": 3060, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Transport;\n\nuse Symfony\\Component\\Notifier\\Event\\MessageEvent;\nuse Symfony\\Component\\Notifier\\Event\\SentMessageEvent;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\NullMessage;\nuse Symfony\\Component\\", "suffix": "struct(\n private ?EventDispatcherInterface $dispatcher = null,\n ) {\n }\n\n public function send(MessageInterface $message): SentMessage\n {\n $message = new NullMessage($message);\n $sentMessage = new SentMessage($message, (stri", "middle": "Notifier\\Message\\SentMessage;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass NullTransport implements TransportInterface\n{\n public function __con", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport/NullTransport.php", "language": "php", "file_size": 1457, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Transport;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\RuntimeException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportExceptionInterface;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\n\n/**\n * Uses several Transports ", "suffix": " \\SplObjectStorage $deadTransports;\n private array $transports = [];\n private int $retryPeriod;\n private int $cursor = -1;\n\n /**\n * @param TransportInterface[] $transports\n */\n public function __construct(array $transports, int $retr", "middle": "using a round robin algorithm.\n *\n * @author Fabien Potencier \n */\nclass RoundRobinTransport implements TransportInterface\n{\n /**\n * @var \\SplObjectStorage\n */\n private", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport/RoundRobinTransport.php", "language": "php", "file_size": 4141, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Transport;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\n\n/**\n * @author Fabien Potencier $transport) {\n $this->transports[$name] = $transport;\n }\n }\n\n public function __toString(): string\n {\n ", "middle": "mfony.com>\n */\nfinal class Transports implements TransportInterface\n{\n /**\n * @var array\n */\n private array $transports = [];\n\n /**\n * @param iterable $", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport/Transports.php", "language": "php", "file_size": 2404, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Message;\n\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Fabien Potencier \n */\nclass ChatMessage implements MessageInterface, FromNotificationInterface\n{\n private ?string $transport = null;\n private ?Notificat", "suffix": "ication): self\n {\n $message = new self($notification->getSubject());\n $message->notification = $notification;\n\n return $message;\n }\n\n /**\n * @return $this\n */\n public function subject(string $subject): static\n {\n", "middle": "ion $notification = null;\n\n public function __construct(\n private string $subject,\n private ?MessageOptionsInterface $options = null,\n ) {\n }\n\n public static function fromNotification(Notification $notif", "meta": {"filepath": "src/Symfony/Component/Notifier/Message/ChatMessage.php", "language": "php", "file_size": 1925, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Message;\n\nuse Symfony\\Bridge\\Twig\\Mime\\NotificationEmail;\nuse Symfony\\Component\\Mailer\\Envelope;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\RawMessage;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Notification\\N", "suffix": "ification $notification = null;\n\n public function __construct(\n private RawMessage $message,\n private ?Envelope $envelope = null,\n ) {\n }\n\n public static function fromNotification(Notification $notification, EmailRecipientInterfac", "middle": "otification;\nuse Symfony\\Component\\Notifier\\Recipient\\EmailRecipientInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass EmailMessage implements MessageInterface, FromNotificationInterface\n{\n private ?Not", "meta": {"filepath": "src/Symfony/Component/Notifier/Message/EmailMessage.php", "language": "php", "file_size": 3458, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Message;\n\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Tomas Norkūnas \n */\nclass PushMessage implements MessageInterface, FromNotificationInterface\n{\n private ?string $transport = null;\n private ?Notification $notification = null", "suffix": "on $notification): self\n {\n $message = new self($notification->getSubject(), $notification->getContent());\n $message->notification = $notification;\n\n return $message;\n }\n\n public function getRecipientId(): ?string\n {\n ", "middle": ";\n\n public function __construct(\n private string $subject,\n private string $content,\n private ?MessageOptionsInterface $options = null,\n ) {\n }\n\n public static function fromNotification(Notificati", "meta": {"filepath": "src/Symfony/Component/Notifier/Message/PushMessage.php", "language": "php", "file_size": 2080, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Message;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Recipient\\SmsRecipientInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass SmsMessage implements Mes", "suffix": " private string $from = '',\n private ?MessageOptionsInterface $options = null,\n ) {\n if ('' === $phone) {\n throw new InvalidArgumentException(\\sprintf('\"%s\" needs a phone number, it cannot be empty.', __CLASS__));\n ", "middle": "sageInterface, FromNotificationInterface\n{\n private ?string $transport = null;\n private ?Notification $notification = null;\n\n public function __construct(\n private string $phone,\n private string $subject,\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Message/SmsMessage.php", "language": "php", "file_size": 2940, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Notifier\\Event\\MessageEvent;\nuse Symfony\\Component\\Notifier\\Event\\NotificationEvents;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * @author", "suffix": "nts = new NotificationEvents();\n }\n\n public function reset(): void\n {\n $this->events = new NotificationEvents();\n }\n\n public function onNotification(MessageEvent $event): void\n {\n $this->events->add($event);\n }\n\n publi", "middle": " Fabien Potencier \n */\nclass NotificationLoggerListener implements EventSubscriberInterface, ResetInterface\n{\n private NotificationEvents $events;\n\n public function __construct()\n {\n $this->eve", "meta": {"filepath": "src/Symfony/Component/Notifier/EventListener/NotificationLoggerListener.php", "language": "php", "file_size": 1254, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests;\n\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Notifier\\Chatter;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Comp", "suffix": "usInterface $bus;\n\n protected function setUp(): void\n {\n $this->transport = $this->createMock(TransportInterface::class);\n $this->bus = $this->createMock(MessageBusInterface::class);\n }\n\n public function testSendWithoutBus()\n {", "middle": "onent\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\n\nclass ChatterTest extends TestCase\n{\n private MockObject&TransportInterface $transport;\n private MockObject&MessageB", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/ChatterTest.php", "language": "php", "file_size": 2102, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests;\n\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier", "suffix": "otected function setUp(): void\n {\n $this->transport = $this->createMock(TransportInterface::class);\n }\n\n public function testSendWithoutBus()\n {\n $message = new DummyMessage();\n $sentMessage = new SentMessage($message, 'any", "middle": "\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Component\\Notifier\\Texter;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\n\nclass TexterTest extends TestCase\n{\n private MockObject&TransportInterface $transport;\n\n pr", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/TexterTest.php", "language": "php", "file_size": 1935, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier;\n\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Notifier\\Event\\MessageEvent;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Tra", "suffix": "\n private TransportInterface $transport,\n private ?MessageBusInterface $bus = null,\n private ?EventDispatcherInterface $dispatcher = null,\n ) {\n }\n\n public function __toString(): string\n {\n return 'texter';\n }\n\n ", "middle": "nsport\\TransportInterface;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * @author Fabien Potencier \n */\nfinal class Texter implements TexterInterface\n{\n public function __construct(", "meta": {"filepath": "src/Symfony/Component/Notifier/Texter.php", "language": "php", "file_size": 1449, "cut_index": 524, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Transport;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\n\n/**\n * @author Fabien Potencier \n */\nfinal class NullTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): ", "suffix": "Scheme()) {\n return new NullTransport($this->dispatcher);\n }\n\n throw new UnsupportedSchemeException($dsn, 'null', $this->getSupportedSchemes());\n }\n\n protected function getSupportedSchemes(): array\n {\n return ['null", "middle": "NullTransport\n {\n if ('null' === $dsn->get", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport/NullTransportFactory.php", "language": "php", "file_size": 840, "cut_index": 520, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Notification;\n\nuse Psr\\Log\\LogLevel;\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\Notifier\\Recipient\\RecipientInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass Notification\n{\n private const LEVELS = [\n LogLevel::DEBUG => 100,\n LogLevel::INFO => 200,\n LogLevel::NOTICE => 250,\n LogLevel::WARNING => 300,\n LogLevel::ERROR => 400,\n Lo", "suffix": "medium';\n public const IMPORTANCE_LOW = 'low';\n\n private array $channels = [];\n private string $subject = '';\n private string $content = '';\n private string $emoji = '';\n private ?FlattenException $exception = null;\n private string $ex", "middle": "gLevel::CRITICAL => 500,\n LogLevel::ALERT => 550,\n LogLevel::EMERGENCY => 600,\n ];\n\n public const IMPORTANCE_URGENT = 'urgent';\n public const IMPORTANCE_HIGH = 'high';\n public const IMPORTANCE_MEDIUM = '", "meta": {"filepath": "src/Symfony/Component/Notifier/Notification/Notification.php", "language": "php", "file_size": 5295, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Message;\n\n/**\n * @author Jan Schädlich \n */\nfinal class NullMessage implements MessageInterface\n{\n private MessageInterface $decoratedMessage;\n\n public function __construct(MessageInterface $message)\n ", "suffix": "turn $this->decoratedMessage->getSubject();\n }\n\n public function getOptions(): ?MessageOptionsInterface\n {\n return $this->decoratedMessage->getOptions();\n }\n\n public function getTransport(): ?string\n {\n return $this->decorat", "middle": " {\n $this->decoratedMessage = $message;\n }\n\n public function getRecipientId(): ?string\n {\n return $this->decoratedMessage->getRecipientId();\n }\n\n public function getSubject(): string\n {\n re", "meta": {"filepath": "src/Symfony/Component/Notifier/Message/NullMessage.php", "language": "php", "file_size": 1042, "cut_index": 513, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Recipient;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\n\n/**\n * @author Fabien Potencier \n * @author Jan Schädlich \n */\nclass Recipient implements EmailRecipientInterface, SmsR", "suffix": "dArgumentException(\\sprintf('\"%s\" needs an email or a phone but both cannot be empty.', static::class));\n }\n\n $this->email = $email;\n $this->phone = $phone;\n }\n\n /**\n * @return $this\n */\n public function email(string $", "middle": "ecipientInterface\n{\n use EmailRecipientTrait;\n use SmsRecipientTrait;\n\n public function __construct(string $email = '', string $phone = '')\n {\n if ('' === $email && '' === $phone) {\n throw new Invali", "meta": {"filepath": "src/Symfony/Component/Notifier/Recipient/Recipient.php", "language": "php", "file_size": 1335, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Channel\\SmsChannel;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Not", "suffix": "elDoesNotHaveRecipient()\n {\n $this->expectException(LogicException::class);\n $this->expectExceptionMessage('The \"sms\" channel needs a Recipient.');\n\n $notifier = new Notifier(['sms' => new SmsChannel(new NullTransport())]);\n ", "middle": "ifier;\nuse Symfony\\Component\\Notifier\\Transport\\NullTransport;\n\n/**\n * @author Smaïne Milianni \n */\nfinal class NotifierTest extends TestCase\n{\n public function testItThrowAnExplicitErrorIfAnSmsChann", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/NotifierTest.php", "language": "php", "file_size": 1076, "cut_index": 515, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Transport;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\n\n/**\n * Uses several Transports using a failover algorithm.\n *\n * @author Fabien Potencier \n */\nclass FailoverTransport extends RoundRobinTransport\n{", "suffix": "s->currentTransport)) {\n $this->currentTransport = parent::getNextTransport($message);\n }\n\n return $this->currentTransport;\n }\n\n protected function getInitialCursor(): int\n {\n return 0;\n }\n\n protected function", "middle": "\n private ?TransportInterface $currentTransport = null;\n\n protected function getNextTransport(MessageInterface $message): ?TransportInterface\n {\n if (null === $this->currentTransport || $this->isTransportDead($thi", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport/FailoverTransport.php", "language": "php", "file_size": 1058, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Message;\n\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Ahmed Ghanem \n */\nclass DesktopMessage implements MessageInterface, FromNotificationInterface\n{\n private ?string $transport = null;\n private ?Notification $notification = ", "suffix": "cation $notification): self\n {\n $message = new self($notification->getSubject(), $notification->getContent());\n\n $message->setNotification($notification);\n\n return $message;\n }\n\n public function getSubject(): string\n {\n ", "middle": "null;\n\n public function __construct(\n private string $subject,\n private string $content,\n private ?MessageOptionsInterface $options = null,\n ) {\n }\n\n public static function fromNotification(Notifi", "meta": {"filepath": "src/Symfony/Component/Notifier/Message/DesktopMessage.php", "language": "php", "file_size": 2443, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedException;\nuse Symfony\\Component\\Notifier\\Notification\\Notifica", "suffix": "e\n{\n public function __construct(\n private Notifier $notifier,\n ) {\n }\n\n public function onMessageFailed(WorkerMessageFailedEvent $event): void\n {\n if ($event->willRetry()) {\n return;\n }\n\n $throwable = ", "middle": "tion;\nuse Symfony\\Component\\Notifier\\Notifier;\n\n/**\n * Sends a rejected message to the notifier.\n *\n * @author Fabien Potencier \n */\nclass SendFailedMessageToNotifierListener implements EventSubscriberInterfac", "meta": {"filepath": "src/Symfony/Component/Notifier/EventListener/SendFailedMessageToNotifierListener.php", "language": "php", "file_size": 1799, "cut_index": 537, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Transport;\n\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Exception\\MissingRequiredOptionException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\n\n/**\n * @author Konstantin Myakshin \n */\ninterface TransportFactoryInte", "meta": {"filepath": "src/Symfony/Component/Notifier/Transport/TransportFactoryInterface.php", "language": "php", "file_size": 844, "cut_index": 535, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Message;\n\n/**\n * @author Jérémy Romey \n */\nclass SentMessage\n{\n private ?string $messageId = null;\n\n /**\n * @param array $info attaches any Transport-related information to the sent message\n */\n public function", "suffix": "original;\n }\n\n public function getTransport(): string\n {\n return $this->transport;\n }\n\n public function setMessageId(string $id): void\n {\n $this->messageId = $id;\n }\n\n public function getMessageId(): ?string\n {\n ", "middle": " __construct(\n private MessageInterface $original,\n private string $transport,\n private array $info = [],\n ) {\n }\n\n public function getOriginalMessage(): MessageInterface\n {\n return $this->", "meta": {"filepath": "src/Symfony/Component/Notifier/Message/SentMessage.php", "language": "php", "file_size": 1420, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SimpleTextin;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Sy", "suffix": "nInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author gnito-org \n */\nfinal class SimpleTextinTransport extends AbstractTransport\n{\n protected const HOST = 'api-app2.simpletexting.com';\n\n publi", "middle": "mfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptio", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SimpleTextin/SimpleTextinTransport.php", "language": "php", "file_size": 3405, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mobyt;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Bastien Durand getSupportedSchemes());\n }\n\n $accountSid = $this->getUser($dsn);\n $authToken = $this->getPassword($dsn);\n $from = $dsn->getRequiredOption('from');\n $typeQuality = $dsn->", "middle": "com>\n */\nfinal class MobytTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): MobytTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('mobyt' !== $scheme) {\n throw n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mobyt/MobytTransportFactory.php", "language": "php", "file_size": 1390, "cut_index": 524, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Mailer;\n\nuse Symfony\\Component\\Mailer\\Envelope;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Mime\\RawMessage;\n\n/**\n * @author Oskar Stark \n */\nclass DummyMailer implements MailerInte", "suffix": "ivate RawMessage $sentMessage;\n\n public function send(RawMessage $message, ?Envelope $envelope = null): void\n {\n $this->sentMessage = $message;\n }\n\n public function getSentEmail(): RawMessage\n {\n return $this->sentMessage;\n ", "middle": "rface\n{\n pr", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Mailer/DummyMailer.php", "language": "php", "file_size": 787, "cut_index": 513, "middle_length": 14}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Transport;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Jan Schädlich \n */\nclass DummyMessage implements MessageInterface\n{\n public function getRecipien", "suffix": " }\n\n public function getSubject(): string\n {\n return 'subject';\n }\n\n public function getOptions(): ?MessageOptionsInterface\n {\n return null;\n }\n\n public function getTransport(): ?string\n {\n return null;\n }", "middle": "tId(): ?string\n {\n return 'recipient_id';\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Transport/DummyMessage.php", "language": "php", "file_size": 871, "cut_index": 559, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\RuntimeException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportExceptionInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\FailoverTransport;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInt", "suffix": "\n public function testToString()\n {\n $t1 = $this->createMock(TransportInterface::class);\n $t1->expects($this->once())->method('__toString')->willReturn('t1://local');\n\n $t2 = $this->createMock(TransportInterface::class);\n ", "middle": "erface;\n\n#[Group('time-sensitive')]\nclass FailoverTransportTest extends TestCase\n{\n public function testSendNoTransports()\n {\n $this->expectException(LogicException::class);\n\n new FailoverTransport([]);\n }\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Transport/FailoverTransportTest.php", "language": "php", "file_size": 6421, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Transport\\NullTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * @author Jan Schädlich \n */\nclass NullTransportTest extends TestCase\n{\n public function testToStr", "suffix": "ing) (new NullTransport()));\n }\n\n public function testSend()\n {\n $nullTransport = new NullTransport(\n $eventDispatcherMock = $this->createMock(EventDispatcherInterface::class)\n );\n\n $eventDispatcherMock->expects($th", "middle": "ing()\n {\n $this->assertEquals('null', (str", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Transport/NullTransportTest.php", "language": "php", "file_size": 986, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Message;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Message\\DesktopMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Ahmed Ghanem \n */\nclass DesktopMessageTest extends TestCas", "suffix": ";\n }\n\n public function testSetSubject()\n {\n $message = new DesktopMessage('Hello', 'World');\n\n $message->setSubject('dlrow olleH');\n\n $this->assertSame('dlrow olleH', $message->getSubject());\n }\n\n public function testSet", "middle": "e\n{\n public function testCanBeConstructed()\n {\n $message = new DesktopMessage('Hello', 'World');\n\n $this->assertSame('Hello', $message->getSubject());\n $this->assertSame('World', $message->getContent())", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Message/DesktopMessageTest.php", "language": "php", "file_size": 1829, "cut_index": 537, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Message;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Jan Schädlich \n */\nclass DummyMessageWithTransport implements MessageInterface\n{\n publ", "suffix": "return 'recipient_id';\n }\n\n public function getSubject(): string\n {\n return 'subject';\n }\n\n public function getOptions(): ?MessageOptionsInterface\n {\n return null;\n }\n\n public function getTransport(): ?string\n {\n ", "middle": "ic function getRecipientId(): ?string\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Message/DummyMessageWithTransport.php", "language": "php", "file_size": 889, "cut_index": 547, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Message;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\NullMessage;\n\n/**\n * @author Jan Schädlich assertSame($message->getSubject(), $nullMessage->getSubject());\n $this->assertSame($message->getRecipientId(), $nullMessage->getRecipientId());\n $this->assertSame($message->getOptions(), $nullMessage->getOptions());\n $th", "middle": "@sensiolabs.de>\n */\nclass NullMessageTest extends TestCase\n{\n #[DataProvider('messageDataProvider')]\n public function testCanBeConstructed(MessageInterface $message)\n {\n $nullMessage = new NullMessage($message);\n\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Message/NullMessageTest.php", "language": "php", "file_size": 1265, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Message;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\n\nclass SentMessageTest extends TestCase\n{\n public function test()\n {\n ", "suffix": "e->getOriginalMessage());\n $this->assertSame('any', $sentMessage->getTransport());\n $this->assertSame('the_id', $sentMessage->getMessageId());\n $this->assertSame(['foo' => 'bar'], $sentMessage->getInfo());\n $this->assertSame('ba", "middle": " $originalMessage = new DummyMessage();\n\n $sentMessage = new SentMessage($originalMessage, 'any', ['foo' => 'bar']);\n $sentMessage->setMessageId('the_id');\n\n $this->assertSame($originalMessage, $sentMessag", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Message/SentMessageTest.php", "language": "php", "file_size": 1109, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Recipient;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Recipient\\Recipient;\n\n/**\n * @author Jan Schädlich assertSame($email, $recipient->getEmail());\n ", "middle": "sensiolabs.de>\n */\nclass RecipientTest extends TestCase\n{\n public function testCannotBeConstructedWithoutEmailAndWithoutPhone()\n {\n $this->expectException(InvalidArgumentException::class);\n\n new Recipient('', ", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Recipient/RecipientTest.php", "language": "php", "file_size": 1727, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Event;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Event\\SentMessageEvent;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SentMessag", "suffix": " {\n $this->assertEquals($event, new SentMessageEvent($message));\n }\n\n #[DataProvider('messagesProvider')]\n public function testGetMessage(SentMessage $message, SentMessageEvent $event)\n {\n $this->assertSame($message, $event->get", "middle": "e;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\n\nfinal class SentMessageEventTest extends TestCase\n{\n #[DataProvider('messagesProvider')]\n public function testConstruct(SentMessage $message, SentMessageEvent $event)\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Event/SentMessageEventTest.php", "language": "php", "file_size": 1356, "cut_index": 524, "middle_length": 229}} {"prefix": "Unit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClassExistsMock;\nuse Symfony\\Component\\Notifier\\Bridge;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n#[RunTestsInSeparateProcesses]\nfinal class UnsupportedSchemeExceptionTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n ClassExistsMock::register(__CLASS__);\n ClassExistsMock::withMockedClasses([\n Bridge\\AllMySms\\AllMySmsTransportF", "suffix": "false,\n Bridge\\Brevo\\BrevoTransportFactory::class => false,\n Bridge\\Chatwork\\ChatworkTransportFactory::class => false,\n Bridge\\ClickSend\\ClickSendTransportFactory::class => false,\n Bridge\\Clickatell\\ClickatellTra", "middle": "actory::class => false,\n Bridge\\AmazonSns\\AmazonSnsTransportFactory::class => false,\n Bridge\\Bandwidth\\BandwidthTransportFactory::class => false,\n Bridge\\Bluesky\\BlueskyTransportFactory::class => ", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Exception/UnsupportedSchemeExceptionTest.php", "language": "php", "file_size": 12482, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Channel;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFounda", "suffix": "strapFlashMessageImportanceMapper;\nuse Symfony\\Component\\Notifier\\FlashMessage\\DefaultFlashMessageImportanceMapper;\nuse Symfony\\Component\\Notifier\\FlashMessage\\FlashMessageImportanceMapperInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;", "middle": "tion\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\Notifier\\Channel\\BrowserChannel;\nuse Symfony\\Component\\Notifier\\Exception\\FlashMessageImportanceMapperException;\nuse Symfony\\Component\\Notifier\\FlashMessage\\Boot", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Channel/BrowserChannelTest.php", "language": "php", "file_size": 3861, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\MissingRequiredOptionException;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\nfinal class DsnTest extends TestCase\n{\n #[DataProvider('constructProvider')]\n public function testConstruct(string $dsnString, string $scheme, string $", "suffix": " $this->assertSame($scheme, $dsn->getScheme());\n $this->assertSame($host, $dsn->getHost());\n $this->assertSame($user, $dsn->getUser());\n $this->assertSame($password, $dsn->getPassword());\n $this->assertSame($port, $dsn->getPort(", "middle": "host, ?string $user = null, ?string $password = null, ?int $port = null, array $options = [], ?string $path = null)\n {\n $dsn = new Dsn($dsnString);\n $this->assertSame($dsnString, $dsn->getOriginalDsn());\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Transport/DsnTest.php", "language": "php", "file_size": 8318, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Noti", "suffix": "yTest extends TestCase\n{\n private NullTransportFactory $nullTransportFactory;\n\n protected function setUp(): void\n {\n $this->nullTransportFactory = new NullTransportFactory(\n new EventDispatcher(),\n new MockHttpClient()", "middle": "fier\\Transport\\Dsn;\nuse Symfony\\Component\\Notifier\\Transport\\NullTransport;\nuse Symfony\\Component\\Notifier\\Transport\\NullTransportFactory;\n\n/**\n * @author Jan Schädlich \n */\nclass NullTransportFactor", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Transport/NullTransportFactoryTest.php", "language": "php", "file_size": 1445, "cut_index": 524, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Message;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Jan Schädlich \n */\nclass DummyMessageWithoutTransport implements MessageInterface\n{\n p", "suffix": " return 'recipient_id';\n }\n\n public function getSubject(): string\n {\n return 'subject';\n }\n\n public function getOptions(): ?MessageOptionsInterface\n {\n return null;\n }\n\n public function getTransport(): ?string\n {\n", "middle": "ublic function getRecipientId(): ?string\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Message/DummyMessageWithoutTransport.php", "language": "php", "file_size": 885, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Message;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Tomas Norkūnas \n */\nclass PushMessageTest extends TestCase\n{\n ", "suffix": " public function testSetSubject()\n {\n $message = new PushMessage('Hello', 'World');\n $message->subject('dlrow olleH');\n\n $this->assertSame('dlrow olleH', $message->getSubject());\n }\n\n public function testSetContent()\n {\n ", "middle": " public function testCanBeConstructed()\n {\n $message = new PushMessage('Hello', 'World');\n\n $this->assertSame('Hello', $message->getSubject());\n $this->assertSame('World', $message->getContent());\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Message/PushMessageTest.php", "language": "php", "file_size": 1818, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Event;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Event\\FailedMessageEvent;\nuse Symfony\\Component\\Notifier\\Event\\MessageEvent;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Messag", "suffix": "ractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\nclass FailedMessageEventTest extends TestCase\n{\n #[DataProvider('messagesProvider')]\n public function testConstruct(MessageInterface $message, \\Throwable $error, FailedMe", "middle": "e\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Component\\Notifier\\Transport\\Abst", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Event/FailedMessageEventTest.php", "language": "php", "file_size": 3682, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\n", "suffix": "s->createMock(TransportInterface::class),\n ]);\n\n $message = new ChatMessage('subject');\n\n $one->method('supports')->willReturnMap([\n [$message, true],\n ]);\n\n $one->expects($this->once())->method('send')->willRe", "middle": "use Symfony\\Component\\Notifier\\Transport\\Transports;\n\nclass TransportsTest extends TestCase\n{\n public function testSendToTransportDefinedByMessage()\n {\n $transports = new Transports([\n 'one' => $one = $thi", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Transport/TransportsTest.php", "language": "php", "file_size": 4091, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Channel;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Channel\\AbstractChannel;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\No", "suffix": " $this->expectException(LogicException::class);\n\n new DummyChannel();\n }\n}\n\nclass DummyChannel extends AbstractChannel\n{\n public function notify(Notification $notification, RecipientInterface $recipient, ?string $transportName = null): v", "middle": "tifier\\Recipient\\RecipientInterface;\n\n/**\n * @author Jan Schädlich \n */\nclass AbstractChannelTest extends TestCase\n{\n public function testChannelCannotBeConstructedWithoutTransportAndBus()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Channel/AbstractChannelTest.php", "language": "php", "file_size": 1151, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Noti", "suffix": " * @author Mathieu Piot \n */\nfinal class DiscordTransport extends AbstractTransport\n{\n protected const HOST = 'discord.com';\n\n public function __construct(\n #[\\SensitiveParameter] private string $token,\n private str", "middle": "fier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/DiscordTransport.php", "language": "php", "file_size": 3839, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Message;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Message\\EmailMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Recipient\\Recipient;\n\n/**\n * @author Jan Schädlich \n */\nclass EmailMessageTest extends ", "suffix": "ilOnCreationFromNotification()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('\"Symfony\\Component\\Notifier\\Message\\EmailMessage\" needs an email, it cannot be empty.');\n\n EmailMessage::fr", "middle": "TestCase\n{\n public function testEnsureNonEmptyEma", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Message/EmailMessageTest.php", "language": "php", "file_size": 969, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Channel;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Channel\\ChannelPolicy;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\n\n/**\n * @author Jan Schädlich ['chat']]);\n $channelPolicy->getChannels('low');\n }\n\n #[DataProvider('provideValidPolicies')]\n public function testCanRetrieveChannels(array $policy, string $importance, array $expectedChannels)\n {\n ", "middle": "sensiolabs.de>\n */\nclass ChannelPolicyTest extends TestCase\n{\n public function testCannotRetrieveChannelsUsingUnavailableImportance()\n {\n $this->expectException(InvalidArgumentException::class);\n\n $channelPoli", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Channel/ChannelPolicyTest.php", "language": "php", "file_size": 1512, "cut_index": 537, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Event;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * @author Fabien Potencier \n */\nfinal class MessageEvent extends Event\n{\n public function __construc", "suffix": "vate MessageInterface $message,\n private bool $queued = false,\n ) {\n }\n\n public function getMessage(): MessageInterface\n {\n return $this->message;\n }\n\n public function isQueued(): bool\n {\n return $this->queued;\n ", "middle": "t(\n pri", "meta": {"filepath": "src/Symfony/Component/Notifier/Event/MessageEvent.php", "language": "php", "file_size": 789, "cut_index": 514, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mercure;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Mathias Arlaud \n */\nfinal class MercureOptions implements MessageOptionsInterface\n{\n private ?array $topics;\n\n /**\n * @param string|string[]|null $topics\n ", "suffix": "tify?: bool,\n * requireInteraction?: bool,\n * silent?: bool,\n * tag?: string,\n * timestamp?: int,\n * vibrate?: int|list,\n * }|null $content\n */\n public function __construct(\n string|array|null ", "middle": " * @param array{\n * badge?: string,\n * body?: string,\n * data?: mixed,\n * dir?: 'auto'|'ltr'|'rtl',\n * icon?: string,\n * image?: string,\n * lang?: string,\n * reno", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mercure/MercureOptions.php", "language": "php", "file_size": 2689, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mercure;\n\nuse Symfony\\Component\\Mercure\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mercure\\HubRegistry;\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nus", "suffix": "\n/**\n * @author Mathias Arlaud \n */\nfinal class MercureTransportFactory extends AbstractTransportFactory\n{\n public function __construct(\n private HubRegistry $registry,\n ?EventDispatcherInterface $dispatcher = nul", "middle": "e Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransportFactory.php", "language": "php", "file_size": 1913, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mercure\\Tests;\n\nuse Symfony\\Component\\Mercure\\HubInterface;\nuse Symfony\\Component\\Mercure\\HubRegistry;\nuse Symfony\\Component\\Notifier\\Bridge\\Mercure\\MercureTransportFactory;\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Test\\Abstra", "suffix": " function createFactory(): MercureTransportFactory\n {\n $hub = $this->createStub(HubInterface::class);\n $hubRegistry = new HubRegistry($hub, ['hubId' => $hub]);\n\n return new MercureTransportFactory($hubRegistry);\n }\n\n public st", "middle": "ctTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Mathias Arlaud \n */\nfinal class MercureTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n public", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureTransportFactoryTest.php", "language": "php", "file_size": 2350, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mercure\\Tests;\n\nuse Symfony\\Component\\Mercure\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mercure\\Exception\\RuntimeException as MercureRuntimeException;\nuse Symfony\\Component\\Mercure\\HubInterface;\nuse Symfony\\Component\\Mercure\\Jwt\\StaticTokenProvider;\nuse Symfony\\Component\\Mercure\\MockHub;\nuse Symfony\\Component\\Mercure\\Update;\nuse Symfony\\Component\\Notifier\\Bridge\\Mercure\\MercureOptions;\nuse Symfony\\Component\\Notifie", "suffix": "fony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Tran", "middle": "r\\Bridge\\Mercure\\MercureTransport;\nuse Symfony\\Component\\Notifier\\Bridge\\Mercure\\Tests\\Fixtures\\DummyHub;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\RuntimeException;\nuse Sym", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureTransportTest.php", "language": "php", "file_size": 7267, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfon", "suffix": "terface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Jeroen Spee \n */\nfinal class FirebaseTransport extends AbstractTransport\n{\n protected const HOST = 'fcm.googleapis.com/fcm/send';\n\n public func", "middle": "y\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionIn", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/FirebaseTransport.php", "language": "php", "file_size": 3678, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase\\Notification;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Firebase\\FirebaseOptions;\n\nfinal class AndroidNotification extends FirebaseOptions\n{\n /**\n * @return $this\n */\n public function channelId(string $channelId): static\n {\n $this->options['android_ch", "suffix": " @return $this\n */\n public function sound(string $sound): static\n {\n $this->options['sound'] = $sound;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function tag(string $tag): static\n {\n $this->opt", "middle": "annel_id'] = $channelId;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function icon(string $icon): static\n {\n $this->options['icon'] = $icon;\n\n return $this;\n }\n\n /**\n *", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/Notification/AndroidNotification.php", "language": "php", "file_size": 2297, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Firebase\\FirebaseOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Firebase\\F", "suffix": "stCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Oskar Stark \n */\nfinal class FirebaseT", "middle": "irebaseTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTe", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/Tests/FirebaseTransportTest.php", "language": "php", "file_size": 2760, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase\\Tests\\Notification;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Firebase\\Notification\\IOSNotification;\n\nfinal class IOSNotificationTest extends TestCase\n{\n public function testIOSNotificationOptions()\n {\n $notification = new IOSNoti", "suffix": " 'title' => 'Test Title',\n 'body' => 'Test Body',\n ],\n 'data' => ['key' => 'value'],\n ], $notification->toArray());\n\n $this->assertSame('device_token', $notification->getRecipientId());\n }", "middle": "fication('device_token', [\n 'title' => 'Test Title',\n 'body' => 'Test Body',\n ], ['key' => 'value']);\n\n $this->assertSame([\n 'to' => 'device_token',\n 'notification' => [\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/Tests/Notification/IOSNotificationTest.php", "language": "php", "file_size": 2893, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Tests\\Message;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\n\n/**\n * @author Jan Schädlich \n */\nclass SmsMessageTest extends TestCase\n{\n public function testCanBeConstructed()\n {\n $message = new SmsMessage('", "suffix": "on testCanBeConstructedWithFrom()\n {\n $message = new SmsMessage('+3312345678', 'subject', 'foo');\n\n $this->assertSame('subject', $message->getSubject());\n $this->assertSame('+3312345678', $message->getPhone());\n $this->assert", "middle": "+3312345678', 'subject');\n\n $this->assertSame('subject', $message->getSubject());\n $this->assertSame('+3312345678', $message->getPhone());\n $this->assertSame('', $message->getFrom());\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Component/Notifier/Tests/Message/SmsMessageTest.php", "language": "php", "file_size": 2350, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Event;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass NotificationEvents\n{\n private array $events = [];\n private array $transports = [];\n\n public function add(MessageEvent $event", "suffix": ";\n }\n\n /**\n * @return MessageEvent[]\n */\n public function getEvents(?string $name = null): array\n {\n if (null === $name) {\n return $this->events;\n }\n\n $events = [];\n foreach ($this->events as $even", "middle": "): void\n {\n $this->events[] = $event;\n $this->transports[(string) $event->getMessage()->getTransport()] = true;\n }\n\n public function getTransports(): array\n {\n return array_keys($this->transports)", "meta": {"filepath": "src/Symfony/Component/Notifier/Event/NotificationEvents.php", "language": "php", "file_size": 1509, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mercure\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Mercure\\MercureOptions;\n\nfinal class MercureOptionsTest extends TestCase\n{\n public function testConstructWithDefaults()\n {\n $this->assertSame([", "suffix": "\n\n public function testConstructWithParameters()\n {\n $options = (new MercureOptions('/topic/1', true, 'id', 'type', 1, ['tag' => '1234', 'body' => 'TEST']));\n\n $this->assertSame([\n 'topics' => ['/topic/1'],\n 'priva", "middle": "\n 'topics' => null,\n 'private' => false,\n 'id' => null,\n 'type' => null,\n 'retry' => null,\n 'content' => null,\n ], (new MercureOptions())->toArray());\n }", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureOptionsTest.php", "language": "php", "file_size": 1373, "cut_index": 524, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mercure\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Mercure\\HubInterface;\nuse Symfony\\Component\\Mercure\\Jwt\\TokenFactoryInterface;\nuse Symfony\\Component\\Mercure\\Jwt\\TokenProviderInterface;\nuse Symfony\\Component\\Mercure\\Update;\n\nclass DummyHub implements HubInterface\n{\n public fu", "suffix": "tion getPublicUrl(): string\n {\n }\n\n public function getProvider(): TokenProviderInterface\n {\n }\n\n public function getFactory(): ?TokenFactoryInterface\n {\n return null;\n }\n\n public function publish(Update $update): string\n ", "middle": "nction getUrl(): string\n {\n }\n\n public func", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mercure/Tests/Fixtures/DummyHub.php", "language": "php", "file_size": 880, "cut_index": 559, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Jeroen Spee getSupportedSchemes());\n }\n\n $token = \\sprintf('%s:%s', $this->getUser($dsn), $this->getPassword($dsn));\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost()", "middle": "eroeny>\n */\nfinal class FirebaseTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): FirebaseTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('firebase' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/FirebaseTransportFactory.php", "language": "php", "file_size": 1261, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase\\Tests\\Notification;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Firebase\\Notification\\AndroidNotification;\n\nfinal class AndroidNotificationTest extends TestCase\n{\n public function testAndroidNotificationOptions()\n {\n $notification = new AndroidNotification('device_token', [\n ", "suffix": "le',\n 'body' => 'Test Body',\n ],\n 'data' => ['key' => 'value'],\n ], $notification->toArray());\n\n $this->assertSame('device_token', $notification->getRecipientId());\n }\n\n public function testAndroidNo", "middle": " 'title' => 'Test Title',\n 'body' => 'Test Body',\n ], ['key' => 'value']);\n\n $this->assertSame([\n 'to' => 'device_token',\n 'notification' => [\n 'title' => 'Test Tit", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/Tests/Notification/AndroidNotificationTest.php", "language": "php", "file_size": 3074, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mercure;\n\nuse Symfony\\Component\\Mercure\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mercure\\Exception\\RuntimeException as MercureRuntimeException;\nuse Symfony\\Component\\Mercure\\HubInterface;\nuse Symfony\\Component\\Mercure\\Update;\nuse Symfony\\Component\\Notifier\\Exception\\RuntimeException;\nuse Symfony\\Component\\Notifier", "suffix": "mfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Mathias Arlaud <", "middle": "\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedOptionsException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Sy", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php", "language": "php", "file_size": 3531, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase\\Notification;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Firebase\\FirebaseOptions;\n\nfinal class IOSNotification extends FirebaseOptions\n{\n /**\n * @return $this\n */\n public function sound(string $sound): static\n {\n $this->optio", "suffix": "* @return $this\n */\n public function clickAction(string $clickAction): static\n {\n $this->options['click_action'] = $clickAction;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function subtitle(string $subtit", "middle": "ns['sound'] = $sound;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function badge(string $badge): static\n {\n $this->options['badge'] = $badge;\n\n return $this;\n }\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/Notification/IOSNotification.php", "language": "php", "file_size": 1964, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Firebase\\FirebaseTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\n/**\n * @author Oskar ", "suffix": " return new FirebaseTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'firebase://host.test',\n 'firebase://username:password@host.test',\n ];\n }\n\n public static functi", "middle": "Stark \n */\nfinal class FirebaseTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): FirebaseTransportFactory\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/Tests/FirebaseTransportFactoryTest.php", "language": "php", "file_size": 1493, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase\\Tests\\Notification;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Firebase\\Notification\\WebNotification;\n\nfinal class WebNotificationTest extends TestCase\n{\n public function testWebNotificationOptions()\n {\n $notification = new WebNoti", "suffix": " 'title' => 'Test Title',\n 'body' => 'Test Body',\n ],\n 'data' => ['key' => 'value'],\n ], $notification->toArray());\n\n $this->assertSame('device_token', $notification->getRecipientId());\n }", "middle": "fication('device_token', [\n 'title' => 'Test Title',\n 'body' => 'Test Body',\n ], ['key' => 'value']);\n\n $this->assertSame([\n 'to' => 'device_token',\n 'notification' => [\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/Tests/Notification/WebNotificationTest.php", "language": "php", "file_size": 2369, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SimpleTextin;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author gnito-org getScheme();\n\n if (self::TRANSPORT_SCHEME !== $scheme) {\n throw new UnsupportedSchemeException($dsn, self::TRANSPORT_SCHEME, $this->getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $from = $dsn->ge", "middle": "/gnito-org>\n */\nfinal class SimpleTextinTransportFactory extends AbstractTransportFactory\n{\n private const TRANSPORT_SCHEME = 'simpletextin';\n\n public function create(Dsn $dsn): SimpleTextinTransport\n {\n $scheme =", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SimpleTextin/SimpleTextinTransportFactory.php", "language": "php", "file_size": 1372, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SimpleTextin\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\SimpleTextin\\SimpleTextinTransport;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Compon", "suffix": "ient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class SimpleTextinTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, string $from = 'test_from'): Si", "middle": "ent\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpCl", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SimpleTextin/Tests/SimpleTextinTransportTest.php", "language": "php", "file_size": 3527, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Primotexto;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Samaël Tomas \n */\nfinal class PrimotextoOptions implements MessageOptionsInterface\n{\n public function __construct(\n ", "suffix": "{\n $this->options['campaignName'] = $campaignName;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function category(string $category): static\n {\n $this->options['category'] = $category;\n\n return $this;", "middle": " private array $options = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function campaignName(string $campaignName): static\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Primotexto/PrimotextoOptions.php", "language": "php", "file_size": 1328, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Primotexto;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Samaël Tomas getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $from = $dsn->getOption('from');\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHo", "middle": "l.com>\n */\nfinal class PrimotextoTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): PrimotextoTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('primotexto' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Primotexto/PrimotextoTransportFactory.php", "language": "php", "file_size": 1278, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Primotexto\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Primotexto\\PrimotextoTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class Pri", "suffix": "\n public static function createProvider(): iterable\n {\n yield [\n 'primotexto://host.test',\n 'primotexto://apiKey@host.test',\n ];\n\n yield [\n 'primotexto://host.test?from=TEST',\n 'primote", "middle": "motextoTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): PrimotextoTransportFactory\n {\n return new PrimotextoTransportFactory();\n }\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Primotexto/Tests/PrimotextoTransportFactoryTest.php", "language": "php", "file_size": 1484, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sweego;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Sy", "suffix": "bstractTransport\n{\n protected const HOST = 'api.sweego.io';\n\n public function __construct(\n #[\\SensitiveParameter] private readonly string $apiKey,\n private readonly string $region,\n private readonly string $campaignType,\n ", "middle": "mfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Mathieu Santostefano \n */\nfinal class SweegoTransport extends A", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sweego/SweegoTransport.php", "language": "php", "file_size": 5468, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sweego\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Sweego\\SweegoTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTestTrait;\n\nfinal class SweegoTransportFacto", "suffix": "nction createProvider(): iterable\n {\n yield [\n 'sweego://host.test?region=REGION&campaign_type=CAMPAIGN_TYPE&bat=0&shorten_urls=1&shorten_with_protocol=1',\n 'sweego://apiKey@host.test?region=REGION&campaign_type=CAMPAIGN_TYP", "middle": "ryTest extends AbstractTransportFactoryTestCase\n{\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): SweegoTransportFactory\n {\n return new SweegoTransportFactory();\n }\n\n public static fu", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sweego/Tests/SweegoTransportFactoryTest.php", "language": "php", "file_size": 1910, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sweego\\Tests\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Notifier\\Bridge\\Sweego\\Webhook\\SweegoRequestParser;\nuse Symfony\\Component\\Webhook\\Client\\RequestParserInterface;\nuse Symfony\\Component\\Webhook\\Te", "suffix": " protected function createRequest(string $payload): Request\n {\n return Request::create('/', 'POST', [], [], [], [\n 'Content-Type' => 'application/json',\n 'HTTP_webhook-id' => 'a5ccc627-6e43-4012-bb29-f1bfe3a3d13e',\n ", "middle": "st\\AbstractRequestParserTestCase;\n\nclass SweegoRequestParserTest extends AbstractRequestParserTestCase\n{\n protected function createRequestParser(): RequestParserInterface\n {\n return new SweegoRequestParser();\n }\n\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sweego/Tests/Webhook/SweegoRequestParserTest.php", "language": "php", "file_size": 1169, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sweego\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\ChainRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\HeaderRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\IsJsonRequestMatcher;\nuse Symfony\\", "suffix": "tParser;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWebhookException;\n\n/**\n * @author Mathieu Santostefano \n *\n * @see https://learn.sweego.io/docs/webhooks/sms_events\n */\nfinal class SweegoRequestParser extends AbstractReq", "middle": "Component\\HttpFoundation\\RequestMatcher\\MethodRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\RemoteEvent\\Event\\Sms\\SmsEvent;\nuse Symfony\\Component\\Webhook\\Client\\AbstractReques", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sweego/Webhook/SweegoRequestParser.php", "language": "php", "file_size": 2759, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mobyt;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Bastien Durand \n */\nfinal class MobytOption", "suffix": " private array $options = [],\n ) {\n if (isset($options['message_type'])) {\n self::validateMessageType($options['message_type']);\n }\n }\n\n public static function fromNotification(Notification $notification): self\n {\n ", "middle": "s implements MessageOptionsInterface\n{\n public const MESSAGE_TYPE_QUALITY_HIGH = 'N';\n public const MESSAGE_TYPE_QUALITY_MEDIUM = 'L';\n public const MESSAGE_TYPE_QUALITY_LOW = 'LL';\n\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mobyt/MobytOptions.php", "language": "php", "file_size": 2407, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Firebase;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Jeroen Spee \n *\n * @see https://firebase.google.com/docs/cloud-messaging/xmpp-server-ref.html\n */\nabstract class FirebaseOptions impleme", "suffix": "private string $to,\n array $options,\n private array $data = [],\n ) {\n $this->options = $options;\n }\n\n public function toArray(): array\n {\n return [\n 'to' => $this->to,\n 'notification' => $this->", "middle": "nts MessageOptionsInterface\n{\n /**\n * @see https://firebase.google.com/docs/cloud-messaging/xmpp-server-ref.html#notification-payload-support\n */\n protected array $options;\n\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Firebase/FirebaseOptions.php", "language": "php", "file_size": 1642, "cut_index": 537, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Event;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * @author Smaïne Milianni \n */\nfinal class FailedMessageEvent extends Event\n{\n public function _", "suffix": " private MessageInterface $message,\n private \\Throwable $error,\n ) {\n }\n\n public function getMessage(): MessageInterface\n {\n return $this->message;\n }\n\n public function getError(): \\Throwable\n {\n return $this-", "middle": "_construct(\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Event/FailedMessageEvent.php", "language": "php", "file_size": 804, "cut_index": 517, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SimpleTextin\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\SimpleTextin\\SimpleTextinTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal cla", "suffix": "ry();\n }\n\n public static function createProvider(): iterable\n {\n yield ['simpletextin://host.test', 'simpletextin://ApiKey@host.test'];\n yield ['simpletextin://host.test?from=15556667777', 'simpletextin://ApiKey@host.test?from=155566", "middle": "ss SimpleTextinTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): SimpleTextinTransportFactory\n {\n return new SimpleTextinTransportFacto", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SimpleTextin/Tests/SimpleTextinTransportFactoryTest.php", "language": "php", "file_size": 1473, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Primotexto;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\No", "suffix": "*\n * @author Samaël Tomas \n */\nfinal class PrimotextoTransport extends AbstractTransport\n{\n protected const HOST = 'api.primotexto.com';\n\n public function __construct(\n #[\\SensitiveParameter]\n private string $api", "middle": "tifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/*", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Primotexto/PrimotextoTransport.php", "language": "php", "file_size": 3338, "cut_index": 614, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Primotexto\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Primotexto\\PrimotextoOptions;\n\nclass PrimotextoOptionsTest extends TestCase\n{\n public function testPrimotextoOptions()\n {\n $primotextoOptions = (new PrimotextoOpti", "suffix": " ->category('test_category')\n ->campaignName('test_campaign_name');\n\n self::assertSame([\n 'date' => 1714121739,\n 'category' => 'test_category',\n 'campaignName' => 'test_campaign_name',\n ], $pri", "middle": "ons())\n ->campaignDate(1714121739)\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Primotexto/Tests/PrimotextoOptionsTest.php", "language": "php", "file_size": 891, "cut_index": 547, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sweego\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Sweego\\SweegoOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Sweego\\SweegoTransport;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\", "suffix": "nent\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class SweegoTransportTest extends TransportTestCase\n{\n public static function createTransport", "middle": "Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Compo", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sweego/Tests/SweegoTransportTest.php", "language": "php", "file_size": 4763, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mobyt;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifie", "suffix": "@author Basien Durand \n */\nfinal class MobytTransport extends AbstractTransport\n{\n protected const HOST = 'app.mobyt.fr';\n\n private string $typeQuality;\n\n public function __construct(\n private string $accountSid,\n ", "middle": "r\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mobyt/MobytTransport.php", "language": "php", "file_size": 3632, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OrangeSms;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Not", "suffix": "nst HOST = 'api.orange.com';\n\n public function __construct(\n private string $clientID,\n #[\\SensitiveParameter] private string $clientSecret,\n private string $from,\n private ?string $senderName = null,\n ?HttpClientInter", "middle": "ifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class OrangeSmsTransport extends AbstractTransport\n{\n protected co", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OrangeSms/OrangeSmsTransport.php", "language": "php", "file_size": 3919, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sweego;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Mathieu Santostefano getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $region = $dsn->getRequiredOption(SweegoOptions::REGION);\n $campaignType = $dsn->getRequiredOption(SweegoOption", "middle": "om>\n */\nfinal class SweegoTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SweegoTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('sweego' !== $scheme) {\n throw", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sweego/SweegoTransportFactory.php", "language": "php", "file_size": 1753, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Primotexto;\n\nenum PrimotextoErrorCode: int\n{\n case NO_PHONE_NUMBER_PROVIDED = 10;\n case INVALID_PHONE_NUMBER_SYNTAX = 11;\n case NUMBER_BLACKLISTED_UNSUBSCRIBED = 12;\n case NUMBER_BLACKLISTED_USER_BOUNCE = 13;\n case NUMBER_BLACKLISTED_GLOBAL_BOUNCE = 14;\n case NUM", "suffix": "e SENDER_TOO_SHORT = 21;\n case SENDER_TOO_LONG = 22;\n case FULL_NUMERIC_SENDER_NOT_ALLOWED = 23;\n case NO_MESSAGE_CONTENT_PROVIDED = 30;\n case INVALID_CHARACTERS_IN_MESSAGE = 31;\n case MESSAGE_CONTENT_TOO_LONG = 32;\n case INVALID_CAMPAIGN", "middle": "BER_ALREADY_EXISTS = 15;\n case NO_MESSAGE_FOR_THIS_QUERY = 16;\n case TOO_MANY_FIELDS_SELECTED = 17;\n case FILE_TOO_LARGE = 18;\n case PHONE_NUMBER_IS_FIXED_LINE = 19;\n case INVALID_CHARACTERS_IN_SENDER = 20;\n cas", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Primotexto/PrimotextoErrorCode.php", "language": "php", "file_size": 2073, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mobyt\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Mobyt\\MobytOptions;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\nfinal class MobytOptionsTest extends TestCase\n{\n #[D", "suffix": "tions = MobytOptions::fromNotification($notification)->toArray();\n\n $this->assertSame($expectedMessageType, $options['message_type']);\n }\n\n /**\n * @return \\Generator\n */\n public static function fromNotif", "middle": "ataProvider('fromNotificationDataProvider')]\n public function testFromNotification(string $importance, string $expectedMessageType)\n {\n $notification = (new Notification('Foo'))->importance($importance);\n\n $op", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/MobytOptionsTest.php", "language": "php", "file_size": 3142, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mobyt\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Mobyt\\MobytOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Mobyt\\MobytTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\", "suffix": "skarstark@googlemail.com>\n */\nfinal class MobytTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, string $messageType = MobytOptions::MESSAGE_TYPE_QUALITY_LOW): MobytTransport\n {\n ", "middle": "Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Oskar Stark \n */\nfinal class JoliNotifTransport extends AbstractTransport\n{\n public function __construct(\n private readonly JoliNotifier $joliNotifier,\n ", "middle": "Component\\Notifier\\Message\\DesktopMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contr", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/JoliNotif/JoliNotifTransport.php", "language": "php", "file_size": 3050, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\JoliNotif;\n\nuse Joli\\JoliNotif\\DefaultNotifier as JoliNotifier;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Trans", "suffix": "oliNotifTransport\n {\n if (self::SCHEME_NAME !== $dsn->getScheme()) {\n throw new UnsupportedSchemeException($dsn, self::SCHEME_NAME, $this->getSupportedSchemes());\n }\n\n return (new JoliNotifTransport(new JoliNotifier(), $t", "middle": "port\\Dsn;\n\n/**\n * @author Ahmed Ghanem \n */\nfinal class JoliNotifTransportFactory extends AbstractTransportFactory\n{\n private const SCHEME_NAME = 'jolinotif';\n\n public function create(Dsn $dsn): J", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/JoliNotif/JoliNotifTransportFactory.php", "language": "php", "file_size": 1246, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\JoliNotif\\Tests;\n\nuse Joli\\JoliNotif\\DefaultNotifier as JoliNotifier;\nuse Symfony\\Component\\Notifier\\Bridge\\JoliNotif\\JoliNotifOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\JoliNotif\\JoliNotifTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;", "suffix": "*\n * @author Ahmed Ghanem \n */\nfinal class JoliNotifTransportTest extends TransportTestCase\n{\n public static function toStringProvider(): iterable\n {\n yield ['jolinotif://localhost', self::createTransport()];\n }\n\n", "middle": "\nuse Symfony\\Component\\Notifier\\Message\\DesktopMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/*", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/JoliNotif/Tests/JoliNotifTransportTest.php", "language": "php", "file_size": 1651, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sinch;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Iliya Miroslavov Iliev getSupportedSchemes());\n }\n\n $accountSid = $this->getUser($dsn);\n $authToken = $this->getPassword($dsn);\n $from = $dsn->getRequiredOption('from');\n $host = 'defau", "middle": "@gmail.com>\n */\nfinal class SinchTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SinchTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('sinch' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sinch/SinchTransportFactory.php", "language": "php", "file_size": 1327, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sinch\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Sinch\\SinchTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Comp", "suffix": "ic function createTransport(?HttpClientInterface $client = null): SinchTransport\n {\n return new SinchTransport('accountSid', 'authToken', 'sender', $client ?? new MockHttpClient());\n }\n\n public static function toStringProvider(): iterable\n ", "middle": "onent\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class SinchTransportTest extends TransportTestCase\n{\n public stat", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sinch/Tests/SinchTransportTest.php", "language": "php", "file_size": 1397, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Bluesky;\n\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\", "suffix": "kyTransportFactory extends AbstractTransportFactory\n{\n public function __construct(\n ?EventDispatcherInterface $dispatcher = null,\n ?HttpClientInterface $client = null,\n private ?LoggerInterface $logger = null,\n private reado", "middle": "Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Tobias Nyholm \n */\nfinal class Blues", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bluesky/BlueskyTransportFactory.php", "language": "php", "file_size": 1767, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Bluesky\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Bluesky\\BlueskyTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nclass BlueskyTransportFa", "suffix": "ion createProvider(): iterable\n {\n yield [\n 'bluesky://bsky.social',\n 'bluesky://user:pass@bsky.social',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'bluesky://foo:bar", "middle": "ctoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): BlueskyTransportFactory\n {\n return new BlueskyTransportFactory();\n }\n\n public static funct", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bluesky/Tests/BlueskyTransportFactoryTest.php", "language": "php", "file_size": 1436, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component", "suffix": "e Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Mathieu Piot \n * @author Tomas Norkūnas \n */\nfinal class DiscordBotTransport extends AbstractTransport\n{\n protected const HOST = 'discord.co", "middle": "\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nus", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/DiscordBotTransport.php", "language": "php", "file_size": 4056, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sweego\\Tests\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Notifier\\Bridge\\Sweego\\Webhook\\SweegoRequestParser;\nuse Symfony\\Component\\Webhook\\Client\\RequestParserInterface;\nuse Symfony\\Component\\Webhook\\Exceptio", "suffix": "tParserInterface\n {\n $this->expectException(RejectWebhookException::class);\n $this->expectExceptionMessage('Invalid signature.');\n\n return new SweegoRequestParser();\n }\n\n protected function createRequest(string $payload): Requ", "middle": "n\\RejectWebhookException;\nuse Symfony\\Component\\Webhook\\Test\\AbstractRequestParserTestCase;\n\nclass SweegoWrongSignatureRequestParserTest extends AbstractRequestParserTestCase\n{\n protected function createRequestParser(): Reques", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sweego/Tests/Webhook/SweegoWrongSignatureRequestParserTest.php", "language": "php", "file_size": 1343, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sweego;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\nclass SweegoOptions implements MessageOptionsInterface\n{\n public const REGION = 'region';\n public const BAT = 'bat';\n public const CAMPAIGN_TYPE = 'campaign_type';\n publ", "suffix": "{\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n public function bat(bool $bat): self\n {\n $this->options[self::BAT] = $ba", "middle": "ic const CAMPAIGN_ID = 'campaign_id';\n public const SHORTEN_URLS = 'shorten_urls';\n public const SHORTEN_WITH_PROTOCOL = 'shorten_with_protocol';\n\n public function __construct(\n private array $options = [],\n ) ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sweego/SweegoOptions.php", "language": "php", "file_size": 1543, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\JoliNotif\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\JoliNotif\\JoliNotifOptions;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\n\n/**\n * @author Ahmed Ghanem \n *", "suffix": "'subtitle', 'This is a subtitle');\n $joliOptions->setExtraOption('sound', 'Frog');\n\n $this->assertSame([\n 'icon_path' => '/sample/icon/path',\n 'extra_options' => [\n 'subtitle' => 'This is a subtitle',\n ", "middle": "/\nclass JoliNotifOptionsTest extends TestCase\n{\n public function testToArray()\n {\n $joliOptions = new JoliNotifOptions();\n\n $joliOptions->setIconPath('/sample/icon/path');\n $joliOptions->setExtraOption(", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/JoliNotif/Tests/JoliNotifOptionsTest.php", "language": "php", "file_size": 1331, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\JoliNotif\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\JoliNotif\\JoliNotifTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\n\n/**\n * @author Ahmed Ghanem \n */\nfinal class ", "suffix": "ion=true',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'jolinotif://host.test'];\n yield [false, 'somethingElse://host.test'];\n }\n\n public static function unsupportedSchemeProvider(): ite", "middle": "JoliNotifTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n public static function createProvider(): iterable\n {\n yield [\n 'jolinotif://host.test',\n 'jolinotif://host.test?some_opt", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/JoliNotif/Tests/JoliNotifTransportFactoryTest.php", "language": "php", "file_size": 1217, "cut_index": 518, "middle_length": 229}} {"prefix": "ny\\Component\\Mime\\Part\\File;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Component\\String\\AbstractString;\nuse Symfony\\Component\\String\\ByteString;\nuse Symfony\\Contracts\\EventDispatcher\\Eve", "suffix": "author Tobias Nyholm \n */\nfinal class BlueskyTransport extends AbstractTransport\n{\n private array $authSession = [];\n private ClockInterface $clock;\n\n public function __construct(\n #[\\SensitiveParameter] private str", "middle": "ntDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bluesky/BlueskyTransport.php", "language": "php", "file_size": 11088, "cut_index": 921, "middle_length": 229}} {"prefix": "se Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Mime\\Part\\File;\nuse Symfony\\Component\\Notifier\\Bridge\\Bluesky\\BlueskyOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Bluesky\\BlueskyTransport;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\N", "suffix": "clock;\n\n protected function setUp(): void\n {\n self::$clock = new MockClock(new \\DateTimeImmutable('@1714293617'));\n }\n\n public static function createTransport(?HttpClientInterface $client = null): BlueskyTransport\n {\n $blueskyT", "middle": "otifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class BlueskyTransportTest extends TransportTestCase\n{\n private static $", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bluesky/Tests/BlueskyTransportTest.php", "language": "php", "file_size": 15838, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\JoliNotif;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Ahmed Ghanem \n */\nfinal class JoliNotifOptions implements MessageOptionsInterface\n{\n public ", "suffix": " 'extra_options' => $this->extraOptions,\n ];\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function setIconPath(string $iconPath): static\n {\n $", "middle": "function __construct(\n private ?string $iconPath = null,\n private array $extraOptions = [],\n ) {\n }\n\n public function toArray(): array\n {\n return [\n 'icon_path' => $this->iconPath,\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/JoliNotif/JoliNotifOptions.php", "language": "php", "file_size": 2036, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sinch\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Sinch\\SinchTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingR", "suffix": "tFactory\n {\n return new SinchTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'sinch://host.test?from=0611223344',\n 'sinch://accountSid:authToken@host.test?from=06112233", "middle": "equiredOptionTestTrait;\n\nfinal class SinchTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): SinchTranspor", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sinch/Tests/SinchTransportFactoryTest.php", "language": "php", "file_size": 1889, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Bluesky;\n\nuse Symfony\\Component\\Mime\\Part\\File;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\nfinal class BlueskyOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options =", "suffix": "function attachMedia(File $file, string $description = ''): static\n {\n $this->options['attach'][] = [\n 'file' => $file,\n 'description' => $description,\n ];\n\n return $this;\n }\n\n public function attachCard(", "middle": " [],\n ) {\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bluesky/BlueskyOptions.php", "language": "php", "file_size": 1308, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mobyt\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Mobyt\\MobytTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\n/**\n * @author Oskar Stark \n */\nfinal class MobytTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): MobytTransportFactory\n {\n return new MobytTransportF", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/MobytTransportFactoryTest.php", "language": "php", "file_size": 1856, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordEmbedInterface;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Karoly Gossler \n * @author Tomas Norkūna", "suffix": "rivate array $options = [],\n ) {\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n /**\n * @param non-empty-string $id\n *\n * @return $this\n */\n public function recipient(string $id): static\n ", "middle": "s \n */\nfinal class DiscordOptions implements MessageOptionsInterface\n{\n /**\n * @var non-empty-string|null\n */\n private ?string $recipientId = null;\n\n public function __construct(\n p", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/DiscordOptions.php", "language": "php", "file_size": 2238, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sinch;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifie", "suffix": "\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Iliya Miroslavov Iliev \n */\nfinal class SinchTransport extends AbstractTransport\n{\n protected const HOST = 'sms.api.sinch.com';\n\n public function __construct(\n ", "middle": "r\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sinch/SinchTransport.php", "language": "php", "file_size": 2905, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\n\n/", "suffix": "ce\n {\n $scheme = $dsn->getScheme();\n\n if ('discord' === $scheme) {\n $token = $this->getUser($dsn);\n $webhookId = $dsn->getRequiredOption('webhook_id');\n $host = 'default' === $dsn->getHost() ? null : $dsn->", "middle": "**\n * @author Mathieu Piot \n * @author Tomas Norkūnas \n */\nfinal class DiscordTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TransportInterfa", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/DiscordTransportFactory.php", "language": "php", "file_size": 1750, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds;\n\n/**\n * @author Karoly Gossler \n */\nfinal class DiscordFieldEmbedObject extends AbstractDiscordEmbedObject\n{\n /**\n * @return $this\n */\n public function name(string $name): static\n {\n $this->options['name'] = $name;\n\n return $this;\n }\n\n /**\n * @retur", "suffix": "lue): static\n {\n $this->options['value'] = $value;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function inline(bool $inline): static\n {\n $this->options['inline'] = $inline;\n\n return $this;\n }\n", "middle": "n $this\n */\n public function value(string $va", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Embeds/DiscordFieldEmbedObject.php", "language": "php", "file_size": 916, "cut_index": 606, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds;\n\n/**\n * @author Karoly Gossler \n */\nclass DiscordMediaEmbedObject extends AbstractDiscordEmbedObject\n{\n /**\n * @return $this\n */\n public function url(string $url): static\n {\n ", "suffix": "\n }\n\n /**\n * @return $this\n */\n public function height(int $height): static\n {\n $this->options['height'] = $height;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function width(int $width): static\n", "middle": "$this->options['url'] = $url;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function proxyUrl(string $proxyUrl): static\n {\n $this->options['proxy_url'] = $proxyUrl;\n\n return $this;", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Embeds/DiscordMediaEmbedObject.php", "language": "php", "file_size": 1079, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\DiscordBotTransport;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\DiscordOptions;\nuse Symfony\\Component\\Notif", "suffix": "\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class DiscordBotTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientIn", "middle": "ier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordBotTransportTest.php", "language": "php", "file_size": 2605, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\DiscordTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Mess", "suffix": "terface;\n\nfinal class DiscordTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): DiscordTransport\n {\n return (new DiscordTransport('testToken', 'testWebhookId', $client ?? new", "middle": "age\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientIn", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportTest.php", "language": "php", "file_size": 2024, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Tests\\Embeds;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordEmbed;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordFieldEmbedObject;\n\nfinal class DiscordEmbedTest ext", "suffix": " ->name('baz')\n ->value('qux')\n );\n\n $this->assertSame([\n 'title' => 'foo',\n 'description' => 'bar',\n 'fields' => [\n [\n 'name' => 'baz',\n ", "middle": "ends TestCase\n{\n public function testCanBeInstantiated()\n {\n $embed = (new DiscordEmbed())\n ->title('foo')\n ->description('bar')\n ->addField((new DiscordFieldEmbedObject())\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/Embeds/DiscordEmbedTest.php", "language": "php", "file_size": 1097, "cut_index": 515, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Tests\\Embeds;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordFooterEmbedObject;\n\nfinal class DiscordFooterEmbedObjectTest extends TestCase\n{\n public function testCanBeInstantiated()\n {\n $author = (n", "suffix": "oo')\n ->iconUrl('http://icon-ur.l')\n ->proxyIconUrl('http://proxy-icon-ur.l');\n\n $this->assertSame([\n 'text' => 'foo',\n 'icon_url' => 'http://icon-ur.l',\n 'proxy_icon_url' => 'http://proxy-icon-", "middle": "ew DiscordFooterEmbedObject())\n ->text('f", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/Embeds/DiscordFooterEmbedObjectTest.php", "language": "php", "file_size": 902, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Novu;\n\nuse Symfony\\Component\\Notifier\\Recipient\\RecipientInterface;\n\n/**\n * @author Wouter van der Loop \n */\nclass NovuSubscriberRecipient implements RecipientInterface\n{\n /**\n * @param array{\n * email?: array{\n ", "suffix": " } $overrides\n *\n * @see https://docs.novu.co/channels/email/#sending-email-overrides\n */\n public function __construct(\n private readonly string $subscriberId,\n private readonly ?string $firstName = null,\n private reado", "middle": " * from?: string,\n * senderName?: string,\n * replyTo?: string,\n * cc?: string[],\n * bcc?: string[]\n * }|null\n * ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Novu/NovuSubscriberRecipient.php", "language": "php", "file_size": 2003, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Novu;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Wouter van der Loop getScheme();\n if (self::SCHEME !== $scheme) {\n throw new UnsupportedSchemeException($dsn, self::SCHEME, $this->getSupportedSchemes());\n }\n\n $key = $this->getUser($", "middle": "toppy.nl>\n */\nclass NovuTransportFactory extends AbstractTransportFactory\n{\n private const SCHEME = 'novu';\n\n protected function getSupportedSchemes(): array\n {\n return [self::SCHEME];\n }\n\n public function c", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Novu/NovuTransportFactory.php", "language": "php", "file_size": 1231, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Novu\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Novu\\NovuTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Tra", "suffix": " NovuTransportFactory();\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'novu://host'];\n yield [false, 'somethingElse://host'];\n }\n\n public static function createProvider(): iterable\n {\n yie", "middle": "nsport\\TransportFactoryInterface;\n\nclass NovuTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): TransportFactoryInterface\n {\n return new", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Novu/Tests/NovuTransportFactoryTest.php", "language": "php", "file_size": 1354, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OneSignal;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Tomas Norkūnas \n */\nfinal class OneSignalOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ", "suffix": ")]);\n $options->contents(['en' => $notification->getContent()]);\n\n return $options;\n }\n\n /**\n * @return $this\n */\n public function headings(array $headings): static\n {\n $this->options['headings'] = $headings;\n\n ", "middle": " ) {\n }\n\n /**\n * @return $this\n */\n public static function fromNotification(Notification $notification): static\n {\n $options = new self();\n $options->headings(['en' => $notification->getSubject(", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalOptions.php", "language": "php", "file_size": 3047, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Novu\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Novu\\NovuOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Novu\\NovuTransport;\nuse Symfony\\Component\\Notifier\\Exception\\Transpor", "suffix": ";\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass NovuTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): Trans", "middle": "tException;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Novu/Tests/NovuTransportTest.php", "language": "php", "file_size": 2463, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OneSignal\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\OneSignal\\OneSignalOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\OneSignal\\OneSignalTransport;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse", "suffix": "ontracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Tomas Norkūnas \n */\nfinal class OneSignalTransportTest extends TransportTestCase\n{\n public static function createTranspo", "middle": " Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\C", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalTransportTest.php", "language": "php", "file_size": 6524, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds;\n\n/**\n * @author Karoly Gossler \n */\nfinal class DiscordAuthorEmbedObject extends AbstractDiscordEmbedObject\n{\n /**\n * @return $this\n */\n public function name(string $name): static\n {", "suffix": " /**\n * @return $this\n */\n public function iconUrl(string $iconUrl): static\n {\n $this->options['icon_url'] = $iconUrl;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function proxyIconUrl(string $proxyIc", "middle": "\n $this->options['name'] = $name;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function url(string $url): static\n {\n $this->options['url'] = $url;\n\n return $this;\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Embeds/DiscordAuthorEmbedObject.php", "language": "php", "file_size": 1110, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OneSignal\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\OneSignal\\OneSignalOptions;\n\nfinal class OneSignalOptionsTest extends TestCase\n{\n public function testOneSignalOptions()\n {\n $oneSignalOption", "suffix": " ->data(['foo' => 'bar'])\n ->sendAfter(new \\DateTimeImmutable('Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)'))\n ->externalId('d637f30d-f709-4bed-9e2c-63637cb91894')\n ->isExternalUserId();\n\n $this->assertSame([\n ", "middle": "s = (new OneSignalOptions())\n ->headings(['en' => 'English Heading', 'fr' => 'French Heading'])\n ->contents(['en' => 'English Content', 'fr' => 'French Content'])\n ->url('https://example.com')\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalOptionsTest.php", "language": "php", "file_size": 1470, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds;\n\n/**\n * @author Karoly Gossler \n */\nfinal class DiscordFooterEmbedObject extends AbstractDiscordEmbedObject\n{\n /**\n * @return $this\n */\n public function text(string $text): static\n {\n $this->options['text'] = $text;\n\n return $this;\n ", "suffix": "function iconUrl(string $iconUrl): static\n {\n $this->options['icon_url'] = $iconUrl;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function proxyIconUrl(string $proxyIconUrl): static\n {\n $this->options['p", "middle": " }\n\n /**\n * @return $this\n */\n public ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Embeds/DiscordFooterEmbedObject.php", "language": "php", "file_size": 954, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\DiscordTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTestTra", "suffix": " return new DiscordTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'discord://host.test?webhook_id=testWebhookId',\n 'discord://token@host.test?webhook_id=testWebhookId',\n ", "middle": "it;\n\nfinal class DiscordTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): DiscordTransportFactory\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportFactoryTest.php", "language": "php", "file_size": 2103, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Tests\\Embeds;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordAuthorEmbedObject;\n\nfinal class DiscordAuthorEmbedObjectTest extends TestCase\n{\n public function testCanBeInstantiated()\n {\n $author = (new DiscordAuthorEmbedObject())\n ", "suffix": "')\n ->iconUrl('http://icon-ur.l')\n ->proxyIconUrl('http://proxy-icon-ur.l');\n\n $this->assertSame([\n 'name' => 'Doe',\n 'url' => 'http://ur.l',\n 'icon_url' => 'http://icon-ur.l',\n 'prox", "middle": " ->name('Doe')\n ->url('http://ur.l", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/Embeds/DiscordAuthorEmbedObjectTest.php", "language": "php", "file_size": 971, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Novu;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportExceptionInterface;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony", "suffix": "uthor Wouter van der Loop \n */\nclass NovuTransport extends AbstractTransport\n{\n protected const HOST = 'web.novu.co';\n\n public function __construct(\n #[\\SensitiveParameter] protected string $apiKey,\n ?HttpClientInter", "middle": "\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @a", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Novu/NovuTransport.php", "language": "php", "file_size": 3447, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OneSignal;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Compone", "suffix": "use Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Tomas Norkūnas \n */\nfinal class OneSignalTransport extends AbstractTransport\n{\n protected const HOST = 'onesignal.com';\n\n public function __construct(\n ", "middle": "nt\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransport.php", "language": "php", "file_size": 4484, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OneSignal\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\OneSignal\\OneSignalTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\n/**\n * @author Tom", "suffix": " return new OneSignalTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'onesignal://app_id@host.test',\n 'onesignal://app_id:api_key@host.test',\n ];\n }\n\n public s", "middle": "as Norkūnas \n */\nfinal class OneSignalTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): OneSignalTransportFactory\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalTransportFactoryTest.php", "language": "php", "file_size": 1507, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds;\n\n/**\n * @author Karoly Gossler \n */\nfinal class DiscordEmbed extends AbstractDiscordEmbed\n{\n /**\n * @return $this\n */\n public function title(string $title): static\n {\n $this->options['title'] = $title;\n\n return $this", "suffix": " */\n public function url(string $url): static\n {\n $this->options['url'] = $url;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function timestamp(\\DateTimeInterface $timestamp): static\n {\n $this->optio", "middle": ";\n }\n\n /**\n * @return $this\n */\n public function description(string $description): static\n {\n $this->options['description'] = $description;\n\n return $this;\n }\n\n /**\n * @return $this\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Embeds/DiscordEmbed.php", "language": "php", "file_size": 2401, "cut_index": 563, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Tests\\Embeds;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordFieldEmbedObject;\n\nfinal class DiscordFieldEmbedObjectTest extends TestCase\n{\n public function testCanBeInstantiated()\n {\n $fi", "suffix": "cordFieldEmbedObject())\n ->name('foo')\n ->value('bar')\n ->inline(true);\n\n $this->assertSame([\n 'name' => 'foo',\n 'value' => 'bar',\n 'inline' => true,\n ], $field->toArray());\n ", "middle": "eld = (new Dis", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/Embeds/DiscordFieldEmbedObjectTest.php", "language": "php", "file_size": 812, "cut_index": 536, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Novu\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Novu\\NovuOptions;\n\nclass NovuOptionsTest extends TestCase\n{\n public function testToArray()\n {\n $options = new NovuOptions(\n 123,\n ", "suffix": " 'senderName' => 'No-Reply',\n ],\n ],\n [],\n );\n\n $this->assertSame(\n [\n 'firstName' => 'Joe',\n 'lastName' => 'Smith',\n 'email' => 'test@example", "middle": " 'Joe',\n 'Smith',\n 'test@example.com',\n null,\n null,\n null,\n [\n 'email' => [\n 'from' => 'no-reply@example.com',\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Novu/Tests/NovuOptionsTest.php", "language": "php", "file_size": 1401, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Octopush;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Aurélien Martin getSupportedSchemes());\n }\n\n $userLogin = urlencode($this->getUser($dsn));\n $apiKey = $this->getPassword($dsn);\n $from = $dsn->getRequiredOption('from');\n ", "middle": "in.com>\n */\nfinal class OctopushTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): OctopushTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('octopush' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Octopush/OctopushTransportFactory.php", "language": "php", "file_size": 1402, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Octopush\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Octopush\\OctopushTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Sym", "suffix": " public static function createTransport(?HttpClientInterface $client = null): OctopushTransport\n {\n return new OctopushTransport('userLogin', 'apiKey', 'from', 'type', $client ?? new MockHttpClient());\n }\n\n public static function toStringPr", "middle": "fony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class OctopushTransportTest extends TransportTestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Octopush/Tests/OctopushTransportTest.php", "language": "php", "file_size": 1431, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Prelude;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedOptionsException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse", "suffix": "ymfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Imad Zairig \n */\nfinal class PreludeTransport extends AbstractTransport\n{\n protected const HOS", "middle": " Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse S", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/PreludeTransport.php", "language": "php", "file_size": 3564, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Prelude\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Prelude\\PreludeTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class PreludeTrans", "suffix": " function createProvider(): iterable\n {\n yield [\n 'prelude://host.test?sender=0611223344',\n 'prelude://apiKey@host.test?sender=0611223344',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n ", "middle": "portFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): PreludeTransportFactory\n {\n return new PreludeTransportFactory();\n }\n\n public static", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/Tests/PreludeTransportFactoryTest.php", "language": "php", "file_size": 1452, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Novu;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Wouter van der Loop \n */\nclass NovuOptions implements MessageOptionsInterface\n{\n /**\n * @param array{\n * email?: array{\n *", "suffix": "$overrides\n *\n * @see https://docs.novu.co/channels/email/#sending-email-overrides\n */\n public function __construct(\n private readonly ?string $subscriberId = null,\n private readonly ?string $firstName = null,\n private r", "middle": " from?: string,\n * senderName?: string,\n * replyTo?: string,\n * cc?: string[],\n * bcc?: string[]\n * }|null\n * } ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Novu/NovuOptions.php", "language": "php", "file_size": 1855, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Discord\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\DiscordOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordAuthorEmbedObject;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordEmbed;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordFooterEmbedObject;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds", "suffix": "avatarUrl('http://ava.tar/pic.png')\n ->tts(true);\n\n $this->assertSame([\n 'username' => 'name of the bot',\n 'avatar_url' => 'http://ava.tar/pic.png',\n 'tts' => true,\n ], $discordOptions->toArray());\n", "middle": "\\DiscordMediaEmbedObject;\n\nfinal class DiscordOptionsTest extends TestCase\n{\n public function testDiscordOptions()\n {\n $discordOptions = (new DiscordOptions())\n ->username('name of the bot')\n ->", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordOptionsTest.php", "language": "php", "file_size": 7500, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OrangeSms\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\OrangeSms\\OrangeSmsTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionT", "suffix": "ry\n {\n return new OrangeSmsTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'orange-sms://host.test?from=FROM&sender_name=SENDER_NAME',\n 'orange-sms://CLIENT_ID:CLIENT_S", "middle": "estTrait;\n\nfinal class OrangeSmsTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): OrangeSmsTransportFacto", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OrangeSms/Tests/OrangeSmsTransportFactoryTest.php", "language": "php", "file_size": 2251, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Octopush;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Noti", "suffix": " * @author Aurélien Martin \n */\nfinal class OctopushTransport extends AbstractTransport\n{\n protected const HOST = 'www.octopush-dm.com';\n\n public function __construct(\n private string $userLogin,\n #[\\SensitivePar", "middle": "fier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Octopush/OctopushTransport.php", "language": "php", "file_size": 3046, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Octopush\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Octopush\\OctopushTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTest", "suffix": " {\n return new OctopushTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'octopush://host.test?from=Heyliot&type=FR',\n 'octopush://userLogin:apiKey@host.test?from=Heyliot&t", "middle": "Trait;\n\nfinal class OctopushTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): OctopushTransportFactory\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Octopush/Tests/OctopushTransportFactoryTest.php", "language": "php", "file_size": 2029, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Prelude;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Imad \n */\nfi", "suffix": "supportedSchemeException($dsn, 'prelude', $this->getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $sender = $dsn->getOption('sender'); // Sender might be optional if configured in Prelude dashboard\n $host = 'default", "middle": "nal class PreludeTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): PreludeTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('prelude' !== $scheme) {\n throw new Un", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/PreludeTransportFactory.php", "language": "php", "file_size": 1321, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OneSignal;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Tomas Norkūnas getSupportedSchemes());\n }\n\n $appId = $this->getUser($dsn);\n $apiKey = $this->getPassword($dsn);\n $defaultRecipientId = $dsn->getOption('defaultRecipientId');\n $host = 'default' ", "middle": "il.com>\n */\nfinal class OneSignalTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): OneSignalTransport\n {\n if ('onesignal' !== $dsn->getScheme()) {\n throw new Unsupporte", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransportFactory.php", "language": "php", "file_size": 1338, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OrangeSms;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\nfinal class OrangeSmsTransportFactory extends A", "suffix": "-sms', $this->getSupportedSchemes());\n }\n\n $user = $this->getUser($dsn);\n $password = $this->getPassword($dsn);\n $from = $dsn->getRequiredOption('from');\n $senderName = $dsn->getOption('sender_name');\n $host = 'def", "middle": "bstractTransportFactory\n{\n public function create(Dsn $dsn): OrangeSmsTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('orange-sms' !== $scheme) {\n throw new UnsupportedSchemeException($dsn, 'orange", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OrangeSms/OrangeSmsTransportFactory.php", "language": "php", "file_size": 1344, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Prelude;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Imad Zairig \n */\nfinal class PreludeOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ) {\n }\n\n ", "suffix": "ing $templateId): static\n {\n $this->options['template_id'] = $templateId;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function variables(array $variables): static\n {\n $this->options['variables'] = $vari", "middle": " public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function templateId(str", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/PreludeOptions.php", "language": "php", "file_size": 2375, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OrangeSms\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\OrangeSms\\OrangeSmsTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse ", "suffix": "\n public static function createTransport(?HttpClientInterface $client = null): OrangeSmsTransport\n {\n return (new OrangeSmsTransport('CLIENT_ID', 'CLIENT_SECRET', 'FROM', 'SENDER_NAME', $client ?? new MockHttpClient()))->setHost('host.test');\n", "middle": "Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class OrangeSmsTransportTest extends TransportTestCase\n{", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OrangeSms/Tests/OrangeSmsTransportTest.php", "language": "php", "file_size": 1495, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Prelude\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Prelude\\PreludeOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Prelude\\PreludeTransport;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\No", "suffix": "ts\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class PreludeTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterfa", "middle": "tifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tes", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/Tests/PreludeTransportTest.php", "language": "php", "file_size": 4188, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Ntfy;\n\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Mickael Perraud \n */\nfinal", "suffix": "_MIN = 1;\n\n private ClockInterface $clock;\n\n public function __construct(\n private array $options = [],\n ?ClockInterface $clock = null,\n ) {\n $this->clock = $clock ?? Clock::get();\n }\n\n public static function fromNotific", "middle": " class NtfyOptions implements MessageOptionsInterface\n{\n public const PRIORITY_URGENT = 5;\n public const PRIORITY_HIGH = 4;\n public const PRIORITY_DEFAULT = 3;\n public const PRIORITY_LOW = 2;\n public const PRIORITY", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/NtfyOptions.php", "language": "php", "file_size": 4466, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Yunpian\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Yunpian\\YunpianTransport;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Sym", "suffix": "npianTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): YunpianTransport\n {\n return new YunpianTransport('api_key', $client ?? new MockHttpClient());\n }\n\n public static", "middle": "fony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class Yu", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/YunpianTransportTest.php", "language": "php", "file_size": 1875, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mastodon;\n\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\Mime\\Part\\File;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\FormDataPart;\nuse Symfony\\Component\\Notifier\\Exception\\RuntimeException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\Me", "suffix": "ption\\ExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Quentin Dequippe \n *\n * @see https://docs.joinmastodon.org\n */\nfinal class MastodonTr", "middle": "ssageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exce", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mastodon/MastodonTransport.php", "language": "php", "file_size": 5281, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mastodon\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Mastodon\\MastodonTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\n/**\n * @author Quentin Dequippe \n */\nclass MastodonTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): MastodonTransportFactory\n {\n return new Masto", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mastodon/Tests/MastodonTransportFactoryTest.php", "language": "php", "file_size": 1749, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mastodon\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Mime\\Part\\File;\nuse Symfony\\Component\\Notifier\\Bridge\\Mastodon\\MastodonOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Mastodon\\MastodonTransport;\nuse Symfony\\Component\\Notifier\\Message\\Cha", "suffix": ";\n\n/**\n * @author Quentin Dequippe \n */\nclass MastodonTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): MastodonTransport\n {\n return (new MastodonTran", "middle": "tMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mastodon/Tests/MastodonTransportTest.php", "language": "php", "file_size": 4485, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zendesk;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Noti", "suffix": " * @author Joseph Bielawski \n */\nfinal class ZendeskTransport extends AbstractTransport\n{\n public function __construct(\n private string $email,\n #[\\SensitiveParameter] private string $token,\n ?HttpClientInterface $", "middle": "fier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskTransport.php", "language": "php", "file_size": 3198, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Smaïne Milianni getSupportedSchemes());\n }\n\n $authToken = $this->getUser($dsn);\n $accountId = $this->getPassword($dsn);\n $host = 'default' === $dsn->getHost() ? null : $dsn->", "middle": "gmail.com>\n */\nfinal class LinkedInTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): LinkedInTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('linkedin' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransportFactory.php", "language": "php", "file_size": 1287, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\n\n/**\n * @author Smaïne Milianni \n *\n * @see https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/ugc-post-api#sche", "suffix": "t PROCESSING_FAILED = 'PROCESSING_FAILED';\n public const DELETED = 'DELETED';\n public const PUBLISHED_EDITED = 'PUBLISHED_EDITED';\n\n private const AVAILABLE_LIFECYCLE = [\n self::DRAFT,\n self::PUBLISHED,\n self::PROCESSING_FAILE", "middle": "ma lifecycleState section\n */\nfinal class LifecycleStateShare extends AbstractLinkedInShare\n{\n public const DRAFT = 'DRAFT';\n public const PUBLISHED = 'PUBLISHED';\n public const PROCESSING = 'PROCESSING';\n public cons", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Share/LifecycleStateShare.php", "language": "php", "file_size": 1646, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\n\n/**\n * @author Smaïne Milianni \n */\nfinal class VisibilityShare extends AbstractLinkedInShare\n{\n public const MEMBER_NETWORK_VISIBILITY = 'MemberNetworkVisibility';\n public ", "suffix": "private const MEMBER_NETWORK = [\n self::CONNECTIONS,\n self::PUBLIC,\n self::LOGGED_IN,\n ];\n\n private const AVAILABLE_VISIBILITY = [\n self::MEMBER_NETWORK_VISIBILITY,\n self::SPONSORED_CONTENT_VISIBILITY,\n ];\n\n p", "middle": "const SPONSORED_CONTENT_VISIBILITY = 'SponsoredContentVisibility';\n\n public const CONNECTIONS = 'CONNECTIONS';\n public const PUBLIC = 'PUBLIC';\n public const LOGGED_IN = 'LOGGED_IN';\n public const DARK = 'DARK';\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Share/VisibilityShare.php", "language": "php", "file_size": 2054, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\LinkedInTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class LinkedInT", "suffix": "static function createProvider(): iterable\n {\n yield [\n 'linkedin://host.test',\n 'linkedin://accessToken:UserId@host.test',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true,", "middle": "ransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): LinkedInTransportFactory\n {\n return new LinkedInTransportFactory();\n }\n\n public ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportFactoryTest.php", "language": "php", "file_size": 1389, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FreeMobile;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Antoine Makdessi getSupportedSchemes());\n }\n\n $login = $this->getUser($dsn);\n $password = $this->getPassword($dsn);\n $phone = $dsn->getRequiredOption('phone');\n\n $hos", "middle": "com>\n */\nfinal class FreeMobileTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): FreeMobileTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('freemobile' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FreeMobile/FreeMobileTransportFactory.php", "language": "php", "file_size": 1342, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FreeMobile\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\FreeMobile\\FreeMobileTransport;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\No", "suffix": "Test extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): FreeMobileTransport\n {\n return new FreeMobileTransport('login', 'pass', '0611223344', $client ?? new MockHttpClient());\n }\n\n p", "middle": "tifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class FreeMobileTransport", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php", "language": "php", "file_size": 2133, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Yunpian;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\", "suffix": "ntracts\\HttpClient\\Exception\\ExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Mathieu Santostefano \n */\nclass YunpianTransport extends AbstractTransport\n{\n protected const HOST = 'sm", "middle": "Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Co", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransport.php", "language": "php", "file_size": 2818, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Yunpian\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Yunpian\\YunpianTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class YunpianTrans", "suffix": " function createProvider(): iterable\n {\n yield [\n 'yunpian://host.test',\n 'yunpian://api_key@host.test',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'yunpian://api_key", "middle": "portFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): YunpianTransportFactory\n {\n return new YunpianTransportFactory();\n }\n\n public static", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/YunpianTransportFactoryTest.php", "language": "php", "file_size": 1327, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mastodon;\n\nuse Symfony\\Component\\Mime\\Part\\File;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\nfinal class MastodonOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options", "suffix": "\n * @return $this\n */\n public function poll(array $choices, int $expiresIn): static\n {\n $this->options['poll'] = [\n 'options' => $choices,\n 'expires_in' => $expiresIn,\n ];\n\n return $this;\n }\n\n ", "middle": " = [],\n ) {\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @param string[] $choices\n *", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mastodon/MastodonOptions.php", "language": "php", "file_size": 1400, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn;\n\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share\\AuthorShare;\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share\\LifecycleStateShare;\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share\\ShareContentShare;\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share\\VisibilityShare;\nuse Symfony\\Component\\Notifier\\Message\\", "suffix": "on __construct(\n private array $options = [],\n ) {\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n public static function ", "middle": "MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Smaïne Milianni \n */\nfinal class LinkedInOptions implements MessageOptionsInterface\n{\n public functi", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInOptions.php", "language": "php", "file_size": 3570, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn;\n\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share\\AuthorShare;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedOptionsException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage", "suffix": "face;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Smaïne Milianni \n *\n * @see https://docs.microsoft.com/en-us/linkedin/marketing/i", "middle": ";\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInter", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php", "language": "php", "file_size": 4549, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\n\n/**\n * @author Smaïne Milianni \n *\n * @see https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/ugc-post-api#sharemedia\n */\nclass ShareMedi", "suffix": "_UP = 'SIGN_UP';\n public const SUBSCRIBE = 'SUBSCRIBE ';\n public const REGISTER = 'REGISTER';\n\n public const ALL = [\n self::LEARN_MORE,\n self::APPLY_NOW,\n self::DOWNLOAD,\n self::GET_QUOTE,\n self::SIGN_UP,\n ", "middle": "aShare extends AbstractLinkedInShare\n{\n public const LEARN_MORE = 'LEARN_MORE';\n public const APPLY_NOW = 'APPLY_NOW ';\n public const DOWNLOAD = 'DOWNLOAD';\n public const GET_QUOTE = 'GET_QUOTE';\n public const SIGN", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Share/ShareMediaShare.php", "language": "php", "file_size": 2060, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\LinkedInTransport;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\", "suffix": "racts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class LinkedInTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): LinkedInTransport\n ", "middle": "Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Cont", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php", "language": "php", "file_size": 5208, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FreeMobile;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symf", "suffix": "nterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Antoine Makdessi \n */\nfinal class FreeMobileTransport extends AbstractTransport\n{\n protected const HOST = 'smsapi.free-mobile.fr/sendmsg';\n\n public func", "middle": "ony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionI", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FreeMobile/FreeMobileTransport.php", "language": "php", "file_size": 3383, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Yunpian;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Mathieu Santostefano getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n\n return (new YunpianTransport($apiKey, $this->client, $t", "middle": "stefano@protonmail.com>\n */\nclass YunpianTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): YunpianTransport\n {\n if ('yunpian' !== $dsn->getScheme()) {\n throw new Unsupp", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransportFactory.php", "language": "php", "file_size": 1165, "cut_index": 518, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zendesk;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Joseph Bielawski \n */\nfinal class ZendeskOptions implements MessageOptionsInterface\n{\n public function __construct(\n private ?string $priority = null,\n ) {\n }\n\n public function toArray(): array\n ", "suffix": ">priority,\n ];\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function priority(string $priority): static\n {\n $this->priority = $priority;\n\n ret", "middle": " {\n return [\n 'priority' => $this-", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskOptions.php", "language": "php", "file_size": 933, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\LinkedInOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share\\AuthorShare;\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share\\LifecycleStateShare;\nuse Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share\\ShareContentShare;\nuse Sym", "suffix": "$options = new LinkedInOptions([\n 'contentCertificationRecord' => 'test_record',\n 'firstPublishedAt' => 1234567890,\n ]);\n\n $this->assertSame([\n 'contentCertificationRecord' => 'test_record',\n 'first", "middle": "fony\\Component\\Notifier\\Bridge\\LinkedIn\\Share\\VisibilityShare;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\nfinal class LinkedInOptionsTest extends TestCase\n{\n public function testLinkedInOptions()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInOptionsTest.php", "language": "php", "file_size": 4937, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mastodon;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Quentin Dequippe getSupportedSchemes());\n }\n\n $token = $this->getUser($dsn);\n $host = $dsn->getHost();\n $port = $dsn->getPort();\n\n return (new MastodonTransport($tok", "middle": "equippe.tech>\n */\nfinal class MastodonTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): MastodonTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('mastodon' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mastodon/MastodonTransportFactory.php", "language": "php", "file_size": 1177, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FreeMobile\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\FreeMobile\\FreeMobileTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifie", "suffix": "ory(): FreeMobileTransportFactory\n {\n return new FreeMobileTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'freemobile://host.test?phone=0611223344',\n 'freemobile://log", "middle": "r\\Test\\MissingRequiredOptionTestTrait;\n\nfinal class FreeMobileTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFact", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportFactoryTest.php", "language": "php", "file_size": 1888, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zendesk\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Zendesk\\ZendeskTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class ZendeskTrans", "suffix": " function createProvider(): iterable\n {\n yield [\n 'zendesk://subdomain.zendesk.com',\n 'zendesk://email:token@subdomain.zendesk.com',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yie", "middle": "portFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): ZendeskTransportFactory\n {\n return new ZendeskTransportFactory();\n }\n\n public static", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zendesk/Tests/ZendeskTransportFactoryTest.php", "language": "php", "file_size": 1451, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageMedia;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class MessageMediaOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ", "suffix": "_url'] = $callbackUrl;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function deliveryReport(bool $deliveryReport): static\n {\n $this->options['delivery_report'] = $deliveryReport;\n\n return $this;\n }\n\n ", "middle": " ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function callbackUrl(string $callbackUrl): static\n {\n $this->options['callback", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaOptions.php", "language": "php", "file_size": 2167, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageMedia;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Adrian Nguyen getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $apiSecret = $this->getPassword($dsn);\n $from = $dsn->getOption('from');\n $h", "middle": "il.com>\n */\nfinal class MessageMediaTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): MessageMediaTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('messagemedia' !== $schem", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransportFactory.php", "language": "php", "file_size": 1349, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageMedia\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\MessageMedia\\MessageMediaTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class MessageMed", "suffix": " public static function createProvider(): iterable\n {\n yield [\n 'messagemedia://host.test',\n 'messagemedia://apiKey:apiSecret@host.test',\n ];\n\n yield [\n 'messagemedia://host.test?from=TEST',\n ", "middle": "iaTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): MessageMediaTransportFactory\n {\n return new MessageMediaTransportFactory();\n }\n\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaTransportFactoryTest.php", "language": "php", "file_size": 1618, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageMedia\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\MessageMedia\\MessageMediaOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\MessageMedia\\MessageMediaTransport;\nuse Symfony\\C", "suffix": "ony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class MessageMediaTransportTest extends TransportTestCase\n{\n public static function ", "middle": "omponent\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportExceptionInterface;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symf", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaTransportTest.php", "language": "php", "file_size": 3071, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Iqsms;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Oleksandr Barabolia getSupportedSchemes());\n }\n\n $login = $this->getUser($dsn);\n $password = $this->getPassword($dsn);\n $from = $dsn->getRequiredOption('from');\n $host = 'default' ", "middle": "ya@gmail.com>\n */\nfinal class IqsmsTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): IqsmsTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('iqsms' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Iqsms/IqsmsTransportFactory.php", "language": "php", "file_size": 1317, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushy;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Pushy\\Enum\\InterruptionLevel;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Joseph Bielawski \n *\n * @see http", "suffix": "cation(Notification $notification): self\n {\n $options = new self();\n $options->interruptionLevel(\n match ($notification->getImportance()) {\n Notification::IMPORTANCE_URGENT => InterruptionLevel::CRITICAL,\n ", "middle": "s://pushy.me/docs/api/send-notifications\n */\nfinal class PushyOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public static function fromNotifi", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/PushyOptions.php", "language": "php", "file_size": 4894, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushy;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Component\\Notifier\\Transport\\Trans", "suffix": "sn->getScheme()) {\n throw new UnsupportedSchemeException($dsn, 'pushy', $this->getSupportedSchemes());\n }\n\n $apiKey = $dsn->getUser();\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $port = $dsn->ge", "middle": "portInterface;\n\n/**\n * @author Joseph Bielawski \n */\nfinal class PushyTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TransportInterface\n {\n if ('pushy' !== $d", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/PushyTransportFactory.php", "language": "php", "file_size": 1224, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushy\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Pushy\\Enum\\InterruptionLevel;\nuse Symfony\\Component\\Notifier\\Bridge\\Pushy\\PushyOptions;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\n\nclass PushyOptionsTest extends TestCase\n{", "suffix": " ->interruptionLevel(InterruptionLevel::TIME_SENSITIVE)\n ->body('Hello world!')\n ->contentAvailable(false)\n ->mutableContent(true)\n ->ttl(3600)\n ->threadId(123);\n\n self::assertSame([\n ", "middle": "\n public function testPushyOptions()\n {\n $options = (new PushyOptions())\n ->to('device')\n ->collapseKey('key')\n ->schedule($schedule = (time() + 3600))\n ->badge(1)\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/Tests/PushyOptionsTest.php", "language": "php", "file_size": 2402, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushy\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Pushy\\PushyOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Pushy\\PushyTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\", "suffix": "tInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class PushyTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): PushyTransport\n {\n return new PushyTransp", "middle": "PushMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClien", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/Tests/PushyTransportTest.php", "language": "php", "file_size": 3612, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageBird;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Vasilij Duško getSupportedSchemes());\n }\n\n $token = $this->getUser($dsn);\n $from = $dsn->getRequiredOption('from');\n $host = 'default' === $dsn->getHost() ? null : $dsn", "middle": "t>\n */\nfinal class MessageBirdTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): MessageBirdTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('messagebird' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/MessageBirdTransportFactory.php", "language": "php", "file_size": 1286, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageBird\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\MessageBird\\MessageBirdTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Noti", "suffix": "Factory(): MessageBirdTransportFactory\n {\n return new MessageBirdTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'messagebird://host.test?from=0611223344',\n 'messagebir", "middle": "fier\\Test\\MissingRequiredOptionTestTrait;\n\nfinal class MessageBirdTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function create", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdTransportFactoryTest.php", "language": "php", "file_size": 1792, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\Share;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\n\n/**\n * @author Smaïne Milianni \n *\n * @see https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/ugc-post-api#sharecontent\n */\nfinal class S", "suffix": " const LEARNING_COURSE = 'LEARNING_COURSE';\n public const JOB = 'JOB';\n public const QUESTION = 'QUESTION';\n public const ANSWER = 'ANSWER';\n public const CAROUSEL = 'CAROUSEL';\n public const TOPIC = 'TOPIC';\n public const NATIVE_DOCUMENT", "middle": "hareContentShare extends AbstractLinkedInShare\n{\n public const ARTICLE = 'ARTICLE';\n public const IMAGE = 'IMAGE';\n public const NONE = 'NONE';\n public const RICH = 'RICH';\n public const VIDEO = 'VIDEO';\n public", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Share/ShareContentShare.php", "language": "php", "file_size": 2612, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zendesk\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Zendesk\\ZendeskOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Zendesk\\ZendeskTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;", "suffix": "blic static function createTransport(?HttpClientInterface $client = null): ZendeskTransport\n {\n return (new ZendeskTransport('testEmail', 'testToken', $client ?? new MockHttpClient()))->setHost('test.zendesk.com');\n }\n\n public static functi", "middle": "\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class ZendeskTransportTest extends TransportTestCase\n{\n pu", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zendesk/Tests/ZendeskTransportTest.php", "language": "php", "file_size": 1456, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageMedia\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MessageMedia\\MessageMediaOptions;\n\nclass MessageMediaOptionsTest extends TestCase\n{\n public function testMessageMediaOptions()\n {\n $messag", "suffix": " ->metadata(['test_metadata'])\n ->scheduled('test_scheduled')\n ->subject('test_subject');\n\n self::assertSame([\n 'media' => ['test_media'],\n 'callback_url' => 'test_callback_url',\n 'format'", "middle": "eMediaOptions = (new MessageMediaOptions())->\n media(['test_media'])\n ->callbackUrl('test_callback_url')\n ->format('test_format')\n ->deliveryReport(true)\n ->expiry(999)\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaOptionsTest.php", "language": "php", "file_size": 1298, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Iqsms\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Iqsms\\IqsmsTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingR", "suffix": "tFactory\n {\n return new IqsmsTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'iqsms://host.test?from=FROM',\n 'iqsms://login:password@host.test?from=FROM',\n ];\n ", "middle": "equiredOptionTestTrait;\n\nfinal class IqsmsTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): IqsmsTranspor", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/IqsmsTransportFactoryTest.php", "language": "php", "file_size": 1924, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushy;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\C", "suffix": "face;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Joseph Bielawski \n */\nfinal class PushyTransport extends AbstractTransport\n{\n protected const HOST = 'api.pushy.me';\n\n public function __construct(\n ", "middle": "omponent\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInter", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/PushyTransport.php", "language": "php", "file_size": 3474, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageBird;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class MessageBirdOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ", "suffix": "eatedDatetime'] = $createdDatetime;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function dataCoding(string $dataCoding): static\n {\n $this->options['dataCoding'] = $dataCoding;\n\n return $this;\n }\n\n /*", "middle": ") {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function createdDatetime(string $createdDatetime): static\n {\n $this->options['cr", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/MessageBirdOptions.php", "language": "php", "file_size": 2912, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageBird\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MessageBird\\MessageBirdOptions;\n\nclass MessageBirdOptionsTest extends TestCase\n{\n public function testMessageBirdOptions()\n {\n $messageBirdOptions = (ne", "suffix": "gateway(999)\n ->groupIds(['test_group_ids'])\n ->mClass(888)\n ->reference('test_reference')\n ->reportUrl('test_report_url')\n ->shortenUrls(true)\n ->typeDetails('test_type_details')\n ", "middle": "w MessageBirdOptions())\n ->type('test_type')\n ->scheduledDatetime('test_scheduled_datetime')\n ->createdDatetime('test_created_datetime')\n ->dataCoding('test_data_coding')\n ->", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdOptionsTest.php", "language": "php", "file_size": 1636, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zendesk;\n\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn", "suffix": " if ('zendesk' !== $scheme) {\n throw new UnsupportedSchemeException($dsn, 'zendesk', $this->getSupportedSchemes());\n }\n\n $emailAddress = $this->getUser($dsn);\n $apiToken = $this->getPassword($dsn);\n $host = $thi", "middle": ";\n\n/**\n * @author Joseph Bielawski \n */\nfinal class ZendeskTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): ZendeskTransport\n {\n $scheme = $dsn->getScheme();\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskTransportFactory.php", "language": "php", "file_size": 1697, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Ntfy;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\n\n/**\n", "suffix": " {\n throw new UnsupportedSchemeException($dsn, 'ntfy', $this->getSupportedSchemes());\n }\n\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $topic = substr($dsn->getPath(), 1);\n\n if (\\in_array($dsn->ge", "middle": " * @author Mickael Perraud \n */\nfinal class NtfyTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TransportInterface\n {\n if ('ntfy' !== $dsn->getScheme())", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/NtfyTransportFactory.php", "language": "php", "file_size": 1677, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Ntfy\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Ntfy\\NtfyTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Transport\\TransportFactoryInterface;\n\n/**\n * @author Mickael Pe", "suffix": " }\n\n public static function createProvider(): iterable\n {\n yield [\n 'ntfy://ntfy.sh/test',\n 'ntfy://user:password@default/test',\n ];\n yield [\n 'ntfy://ntfy.sh/test',\n 'ntfy://:passwor", "middle": "rraud \n */\nfinal class NtfyTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n public function createFactory(): TransportFactoryInterface\n {\n return new NtfyTransportFactory();\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/Tests/NtfyTransportFactoryTest.php", "language": "php", "file_size": 1476, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telegram;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\AbstractTelegramReplyMarkup;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Mihail Krasilnikov \n */\nfinal class TelegramOptions implements MessageOptionsInterface\n{\n public const PARSE_MODE_HTML = 'HTML';\n public const PARSE_MODE_MARKDOWN = 'Markdown';\n public const PARSE_MODE_MARKDOWN_V2", "suffix": "\n {\n return $this->options['chat_id'] ?? null;\n }\n\n /**\n * @return $this\n */\n public function chatId(string $id): static\n {\n $this->options['chat_id'] = $id;\n\n return $this;\n }\n\n /**\n * @return $this\n ", "middle": " = 'MarkdownV2';\n\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/TelegramOptions.php", "language": "php", "file_size": 6622, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telegram;\n\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Ds", "suffix": "etScheme()) {\n throw new UnsupportedSchemeException($dsn, 'telegram', $this->getSupportedSchemes());\n }\n\n $token = $this->getToken($dsn);\n $channel = $dsn->getOption('channel');\n $host = 'default' === $dsn->getHost() ", "middle": "n;\n\n/**\n * @author Fabien Potencier \n */\nfinal class TelegramTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TelegramTransport\n {\n if ('telegram' !== $dsn->g", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/TelegramTransportFactory.php", "language": "php", "file_size": 1852, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telegram\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\TelegramTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class TelegramTransportFacto", "suffix": "on createProvider(): iterable\n {\n yield ['telegram://host.test?channel=testChannel', 'telegram://user:password@host.test?channel=testChannel'];\n\n // Tests for `sslmode` option\n yield ['telegram://host.test?channel=testChannel&sslmod", "middle": "ryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): TelegramTransportFactory\n {\n return new TelegramTransportFactory();\n }\n\n public static functi", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportFactoryTest.php", "language": "php", "file_size": 1682, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\Button\\InlineKeyboardButton;\n\n/**\n * @author Mihail Krasilnikov \n *\n * @see https://core.telegram.org/bots/api#inli", "suffix": "[] $buttons\n *\n * @return $this\n */\n public function inlineKeyboard(array $buttons): static\n {\n $buttons = array_map(static fn (InlineKeyboardButton $button) => $button->toArray(), $buttons);\n\n $this->options['inline_keyboar", "middle": "nekeyboardmarkup\n */\nfinal class InlineKeyboardMarkup extends AbstractTelegramReplyMarkup\n{\n public function __construct()\n {\n $this->options['inline_keyboard'] = [];\n }\n\n /**\n * @param InlineKeyboardButton", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/InlineKeyboardMarkup.php", "language": "php", "file_size": 1047, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageMedia;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\", "suffix": "ptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Adrian Nguyen \n */\nfinal class MessageMediaTransport extends AbstractTransport\n{\n protected const HOST = 'api.messagemedia.com';\n\n public func", "middle": "Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExce", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransport.php", "language": "php", "file_size": 3664, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Iqsms\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Iqsms\\IqsmsTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Comp", "suffix": "ic function createTransport(?HttpClientInterface $client = null): IqsmsTransport\n {\n return new IqsmsTransport('login', 'password', 'sender', $client ?? new MockHttpClient());\n }\n\n public static function toStringProvider(): iterable\n {\n ", "middle": "onent\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class IqsmsTransportTest extends TransportTestCase\n{\n public stat", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/IqsmsTransportTest.php", "language": "php", "file_size": 1386, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageBird;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\N", "suffix": "**\n * @author Vasilij Duško \n */\nfinal class MessageBirdTransport extends AbstractTransport\n{\n protected const HOST = 'rest.messagebird.com';\n\n public function __construct(\n #[\\SensitiveParameter] private string $token,\n ", "middle": "otifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/MessageBirdTransport.php", "language": "php", "file_size": 3257, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MessageBird\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\MessageBird\\MessageBirdOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\MessageBird\\MessageBirdTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatM", "suffix": "\nfinal class MessageBirdTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): MessageBirdTransport\n {\n return new MessageBirdTransport('token', 'from', $client ?? new MockHttpCl", "middle": "essage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdTransportTest.php", "language": "php", "file_size": 1597, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Ntfy\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Ntfy\\NtfyTransport;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase", "suffix": "/\nfinal class NtfyTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): NtfyTransport\n {\n return new NtfyTransport('test', true, $client ?? new MockHttpClient());\n }\n\n pub", "middle": ";\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Mickael Perraud \n *", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/Tests/NtfyTransportTest.php", "language": "php", "file_size": 4618, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telegram\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\Button\\InlineKeyboardButton;\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\InlineKeyboardMarkup;\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\TelegramOptions;\n\n", "suffix": " $returnedOptions = $options->answerCallbackQuery('123', true, $cacheTime);\n\n $this->assertSame($options, $returnedOptions);\n $this->assertEquals(\n [\n 'callback_query_id' => '123',\n 'show_alert' => tr", "middle": "final class TelegramOptionsTest extends TestCase\n{\n #[DataProvider('validCacheTimeDataProvider')]\n public function testAnswerCallbackQueryWithCacheTime(int $cacheTime)\n {\n $options = new TelegramOptions();\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramOptionsTest.php", "language": "php", "file_size": 5088, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\Button\\KeyboardButton;\n\n/**\n * @author Mihail Krasilnikov \n *\n * @see https://core.telegram.org/bots/api#replykeyboardmarkup\n */\nfinal clas", "suffix": "*/\n public function keyboard(array $buttons): static\n {\n $buttons = array_map(static fn (KeyboardButton $button) => $button->toArray(), $buttons);\n\n $this->options['keyboard'][] = $buttons;\n\n return $this;\n }\n\n /**\n * @", "middle": "s ReplyKeyboardMarkup extends AbstractTelegramReplyMarkup\n{\n public function __construct()\n {\n $this->options['keyboard'] = [];\n }\n\n /**\n * @param KeyboardButton[] $buttons\n *\n * @return $this\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/ReplyKeyboardMarkup.php", "language": "php", "file_size": 1536, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Iqsms;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifie", "suffix": "\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Oleksandr Barabolia \n */\nfinal class IqsmsTransport extends AbstractTransport\n{\n protected const HOST = 'api.iqsms.ru';\n\n public function __construct(\n pri", "middle": "r\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Iqsms/IqsmsTransport.php", "language": "php", "file_size": 3040, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Ntfy;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedOptionsException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony", "suffix": "erface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Mickael Perraud \n */\nfinal class NtfyTransport extends AbstractTransport\n{\n protected const HOST = 'ntfy.sh';\n private ?string $user = null;\n pr", "middle": "\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInt", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/NtfyTransport.php", "language": "php", "file_size": 4359, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telegram;\n\nuse Symfony\\Component\\Notifier\\Exception\\MultipleExclusiveOptionsUsedException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\Abstra", "suffix": ", send a message in Telegram with the user you want\n * and then execute curl 'https://api.telegram.org/bot%token%/getUpdates' | json_pp\n * command.\n *\n * @author Fabien Potencier \n */\nfinal class TelegramTransport extends AbstractTransp", "middle": "ctTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * To get the chat id", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/TelegramTransport.php", "language": "php", "file_size": 8156, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushy\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Pushy\\PushyTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\n\nfinal class PushyTransportFactoryTest extends AbstractTransportFactoryTestCase\n", "suffix": "Key@api.pushy.me'];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'pushy://apiKey'];\n yield [false, 'somethingElse://apiKey'];\n }\n\n public static function unsupportedSchemeProvider(): iterable\n {\n", "middle": "{\n public function createFactory(): PushyTransportFactory\n {\n return new PushyTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield ['pushy://api.pushy.me', 'pushy://api", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/Tests/PushyTransportFactoryTest.php", "language": "php", "file_size": 1048, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Ntfy\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Ntfy\\NtfyOptions;\n\n/**\n * @author Mickael Perraud \n */\nclass NtfyOptionsTest extends TestCase\n{\n public function testNtfyOptions()\n {\n $delay = (new \\DateTime()", "suffix": "setTags(['tag1', 'tag2'])\n ->addTag('tag3')\n ->setDelay($delay)\n ->setActions([['action' => 'view', 'label' => 'View', 'url' => 'https://test.com']])\n ->addAction(['action' => 'http', 'label' => 'Open', 'url' => ", "middle": ")->add(new \\DateInterval('PT1M'));\n $ntfyOptions = (new NtfyOptions())\n ->setMessage('test message')\n ->setTitle('message title')\n ->setPriority(NtfyOptions::PRIORITY_URGENT)\n ->", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/Tests/NtfyOptionsTest.php", "language": "php", "file_size": 2102, "cut_index": 563, "middle_length": 229}} {"prefix": " yield ['telegram://api.telegram.org', self::createTransport()];\n yield ['telegram://api.telegram.org?channel=testChannel', self::createTransport(null, 'testChannel')];\n yield ['telegram://api.telegram.org?sslmode=disable', self::createTransport(null, null, true)];\n yield ['telegram://api.telegram.org?channel=testChannel&sslmode=disable', self::createTransport(null, 'testChannel', true)];\n }\n\n public static function supportedMessagesProvider(): iterable\n {\n yield [ne", "suffix": "SendWithErrorResponseThrowsTransportException()\n {\n $this->expectException(TransportException::class);\n $this->expectExceptionMessageMatches('/post.+testDescription.+400/');\n\n $client = new MockHttpClient(new MockResponse(json_encod", "middle": "w ChatMessage('Hello!')];\n }\n\n public static function unsupportedMessagesProvider(): iterable\n {\n yield [new SmsMessage('0611223344', 'Hello!')];\n yield [new DummyMessage()];\n }\n\n public function test", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php", "language": "php", "file_size": 42125, "cut_index": 2151, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Brevo\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Brevo\\BrevoTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingR", "suffix": "tFactory\n {\n return new BrevoTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'brevo://host.test?sender=0611223344',\n 'brevo://apiKey@host.test?sender=0611223344',\n ", "middle": "equiredOptionTestTrait;\n\nfinal class BrevoTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): BrevoTranspor", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/Tests/BrevoTransportFactoryTest.php", "language": "php", "file_size": 1768, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section;\n\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\ActionInterface;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field\\Activity;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field\\Fact;\nuse Symfony\\Component\\Notifie", "suffix": "sage-card-reference#section-fields\n */\nfinal class Section implements SectionInterface\n{\n private array $options = [];\n\n /**\n * @return $this\n */\n public function title(string $title): static\n {\n $this->options['title'] = $title;", "middle": "r\\Bridge\\MicrosoftTeams\\Section\\Field\\Image;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/outlook/actionable-messages/mes", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Section.php", "language": "php", "file_size": 2289, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Bandwidth\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Bandwidth\\BandwidthOptions;\n\nclass BandwidthOptionsTest extends TestCase\n{\n public function testBandwidthOptions()\n {\n $bandwidthOpt", "suffix": " ->priority('test_priority');\n\n self::assertSame([\n 'media' => ['foo'],\n 'tag' => 'test_tag',\n 'accountId' => 'test_account_id',\n 'applicationId' => 'test_application_id',\n 'expiratio", "middle": "ions = (new BandwidthOptions())\n ->media(['foo'])\n ->tag('test_tag')\n ->accountId('test_account_id')\n ->applicationId('test_application_id')\n ->expiration('test_expiration')\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/Tests/BandwidthOptionsTest.php", "language": "php", "file_size": 1118, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\Button;\n\n/**\n * @author Mihail Krasilnikov \n *\n * @see https://core.telegram.org/bots/api#keyboardbutton\n */\nfinal class KeyboardButton extends AbstractKeyboardButton\n{\n public fu", "suffix": "bool;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function requestLocation(bool $bool): static\n {\n $this->options['request_location'] = $bool;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n ", "middle": "nction __construct(string $text)\n {\n $this->options['text'] = $text;\n }\n\n /**\n * @return $this\n */\n public function requestContact(bool $bool): static\n {\n $this->options['request_contact'] = $", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/Button/KeyboardButton.php", "language": "php", "file_size": 1155, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Lox24;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse ", "suffix": "ent\\Exception\\RedirectionExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ServerExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author ", "middle": "Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInterface;\nuse Symfony\\Contracts\\HttpCli", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Lox24Transport.php", "language": "php", "file_size": 6516, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Lox24;\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Comp", "suffix": "inal class Lox24TransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): Lox24Transport\n {\n $scheme = $dsn->getScheme();\n\n if (!\\in_array($scheme, $this->getSupportedSchemes(), true)) {\n throw ne", "middle": "onent\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Andrei Lebedev \n */\nf", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Lox24TransportFactory.php", "language": "php", "file_size": 1588, "cut_index": 537, "middle_length": 229}} {"prefix": "Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Lox24\\Lox24Options;\nuse Symfony\\Component\\Notifier\\Bridge\\Lox24\\Lox24Transport;\nuse Symfony\\Component\\Notifier\\Bridge\\Lox24\\Type;\nuse Symfony\\Component\\Notifier\\Bridge\\Lox24\\VoiceLanguage;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\", "suffix": "age\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Andrei Lebedev \n */\nclass Lox24TransportTest extends TransportTestCase\n{\n private cons", "middle": "Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Mess", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Tests/Lox24TransportTest.php", "language": "php", "file_size": 12278, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Lox24\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\MethodRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\RemoteEvent\\Event\\Sms\\SmsEvent;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Webhook\\Cli", "suffix": "ass Lox24RequestParser extends AbstractRequestParser\n{\n protected function getRequestMatcher(): RequestMatcherInterface\n {\n return new MethodRequestMatcher('POST');\n }\n\n /**\n * @throws RejectWebhookException\n */\n protected fun", "middle": "ent\\AbstractRequestParser;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWebhookException;\n\n/**\n * @author Andrei Lebedev \n *\n * @see https://doc.lox24.eu/#section/Introduction/Notifications\n */\nfinal cl", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Webhook/Lox24RequestParser.php", "language": "php", "file_size": 4245, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GatewayApi;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\No", "suffix": "mfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Piergiuseppe Longo \n */\nfinal class GatewayApiTransport extends AbstractTransport\n{\n protected const HOST = 'gatewayapi.com';\n\n public function __construct(", "middle": "tifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Sy", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiTransport.php", "language": "php", "file_size": 3005, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GatewayApi\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\GatewayApi\\GatewayApiOptions;\n\nclass GatewayApiOptionsTest extends TestCase\n{\n public function testGatewayApiOptions()\n {\n $gatewayApiOptions = (new GatewayApiOptions())\n ->class('test_cl", "suffix": "\n ->userRef('test_user_ref')\n ->label('test_label');\n\n self::assertSame([\n 'class' => 'test_class',\n 'callback_url' => 'test_callback_url',\n 'userref' => 'test_user_ref',\n 'label' => ", "middle": "ass')\n ->callbackUrl('test_callback_url')", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiOptionsTest.php", "language": "php", "file_size": 955, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Bandwidth\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Bandwidth\\BandwidthTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionT", "suffix": "ry\n {\n return new BandwidthTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield ['bandwidth://host.test?from=0611223344&account_id=account_id&application_id=application_id&priority=priority', 'bandw", "middle": "estTrait;\n\nfinal class BandwidthTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): BandwidthTransportFacto", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/Tests/BandwidthTransportFactoryTest.php", "language": "php", "file_size": 2904, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Infobip;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notif", "suffix": "* @author Fabien Potencier \n * @author Jérémy Romey \n */\nfinal class InfobipTransport extends AbstractTransport\n{\n public function __construct(\n #[\\SensitiveParameter] private string $authToken,\n p", "middle": "ier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransport.php", "language": "php", "file_size": 3325, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Bandwidth;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class BandwidthOptions implements MessageOptionsInterface\n{\n public function __construct(\n private arr", "suffix": "ptions['accountId'] = $accountId;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function applicationId(string $applicationId): static\n {\n $this->options['applicationId'] = $applicationId;\n\n return $this;\n ", "middle": "ay $options = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function accountId(string $accountId): static\n {\n $this->o", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/BandwidthOptions.php", "language": "php", "file_size": 1787, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Bandwidth;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author gnito-org \n */\n", "suffix": " if (self::TRANSPORT_SCHEME !== $scheme) {\n throw new UnsupportedSchemeException($dsn, self::TRANSPORT_SCHEME, $this->getSupportedSchemes());\n }\n\n $username = $this->getUser($dsn);\n $password = $this->getPassword($dsn);\n ", "middle": "final class BandwidthTransportFactory extends AbstractTransportFactory\n{\n private const TRANSPORT_SCHEME = 'bandwidth';\n\n public function create(Dsn $dsn): BandwidthTransport\n {\n $scheme = $dsn->getScheme();\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/BandwidthTransportFactory.php", "language": "php", "file_size": 1642, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Infobip\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Infobip\\InfobipTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\Mi", "suffix": "ipTransportFactory\n {\n return new InfobipTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'infobip://host.test?from=0611223344',\n 'infobip://authtoken@host.test?from=061", "middle": "ssingRequiredOptionTestTrait;\n\nfinal class InfobipTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): Infob", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportFactoryTest.php", "language": "php", "file_size": 1766, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Brevo;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\nfinal class BrevoOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public funct", "suffix": "\n {\n $this->options['webUrl'] = $url;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function type(string $type = 'transactional'): static\n {\n $this->options['type'] = $type;\n\n return $this;\n }\n\n", "middle": "ion toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function webUrl(string $url): static", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/BrevoOptions.php", "language": "php", "file_size": 1160, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Brevo;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Pierre Tanguy\n */\nfinal class ", "suffix": "xception($dsn, 'brevo', $this->getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $sender = $dsn->getRequiredOption('sender');\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $port = $dsn->get", "middle": "BrevoTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): BrevoTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('brevo' !== $scheme) {\n throw new UnsupportedSchemeE", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/BrevoTransportFactory.php", "language": "php", "file_size": 1232, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\Button;\n\n/**\n * @author Mihail Krasilnikov \n *\n * @see https://core.telegram.org/bots/api#inlinekeyboardbutton\n */\nfinal class InlineKeyboardButton extends AbstractKeyboardButton\n{\n public function ", "suffix": "is;\n }\n\n /**\n * @return $this\n */\n public function loginUrl(string $url): static\n {\n $this->options['login_url']['url'] = $url;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function loginUrlForwar", "middle": "__construct(string $text = '')\n {\n $this->options['text'] = $text;\n }\n\n /**\n * @return $this\n */\n public function url(string $url): static\n {\n $this->options['url'] = $url;\n\n return $th", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/Button/InlineKeyboardButton.php", "language": "php", "file_size": 1878, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Lox24\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Lox24\\Lox24Options;\nuse Symfony\\Component\\Notifier\\Bridge\\Lox24\\Type;\nuse Symfony\\Component\\Notifier\\Bridge\\Lox24\\VoiceLanguage;\n\n/**\n * @author Andrei Lebedev \n */\nclass ", "suffix": "->toArray()['delivery_at']);\n }\n\n public function testDeliveryWithNull()\n {\n $options = (new Lox24Options())->deliveryAt(null);\n $this->assertSame(0, $options->toArray()['delivery_at']);\n }\n\n public function testVoiceLangAuto()", "middle": "Lox24OptionsTest extends TestCase\n{\n public function testDeliveryAtWithNotNull()\n {\n $options = (new Lox24Options())->deliveryAt((new \\DateTimeImmutable())->setTimestamp(123));\n $this->assertSame(123, $options", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Tests/Lox24OptionsTest.php", "language": "php", "file_size": 2388, "cut_index": 563, "middle_length": 229}} {"prefix": "ier\\Bridge\\Lox24\\Webhook\\Lox24RequestParser;\nuse Symfony\\Component\\RemoteEvent\\Event\\Sms\\SmsEvent;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWebhookException;\n\n/**\n * @author Andrei Lebedev \n */\nclass Lox24RequestParserTest extends TestCase\n{\n private Lox24RequestParser $parser;\n\n protected function setUp(): void\n {\n $this->parser = new Lox24RequestParser();\n }\n\n public function testMissingBasicPayloadStructur", "suffix": "ms.delivery']);\n $this->parser->parse($request, '');\n }\n\n public function testSmsDeliveryMissingMsgId()\n {\n $this->expectException(RejectWebhookException::class);\n $this->expectExceptionMessage('The required field \"id\" is miss", "middle": "e()\n {\n $this->expectException(RejectWebhookException::class);\n $this->expectExceptionMessage('The required fields \"id\", \"data\" are missing from the payload.');\n\n $request = $this->getRequest(['name' => 's", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Tests/Webhook/Lox24RequestParserTest.php", "language": "php", "file_size": 10805, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GatewayApi;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Piergiuseppe Longo getSupportedSchemes());\n }\n\n $authToken = $this->getUser($dsn);\n $from = $dsn->getRequiredOption('from');\n $host = 'default' === $dsn->getHost", "middle": "e.longo@gmail.com>\n */\nfinal class GatewayApiTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): GatewayApiTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('gatewayapi' !== $", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiTransportFactory.php", "language": "php", "file_size": 1303, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GatewayApi\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\GatewayApi\\GatewayApiTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifie", "suffix": "actoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): GatewayApiTransportFactory\n {\n return new GatewayApiTransportFactory();\n }\n\n public static function createProvide", "middle": "r\\Test\\MissingRequiredOptionTestTrait;\n\n/**\n * @author Piergiuseppe Longo \n * @author Oskar Stark \n */\nfinal class GatewayApiTransportFactoryTest extends AbstractTransportF", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiTransportFactoryTest.php", "language": "php", "file_size": 1831, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Bandwidth;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfo", "suffix": "terface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author gnito-org \n */\nfinal class BandwidthTransport extends AbstractTransport\n{\n protected const HOST = 'messaging.bandwidth.com';\n\n public functio", "middle": "ny\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionIn", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/BandwidthTransport.php", "language": "php", "file_size": 4278, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Infobip\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Infobip\\InfobipTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfon", "suffix": "lic static function createTransport(?HttpClientInterface $client = null): InfobipTransport\n {\n return (new InfobipTransport('authtoken', '0611223344', $client ?? new MockHttpClient()))->setHost('host.test');\n }\n\n public static function toSt", "middle": "y\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class InfobipTransportTest extends TransportTestCase\n{\n pub", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportTest.php", "language": "php", "file_size": 1421, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Lox24;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Andrei Lebedev \n */\nfinal class Lox24Options implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ) {\n }\n\n", "suffix": "ull or not set, the message will be sent immediately.\n */\n public function deliveryAt(?\\DateTimeInterface $deliveryAt): self\n {\n $this->options['delivery_at'] = $deliveryAt ? $deliveryAt->getTimestamp() : 0;\n\n return $this;\n }\n\n ", "middle": " public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * DateTime object of SMS the delivery time.\n * If N", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Lox24Options.php", "language": "php", "file_size": 2111, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GatewayApi;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class GatewayApiOptions implements MessageOptionsInterface\n{\n public function __construct(\n ", "suffix": "this->options['class'] = $class;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function userRef(string $userRef): static\n {\n $this->options['userref'] = $userRef;\n\n return $this;\n }\n\n /**\n * @retur", "middle": " private array $options = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function class(string $class): static\n {\n $", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiOptions.php", "language": "php", "file_size": 1423, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GatewayApi\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\GatewayApi\\GatewayApiOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\GatewayApi\\GatewayApiTransport;\nuse Symfony\\Compone", "suffix": "ransport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Piergiuseppe Longo \n * @author Oskar Stark \n */\nfinal class GatewayApiTransportTest extends TransportTestC", "middle": "nt\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\T", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiTransportTest.php", "language": "php", "file_size": 2245, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Infobip;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Fabien Potencier getSupportedSchemes());\n }\n\n $authToken = $this->getUser($dsn);\n $from = $dsn->getRequiredOption('from');\n $host = $dsn->g", "middle": "om>\n * @author Jérémy Romey \n */\nfinal class InfobipTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): InfobipTransport\n {\n $scheme = $dsn->getScheme();\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransportFactory.php", "language": "php", "file_size": 1280, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Lox24\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Lox24\\Lox24TransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingR", "suffix": " use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'lox24://123456:aaaabbbbbbccccccdddddeeee@default?from=0611223344'];\n yield [false, 'somethin", "middle": "equiredOptionTestTrait;\nuse Symfony\\Component\\Notifier\\Transport\\TransportFactoryInterface;\n\n/**\n * @author Andrei Lebedev \n */\nclass Lox24TransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Tests/Lox24TransportFactoryTest.php", "language": "php", "file_size": 2008, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Bandwidth\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Bandwidth\\BandwidthOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Bandwidth\\BandwidthTransport;\nuse Symfony\\Component\\Notifi", "suffix": "ests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class BandwidthTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInt", "middle": "er\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\T", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/Tests/BandwidthTransportTest.php", "language": "php", "file_size": 3834, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Brevo\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Brevo\\BrevoTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\Ch", "suffix": "e;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class BrevoTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): BrevoTransport\n {\n return (new BrevoTransport('api", "middle": "atMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterfac", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/Tests/BrevoTransportTest.php", "language": "php", "file_size": 2091, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Plivo;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class PlivoOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $opti", "suffix": "\n return $this;\n }\n\n /**\n * @return $this\n */\n public function mediaUrls(string $mediaUrls): static\n {\n $this->options['media_urls'] = $mediaUrls;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n publ", "middle": "ons = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function log(bool $log): static\n {\n $this->options['log'] = $log;\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/PlivoOptions.php", "language": "php", "file_size": 1918, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Plivo;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author gnito-org getSupportedSchemes());\n }\n\n $authId = $this->getUser($dsn);\n $authToken = $this->getPassword($dsn);\n ", "middle": "org>\n */\nfinal class PlivoTransportFactory extends AbstractTransportFactory\n{\n private const TRANSPORT_SCHEME = 'plivo';\n\n public function create(Dsn $dsn): PlivoTransport\n {\n $scheme = $dsn->getScheme();\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/PlivoTransportFactory.php", "language": "php", "file_size": 1404, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Plivo\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Plivo\\PlivoTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingR", "suffix": "tFactory\n {\n return new PlivoTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield ['plivo://host.test?from=0611223344', 'plivo://authId:authToken@host.test?from=0611223344'];\n }\n\n public stati", "middle": "equiredOptionTestTrait;\n\nfinal class PlivoTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): PlivoTranspor", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/Tests/PlivoTransportFactoryTest.php", "language": "php", "file_size": 1782, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ContactEveryone;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n *\n * @see https://ceo-be.multimediabs.com/attachments/hosted/lightApiManualsFR\n */\nfinal class ContactEveryoneOptio", "suffix": "this\n */\n public function diffusionName(string $diffusionName): static\n {\n $this->options['diffusionname'] = $diffusionName;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function category(string $category):", "middle": "ns implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneOptions.php", "language": "php", "file_size": 1599, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ContactEveryone;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse", "suffix": "tionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Franck Ranaivo-Harisoa \n */\nfinal class ContactEveryoneTransport extends AbstractTransport\n{\n protected const HOST = 'contact-everyone.orange-b", "middle": " Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExcep", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneTransport.php", "language": "php", "file_size": 3834, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ContactEveryone\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\ContactEveryone\\ContactEveryoneTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class C", "suffix": "Factory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'contact-everyone://host.test',\n 'contact-everyone://token@host.test',\n ];\n\n yield [\n 'contact-everyone://host.tes", "middle": "ontactEveryoneTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): ContactEveryoneTransportFactory\n {\n return new ContactEveryoneTransport", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/Tests/ContactEveryoneTransportFactoryTest.php", "language": "php", "file_size": 1944, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OvhCloud;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse ", "suffix": "ransport\n{\n protected const HOST = 'eu.api.ovh.com';\n\n private ?string $sender = null;\n private bool $noStopClause = false;\n\n public function __construct(\n #[\\SensitiveParameter] private string $applicationKey,\n #[\\SensitiveParame", "middle": "Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Thomas Ferney \n */\nfinal class OvhCloudTransport extends AbstractT", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php", "language": "php", "file_size": 5205, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OvhCloud\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\OvhCloud\\OvhCloudTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTestTrait;\n\nfinal class OvhCloudTransportFactoryTest ex", "suffix": " }\n\n public static function createProvider(): iterable\n {\n yield [\n 'ovhcloud://host.test?service_name=serviceName',\n 'ovhcloud://key:secret@host.test?consumer_key=consumerKey&service_name=serviceName',\n ];\n\n ", "middle": "tends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): OvhCloudTransportFactory\n {\n return new OvhCloudTransportFactory();\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportFactoryTest.php", "language": "php", "file_size": 3324, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams;\n\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\ActionInterface;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Section;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\SectionInterface;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\", "suffix": "ocs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference\n */\nfinal class MicrosoftTeamsOptions implements MessageOptionsInterface\n{\n private const MAX_ACTIONS = 4;\n\n public function __construct(\n private array $options = [],\n", "middle": "Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://d", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsOptions.php", "language": "php", "file_size": 4663, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams;\n\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\No", "suffix": "ion create(Dsn $dsn): MicrosoftTeamsTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('microsoftteams' !== $scheme) {\n throw new UnsupportedSchemeException($dsn, 'microsoftteams', $this->getSupportedSchemes());\n }\n\n ", "middle": "tifier\\Transport\\Dsn;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n */\nfinal class MicrosoftTeamsTransportFactory extends AbstractTransportFactory\n{\n public funct", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsTransportFactory.php", "language": "php", "file_size": 1474, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action;\n\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Element\\Header;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/ou", "suffix": " */\n public function name(string $name): static\n {\n $this->options['name'] = $name;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function target(string $url): static\n {\n $this->options['target'] =", "middle": "tlook/actionable-messages/message-card-reference#httppost-action\n */\nfinal class HttpPostAction implements ActionCardCompatibleActionInterface\n{\n private array $options = ['@type' => 'HttpPOST'];\n\n /**\n * @return $this\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/HttpPostAction.php", "language": "php", "file_size": 1679, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/outlook/act", "suffix": " 'windows',\n ];\n\n private array $options = [];\n\n /**\n * @return $this\n */\n public function name(string $name): static\n {\n $this->options['name'] = $name;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n", "middle": "ionable-messages/message-card-reference#openuri-action\n */\nfinal class OpenUriAction implements ActionCardCompatibleActionInterface\n{\n private const OPERATING_SYSTEMS = [\n 'android',\n 'default',\n 'iOS',\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/OpenUriAction.php", "language": "php", "file_size": 1548, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n */\nabstract class AbstractInput implements InputInterface\n{\n private array $options = [];\n\n /**\n ", "suffix": "tatic\n {\n $this->options['isRequired'] = $required;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function title(string $title): static\n {\n $this->options['title'] = $title;\n\n return $this;\n }\n\n", "middle": " * @return $this\n */\n public function id(string $id): static\n {\n $this->options['id'] = $id;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function isRequired(bool $required): s", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/AbstractInput.php", "language": "php", "file_size": 1255, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/outlo", "suffix": " /**\n * @return $this\n */\n public function choice(string $display, string $value): static\n {\n $this->options['choices'][] = ['display' => $display, 'value' => $value];\n\n return $this;\n }\n\n /**\n * @return $this\n ", "middle": "ok/actionable-messages/message-card-reference#multichoiceinput\n */\nfinal class MultiChoiceInput extends AbstractInput\n{\n private const STYLES = [\n 'expanded',\n 'normal',\n ];\n\n private array $options = [];\n\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/MultiChoiceInput.php", "language": "php", "file_size": 1691, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Brevo;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedOptionsException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfon", "suffix": "erface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Pierre Tanguy\n */\nfinal class BrevoTransport extends AbstractTransport\n{\n protected const HOST = 'api.brevo.com';\n\n public function __construct(\n #[\\SensitiveParamet", "middle": "y\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInt", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/BrevoTransport.php", "language": "php", "file_size": 3492, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Plivo;\n\nuse Symfony\\Component\\HttpClient\\Exception\\JsonException;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Sym", "suffix": "ny\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author gnito-org \n */\nfinal class PlivoTransport extends AbstractTransport\n{\n protected const HOS", "middle": "fony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfo", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/PlivoTransport.php", "language": "php", "file_size": 3770, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Plivo\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Plivo\\PlivoOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Plivo\\PlivoTransport;\nuse Symfony\\Component\\Notifier\\Exception\\Invalid", "suffix": "Message;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class PlivoTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, s", "middle": "ArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\Dummy", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/Tests/PlivoTransportTest.php", "language": "php", "file_size": 4168, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ContactEveryone;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Franck Ranaivo-Harisoa getSupportedSchemes());\n }\n\n $token = $this->getUser($dsn);\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $diffusionName = $", "middle": "anckranaivo@gmail.com>\n */\nfinal class ContactEveryoneTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): ContactEveryoneTransport\n {\n if ('contact-everyone' !== $dsn->getScheme()) ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneTransportFactory.php", "language": "php", "file_size": 1360, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OvhCloud;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Thomas Ferney \n */\nfi", "suffix": " UnsupportedSchemeException($dsn, 'ovhcloud', $this->getSupportedSchemes());\n }\n\n $applicationKey = $this->getUser($dsn);\n $applicationSecret = $this->getPassword($dsn);\n $consumerKey = $dsn->getRequiredOption('consumer_key');\n ", "middle": "nal class OvhCloudTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): OvhCloudTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('ovhcloud' !== $scheme) {\n throw new", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransportFactory.php", "language": "php", "file_size": 1627, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Compone", "suffix": ";\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n */\nfinal class MicrosoftTeamsTransport extends AbstractTransport\n{\n protected const ENDPOINT = 'outlook.office.com';\n\n public function __c", "middle": "nt\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsTransport.php", "language": "php", "file_size": 3476, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#invokeaddincomm", "suffix": "name'] = $name;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function addInId(string $addInId): static\n {\n $this->options['addInId'] = $addInId;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n ", "middle": "and-action\n */\nfinal class InvokeAddInCommandAction implements ActionInterface\n{\n private array $options = [];\n\n /**\n * @return $this\n */\n public function name(string $name): static\n {\n $this->options['", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/InvokeAddInCommandAction.php", "language": "php", "file_size": 1496, "cut_index": 524, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#dateinput\n */\nfinal class DateInput extends AbstractInput\n{\n private array $options = []", "suffix": "unction includeTime(bool $includeTime): static\n {\n $this->options['includeTime'] = $includeTime;\n\n return $this;\n }\n\n public function toArray(): array\n {\n return parent::toArray() + $this->options + ['@type' => 'DateInput']", "middle": ";\n\n /**\n * @return $this\n */\n public f", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/DateInput.php", "language": "php", "file_size": 924, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\OpenUriAction;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\MicrosoftTeamsOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Section;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Notification\\", "suffix": ";\n\n $this->assertSame(\n [\n 'title' => $subject,\n 'text' => $content,\n '@type' => 'MessageCard',\n '@context' => 'https://schema.org/extensions',\n ],\n Microso", "middle": "Notification;\n\nfinal class MicrosoftTeamsOptionsTest extends TestCase\n{\n public function testFromNotification()\n {\n $notification = (new Notification($subject = 'Subject'))\n ->content($content = 'Content')", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsOptionsTest.php", "language": "php", "file_size": 8905, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ContactEveryone\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\ContactEveryone\\ContactEveryoneOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\ContactEveryone\\ContactEveryoneTrans", "suffix": ";\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class ContactEveryoneTransportTest extends TransportTestCase\n{\n public static", "middle": "port;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/Tests/ContactEveryoneTransportTest.php", "language": "php", "file_size": 2764, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action;\n\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\InputInterface;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.mic", "suffix": "ion name(string $name): static\n {\n $this->options['name'] = $name;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function input(InputInterface $inputAction): static\n {\n $this->options['inputs'][] = $input", "middle": "rosoft.com/en-us/outlook/actionable-messages/message-card-reference#actioncard-action\n */\nfinal class ActionCard implements ActionInterface\n{\n private array $options = [];\n\n /**\n * @return $this\n */\n public funct", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/ActionCard.php", "language": "php", "file_size": 1379, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#", "suffix": "'] = $multiline;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function maxLength(int $maxLength): static\n {\n $this->options['maxLength'] = $maxLength;\n\n return $this;\n }\n\n public function toArray(): a", "middle": "textinput\n */\nfinal class TextInput extends AbstractInput\n{\n private array $options = [];\n\n /**\n * @return $this\n */\n public function isMultiline(bool $multiline): static\n {\n $this->options['isMultiline", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/TextInput.php", "language": "php", "file_size": 1097, "cut_index": 515, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field;\n\n/**\n * @author Oskar Stark \n */\nfinal class Fact\n{\n private array $options = [];\n\n /**\n * @return $this\n */\n public function name(string $name): static\n {\n ", "suffix": "s;\n }\n\n /**\n * @return $this\n */\n public function value(string $value): static\n {\n $this->options['value'] = $value;\n\n return $this;\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n}\n", "middle": "$this->options['name'] = $name;\n\n return $thi", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/Fact.php", "language": "php", "file_size": 831, "cut_index": 523, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Termii\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Termii\\TermiiTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\Missi", "suffix": "nsportFactory\n {\n return new TermiiTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield ['termii://host.test?from=0611223344&channel=generic', 'termii://apiKey@host.test?from=0611223344&channel=gene", "middle": "ngRequiredOptionTestTrait;\n\nfinal class TermiiTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): TermiiTra", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Termii/Tests/TermiiTransportFactoryTest.php", "language": "php", "file_size": 1908, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Plivo\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Plivo\\PlivoOptions;\n\nclass PlivoOptionsTest extends TestCase\n{\n public function testPlivoOptions()\n {\n $plivoOptions = (new PlivoOptions", "suffix": " ->type('test_type');\n\n self::assertSame([\n 'log' => true,\n 'method' => 'test_method',\n 'url' => 'test_url',\n 'media_urls' => 'test_media_urls',\n 'powerpack_uuid' => 'test_powerpack_uuid',\n ", "middle": "())\n ->log(true)\n ->method('test_method')\n ->url('test_url')\n ->mediaUrls('test_media_urls')\n ->powerpackUuid('test_powerpack_uuid')\n ->trackable(true)\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/Tests/PlivoOptionsTest.php", "language": "php", "file_size": 1109, "cut_index": 515, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ContactEveryone\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\ContactEveryone\\ContactEveryoneOptions;\n\nclass ContactEveryoneOptionsTest extends TestCase\n{\n public function testContactEveryoneOptions()\n {\n ", "suffix": "ions())\n ->category('test_category')\n ->diffusionName('test_diffusion_name');\n\n self::assertSame([\n 'category' => 'test_category',\n 'diffusionname' => 'test_diffusion_name',\n ], $contactEveryoneOpti", "middle": " $contactEveryoneOptions = (new ContactEveryoneOpt", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/Tests/ContactEveryoneOptionsTest.php", "language": "php", "file_size": 862, "cut_index": 529, "middle_length": 52}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Element;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#header\n */\nfinal class Header\n{\n private array $options = [];\n", "suffix": "ction name(string $name): static\n {\n $this->options['name'] = $name;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function value(string $value): static\n {\n $this->options['value'] = $value;\n\n retu", "middle": "\n /**\n * @return $this\n */\n public fun", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Element/Header.php", "language": "php", "file_size": 989, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-refere", "suffix": "n $this;\n }\n\n /**\n * @return $this\n */\n public function title(string $title): static\n {\n $this->options['title'] = $title;\n\n return $this;\n }\n\n public function toArray(): array\n {\n return $this->options;\n ", "middle": "nce#image-object\n */\nfinal class Image\n{\n private array $options = [];\n\n /**\n * @return $this\n */\n public function image(string $imageUrl): static\n {\n $this->options['image'] = $imageUrl;\n\n retur", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/Image.php", "language": "php", "file_size": 1003, "cut_index": 512, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\MicrosoftTeamsOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\MicrosoftTeamsTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\", "suffix": "Interface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class MicrosoftTeamsTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): MicrosoftTeamsTransport\n {\n retur", "middle": "SmsMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClient", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsTransportTest.php", "language": "php", "file_size": 5761, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\OvhCloud\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\OvhCloud\\OvhCloudTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportExcepti", "suffix": "mfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class OvhCloudTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?string $sender = null, bool $noStopClause = false): OvhCloudTran", "middle": "on;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Sy", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportTest.php", "language": "php", "file_size": 4771, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\MicrosoftTeamsTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\n\nfinal class MicrosoftTeamsTransportFactoryTest extends Ab", "suffix": " yield [\n 'microsoftteams://host/webhook',\n 'microsoftteams://host/webhook',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'microsoftteams://host/webhook'];\n yield [fa", "middle": "stractTransportFactoryTestCase\n{\n public function createFactory(): MicrosoftTeamsTransportFactory\n {\n return new MicrosoftTeamsTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsTransportFactoryTest.php", "language": "php", "file_size": 1175, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field;\n\n/**\n * @author Edouard Lescot \n * @author Oskar Stark \n *\n * @see https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#section-", "suffix": "rn $this;\n }\n\n /**\n * @return $this\n */\n public function title(string $title): static\n {\n $this->options['activityTitle'] = $title;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function subtitle(s", "middle": "fields\n */\nfinal class Activity\n{\n private array $options = [];\n\n /**\n * @return $this\n */\n public function image(string $imageUrl): static\n {\n $this->options['activityImage'] = $imageUrl;\n\n retu", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/Activity.php", "language": "php", "file_size": 1376, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Action;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\ActionCard;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\ActionCardCompatibleActionInterface;\nuse", "suffix": "e;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\MultiChoiceInput;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\TextInput;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\OpenUriAction;\n\nfinal class Acti", "middle": " Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\HttpPostAction;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\DateInput;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\InputInterfac", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/ActionCardTest.php", "language": "php", "file_size": 2596, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Action;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\InvokeAddInCommandAction;\n\nfinal class InvokeAddInCommandActionTest extends TestCase\n{\n public function testName()\n {\n $", "suffix": "mmandAction())\n ->addInId($value = '1234');\n\n $this->assertSame($value, $action->toArray()['addInId']);\n }\n\n public function testDesktopCommandId()\n {\n $action = (new InvokeAddInCommandAction())\n ->desktopComman", "middle": "action = (new InvokeAddInCommandAction())\n ->name($value = 'My name');\n\n $this->assertSame($value, $action->toArray()['name']);\n }\n\n public function testAddInId()\n {\n $action = (new InvokeAddInCo", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/InvokeAddInCommandActionTest.php", "language": "php", "file_size": 1643, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Action;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\OpenUriAction;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\n\nfinal class OpenUriActionTest", "suffix": "estTargetWithDefaultValue()\n {\n $action = (new OpenUriAction())\n ->target($uri = 'URI');\n\n $this->assertSame(\n [\n ['os' => 'default', 'uri' => $uri],\n ],\n $action->toArray()['targe", "middle": " extends TestCase\n{\n public function testName()\n {\n $action = (new OpenUriAction())\n ->name($value = 'My name');\n\n $this->assertSame($value, $action->toArray()['name']);\n }\n\n public function t", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/OpenUriActionTest.php", "language": "php", "file_size": 2102, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Action\\Input;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\MultiChoiceInput;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Test\\Action\\Input\\AbstractInputTestCase;\nuse Symfony\\Componen", "suffix": "unction testTarget()\n {\n $input = $this->createInput()\n ->choice($display = 'DISPLAY', $value = 'VALUE');\n\n $this->assertSame(\n [\n ['display' => $display, 'value' => $value],\n ],\n ", "middle": "t\\Notifier\\Exception\\InvalidArgumentException;\n\nfinal class MultiChoiceInputTest extends AbstractInputTestCase\n{\n public function createInput(): MultiChoiceInput\n {\n return new MultiChoiceInput();\n }\n\n public f", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/Input/MultiChoiceInputTest.php", "language": "php", "file_size": 2360, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Action\\Input;\n\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\TextInput;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Test\\Action\\Input\\AbstractInputTestCase;\n\nfinal class TextInputTest extends ", "suffix": "(true);\n\n $this->assertTrue($input->toArray()['isMultiline']);\n }\n\n public function testIsMultilineWithFalse()\n {\n $input = $this->createInput()\n ->isMultiline(false);\n\n $this->assertFalse($input->toArray()['isMulti", "middle": "AbstractInputTestCase\n{\n public function createInput(): TextInput\n {\n return new TextInput();\n }\n\n public function testIsMultilineWithTrue()\n {\n $input = $this->createInput()\n ->isMultiline", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/Input/TextInputTest.php", "language": "php", "file_size": 1417, "cut_index": 524, "middle_length": 229}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Section\\Field;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field\\Fact;\n\nfinal class FactTest extends TestCase\n{\n public function testName()\n {\n $field", "suffix": " version');\n\n $this->assertSame($value, $field->toArray()['name']);\n }\n\n public function testTitle()\n {\n $field = (new Fact())\n ->value($value = '5.3');\n\n $this->assertSame($value, $field->toArray()['value']);\n }", "middle": " = (new Fact())\n ->name($value = 'Current", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/Field/FactTest.php", "language": "php", "file_size": 827, "cut_index": 516, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Test\\Action\\Input;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\AbstractInput;\n\n/**\n * @author Oskar Stark \n */\nabstract class AbstractInputTestCase extends Te", "suffix": "ay()['id']);\n }\n\n public function testIsRequiredWithFalse()\n {\n $input = $this->createInput();\n\n $input->isRequired(false);\n\n $this->assertFalse($input->toArray()['isRequired']);\n }\n\n public function testIsRequiredWithTr", "middle": "stCase\n{\n abstract public function createInput(): AbstractInput;\n\n public function testId()\n {\n $input = $this->createInput();\n\n $input->id($value = '1234');\n\n $this->assertSame($value, $input->toArr", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Test/Action/Input/AbstractInputTestCase.php", "language": "php", "file_size": 1574, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telnyx;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Vasilij Duško \n *", "suffix": "nsupportedSchemeException($dsn, 'telnyx', $this->getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $from = $dsn->getRequiredOption('from');\n $messagingProfileId = $dsn->getOption('messaging_profile_id');\n $hos", "middle": "/\nfinal class TelnyxTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TelnyxTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('telnyx' !== $scheme) {\n throw new U", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransportFactory.php", "language": "php", "file_size": 1345, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telnyx\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Telnyx\\TelnyxTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\C", "suffix": "static function createTransport(?HttpClientInterface $client = null): TelnyxTransport\n {\n return new TelnyxTransport('api_key', 'from', 'messaging_profile_id', $client ?? new MockHttpClient());\n }\n\n public static function toStringProvider()", "middle": "omponent\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class TelnyxTransportTest extends TransportTestCase\n{\n public ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportTest.php", "language": "php", "file_size": 1448, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ClickSend;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfo", "suffix": "terface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author gnito-org \n */\nfinal class ClickSendTransport extends AbstractTransport\n{\n protected const HOST = 'rest.clicksend.com';\n\n public function __c", "middle": "ny\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionIn", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/ClickSendTransport.php", "language": "php", "file_size": 4049, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ClickSend\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\ClickSend\\ClickSendOptions;\n\nclass ClickSendOptionsTest extends TestCase\n{\n public function testClickSendOptions()\n {\n $clickSendOpt", "suffix": " ->source('test_source');\n\n self::assertSame([\n 'country' => 'test_country',\n 'custom_string' => 'test_custom_string',\n 'from_email' => 'test_from_email',\n 'list_id' => 'test_list_id',\n ", "middle": "ions = (new ClickSendOptions())\n ->country('test_country')\n ->customString('test_custom_string')\n ->fromEmail('test_from_email')\n ->listId('test_list_id')\n ->schedule(999)\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/Tests/ClickSendOptionsTest.php", "language": "php", "file_size": 1109, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LineBot;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Noti", "suffix": " * @author Yi-Jyun Pan \n */\nfinal class LineBotTransport extends AbstractTransport\n{\n protected const HOST = 'api.line.me';\n\n public function __construct(\n #[\\SensitiveParameter] private readonly string $accessToken,\n priv", "middle": "fier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LineBot/LineBotTransport.php", "language": "php", "file_size": 3124, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LineBot\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\LineBot\\LineBotTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTestTra", "suffix": "quiredOptionTestTrait;\n\n private const MOCK_TOKEN = 'eyJhbGciOiJIUzI1NiJ9.eyJSb2xlIjoiQWRtaW4iL+CJJc3N1ZXIiOiJJc3N1ZXIiLCJVc2VybmFtZSI6IkphdmFJblVzZSIsImV4cCI6MTcyODU1MjA3OSwiaW+F0IjoxNzI4NTUyMDc5fQ.SPKpGKwsXBay2uXDh7tATW20S2vZpw9qcmYjNp46Ir/AB/12345677", "middle": "it;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Yi-Jyun Pan \n */\nfinal class LineBotTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRe", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LineBot/Tests/LineBotTransportFactoryTest.php", "language": "php", "file_size": 2393, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LineBot\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\LineBot\\LineBotTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Mess", "suffix": "terface;\n\n/**\n * @author Yi-Jyun Pan \n */\nfinal class LineBotTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): LineBotTransport\n {\n return (new LineBotTranspor", "middle": "age\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientIn", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LineBot/Tests/LineBotTransportTest.php", "language": "php", "file_size": 2045, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ClickSend\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\ClickSend\\ClickSendTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class ClickSendTransportFactoryTest extends Abstrac", "suffix": " iterable\n {\n yield ['clicksend://host.test', 'clicksend://apiUsername:ApiKey@host.test'];\n yield ['clicksend://host.test?from=15556667777', 'clicksend://apiUsername:ApiKey@host.test?from=15556667777'];\n yield ['clicksend://host.tes", "middle": "tTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): ClickSendTransportFactory\n {\n return new ClickSendTransportFactory();\n }\n\n public static function createProvider():", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/Tests/ClickSendTransportFactoryTest.php", "language": "php", "file_size": 2160, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Termii\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Termii\\TermiiOptions;\n\nclass TermiiOptionsTest extends TestCase\n{\n public function testTermiiOptions()\n {\n $termiiOptions = (new TermiiOptions())\n ->type('test_type')\n ->channel('test_channel')\n ", "suffix": " self::assertSame([\n 'type' => 'test_type',\n 'channel' => 'test_channel',\n 'media' => [\n 'url' => 'test_media_url',\n 'caption' => 'test_media_caption',\n ],\n ], $termiiO", "middle": " ->media('test_media_url', 'test_media_caption');\n\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Termii/Tests/TermiiOptionsTest.php", "language": "php", "file_size": 942, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Action;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Element\\Header;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\HttpPostAction;\n\nfinal class HttpPostActionTest extends TestCase\n{\n public funct", "suffix": " (new HttpPostAction())\n ->target($value = 'https://symfony.com');\n\n $this->assertSame($value, $action->toArray()['target']);\n }\n\n public function testHeader()\n {\n $header = (new Header())\n ->name($name = 'Heade", "middle": "ion testName()\n {\n $action = (new HttpPostAction())\n ->name($value = 'My name');\n\n $this->assertSame($value, $action->toArray()['name']);\n }\n\n public function testTarget()\n {\n $action =", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/HttpPostActionTest.php", "language": "php", "file_size": 2029, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Termii;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class TermiiOptions implements MessageOptionsInterface\n{\n public function __construct(\n priv", "suffix": "->options['channel'] = $channel;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function media(string $url, string $caption = ''): static\n {\n $this->options['media'] = [\n 'url' => $url,\n 'capti", "middle": "ate array $options = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function channel(string $channel): static\n {\n $this", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Termii/TermiiOptions.php", "language": "php", "file_size": 1309, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Action\\Input;\n\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\DateInput;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Test\\Action\\Input\\AbstractInputTestCase;\n\nfinal class DateInputTest ex", "suffix": "deTime(true);\n\n $this->assertTrue($input->toArray()['includeTime']);\n }\n\n public function testIncludeTimeWithFalse()\n {\n $input = $this->createInput()\n ->includeTime(false);\n\n $this->assertFalse($input->toArray()['i", "middle": "tends AbstractInputTestCase\n{\n public function createInput(): DateInput\n {\n return new DateInput();\n }\n\n public function testIncludeTimeWithTrue()\n {\n $input = $this->createInput()\n ->inclu", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/Input/DateInputTest.php", "language": "php", "file_size": 1224, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Section\\Field;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field\\Activity;\n\nfinal class ActivityTest extends TestCase\n{\n public function testImage()\n {\n $fiel", "suffix": "y())\n ->title($value = 'Symfony is great!');\n\n $this->assertSame($value, $field->toArray()['activityTitle']);\n }\n\n public function testSubtitle()\n {\n $field = (new Activity())\n ->subtitle($value = 'I am a subtit", "middle": "d = (new Activity())\n ->image($value = 'https://symfony.com/logo.png');\n\n $this->assertSame($value, $field->toArray()['activityImage']);\n }\n\n public function testTitle()\n {\n $field = (new Activit", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/Field/ActivityTest.php", "language": "php", "file_size": 1295, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telnyx;\n\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Co", "suffix": "ce;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Vasilij Duško \n */\nfinal class TelnyxTransport extends AbstractTransport\n{\n protected const HOST = 'api.telnyx.com';\n\n public function __construct(\n #[", "middle": "mponent\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterfa", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php", "language": "php", "file_size": 3957, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ClickSend;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class ClickSendOptions implements MessageOptionsInterface\n{\n public function __construct(\n private arr", "suffix": "ns['country'] = $country;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function customString(string $customString): static\n {\n $this->options['custom_string'] = $customString;\n\n return $this;\n }\n\n /**", "middle": "ay $options = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function country(string $country): static\n {\n $this->optio", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/ClickSendOptions.php", "language": "php", "file_size": 1788, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ClickSend;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author gnito-org \n */\n", "suffix": " if (self::TRANSPORT_SCHEME !== $scheme) {\n throw new UnsupportedSchemeException($dsn, self::TRANSPORT_SCHEME, $this->getSupportedSchemes());\n }\n $apiUsername = $this->getUser($dsn);\n $apiKey = $this->getPassword($dsn);\n ", "middle": "final class ClickSendTransportFactory extends AbstractTransportFactory\n{\n private const TRANSPORT_SCHEME = 'clicksend';\n\n public function create(Dsn $dsn): ClickSendTransport\n {\n $scheme = $dsn->getScheme();\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/ClickSendTransportFactory.php", "language": "php", "file_size": 1591, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Termii;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author gnito-org getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $from = $dsn->getRequiredOption('from');", "middle": "-org>\n */\nfinal class TermiiTransportFactory extends AbstractTransportFactory\n{\n private const TRANSPORT_SCHEME = 'termii';\n\n public function create(Dsn $dsn): TermiiTransport\n {\n $scheme = $dsn->getScheme();\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Termii/TermiiTransportFactory.php", "language": "php", "file_size": 1415, "cut_index": 524, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Action\\Element;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Element\\Header;\n\nfinal class HeaderTest extends TestCase\n{\n public function testName()\n {\n $act", "suffix": " name');\n\n $this->assertSame($value, $action->toArray()['name']);\n }\n\n public function testValue()\n {\n $action = (new Header())\n ->value($value = 'The value...');\n\n $this->assertSame($value, $action->toArray()['valu", "middle": "ion = (new Header())\n ->name($value = 'My", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/Element/HeaderTest.php", "language": "php", "file_size": 842, "cut_index": 520, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Section;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\ActionCard;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\ActionInterface;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\HttpPostActio", "suffix": "d\\Activity;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field\\Fact;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field\\Image;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Section;\n\nfinal class SectionTest ex", "middle": "n;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\InvokeAddInCommandAction;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\OpenUriAction;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Fiel", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/SectionTest.php", "language": "php", "file_size": 4131, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Telnyx\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Telnyx\\TelnyxTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\Missi", "suffix": "nsportFactory\n {\n return new TelnyxTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'telnyx://host.test?from=+0611223344',\n 'telnyx://api_key@host.test?from=%2B061122334", "middle": "ngRequiredOptionTestTrait;\n\nfinal class TelnyxTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): TelnyxTra", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportFactoryTest.php", "language": "php", "file_size": 1984, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LineBot;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifie", "suffix": " {\n return [self::SCHEME];\n }\n\n public function create(Dsn $dsn): LineBotTransport\n {\n if (self::SCHEME !== $dsn->getScheme()) {\n throw new UnsupportedSchemeException($dsn, self::SCHEME, $this->getSupportedSchemes());\n ", "middle": "r\\Transport\\Dsn;\n\n/**\n * @author Yi-Jyun Pan \n */\nfinal class LineBotTransportFactory extends AbstractTransportFactory\n{\n private const SCHEME = 'linebot';\n\n protected function getSupportedSchemes(): array\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LineBot/LineBotTransportFactory.php", "language": "php", "file_size": 1502, "cut_index": 524, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Tests\\Section\\Field;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field\\Image;\n\nfinal class ImageTest extends TestCase\n{\n public function testImage()\n {\n $field = (new Im", "suffix": ".com/logo.png');\n\n $this->assertSame($value, $field->toArray()['image']);\n }\n\n public function testTitle()\n {\n $field = (new Image())\n ->title($value = 'Symfony is great!');\n\n $this->assertSame($value, $field->toArr", "middle": "age())\n ->image($value = 'https://symfony", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/Field/ImageTest.php", "language": "php", "file_size": 861, "cut_index": 529, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Termii;\n\nuse Symfony\\Component\\HttpClient\\Exception\\JsonException;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Sy", "suffix": "ony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author gnito-org \n */\nfinal class TermiiTransport extends AbstractTransport\n{\n protected const H", "middle": "mfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symf", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Termii/TermiiTransport.php", "language": "php", "file_size": 3783, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoIp;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedOptionsException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Sy", "suffix": "ony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\RedirectionExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ServerExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\Transport", "middle": "mfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symf", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoIp/GoIpTransport.php", "language": "php", "file_size": 4485, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoIp\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\GoIp\\GoIpOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\GoIp\\GoIpTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportExc", "suffix": "tCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Ahmed Ghanem \n */\nfinal class GoIpTransportTest extends TransportTestCase\n{\n public stat", "middle": "eption;\nuse Symfony\\Component\\Notifier\\Exception\\TransportExceptionInterface;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTes", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoIp/Tests/GoIpTransportTest.php", "language": "php", "file_size": 3523, "cut_index": 614, "middle_length": 229}} {"prefix": "part\\FormDataPart;\nuse Symfony\\Component\\Notifier\\Exception\\RuntimeException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Co", "suffix": "rekas \n */\nfinal class TwitterTransport extends AbstractTransport\n{\n protected const HOST = 'api.twitter.com';\n\n private static string $nonce;\n\n public function __construct(\n #[\\SensitiveParameter] private string $apiKey,\n ", "middle": "ntracts\\HttpClient\\ChunkInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Nicolas G", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twitter/TwitterTransport.php", "language": "php", "file_size": 11379, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twitter;\n\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn", "suffix": " if ('twitter' !== $scheme) {\n throw new UnsupportedSchemeException($dsn, 'twitter', $this->getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n [$apiSecret, $accessToken, $accessSecret] = explode(':', $this->getPa", "middle": ";\n\n/**\n * @author Nicolas Grekas \n */\nfinal class TwitterTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TwitterTransport\n {\n $scheme = $dsn->getScheme();\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twitter/TwitterTransportFactory.php", "language": "php", "file_size": 1721, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Matrix;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedOptionsException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nus", "suffix": "\\HttpClient\\ResponseInterface;\n\n/**\n * @author Frank Schulze \n */\nfinal class MatrixTransport extends AbstractTransport\n{\n // not all Message Types are supported by Matrix API\n private const SUPPORTED_MSG_TYPES_BY_API = ['m.text', 'm", "middle": "e Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php", "language": "php", "file_size": 6958, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Matrix\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Matrix\\MatrixOptions;\n\nclass MatrixOptionsTest extends TestCase\n{\n public function testToArray()\n {\n $options = new MatrixOptions([\n ", "suffix": " 'm.text', 'format' => 'org.matrix.custom.html'], $options->toArray());\n }\n\n public function testGetRecipientId()\n {\n $options = new MatrixOptions([\n 'recipient_id' => '@testuser:matrix.io',\n ]);\n $this->assertSame(", "middle": " 'recipient_id' => '@testuser:matrix.io',\n 'msgtype' => 'm.text',\n 'format' => 'org.matrix.custom.html',\n ]);\n $this->assertSame(['recipient_id' => '@testuser:matrix.io', 'msgtype' =>", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Matrix/Tests/MatrixOptionsTest.php", "language": "php", "file_size": 1058, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Matrix\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Matrix\\MatrixTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class MatrixTransportFactoryTest e", "suffix": "vider(): iterable\n {\n yield [\n 'matrix://host.test',\n 'matrix://host.test/?accessToken=1234',\n ];\n yield [\n 'matrix://host.test:8008',\n 'matrix://host.test:8008/?accessToken=1234',\n ", "middle": "xtends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): MatrixTransportFactory\n {\n return new MatrixTransportFactory();\n }\n\n public static function createPro", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Matrix/Tests/MatrixTransportFactoryTest.php", "language": "php", "file_size": 1847, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\PagerDuty;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Not", "suffix": "mfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Joseph Bielawski \n */\nfinal class PagerDutyTransport extends AbstractTransport\n{\n protected const HOST = 'events.pagerduty.com';\n\n public function __construct(\n ", "middle": "ifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Sy", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/PagerDuty/PagerDutyTransport.php", "language": "php", "file_size": 2976, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\PagerDuty;\n\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\D", "suffix": "();\n\n if ('pagerduty' !== $scheme) {\n throw new UnsupportedSchemeException($dsn, 'pagerduty', $this->getSupportedSchemes());\n }\n\n $apiToken = $this->getUser($dsn);\n $host = $this->getHost($dsn);\n\n return (new P", "middle": "sn;\n\n/**\n * @author Joseph Bielawski \n */\nfinal class PagerDutyTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): PagerDutyTransport\n {\n $scheme = $dsn->getScheme", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/PagerDuty/PagerDutyTransportFactory.php", "language": "php", "file_size": 1644, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Termii\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Termii\\TermiiOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Termii\\TermiiTransport;\nuse Symfony\\Component\\Notifier\\Exception\\In", "suffix": "DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class TermiiTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = n", "middle": "validArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Termii/Tests/TermiiTransportTest.php", "language": "php", "file_size": 4158, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsBiuras;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Vasilij Duško ", "suffix": " throw new UnsupportedSchemeException($dsn, 'smsbiuras', $this->getSupportedSchemes());\n }\n\n $uid = $this->getUser($dsn);\n $apiKey = $this->getPassword($dsn);\n $from = $dsn->getRequiredOption('from');\n $testMode = $dsn->g", "middle": "\n */\nfinal class SmsBiurasTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SmsBiurasTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('smsbiuras' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsBiuras/SmsBiurasTransportFactory.php", "language": "php", "file_size": 1389, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsBiuras\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\SmsBiuras\\SmsBiurasTransport;\nuse Symfony\\Component\\Notifier\\Message\\Chat", "suffix": "\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class SmsBiurasTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): SmsBiurasTransport\n {\n return new SmsBiurasTrans", "middle": "Message;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php", "language": "php", "file_size": 2735, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoIp;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Ahmed Ghanem \n */\nfinal class GoIpOptions implements MessageOptionsInterface\n{\n private array $options = [];\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public funct", "suffix": "ull;\n }\n\n /**\n * @return $this\n */\n public function setSimSlot(int $simSlot): static\n {\n $this->options['simSlot'] = $simSlot;\n\n return $this;\n }\n\n public function getSimSlot(): ?int\n {\n return $this->optio", "middle": "ion getRecipientId(): ?string\n {\n return n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoIp/GoIpOptions.php", "language": "php", "file_size": 945, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoIp\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\GoIp\\GoIpTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequ", "suffix": "ait;\n\n public static function createProvider(): iterable\n {\n yield [\n 'goip://host.test:9000?sim_slot=31',\n 'goip://user:pass@host.test:9000?sim_slot=31',\n ];\n }\n\n public static function supportsProvider(): i", "middle": "iredOptionTestTrait;\n\n/**\n * @author Ahmed Ghanem \n */\nfinal class GoIpTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTr", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoIp/Tests/GoIpTransportFactoryTest.php", "language": "php", "file_size": 1772, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twitter;\n\nuse Symfony\\Component\\Mime\\Part\\File;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Nicolas Grekas \n */\nfinal class TwitterOptions implements MessageOptionsInterface\n{\n public const REPLY_MENTIONED_USERS = 'mentionedUsers';\n public const REPLY_FOLLOWING = 'following'", "suffix": "return null;\n }\n\n /**\n * @param string[] $choices\n *\n * @return $this\n */\n public function poll(array $choices, int $duration): static\n {\n $this->options['poll'] = [\n 'options' => $choices,\n 'duratio", "middle": ";\n\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twitter/TwitterOptions.php", "language": "php", "file_size": 4305, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Matrix;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Frank Schulze getSupportedSchemes());\n }\n\n $token = $dsn->getRequiredOption('accessToken');\n $host = $dsn->getHost();\n $port = $dsn->getPort();\n $ssl = $dsn->getBooleanOption('ssl', true);\n\n return (new Matri", "middle": "e>\n */\nclass MatrixTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): MatrixTransport\n {\n if ('matrix' !== $dsn->getScheme()) {\n throw new UnsupportedSchemeException($ds", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransportFactory.php", "language": "php", "file_size": 1196, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\PagerDuty;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Joseph Bielawski \n */\nfinal class PagerDutyOptions implements MessageOptionsInterface\n{\n public function __construct(string $routingKey, string $eventAc", "suffix": ");\n }\n\n if (!\\in_array($severity, ['critical', 'warning', 'error', 'info'], true)) {\n throw new InvalidArgumentException('Invalid \"severity\" option given.');\n }\n\n if ($this->options['payload']['timestamp'] ?? null) {\n", "middle": "tion, string $severity, private array $options = [])\n {\n if (!\\in_array($eventAction, ['trigger', 'acknowledge', 'resolve'], true)) {\n throw new InvalidArgumentException('Invalid \"event_action\" option given.'", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/PagerDuty/PagerDutyOptions.php", "language": "php", "file_size": 3076, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\ClickSend\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\ClickSend\\ClickSendOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\ClickSend\\ClickSendTransport;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony", "suffix": "ts\\HttpClient\\ResponseInterface;\n\nfinal class ClickSendTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?string $from = 'test_from', ?string $source = 'test_source', ?int $listId = 99", "middle": "\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contrac", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/Tests/ClickSendTransportTest.php", "language": "php", "file_size": 5411, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsBiuras\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\SmsBiuras\\SmsBiurasTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionT", "suffix": "ry\n {\n return new SmsBiurasTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'smsbiuras://host.test?from=0611223344',\n 'smsbiuras://uid:api_key@host.test?from=0611223344&", "middle": "estTrait;\n\nfinal class SmsBiurasTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): SmsBiurasTransportFacto", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportFactoryTest.php", "language": "php", "file_size": 2052, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twitter\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Twitter\\TwitterTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nclass TwitterTransportFa", "suffix": "ion createProvider(): iterable\n {\n yield ['twitter://host.test', 'twitter://A:B:C:D@host.test'];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'twitter://default'];\n yield [false, 'somethingElse:", "middle": "ctoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): TwitterTransportFactory\n {\n return new TwitterTransportFactory();\n }\n\n public static funct", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twitter/Tests/TwitterTransportFactoryTest.php", "language": "php", "file_size": 1335, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Matrix\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Matrix\\MatrixOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Matrix\\MatrixTransport;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Message", "suffix": "face;\n\nfinal class MatrixTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?bool $ssl = false): MatrixTransport\n {\n return new MatrixTransport('apiKey', $ssl, $client ?? new ", "middle": "\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInter", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Matrix/Tests/MatrixTransportTest.php", "language": "php", "file_size": 2302, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsBiuras;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Not", "suffix": "\n * @author Vasilij Duško \n */\nfinal class SmsBiurasTransport extends AbstractTransport\n{\n protected const HOST = 'savitarna.smsbiuras.lt';\n\n private const ERROR_CODES = [\n 1 => 'The message was processed and sent to the mobi", "middle": "ifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsBiuras/SmsBiurasTransport.php", "language": "php", "file_size": 4402, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Unifonic;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Noti", "suffix": " * @author Farhad Safarov \n */\nfinal class UnifonicTransport extends AbstractTransport\n{\n protected const HOST = 'el.cloud.unifonic.com';\n\n public function __construct(\n #[\\SensitiveParameter] private readonly string ", "middle": "fier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Unifonic/UnifonicTransport.php", "language": "php", "file_size": 3098, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\PagerDuty\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\PagerDuty\\PagerDutyOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\PagerDuty\\PagerDutyTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nus", "suffix": "Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class PagerDutyTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): PagerDutyTransport\n {\n return (new PagerDutyTransport('test", "middle": "e Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/PagerDuty/Tests/PagerDutyTransportTest.php", "language": "php", "file_size": 1892, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Unifonic\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Unifonic\\UnifonicTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class UnifonicTransportFacto", "suffix": "on createProvider(): iterable\n {\n yield [\n 'unifonic://host.test?from=Sender',\n 'unifonic://s3cr3t@host.test?from=Sender',\n ];\n yield [\n 'unifonic://host.test',\n 'unifonic://s3cr3t@host.te", "middle": "ryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): UnifonicTransportFactory\n {\n return new UnifonicTransportFactory();\n }\n\n public static functi", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Unifonic/Tests/UnifonicTransportFactoryTest.php", "language": "php", "file_size": 1671, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Unifonic\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Unifonic\\UnifonicTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notif", "suffix": "sponseInterface;\n\nfinal class UnifonicTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?string $host = null): UnifonicTransport\n {\n return (new UnifonicTransport('S3cr3t', '", "middle": "ier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\Re", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Unifonic/Tests/UnifonicTransportTest.php", "language": "php", "file_size": 3260, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sipgate;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Lukas Kaltenbach \n ", "suffix": "n($dsn, 'sipgate', $this->getSupportedSchemes());\n }\n\n $tokenId = $this->getUser($dsn);\n $token = $this->getPassword($dsn);\n $senderId = $dsn->getRequiredOption('senderId');\n $host = 'default' === $dsn->getHost() ? null :", "middle": "*/\nfinal class SipgateTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SipgateTransport\n {\n if ('sipgate' !== $dsn->getScheme()) {\n throw new UnsupportedSchemeExceptio", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sipgate/SipgateTransportFactory.php", "language": "php", "file_size": 1296, "cut_index": 524, "middle_length": 229}} {"prefix": "mfony\\Component\\Mime\\Part\\File;\nuse Symfony\\Component\\Notifier\\Bridge\\Twitter\\TwitterOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Twitter\\TwitterTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass TwitterTransportTest extends TransportTestCase\n{\n public static functio", "suffix": "vider(): iterable\n {\n yield ['twitter://api.twitter.com', self::createTransport()];\n }\n\n public static function supportedMessagesProvider(): iterable\n {\n yield [new ChatMessage('Hello!')];\n }\n\n public static function unsuppo", "middle": "n createTransport(?HttpClientInterface $client = null): TwitterTransport\n {\n return new TwitterTransport('APIK', 'APIS', 'TOKEN', 'SECRET', $client ?? new MockHttpClient());\n }\n\n public static function toStringPro", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twitter/Tests/TwitterTransportTest.php", "language": "php", "file_size": 9899, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\PagerDuty\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\PagerDuty\\PagerDutyTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class PagerDutyTransportF", "suffix": "function createProvider(): iterable\n {\n yield [\n 'pagerduty://subdomain.pagerduty.com',\n 'pagerduty://token@subdomain.pagerduty.com',\n ];\n yield [\n 'pagerduty://subdomain.eu.pagerduty.com',\n ", "middle": "actoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): PagerDutyTransportFactory\n {\n return new PagerDutyTransportFactory();\n }\n\n public static ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/PagerDuty/Tests/PagerDutyTransportFactoryTest.php", "language": "php", "file_size": 1566, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Unifonic;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Farhad Safarov getSupportedSchemes());\n }\n\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n\n return (new UnifonicTransport(\n $this->getUser($dsn),\n $dsn->getOption('", "middle": "rov@gmail.com>\n */\nfinal class UnifonicTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): UnifonicTransport\n {\n if ('unifonic' !== $dsn->getScheme()) {\n throw new Unsupp", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Unifonic/UnifonicTransportFactory.php", "language": "php", "file_size": 1225, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sipgate;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notif", "suffix": "* @author Lukas Kaltenbach \n */\nfinal class SipgateTransport extends AbstractTransport\n{\n protected const HOST = 'api.sipgate.com';\n\n public function __construct(\n private string $tokenId,\n #[\\SensitiveParameter] private ", "middle": "ier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sipgate/SipgateTransport.php", "language": "php", "file_size": 3513, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sipgate\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Sipgate\\SipgateTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nclass SipgateTransportFactoryTest ext", "suffix": "vider(): iterable\n {\n yield [\n 'sipgate://host.test?senderId=s1',\n 'sipgate://tokenId:token@host.test?senderId=s1',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'sipgat", "middle": "ends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): SipgateTransportFactory\n {\n return new SipgateTransportFactory();\n }\n\n public static function createPro", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sipgate/Tests/SipgateTransportFactoryTest.php", "language": "php", "file_size": 1570, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoIp;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;", "suffix": " if (self::SCHEME_NAME !== $dsn->getScheme()) {\n throw new UnsupportedSchemeException($dsn, self::SCHEME_NAME, $this->getSupportedSchemes());\n }\n\n $username = $this->getUser($dsn);\n $password = $this->getPassword($dsn", "middle": "\n\n/**\n * @author Ahmed Ghanem \n */\nfinal class GoIpTransportFactory extends AbstractTransportFactory\n{\n private const SCHEME_NAME = 'goip';\n\n public function create(Dsn $dsn): GoIpTransport\n {\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoIp/GoIpTransportFactory.php", "language": "php", "file_size": 1538, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sipgate\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Sipgate\\SipgateTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\", "suffix": "e;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass SipgateTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): SipgateTransport\n {\n return new SipgateTransport('to", "middle": "ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessag", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sipgate/Tests/SipgateTransportTest.php", "language": "php", "file_size": 3197, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Block;\n\nfinal class SlackContextBlock extends AbstractSlackBlock\n{\n private const ELEMENT_LIMIT = 10;\n\n public function __construct()\n {\n $this->options['type'] = 'context';\n }\n\n /**\n * @return $this\n */\n public func", "suffix": "tf('Maximum number of elements should not exceed %d.', self::ELEMENT_LIMIT));\n }\n\n $element = [\n 'type' => $markdown ? 'mrkdwn' : 'plain_text',\n 'text' => $text,\n ];\n if ($markdown) {\n $element['", "middle": "tion text(string $text, bool $markdown = true, bool $emoji = true, bool $verbatim = false): static\n {\n if (self::ELEMENT_LIMIT === \\count($this->options['elements'] ?? [])) {\n throw new \\LogicException(\\sprin", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Block/SlackContextBlock.php", "language": "php", "file_size": 1847, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Block;\n\nuse Symfony\\Component\\Notifier\\Exception\\LengthException;\n\n/**\n * @author Tomas Norkūnas \n */\nfinal class SlackHeaderBlock extends AbstractSlackBlock\n{\n private const TEXT_LIMIT = 150;\n private cons", "suffix": "MIT));\n }\n\n $this->options = [\n 'type' => 'header',\n 'text' => [\n 'type' => 'plain_text',\n 'text' => $text,\n ],\n ];\n }\n\n /**\n * @return $this\n */\n public f", "middle": "t ID_LIMIT = 255;\n\n public function __construct(string $text)\n {\n if (\\strlen($text) > self::TEXT_LIMIT) {\n throw new LengthException(\\sprintf('Maximum length for the text is %d characters.', self::TEXT_LI", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Block/SlackHeaderBlock.php", "language": "php", "file_size": 1294, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twilio\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\MethodRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\RemoteEvent\\Event\\Sms\\SmsEvent;\nuse Symfony\\Component\\Webhook\\Client\\AbstractRequestParser;\nuse Symfony\\Compone", "suffix": "');\n }\n\n protected function doParse(Request $request, #[\\SensitiveParameter] string $secret): ?SmsEvent\n {\n // Statuses: https://www.twilio.com/docs/sms/api/message-resource#message-status-values\n // Payload examples: https://www.twi", "middle": "nt\\Webhook\\Exception\\RejectWebhookException;\n\nfinal class TwilioRequestParser extends AbstractRequestParser\n{\n protected function getRequestMatcher(): RequestMatcherInterface\n {\n return new MethodRequestMatcher('POST", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twilio/Webhook/TwilioRequestParser.php", "language": "php", "file_size": 3326, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Engagespot;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Daniel GORGAN \n *\n * @see https://docs.engagespot.co/how-to-send-notifications-via-engagespot-api/how-to-send-notifications-using-e", "suffix": "urn $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n return $this->options['to'];\n }\n\n /**\n * @return $this\n */\n public function campaignName(string $campaignName): static\n {\n $this->options['cam", "middle": "ngagespot-rest-api\n */\nfinal class EngagespotOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public function toArray(): array\n {\n ret", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Engagespot/EngagespotOptions.php", "language": "php", "file_size": 1912, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Engagespot;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symf", "suffix": "Interface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Daniel GORGAN \n */\nfinal class EngagespotTransport extends AbstractTransport\n{\n protected const HOST = 'api.engagespot.co/2/campaigns';\n\n ", "middle": "ony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportException", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Engagespot/EngagespotTransport.php", "language": "php", "file_size": 4259, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Engagespot;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Daniel GORGAN getSupportedSchemes());\n }\n\n $apiKey = $dsn->getUser();\n $campaignName = $dsn->getRequiredOption('campaign_name');\n $host = 'default' === $dsn->ge", "middle": "om/danut007ro>\n */\nfinal class EngagespotTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): EngagespotTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('engagespot' !== $sche", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Engagespot/EngagespotTransportFactory.php", "language": "php", "file_size": 1313, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Engagespot\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Engagespot\\EngagespotTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\n/**\n * @author ", "suffix": "ory\n {\n return new EngagespotTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'engagespot://api.engagespot.co/2/campaigns?campaign_name=TEST',\n 'engagespot://apiKey@defa", "middle": "Daniel GORGAN \n */\nfinal class EngagespotTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): EngagespotTransportFact", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Engagespot/Tests/EngagespotTransportFactoryTest.php", "language": "php", "file_size": 1496, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Engagespot\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Engagespot\\EngagespotTransport;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Co", "suffix": "lass EngagespotTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): EngagespotTransport\n {\n return new EngagespotTransport('apiKey', 'TEST', $client ?? new MockHttpClient());\n ", "middle": "mponent\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Daniel GORGAN \n */\nfinal c", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Engagespot/Tests/EngagespotTransportTest.php", "language": "php", "file_size": 1517, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sendberry;\n\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony", "suffix": "rface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Vasilij Duško \n */\nfinal class SendberryTransport extends AbstractTransport\n{\n protected const HOST = 'api.sendberry.com';\n\n public function __construct(\n ", "middle": "\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInte", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sendberry/SendberryTransport.php", "language": "php", "file_size": 3626, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sendberry;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Vasilij Duško ", "suffix": " throw new UnsupportedSchemeException($dsn, 'sendberry', $this->getSupportedSchemes());\n }\n\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $port = $dsn->getPort();\n\n return (new SendberryTransport($this->getUs", "middle": "\n */\nfinal class SendberryTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SendberryTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('sendberry' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sendberry/SendberryTransportFactory.php", "language": "php", "file_size": 1287, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sendberry\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Sendberry\\SendberryTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\T", "suffix": "): SendberryTransportFactory\n {\n return new SendberryTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'sendberry://host.test?from=+0611223344',\n 'sendberry://user:passwo", "middle": "est\\MissingRequiredOptionTestTrait;\n\nfinal class SendberryTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sendberry/Tests/SendberryTransportFactoryTest.php", "language": "php", "file_size": 1942, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sendberry\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Sendberry\\SendberryTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse ", "suffix": "\n public static function createTransport(?HttpClientInterface $client = null): SendberryTransport\n {\n return new SendberryTransport('username', 'password', 'auth_key', 'from', $client ?? new MockHttpClient());\n }\n\n public static function", "middle": "Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class SendberryTransportTest extends TransportTestCase\n{", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sendberry/Tests/SendberryTransportTest.php", "language": "php", "file_size": 1431, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\KazInfoTeh;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\No", "suffix": "*\n * @author Egor Taranov \n */\nclass KazInfoTehTransport extends AbstractTransport\n{\n protected const HOST = 'kazinfoteh.org';\n\n public function __construct(\n private string $username,\n #[\\SensitiveParameter] privat", "middle": "tifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/*", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/KazInfoTeh/KazInfoTehTransport.php", "language": "php", "file_size": 3716, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\KazInfoTeh;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Component\\Notifier\\Transport\\Transp", "suffix": ">getScheme();\n\n if ('kaz-info-teh' !== $scheme) {\n throw new UnsupportedSchemeException($dsn, 'kaz-info-teh', $this->getSupportedSchemes());\n }\n\n $username = $this->getUser($dsn);\n $password = $this->getPassword($dsn)", "middle": "ortInterface;\n\n/**\n * @author Egor Taranov \n */\nfinal class KazInfoTehTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TransportInterface\n {\n $scheme = $dsn-", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/KazInfoTeh/KazInfoTehTransportFactory.php", "language": "php", "file_size": 1415, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\KazInfoTeh\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\KazInfoTeh\\KazInfoTehTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOpti", "suffix": " public function createFactory(): KazInfoTehTransportFactory\n {\n return new KazInfoTehTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'kaz-info-teh://kazinfoteh.org:9507?sender=s", "middle": "onTestTrait;\n\n/**\n * @author Egor Taranov \n */\nfinal class KazInfoTehTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/KazInfoTeh/Tests/KazInfoTehTransportFactoryTest.php", "language": "php", "file_size": 2208, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\KazInfoTeh\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\KazInfoTeh\\KazInfoTehTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier", "suffix": "t\\HttpClientInterface;\n\n/**\n * @author Egor Taranov \n */\nfinal class KazInfoTehTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): TransportInterface\n {\n ", "middle": "\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\nuse Symfony\\Contracts\\HttpClien", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/KazInfoTeh/Tests/KazInfoTehTransportTest.php", "language": "php", "file_size": 3722, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mattermost;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Nathanaël Martel \n */\nfinal class MattermostOptions implements MessageOptionsInterface\n{\n public function __c", "suffix": "\n\n public function toArray(): array\n {\n $options = $this->options;\n unset($options['recipient_id']);\n\n return $options;\n }\n\n public function getRecipientId(): ?string\n {\n return $this->options['recipient_id'] ?? n", "middle": "onstruct(\n private array $options = [],\n ) {\n }\n\n /**\n * @return $this\n */\n public function recipient(string $id): static\n {\n $this->options['recipient_id'] = $id;\n\n return $this;\n }", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mattermost/MattermostOptions.php", "language": "php", "file_size": 1011, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mattermost;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\N", "suffix": "**\n * @author Emanuele Panzeri \n */\nfinal class MattermostTransport extends AbstractTransport\n{\n public function __construct(\n #[\\SensitiveParameter] private string $token,\n private string $channel,\n private ?stri", "middle": "otifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mattermost/MattermostTransport.php", "language": "php", "file_size": 3214, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mattermost;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Emanuele Panzeri getSupportedSchemes());\n }\n\n $path = $dsn->getPath();\n $token = $this->getUser($dsn);\n $channel = $dsn->getRequiredOption('channel');\n $host = $dsn-", "middle": ".com>\n */\nfinal class MattermostTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): MattermostTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('mattermost' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mattermost/MattermostTransportFactory.php", "language": "php", "file_size": 1292, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mattermost\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Mattermost\\MattermostTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOpti", "suffix": ";\n\n public function createFactory(): MattermostTransportFactory\n {\n return new MattermostTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'mattermost://host.test?channel=testCha", "middle": "onTestTrait;\n\n/**\n * @author Oskar Stark \n */\nfinal class MattermostTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/MattermostTransportFactoryTest.php", "language": "php", "file_size": 2399, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mattermost\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Mattermost\\MattermostTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Co", "suffix": "attermostTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): MattermostTransport\n {\n return (new MattermostTransport('testAccessToken', 'testChannel', null, $client ?? new Moc", "middle": "mponent\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Oskar Stark \n */\nfinal class M", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/MattermostTransportTest.php", "language": "php", "file_size": 1518, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Isendpro;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Noti", "suffix": "nInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class IsendproTransport extends AbstractTransport\n{\n protected const HOST = 'apirest.isendpro.com';\n\n public function __construct(\n #[\\SensitiveParameter] private string ", "middle": "fier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptio", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Isendpro/IsendproTransport.php", "language": "php", "file_size": 4300, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Isendpro;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\nfinal class IsendproTransportFactory extends Abs", "suffix": ");\n }\n\n $keyid = $this->getUser($dsn);\n $from = $dsn->getOption('from', null);\n $noStop = $dsn->getBooleanOption('no_stop');\n $sandbox = $dsn->getBooleanOption('sandbox');\n $host = 'default' === $dsn->getHost() ? n", "middle": "tractTransportFactory\n{\n public function create(Dsn $dsn): IsendproTransport\n {\n if ('isendpro' !== $dsn->getScheme()) {\n throw new UnsupportedSchemeException($dsn, 'isendpro', $this->getSupportedSchemes()", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Isendpro/IsendproTransportFactory.php", "language": "php", "file_size": 1308, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Isendpro\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Isendpro\\IsendproTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class IsendproTransportFactoryTest extends AbstractTra", "suffix": "ble\n {\n yield [\n 'isendpro://host.test?no_stop=0&sandbox=0',\n 'isendpro://account_key_id@host.test',\n ];\n\n yield [\n 'isendpro://host.test?from=FROM&no_stop=0&sandbox=0',\n 'isendpro://accou", "middle": "nsportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): IsendproTransportFactory\n {\n return new IsendproTransportFactory();\n }\n\n public static function createProvider(): itera", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Isendpro/Tests/IsendproTransportFactoryTest.php", "language": "php", "file_size": 2442, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Isendpro\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Isendpro\\IsendproTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\M", "suffix": "tInterface;\n\nfinal class IsendproTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): IsendproTransport\n {\n return (new IsendproTransport('accound_key_id', null, false, false, ", "middle": "essage\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClien", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Isendpro/Tests/IsendproTransportTest.php", "language": "php", "file_size": 2984, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AmazonSns;\n\nuse AsyncAws\\Sns\\Input\\PublishInput;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Adrien Chinour \n */\nfinal class AmazonSnsOptions implements MessageOptionsInterface\n{\n public function _", "suffix": " {\n return $this->recipient;\n }\n\n /**\n * @param string $topic The Topic ARN for SNS message\n *\n * @return $this\n */\n public function recipient(string $topic): static\n {\n $this->recipient = $topic;\n\n return $", "middle": "_construct(\n private string $recipient,\n private array $options = [],\n ) {\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AmazonSns/AmazonSnsOptions.php", "language": "php", "file_size": 1509, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AmazonSns;\n\nuse AsyncAws\\Sns\\SnsClient;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message", "suffix": "atcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Adrien Chinour \n */\nfinal class AmazonSnsTransport extends AbstractTransport\n{\n public function __construct(\n private SnsClient $snsClient,\n", "middle": "\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDisp", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AmazonSns/AmazonSnsTransport.php", "language": "php", "file_size": 3130, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AmazonSns;\n\nuse AsyncAws\\Sns\\SnsClient;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Adrien Chinour getSupportedSchemes());\n }\n\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $port = $dsn->getPort();\n $protocol = 'disable' === $dsn->getOpti", "middle": "ithub@chinour.fr>\n */\nfinal class AmazonSnsTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): AmazonSnsTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('sns' !== $scheme) {\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AmazonSns/AmazonSnsTransportFactory.php", "language": "php", "file_size": 1831, "cut_index": 537, "middle_length": 229}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AmazonSns\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\AmazonSns\\AmazonSnsOptions;\n\nclass AmazonSnsOptionsTest extends TestCase\n{\n public function testGetRecipientId()\n {\n $options = new A", "suffix": "me('my-topic', $options->getRecipientId());\n }\n\n public function testToArray()\n {\n $options = new AmazonSnsOptions('my-topic');\n $options->subject('value');\n $this->assertSame(['Subject' => 'value'], $options->toArray());\n ", "middle": "mazonSnsOptions('my-topic');\n $this->assertSa", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/AmazonSnsOptionsTest.php", "language": "php", "file_size": 828, "cut_index": 516, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AmazonSns\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\AmazonSns\\AmazonSnsTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\n\nclass AmazonSnsTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n public f", "suffix": "n names will bypass default options retrieved by \\AsyncAws\\Core::get\n $_ENV['AWS_PROFILE'] = 'not-existing';\n $_ENV['AWS_REGION'] = 'us-east-1';\n\n return new AmazonSnsTransportFactory();\n }\n\n public static function createProvider", "middle": "unction createFactory(): AmazonSnsTransportFactory\n {\n // Tests will fail if a ~/.aws/config file exists with a default.region value,\n // or if AWS_REGION env variable is set.\n // Setting a profile & regio", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/AmazonSnsTransportFactoryTest.php", "language": "php", "file_size": 1577, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AmazonSns\\Tests;\n\nuse AsyncAws\\Sns\\Result\\PublishResponse;\nuse AsyncAws\\Sns\\SnsClient;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\AmazonSns\\AmazonSnsOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\AmazonSns\\AmazonSnsTransport;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentExcept", "suffix": "fony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass AmazonSnsTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): AmazonSns", "middle": "ion;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Fixtures\\TestOptions;\nuse Sym", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/AmazonSnsTransportTest.php", "language": "php", "file_size": 3777, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Chatwork;\n\n/**\n * @author Ippei Sumida \n */\nclass ChatworkMessageBodyBuilder\n{\n private array $to = [];\n private string $body = '';\n private bool $selfUnread = false;\n\n public function to(array|string $userIds):", "suffix": " $this->body = $body;\n\n return $this;\n }\n\n public function selfUnread(bool $selfUnread): self\n {\n $this->selfUnread = $selfUnread;\n\n return $this;\n }\n\n public function getMessageBody(): array\n {\n $content = ", "middle": " self\n {\n if (\\is_array($userIds)) {\n $this->to = $userIds;\n } else {\n $this->to = [$userIds];\n }\n\n return $this;\n }\n\n public function body(string $body): self\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkMessageBodyBuilder.php", "language": "php", "file_size": 1262, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Chatwork;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Ippei Sumida \n */\nclass ChatworkOptions implements MessageOptionsInterface\n{\n public function __construct(\n priva", "suffix": " */\n public function to(array|string $userIds): static\n {\n $this->options['to'] = $userIds;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function selfUnread(bool $selfUnread): static\n {\n $this->op", "middle": "te array $options = [],\n ) {\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkOptions.php", "language": "php", "file_size": 1066, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Chatwork;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportExceptionInterface;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Sym", "suffix": "* @author Ippei Sumida \n */\nclass ChatworkTransport extends AbstractTransport\n{\n protected const HOST = 'api.chatwork.com';\n\n public function __construct(\n #[\\SensitiveParameter] private string $apiToken,\n private str", "middle": "fony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkTransport.php", "language": "php", "file_size": 3309, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackDividerBlock;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackSectionBlock;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\SlackOptions;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Oskar Stark assertSame($expected ?? $options, (new SlackOptions($options))->toArray());\n }\n\n public static function toArrayProvider(): iterable\n {\n yield 'empty is allowed' => [\n [],\n [],\n ", "middle": "skarstark@googlemail.com>\n */\nfinal class SlackOptionsTest extends TestCase\n{\n #[DataProvider('toArrayProvider')]\n #[DataProvider('toArraySimpleOptionsProvider')]\n public function testToArray(array $options, ?array $expe", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackOptionsTest.php", "language": "php", "file_size": 6751, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\SlackTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class SlackTransportFactoryTest exten", "suffix": "): iterable\n {\n yield [\n 'slack://host.test',\n 'slack://xoxb-TestToken@host.test',\n ];\n\n yield 'with path' => [\n 'slack://host.test?channel=testChannel',\n 'slack://xoxb-TestToken@host.test", "middle": "ds AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): SlackTransportFactory\n {\n return new SlackTransportFactory();\n }\n\n public static function createProvider(", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportFactoryTest.php", "language": "php", "file_size": 1759, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Tests\\Block;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackActionsBlock;\n\nfinal class SlackActionsBlockTest extends TestCase\n{\n public function testCanBeInstantiated()\n {\n $actions = new SlackActionsBlock();\n $actions->button('first button text', 'https://example.", "suffix": "n text',\n null,\n null,\n 'test-value-4',\n [\n 'title' => [\n 'type' => 'plain_text',\n 'text' => 'test-confirm-title-4',\n ", "middle": "org', null, 'test-value')\n ->button('second button text', 'https://example.org/slack', 'danger')\n ->button('third button text', null, null, 'test-value-3')\n ->button(\n 'fourth butto", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Tests/Block/SlackActionsBlockTest.php", "language": "php", "file_size": 4258, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Tests\\Block;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackHeaderBlock;\nuse Symfony\\Component\\Notifier\\Exception\\LengthException;\n\nfinal class SlackHeaderBlockTest extends TestCase\n{\n public ", "suffix": "'type' => 'plain_text',\n 'text' => 'header text',\n ],\n 'block_id' => 'header_id',\n ], $header->toArray());\n }\n\n public function testThrowsWhenTextExceedsCharacterLimit()\n {\n $this->expectException", "middle": "function testCanBeInstantiated()\n {\n $header = new SlackHeaderBlock('header text');\n $header->id('header_id');\n\n $this->assertSame([\n 'type' => 'header',\n 'text' => [\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Tests/Block/SlackHeaderBlockTest.php", "language": "php", "file_size": 1506, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Tests\\Block;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackImageBlockElement;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackSectionBlock;\n\nfinal class SlackSectionBlockTest extends TestCase\n{\n public function testCanBeIns", "suffix": "ection->field('section field in plain text with verbatim', false, true, true);\n $section->accessory(new SlackImageBlockElement('https://example.com/image.jpg', 'an image'));\n\n $this->assertSame([\n 'type' => 'section',\n '", "middle": "tantiated()\n {\n $section = new SlackSectionBlock();\n $section->text('section text');\n $section->field('section field');\n $section->field('section field with verbatim', true, true, false);\n $s", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Tests/Block/SlackSectionBlockTest.php", "language": "php", "file_size": 2366, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twilio;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Fabien Potencier getSupportedSchemes());\n }\n\n $accountSid = $this->getUser($dsn);\n $authToken = $this->getPassword($dsn);\n $from = $dsn->getRequiredOption('from');\n $host = 'default' =", "middle": "m>\n */\nfinal class TwilioTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TwilioTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('twilio' !== $scheme) {\n throw ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twilio/TwilioTransportFactory.php", "language": "php", "file_size": 1324, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twilio\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Twilio\\TwilioTransport;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test", "suffix": "ransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, string $from = 'from'): TwilioTransport\n {\n return new TwilioTransport('accountSid', 'authToken', $from, $client ?? new MockHttpClient());\n }\n\n ", "middle": "\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class TwilioTransportTest extends T", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportTest.php", "language": "php", "file_size": 5262, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsFactor;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Thibault Buathier getSupportedSchemes());\n }\n\n $tokenApi = $this->getUser($dsn);\n $sender = $dsn->getOption('sender');\n $pushType = $this->getPushType($dsn);\n\n $host = 'de", "middle": "m>\n */\nfinal class SmsFactorTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SmsFactorTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('sms-factor' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsFactor/SmsFactorTransportFactory.php", "language": "php", "file_size": 1606, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsFactor\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\SmsFactor\\SmsFactorTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class SmsFactorTransportF", "suffix": "function createProvider(): iterable\n {\n yield [\n 'sms-factor://api.smsfactor.com?sender=MyCompany&push_type=alert',\n 'sms-factor://TOKEN@default?push_type=alert&sender=MyCompany',\n ];\n yield [\n 'sms-", "middle": "actoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): SmsFactorTransportFactory\n {\n return new SmsFactorTransportFactory();\n }\n\n public static ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsFactor/Tests/SmsFactorTransportFactoryTest.php", "language": "php", "file_size": 1957, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsFactor\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\SmsFactor\\SmsFactorPushType;\nuse Symfony\\Component\\Notifier\\Bridge\\SmsFactor\\SmsFactorTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nu", "suffix": "ass SmsFactorTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): SmsFactorTransport\n {\n return (new SmsFactorTransport('TOKEN', 'MY_COMPANY', SmsFactorPushType::Alert, $client", "middle": "se Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal cl", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsFactor/Tests/SmsFactorTransportTest.php", "language": "php", "file_size": 1557, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RocketChat;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Jeroen Spee getSupportedSchemes());\n }\n\n $accessToken = $this->getUser($dsn);\n $channel = $dsn->getOption('channel');\n $host = 'default' === $dsn->getHost() ? null", "middle": "/Jeroeny>\n */\nfinal class RocketChatTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): RocketChatTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('rocketchat' !== $scheme) {", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RocketChat/RocketChatTransportFactory.php", "language": "php", "file_size": 1299, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RocketChat\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\RocketChat\\RocketChatTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\n/**\n * @author Oskar Stark <", "suffix": "eturn new RocketChatTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'rocketchat://host.test?channel=testChannel',\n 'rocketchat://accessToken@host.test?channel=testChannel',\n ", "middle": "oskarstark@googlemail.com>\n */\nfinal class RocketChatTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): RocketChatTransportFactory\n {\n r", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/RocketChatTransportFactoryTest.php", "language": "php", "file_size": 1546, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RocketChat\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\RocketChat\\RocketChatTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Co", "suffix": "ocketChatTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?string $channel = null): RocketChatTransport\n {\n return new RocketChatTransport('testAccessToken', $channel, $clie", "middle": "mponent\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Oskar Stark \n */\nfinal class R", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/RocketChatTransportTest.php", "language": "php", "file_size": 1604, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\C", "suffix": "erface;\n\n/**\n * @author Fabien Potencier \n */\nfinal class SlackTransport extends AbstractTransport\n{\n protected const HOST = 'slack.com';\n\n public function __construct(\n #[\\SensitiveParameter] private string $accessToken,\n ", "middle": "omponent\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInt", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/SlackTransport.php", "language": "php", "file_size": 4177, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Block;\n\n/**\n * @author Fabien Potencier \n */\nfinal class SlackActionsBlock extends AbstractSlackBlock\n{\n public function __construct()\n {\n $this->options['type'] = 'actions';\n }\n\n /**\n * ", "suffix": "{\n throw new \\LogicException('Maximum number of buttons should not exceed 25.');\n }\n\n $element = new SlackButtonBlockElement($text, $url, $style, $value, $confirm);\n\n $this->options['elements'][] = $element->toArray();\n\n ", "middle": "@return $this\n */\n public function button(string $text, ?string $url = null, ?string $style = null, ?string $value = null, ?array $confirm = null): static\n {\n if (25 === \\count($this->options['elements'] ?? [])) ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Block/SlackActionsBlock.php", "language": "php", "file_size": 1187, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Block;\n\n/**\n * @author Fabien Potencier \n */\nfinal class SlackSectionBlock extends AbstractSlackBlock\n{\n public function __construct()\n {\n $this->options['type'] = 'section';\n }\n\n /**\n * @return $this\n ", "suffix": "'text' => $text,\n ];\n\n // verbatim is only available for markdown\n if ($markdown) {\n $this->options['text']['verbatim'] = $verbatim;\n } else {\n $this->options['text']['emoji'] = $emoji;\n }\n\n r", "middle": "*/\n public function text(string $text, bool $markdown = true, bool $emoji = true, bool $verbatim = false): static\n {\n $this->options['text'] = [\n 'type' => $markdown ? 'mrkdwn' : 'plain_text',\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Block/SlackSectionBlock.php", "language": "php", "file_size": 1949, "cut_index": 537, "middle_length": 229}} {"prefix": "\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\SlackOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\SlackSentMessage;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\SlackTransport;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symf", "suffix": "ackTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?string $channel = null): SlackTransport\n {\n return new SlackTransport('xoxb-TestToken', $channel, $client ?? new MockHtt", "middle": "ony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class Sl", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php", "language": "php", "file_size": 9445, "cut_index": 921, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twilio;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\nfinal class TwilioOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public funct", "suffix": "ions;\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function webhookUrl(string $url): static\n {\n $this->options['webhook_url'] = $url;\n\n return $this;", "middle": "ion toArray(): array\n {\n return $this->opt", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twilio/TwilioOptions.php", "language": "php", "file_size": 837, "cut_index": 520, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twilio;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\", "suffix": "face;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Fabien Potencier \n */\nfinal class TwilioTransport extends AbstractTransport\n{\n protected const HOST = 'api.twilio.com';\n\n public function __construct(\n ", "middle": "Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInter", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twilio/TwilioTransport.php", "language": "php", "file_size": 3601, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twilio\\Tests\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Notifier\\Bridge\\Twilio\\Webhook\\TwilioRequestParser;\nuse Symfony\\Component\\Webhook\\Client\\RequestParserInterface;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWebhookException;\nuse Symfony\\Component\\Webhook\\Test\\AbstractRequestParserTestCase", "suffix": "uest(string $payload): Request\n {\n parse_str(trim($payload), $parameters);\n\n return Request::create('/', 'POST', $parameters, [], [], [\n 'Content-Type' => 'application/x-www-form-urlencoded',\n ]);\n }\n\n protected sta", "middle": ";\n\nclass TwilioRequestParserTest extends AbstractRequestParserTestCase\n{\n protected function createRequestParser(): RequestParserInterface\n {\n return new TwilioRequestParser();\n }\n\n protected function createReq", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twilio/Tests/Webhook/TwilioRequestParserTest.php", "language": "php", "file_size": 3929, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RocketChat;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\N", "suffix": "**\n * @author Jeroen Spee \n */\nfinal class RocketChatTransport extends AbstractTransport\n{\n protected const HOST = 'rocketchat.com';\n\n public function __construct(\n #[\\SensitiveParameter] private string $accessToken", "middle": "otifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RocketChat/RocketChatTransport.php", "language": "php", "file_size": 3367, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackBlockInterface;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackDividerBlock;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackSectionBlock;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInter", "suffix": "tion __construct(\n private array $options = [],\n ) {\n if (\\count($this->options['blocks'] ?? []) > self::MAX_BLOCKS) {\n throw new LogicException(\\sprintf('Maximum number of \"blocks\" has been reached (%d).', self::MAX_BLOCKS));\n ", "middle": "face;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Fabien Potencier \n */\nclass SlackOptions implements MessageOptionsInterface\n{\n private const MAX_BLOCKS = 50;\n\n public func", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/SlackOptions.php", "language": "php", "file_size": 4569, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Fabien Potencier getSupportedSchemes());\n }\n\n $accessToken = $this->getUser($dsn);\n $channel = $dsn->getOption('channel');\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $port = $dsn->getPort(", "middle": "ny.com>\n */\nfinal class SlackTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SlackTransport\n {\n if ('slack' !== $dsn->getScheme()) {\n throw new UnsupportedSchemeExcep", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/SlackTransportFactory.php", "language": "php", "file_size": 1233, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Tests\\Block;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Slack\\Block\\SlackContextBlock;\n\nfinal class SlackContextBlockTest extends TestCase\n{\n public function testCanBeInstantiated()\n {\n $context = new SlackCo", "suffix": "context->id('context_id');\n\n $this->assertSame([\n 'type' => 'context',\n 'elements' => [\n [\n 'type' => 'plain_text',\n 'text' => 'context text without emoji',\n ", "middle": "ntextBlock();\n $context->text('context text without emoji', false, false);\n $context->text('context text verbatim', true, false, true);\n $context->image('https://example.com/image.jpg', 'an image');\n $", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Tests/Block/SlackContextBlockTest.php", "language": "php", "file_size": 2007, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Twilio\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Twilio\\TwilioTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\Missi", "suffix": "nsportFactory\n {\n return new TwilioTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'twilio://host.test?from=0611223344',\n 'twilio://accountSid:authToken@host.test?from=", "middle": "ngRequiredOptionTestTrait;\n\nfinal class TwilioTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): TwilioTra", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportFactoryTest.php", "language": "php", "file_size": 1902, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RocketChat\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\RocketChat\\RocketChatOptions;\n\nfinal class RocketChatOptionsTest extends TestCase\n{\n public function testRocketChatOptions()\n {\n $options = new RocketChatOptions([\n 'ti", "suffix": "> 'Test Text',\n 'color' => '#FF0000',\n ]],\n ], $options->toArray());\n\n $this->assertNull($options->getRecipientId());\n }\n\n public function testRocketChatOptionsWithChannel()\n {\n $options = (new Rocket", "middle": "tle' => 'Test Title',\n 'text' => 'Test Text',\n 'color' => '#FF0000',\n ]);\n\n $this->assertSame([\n 'attachments' => [[\n 'title' => 'Test Title',\n 'text' =", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/RocketChatOptionsTest.php", "language": "php", "file_size": 2757, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack\\Block;\n\n/**\n * @author Christophe Vergne \n */\nfinal class SlackButtonBlockElement extends AbstractSlackBlockElement\n{\n public function __construct(string $text, ?string $url = null, ?string $styl", "suffix": " ],\n ];\n\n if ($url) {\n $this->options['url'] = $url;\n }\n\n if ($style) {\n // primary or danger\n $this->options['style'] = $style;\n }\n\n if ($value) {\n $this->options['valu", "middle": "e = null, ?string $value = null, ?array $confirm = null)\n {\n $this->options = [\n 'type' => 'button',\n 'text' => [\n 'type' => 'plain_text',\n 'text' => $text,\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/Block/SlackButtonBlockElement.php", "language": "php", "file_size": 1117, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsFactor;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Not", "suffix": "\n * @author Thibault Buathier \n */\nfinal class SmsFactorTransport extends AbstractTransport\n{\n protected const HOST = 'api.smsfactor.com';\n\n public function __construct(\n #[\\SensitiveParameter] private string $toke", "middle": "ifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsFactor/SmsFactorTransport.php", "language": "php", "file_size": 3609, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Slack;\n\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\n\n/**\n * @author Maxim Dovydenok \n */\nfin", "suffix": ":__construct($original, $transport);\n $this->setMessageId($messageId);\n }\n\n public function getChannelId(): string\n {\n return $this->channelId;\n }\n\n public function getUpdateMessage(string $subject, array $options = []): ChatMe", "middle": "al class SlackSentMessage extends SentMessage\n{\n public function __construct(\n MessageInterface $original,\n string $transport,\n private string $channelId,\n string $messageId,\n ) {\n parent:", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Slack/SlackSentMessage.php", "language": "php", "file_size": 1147, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RocketChat;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Jeroen Spee \n *\n * @see https://rocket.chat/docs/administrator-guides/integrations/\n * @see https://developer.rocket.chat/reference/ap", "suffix": "@var string[]|string[][] */\n private array $attachments;\n\n /** @var string[] */\n private array $payload;\n\n /**\n * @param string[]|string[][] $attachments\n * @param string[] $payload\n */\n public function __construct(arr", "middle": "i/rest-api/endpoints/core-endpoints/chat-endpoints/postmessage\n */\nfinal class RocketChatOptions implements MessageOptionsInterface\n{\n /** prefix with '@' for personal messages */\n private ?string $channel = null;\n\n /** ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RocketChat/RocketChatOptions.php", "language": "php", "file_size": 1668, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsSluzba;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\nfinal class SmsSluzbaOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n public func", "suffix": "null;\n }\n\n /**\n * @return $this\n */\n public function sendAt(\\DateTime $sendAt): static\n {\n $sendAt->setTimezone(new \\DateTimeZone('Europe/Prague'));\n\n $this->options['send_at'] = $sendAt->format('YmdHis');\n\n return ", "middle": "tion getRecipientId(): ?string\n {\n return ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsSluzba/SmsSluzbaOptions.php", "language": "php", "file_size": 929, "cut_index": 606, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Esendex;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\nfinal class EsendexTransportFactory extends Abstr", "suffix": "->getSupportedSchemes());\n }\n\n $email = $this->getUser($dsn);\n $password = $this->getPassword($dsn);\n $accountReference = $dsn->getRequiredOption('accountreference');\n $from = $dsn->getRequiredOption('from');\n $hos", "middle": "actTransportFactory\n{\n public function create(Dsn $dsn): EsendexTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('esendex' !== $scheme) {\n throw new UnsupportedSchemeException($dsn, 'esendex', $this", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransportFactory.php", "language": "php", "file_size": 1354, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Esendex\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Esendex\\EsendexTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTestTra", "suffix": " return new EsendexTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'esendex://host.test?accountreference=ACCOUNTREFERENCE&from=FROM',\n 'esendex://email:password@host.test?a", "middle": "it;\n\nfinal class EsendexTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): EsendexTransportFactory\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Esendex/Tests/EsendexTransportFactoryTest.php", "language": "php", "file_size": 2318, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Esendex\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Esendex\\EsendexOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Esendex\\EsendexTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\No", "suffix": "ttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class EsendexTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): EsendexTransport\n {\n return (ne", "middle": "tifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\H", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Esendex/Tests/EsendexTransportTest.php", "language": "php", "file_size": 4176, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Clickatell;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\No", "suffix": "*\n * @author Kevin Auvinet \n */\nfinal class ClickatellTransport extends AbstractTransport\n{\n protected const HOST = 'api.clickatell.com';\n\n public function __construct(\n #[\\SensitiveParameter] private string $authToken,\n ", "middle": "tifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/*", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Clickatell/ClickatellTransport.php", "language": "php", "file_size": 3514, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Clickatell;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Kevin Auvinet getSupportedSchemes());\n }\n\n $authToken = $this->getUser($dsn);\n $from = $dsn->getOption('from');\n $host = 'default' === $dsn->getHost() ? null : $dsn->getH", "middle": "com>\n */\nfinal class ClickatellTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): ClickatellTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('clickatell' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Clickatell/ClickatellTransportFactory.php", "language": "php", "file_size": 1281, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Clickatell\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Clickatell\\ClickatellTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nclass ClickatellTransportFac", "suffix": "function createProvider(): iterable\n {\n yield [\n 'clickatell://host.test?from=0611223344',\n 'clickatell://authtoken@host.test?from=0611223344',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n", "middle": "toryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): ClickatellTransportFactory\n {\n return new ClickatellTransportFactory();\n }\n\n public static ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/ClickatellTransportFactoryTest.php", "language": "php", "file_size": 1542, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Clickatell\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Clickatell\\ClickatellTransport;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier", "suffix": "ansportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class ClickatellTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInter", "middle": "\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\Tr", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/ClickatellTransportTest.php", "language": "php", "file_size": 2751, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LightSms;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse ", "suffix": "t\n{\n protected const HOST = 'www.lightsms.com';\n\n private const ERROR_CODES = [\n 1 => 'Missing Signature',\n 2 => 'Login not specified',\n 3 => 'Text not specified',\n 4 => 'Phone number not specified',\n 5 => 'Sender n", "middle": "Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Vasilij Duško \n */\nfinal class LightSmsTransport extends AbstractTranspor", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php", "language": "php", "file_size": 5507, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LightSms;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Vasilij Duško \n", "suffix": "ow new UnsupportedSchemeException($dsn, 'lightsms', $this->getSupportedSchemes());\n }\n\n $login = $this->getUser($dsn);\n $token = $this->getPassword($dsn);\n $from = $dsn->getRequiredOption('from');\n\n $host = 'default' === ", "middle": " */\nfinal class LightSmsTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): LightSmsTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('lightsms' !== $scheme) {\n thr", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransportFactory.php", "language": "php", "file_size": 1317, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LightSms\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\LightSms\\LightSmsTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class LightSmsTransportFacto", "suffix": "on createProvider(): iterable\n {\n yield [\n 'lightsms://host.test?from=0611223344',\n 'lightsms://login:token@host.test?from=0611223344',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n ", "middle": "ryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): LightSmsTransportFactory\n {\n return new LightSmsTransportFactory();\n }\n\n public static functi", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportFactoryTest.php", "language": "php", "file_size": 1601, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LightSms\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\LightSms\\LightSmsTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Sym", "suffix": " public static function createTransport(?HttpClientInterface $client = null): LightSmsTransport\n {\n return new LightSmsTransport('accountSid', 'authToken', 'from', $client ?? new MockHttpClient());\n }\n\n public static function toStringProvid", "middle": "fony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class LightSmsTransportTest extends TransportTestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportTest.php", "language": "php", "file_size": 1413, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AllMySms;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class AllMySmsOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array", "suffix": "'alerting'] = $alerting;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function campaignName(string $campaignName): static\n {\n $this->options['campaignName'] = $campaignName;\n\n return $this;\n }\n\n /**\n ", "middle": " $options = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function alerting(int $alerting): static\n {\n $this->options[", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsOptions.php", "language": "php", "file_size": 1981, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AllMySms;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Noti", "suffix": " * @author Quentin Dequippe \n */\nfinal class AllMySmsTransport extends AbstractTransport\n{\n protected const HOST = 'api.allmysms.com';\n\n public function __construct(\n private string $login,\n #[\\SensitiveParameter]", "middle": "fier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransport.php", "language": "php", "file_size": 3591, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AllMySms;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Quentin Dequippe getSupportedSchemes());\n }\n\n $login = $this->getUser($dsn);\n $apiKey = $this->getPassword($dsn);\n $from = $dsn->getOption('from');\n $host = 'default' === ", "middle": "e.tech>\n */\nfinal class AllMySmsTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): AllMySmsTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('allmysms' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransportFactory.php", "language": "php", "file_size": 1317, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AllMySms\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\AllMySms\\AllMySmsOptions;\n\nclass AllMySmsOptionsTest extends TestCase\n{\n public function testAllMySmsOptions()\n {\n $allMySmsOptions = (n", "suffix": "test_unique_identifier')\n ->verbose(1);\n\n self::assertSame([\n 'alerting' => 1,\n 'date' => 'test_date',\n 'campaignName' => 'test_campaign_name',\n 'cliMsgId' => 'test_cli_msg_id',\n 'sim", "middle": "ew AllMySmsOptions())\n ->alerting(1)\n ->date('test_date')\n ->campaignName('test_campaign_name')\n ->cliMsgId('test_cli_msg_id')\n ->simulate(1)\n ->uniqueIdentifier('", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsOptionsTest.php", "language": "php", "file_size": 1153, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AllMySms\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\AllMySms\\AllMySmsTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class AllMySmsTransportFacto", "suffix": "on createProvider(): iterable\n {\n yield [\n 'allmysms://host.test',\n 'allmysms://login:apiKey@host.test',\n ];\n\n yield [\n 'allmysms://host.test?from=TEST',\n 'allmysms://login:apiKey@host.tes", "middle": "ryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): AllMySmsTransportFactory\n {\n return new AllMySmsTransportFactory();\n }\n\n public static functi", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsTransportFactoryTest.php", "language": "php", "file_size": 1542, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\AllMySms\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\AllMySms\\AllMySmsOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\AllMySms\\AllMySmsTransport;\nuse Symfony\\Component\\Notifie", "suffix": "ientInterface;\n\nfinal class AllMySmsTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?string $from = null): AllMySmsTransport\n {\n return new AllMySmsTransport('login', 'apiK", "middle": "r\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpCl", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsTransportTest.php", "language": "php", "file_size": 2621, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Chatwork\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Chatwork\\ChatworkOptions;\n\nclass ChatworkOptionsTest extends TestCase\n{\n public function testSetTo()\n {\n $options = new ChatworkOptions();\n $options->to(['abc', 'def']);\n $this->assertSame(['to' => ['abc', 'def", "suffix": "i');\n $this->assertSame(['to' => 'ghi'], $options->toArray());\n }\n\n public function testSetSelfUnread()\n {\n $options = new ChatworkOptions();\n $options->selfUnread(true);\n $this->assertSame(['selfUnread' => true], $opti", "middle": "']], $options->toArray());\n\n $options->to('gh", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/Tests/ChatworkOptionsTest.php", "language": "php", "file_size": 939, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Chatwork\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Chatwork\\ChatworkTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\M", "suffix": "ransportInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass ChatworkTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): TransportInterface\n {\n return (new ", "middle": "essage\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Component\\Notifier\\Transport\\T", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/Tests/ChatworkTransportTest.php", "language": "php", "file_size": 2056, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LineNotify;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Akira Kurozumi getScheme()) {\n throw new UnsupportedSchemeException($dsn, self::SCHEME, $this->getSupportedSchemes());\n }\n\n $token = $this->getUser($dsn", "middle": "mi.net>\n */\nfinal class LineNotifyTransportFactory extends AbstractTransportFactory\n{\n private const SCHEME = 'linenotify';\n\n protected function getSupportedSchemes(): array\n {\n return [self::SCHEME];\n }\n\n p", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LineNotify/LineNotifyTransportFactory.php", "language": "php", "file_size": 1236, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LineNotify\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\LineNotify\\LineNotifyTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\n/**\n * @author ", "suffix": " return new LineNotifyTransportFactory();\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'linenotify://host'];\n yield [false, 'somethingElse://host'];\n }\n\n public static function createProvider():", "middle": "Akira Kurozumi \n */\nfinal class LineNotifyTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): LineNotifyTransportFactory\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LineNotify/Tests/LineNotifyTransportFactoryTest.php", "language": "php", "file_size": 1401, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeSms;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Me", "suffix": "\n */\nfinal class FakeSmsLoggerTransport extends AbstractTransport\n{\n protected const HOST = 'default';\n\n public function __construct(\n private LoggerInterface $logger,\n ?HttpClientInterface $client = null,\n ?Eve", "middle": "ssage\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Antoine Makdessi ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsLoggerTransport.php", "language": "php", "file_size": 1826, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeSms\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Notifier\\Bridge\\FakeSms\\FakeSmsEmailTransport;\nuse Symfony\\Component\\Notifier\\Bridge\\FakeSms\\Mailer\\DummyMailer;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMess", "suffix": "rtTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?string $transportName = null): FakeSmsEmailTransport\n {\n $transport = (new FakeSmsEmailTransport(new DummyMailer(), 'recipient@email.net', 'sender@email", "middle": "age;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class FakeSmsEmailTransportTest extends Transpo", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsEmailTransportTest.php", "language": "php", "file_size": 4615, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeSms\\Tests;\n\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\Mailer\\Mailer;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Mailer\\Transport\\NullTransport;\nuse Symfony\\Component\\Notifier\\Bridge\\FakeSms\\FakeSmsTransportFactory;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException", "suffix": "r\\Transport\\Dsn;\n\nfinal class FakeSmsTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function testMissingRequiredMailerDependency()\n {\n $this->exp", "middle": ";\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTestTrait;\nuse Symfony\\Component\\Notifie", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsTransportFactoryTest.php", "language": "php", "file_size": 4356, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsSluzba;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Not", "suffix": "ymfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Dennis Fridrich \n */\nfinal class SmsSluzbaTransport extends AbstractTransport\n{\n protected const HOST = 'smsgateapi.sms-sluzba.cz';\n\n public function __constr", "middle": "ifier\\Transport\\AbstractTransport;\nuse Symfony\\Component\\Serializer\\Encoder\\XmlEncoder;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse S", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsSluzba/SmsSluzbaTransport.php", "language": "php", "file_size": 3532, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsSluzba\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\SmsSluzba\\SmsSluzbaTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class SmsSlu", "suffix": "ublic static function createProvider(): iterable\n {\n yield [\n 'sms-sluzba://host.test',\n 'sms-sluzba://username:password@host.test',\n ];\n }\n\n public static function incompleteDsnProvider(): iterable\n {\n ", "middle": "zbaTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): SmsSluzbaTransportFactory\n {\n return new SmsSluzbaTransportFactory();\n }\n\n p", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsSluzba/Tests/SmsSluzbaTransportFactoryTest.php", "language": "php", "file_size": 1491, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeChat;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInter", "suffix": "inal class FakeChatLoggerTransport extends AbstractTransport\n{\n protected const HOST = 'default';\n\n public function __construct(\n private LoggerInterface $logger,\n ?HttpClientInterface $client = null,\n ?EventDispatcherInterface $", "middle": "face;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Antoine Makdessi \n */\nf", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/FakeChatLoggerTransport.php", "language": "php", "file_size": 2053, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeChat;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Mailer\\Exception\\TransportExceptionInterface;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessag", "suffix": "nsport;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Oskar Stark \n */\nfinal class FakeChatEmailTransport extends AbstractTransport\n{\n protected const HOST = 'default';\n\n public function __construct(", "middle": "eTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTra", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/FakeChatEmailTransport.php", "language": "php", "file_size": 2643, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeChat\\Tests;\n\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\FakeChat\\FakeChatLoggerTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message", "suffix": "ntInterface;\n\nfinal class FakeChatLoggerTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?LoggerInterface $logger = null): FakeChatLoggerTransport\n {\n return new FakeChatLog", "middle": "\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Fixtures\\TestOptions;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClie", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatLoggerTransportTest.php", "language": "php", "file_size": 2411, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeChat\\Tests;\n\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\Mailer\\Mailer;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Mailer\\Transport\\NullTransport;\nuse Symfony\\Component\\Notifier\\Bridge\\FakeChat\\FakeChatTransportFactory;\nuse Symfony\\Component\\Notifier\\Exception\\LogicExcept", "suffix": "fier\\Transport\\Dsn;\n\nfinal class FakeChatTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function testMissingRequiredMailerDependency()\n {\n $this-", "middle": "ion;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTestTrait;\nuse Symfony\\Component\\Noti", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatTransportFactoryTest.php", "language": "php", "file_size": 4391, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FortySixElks;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Jon Gotlin ", "suffix": "ortedSchemeException($dsn, 'forty-six-elks', $this->getSupportedSchemes());\n }\n\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $from = $dsn->getRequiredOption('from');\n\n return (new FortySixElksTransport($this", "middle": "\n */\nfinal class FortySixElksTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): FortySixElksTransport\n {\n if ('forty-six-elks' !== $dsn->getScheme()) {\n throw new Unsupp", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransportFactory.php", "language": "php", "file_size": 1239, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FortySixElks\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\FortySixElks\\FortySixElksTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\No", "suffix": "ort\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass FortySixElksTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): FortySixElksTransport\n {\n return", "middle": "tifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transp", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FortySixElks/Tests/FortySixElksTransportTest.php", "language": "php", "file_size": 3132, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Esendex;\n\nuse Symfony\\Component\\HttpClient\\Exception\\JsonException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Componen", "suffix": "e Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class EsendexTransport extends AbstractTransport\n{\n protected const HOST = 'api.esendex.com';\n\n public function __construct(\n private string $email,\n #[\\SensitiveParameter] priv", "middle": "t\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nus", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransport.php", "language": "php", "file_size": 3747, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Chatwork\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Chatwork\\ChatworkTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test", "suffix": "quiredOptionTestTrait;\n\n public function createFactory(): TransportFactoryInterface\n {\n return new ChatworkTransportFactory();\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'chatwork://host?room_id=t", "middle": "\\MissingRequiredOptionTestTrait;\nuse Symfony\\Component\\Notifier\\Transport\\TransportFactoryInterface;\n\nclass ChatworkTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRe", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/Tests/ChatworkTransportFactoryTest.php", "language": "php", "file_size": 1840, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LineNotify\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\LineNotify\\LineNotifyTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Noti", "suffix": "pClientInterface;\n\n/**\n * @author Akira Kurozumi \n */\nfinal class LineNotifyTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): LineNotifyTransport\n {\n return", "middle": "fier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\Htt", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LineNotify/Tests/LineNotifyTransportTest.php", "language": "php", "file_size": 2080, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeSms;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse", "suffix": " Stark \n * @author Antoine Makdessi \n */\nfinal class FakeSmsTransportFactory extends AbstractTransportFactory\n{\n public function __construct(\n private ?MailerInterface $mailer = null,\n private ?", "middle": " Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author James Hemery \n * @author Oskar", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsTransportFactory.php", "language": "php", "file_size": 2763, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsSluzba;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Dennis Fridrich getSupportedSchemes());\n }\n\n $username = $this->getUser($dsn);\n $password = $this->getPassword($dsn);\n $host = 'default' === $dsn->getHost() ? null : $", "middle": "@gmail.com>\n */\nfinal class SmsSluzbaTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SmsSluzbaTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('sms-sluzba' !== $scheme) {", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsSluzba/SmsSluzbaTransportFactory.php", "language": "php", "file_size": 1292, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SmsSluzba\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\SmsSluzba\\SmsSluzbaTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase", "suffix": "ClientInterface $client = null, ?string $from = null): SmsSluzbaTransport\n {\n return new SmsSluzbaTransport('username', 'password');\n }\n\n public static function toStringProvider(): iterable\n {\n yield ['sms-sluzba://smsgateapi.sms-", "middle": ";\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class SmsSluzbaTransportTest extends TransportTestCase\n{\n public static function createTransport(?Http", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SmsSluzba/Tests/SmsSluzbaTransportTest.php", "language": "php", "file_size": 1441, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeChat;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nus", "suffix": "Antoine Makdessi \n */\nfinal class FakeChatTransportFactory extends AbstractTransportFactory\n{\n public function __construct(\n private ?MailerInterface $mailer = null,\n private ?LoggerInterface $logger = null,\n ?Even", "middle": "e Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Oskar Stark \n * @author ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/FakeChatTransportFactory.php", "language": "php", "file_size": 2727, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FortySixElks;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\", "suffix": "Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Jon Gotlin \n */\nfinal class FortySixElksTransport extends AbstractTransport\n{\n protected const HOST = 'api.46elks.com';\n\n public function __construct(\n private strin", "middle": "Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransport.php", "language": "php", "file_size": 2878, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Esendex;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class EsendexOptions implements MessageOptionsInterface\n{\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public function getRecipientId(): ?s", "suffix": " * @return $this\n */\n public function accountReference(string $accountReference): static\n {\n $this->options['accountreference'] = $accountReference;\n\n return $this;\n }\n\n public function toArray(): array\n {\n return $t", "middle": "tring\n {\n return null;\n }\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Esendex/EsendexOptions.php", "language": "php", "file_size": 936, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Chatwork\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Chatwork\\ChatworkMessageBodyBuilder;\n\nclass ChatworkMessageBodyBuilderTest extends TestCase\n{\n public function testSetTo()\n {\n $builder = new ChatworkMessa", "suffix": "his->assertSame(['ghi'], $property->getValue($builder));\n }\n\n public function testSetSelfUnread()\n {\n $builder = new ChatworkMessageBodyBuilder();\n $builder->selfUnread(true);\n $property = new \\ReflectionProperty($builder, 'se", "middle": "geBodyBuilder();\n $builder->to(['abc', 'def']);\n $property = new \\ReflectionProperty($builder, 'to');\n $this->assertSame(['abc', 'def'], $property->getValue($builder));\n $builder->to('ghi');\n $t", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/Tests/ChatworkMessageBodyBuilderTest.php", "language": "php", "file_size": 1889, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeSms;\n\nuse Symfony\\Component\\Mailer\\Exception\\TransportExceptionInterface;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInt", "suffix": "face;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author James Hemery \n * @author Oskar Stark \n */\nfinal class FakeSmsEmailTransport extends AbstractTransport\n{\n protected const HOST = ", "middle": "erface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInter", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsEmailTransport.php", "language": "php", "file_size": 2507, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeChat\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Notifier\\Bridge\\FakeChat\\FakeChatEmailTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Fixtures\\TestOptions;\nuse Symfony\\Component\\Notifier\\Tests\\Mailer\\Du", "suffix": "ansport(?HttpClientInterface $client = null, ?string $transportName = null): FakeChatEmailTransport\n {\n $transport = (new FakeChatEmailTransport(new DummyMailer(), 'recipient@email.net', 'sender@email.net', $client ?? new MockHttpClient()));\n\n ", "middle": "mmyMailer;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class FakeChatEmailTransportTest extends TransportTestCase\n{\n public static function createTr", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatEmailTransportTest.php", "language": "php", "file_size": 6089, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FortySixElks\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\FortySixElks\\FortySixElksTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nclass For", "suffix": " }\n\n public static function createProvider(): iterable\n {\n yield [\n 'forty-six-elks://host.test?from=Symfony',\n 'forty-six-elks://api_username:api_password@host.test?from=Symfony',\n ];\n }\n\n public static f", "middle": "tySixElksTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): FortySixElksTransportFactory\n {\n return new FortySixElksTransportFactory();\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FortySixElks/Tests/FortySixElksTransportFactoryTest.php", "language": "php", "file_size": 1423, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\LineNotify;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\No", "suffix": "urozumi \n */\nfinal class LineNotifyTransport extends AbstractTransport\n{\n protected const HOST = 'notify-api.line.me';\n\n public function __construct(\n #[\\SensitiveParameter] private string $token,\n ?HttpClientInterface ", "middle": "tifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Akira K", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/LineNotify/LineNotifyTransport.php", "language": "php", "file_size": 2648, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\FakeSms\\Tests;\n\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\FakeSms\\FakeSmsLoggerTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\Sm", "suffix": "ransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, ?LoggerInterface $logger = null): FakeSmsLoggerTransport\n {\n return new FakeSmsLoggerTransport($logger ?? new NullLogger(), $client ?? new MockHttp", "middle": "sMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class FakeSmsLoggerTransportTest extends T", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php", "language": "php", "file_size": 2061, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Chatwork;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Ippei Sumida getScheme();\n if (self::SCHEME !== $scheme) {\n throw new UnsupportedSchemeException($dsn, self::SCHEME, $this->getSupportedSchemes());\n }\n\n $token = $this->getUse", "middle": "*/\nclass ChatworkTransportFactory extends AbstractTransportFactory\n{\n private const SCHEME = 'chatwork';\n\n protected function getSupportedSchemes(): array\n {\n return [self::SCHEME];\n }\n\n public function crea", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkTransportFactory.php", "language": "php", "file_size": 1309, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Redlink\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Redlink\\RedlinkOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Redlink\\RedlinkTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\", "suffix": "HttpClient\\HttpClientInterface;\n\nfinal class RedlinkTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): RedlinkTransport\n {\n return (new RedlinkTransport(\n 'testApi", "middle": "Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Redlink/Tests/RedlinkTransportTest.php", "language": "php", "file_size": 1948, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushover;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Not", "suffix": "\n * @author mocodo \n */\nfinal class PushoverTransport extends AbstractTransport\n{\n protected const HOST = 'api.pushover.net';\n\n public function __construct(\n #[\\SensitiveParameter] private readonly string $userKey,\n ", "middle": "ifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/PushoverTransport.php", "language": "php", "file_size": 3191, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushover;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Component\\Notifier\\Transport\\Transpor", "suffix": "$dsn->getScheme()) {\n throw new UnsupportedSchemeException($dsn, 'pushover', $this->getSupportedSchemes());\n }\n\n $userKey = $dsn->getUser();\n $appToken = $dsn->getPassword();\n $host = 'default' === $dsn->getHost() ? n", "middle": "tInterface;\n\n/**\n * @author mocodo \n */\nfinal class PushoverTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TransportInterface\n {\n if ('pushover' !== ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/PushoverTransportFactory.php", "language": "php", "file_size": 1295, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushover\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Pushover\\PushoverTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\n\nfinal class PushoverTransportFactoryTest extends AbstractTransportFactor", "suffix": "over.net', 'pushover://userKey:appToken@api.pushover.net'];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'pushover://userKey@appToken'];\n yield [false, 'somethingElse://userKey@appToken'];\n }\n\n publ", "middle": "yTestCase\n{\n public function createFactory(): PushoverTransportFactory\n {\n return new PushoverTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield ['pushover://api.push", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/Tests/PushoverTransportFactoryTest.php", "language": "php", "file_size": 1123, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsc\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsc\\SmscTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Compone", "suffix": "unction createTransport(?HttpClientInterface $client = null): SmscTransport\n {\n return new SmscTransport('login', 'password', 'MyApp', $client ?? new MockHttpClient());\n }\n\n public static function toStringProvider(): iterable\n {\n ", "middle": "nt\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class SmscTransportTest extends TransportTestCase\n{\n public static f", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsc/Tests/SmscTransportTest.php", "language": "php", "file_size": 1372, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsbox;\n\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Intl\\Countries;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Charset;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Day;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Encoding;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Mode;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Strategy;\nuse Symfony\\Compon", "suffix": "d Touil \n * @author Alexandre Daubois \n */\nfinal class SmsboxOptions implements MessageOptionsInterface\n{\n private ClockInterface $clock;\n\n public function __construct(\n private array $options = [],\n ", "middle": "ent\\Notifier\\Bridge\\Smsbox\\Enum\\Udh;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Alan Zarli \n * @author Fari", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/SmsboxOptions.php", "language": "php", "file_size": 6864, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsbox;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Mode;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Strategy;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage", "suffix": "ExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Alan Zarli \n * @author Farid Touil \n */\nfinal class SmsboxTransport extends AbstractTransport\n{\n protected const HOST = 'api.sm", "middle": ";\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\Transport", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/SmsboxTransport.php", "language": "php", "file_size": 5792, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsbox;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Mode;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Strategy;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFac", "suffix": "tion create(Dsn $dsn): SmsboxTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('smsbox' !== $scheme) {\n throw new UnsupportedSchemeException($dsn, 'smsbox', $this->getSupportedSchemes());\n }\n\n $apiKey = $this->getUs", "middle": "tory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Alan Zarli \n * @author Farid Touil \n */\nfinal class SmsboxTransportFactory extends AbstractTransportFactory\n{\n public func", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/SmsboxTransportFactory.php", "language": "php", "file_size": 1690, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Countries;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Charset;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Day;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Mode;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Strategy;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Udh;\nuse Symfony\\Component", "suffix": "boxOptions())\n ->mode(Mode::Expert)\n ->sender('SENDER')\n ->strategy(Strategy::Marketing)\n ->charset(Charset::Utf8)\n ->udh(Udh::DisabledConcat)\n ->maxParts(2)\n ->validity(100)\n ", "middle": "\\Notifier\\Bridge\\Smsbox\\SmsboxOptions;\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\n\nclass SmsboxOptionsTest extends TestCase\n{\n public function testSmsboxOptions()\n {\n $smsboxOptions = (new Sms", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/SmsboxOptionsTest.php", "language": "php", "file_size": 6970, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\SmsboxTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTestTrait;", "suffix": " return new SmsboxTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield ['smsbox://host.test?mode=Standard&strategy=4', 'smsbox://APIKEY@host.test?mode=Standard&strategy=4'];\n yield ['smsbox://host.tes", "middle": "\n\nfinal class SmsboxTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): SmsboxTransportFactory\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/SmsboxTransportFactoryTest.php", "language": "php", "file_size": 2065, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Tests;\n\nuse Symfony\\Component\\Clock\\Test\\ClockSensitiveTrait;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Day;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Encoding;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Mode;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Strategy;\nuse Symfony\\Component\\Notifie", "suffix": "otifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal", "middle": "r\\Bridge\\Smsbox\\SmsboxOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\SmsboxTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\N", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/SmsboxTransportTest.php", "language": "php", "file_size": 8069, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Tests\\Enum;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Enum\\Mode;\n\nclass ModeTest extends TestCase\n{\n #[DataProvider('provideModeValues')]\n public function testModeValues(Mode $mode, string $value)\n {\n ", "suffix": "\n\n /**\n * @return iterable\n */\n public static function provideModeValues(): iterable\n {\n yield [Mode::Standard, 'Standard'];\n yield [Mode::Expert, 'Expert'];\n yield [Mode::Response, 'Reponse']; // ", "middle": " self::assertSame($value, $mode->value);\n }", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/Enum/ModeTest.php", "language": "php", "file_size": 967, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Tests\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Webhook\\SmsboxRequestParser;\nuse Symfony\\Component\\Webhook\\Client\\RequestParserInterface;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWebhookException;\nuse Symfony\\C", "suffix": "stParser();\n }\n\n protected function createRequest(string $payload): Request\n {\n parse_str(trim($payload), $parameters);\n\n return Request::create('/', 'GET', $parameters, [], [], ['REMOTE_ADDR' => '37.59.198.135']);\n }\n\n protect", "middle": "omponent\\Webhook\\Test\\AbstractRequestParserTestCase;\n\nclass SmsboxRequestParserTest extends AbstractRequestParserTestCase\n{\n protected function createRequestParser(): RequestParserInterface\n {\n return new SmsboxReque", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/Webhook/SmsboxRequestParserTest.php", "language": "php", "file_size": 2180, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\ChainRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\IpsRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\MethodRequestMatcher;\nuse Symfony\\Com", "suffix": "al class SmsboxRequestParser extends AbstractRequestParser\n{\n // https://www.smsbox.net/en/tools-development#doc-sms-accusees\n public const PROVIDER_IPS = ['37.59.198.135', '178.33.185.51', '54.36.93.79', '54.36.93.80', '62.4.31.47', '62.4.31.48'];\n\n", "middle": "ponent\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\RemoteEvent\\Event\\Sms\\SmsEvent;\nuse Symfony\\Component\\Webhook\\Client\\AbstractRequestParser;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWebhookException;\n\nfin", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Webhook/SmsboxRequestParser.php", "language": "php", "file_size": 2711, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Vonage;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifi", "suffix": "y\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Fabien Potencier \n */\nfinal class VonageTransport extends AbstractTransport\n{\n // see https://developer.vonage.com/messaging/sms/overview\n protected const HOST = 'rest.ne", "middle": "er\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfon", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransport.php", "language": "php", "file_size": 3006, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Vonage;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Fabien Potencier getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $apiSecret = $this->getPassword($dsn);\n $from = $dsn->getRequiredOption('from');\n $host = 'default' === $", "middle": "m>\n */\nfinal class VonageTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): VonageTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('vonage' !== $scheme) {\n throw ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransportFactory.php", "language": "php", "file_size": 1316, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Vonage\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Vonage\\VonageTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\Missi", "suffix": "nsportFactory\n {\n return new VonageTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'vonage://host.test?from=0611223344',\n 'vonage://apiKey:apiSecret@host.test?from=0611", "middle": "ngRequiredOptionTestTrait;\n\nfinal class VonageTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): VonageTra", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/Tests/VonageTransportFactoryTest.php", "language": "php", "file_size": 1874, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Vonage\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Vonage\\VonageTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\C", "suffix": "static function createTransport(?HttpClientInterface $client = null): VonageTransport\n {\n return new VonageTransport('apiKey', 'apiSecret', 'sender', $client ?? new MockHttpClient());\n }\n\n public static function toStringProvider(): iterable", "middle": "omponent\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class VonageTransportTest extends TransportTestCase\n{\n public ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/Tests/VonageTransportTest.php", "language": "php", "file_size": 1397, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Vonage\\Tests\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Notifier\\Bridge\\Vonage\\Webhook\\VonageRequestParser;\nuse Symfony\\Component\\Webhook\\Client\\RequestParserInterface;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWebhookException;\nuse Symfony\\C", "suffix": "{}');\n $request->headers->remove('Authorization');\n $parser = $this->createRequestParser();\n\n $this->expectException(RejectWebhookException::class);\n $this->expectExceptionMessage('Missing \"Authorization\" header');\n\n $par", "middle": "omponent\\Webhook\\Test\\AbstractRequestParserTestCase;\n\nclass VonageRequestParserTest extends AbstractRequestParserTestCase\n{\n public function testMissingAuthorizationTokenThrows()\n {\n $request = $this->createRequest('", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/Tests/Webhook/VonageRequestParserTest.php", "language": "php", "file_size": 2162, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Vonage\\Webhook;\n\nuse Symfony\\Component\\HttpFoundation\\ChainRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\IsJsonRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\MethodRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nu", "suffix": "hookException;\n\nfinal class VonageRequestParser extends AbstractRequestParser\n{\n protected function getRequestMatcher(): RequestMatcherInterface\n {\n return new ChainRequestMatcher([\n new MethodRequestMatcher('POST'),\n new", "middle": "se Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\RemoteEvent\\Event\\Sms\\SmsEvent;\nuse Symfony\\Component\\Webhook\\Client\\AbstractRequestParser;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWeb", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/Webhook/VonageRequestParser.php", "language": "php", "file_size": 3621, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoogleChat;\n\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Jérôme Tamarelle \n */\nfinal class GoogleChatOptions impl", "suffix": ": self\n {\n $options = new self();\n\n $text = $notification->getEmoji().' *'.$notification->getSubject().'* ';\n\n if ($notification->getContent()) {\n $text .= \"\\r\\n\".$notification->getContent();\n }\n\n if ($excep", "middle": "ements MessageOptionsInterface\n{\n private ?string $threadKey = null;\n\n public function __construct(\n private array $options = [],\n ) {\n }\n\n public static function fromNotification(Notification $notification)", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/GoogleChatOptions.php", "language": "php", "file_size": 2162, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoogleChat;\n\nuse Symfony\\Component\\HttpClient\\Exception\\JsonException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedOptionsException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessag", "suffix": "nt\\HttpClientInterface;\n\n/**\n * @author Jérôme Tamarelle \n */\nfinal class GoogleChatTransport extends AbstractTransport\n{\n protected const HOST = 'chat.googleapis.com';\n\n /**\n * @param string $space The space name", "middle": "e;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClie", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/GoogleChatTransport.php", "language": "php", "file_size": 5376, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoogleChat;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Jérôme Tamarelle \n */\n", "suffix": "hatTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('googlechat' !== $scheme) {\n throw new UnsupportedSchemeException($dsn, 'googlechat', $this->getSupportedSchemes());\n }\n\n $space = explode('/', $dsn->getPath())[1", "middle": "final class GoogleChatTransportFactory extends AbstractTransportFactory\n{\n /**\n * @param Dsn $dsn Format: googlechat://:@default/?thread_key=\n */\n public function create(Dsn $dsn): GoogleC", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/GoogleChatTransportFactory.php", "language": "php", "file_size": 1535, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoogleChat\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\GoogleChat\\GoogleChatOptions;\n\nfinal class GoogleChatOptionsTest extends TestCase\n{\n public function testToArrayWithCardV2()\n {\n $options = new GoogleCha", "suffix": "-app-avatar.png',\n 'imageType' => 'CIRCLE',\n 'imageAltText' => 'Avatar for Sasha',\n ],\n 'sections' => [\n [\n 'header' => 'Contact Info',\n 'collapsible' ", "middle": "tOptions();\n\n $cardV2 = [\n 'header' => [\n 'title' => 'Sasha',\n 'subtitle' => 'Software Engineer',\n 'imageUrl' => 'https://developers.google.com/chat/images/quickstart", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatOptionsTest.php", "language": "php", "file_size": 1952, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoogleChat\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\GoogleChat\\GoogleChatTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class GoogleChatTransp", "suffix": "tatic function createProvider(): iterable\n {\n yield [\n 'googlechat://chat.googleapis.com/AAAAA_YYYYY',\n 'googlechat://abcde-fghij:kl_mnopqrstwxyz%3D@chat.googleapis.com/AAAAA_YYYYY',\n ];\n\n yield [\n '", "middle": "ortFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): GoogleChatTransportFactory\n {\n return new GoogleChatTransportFactory();\n }\n\n public s", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportFactoryTest.php", "language": "php", "file_size": 1691, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\GoogleChat\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\GoogleChat\\GoogleChatOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\GoogleChat\\GoogleChatTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedOptionsException;\nuse Symfony\\Component\\Notifier\\Message\\Ch", "suffix": "TestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class GoogleChatTransportTest extends TransportTestCase\n{\n public sta", "middle": "atMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Test\\Transport", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportTest.php", "language": "php", "file_size": 6451, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Expo;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Imad ZAIRIG \n *\n * @see https://docs.expo.dev/push-notifications/sending-notifications/\n */\nfinal class ExpoOptions implements MessageOptionsInterface\n{\n /**\n * @param array $options @see https://docs.expo.d", "suffix": "blic function toArray(): array\n {\n return array_merge($this->options, [\n 'to' => $this->to,\n 'data' => $this->data,\n ]);\n }\n\n public function getRecipientId(): ?string\n {\n return $this->to;\n }\n\n ", "middle": "ev/push-notifications/sending-notifications/#message-request-format\n */\n public function __construct(\n private string $to,\n private array $options = [],\n private array $data = [],\n ) {\n }\n\n pu", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Expo/ExpoOptions.php", "language": "php", "file_size": 3141, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Expo;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Co", "suffix": "ace;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Imad ZAIRIG \n */\nfinal class ExpoTransport extends AbstractTransport\n{\n protected const HOST = 'exp.host/--/api/v2/push/send';\n\n public function", "middle": "mponent\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterf", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Expo/ExpoTransport.php", "language": "php", "file_size": 3763, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Expo;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Imad ZAIRIG getSupportedSchemes());\n }\n\n $token = $dsn->getUser();\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $port = $dsn->getPort();\n\n return (new ExpoT", "middle": "/zairigimad>\n */\nfinal class ExpoTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): ExpoTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('expo' !== $scheme) {\n th", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Expo/ExpoTransportFactory.php", "language": "php", "file_size": 1186, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Expo\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Expo\\ExpoTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\n\n/**\n * @author Imad ZAIRIG \n */\nfinal class ExpoTranspor", "suffix": "\n yield [\n 'expo://exp.host/--/api/v2/push/send',\n 'expo://default',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'expo://default?accessToken=test'];\n yield [false,", "middle": "tFactoryTest extends AbstractTransportFactoryTestCase\n{\n public function createFactory(): ExpoTransportFactory\n {\n return new ExpoTransportFactory();\n }\n\n public static function createProvider(): iterable\n {", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Expo/Tests/ExpoTransportFactoryTest.php", "language": "php", "file_size": 1197, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Expo\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Expo\\ExpoTransport;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Compone", "suffix": "poTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): ExpoTransport\n {\n return new ExpoTransport('token', $client ?? new MockHttpClient());\n }\n\n public static function t", "middle": "nt\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Imad ZAIRIG \n */\nfinal class Ex", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Expo/Tests/ExpoTransportTest.php", "language": "php", "file_size": 1444, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zulip;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Mohammad Emran Hasan \n */\nfinal class ZulipOptions implements MessageOptionsInterface\n{\n public function __construct(\n ", "suffix": "ipient,\n ];\n }\n\n public function getRecipientId(): ?string\n {\n return $this->recipient;\n }\n\n /**\n * @return $this\n */\n public function topic(string $topic): static\n {\n $this->topic = $topic;\n\n return", "middle": " private ?string $topic = null,\n private ?string $recipient = null,\n ) {\n }\n\n public function toArray(): array\n {\n return [\n 'topic' => $this->topic,\n 'recipient' => $this->rec", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zulip/ZulipOptions.php", "language": "php", "file_size": 1013, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zulip;\n\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\N", "suffix": "Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Mohammad Emran Hasan \n */\nfinal class ZulipTransport extends AbstractTransport\n{\n public function __construct(\n private string $email,\n #[\\SensitiveParame", "middle": "otifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zulip/ZulipTransport.php", "language": "php", "file_size": 3495, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushover;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author mocodo \n *\n * @see https://pushover.net/api\n */\nfinal class PushoverOptions implements Me", "suffix": "falling',\n 'gamelan',\n 'incoming',\n 'intermission',\n 'magic',\n 'mechanical',\n 'pianobar',\n 'siren',\n 'spacealarm',\n 'tugboat',\n 'alien',\n 'climb',\n 'persistent',\n 'e", "middle": "ssageOptionsInterface\n{\n private const PRIORITIES = [-2, -1, 0, 1, 2];\n\n private const SOUNDS = [\n 'pushover',\n 'bike',\n 'bugle',\n 'cashregister',\n 'classical',\n 'cosmic',\n '", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/PushoverOptions.php", "language": "php", "file_size": 4567, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sevenio;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notif", "suffix": "* @author Frank Nägler \n */\nfinal class SevenIoTransport extends AbstractTransport\n{\n protected const HOST = 'gateway.seven.io';\n\n public function __construct(\n #[\\SensitiveParameter] private string $apiKey,\n priv", "middle": "ier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sevenio/SevenIoTransport.php", "language": "php", "file_size": 3255, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sevenio\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Sevenio\\SevenIoTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class SevenIoTrans", "suffix": " function createProvider(): iterable\n {\n yield [\n 'sevenio://host.test',\n 'sevenio://apiKey@host.test',\n ];\n\n yield [\n 'sevenio://host.test?from=TEST',\n 'sevenio://apiKey@host.test?from=TE", "middle": "portFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): SevenIoTransportFactory\n {\n return new SevenIoTransportFactory();\n }\n\n public static", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sevenio/Tests/SevenIoTransportFactoryTest.php", "language": "php", "file_size": 1506, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\TurboSms;\n\nuse Symfony\\Component\\Notifier\\Exception\\LengthException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Compone", "suffix": "em Henvald \n *\n * @see https://turbosms.ua/api.html\n */\nfinal class TurboSmsTransport extends AbstractTransport\n{\n protected const HOST = 'api.turbosms.ua';\n\n private const SUBJECT_LATIN_LIMIT = 1521;\n private const SUBJECT", "middle": "nt\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Art", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransport.php", "language": "php", "file_size": 4531, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Redlink;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notif", "suffix": "* @author Mateusz Żyła \n */\nfinal class RedlinkTransport extends AbstractTransport\n{\n protected const HOST = 'api.redlink.pl';\n\n public function __construct(\n #[\\SensitiveParameter] private readonly string $apiT", "middle": "ier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Redlink/RedlinkTransport.php", "language": "php", "file_size": 3539, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Redlink\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Redlink\\RedlinkTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\Mi", "suffix": "nkTransportFactory\n {\n return new RedlinkTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'redlink://api.redlink.pl?from=TEST&version=v2.1',\n 'redlink://aaaaa:bbbbbb@api", "middle": "ssingRequiredOptionTestTrait;\n\nfinal class RedlinkTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): Redli", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Redlink/Tests/RedlinkTransportFactoryTest.php", "language": "php", "file_size": 2019, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\TurboSms;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Artem Henvald getSupportedSchemes());\n }\n\n $authToken = $this->getUser($dsn);\n $from = $dsn->getRequiredOption('from');\n $host = 'default' === $dsn->getHost() ? null : $dsn->get", "middle": ".com>\n */\nfinal class TurboSmsTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TurboSmsTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('turbosms' !== $scheme) {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransportFactory.php", "language": "php", "file_size": 1278, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RingCentral;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class RingCentralOptions implements MessageOptionsInterface\n{\n public function __constru", "suffix": " = null, ?string $name = null, ?string $uri = null, ?string $callingCode = null): static\n {\n $this->options['country'] = [\n 'id' => $id,\n 'isoCode' => $isoCode,\n 'name' => $name,\n 'uri' => $uri,\n ", "middle": "ct(\n private array $options = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function country(string $id, ?string $isoCode", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/RingCentralOptions.php", "language": "php", "file_size": 1162, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RingCentral;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author gnito-org getScheme();\n if (self::TRANSPORT_SCHEME !== $scheme) {\n throw new UnsupportedSchemeException($dsn, self::TRANSPORT_SCHEME, $this->getSupportedSchemes());\n }\n $apiKey = $this->getUser($dsn);\n $from = $dsn->getRequi", "middle": "gnito-org>\n */\nfinal class RingCentralTransportFactory extends AbstractTransportFactory\n{\n private const TRANSPORT_SCHEME = 'ringcentral';\n\n public function create(Dsn $dsn): RingCentralTransport\n {\n $scheme = $ds", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/RingCentralTransportFactory.php", "language": "php", "file_size": 1373, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RingCentral\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\RingCentral\\RingCentralTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Noti", "suffix": "Factory(): RingCentralTransportFactory\n {\n return new RingCentralTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield ['ringcentral://host.test?from=0611223344', 'ringcentral://apiToken@host.test?fr", "middle": "fier\\Test\\MissingRequiredOptionTestTrait;\n\nfinal class RingCentralTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function create", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/Tests/RingCentralTransportFactoryTest.php", "language": "php", "file_size": 1794, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsapi;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifi", "suffix": "nterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Marcin Szepczynski \n */\nfinal class SmsapiTransport extends AbstractTransport\n{\n protected const HOST = 'api.smsapi.pl';\n\n private bool $fast = fal", "middle": "er\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionI", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php", "language": "php", "file_size": 3879, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsapi\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Smsapi\\SmsapiTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class SmsapiTransportFactoryTest extends AbstractTransportFa", "suffix": " yield [\n 'smsapi://host.test',\n 'smsapi://token@host.test',\n ];\n\n yield [\n 'smsapi://host.test?from=testFrom',\n 'smsapi://token@host.test?from=testFrom',\n ];\n\n yield [\n ", "middle": "ctoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): SmsapiTransportFactory\n {\n return new SmsapiTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportFactoryTest.php", "language": "php", "file_size": 2884, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mailjet;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notif", "suffix": "ny\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Jérôme Nadaud \n */\nfinal class MailjetTransport extends AbstractTransport\n{\n protected const HOST = 'api.mailjet.com';\n\n public function __construct(\n #[\\SensitiveP", "middle": "ier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfo", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransport.php", "language": "php", "file_size": 2869, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mailjet\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Mailjet\\MailjetTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfon", "suffix": "lic static function createTransport(?HttpClientInterface $client = null): MailjetTransport\n {\n return (new MailjetTransport('authtoken', 'Mailjet', $client ?? new MockHttpClient()))->setHost('host.test');\n }\n\n public static function toStrin", "middle": "y\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class MailjetTransportTest extends TransportTestCase\n{\n pub", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/MailjetTransportTest.php", "language": "php", "file_size": 1410, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mailjet;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Jérôme Nadaud \n ", "suffix": "ew UnsupportedSchemeException($dsn, 'mailjet', $this->getSupportedSchemes());\n }\n\n $authToken = $this->getPassword($dsn);\n $from = $this->getUser($dsn);\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $p", "middle": "*/\nfinal class MailjetTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): MailjetTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('mailjet' !== $scheme) {\n throw n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransportFactory.php", "language": "php", "file_size": 1260, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsc\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Smsc\\SmscTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\MissingRequiredOptionTestTrait;\n\nfinal class SmscTransportFactoryTest e", "suffix": "eProvider(): iterable\n {\n yield [\n 'smsc://host.test?from=MyApp',\n 'smsc://login:password@host.test?from=MyApp',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'smsc://lo", "middle": "xtends AbstractTransportFactoryTestCase\n{\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): SmscTransportFactory\n {\n return new SmscTransportFactory();\n }\n\n public static function creat", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsc/Tests/SmscTransportFactoryTest.php", "language": "php", "file_size": 1528, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Pushover\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Pushover\\PushoverTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Notificat", "suffix": "Interface;\n\nfinal class PushoverTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): PushoverTransport\n {\n return new PushoverTransport('userKey', 'appToken', $client ?? new Mo", "middle": "ion\\Notification;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\Response", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/Tests/PushoverTransportTest.php", "language": "php", "file_size": 3498, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sevenio;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Frank Nägler getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $from = $dsn->getOption('from');\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $p", "middle": "g>\n */\nfinal class SevenIoTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SevenIoTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('sevenio' !== $scheme) {\n thr", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sevenio/SevenIoTransportFactory.php", "language": "php", "file_size": 1256, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Sevenio\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Sevenio\\SevenIoTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfon", "suffix": "lic static function createTransport(?HttpClientInterface $client = null, ?string $from = null): SevenIoTransport\n {\n return new SevenIoTransport('apiKey', $from, $client ?? new MockHttpClient());\n }\n\n public static function toStringProvider", "middle": "y\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class SevenIoTransportTest extends TransportTestCase\n{\n pub", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Sevenio/Tests/SevenIoTransportTest.php", "language": "php", "file_size": 1493, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Redlink;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Component\\Notifier\\Transport\\Transport", "suffix": "nk' !== $dsn->getScheme()) {\n throw new UnsupportedSchemeException($dsn, 'redlink', $this->getSupportedSchemes());\n }\n\n $apiKey = $dsn->getUser();\n $appToken = $dsn->getPassword();\n $host = 'default' === $dsn->getHost", "middle": "Interface;\n\n/**\n * @author Mateusz Żyła \n */\nfinal class RedlinkTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): TransportInterface\n {\n if ('redli", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Redlink/RedlinkTransportFactory.php", "language": "php", "file_size": 1422, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\TurboSms\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\TurboSms\\TurboSmsTransport;\nuse Symfony\\Component\\Notifier\\Exception\\LengthException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Compone", "suffix": "lient\\ResponseInterface;\n\nfinal class TurboSmsTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): TurboSmsTransport\n {\n return new TurboSmsTransport('authToken', 'sender', $cl", "middle": "nt\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpC", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/TurboSmsTransportTest.php", "language": "php", "file_size": 6235, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RingCentral\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\RingCentral\\RingCentralOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\RingCentral\\RingCentralTransport;\nuse Symfony\\Compon", "suffix": "Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class RingCentralTransportTest extends TransportTestCase\n{\n public static function createTransport(?H", "middle": "ent\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/Tests/RingCentralTransportTest.php", "language": "php", "file_size": 3687, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsapi\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsapi\\SmsapiTransport;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\Cha", "suffix": ";\n\nfinal class SmsapiTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null, string $from = '', bool $fast = false, bool $test = false): SmsapiTransport\n {\n return (new SmsapiTrans", "middle": "tMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportTest.php", "language": "php", "file_size": 4073, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Mailjet\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Mailjet\\MailjetTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class MailjetTransportFactoryTe", "suffix": "ateProvider(): iterable\n {\n yield [\n 'mailjet://Mailjet@host.test',\n 'mailjet://Mailjet:authtoken@host.test',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'mailjet://Ma", "middle": "st extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): MailjetTransportFactory\n {\n return new MailjetTransportFactory();\n }\n\n public static function cre", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/MailjetTransportFactoryTest.php", "language": "php", "file_size": 1576, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zulip\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Zulip\\ZulipTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\MissingR", "suffix": "tFactory\n {\n return new ZulipTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'zulip://host.test?channel=testChannel',\n 'zulip://email:token@host.test?channel=testChanne", "middle": "equiredOptionTestTrait;\n\nfinal class ZulipTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): ZulipTranspor", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zulip/Tests/ZulipTransportFactoryTest.php", "language": "php", "file_size": 1805, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RingCentral;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Sym", "suffix": "Interface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author gnito-org \n */\nfinal class RingCentralTransport extends AbstractTransport\n{\n protected const HOST = 'platform.ringcentral.com';\n\n public fu", "middle": "fony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportException", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/RingCentralTransport.php", "language": "php", "file_size": 3555, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\n\n/**\n * @author Smaïne Milianni \n */\nfinal class NotificationTransportIsEqual extends Constra", "suffix": "geInterface $message\n */\n protected function matches($message): bool\n {\n return $message->getTransport() === $this->expectedText;\n }\n\n /**\n * @param MessageInterface $message\n */\n protected function failureDescription($mes", "middle": "int\n{\n public function __construct(\n private ?string $expectedText,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('is \"%s\"', $this->expectedText);\n }\n\n /**\n * @param Messa", "meta": {"filepath": "src/Symfony/Component/Notifier/Test/Constraint/NotificationTransportIsEqual.php", "language": "php", "file_size": 1093, "cut_index": 515, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\FlashMessage;\n\nuse Symfony\\Component\\Notifier\\Exception\\FlashMessageImportanceMapperException;\n\n/**\n * @author Ben Roberts \n */\nabstract class AbstractFlashMessageImportanceMapper\n{\n public function flashMessageTypeFro", "suffix": "ring $importance): string\n {\n if (!\\array_key_exists($importance, static::IMPORTANCE_MAP)) {\n throw new FlashMessageImportanceMapperException($importance, static::class);\n }\n\n return static::IMPORTANCE_MAP[$importance];\n ", "middle": "mImportance(st", "meta": {"filepath": "src/Symfony/Component/Notifier/FlashMessage/AbstractFlashMessageImportanceMapper.php", "language": "php", "file_size": 791, "cut_index": 514, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\FlashMessage;\n\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Ben Roberts \n */\nclass BootstrapFlashMessageImportanceMapper extends AbstractFlashMessageImportanceMapper implements FlashMessageImportanceMap", "suffix": "\n protected const IMPORTANCE_MAP = [\n Notification::IMPORTANCE_URGENT => 'danger',\n Notification::IMPORTANCE_HIGH => 'warning',\n Notification::IMPORTANCE_MEDIUM => 'info',\n Notification::IMPORTANCE_LOW => 'success',\n ];\n}\n", "middle": "perInterface\n{", "meta": {"filepath": "src/Symfony/Component/Notifier/FlashMessage/BootstrapFlashMessageImportanceMapper.php", "language": "php", "file_size": 794, "cut_index": 524, "middle_length": 14}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\FlashMessage;\n\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\n\n/**\n * @author Ben Roberts \n */\nclass DefaultFlashMessageImportanceMapper extends AbstractFlashMessageImportanceMapper implements FlashMessageImportanceMap", "suffix": "\n protected const IMPORTANCE_MAP = [\n Notification::IMPORTANCE_URGENT => 'notification',\n Notification::IMPORTANCE_HIGH => 'notification',\n Notification::IMPORTANCE_MEDIUM => 'notification',\n Notification::IMPORTANCE_LOW => '", "middle": "perInterface\n{", "meta": {"filepath": "src/Symfony/Component/Notifier/FlashMessage/DefaultFlashMessageImportanceMapper.php", "language": "php", "file_size": 816, "cut_index": 522, "middle_length": 14}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Channel;\n\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Notifier\\Exception\\LogicException;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\n\n/**\n * @author Fabien Potencier \n */", "suffix": "BusInterface $bus = null)\n {\n if (null === $transport && null === $bus) {\n throw new LogicException(\\sprintf('\"%s\" needs a Transport or a Bus but both cannot be \"null\".', static::class));\n }\n\n $this->transport = $transpor", "middle": "\nabstract class AbstractChannel implements ChannelInterface\n{\n protected ?TransportInterface $transport;\n protected ?MessageBusInterface $bus;\n\n public function __construct(?TransportInterface $transport = null, ?Message", "meta": {"filepath": "src/Symfony/Component/Notifier/Channel/AbstractChannel.php", "language": "php", "file_size": 1036, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Channel;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Notifier\\FlashMessage\\DefaultFlashMessageImportanceMapper;\nuse Symfony\\Component\\Notifier\\FlashMessage\\FlashMessageImportanceMapperInterface;\nuse Symfony\\Component\\Notifier\\Notifi", "suffix": "\n private RequestStack $stack,\n private FlashMessageImportanceMapperInterface $mapper = new DefaultFlashMessageImportanceMapper(),\n ) {\n }\n\n public function notify(Notification $notification, RecipientInterface $recipient, ?string $t", "middle": "cation\\Notification;\nuse Symfony\\Component\\Notifier\\Recipient\\RecipientInterface;\n\n/**\n * @author Fabien Potencier \n */\nfinal class BrowserChannel implements ChannelInterface\n{\n public function __construct(", "meta": {"filepath": "src/Symfony/Component/Notifier/Channel/BrowserChannel.php", "language": "php", "file_size": 1594, "cut_index": 537, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Channel;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\n\n/**\n * @author Fabien Potencier \n */\nfinal class ChannelPolicy implements ChannelPolicyInterface\n{\n public function __construct(\n private array $policy,", "suffix": "ng $importance): array\n {\n if (!isset($this->policy[$importance])) {\n throw new InvalidArgumentException(\\sprintf('Importance \"%s\" is not defined in the Policy.', $importance));\n }\n\n return $this->policy[$importance];\n ", "middle": "\n ) {\n }\n\n public function getChannels(stri", "meta": {"filepath": "src/Symfony/Component/Notifier/Channel/ChannelPolicy.php", "language": "php", "file_size": 848, "cut_index": 535, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Channel;\n\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Notification\\ChatNotificationInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Recipient\\RecipientInterfac", "suffix": " {\n $message = null;\n if ($notification instanceof ChatNotificationInterface) {\n $message = $notification->asChatMessage($recipient, $transportName);\n }\n\n $message ??= ChatMessage::fromNotification($notification);\n\n", "middle": "e;\n\n/**\n * @author Fabien Potencier \n */\nclass ChatChannel extends AbstractChannel\n{\n public function notify(Notification $notification, RecipientInterface $recipient, ?string $transportName = null): void\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Channel/ChatChannel.php", "language": "php", "file_size": 1396, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Channel;\n\nuse Symfony\\Component\\Notifier\\Message\\DesktopMessage;\nuse Symfony\\Component\\Notifier\\Notification\\DesktopNotificationInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Recipient\\RecipientIn", "suffix": "ull): void\n {\n if ($notification instanceof DesktopNotificationInterface) {\n $message = $notification->asDesktopMessage($recipient, $transportName);\n }\n\n $message ??= DesktopMessage::fromNotification($notification);\n\n ", "middle": "terface;\n\n/**\n * @author Ahmed Ghanem \n */\nclass DesktopChannel extends AbstractChannel\n{\n public function notify(Notification $notification, RecipientInterface $recipient, ?string $transportName = n", "meta": {"filepath": "src/Symfony/Component/Notifier/Channel/DesktopChannel.php", "language": "php", "file_size": 1395, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Channel;\n\nuse Symfony\\Component\\Mailer\\Envelope;\nuse Symfony\\Component\\Mailer\\Messenger\\SendEmailMessage;\nuse Symfony\\Component\\Mailer\\Transport\\TransportInterface;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Notifier\\Exception\\LogicExcep", "suffix": "\\EmailRecipientInterface;\nuse Symfony\\Component\\Notifier\\Recipient\\RecipientInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass EmailChannel implements ChannelInterface\n{\n private string|Address|null $from;\n\n public function __", "middle": "tion;\nuse Symfony\\Component\\Notifier\\Message\\EmailMessage;\nuse Symfony\\Component\\Notifier\\Notification\\EmailNotificationInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Recipient", "meta": {"filepath": "src/Symfony/Component/Notifier/Channel/EmailChannel.php", "language": "php", "file_size": 3296, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Channel;\n\nuse Symfony\\Component\\Notifier\\Message\\PushMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Notification\\PushNotificationInterface;\nuse Symfony\\Component\\Notifier\\Recipient\\RecipientInterfac", "suffix": "\n {\n $message = null;\n if ($notification instanceof PushNotificationInterface) {\n $message = $notification->asPushMessage($recipient, $transportName);\n }\n\n $message ??= PushMessage::fromNotification($notification);", "middle": "e;\n\n/**\n * @author Tomas Norkūnas \n */\nclass PushChannel extends AbstractChannel\n{\n public function notify(Notification $notification, RecipientInterface $recipient, ?string $transportName = null): void", "meta": {"filepath": "src/Symfony/Component/Notifier/Channel/PushChannel.php", "language": "php", "file_size": 1399, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Channel;\n\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\Notification\\SmsNotificationInterface;\nuse Symfony\\Component\\Notifier\\Recipient\\RecipientInterface;\nuse Symfony\\", "suffix": "nction notify(Notification $notification, RecipientInterface $recipient, ?string $transportName = null): void\n {\n $message = null;\n if ($notification instanceof SmsNotificationInterface) {\n $message = $notification->asSmsMessage", "middle": "Component\\Notifier\\Recipient\\SmsRecipientInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass SmsChannel extends AbstractChannel\n{\n /**\n * @param SmsRecipientInterface $recipient\n */\n public fu", "meta": {"filepath": "src/Symfony/Component/Notifier/Channel/SmsChannel.php", "language": "php", "file_size": 1568, "cut_index": 537, "middle_length": 229}} {"prefix": "t\\Serializer\\Encoder\\ContextAwareDecoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\ContextAwareEncoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\DecoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\EncoderInterface;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Exception\\PartialDenormalizationExcep", "suffix": "y\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerAwareInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * Serializer serializes and deserializes data.\n *\n * objec", "middle": "tion;\nuse Symfony\\Component\\Serializer\\Exception\\UnsupportedFormatException;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerAwareInterface;\nuse Symfon", "meta": {"filepath": "src/Symfony/Component/Serializer/Serializer.php", "language": "php", "file_size": 17347, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer;\n\nuse Symfony\\Component\\Serializer\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException;\n\n/**\n * @author Jordi Boggiano \n", "suffix": "ueException Occurs when a value cannot be normalized\n * @throws UnexpectedValueException Occurs when a value cannot be encoded\n * @throws ExceptionInterface Occurs for all the other cases of serialization-related errors\n */\n ", "middle": " */\ninterface SerializerInterface\n{\n /**\n * Serializes data in the appropriate format.\n *\n * @param array $context Options normalizers/encoders have access to\n *\n * @throws NotNormalizableVal", "meta": {"filepath": "src/Symfony/Component/Serializer/SerializerInterface.php", "language": "php", "file_size": 1911, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Exception;\n\n/**\n * ExtraAttributesException.\n *\n * @author Julien DIDIER \n */\nclass ExtraAttributesException extends RuntimeException\n{\n /**\n * @param list $extraAttributes\n */\n public function __", "suffix": "xtraAttributes) > 1 ? 'are' : 'is');\n\n parent::__construct($msg, 0, $previous);\n }\n\n /**\n * Get the extra attributes that are not allowed.\n *\n * @return list\n */\n public function getExtraAttributes(): array\n {\n ", "middle": "construct(\n private readonly array $extraAttributes,\n ?\\Throwable $previous = null,\n ) {\n $msg = \\sprintf('Extra attributes are not allowed (\"%s\" %s unknown).', implode('\", \"', $extraAttributes), \\count($e", "meta": {"filepath": "src/Symfony/Component/Serializer/Exception/ExtraAttributesException.php", "language": "php", "file_size": 1042, "cut_index": 513, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Exception;\n\n/**\n * @author Maxime VEBER \n */\nclass MissingConstructorArgumentsException extends RuntimeException\n{\n /**\n * @param string[] $missingArguments\n * @param class-string|null $class\n ", "suffix": "rent::__construct($message, $code, $previous);\n }\n\n /**\n * @return string[]\n */\n public function getMissingConstructorArguments(): array\n {\n return $this->missingArguments;\n }\n\n /**\n * @return class-string|null\n */\n", "middle": " */\n public function __construct(\n string $message,\n int $code = 0,\n ?\\Throwable $previous = null,\n private array $missingArguments = [],\n private ?string $class = null,\n ) {\n pa", "meta": {"filepath": "src/Symfony/Component/Serializer/Exception/MissingConstructorArgumentsException.php", "language": "php", "file_size": 1083, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Exception;\n\n/**\n * @author Christian Flothmann \n */\nclass NotNormalizableValueException extends UnexpectedValueException\n{\n private ?string $currentType = null;\n private ?array $expectedTypes = null;\n private ?string $path = null;\n private", "suffix": " = null, ?array $expectedTypes = null, ?string $path = null, bool $useMessageForUser = false)\n {\n parent::__construct($message, $code, $previous);\n\n $this->currentType = $currentType;\n $this->expectedTypes = $expectedTypes ? array_m", "middle": " bool $useMessageForUser = false;\n\n /**\n * @param list|null $expectedTypes\n */\n public function __construct(string $message = '', int $code = 0, ?\\Throwable $previous = null, ?string $currentType", "meta": {"filepath": "src/Symfony/Component/Serializer/Exception/NotNormalizableValueException.php", "language": "php", "file_size": 2389, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Exception;\n\n/**\n * @author Grégoire Pineau \n */\nclass PartialDenormalizationException extends UnexpectedValueException\n{\n private ?ExtraAttributesException $extraAttributesError = null;\n\n /**\n * @param NotNormalizableValueExceptio", "suffix": "traAttributesErrors = [],\n ) {\n $extraAttributes = [];\n foreach ($extraAttributesErrors as $error) {\n $extraAttributes = array_merge($extraAttributes, $error->getExtraAttributes());\n }\n if ($extraAttributes) {\n ", "middle": "n[] $notNormalizableErrors\n * @param ExtraAttributesException[] $extraAttributesErrors\n */\n public function __construct(\n private mixed $data,\n private array $notNormalizableErrors,\n array $ex", "meta": {"filepath": "src/Symfony/Component/Serializer/Exception/PartialDenormalizationException.php", "language": "php", "file_size": 1891, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context;\n\n/**\n * @author Mathias Arlaud \n */\ntrait ContextBuilderTrait\n{\n /**\n * @var array\n */\n private array $context = [];\n\n protected function with(string $key, mixed $value): sta", "suffix": "\n */\n public function withContext(ContextBuilderInterface|array $context): static\n {\n if ($context instanceof ContextBuilderInterface) {\n $context = $context->toArray();\n }\n\n $instance = new static();\n $inst", "middle": "tic\n {\n $instance = new static();\n $instance->context = array_merge($this->context, [$key => $value]);\n\n return $instance;\n }\n\n /**\n * @param ContextBuilderInterface|array $context", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/ContextBuilderTrait.php", "language": "php", "file_size": 1226, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Serializer;\n\n/**\n * A helper providing autocompletion for available Serializer options.\n *\n * @author Mathias Arlaud with(Serializer::EMPTY_ARRAY_AS_OBJECT, $emptyArrayAsObject);\n }\n\n public function withCollectDenormalizationErrors(?", "middle": "l.com>\n */\nfinal class SerializerContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrait;\n\n /**\n * Configures whether an empty array should be transformed to an\n * object (in JSON: {}) or to a l", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/SerializerContextBuilder.php", "language": "php", "file_size": 1407, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractNormalizer;\n\n/**\n * A helper providing autocompletion for available AbstractNormalizer options.\n *\n * @author Mathias Arlaud \n */\nabstract clas", "suffix": " when we encounter the same object a\n * second time, we consider that a circular reference.\n *\n * You can raise this value for special cases, e.g. in combination with the\n * max depth setting of the object normalizer.\n *\n * Must be ", "middle": "s AbstractNormalizerContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrait;\n\n /**\n * Configures how many loops of circular reference to allow while normalizing.\n *\n * The value 1 means that", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php", "language": "php", "file_size": 6443, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer;\n\n/**\n * A helper providing autocompletion for available AbstractObjectNormalizer options.\n *\n * @author Mathias Arlaud \n */\nabstract class AbstractObjectNormalizerContextBuilder extends AbstractNormalizerContextBuilder\n{\n /**\n * Configures whethe", "suffix": " /**\n * Configures a pattern to keep track of the current depth.\n *\n * Must contain exactly two string placeholders.\n *\n * @throws InvalidArgumentException\n */\n public function withDepthKeyPattern(?string $depthKeyPattern): stat", "middle": "r to respect the max depth metadata on fields.\n */\n public function withEnableMaxDepth(?bool $enableMaxDepth): static\n {\n return $this->with(AbstractObjectNormalizer::ENABLE_MAX_DEPTH, $enableMaxDepth);\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php", "language": "php", "file_size": 5217, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Normalizer\\BackedEnumNormalizer;\n\n/**\n * A helper provid", "suffix": "t;\n\n /**\n * Configures if invalid values are allowed in denormalization.\n * They will be denormalized into `null` values.\n */\n public function withAllowInvalidValues(bool $allowInvalidValues): static\n {\n return $this->with(Backe", "middle": "ing autocompletion for available BackedEnumNormalizer options.\n *\n * @author Nicolas PHILIPPE \n */\nfinal class BackedEnumNormalizerContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrai", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/BackedEnumNormalizerContextBuilder.php", "language": "php", "file_size": 1069, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer;\n\n/**\n * A helper providing autocompletion for available Co", "suffix": " * Configure the instance field of normalized data.\n */\n public function withInstance(mixed $instance): static\n {\n return $this->with(ConstraintViolationListNormalizer::INSTANCE, $instance);\n }\n\n /**\n * Configure the status fiel", "middle": "nstraintViolationList options.\n *\n * @author Mathias Arlaud \n */\nfinal class ConstraintViolationListNormalizerContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrait;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/ConstraintViolationListNormalizerContextBuilder.php", "language": "php", "file_size": 2045, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateIntervalNormalizer;\n\n/**\n * A helper pr", "suffix": "tBuilderTrait;\n\n /**\n * Configures the format of the interval.\n *\n * @see https://php.net/manual/en/dateinterval.format.php\n */\n public function withFormat(?string $format): static\n {\n return $this->with(DateIntervalNormaliz", "middle": "oviding autocompletion for available DateIntervalNormalizer options.\n *\n * @author Mathias Arlaud \n */\nfinal class DateIntervalNormalizerContextBuilder implements ContextBuilderInterface\n{\n use Contex", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/DateIntervalNormalizerContextBuilder.php", "language": "php", "file_size": 1032, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer;\n\n/**", "suffix": " ContextBuilderTrait;\n\n /**\n * Configures the format of the date.\n *\n * @see https://secure.php.net/manual/en/datetime.format.php\n */\n public function withFormat(?string $format): static\n {\n return $this->with(DateTimeNormal", "middle": "\n * A helper providing autocompletion for available DateTimeNormalizer options.\n *\n * @author Mathias Arlaud \n */\nfinal class DateTimeNormalizerContextBuilder implements ContextBuilderInterface\n{\n use", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/DateTimeNormalizerContextBuilder.php", "language": "php", "file_size": 2363, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Normalizer\\FormErrorNormalizer;\n\n/**\n * A helper providing autoco", "suffix": "/**\n * Configures the title of the normalized data.\n */\n public function withTitle(?string $title): static\n {\n return $this->with(FormErrorNormalizer::TITLE, $title);\n }\n\n /**\n * Configures the type of the normalized data.\n ", "middle": "mpletion for available FormErrorNormalizer options.\n *\n * @author Mathias Arlaud \n */\nfinal class FormErrorNormalizerContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrait;\n\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/FormErrorNormalizerContextBuilder.php", "language": "php", "file_size": 1352, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer;\n\n/**\n * A helper providing autocomp", "suffix": " * Configure the title field of normalized data.\n */\n public function withTitle(?string $title): static\n {\n return $this->with(ProblemNormalizer::TITLE, $title);\n }\n\n /**\n * Configure the type field of normalized data.\n */\n", "middle": "letion for available ProblemNormalizer options.\n *\n * @author Mathias Arlaud \n */\nfinal class ProblemNormalizerContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrait;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/ProblemNormalizerContextBuilder.php", "language": "php", "file_size": 1358, "cut_index": 524, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer;\n\n/**\n * A helper providing autocompletion for available PropertyNormalizer options.\n *\n * @author Mathias Arlaud \n */\nfinal class PropertyNormalizerContextBuilder extends ", "suffix": " * Configures whether fields should be output based on visibility.\n */\n public function withNormalizeVisibility(int $normalizeVisibility): static\n {\n return $this->with(PropertyNormalizer::NORMALIZE_VISIBILITY, $normalizeVisibility);\n ", "middle": "AbstractObjectNormalizerContextBuilder\n{\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/PropertyNormalizerContextBuilder.php", "language": "php", "file_size": 871, "cut_index": 559, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Seriali", "suffix": "ilderInterface\n{\n use ContextBuilderTrait;\n\n /**\n * Configures the uuid format for normalization.\n *\n * @throws InvalidArgumentException\n */\n public function withNormalizationFormat(?string $normalizationFormat): static\n {\n ", "middle": "zer\\Normalizer\\UidNormalizer;\n\n/**\n * A helper providing autocompletion for available UidNormalizer options.\n *\n * @author Mathias Arlaud \n */\nfinal class UidNormalizerContextBuilder implements ContextBu", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/UidNormalizerContextBuilder.php", "language": "php", "file_size": 1366, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Normalizer;\n\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidPropertyPathException;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\Cont", "suffix": "zer options.\n *\n * @author Mathias Arlaud \n */\nfinal class UnwrappingDenormalizerContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrait;\n\n /**\n * Configures the path of wrapped data during denormali", "middle": "extBuilderTrait;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Normalizer\\UnwrappingDenormalizer;\n\n/**\n * A helper providing autocompletion for available UnwrappingDenormali", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Normalizer/UnwrappingDenormalizerContextBuilder.php", "language": "php", "file_size": 1724, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Encoder\\CsvEncoder;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * A helper providing autocompletion for available CsvEncoder op", "suffix": " *\n * Must be a single character.\n *\n * @throws InvalidArgumentException\n */\n public function withDelimiter(?string $delimiter): static\n {\n if (null !== $delimiter && 1 !== \\strlen($delimiter)) {\n throw new Inval", "middle": "tions.\n *\n * @author Mathias Arlaud \n */\nfinal class CsvEncoderContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrait;\n\n /**\n * Configures the column delimiter character.\n", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Encoder/CsvEncoderContextBuilder.php", "language": "php", "file_size": 3488, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zulip\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Zulip\\ZulipOptions;\n\nfinal class ZulipOptionsTest extends TestCase\n{\n public function testZulipOptions()\n {\n $options = new ZulipOptions('Test Topic', 'user@example.com');\n\n $th", "suffix": "unction testZulipOptionsWithNullValues()\n {\n $options = new ZulipOptions();\n\n $this->assertSame([\n 'topic' => null,\n 'recipient' => null,\n ], $options->toArray());\n\n $this->assertNull($options->getRecipi", "middle": "is->assertSame([\n 'topic' => 'Test Topic',\n 'recipient' => 'user@example.com',\n ], $options->toArray());\n\n $this->assertSame('user@example.com', $options->getRecipientId());\n }\n\n public f", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zulip/Tests/ZulipOptionsTest.php", "language": "php", "file_size": 2496, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsc;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier", "suffix": "nt\\Exception\\ExceptionInterface as HttpExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface as HttpTransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Valentin Nazarov \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsc;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Valentin Nazarov getSupportedSchemes());\n }\n\n $login = $dsn->getUser();\n $password = $dsn->getPassword();\n $from = $dsn->getRequiredOption('from');\n $host = 'default' === $dsn->getHo", "middle": "tonmail.com>\n */\nfinal class SmscTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SmscTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('smsc' !== $scheme) {\n th", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsc/SmscTransportFactory.php", "language": "php", "file_size": 1245, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsense;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Valentin Barbu getSupportedSchemes());\n }\n\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n $from = $dsn->getRequiredOption('from');\n $authToken = $this->getUser($dsn);\n $port = $dsn->g", "middle": "l.com>\n */\nfinal class SmsenseTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SmsenseTransport\n {\n if ('smsense' !== $dsn->getScheme()) {\n throw new UnsupportedScheme", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsense/SmsenseTransportFactory.php", "language": "php", "file_size": 1239, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsense\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsense\\SmsenseTransport;\nuse Symfony\\Component\\Notifier\\Exception", "suffix": ";\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass SmsenseTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $client = null): Sm", "middle": "\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsense/Tests/SmsenseTransportTest.php", "language": "php", "file_size": 3496, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SpotHit;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author James Hemery \n */\nfinal c", "suffix": "rtedSchemeException($dsn, 'spothit', $this->getSupportedSchemes());\n }\n\n $token = $this->getUser($dsn);\n $from = $dsn->getOption('from');\n $smsLong = filter_var($dsn->getOption('smslong', '-'), \\FILTER_VALIDATE_BOOL, \\FILTER_NUL", "middle": "lass SpotHitTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SpotHitTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('spothit' !== $scheme) {\n throw new Unsuppo", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SpotHit/SpotHitTransportFactory.php", "language": "php", "file_size": 1529, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SpotHit\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\SpotHit\\SpotHitTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nfinal class SpotHitTransportFactoryTe", "suffix": "ateProvider(): iterable\n {\n yield [\n 'spothit://spot-hit.fr',\n 'spothit://api_token@default',\n ];\n yield [\n 'spothit://spot-hit.fr?from=MyCompany',\n 'spothit://api_token@default?from=MyCom", "middle": "st extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): SpotHitTransportFactory\n {\n return new SpotHitTransportFactory();\n }\n\n public static function cre", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/SpotHitTransportFactoryTest.php", "language": "php", "file_size": 1887, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsmode;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author gnito-org \n */\nfinal class SmsmodeOptions implements MessageOptionsInterface\n{\n public function __construct(\n ", "suffix": "{\n $this->options['refClient'] = $refClient;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function sentDate(string $sentDate): static\n {\n $this->options['sentDate'] = $sentDate;\n\n return $this;\n }", "middle": " private array $options = [],\n ) {\n }\n\n public function getRecipientId(): ?string\n {\n return null;\n }\n\n /**\n * @return $this\n */\n public function refClient(string $refClient): static\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsmode/SmsmodeOptions.php", "language": "php", "file_size": 1084, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsmode\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Smsmode\\SmsmodeTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test\\Mi", "suffix": "deTransportFactory\n {\n return new SmsmodeTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield ['smsmode://host.test?from=test', 'smsmode://ApiKey@host.test?from=test'];\n }\n\n public static func", "middle": "ssingRequiredOptionTestTrait;\n\nfinal class SmsmodeTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): Smsmo", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsmode/Tests/SmsmodeTransportFactoryTest.php", "language": "php", "file_size": 1630, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\nuse Symfony\\Component\\Notifier\\Transport\\TransportFactoryInterface;\nuse Symfony\\Compone", "suffix": ", 1: string}>\n */\n abstract public static function supportsProvider(): iterable;\n\n /**\n * @return iterable\n */\n abstract public static function createProvider(): iterable;\n\n /**\n ", "middle": "nt\\Notifier\\Transport\\TransportInterface;\n\nabstract class AbstractTransportFactoryTestCase extends TestCase\n{\n abstract public function createFactory(): TransportFactoryInterface;\n\n /**\n * @return iterable\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsmode\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsmode\\SmsmodeOptions;\n\nclass SmsmodeOptionsTest extends TestCase\n{\n public function testSmsmodeOptions()\n {\n $smsmodeOptions = (n", "suffix": "ons())\n ->refClient('test_ref_client')\n ->sentDate('test_sent_date');\n\n self::assertSame([\n 'refClient' => 'test_ref_client',\n 'sentDate' => 'test_sent_date',\n ], $smsmodeOptions->toArray());\n }\n", "middle": "ew SmsmodeOpti", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsmode/Tests/SmsmodeOptionsTest.php", "language": "php", "file_size": 784, "cut_index": 512, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Transport\\TransportInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n *", "suffix": "USTOM_PORT = 42;\n\n abstract public static function createTransport(?HttpClientInterface $client = null): TransportInterface;\n\n /**\n * @return iterable\n */\n abstract public static function toStringPr", "middle": " A test case to ease testing a Notifier transport.\n *\n * @author Oskar Stark \n */\nabstract class TransportTestCase extends TestCase\n{\n protected const CUSTOM_HOST = 'host.test';\n protected const C", "meta": {"filepath": "src/Symfony/Component/Notifier/Test/TransportTestCase.php", "language": "php", "file_size": 3891, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Notifier\\Event\\NotificationEvents;\n\n/**\n * @author Smaïne Milianni \n */\nfinal class NotificationCount extends Constraint\n{\n public function __const", "suffix": ", $this->transport ? $this->transport.' ' : '', $this->queued ? 'queued' : 'sent', $this->expectedValue);\n }\n\n /**\n * @param NotificationEvents $events\n */\n protected function matches($events): bool\n {\n return $this->expectedValu", "middle": "ruct(\n private int $expectedValue,\n private ?string $transport = null,\n private bool $queued = false,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('%shas %s \"%d\" emails'", "meta": {"filepath": "src/Symfony/Component/Notifier/Test/Constraint/NotificationCount.php", "language": "php", "file_size": 1738, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\n\n/**\n * @author Smaïne Milianni \n */\nfinal class NotificationSubjectContains extends Constrai", "suffix": "essageInterface $message\n */\n protected function matches($message): bool\n {\n return false !== mb_strpos($message->getSubject(), $this->expectedText);\n }\n\n /**\n * @param MessageInterface $message\n */\n protected function fai", "middle": "nt\n{\n public function __construct(\n private string $expectedText,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('contains \"%s\"', $this->expectedText);\n }\n\n /**\n * @param M", "meta": {"filepath": "src/Symfony/Component/Notifier/Test/Constraint/NotificationSubjectContains.php", "language": "php", "file_size": 1111, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Redlink;\n\nuse Symfony\\Component\\Notifier\\Message\\MessageOptionsInterface;\n\n/**\n * @author Mateusz Żyła \n */\nfinal class RedlinkOptions implements MessageOptionsInterface\n{\n public function __construct(\n private ar", "suffix": "ull;\n }\n\n /**\n * @return $this\n */\n public function validity(int $validity): static\n {\n $this->options['validity'] = $validity;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function scheduleTime(i", "middle": "ray $options = [],\n ) {\n }\n\n public function toArray(): array\n {\n return array_filter($this->options);\n }\n\n public function getRecipientId(): ?string\n {\n return $this->options['externalId'] ?? n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Redlink/RedlinkOptions.php", "language": "php", "file_size": 1846, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zulip;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Mohammad Emran Hasan getSupportedSchemes());\n }\n\n $email = $this->getUser($dsn);\n $token = $this->getPassword($dsn);\n $channel = $dsn->getRequiredOption('channel');\n $host = $dsn->getHost();", "middle": "com>\n */\nfinal class ZulipTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): ZulipTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('zulip' !== $scheme) {\n throw n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zulip/ZulipTransportFactory.php", "language": "php", "file_size": 1272, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsapi;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author Marcin Szepczynski getSupportedSchemes());\n }\n\n $authToken = $this->getUser($dsn);\n $from = $dsn->getOption('from', '');\n $host = 'default' === $dsn->getHost() ? null : $dsn->getHost();\n ", "middle": "il.com>\n */\nfinal class SmsapiTransportFactory extends AbstractTransportFactory\n{\n public function create(Dsn $dsn): SmsapiTransport\n {\n $scheme = $dsn->getScheme();\n\n if ('smsapi' !== $scheme) {\n t", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransportFactory.php", "language": "php", "file_size": 1392, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Zulip\\Tests;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Notifier\\Bridge\\Zulip\\ZulipTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Comp", "suffix": "ic function createTransport(?HttpClientInterface $client = null): ZulipTransport\n {\n return (new ZulipTransport('testEmail', 'testToken', 'testChannel', $client ?? new MockHttpClient()))->setHost('test.host');\n }\n\n public static function to", "middle": "onent\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class ZulipTransportTest extends TransportTestCase\n{\n public stat", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Zulip/Tests/ZulipTransportTest.php", "language": "php", "file_size": 1425, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsense\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Smsense\\SmsenseTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\n\nclass SmsenseTransportFa", "suffix": "ion createProvider(): iterable\n {\n yield [\n 'smsense://host.test?from=Symfony',\n 'smsense://api_token@host.test?from=Symfony',\n ];\n }\n\n public static function supportsProvider(): iterable\n {\n yield [tr", "middle": "ctoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public function createFactory(): SmsenseTransportFactory\n {\n return new SmsenseTransportFactory();\n }\n\n public static funct", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsense/Tests/SmsenseTransportFactoryTest.php", "language": "php", "file_size": 1349, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SpotHit;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notif", "suffix": "erface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\RedirectionExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ServerExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Excep", "middle": "ier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInt", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SpotHit/SpotHitTransport.php", "language": "php", "file_size": 4287, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsmode;\n\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\n/**\n * @author gnito-org getSupportedSchemes());\n }\n\n $apiKey = $this->getUser($dsn);\n $from = $dsn->getRequiredOption('fro", "middle": "o-org>\n */\nfinal class SmsmodeTransportFactory extends AbstractTransportFactory\n{\n private const TRANSPORT_SCHEME = 'smsmode';\n\n public function create(Dsn $dsn): SmsmodeTransport\n {\n $scheme = $dsn->getScheme();\n", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsmode/SmsmodeTransportFactory.php", "language": "php", "file_size": 1355, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Notifier\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\ntrait IncompleteDsnTestTrait\n{\n /**\n * @return iterablecreateFactory();\n\n $dsn = new Dsn($dsn);\n\n $this->expectException(IncompleteDsnException::class);\n if (null !== $message) {\n $th", "middle": "ring, 1?: string|null}>\n */\n abstract public static function incompleteDsnProvider(): iterable;\n\n /**\n * @dataProvider incompleteDsnProvider\n */\n #[DataProvider('incompleteDsnProvider')]\n public function t", "meta": {"filepath": "src/Symfony/Component/Notifier/Test/IncompleteDsnTestTrait.php", "language": "php", "file_size": 1089, "cut_index": 515, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Notifier\\Event\\MessageEvent;\n\n/**\n * @author Smaïne Milianni \n */\nfinal class NotificationIsQueued extends Constraint\n{\n public function toString(): string\n ", "suffix": " * @param MessageEvent $event\n */\n protected function matches($event): bool\n {\n return $event->isQueued();\n }\n\n /**\n * @param MessageEvent $event\n */\n protected function failureDescription($event): string\n {\n ret", "middle": " {\n return 'is queued';\n }\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Notifier/Test/Constraint/NotificationIsQueued.php", "language": "php", "file_size": 907, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\TurboSms\\Tests;\n\nuse Symfony\\Component\\Notifier\\Bridge\\TurboSms\\TurboSmsTransportFactory;\nuse Symfony\\Component\\Notifier\\Test\\AbstractTransportFactoryTestCase;\nuse Symfony\\Component\\Notifier\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Notifier\\Test", "suffix": "urboSmsTransportFactory\n {\n return new TurboSmsTransportFactory();\n }\n\n public static function createProvider(): iterable\n {\n yield [\n 'turbosms://host.test?from=acme',\n 'turbosms://accountSid:authToken@host.", "middle": "\\MissingRequiredOptionTestTrait;\n\nfinal class TurboSmsTransportFactoryTest extends AbstractTransportFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n use MissingRequiredOptionTestTrait;\n\n public function createFactory(): T", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/TurboSmsTransportFactoryTest.php", "language": "php", "file_size": 1900, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsense;\n\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony\\Component\\Notif", "suffix": "ny\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Valentin Barbu \n */\nfinal class SmsenseTransport extends AbstractTransport\n{\n protected const HOST = 'rest.smsense.com';\n\n public function __construct(\n #[\\Sensiti", "middle": "ier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfo", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsense/SmsenseTransport.php", "language": "php", "file_size": 2922, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsmode;\n\nuse Symfony\\Component\\Notifier\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Exception\\UnsupportedMessageTypeException;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Message\\SentMessage;\nuse Symfony", "suffix": "rface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author gnito-org \n */\nfinal class SmsmodeTransport extends AbstractTransport\n{\n protected const HOST = 'rest.smsmode.com';\n\n public function __constru", "middle": "\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransport;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInte", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsmode/SmsmodeTransport.php", "language": "php", "file_size": 3522, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Notifier\\Exception\\MissingRequiredOptionException;\nuse Symfony\\Component\\Notifier\\Transport\\Dsn;\n\ntrait MissingRequiredOptionTestTrait\n{\n /**\n * @return iterabl", "suffix": "tionProvider')]\n public function testMissingRequiredOptionException(string $dsn, ?string $message = null)\n {\n $factory = $this->createFactory();\n\n $dsn = new Dsn($dsn);\n\n $this->expectException(MissingRequiredOptionException::cla", "middle": "e\n */\n abstract public static function missingRequiredOptionProvider(): iterable;\n\n /**\n * @dataProvider missingRequiredOptionProvider\n */\n #[DataProvider('missingRequiredOp", "meta": {"filepath": "src/Symfony/Component/Notifier/Test/MissingRequiredOptionTestTrait.php", "language": "php", "file_size": 1145, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\RingCentral\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Notifier\\Bridge\\RingCentral\\RingCentralOptions;\n\nclass RingCentralOptionsTest extends TestCase\n{\n public function testRingCentralOptions()\n {\n $ri", "suffix": "ry' => [\n 'id' => 'test_country_id',\n 'isoCode' => 'test_country_iso_code',\n 'name' => 'test_country_name',\n 'uri' => 'test_country_uri',\n 'callingCode' => 'test_country_calling_cod", "middle": "ngCentralOptions = (new RingCentralOptions())\n ->country('test_country_id', 'test_country_iso_code', 'test_country_name', 'test_country_uri', 'test_country_calling_code');\n\n self::assertSame([\n 'count", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/Tests/RingCentralOptionsTest.php", "language": "php", "file_size": 1071, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\SpotHit\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\SpotHit\\SpotHitTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMe", "suffix": "estCase\n{\n public static function createTransport(?HttpClientInterface $client = null): SpotHitTransport\n {\n return (new SpotHitTransport('api_token', 'MyCompany', $client ?? new MockHttpClient()))->setHost('host.test');\n }\n\n public stat", "middle": "ssage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Transport\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nfinal class SpotHitTransportTest extends TransportT", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/SpotHitTransportTest.php", "language": "php", "file_size": 4432, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Notifier\\Bridge\\Smsmode\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsmode\\SmsmodeOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsmode\\SmsmodeTransport;\nuse Symfony\\Component\\Notifier\\Excepti", "suffix": "port\\DummyMessage;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nfinal class SmsmodeTransportTest extends TransportTestCase\n{\n public static function createTransport(?HttpClientInterface $clie", "middle": "on\\InvalidArgumentException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Test\\TransportTestCase;\nuse Symfony\\Component\\Notifier\\Tests\\Trans", "meta": {"filepath": "src/Symfony/Component/Notifier/Bridge/Smsmode/Tests/SmsmodeTransportTest.php", "language": "php", "file_size": 4307, "cut_index": 614, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Attribute;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Kévin Dunglas \n */\n#[\\Attribute(\\Attribute::TARGET_METHOD | \\Attribute::TARGET_PROPERTY)]\nclass MaxDepth\n{\n /**\n * @param i", "suffix": "\n public function __construct(\n public readonly int $maxDepth,\n ) {\n if ($maxDepth <= 0) {\n throw new InvalidArgumentException(\\sprintf('Parameter given to \"%s\" must be a positive integer.', static::class));\n }\n }\n}", "middle": "nt $maxDepth The maximum serialization depth\n */", "meta": {"filepath": "src/Symfony/Component/Serializer/Attribute/MaxDepth.php", "language": "php", "file_size": 833, "cut_index": 523, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\SerializerAwareInterface;\nuse Symfony\\Component\\Serializer\\SerializerAwareTrait;\n\n/**\n * @author Jordi Boggiano \n */\nfinal class CustomNormalizer implements NormalizerInterface, DenormalizerInterface, SerializerAwareInte", "suffix": "leInterface::class => true,\n ];\n }\n\n public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\\ArrayObject|null\n {\n return $data->normalize($this->serializer, $format, $context)", "middle": "rface\n{\n use ObjectToPopulateTrait;\n use SerializerAwareTrait;\n\n public function getSupportedTypes(?string $format): array\n {\n return [\n NormalizableInterface::class => true,\n Denormalizab", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/CustomNormalizer.php", "language": "php", "file_size": 2278, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\HttpFoundation\\File\\File;\nuse Symfony\\Component\\Mime\\MimeTypeGuesserInterface;\nuse Symfony\\Component\\Mime\\MimeTypes;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\n\n/**\n * Normalizes an {@see \\SplFileInfo} object to a data URI.\n * Denormalizes a data URI to a {@see \\SplFileObject} object.\n *\n * @author Kévi", "suffix": "rue,\n File::class => true,\n ];\n\n private readonly ?MimeTypeGuesserInterface $mimeTypeGuesser;\n\n public function __construct(?MimeTypeGuesserInterface $mimeTypeGuesser = null)\n {\n if (!$mimeTypeGuesser && class_exists(MimeTypes::cl", "middle": "n Dunglas \n */\nfinal class DataUriNormalizer implements NormalizerInterface, DenormalizerInterface\n{\n private const SUPPORTED_TYPES = [\n \\SplFileInfo::class => true,\n \\SplFileObject::class => t", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/DataUriNormalizer.php", "language": "php", "file_size": 5107, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\n\n/**\n * Normalizes an instance of {@see \\DateInterval} to an interval string.\n * Denormalizes an interval string to an instance of {@see \\DateInterval}.\n *\n * @author Jérôme Parment", "suffix": "T_KEY => '%rP%yY%mM%dDT%hH%iM%sS',\n ];\n\n public function __construct(array $defaultContext = [])\n {\n $this->defaultContext = array_merge($this->defaultContext, $defaultContext);\n }\n\n public function getSupportedTypes(?string $format):", "middle": "ier \n */\nfinal class DateIntervalNormalizer implements NormalizerInterface, DenormalizerInterface\n{\n public const FORMAT_KEY = 'dateinterval_format';\n\n private array $defaultContext = [\n self::FORMA", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/DateIntervalNormalizer.php", "language": "php", "file_size": 4434, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\n\n/**\n * Normalizes an object implementing the {@see \\DateTimeInterface} to a date string.\n * Denormalizes a date string to an instance of {@see \\DateTime} or {@see \\DateTimeImmutable}.\n *\n * @author Kévin Dunglas \n */\nfinal class DateTimeNormalizer implements Norm", "suffix": "tetime_force_timezone';\n\n private array $defaultContext = [\n self::FORMAT_KEY => \\DateTimeInterface::RFC3339,\n self::TIMEZONE_KEY => null,\n self::CAST_KEY => null,\n self::FORCE_TIMEZONE_KEY => false,\n ];\n\n private const", "middle": "alizerInterface, DenormalizerInterface\n{\n public const FORMAT_KEY = 'datetime_format';\n public const TIMEZONE_KEY = 'datetime_timezone';\n public const CAST_KEY = 'datetime_cast';\n public const FORCE_TIMEZONE_KEY = 'da", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/DateTimeNormalizer.php", "language": "php", "file_size": 7406, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\n\n/**\n * Normalizes a {@see \\DateTimeZone} object to a timezone string.\n *\n * @author Jérôme Desjardins \n */\nfi", "suffix": " }\n\n /**\n * @throws InvalidArgumentException\n */\n public function normalize(mixed $data, ?string $format = null, array $context = []): string\n {\n if (!$data instanceof \\DateTimeZone) {\n throw new InvalidArgumentException", "middle": "nal class DateTimeZoneNormalizer implements NormalizerInterface, DenormalizerInterface\n{\n public function getSupportedTypes(?string $format): array\n {\n return [\n \\DateTimeZone::class => true,\n ];\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/DateTimeZoneNormalizer.php", "language": "php", "file_size": 2296, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\n/**\n * Defines the most basic interface a class must implement to be denormalizable.\n *\n * If a denormalizer is registered for the class and it doesn't implement\n * the Denormalizable interfaces, the normalizer will be used instead\n *\n * @author J", "suffix": "d denormalize\n * recursively all child objects of the implementer.\n *\n * @param DenormalizerInterface $denormalizer The denormalizer is given so that you\n * can use it to denormaliz", "middle": "ordi Boggiano \n */\ninterface DenormalizableInterface\n{\n /**\n * Denormalizes the object back from an array of scalars|arrays.\n *\n * It is important to understand that the denormalize() call shoul", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php", "language": "php", "file_size": 1631, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Serializer\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Serializer\\Exception\\ExtraAttributesException;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\LogicExceptio", "suffix": "*\n * Whether to collect all denormalization errors or to stop at first error.\n */\n public const COLLECT_DENORMALIZATION_ERRORS = 'collect_denormalization_errors';\n\n /**\n * Whether to collect all extra attributes errors or to stop at first", "middle": "n;\nuse Symfony\\Component\\Serializer\\Exception\\RuntimeException;\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException;\n\n/**\n * @author Jordi Boggiano \n */\ninterface DenormalizerInterface\n{\n /*", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php", "language": "php", "file_size": 3852, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Form\\FormInterface;\n\n/**\n * Normalizes invalid Form instances.\n */\nfinal class FormErrorNormalizer implements NormalizerInterface\n{\n public const TITLE = 'title';\n public const TYPE = 'type';\n public const CODE = 'status_code';\n\n public fu", "suffix": "//symfony.com/errors/form',\n 'code' => $context[self::CODE] ?? null,\n 'errors' => $this->convertFormErrorsToArray($data),\n ];\n\n if (0 !== \\count($data->all())) {\n $error['children'] = $this->convertFormChildre", "middle": "nction normalize(mixed $data, ?string $format = null, array $context = []): array\n {\n $error = [\n 'title' => $context[self::TITLE] ?? 'Validation Failed',\n 'type' => $context[self::TYPE] ?? 'https:", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/FormErrorNormalizer.php", "language": "php", "file_size": 2290, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\PropertyAccess\\Exception\\UninitializedPropertyException;\nuse Symfony\\Component\\Serializer\\Annotation\\Ignore as LegacyIgnore;\nuse Symfony\\Component\\Serializer\\Attribute\\Ignore;\n\n/**\n * Converts between objects with getter and setter methods and arrays.\n *\n * The normalization process looks at all public methods and calls the ones\n * which have a name starting with get and take no parameters. The result", "suffix": "onstructor of the given class to see\n * if any of the parameters have the same name as one of the properties. The\n * constructor is then called with all parameters or an exception is thrown if\n * any required parameters were not present as properties. Then", "middle": " is a\n * map from property names (method name stripped of the get prefix and converted\n * to lower case) to property values. Property values are normalized through the\n * serializer.\n *\n * The denormalization first looks at the c", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php", "language": "php", "file_size": 8691, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\n\n/**\n * A normalizer that uses an objects own JsonSerializable implementation.\n *\n * @author Fred Cox \n */\nfinal class JsonSeri", "suffix": "data, $context)) {\n return $this->handleCircularReference($data, $format, $context);\n }\n\n if (!$data instanceof \\JsonSerializable) {\n throw new InvalidArgumentException(\\sprintf('The object must implement \"%s\".', \\JsonSe", "middle": "alizableNormalizer extends AbstractNormalizer\n{\n public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\\ArrayObject|null\n {\n if ($this->isCircularReference($", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/JsonSerializableNormalizer.php", "language": "php", "file_size": 2069, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Header\\HeaderInterface;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Header\\UnstructuredHeader;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\Part\\AbstractPart;\nuse Symfony\\Component\\Mime\\RawMessage;\nuse Symfony\\Compone", "suffix": "yNormalizer instance for normalization\n * of all data objects composing a Message.\n *\n * Emails using resources for any parts are not serializable.\n */\nfinal class MimeMessageNormalizer implements NormalizerInterface, DenormalizerInterface, SerializerAware", "middle": "nt\\Serializer\\Exception\\LogicException;\nuse Symfony\\Component\\Serializer\\SerializerAwareInterface;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\n\n/**\n * Normalize Mime message classes.\n *\n * It forces the use of a Propert", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/MimeMessageNormalizer.php", "language": "php", "file_size": 4568, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\n/**\n * Defines the most basic interface a class must implement to be normalizable.\n *\n * If a normalizer is registered for the class and it doesn't implement\n * the Normalizable interfaces, the normalizer will be used instead.\n *\n * @", "suffix": "ormalize\n * recursively all child objects of the implementer.\n *\n * @param NormalizerInterface $normalizer The normalizer is given so that you\n * can use it to normalize objects contained within this", "middle": "author Jordi Boggiano \n */\ninterface NormalizableInterface\n{\n /**\n * Normalizes the object into an array of scalars|arrays.\n *\n * It is important to understand that the normalize() call should n", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php", "language": "php", "file_size": 1461, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\CircularReferenceException;\nuse Symfony\\Component\\Serializer\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\n\n/**\n * @au", "suffix": "ull $format Format the normalization result will be encoded as\n * @param array $context Context options for the normalizer\n *\n * @return mixed[]|string|int|float|bool|\\ArrayObject|null \\ArrayObject is ", "middle": "thor Jordi Boggiano \n */\ninterface NormalizerInterface\n{\n /**\n * Normalizes data into a set of arrays/scalars.\n *\n * @param mixed $data Data to normalize\n * @param string|n", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php", "language": "php", "file_size": 2953, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse BcMath\\Number;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\n\n/**\n * Normalizes {@see Number} and {@see \\GMP} to a string.\n */\nfinal class NumberNormalizer implements Norma", "suffix": "n normalize(mixed $data, ?string $format = null, array $context = []): string\n {\n if (!$data instanceof Number && !$data instanceof \\GMP) {\n throw new InvalidArgumentException(\\sprintf('The data must be an instance of \"%s\" or \"%s\".', N", "middle": "lizerInterface, DenormalizerInterface\n{\n public function getSupportedTypes(?string $format): array\n {\n return [\n Number::class => true,\n \\GMP::class => true,\n ];\n }\n\n public functio", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/NumberNormalizer.php", "language": "php", "file_size": 2911, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidArgumentException as PropertyAccessInvalidArgumentException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidTypeException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\Reflecti", "suffix": "izer\\Attribute\\Ignore;\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorResolverInterface;\nuse Symfony\\Component\\", "middle": "onExtractor;\nuse Symfony\\Component\\PropertyInfo\\PropertyInfoExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyWriteInfo;\nuse Symfony\\Component\\Serial", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php", "language": "php", "file_size": 8593, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\ntrait ObjectToPopulateTrait\n{\n /**\n * Extract the `object_to_populate` field from the context if it exists\n * and is an instance of the provided $class.\n *\n * @param string $class The class the objec", "suffix": "ToPopulate(string $class, array $context, ?string $key = null): ?object\n {\n $key ??= AbstractNormalizer::OBJECT_TO_POPULATE;\n\n if (isset($context[$key]) && \\is_object($context[$key]) && $context[$key] instanceof $class) {\n retur", "middle": "t should be\n * @param string|null $key They in which to look for the object to populate.\n * Keeps backwards compatibility with `AbstractNormalizer`.\n */\n protected function extractObject", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/ObjectToPopulateTrait.php", "language": "php", "file_size": 1056, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpExceptionInterface;\nuse Symfony\\Component\\Messenger\\Exception\\ValidationFailedException as MessageValidationFailedException;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\PartialDenormalizationException;\nuse Symfony\\Component\\Serializer\\SerializerAwa", "suffix": "o the API Problem spec (RFC 7807).\n *\n * @see https://tools.ietf.org/html/rfc7807\n *\n * @author Kévin Dunglas \n * @author Yonel Ceruto \n */\nclass ProblemNormalizer implements NormalizerInterface, SerializerAwareInt", "middle": "reInterface;\nuse Symfony\\Component\\Serializer\\SerializerAwareTrait;\nuse Symfony\\Component\\Validator\\Exception\\ValidationFailedException;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * Normalizes errors according t", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php", "language": "php", "file_size": 5464, "cut_index": 716, "middle_length": 229}} {"prefix": "rtyTypeExtractorInterface;\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorResolverInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface;\nuse Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface;\n\n/**\n * Converts between objects and arrays by mapping properties.\n *\n * The normalization process looks for all the object", "suffix": "ass to see\n * if any of the parameters have the same name as one of the properties. The\n * constructor is then called with all parameters or an exception is thrown if\n * any required parameters were not present as properties. Then the denormalizer\n * walks", "middle": "'s properties (public and private).\n * The result is a map from property names to property values. Property values\n * are normalized through the serializer.\n *\n * The denormalization first looks at the constructor of the given cl", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php", "language": "php", "file_size": 9257, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInt", "suffix": "LE_KEY => null,\n ];\n\n public function __construct(\n private readonly TranslatorInterface $translator,\n array $defaultContext = [],\n ) {\n $this->defaultContext = array_merge($this->defaultContext, $defaultContext);\n }\n\n /", "middle": "erface;\n\nfinal class TranslatableNormalizer implements NormalizerInterface\n{\n public const NORMALIZATION_LOCALE_KEY = 'translatable_normalization_locale';\n\n private array $defaultContext = [\n self::NORMALIZATION_LOCA", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/TranslatableNormalizer.php", "language": "php", "file_size": 1896, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Uid\\AbstractUid;\n\nfinal class UidNormalizer implements NormalizerInterface, DenormalizerInterface\n{\n public const NORMALIZATION_FORMAT_KEY = 'uid_normalization_format", "suffix": "'rfc4122';\n public const NORMALIZATION_FORMAT_RFC9562 = self::NORMALIZATION_FORMAT_RFC4122; // RFC 9562 obsoleted RFC 4122 but the format is the same\n\n public const NORMALIZATION_FORMATS = [\n self::NORMALIZATION_FORMAT_CANONICAL,\n self:", "middle": "';\n\n public const NORMALIZATION_FORMAT_CANONICAL = 'canonical';\n public const NORMALIZATION_FORMAT_BASE58 = 'base58';\n public const NORMALIZATION_FORMAT_BASE32 = 'base32';\n public const NORMALIZATION_FORMAT_RFC4122 = ", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/UidNormalizer.php", "language": "php", "file_size": 3229, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\nuse Symfony\\Component\\Serializer\\SerializerAwareInterface;\nuse Symfony\\Component\\Serializer\\Seria", "suffix": "TH = 'unwrap_path';\n\n private readonly PropertyAccessorInterface $propertyAccessor;\n\n public function __construct(?PropertyAccessorInterface $propertyAccessor = null)\n {\n $this->propertyAccessor = $propertyAccessor ?? PropertyAccess::create", "middle": "lizerAwareTrait;\n\n/**\n * @author Eduard Bulava \n */\nfinal class UnwrappingDenormalizer implements DenormalizerInterface, SerializerAwareInterface\n{\n use SerializerAwareTrait;\n\n public const UNWRAP_PA", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/UnwrappingDenormalizer.php", "language": "php", "file_size": 2141, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Helper\\Dumper;\nuse Symfony\\Component\\Console\\Helper\\Table;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\", "suffix": " command to debug Serializer information.\n *\n * @author Loïc Frémont \n */\n#[AsCommand(name: 'debug:serializer', description: 'Display serialization information for classes')]\nclass DebugCommand extends Command\n{\n public function __", "middle": "OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface;\n\n/**\n * A console", "meta": {"filepath": "src/Symfony/Component/Serializer/Command/DebugCommand.php", "language": "php", "file_size": 4113, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\PhpDocExtractor;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer;\n\nclass DeserializeNestedArrayOfObjectsTest extends TestCase\n{\n ", "suffix": "aProvider('provider')]\n public function testPropertyPhpDoc($class)\n {\n $json = <<\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\n\n/**\n * @author Mathias Arlaud \n */\nclass Con", "suffix": "textBuilder->withContext(['foo' => 'bar'])->toArray();\n\n $this->assertSame(['foo' => 'bar'], $context);\n\n $withContextBuilderObject = $contextBuilder->withContext($contextBuilder->withContext(['foo' => 'bar']))->toArray();\n\n $this->ass", "middle": "textBuilderTraitTest extends TestCase\n{\n public function testWithContext()\n {\n $contextBuilder = new class implements ContextBuilderInterface {\n use ContextBuilderTrait;\n };\n\n $context = $con", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/ContextBuilderTraitTest.php", "language": "php", "file_size": 1460, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\SerializerContextBuilder;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Serializer;\n\n/**\n * @aut", "suffix": "er = new SerializerContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(array $values)\n {\n $context = $this->contextBuilder\n ->wi", "middle": "hor Mathias Arlaud \n */\nclass SerializerContextBuilderTest extends TestCase\n{\n private SerializerContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {\n $this->contextBuild", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/SerializerContextBuilderTest.php", "language": "php", "file_size": 2072, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\AbstractNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractNormalizer;\n\n/**\n * @aut", "suffix": "is->contextBuilder = new class extends AbstractNormalizerContextBuilder {};\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(array $values)\n {\n $context =", "middle": "hor Mathias Arlaud \n */\nclass AbstractNormalizerContextBuilderTest extends TestCase\n{\n private AbstractNormalizerContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {\n $th", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/AbstractNormalizerContextBuilderTest.php", "language": "php", "file_size": 4042, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\AbstractObjectNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer;\n", "suffix": ": void\n {\n $this->contextBuilder = new class extends AbstractObjectNormalizerContextBuilder {};\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(array $va", "middle": "\n/**\n * @author Mathias Arlaud \n */\nclass AbstractObjectNormalizerContextBuilderTest extends TestCase\n{\n private AbstractObjectNormalizerContextBuilder $contextBuilder;\n\n protected function setUp()", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/AbstractObjectNormalizerContextBuilderTest.php", "language": "php", "file_size": 4613, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\BackedEnumNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Normalizer\\BackedEnumNormalizer;\n\nclass BackedEnumNormalizerC", "suffix": " public function testWithers()\n {\n $context = $this->contextBuilder->withAllowInvalidValues(true)->toArray();\n self::assertSame([BackedEnumNormalizer::ALLOW_INVALID_VALUES => true], $context);\n\n $context = $this->contextBuilder->wit", "middle": "ontextBuilderTest extends TestCase\n{\n private BackedEnumNormalizerContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {\n $this->contextBuilder = new BackedEnumNormalizerContextBuilder();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/BackedEnumNormalizerContextBuilderTest.php", "language": "php", "file_size": 1141, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\ConstraintViolationListNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer;\n", "suffix": "d function setUp(): void\n {\n $this->contextBuilder = new ConstraintViolationListNormalizerContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithe", "middle": "\n/**\n * @author Mathias Arlaud \n */\nclass ConstraintViolationListNormalizerContextBuilderTest extends TestCase\n{\n private ConstraintViolationListNormalizerContextBuilder $contextBuilder;\n\n protecte", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/ConstraintViolationListNormalizerContextBuilderTest.php", "language": "php", "file_size": 2497, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\DateIntervalNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateIntervalNormaliz", "suffix": ": void\n {\n $this->contextBuilder = new DateIntervalNormalizerContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(array $values)\n {\n ", "middle": "er;\n\n/**\n * @author Mathias Arlaud \n */\nclass DateIntervalNormalizerContextBuilderTest extends TestCase\n{\n private DateIntervalNormalizerContextBuilder $contextBuilder;\n\n protected function setUp()", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/DateIntervalNormalizerContextBuilderTest.php", "language": "php", "file_size": 1566, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\DateTimeNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Ser", "suffix": " protected function setUp(): void\n {\n $this->contextBuilder = new DateTimeNormalizerContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(arr", "middle": "ializer\\Normalizer\\DateTimeNormalizer;\n\n/**\n * @author Mathias Arlaud \n */\nclass DateTimeNormalizerContextBuilderTest extends TestCase\n{\n private DateTimeNormalizerContextBuilder $contextBuilder;\n\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/DateTimeNormalizerContextBuilderTest.php", "language": "php", "file_size": 2625, "cut_index": 563, "middle_length": 229}} {"prefix": "ttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableSerializer;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\n\n/**\n * @author Mathias Arlaud \n *\n * @final\n */\nclass SerializerDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n private const DATA_TEMPLATE = [\n 'serialize' => [],\n 'deserialize' => [],\n 'normalize' => [],\n ", "suffix": "et($this->dataGroupedByName);\n $this->collected = [];\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n // Everything is collected during the request, and formatted on kernel ", "middle": " 'denormalize' => [],\n 'encode' => [],\n 'decode' => [],\n ];\n\n private array $dataGroupedByName;\n private array $collected = [];\n\n public function reset(): void\n {\n $this->data = [];\n uns", "meta": {"filepath": "src/Symfony/Component/Serializer/DataCollector/SerializerDataCollector.php", "language": "php", "file_size": 9324, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping;\n\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface;\n\n/**\n * @author Samuel Roze \n */\nclass ClassDiscriminatorFromClassMetadata implements ClassDiscriminatorResolverInterface\n{\n private array $mappingForMappedObjectCache = ", "suffix": " ($this->classMetadataFactory->hasMetadataFor($class)) {\n return $this->classMetadataFactory->getMetadataFor($class)->getClassDiscriminatorMapping();\n }\n\n return null;\n }\n\n public function getMappingForMappedObject(object|str", "middle": "[];\n\n public function __construct(\n private readonly ClassMetadataFactoryInterface $classMetadataFactory,\n ) {\n }\n\n public function getMappingForClass(string $class): ?ClassDiscriminatorMapping\n {\n if", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/ClassDiscriminatorFromClassMetadata.php", "language": "php", "file_size": 2666, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping;\n\n/**\n * @author Kévin Dunglas \n *\n * @final\n */\nclass ClassMetadata implements ClassMetadataInterface\n{\n private string $name;\n\n /**\n * @var AttributeMetadataInterface[]\n */\n private array $attributesMetadata = [];\n\n private ?\\ReflectionC", "suffix": "name = $class;\n $this->classDiscriminatorMapping = $classDiscriminatorMapping;\n }\n\n public function getName(): string\n {\n return $this->name;\n }\n\n public function addAttributeMetadata(AttributeMetadataInterface $attributeMetada", "middle": "lass $reflClass = null;\n private ?ClassDiscriminatorMapping $classDiscriminatorMapping = null;\n\n public function __construct(string $class, ?ClassDiscriminatorMapping $classDiscriminatorMapping = null)\n {\n $this->", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/ClassMetadata.php", "language": "php", "file_size": 2430, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping;\n\n/**\n * Stores metadata needed for serializing and deserializing objects of specific class.\n *\n * Primarily, the metadata stores the set of attributes to serialize or deserialize.\n *\n * There may only exist one metadata for each attribute according to", "suffix": "(): string;\n\n /**\n * Adds an {@link AttributeMetadataInterface}.\n */\n public function addAttributeMetadata(AttributeMetadataInterface $attributeMetadata): void;\n\n /**\n * Gets the list of {@link AttributeMetadataInterface}.\n *\n ", "middle": " its name.\n *\n * @psalm-inheritors ClassMetadata\n *\n * @author Kévin Dunglas \n */\ninterface ClassMetadataInterface\n{\n /**\n * Returns the name of the backing PHP class.\n */\n public function getName", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/ClassMetadataInterface.php", "language": "php", "file_size": 1594, "cut_index": 537, "middle_length": 229}} {"prefix": "e Symfony\\Component\\Serializer\\Attribute\\Groups;\nuse Symfony\\Component\\Serializer\\Attribute\\Ignore;\nuse Symfony\\Component\\Serializer\\Attribute\\MaxDepth;\nuse Symfony\\Component\\Serializer\\Attribute\\SerializedName;\nuse Symfony\\Component\\Serializer\\Attribute\\SerializedPath;\nuse Symfony\\Component\\Serializer\\Exception\\MappingException;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadataInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscr", "suffix": "dre Daubois \n */\nclass AttributeLoader implements LoaderInterface\n{\n use AccessorCollisionResolverTrait;\n\n private const KNOWN_ATTRIBUTES = [\n DiscriminatorMap::class,\n Groups::class,\n Ignore::class,\n ", "middle": "iminatorMapping;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface;\n\n/**\n * Loader for PHP attributes.\n *\n * @author Kévin Dunglas \n * @author Alexander M. Turek \n * @author Alexan", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/Loader/AttributeLoader.php", "language": "php", "file_size": 11390, "cut_index": 921, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping\\Loader;\n\nuse Symfony\\Component\\Serializer\\Exception\\MappingException;\n\n/**\n * Base class for all file based loaders.\n *\n * @author Kévin Dunglas \n */\nabstract class FileLoader implements LoaderInterface\n{\n ", "suffix": "\n if (!is_file($file)) {\n throw new MappingException(\\sprintf('The mapping file \"%s\" does not exist.', $file));\n }\n\n if (!is_readable($file)) {\n throw new MappingException(\\sprintf('The mapping file \"%s\" is not re", "middle": "/**\n * @param string $file The mapping file to load\n *\n * @throws MappingException if the mapping file does not exist or is not readable\n */\n public function __construct(\n protected string $file,\n ) {", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/Loader/FileLoader.php", "language": "php", "file_size": 1036, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping\\Loader;\n\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidPropertyPathException;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\Serializer\\Exception\\MappingException;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorMapping;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface;\nuse Symfony\\Component\\Yaml\\Parser;\nuse S", "suffix": "array>\n */\n private ?array $classes = null;\n\n public function loadClassMetadata(ClassMetadataInterface $classMetadata): bool\n {\n if (!$this->classes ??= $this->getClassesFromYaml()) {\n return false;\n }\n\n if (!is", "middle": "ymfony\\Component\\Yaml\\Yaml;\n\n/**\n * YAML File Loader.\n *\n * @author Kévin Dunglas \n */\nclass YamlFileLoader extends FileLoader\n{\n private ?Parser $yamlParser = null;\n\n /**\n * @var array\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping\\Factory;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface;\n\n/**\n * Caches metadata using a PSR-6 implementation.\n *\n * @author Kévin Dunglas \n */\nclass CacheClassMetadataFactory i", "suffix": "donly ClassMetadataFactoryInterface $decorated,\n private readonly CacheItemPoolInterface $cacheItemPool,\n ) {\n }\n\n public function getMetadataFor(string|object $value): ClassMetadataInterface\n {\n $class = $this->getClass($value);\n", "middle": "mplements ClassMetadataFactoryInterface\n{\n use ClassResolverTrait;\n\n /**\n * @var array\n */\n private array $loadedClasses = [];\n\n public function __construct(\n private rea", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/Factory/CacheClassMetadataFactory.php", "language": "php", "file_size": 1661, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping\\Factory;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * Resolves a class name.\n *\n * @internal\n *\n * @author Kévin Dunglas \n */\ntrait ClassResolverTrait\n{\n /**\n * Gets a c", "suffix": " if (!class_exists($value) && !interface_exists($value, false)) {\n throw new InvalidArgumentException(\\sprintf('The class or interface \"%s\" does not exist.', $value));\n }\n\n return ltrim($value, '\\\\');\n }\n\n ", "middle": "lass name for a given class or instance.\n *\n * @throws InvalidArgumentException If the class does not exist\n */\n private function getClass(object|string $value): string\n {\n if (\\is_string($value)) {\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/Factory/ClassResolverTrait.php", "language": "php", "file_size": 1036, "cut_index": 513, "middle_length": 229}} {"prefix": "onent\\Serializer\\NameConverter\\NameConverterInterface;\nuse Symfony\\Component\\TypeInfo\\Exception\\LogicException as TypeInfoLogicException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\IntersectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\NullableType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\Type\\UnionType;\nuse Symfony\\Component\\TypeInfo\\Type\\W", "suffix": "alizer dealing with objects.\n *\n * @author Kévin Dunglas \n */\nabstract class AbstractObjectNormalizer extends AbstractNormalizer\n{\n /**\n * Set to true to respect the max depth metadata on fields.\n */\n public const ENABLE_MA", "middle": "rappingTypeInterface;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\ReflectionTypeResolver;\n\n/**\n * Base class for a norm", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php", "language": "php", "file_size": 46380, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\n\n/**\n * Normalizes a {@see \\BackedEnum} enumeration to a string or an integer.\n *\n * @author Alexandre Daubois \n */\nfinal class BackedEnumNormalizer implemen", "suffix": "?string $format): array\n {\n return [\n \\BackedEnum::class => true,\n ];\n }\n\n public function normalize(mixed $data, ?string $format = null, array $context = []): int|string\n {\n if (!$data instanceof \\BackedEnum) {\n", "middle": "ts NormalizerInterface, DenormalizerInterface\n{\n /**\n * If true, will denormalize any invalid value into null.\n */\n public const ALLOW_INVALID_VALUES = 'allow_invalid_values';\n\n public function getSupportedTypes(", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/BackedEnumNormalizer.php", "language": "php", "file_size": 3476, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface;\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\n\n/**\n * A normalizer that normalizes a ConstraintViolationListInterface instance.\n *\n * This Normalizer implements RFC7807 {@link https://tools.ietf.org/html/rfc7807}.\n *\n * @author Grégoire Pineau \n * @author Kévin Dunglas \n */\nfinal class Constrain", "suffix": "DS = 'payload_fields';\n\n public function __construct(\n private readonly array $defaultContext = [],\n private readonly ?NameConverterInterface $nameConverter = null,\n ) {\n }\n\n public function getSupportedTypes(?string $format): arr", "middle": "tViolationListNormalizer implements NormalizerInterface\n{\n public const INSTANCE = 'instance';\n public const STATUS = 'status';\n public const TITLE = 'title';\n public const TYPE = 'type';\n public const PAYLOAD_FIEL", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/ConstraintViolationListNormalizer.php", "language": "php", "file_size": 5873, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Encoder\\XmlEncoder;\n\n/**\n * A helper providing autocompletion for available XmlEncoder options.\n *\n * @author Mathias Arlaud \n */\nfinal class XmlEncoderContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrait;\n\n", "suffix": "mlEncoder::AS_COLLECTION, $asCollection);\n }\n\n /**\n * Configures node types to ignore while decoding.\n *\n * @see https://php.net/dom.constants\n *\n * @param list|null $decoderIgnoredNodeTypes\n */\n public function withDe", "middle": " /**\n * Configures whether the decoded result should be considered as a collection\n * or as a single element.\n */\n public function withAsCollection(?bool $asCollection): static\n {\n return $this->with(X", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Encoder/XmlEncoderContextBuilder.php", "language": "php", "file_size": 5307, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Attribute;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Samuel Roze \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS)]\nclass DiscriminatorMap\n{\n /**\n * @param string $typePro", "suffix": "defaultType The fallback value if nothing specified by $typeProperty\n *\n * @throws InvalidArgumentException\n */\n public function __construct(\n public readonly string $typeProperty,\n public readonly array $mapping,\n publ", "middle": "perty The property holding the type discriminator\n * @param array $mapping The mapping between types and classes (i.e. ['admin_user' => AdminUser::class])\n * @param ?string $", "meta": {"filepath": "src/Symfony/Component/Serializer/Attribute/DiscriminatorMap.php", "language": "php", "file_size": 1690, "cut_index": 537, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Attribute;\n\n/**\n * Declares that serialization attributes listed on the current class should be added to the given class.\n *\n * Classes that use this attribute should contain only properties and methods that\n * exist on the target class (no", "suffix": "all of them).\n *\n * @author Nicolas Grekas \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS)]\nfinal class ExtendsSerializationFor\n{\n /**\n * @param class-string $class\n */\n public function __construct(\n public string $class,\n ", "middle": "t necessarily ", "meta": {"filepath": "src/Symfony/Component/Serializer/Attribute/ExtendsSerializationFor.php", "language": "php", "file_size": 801, "cut_index": 517, "middle_length": 14}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Attribute;\n\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidPropertyPathException;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Tobias Bönner serializedPath = new PropertyPath($serializedPath);\n } catch ", "middle": "obi@boenner.family>\n */\n#[\\Attribute(\\Attribute::TARGET_METHOD | \\Attribute::TARGET_PROPERTY)]\nclass SerializedPath\n{\n public readonly PropertyPath $serializedPath;\n\n /**\n * @param string $serializedPath A path using a ", "meta": {"filepath": "src/Symfony/Component/Serializer/Attribute/SerializedPath.php", "language": "php", "file_size": 1184, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping;\n\n/**\n * @author Samuel Roze \n */\nclass ClassDiscriminatorMapping\n{\n /**\n * @param array $typesMapping\n */\n public function __construct(\n private readonly string $typeProperty,\n private", "suffix": "rn -1;\n }\n\n if (is_a($b, $a, true)) {\n return 1;\n }\n\n return 0;\n });\n }\n\n public function getTypeProperty(): string\n {\n return $this->typeProperty;\n }\n\n public function", "middle": " array $typesMapping = [],\n private readonly ?string $defaultType = null,\n ) {\n uasort($this->typesMapping, static function (string $a, string $b): int {\n if (is_a($a, $b, true)) {\n retu", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/ClassDiscriminatorMapping.php", "language": "php", "file_size": 1590, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping\\Loader;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Ignore;\n\n/**\n * Provides methods to detect accessor name collisions during serialization.\n *\n * @internal\n */\ntrait AccessorCollisionResolverTrait\n{\n private function getAttributeNameFromAccessor(\\ReflectionClass $class, \\ReflectionMethod $method, bool $andMutator): ?string", "suffix": "l,\n 'h' => str_starts_with($methodName, 'has') ? 3 : null,\n 'c' => str_starts_with($methodName, 'can') ? 3 : null,\n 'i' => str_starts_with($methodName, 'is') ? 2 : null,\n default => null,\n };\n\n // c", "middle": "\n {\n $methodName = $method->name;\n\n $i = match ($methodName[0]) {\n 's' => $andMutator && str_starts_with($methodName, 'set') ? 3 : null,\n 'g' => str_starts_with($methodName, 'get') ? 3 : nul", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/Loader/AccessorCollisionResolverTrait.php", "language": "php", "file_size": 3387, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping\\Loader;\n\nuse Symfony\\Component\\Config\\Util\\XmlUtils;\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidPropertyPathException;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\Serializer\\Exception\\MappingException;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorMapping;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterfa", "suffix": "ing, \\SimpleXMLElement>|null\n */\n private ?array $classes = null;\n\n public function loadClassMetadata(ClassMetadataInterface $classMetadata): bool\n {\n if (!$this->classes ??= $this->getClassesFromXml()) {\n return false;\n ", "middle": "ce;\n\n/**\n * Loads XML mapping files.\n *\n * @author Kévin Dunglas \n */\nclass XmlFileLoader extends FileLoader\n{\n /**\n * An array of {@class \\SimpleXMLElement} instances.\n *\n * @var array\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping\\Factory;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface;\n\n/**\n * Returns a {@see ClassMetadataInterface}.\n *\n * @author Kévin Dunglas \n */\ninterfa", "suffix": "ith a cache, this method will first look\n * for an existing metadata instance in the cache. If an existing instance\n * is found, it will be returned without further ado.\n *\n * Otherwise, a new metadata instance is created. If the factory wa", "middle": "ce ClassMetadataFactoryInterface\n{\n /**\n * If the method was called with the same class name (or an object of that\n * class) before, the same metadata instance is returned.\n *\n * If the factory was configured w", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/Factory/ClassMetadataFactoryInterface.php", "language": "php", "file_size": 1512, "cut_index": 537, "middle_length": 229}} {"prefix": "face;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface;\nuse Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface;\nuse Symfony\\Component\\Serializer\\SerializerAwareInterface;\nuse Symfony\\Component\\Serializer\\SerializerAwareTrait;\n\n/**\n * Normalizer implementation.\n *\n * @author Kévin Dunglas \n */\nabstract class AbstractNormalizer implements NormalizerInterface, DenormalizerInterface, SerializerAwareInterface\n{\n use ObjectToPopulateTrait;\n use", "suffix": "ct a\n * second time, we consider that a circular reference.\n *\n * You can raise this value for special cases, e.g. in combination with the\n * max depth setting of the object normalizer.\n */\n public const CIRCULAR_REFERENCE_LIMIT = 'c", "middle": " SerializerAwareTrait;\n\n /* constants to configure the context */\n\n /**\n * How many loops of circular reference to allow while normalizing.\n *\n * The default value of 1 means that when we encounter the same obje", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php", "language": "php", "file_size": 26864, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Encoder\\YamlEncoder;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * A helper providing ", "suffix": "or Mathias Arlaud \n */\nfinal class YamlEncoderContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTrait;\n\n /**\n * Configures the threshold to switch to inline YAML.\n */\n public function withInli", "middle": "autocompletion for available YamlEncoder options.\n *\n * Note that the \"indentation\" setting is not offered in this builder because\n * it can only be set during the construction of the YamlEncoder, but not per\n * call.\n *\n * @auth", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Encoder/YamlEncoderContextBuilder.php", "language": "php", "file_size": 1955, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Attribute;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Maxime Steinhausser \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribut", "suffix": "ed> $normalizationContext The context to use when serializing\n * @param array $denormalizationContext The context to use when deserializing\n * @param string|string[] $groups The groups to use when serializing o", "middle": "e::IS_REPEATABLE)]\nclass Context\n{\n public readonly array $groups;\n\n /**\n * @param array $context The common context to use when serializing or deserializing\n * @param array\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\n\n/**\n * Stores metadata needed for serializing and deserializing attributes.\n *\n * Primarily, the metadata stores serialization groups.\n *\n * @psalm-inheritors AttributeMetadata\n *\n * @author Kévin Dunglas ", "suffix": "g $group): void;\n\n /**\n * Gets groups of this attribute.\n *\n * @return string[]\n */\n public function getGroups(): array;\n\n /**\n * Sets the serialization max depth for this attribute.\n */\n public function setMaxDepth(?int", "middle": "\n */\ninterface AttributeMetadataInterface\n{\n /**\n * Gets the attribute name.\n */\n public function getName(): string;\n\n /**\n * Adds this attribute to the given group.\n */\n public function addGroup(strin", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/AttributeMetadataInterface.php", "language": "php", "file_size": 2986, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\n\n/**\n * @author Kévin Dunglas \n *\n * @final\n */\nclass AttributeMetadata implements AttributeMetadataInterface\n{\n private string $name;\n private array $groups = [];\n private ?int $maxDepth = null;\n private ?string $serializedName = null;\n private ?PropertyPath $serializedPath = null;\n private bool $ignore = false;\n\n /**\n * @var array", "suffix": " private array $denormalizationContexts = [];\n\n public function __construct(string $name)\n {\n $this->name = $name;\n }\n\n public function getName(): string\n {\n return $this->name;\n }\n\n public function addGroup(string $gr", "middle": "[] Normalization contexts per group name (\"*\" applies to all groups)\n */\n private array $normalizationContexts = [];\n\n /**\n * @var array[] Denormalization contexts per group name (\"*\" applies to all groups)\n */\n", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/AttributeMetadata.php", "language": "php", "file_size": 5128, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping\\Loader;\n\nuse Symfony\\Component\\Serializer\\Exception\\MappingException;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface;\n\n/**\n * Calls multiple {@link LoaderInterface} instances in a chain.\n *\n * This class accepts multiple instances of L", "suffix": "or Bernhard Schussek \n * @author Kévin Dunglas \n */\nclass LoaderChain implements LoaderInterface\n{\n /**\n * Accepts a list of LoaderInterface instances.\n *\n * @param LoaderInterface[] $loaders An array ", "middle": "oaderInterface to be passed to the\n * constructor. When {@link loadClassMetadata()} is called, the same method is called\n * in all of these loaders, regardless of whether any of them was\n * successful or not.\n *\n * @auth", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/Loader/LoaderChain.php", "language": "php", "file_size": 1896, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\nuse Symfony\\C", "suffix": "alizerInterface, DenormalizerAwareInterface\n{\n use DenormalizerAwareTrait;\n\n public function getSupportedTypes(?string $format): array\n {\n return ['object' => null, '*' => false];\n }\n\n /**\n * @throws NotNormalizableValueException\n", "middle": "omponent\\TypeInfo\\Type\\UnionType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Denormalizes arrays of objects.\n *\n * @author Alexander M. Turek \n *\n * @final\n */\nclass ArrayDenormalizer implements Denorm", "meta": {"filepath": "src/Symfony/Component/Serializer/Normalizer/ArrayDenormalizer.php", "language": "php", "file_size": 4521, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Context\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderInterface;\nuse Symfony\\Component\\Serializer\\Context\\ContextBuilderTrait;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonDecode;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncode;\n\n/**\n * ", "suffix": "it;\n\n /**\n * Configures the json_encode flags bitmask.\n *\n * @see https://php.net/json.constants\n *\n * @param positive-int|null $options\n */\n public function withEncodeOptions(?int $options): static\n {\n return $this-", "middle": "A helper providing autocompletion for available JsonEncoder options.\n *\n * @author Mathias Arlaud \n */\nfinal class JsonEncoderContextBuilder implements ContextBuilderInterface\n{\n use ContextBuilderTra", "meta": {"filepath": "src/Symfony/Component/Serializer/Context/Encoder/JsonEncoderContextBuilder.php", "language": "php", "file_size": 1947, "cut_index": 537, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Attribute;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Fabien Bourigault \n */\n#[\\Attribute(\\Attribute::TARGET_METHOD | \\Attribute::TARGET_PROPERTY)]\nclass SerializedName\n{\n /**\n * @param string", "suffix": " be serialized\n */\n public function __construct(\n public readonly string $serializedName,\n ) {\n if ('' === $serializedName) {\n throw new InvalidArgumentException(\\sprintf('Parameter given to \"%s\" must be a non-empty strin", "middle": " $serializedName The name of the property as it will", "meta": {"filepath": "src/Symfony/Component/Serializer/Attribute/SerializedName.php", "language": "php", "file_size": 893, "cut_index": 547, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Attribute;\n\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Kévin Dunglas \n */\n#[\\Attribute(\\Attribute::TARGET_METHOD | \\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_CLASS)]\nclass Gr", "suffix": "ps)\n {\n $this->groups = (array) $groups;\n\n if (!$this->groups) {\n throw new InvalidArgumentException(\\sprintf('Parameter given to \"%s\" cannot be empty.', static::class));\n }\n\n foreach ($this->groups as $group) {\n ", "middle": "oups\n{\n /**\n * @var string[]\n */\n public readonly array $groups;\n\n /**\n * @param string|string[] $groups The groups to define on the attribute target\n */\n public function __construct(string|array $grou", "meta": {"filepath": "src/Symfony/Component/Serializer/Attribute/Groups.php", "language": "php", "file_size": 1245, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Mapping\\Factory;\n\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderInterface;\n\n/**\n * Returns a {@link ClassMetadata}.\n *\n * @author K", "suffix": "asses;\n\n public function __construct(\n private readonly LoaderInterface $loader,\n ) {\n }\n\n public function getMetadataFor(string|object $value): ClassMetadataInterface\n {\n $class = $this->getClass($value);\n\n if (isset($t", "middle": "évin Dunglas \n */\nclass ClassMetadataFactory implements ClassMetadataFactoryInterface\n{\n use ClassResolverTrait;\n\n /**\n * @var array\n */\n private array $loadedCl", "meta": {"filepath": "src/Symfony/Component/Serializer/Mapping/Factory/ClassMetadataFactory.php", "language": "php", "file_size": 1958, "cut_index": 537, "middle_length": 229}} {"prefix": "e' => 'Foo.php', 'file' => 'src/Foo.php', 'line' => 123];\n $dataCollector->collectSerialize('traceIdOne', 'data', 'format', ['foo' => 'bar'], 1.0, $caller, 'default');\n $dataCollector->collectDeserialize('traceIdTwo', 'data', 'type', 'format', ['foo' => 'bar'], 1.0, $caller, 'default');\n\n $dataCollector->lateCollect();\n $collectedData = $this->castCollectedData($dataCollector->getData());\n\n $this->assertSame([[\n 'data' => 'data',\n 'dataType' => 'strin", "suffix": "ler,\n 'name' => 'default',\n ]], $collectedData['serialize']);\n\n $this->assertSame([[\n 'data' => 'data',\n 'dataType' => 'string',\n 'type' => 'type',\n 'format' => 'format',\n 'tim", "middle": "g',\n 'type' => null,\n 'format' => 'format',\n 'time' => 1.0,\n 'context' => ['foo' => 'bar'],\n 'normalization' => [],\n 'encoding' => [],\n 'caller' => $cal", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/DataCollector/SerializerDataCollectorTest.php", "language": "php", "file_size": 22436, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Encoder;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Encoder\\XmlEncoderContextBuilder;\nuse Symfony\\Component\\Serializer\\Encoder\\XmlEncoder;\n\n/**\n * @author Mathias Arlaud \n */\nclass XmlEncoderContextBuilderTest extends T", "suffix": "lic function testWithers(array $values)\n {\n $context = $this->contextBuilder\n ->withAsCollection($values[XmlEncoder::AS_COLLECTION])\n ->withDecoderIgnoredNodeTypes($values[XmlEncoder::DECODER_IGNORED_NODE_TYPES])\n ", "middle": "estCase\n{\n private XmlEncoderContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {\n $this->contextBuilder = new XmlEncoderContextBuilder();\n }\n\n #[DataProvider('withersDataProvider')]\n pub", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Encoder/XmlEncoderContextBuilderTest.php", "language": "php", "file_size": 3837, "cut_index": 614, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\nclass StdClassNormalizer implements NormalizerInterface\n{\n public function normalize(mixed $object, ?string $format = null, array $context = []): string\n {\n ", "suffix": "supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool\n {\n return $data instanceof \\stdClass;\n }\n\n public function getSupportedTypes(?string $format): array\n {\n return [\n \\stdClass::class ", "middle": " return 'string_object';\n }\n\n public function ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/StdClassNormalizer.php", "language": "php", "file_size": 865, "cut_index": 529, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nclass VoidNeverReturnTypeDummy\n{\n public string $normalProperty = 'value';\n\n public function getNormalProperty(): string\n {\n return $this->normalProperty;\n }\n\n public function getVoidProperty(): void\n ", "suffix": "ception('Never returns');\n }\n\n public function setValue(): void\n {\n // This looks like a setter but has no parameters, should be ignored as accessor\n }\n\n public function setNeverValue(): never\n {\n // This looks like a setter", "middle": " {\n // This looks like a getter but returns void, should be ignored\n }\n\n public function getNeverProperty(): never\n {\n // This looks like a getter but returns never, should be ignored\n throw new \\Ex", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/VoidNeverReturnTypeDummy.php", "language": "php", "file_size": 1131, "cut_index": 518, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes;\n\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DummyFirstChildQuux;\n\nclass AbstractDummyFirstChild extends AbstractDummy\n{\n public $bar;\n public $baz;\n\n /** @var DummyFirstChildQuux|null */\n public $quux;\n\n p", "suffix": "\n {\n parent::__construct($foo);\n\n $this->bar = $bar;\n }\n\n public function getQuux(): ?DummyFirstChildQuux\n {\n return $this->quux;\n }\n\n public function setQuux(DummyFirstChildQuux $quux): void\n {\n $this->quux", "middle": "ublic function __construct($foo = null, $bar = null)", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/Attributes/AbstractDummyFirstChild.php", "language": "php", "file_size": 855, "cut_index": 529, "middle_length": 52}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes;\n\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DummySecondChildQuux;\n\nclass AbstractDummySecondChild extends AbstractDummy\n{\n public $baz;\n\n /** @var DummySecondChildQuux|null */\n public $quux;\n\n public function __con", "suffix": "t::__construct($foo);\n\n $this->baz = $baz;\n }\n\n public function getQuux(): ?DummySecondChildQuux\n {\n return $this->quux;\n }\n\n public function setQuux(DummySecondChildQuux $quux): void\n {\n $this->quux = $quux;\n }\n}\n", "middle": "struct($foo = null, $baz = null)\n {\n paren", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/Attributes/AbstractDummySecondChild.php", "language": "php", "file_size": 843, "cut_index": 535, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Context;\n\n/**\n * @author Maxime Steinhausser \n */\nclass ContextDummy extends ContextDummyParent\n{\n #[Context(['foo' => 'value', 'bar' =>", "suffix": "nContext: ['format' => 'd/m/Y'],\n denormalizationContext: ['format' => 'm-d-Y H:i'],\n groups: ['a', 'b'],\n )]\n public $bar;\n\n #[Context(normalizationContext: ['prop' => 'dummy_value'])]\n public $overriddenParentProperty;\n\n #[Co", "middle": " 'value', 'nested' => [\n 'nested_key' => 'nested_value',\n ], 'array' => ['first', 'second']])]\n #[Context(context: ['bar' => 'value_for_group_a'], groups: ['a'])]\n public $foo;\n\n #[Context(\n normalizatio", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/Attributes/ContextDummy.php", "language": "php", "file_size": 1142, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Context;\n\n/**\n * @author Maxime Steinhausser \n */\nclass ContextDummyPromotedProperties extends ContextDummyParent\n{\n public function __constru", "suffix": "['a'])]\n public $foo,\n\n #[Context(\n normalizationContext: ['format' => 'd/m/Y'],\n denormalizationContext: ['format' => 'm-d-Y H:i'],\n groups: ['a', 'b'],\n )]\n public $bar,\n\n #[Context(norm", "middle": "ct(\n #[Context(['foo' => 'value', 'bar' => 'value', 'nested' => [\n 'nested_key' => 'nested_value',\n ], 'array' => ['first', 'second']])]\n #[Context(context: ['bar' => 'value_for_group_a'], groups: ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/Attributes/ContextDummyPromotedProperties.php", "language": "php", "file_size": 1259, "cut_index": 524, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Groups;\n\n#[Groups('a')]\nclass GroupClassDummy\n{\n #[Groups('b')]\n private $foo;\n\n #[Groups(['c', 'd'])]\n private $bar;\n\n private $baz;\n\n public function getFoo()\n {\n return $this->foo;\n }\n\n public function setFoo($foo): void\n", "suffix": "unction getBar()\n {\n return $this->bar;\n }\n\n public function setBar($bar): void\n {\n $this->bar = $bar;\n }\n\n public function getBaz()\n {\n return $this->baz;\n }\n\n public function setBaz($baz): void\n {\n ", "middle": " {\n $this->foo = $foo;\n }\n\n public f", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/Attributes/GroupClassDummy.php", "language": "php", "file_size": 943, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Groups;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\ChildOfGroupsAttributeDummy;\n\n/**\n * @author Kévin Dunglas \n */\nclass GroupDummy extends GroupDummyParent implemen", "suffix": " #[Groups(['b'])]\n public function setBar($bar)\n {\n $this->bar = $bar;\n }\n\n #[Groups(['c'])]\n public function getBar()\n {\n return $this->bar;\n }\n\n public function setFoo($foo)\n {\n $this->foo = $foo;\n }\n\n", "middle": "ts GroupDummyInterface\n{\n #[Groups(['a'])]\n private $foo;\n #[Groups(['b', 'c', 'name_converter'])]\n protected $bar;\n #[ChildOfGroupsAttributeDummy]\n protected $quux;\n private $fooBar;\n private $symfony;\n\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/Attributes/GroupDummy.php", "language": "php", "file_size": 1616, "cut_index": 537, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Groups;\n\n/**\n * @author Kévin Dunglas \n */\nclass GroupDummyParent\n{\n #[Groups(['a'])]\n private $kevin;\n private $coopTilleuls;\n\n public function setKevin($kevin)\n {\n $thi", "suffix": "in()\n {\n return $this->kevin;\n }\n\n public function setCoopTilleuls($coopTilleuls)\n {\n $this->coopTilleuls = $coopTilleuls;\n }\n\n #[Groups(['a', 'b'])]\n public function getCoopTilleuls()\n {\n return $this->coopTill", "middle": "s->kevin = $kevin;\n }\n\n public function getKev", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/Attributes/GroupDummyParent.php", "language": "php", "file_size": 882, "cut_index": 559, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Mapping;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadataInterface;\n\n/**\n * @author Kévin Dunglas \n */\nclass AttributeMetadataTest extends TestCase\n{\n public function testInterface()\n {\n $attributeMetadata = new AttributeMetadata('name');\n ", "suffix": "buteMetadata->getName());\n }\n\n public function testGroups()\n {\n $attributeMetadata = new AttributeMetadata('group');\n $attributeMetadata->addGroup('a');\n $attributeMetadata->addGroup('a');\n $attributeMetadata->addGroup(", "middle": "$this->assertInstanceOf(AttributeMetadataInterface::class, $attributeMetadata);\n }\n\n public function testGetName()\n {\n $attributeMetadata = new AttributeMetadata('name');\n $this->assertEquals('name', $attri", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/AttributeMetadataTest.php", "language": "php", "file_size": 8364, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Mapping;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorMapping;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummyFirstChild;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\A", "suffix": "c function testGetClass()\n {\n $mapping = new ClassDiscriminatorMapping('type', [\n 'first' => AbstractDummyFirstChild::class,\n ]);\n\n $this->assertEquals(AbstractDummyFirstChild::class, $mapping->getClassForType('first'));\n", "middle": "bstractDummySecondChild;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummyThirdChild;\n\n/**\n * @author Samuel Roze \n */\nclass ClassDiscriminatorMappingTest extends TestCase\n{\n publi", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/ClassDiscriminatorMappingTest.php", "language": "php", "file_size": 1721, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Mapping;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface;\n\n/**\n * @author Kévin Dunglas \n */\ncla", "suffix": "ic function testAttributeMetadata()\n {\n $classMetadata = new ClassMetadata('c');\n\n $a1 = new AttributeMetadata('a1');\n $a2 = new AttributeMetadata('a2');\n\n $classMetadata->addAttributeMetadata($a1);\n $classMetadata->ad", "middle": "ss ClassMetadataTest extends TestCase\n{\n public function testInterface()\n {\n $classMetadata = new ClassMetadata('name');\n $this->assertInstanceOf(ClassMetadataInterface::class, $classMetadata);\n }\n\n publ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/ClassMetadataTest.php", "language": "php", "file_size": 2250, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Mapping;\n\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\GroupDummy;\n\n/**\n * @author Kévin Dunglas \n */\nclass TestClassMetadataFactor", "suffix": "w AttributeMetadata('foo');\n $foo->addGroup('a');\n $expected->addAttributeMetadata($foo);\n\n $bar = new AttributeMetadata('bar');\n $bar->addGroup('b');\n $bar->addGroup('c');\n $bar->addGroup('name_converter');\n ", "middle": "y\n{\n public static function createClassMetadata(string $namespace, bool $withParent = false, bool $withInterface = false): ClassMetadata\n {\n $expected = new ClassMetadata($namespace.'\\GroupDummy');\n\n $foo = ne", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/TestClassMetadataFactory.php", "language": "php", "file_size": 2644, "cut_index": 563, "middle_length": 229}} {"prefix": "alizer\\Exception\\MappingException;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorMapping;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummyFirstChild;\nuse S", "suffix": "orishGetters;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\BadAttributeDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\BadMethodContextDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\ContextDummyParent;\nuse", "middle": "ymfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummySecondChild;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummyThirdChild;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\Access", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/Loader/AttributeLoaderTest.php", "language": "php", "file_size": 13335, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Mapping\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorMapping;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\XmlFileLoader;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummy", "suffix": "\\GroupDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\IgnoreDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\MaxDepthDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\SerializedNameDummy;\nuse Symfony\\Compo", "middle": ";\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummyFirstChild;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummySecondChild;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/Loader/XmlFileLoaderTest.php", "language": "php", "file_size": 5190, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Mapping\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\Serializer\\Exception\\MappingException;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorMapping;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\S", "suffix": "er\\Tests\\Fixtures\\Attributes\\AbstractDummySecondChild;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\GroupDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\IgnoreDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes", "middle": "erializer\\Mapping\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\AbstractDummyFirstChild;\nuse Symfony\\Component\\Serializ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php", "language": "php", "file_size": 6126, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Mapping\\Loader\\Features;\n\nuse PHPUnit\\Framework\\Assert;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\ContextDummy;\nuse Symfony\\Component\\Serializ", "suffix": "e;\n\n public function testLoadContexts()\n {\n $this->assertLoadedContexts();\n }\n\n public function assertLoadedContexts(string $dummyClass = ContextDummy::class, string $parentClass = ContextDummyParent::class): void\n {\n $loader =", "middle": "er\\Tests\\Fixtures\\Attributes\\ContextDummyParent;\n\n/**\n * @author Maxime Steinhausser \n */\ntrait ContextMappingTestTrait\n{\n abstract protected function getLoaderForContextMapping(): LoaderInterfac", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/Loader/Features/ContextMappingTestTrait.php", "language": "php", "file_size": 2888, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Mapping\\Factory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\CacheC", "suffix": "Loader;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Dummy;\n\n/**\n * @author Kévin Dunglas \n */\nclass CacheMetadataFactoryTest extends TestCase\n{\n public function testGetMetadataFor()\n {\n $metadata = new ClassMetadata(Dumm", "middle": "lassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\Attribute", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/Factory/CacheMetadataFactoryTest.php", "language": "php", "file_size": 2865, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Mapping\\Factory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\Attri", "suffix": "ymfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\GroupDummyParent;\nuse Symfony\\Component\\Serializer\\Tests\\Mapping\\TestClassMetadataFactory;\n\n/**\n * @author Kévin Dunglas \n */\nclass ClassMetadataFactoryTest extends TestCase\n{\n pub", "middle": "buteLoader;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderChain;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\GroupDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\GroupDummyInterface;\nuse S", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Mapping/Factory/ClassMetadataFactoryTest.php", "language": "php", "file_size": 2005, "cut_index": 537, "middle_length": 229}} {"prefix": "\\Extractor\\PhpDocExtractor;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Exception\\MissingConstructorArgumentsException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Mapping\\AttributeMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface;\nuse Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface;\nuse Symf", "suffix": "e Symfony\\Component\\Serializer\\Tests\\Fixtures\\AbstractNormalizerDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\IgnoreDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DummyWithW", "middle": "ony\\Component\\Serializer\\Normalizer\\AbstractNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer;\nus", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/AbstractNormalizerTest.php", "language": "php", "file_size": 12414, "cut_index": 921, "middle_length": 229}} {"prefix": "eNumberFour;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DummySecondChildQuux;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DummyString;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DummyWithNotNormalizable;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DummyWithObjectOrBool;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DummyWithObjectOrNull;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DummyWithStringObject;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\ObjectDummyWithContext", "suffix": " = $normalizer->denormalize(['foo' => 'foo', 'bar' => 'bar', 'baz' => 'baz'], Dummy::class);\n\n $this->assertSame('foo', $normalizedData->foo);\n $this->assertNull($normalizedData->bar);\n $this->assertSame('baz', $normalizedData->baz);\n ", "middle": "Attribute;\nuse Symfony\\Component\\TypeInfo\\Type;\n\nclass AbstractObjectNormalizerTest extends TestCase\n{\n public function testDenormalize()\n {\n $normalizer = new AbstractObjectNormalizerDummy();\n $normalizedData", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php", "language": "php", "file_size": 76502, "cut_index": 3790, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\n\nclass ArrayDenormalizerTest extends TestCase\n{\n public function testDenormalize()\n {\n $series = [\n [[['foo' => 'one', 'bar' => 'two", "suffix": "enormalizer->expects($this->exactly(2))\n ->method('denormalize')\n ->willReturnCallback(function ($data) use (&$series) {\n [$expectedArgs, $return] = array_shift($series);\n $this->assertSame($expectedArgs,", "middle": "']], new ArrayDummy('one', 'two')],\n [[['foo' => 'three', 'bar' => 'four']], new ArrayDummy('three', 'four')],\n ];\n\n $nestedDenormalizer = $this->createMock(DenormalizerInterface::class);\n $nestedD", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/ArrayDenormalizerTest.php", "language": "php", "file_size": 4250, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Normalizer\\BackedEnumNormalizer;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\IntegerBackedEnumDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\StringBackedEnum", "suffix": "\n protected function setUp(): void\n {\n $this->normalizer = new BackedEnumNormalizer();\n }\n\n public function testSupportsNormalization()\n {\n $this->assertTrue($this->normalizer->supportsNormalization(StringBackedEnumDummy::GET))", "middle": "Dummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\UnitEnumDummy;\n\n/**\n * @author Alexandre Daubois \n */\nclass BackedEnumNormalizerTest extends TestCase\n{\n private BackedEnumNormalizer $normalizer;\n", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/BackedEnumNormalizerTest.php", "language": "php", "file_size": 8379, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Serializer\\NameConverter\\CamelCaseToSnakeCaseNameConverter;\nuse Symfony\\Component\\Serializer\\NameConverter\\MetadataAwareNameCon", "suffix": "Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\n\n/**\n * @author Grégoire Pineau \n * @author Kévin Dunglas \n */\nclass Constra", "middle": "verter;\nuse Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer;\nuse Symfony\\Component\\Serializer\\Tests\\Dummy\\DummyClassOne;\nuse Symfony\\Component\\Serializer\\Tests\\Dummy\\DummyClassTwo;\nuse Symfony\\Component\\", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/ConstraintViolationListNormalizerTest.php", "language": "php", "file_size": 7647, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Normalizer\\CustomNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\nuse Symfony\\Component\\Serializer\\Serializ", "suffix": "unction setUp(): void\n {\n $this->normalizer = new CustomNormalizer();\n $this->normalizer->setSerializer(new Serializer());\n }\n\n public function testInterface()\n {\n $this->assertInstanceOf(NormalizerInterface::class, $this->", "middle": "er;\nuse Symfony\\Component\\Serializer\\SerializerAwareInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\ScalarDummy;\n\nclass CustomNormalizerTest extends TestCase\n{\n private CustomNormalizer $normalizer;\n\n protected f", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/CustomNormalizerTest.php", "language": "php", "file_size": 3008, "cut_index": 563, "middle_length": 229}} {"prefix": "malization(new \\SplFileObject('data:,Hello%2C%20World!')));\n }\n\n #[RequiresPhpExtension('fileinfo')]\n public function testNormalizeHttpFoundationFile()\n {\n $file = new File(__DIR__.'/../Fixtures/test.gif');\n\n $this->assertSame(self::TEST_GIF_DATA, $this->normalizer->normalize($file));\n }\n\n #[RequiresPhpExtension('fileinfo')]\n public function testNormalizeSplFileInfo()\n {\n $file = new \\SplFileInfo(__DIR__.'/../Fixtures/test.gif');\n\n $this->assertSame(self::", "suffix": " = $this->normalizer->normalize($file);\n\n $this->assertSame(self::TEST_TXT_DATA, $data);\n $this->assertSame(self::TEST_TXT_CONTENT, file_get_contents($data));\n }\n\n public function testSupportsDenormalization()\n {\n $this->asser", "middle": "TEST_GIF_DATA, $this->normalizer->normalize($file));\n }\n\n #[RequiresPhpExtension('fileinfo')]\n public function testNormalizeText()\n {\n $file = new \\SplFileObject(__DIR__.'/../Fixtures/test.txt');\n\n $data", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/DataUriNormalizerTest.php", "language": "php", "file_size": 35612, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateIntervalNormalizer;\n\n/**\n * @author Jérôme Parmentier \n */\nclass DateIntervalNormalizerTest extends TestCase\n{\n private DateInter", "suffix": "%MM%DDT%HH%IM%SS', 'P00Y00M00DT00H00M00S', 'PT0S'],\n ['P%yY%mM%dDT%hH%iM%sS', 'P0Y0M0DT0H0M0S', 'PT0S'],\n ['P%yY%mM%dDT%hH%iM%sS', 'P10Y2M3DT16H5M6S', 'P10Y2M3DT16H5M6S'],\n ['P%yY%mM%dDT%hH%iM', 'P10Y2M3DT16H5M', 'P10Y2M3DT", "middle": "valNormalizer $normalizer;\n\n protected function setUp(): void\n {\n $this->normalizer = new DateIntervalNormalizer();\n }\n\n public static function dataProviderISO(): array\n {\n return [\n ['P%YY", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/DateIntervalNormalizerTest.php", "language": "php", "file_size": 6621, "cut_index": 716, "middle_length": 229}} {"prefix": " protected function setUp(): void\n {\n $this->normalizer = new DateTimeNormalizer();\n }\n\n public function testSupportsNormalization()\n {\n $this->assertTrue($this->normalizer->supportsNormalization(new \\DateTime()));\n $this->assertTrue($this->normalizer->supportsNormalization(new \\DateTimeImmutable()));\n $this->assertFalse($this->normalizer->supportsNormalization(new \\stdClass()));\n }\n\n public function testNormalize()\n {\n $this->assertEquals('2016-01-01", "suffix": "w \\DateTimeZone('UTC'))));\n }\n\n public function testNormalizeUsingFormatPassedInContext()\n {\n $this->assertEquals('2016', $this->normalizer->normalize(new \\DateTimeImmutable('2016/01/01'), null, [DateTimeNormalizer::FORMAT_KEY => 'Y']));\n ", "middle": "T00:00:00+00:00', $this->normalizer->normalize(new \\DateTime('2016/01/01', new \\DateTimeZone('UTC'))));\n $this->assertEquals('2016-01-01T00:00:00+00:00', $this->normalizer->normalize(new \\DateTimeImmutable('2016/01/01', ne", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php", "language": "php", "file_size": 22816, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateTimeZoneNormalizer;\n\n/**\n * @author Jérôme D", "suffix": "izer();\n }\n\n public function testSupportsNormalization()\n {\n $this->assertTrue($this->normalizer->supportsNormalization(new \\DateTimeZone('UTC')));\n $this->assertFalse($this->normalizer->supportsNormalization(new \\DateTimeImmutable()", "middle": "esjardins \n */\nclass DateTimeZoneNormalizerTest extends TestCase\n{\n private DateTimeZoneNormalizer $normalizer;\n\n protected function setUp(): void\n {\n $this->normalizer = new DateTimeZoneNormal", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeZoneNormalizerTest.php", "language": "php", "file_size": 2720, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Encoder;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Encoder\\YamlEncoderContextBuilder;\nuse Symfony\\Component\\Serializer\\Encoder\\YamlEncoder;\n\n/**\n * @author Mathias Arl", "suffix": "EncoderContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(array $values)\n {\n $context = $this->contextBuilder\n ->withIndentLeve", "middle": "aud \n */\nclass YamlEncoderContextBuilderTest extends TestCase\n{\n private YamlEncoderContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {\n $this->contextBuilder = new Yaml", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Encoder/YamlEncoderContextBuilderTest.php", "language": "php", "file_size": 1978, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormErrorIterator;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\FormErrorNormalizer;\n\nclass FormErrorNormalizerTest extends TestCase\n{\n private FormErrorNormalizer $normalizer;\n", "suffix": "bmitted')->willReturn(true);\n $this->form->method('all')->willReturn([]);\n\n $this->form->method('getErrors')\n ->willReturn(new FormErrorIterator($this->form, [\n new FormError('a', 'b', ['c', 'd'], 5, 'f'),\n ", "middle": " private FormInterface $form;\n\n protected function setUp(): void\n {\n $this->normalizer = new FormErrorNormalizer();\n\n $this->form = $this->createStub(FormInterface::class);\n $this->form->method('isSu", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/FormErrorNormalizerTest.php", "language": "php", "file_size": 4770, "cut_index": 614, "middle_length": 229}} {"prefix": "nent\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Serializer\\NameConverter\\CamelCaseToSnakeCaseNameConverter;\nuse Symfony\\Component\\Serializer\\NameConverter\\MetadataAwareNameConverter;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalize", "suffix": "Fixtures\\Attributes\\ClassWithIgnoreAnnotation;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\ClassWithIgnoreAttribute;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\GroupDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Circu", "middle": "r\\GetSetMethodNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\nuse Symfony\\Component\\Serializer\\Serializer;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\nuse Symfony\\Component\\Serializer\\Tests\\", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php", "language": "php", "file_size": 32114, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Attribute\\DiscriminatorMap;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Samuel Roze \n */\nclass DiscriminatorMapTe", "suffix": "]);\n\n $this->assertEquals('type', $attribute->typeProperty);\n $this->assertEquals([\n 'foo' => 'FooClass',\n 'bar' => 'BarClass',\n ], $attribute->mapping);\n }\n\n public function testExceptionWithEmptyTypeProper", "middle": "st extends TestCase\n{\n public function testGetTypePropertyAndMapping()\n {\n $attribute = new DiscriminatorMap(typeProperty: 'type', mapping: [\n 'foo' => 'FooClass',\n 'bar' => 'BarClass',\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Attribute/DiscriminatorMapTest.php", "language": "php", "file_size": 1784, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Attribute\\SerializedName;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Fabien Bourigault as", "middle": "com>\n */\nclass SerializedNameTest extends TestCase\n{\n public function testNotAStringSerializedNameParameter()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('Parame", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Attribute/SerializedNameTest.php", "language": "php", "file_size": 1047, "cut_index": 513, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\Serializer\\Attribute\\SerializedPath;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @aut", "suffix": "this->expectExceptionMessage('Parameter given to \"Symfony\\Component\\Serializer\\Attribute\\SerializedPath\" must be a valid property path.');\n\n new SerializedPath('');\n }\n\n public function testSerializedPath()\n {\n $path = '[one][two]';\n", "middle": "hor Tobias Bönner \n */\nclass SerializedPathTest extends TestCase\n{\n public function testEmptyStringSerializedPathParameter()\n {\n $this->expectException(InvalidArgumentException::class);\n $", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Attribute/SerializedPathTest.php", "language": "php", "file_size": 1191, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractNormalizer;\n\n/**\n * Provides a dummy Normalizer which extends the AbstractNormalizer.\n *\n * @author Konstantin S. M. Möllers \n */\nclass AbstractNormalizer", "suffix": "ool $attributesAsString = false): array|bool\n {\n return parent::getAllowedAttributes($classOrObject, $context, $attributesAsString);\n }\n\n public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|", "middle": "Dummy extends AbstractNormalizer\n{\n public function getSupportedTypes(?string $format): array\n {\n return ['*' => false];\n }\n\n public function getAllowedAttributes(string|object $classOrObject, array $context, b", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/AbstractNormalizerDummy.php", "language": "php", "file_size": 1473, "cut_index": 524, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Groups;\n\n/**\n * @author Samuel Roze \n */\nclass DummyMessageNumberTwo implements DummyMessageInterface\n{\n /**\n * @Groups({\"two\"})\n */\n public $t", "suffix": "\n * @var DummyMessageNumberOne\n */\n private $nested;\n\n public function setNested(DummyMessageNumberOne $nested)\n {\n $this->nested = $nested;\n }\n\n public function getNested(): DummyMessageNumberOne\n {\n return $this->n", "middle": "hree;\n\n /**", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/DummyMessageNumberTwo.php", "language": "php", "file_size": 802, "cut_index": 517, "middle_length": 14}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * @author Karoly Gossler \n */\nclass EnvelopeNormalizer implements NormalizerInterface\n{\n private $serializer;\n\n public function n", "suffix": " 'message' => $encodedContent,\n ];\n }\n\n public function getSupportedTypes(?string $format): array\n {\n return [\n EnvelopeObject::class => true,\n ];\n }\n\n public function supportsNormalization($data, ?s", "middle": "ormalize(mixed $data, ?string $format = null, array $context = []): array\n {\n $xmlContent = $this->serializer->serialize($data->message, 'xml');\n\n $encodedContent = base64_encode($xmlContent);\n\n return [\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/EnvelopeNormalizer.php", "language": "php", "file_size": 1221, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\n\nfinal class FooInterfaceDummyDenormalizer implements DenormalizerInterface\n{\n public function denormalize(mixed $data, string $type, ?string $format = null, ar", "suffix": "}\n\n return $result;\n }\n\n public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool\n {\n if (str_ends_with($type, '[]')) {\n $className = substr($type, 0, -2);\n ", "middle": "ray $context = []): array\n {\n $result = [];\n foreach ($data as $foo) {\n $fooDummy = new FooImplementationDummy();\n $fooDummy->name = $foo['name'];\n $result[] = $fooDummy;\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/FooInterfaceDummyDenormalizer.php", "language": "php", "file_size": 1448, "cut_index": 524, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizableInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\n\n/**\n * @author Jeroen \n */\nclass N", "suffix": "ce\n{\n public function __construct()\n {\n }\n\n public function denormalize(DenormalizerInterface $denormalizer, $data, ?string $format = null, array $context = []): void\n {\n throw new NotNormalizableValueException('Custom exception messa", "middle": "otNormalizableDummy implements DenormalizableInterfa", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/NotNormalizableDummy.php", "language": "php", "file_size": 881, "cut_index": 559, "middle_length": 52}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Groups;\nuse Symfony\\Component\\Serializer\\Attribute\\SerializedName;\n\n/**\n * @author Anthony GRASSIOT \n */\nclass OtherSerializedNameDummy\n{\n #[Groups(['a'])]\n private $buz;\n", "suffix": "nction setBuz($buz)\n {\n $this->buz = $buz;\n }\n\n public function getBuz()\n {\n return $this->buz;\n }\n\n #[Groups(['b']), SerializedName('buz')]\n public function getBuzForExport()\n {\n return $this->buz.' Rocks';\n ", "middle": "\n public fu", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/OtherSerializedNameDummy.php", "language": "php", "file_size": 811, "cut_index": 536, "middle_length": 14}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\nclass ScalarNormalizer implements NormalizerInterface\n{\n public function normalize(mixed $object, ?string $format = null, array $context = []): string", "suffix": " null, array $context = []): bool\n {\n return \\is_scalar($data);\n }\n\n public function getSupportedTypes(?string $format): array\n {\n return [\n 'native-boolean' => true,\n 'native-integer' => true,\n 'n", "middle": "\n {\n $data = $object;\n\n if (!\\is_string($data)) {\n $data = (string) $object;\n }\n\n return strtoupper($data);\n }\n\n public function supportsNormalization(mixed $data, ?string $format =", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/ScalarNormalizer.php", "language": "php", "file_size": 1040, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\n/**\n * @author Kévin Dunglas \n */\nclass SiblingHolder\n{\n private $sibling0;\n private $sibling1;\n private $sibling2;\n\n public function __construct()\n {\n $sibling = new Sibling();", "suffix": "\n {\n return $this->sibling1;\n }\n\n public function getSibling2()\n {\n return $this->sibling2;\n }\n}\n\n/**\n * @author Kévin Dunglas \n */\nclass Sibling\n{\n public function getCoopTilleuls()\n {\n return '", "middle": "\n\n $this->sibling0 = $sibling;\n $this->sibling1 = $sibling;\n $this->sibling2 = $sibling;\n }\n\n public function getSibling0()\n {\n return $this->sibling0;\n }\n\n public function getSibling1()", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/SiblingHolder.php", "language": "php", "file_size": 1027, "cut_index": 512, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\ProblemNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer;\n\n/**\n ", "suffix": " $this->contextBuilder = new ProblemNormalizerContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(array $values)\n {\n $context = $this->cont", "middle": "* @author Mathias Arlaud \n */\nclass ProblemNormalizerContextBuilderTest extends TestCase\n{\n private ProblemNormalizerContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/ProblemNormalizerContextBuilderTest.php", "language": "php", "file_size": 1816, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\UidNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse ", "suffix": ";\n\n protected function setUp(): void\n {\n $this->contextBuilder = new UidNormalizerContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(ar", "middle": "Symfony\\Component\\Serializer\\Normalizer\\UidNormalizer;\n\n/**\n * @author Mathias Arlaud \n */\nclass UidNormalizerContextBuilderTest extends TestCase\n{\n private UidNormalizerContextBuilder $contextBuilder", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/UidNormalizerContextBuilderTest.php", "language": "php", "file_size": 1869, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\UnwrappingDenormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentExcept", "suffix": "alizerContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {\n $this->contextBuilder = new UnwrappingDenormalizerContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataP", "middle": "ion;\nuse Symfony\\Component\\Serializer\\Normalizer\\UnwrappingDenormalizer;\n\n/**\n * @author Mathias Arlaud \n */\nclass UnwrappingDenormalizerContextBuilderTest extends TestCase\n{\n private UnwrappingDenorm", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/UnwrappingDenormalizerContextBuilderTest.php", "language": "php", "file_size": 1838, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Attribute\\Context;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper;\nuse Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait;\n\n/**\n * @author Maxime Steinhausser \n */\nclass ContextTest extends TestCase\n{\n u", "suffix": " $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('At least one of the \"context\", \"normalizationContext\", or \"denormalizationContext\" options must be provided as a non-empty array to \"Symfony\\Component\\Serial", "middle": "se VarDumperTestTrait;\n\n protected function setUp(): void\n {\n $this->setUpVarDumper([], CliDumper::DUMP_LIGHT_ARRAY | CliDumper::DUMP_TRAILING_COMMA);\n }\n\n public function testThrowsOnEmptyContext()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Attribute/ContextTest.php", "language": "php", "file_size": 5142, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Attribute\\MaxDepth;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Kévin D", "suffix": "eption::class);\n $this->expectExceptionMessage('Parameter given to \"Symfony\\Component\\Serializer\\Attribute\\MaxDepth\" must be a positive integer.');\n new MaxDepth($value);\n }\n\n public function testMaxDepthParameters()\n {\n $maxD", "middle": "unglas \n */\nclass MaxDepthTest extends TestCase\n{\n #[TestWith([-4])]\n #[TestWith([0])]\n public function testNotAnIntMaxDepthParameter(int $value)\n {\n $this->expectException(InvalidArgumentExc", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Attribute/MaxDepthTest.php", "language": "php", "file_size": 1086, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizableInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizableInterface;\nuse Symfony\\Component\\Seria", "suffix": " $normalizer, ?string $format = null, array $context = []): array|string|int|float|bool\n {\n return [\n 'foo' => $this->foo,\n 'bar' => $this->bar,\n 'baz' => $this->baz,\n 'qux' => $this->qux,\n ];\n ", "middle": "lizer\\Normalizer\\NormalizerInterface;\n\nclass Dummy implements NormalizableInterface, DenormalizableInterface\n{\n public $foo;\n public $bar;\n public $baz;\n public $qux;\n\n public function normalize(NormalizerInterface", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/Dummy.php", "language": "php", "file_size": 1323, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * @author Karoly Gossler \n */\nclass EnvelopedMessageNormalizer implements NormalizerInterface\n{\n public function normalize(mixed $data, ?string $format = null, array $context = []): array\n {\n ", "suffix": " ];\n }\n\n public function getSupportedTypes(?string $format): array\n {\n return [\n EnvelopedMessage::class => true,\n ];\n }\n\n public function supportsNormalization($data, ?string $format = null, array $context = []", "middle": " return [\n 'text' => $data->text,\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/EnvelopedMessageNormalizer.php", "language": "php", "file_size": 962, "cut_index": 582, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Uid\\Uuid;\n\nfinal class Php74Full\n{\n public string $string;\n public int $int;\n public float $float;\n public bool $bool;\n public \\DateTime $dateTime;\n public \\DateTimeImmutable $dateTimeImmuta", "suffix": "74FullWithConstructor;\n public Php74FullWithTypedConstructor $php74FullWithTypedConstructor;\n public DummyMessageInterface $dummyMessage;\n /** @var TestFoo[] $nestedArray */\n public TestFoo $nestedObject;\n /** @var Php74Full[] */\n public ", "middle": "ble;\n public \\DateTimeZone $dateTimeZone;\n public \\SplFileInfo $splFileInfo;\n public Uuid $uuid;\n public array $array;\n /** @var Php74Full[] */\n public array $collection;\n public Php74FullWithConstructor $php", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/Php74Full.php", "language": "php", "file_size": 1350, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer;\n\n/**\n * @author Guilhem N. \n */\nclass StaticConstructorNormalizer extends AbstractObjectNormalizer\n{\n public function getSupportedTypes(?string $format", "suffix": " }\n\n protected function getAttributeValue(object $object, string $attribute, ?string $format = null, array $context = []): mixed\n {\n return $object->$attribute;\n }\n\n protected function setAttributeValue(object $object, string $attribute,", "middle": "): array\n {\n return [StaticConstructorDummy::class];\n }\n\n protected function extractAttributes(object $object, ?string $format = null, array $context = []): array\n {\n return get_object_vars($object);\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/StaticConstructorNormalizer.php", "language": "php", "file_size": 1561, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\PropertyNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer;\n\n/**\n * @author Antoine Lamiraul", "suffix": "der = new PropertyNormalizerContextBuilder();\n }\n\n public function testWithNormalizeVisibility()\n {\n $context = $this->contextBuilder\n ->withNormalizeVisibility(PropertyNormalizer::NORMALIZE_PUBLIC | PropertyNormalizer::NORMALIZE", "middle": "t \n */\nclass PropertyNormalizerContextBuilderTest extends TestCase\n{\n private PropertyNormalizerContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {\n $this->contextBuil", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/PropertyNormalizerContextBuilderTest.php", "language": "php", "file_size": 1235, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Encoder;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Encoder\\JsonEncoderContextBuilder;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonDecode;\nuse Symfony\\Component\\Serial", "suffix": " void\n {\n $this->contextBuilder = new JsonEncoderContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(array $values)\n {\n $context ", "middle": "izer\\Encoder\\JsonEncode;\n\n/**\n * @author Mathias Arlaud \n */\nclass JsonEncoderContextBuilderTest extends TestCase\n{\n private JsonEncoderContextBuilder $contextBuilder;\n\n protected function setUp():", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Encoder/JsonEncoderContextBuilderTest.php", "language": "php", "file_size": 2012, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Attribute\\Groups;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Kévin Dunglas \n */\nclass GroupsTest ", "suffix": " $this->expectException(InvalidArgumentException::class);\n new Groups(['a', 1, new \\stdClass()]);\n }\n\n public function testGroupsParameters()\n {\n $validData = ['a', 'b'];\n\n $groups = new Groups($validData);\n $this->ass", "middle": "extends TestCase\n{\n public function testEmptyGroupsParameter()\n {\n $this->expectException(InvalidArgumentException::class);\n new Groups([]);\n }\n\n public function testInvalidGroupsParameter()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Attribute/GroupsTest.php", "language": "php", "file_size": 1191, "cut_index": 518, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nclass DummyWithWithVariadicParameterConstructor\n{\n private $foo;\n\n private $bar;\n\n private $baz;\n\n public function __construct(string $foo, int $bar = 1, Dummy ...$baz)\n {\n $this->foo = $foo;\n ", "suffix": "}\n\n public function getFoo(): string\n {\n return $this->foo;\n }\n\n public function getBar(): int\n {\n return $this->bar;\n }\n\n /** @return Dummy[] */\n public function getBaz(): array\n {\n return $this->baz;\n }\n", "middle": " $this->bar = $bar;\n $this->baz = $baz;\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/DummyWithWithVariadicParameterConstructor.php", "language": "php", "file_size": 824, "cut_index": 514, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizableInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizableInterface;\nuse Symfony\\Compon", "suffix": ", ?string $format = null, array $context = []): array|string|int|float|bool\n {\n return [\n 'foo' => 'normalizedFoo',\n 'bar' => 'normalizedBar',\n ];\n }\n\n public function denormalize(DenormalizerInterface $denormal", "middle": "ent\\Serializer\\Normalizer\\NormalizerInterface;\n\nclass NormalizableTraversableDummy extends TraversableDummy implements NormalizableInterface, DenormalizableInterface\n{\n public function normalize(NormalizerInterface $normalizer", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/NormalizableTraversableDummy.php", "language": "php", "file_size": 1106, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Normalizer\\FormErrorNormalizerContextBuilder;\nuse Symfony\\Component\\Serializer\\Normalizer\\FormErrorNormalizer;\n\n/", "suffix": "\n $this->contextBuilder = new FormErrorNormalizerContextBuilder();\n }\n\n /**\n * @param array $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(array $values)\n {\n $context = $", "middle": "**\n * @author Mathias Arlaud \n */\nclass FormErrorNormalizerContextBuilderTest extends TestCase\n{\n private FormErrorNormalizerContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Normalizer/FormErrorNormalizerContextBuilderTest.php", "language": "php", "file_size": 1838, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizableInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizableInterface;\nuse Symfony\\Component", "suffix": "ng $format = null, array $context = []): array|string|int|float|bool\n {\n return 'xml' === $format ? $this->xmlFoo : $this->foo;\n }\n\n public function denormalize(DenormalizerInterface $denormalizer, array|string|int|float|bool $data, ?string", "middle": "\\Serializer\\Normalizer\\NormalizerInterface;\n\nclass ScalarDummy implements NormalizableInterface, DenormalizableInterface\n{\n public $foo;\n public $xmlFoo;\n\n public function normalize(NormalizerInterface $normalizer, ?stri", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Fixtures/ScalarDummy.php", "language": "php", "file_size": 1188, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Context\\Encoder;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Context\\Encoder\\CsvEncoderContextBuilder;\nuse Symfony\\Component\\Serializer\\Encoder\\CsvEncoder;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\n\n/**\n * @author Mathias Arlaud $values\n */\n #[DataProvider('withersDataProvider')]\n public function testWithers(array $values)\n {\n $context = $this->contextBuilder\n ->withDelimiter($values[CsvEn", "middle": "as.arlaud@gmail.com>\n */\nclass CsvEncoderContextBuilderTest extends TestCase\n{\n private CsvEncoderContextBuilder $contextBuilder;\n\n protected function setUp(): void\n {\n $this->contextBuilder = new CsvEncoderContex", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Context/Encoder/CsvEncoderContextBuilderTest.php", "language": "php", "file_size": 4194, "cut_index": 614, "middle_length": 229}} {"prefix": "tor;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor;\nuse Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * Test AbstractNormalizer::CALLBACKS.\n */\ntrait CallbacksTestTrait\n{\n abstract protected function getNormalizerForCallbacks(): NormalizerInterface;\n\n abstract protected function getNormalizerForCallbacksWithPropertyTypeExtractor(): Norma", "suffix": "backsObject();\n $obj->bar = $valueBar;\n\n $this->assertSame($result, $normalizer->normalize($obj, 'any', ['callbacks' => $callbacks]));\n }\n\n #[DataProvider('provideNormalizeCallbacks')]\n public function testNormalizeCallbacksWithTyped", "middle": "lizerInterface;\n\n #[DataProvider('provideNormalizeCallbacks')]\n public function testNormalizeCallbacks($callbacks, $valueBar, $result)\n {\n $normalizer = $this->getNormalizerForCallbacks();\n\n $obj = new Call", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/CallbacksTestTrait.php", "language": "php", "file_size": 10661, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Serializer\\Exception\\CircularReferenceException;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * Test AbstractNormalizer::CIRCULAR_REFERENCE_LIMIT and AbstractNorma", "suffix": "rencingModel();\n\n public static function provideUnableToNormalizeCircularReference(): array\n {\n return [\n [[], [], 1],\n [['circular_reference_limit' => 2], [], 2],\n [['circular_reference_limit' => 2], ['circula", "middle": "lizer::CIRCULAR_REFERENCE_HANDLER.\n */\ntrait CircularReferenceTestTrait\n{\n abstract protected function getNormalizerForCircularReference(array $defaultContext): NormalizerInterface;\n\n abstract protected function getSelfRefe", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/CircularReferenceTestTrait.php", "language": "php", "file_size": 2452, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Serializer\\Command\\DebugCommand;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Serializer\\Tests\\Dummy\\DummyClassOne;\nuse Symfony\\Component\\Serializer\\Tests\\Dummy\\DummyClassWithDiscriminatorMap;\n\n/**\n * @au", "suffix": "\n $tester = new CommandTester($command);\n $tester->execute(['class' => DummyClassOne::class], ['decorated' => false]);\n\n $this->assertSame(<<\n */\nclass DebugCommandTest extends TestCase\n{\n public function testOutputWithClassArgument()\n {\n $command = new DebugCommand(new ClassMetadataFactory(new AttributeLoader()));\n", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Command/DebugCommandTest.php", "language": "php", "file_size": 6403, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Debug;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\DataCollector\\SerializerDataCollector;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableEncoder;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableSerializer;\nuse Symfony\\Component\\Serializer\\Encoder\\DecoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\En", "suffix": "\n ->method('encode')\n ->with('data', 'format', $this->isArray())\n ->willReturn('encoded');\n\n $decoder = $this->createMock(DecoderInterface::class);\n $decoder\n ->expects($this->once())\n ->", "middle": "coderInterface;\n\nclass TraceableEncoderTest extends TestCase\n{\n public function testForwardsToEncoder()\n {\n $encoder = $this->createMock(EncoderInterface::class);\n $encoder\n ->expects($this->once())", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Debug/TraceableEncoderTest.php", "language": "php", "file_size": 4462, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Debug;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\DataCollector\\SerializerDataCollector;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableNormalizer;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableSerializer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\nclass TraceableNormalizerTest extends TestCase\n{\n public function", "suffix": ">once())\n ->method('normalize')\n ->with('data', 'format', $this->isArray())\n ->willReturn('normalized');\n\n $denormalizer = $this->createMock(DenormalizerInterface::class);\n $denormalizer->method('getSupportedT", "middle": " testForwardsToNormalizer()\n {\n $normalizer = $this->createMock(NormalizerInterface::class);\n $normalizer->method('getSupportedTypes')->willReturn(['*' => false]);\n $normalizer\n ->expects($this-", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Debug/TraceableNormalizerTest.php", "language": "php", "file_size": 5477, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Debug;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\DataCollector\\SerializerDataCollector;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableSerializer;\nuse Symfony\\Component\\Serializer\\Encoder\\DecoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\EncoderInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\nuse Symfony", "suffix": " ->expects($this->once())\n ->method('serialize')\n ->with('data', 'format', $this->isArray())\n ->willReturn('serialized');\n $serializer\n ->expects($this->once())\n ->method('deserialize')\n", "middle": "\\Component\\Serializer\\SerializerInterface;\n\nclass TraceableSerializerTest extends TestCase\n{\n public function testForwardsToSerializer()\n {\n $serializer = $this->createMock(Serializer::class);\n $serializer\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Debug/TraceableSerializerTest.php", "language": "php", "file_size": 8526, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\NameConverter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedPropertyException;\nuse Symfony\\Component\\Serializer\\NameConverter\\CamelCaseToSnakeCaseNameConverter;\nuse Symfony\\Component\\Serialize", "suffix": "c function testInterface()\n {\n $attributeMetadata = new CamelCaseToSnakeCaseNameConverter();\n $this->assertInstanceOf(NameConverterInterface::class, $attributeMetadata);\n }\n\n #[DataProvider('attributeProvider')]\n public function t", "middle": "r\\NameConverter\\NameConverterInterface;\n\n/**\n * @author Kévin Dunglas \n * @author Aurélien Pillevesse \n */\nclass CamelCaseToSnakeCaseNameConverterTest extends TestCase\n{\n publi", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/NameConverter/CamelCaseToSnakeCaseNameConverterTest.php", "language": "php", "file_size": 2728, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\NameConverter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Attribute\\SerializedName;\nuse Symfony\\Component\\Serializer\\Attribute\\SerializedPath;\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Ser", "suffix": "izer\\Tests\\Fixtures\\OtherSerializedNameDummy;\n\n/**\n * @author Fabien Bourigault \n */\nfinal class MetadataAwareNameConverterTest extends TestCase\n{\n public function testInterface()\n {\n $nameConverter = new MetadataAw", "middle": "ializer\\NameConverter\\MetadataAwareNameConverter;\nuse Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\SerializedNameDummy;\nuse Symfony\\Component\\Serial", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/NameConverter/MetadataAwareNameConverterTest.php", "language": "php", "file_size": 7115, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\NameConverter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProviderExternal;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedPropertyException;\nuse Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface;\nuse Symfony\\Component\\Serializer\\N", "suffix": " public function testInterface()\n {\n $attributeMetadata = new SnakeCaseToCamelCaseNameConverter();\n $this->assertInstanceOf(NameConverterInterface::class, $attributeMetadata);\n }\n\n #[DataProviderExternal(CamelCaseToSnakeCaseNameCon", "middle": "ameConverter\\SnakeCaseToCamelCaseNameConverter;\n\n/**\n * @author Kévin Dunglas \n * @author Aurélien Pillevesse \n */\nclass SnakeCaseToCamelCaseNameConverterTest extends TestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/NameConverter/SnakeCaseToCamelCaseNameConverterTest.php", "language": "php", "file_size": 2432, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Encoder\\ChainDecoder;\nuse Symfony\\Component\\Serializer\\Encoder\\ContextAwareDecoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\DecoderInterface;\nuse Symfony\\Component\\Serializer\\Exception\\RuntimeException;\n\nclass ChainDecoderTest extends TestCase\n{\n", "suffix": "er1\n ->method('decode')\n ->willReturn('result1');\n $decoder2 = $this->createDecoder2();\n $decoder2\n ->method('decode')\n ->willReturn('result2');\n $chainDecoder = new ChainDecoder([$decoder1, ", "middle": " private const FORMAT_1 = 'format1';\n private const FORMAT_2 = 'format2';\n private const FORMAT_3 = 'format3';\n\n public function testSupportsDecoding()\n {\n $decoder1 = $this->createDecoder1();\n $decod", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Encoder/ChainDecoderTest.php", "language": "php", "file_size": 3930, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableEncoder;\nuse Symfony\\Component\\Serializer\\Encoder\\ChainEncoder;\nuse Symfony\\Component\\Serializer\\Encoder\\ContextAwareEncoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\EncoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\NormalizationAwareInterface;\nuse Symfony\\Component\\Serializer\\Exception\\RuntimeException;\n\nclass ChainEncode", "suffix": "ncoder1();\n $encoder1\n ->method('encode')\n ->willReturn('result1');\n $encoder2 = $this->createEncoder2();\n $encoder2\n ->method('encode')\n ->willReturn('result2');\n\n $chainEncoder = new", "middle": "rTest extends TestCase\n{\n private const FORMAT_1 = 'format1';\n private const FORMAT_2 = 'format2';\n private const FORMAT_3 = 'format3';\n\n public function testSupportsEncoding()\n {\n $encoder1 = $this->createE", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Encoder/ChainEncoderTest.php", "language": "php", "file_size": 5655, "cut_index": 716, "middle_length": 229}} {"prefix": " 'int' => 2,\n 'false' => false,\n 'true' => true,\n 'int_one' => 1,\n 'string_one' => '1',\n ];\n\n // Check that true and false are appropriately handled\n $this->assertSame($csv = <<<'CSV'\n string,int,false,true,int_one,string_one\n foo,2,0,1,1,1\n\n CSV,\n $this->encoder->encode($data, 'csv')\n );\n\n $this->assertSame([\n 'string' => 'foo',\n 'int' => '2',\n 'fal", "suffix": "eQuotesAndSlashes()\n {\n $this->assertSame($csv = <<<'CSV'\n 0,1,2,3,4,5\n ,\"\"\"\",\"foo\"\"\",\"\\\"\"\",\\,foo\\\n\n CSV,\n $this->encoder->encode($data = ['', '\"', 'foo\"', '\\\\\"', '\\\\', 'foo\\\\'], 'csv')\n );\n\n ", "middle": "se' => '0',\n 'true' => '1',\n 'int_one' => '1',\n 'string_one' => '1',\n ], $this->encoder->decode($csv, 'csv', [CsvEncoder::AS_COLLECTION_KEY => false]));\n }\n\n public function testDoubl", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php", "language": "php", "file_size": 20251, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonDecode;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException;\n\nclass JsonDeco", "suffix": "is->decode->supportsDecoding(JsonEncoder::FORMAT));\n $this->assertFalse($this->decode->supportsDecoding('foobar'));\n }\n\n #[DataProvider('decodeProvider')]\n public function testDecode($toDecode, $expected, $context)\n {\n $this->asse", "middle": "deTest extends TestCase\n{\n private JsonDecode $decode;\n\n protected function setUp(): void\n {\n $this->decode = new JsonDecode();\n }\n\n public function testSupportsDecoding()\n {\n $this->assertTrue($th", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Encoder/JsonDecodeTest.php", "language": "php", "file_size": 2293, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncode;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedValue", "suffix": " $this->assertTrue($this->encode->supportsEncoding(JsonEncoder::FORMAT));\n $this->assertFalse($this->encode->supportsEncoding('foobar'));\n }\n\n #[DataProvider('encodeProvider')]\n public function testEncode($toEncode, $expected, $context)", "middle": "Exception;\n\nclass JsonEncodeTest extends TestCase\n{\n private JsonEncode $encode;\n\n protected function setUp(): void\n {\n $this->encode = new JsonEncode();\n }\n\n public function testSupportsEncoding()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Encoder/JsonEncodeTest.php", "language": "php", "file_size": 1659, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Serializer\\Normalizer\\CustomNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer;\n\nclass JsonEncoderTest extends TestCase\n{\n private JsonE", "suffix": "Encoder()]);\n }\n\n public function testEncodeScalar()\n {\n $obj = new \\stdClass();\n $obj->foo = 'foo';\n\n $expected = '{\"foo\":\"foo\"}';\n\n $this->assertEquals($expected, $this->encoder->encode($obj, 'json'));\n }\n\n publ", "middle": "ncoder $encoder;\n private Serializer $serializer;\n\n protected function setUp(): void\n {\n $this->encoder = new JsonEncoder();\n $this->serializer = new Serializer([new CustomNormalizer()], ['json' => new Json", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Encoder/JsonEncoderTest.php", "language": "php", "file_size": 4024, "cut_index": 614, "middle_length": 229}} {"prefix": "#[DataProvider('validEncodeProvider')]\n public function testEncode(string $expected, mixed $data, array $context = [])\n {\n $this->assertSame($expected, $this->encoder->encode($data, 'xml', $context));\n }\n\n /**\n * @return iterable\n */\n public static function validEncodeProvider(): iterable\n {\n $obj = new ScalarDummy();\n $obj->xmlFoo = 'foo';\n\n yield 'encode scalar' => [\n ''.\"\\n\"\n ", "suffix": "ayObject(['foo' => 'bar']),\n ];\n\n yield 'encode empty array object' => [\n ''.\"\\n\".''.\"\\n\",\n new \\ArrayObject(),\n ];\n\n $obj = new ScalarDummy();\n $obj->xmlFoo = [\n ", "middle": " .'foo'.\"\\n\",\n $obj,\n ];\n\n yield 'encode array object' => [\n ''.\"\\n\"\n .'bar'.\"\\n\",\n new \\Arr", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php", "language": "php", "file_size": 37324, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Encoder\\YamlEncoder;\nuse Symfony\\Component\\Serializer\\Exception\\NotEncodableValueException;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * @author Kévin Dunglas \n */\nclass YamlEncoderTest extends TestCase\n{\n public function testEncode()\n ", "suffix": " $encoder->encode(new \\ArrayObject(['foo' => 1]), 'yaml'));\n $this->assertEquals('{ foo: 1 }', $encoder->encode(new \\ArrayObject(['foo' => 1]), 'yaml', ['preserve_empty_objects' => true]));\n }\n\n public function testSupportsEncoding()\n {\n ", "middle": " {\n $encoder = new YamlEncoder();\n\n $this->assertEquals('foo', $encoder->encode('foo', 'yaml'));\n $this->assertEquals('{ foo: 1 }', $encoder->encode(['foo' => 1], 'yaml'));\n $this->assertEquals('null',", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Encoder/YamlEncoderTest.php", "language": "php", "file_size": 3491, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Serializer\\DependencyInjection\\AttributeMetadataPass;\nuse Symfony\\Component\\Serializer\\Exception\\MappingException;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\n\nclass Attribut", "suffix": "ess($container);\n\n $this->expectNotToPerformAssertions();\n }\n\n public function testProcessWithAttributeLoaderButNoTaggedServices()\n {\n $container = new ContainerBuilder();\n $container->register('serializer.mapping.attribute_lo", "middle": "eMetadataPassTest extends TestCase\n{\n public function testProcessWithNoAttributeLoader()\n {\n $container = new ContainerBuilder();\n\n // Should not throw any exception\n (new AttributeMetadataPass())->proc", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/DependencyInjection/AttributeMetadataPassTest.php", "language": "php", "file_size": 4372, "cut_index": 614, "middle_length": 229}} {"prefix": "endencyInjection\\SerializerPass;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\n\n/**\n * Tests for the SerializerPass class.\n *\n * @author Javier Lopez \n */\nclass SerializerPassTest extends TestCase\n{\n public function testThrowExceptionWhenNoNormalizers()\n {\n $container = new Co", "suffix": " $this->expectExceptionMessage('You must tag at least one service as \"serializer.normalizer\" to use the \"serializer\" service');\n\n $serializerPass->process($container);\n }\n\n public function testThrowExceptionWhenNoEncoders()\n {\n ", "middle": "ntainerBuilder();\n $container->setParameter('kernel.debug', false);\n $container->register('serializer');\n\n $serializerPass = new SerializerPass();\n\n $this->expectException(\\RuntimeException::class);\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/DependencyInjection/SerializerPassTest.php", "language": "php", "file_size": 33155, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Extractor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface;\nuse Symfony\\Component\\Serializer\\Extractor\\ObjectPropertyListExtractor;\n\nclass ObjectPropertyListExtractorTest extends TestCase\n{\n public fu", "suffix": "rtyListExtractorInterface::class);\n $propertyListExtractor->expects($this->once())\n ->method('getProperties')\n ->with($object::class, $context)\n ->willReturn($properties);\n\n $this->assertSame(\n $pro", "middle": "nction testGetPropertiesWithoutObjectClassResolver()\n {\n $object = new \\stdClass();\n $context = ['bar' => true];\n $properties = ['prop1', 'prop2'];\n\n $propertyListExtractor = $this->createMock(Prope", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Extractor/ObjectPropertyListExtractorTest.php", "language": "php", "file_size": 1949, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Debug;\n\nuse Symfony\\Component\\Serializer\\DataCollector\\SerializerDataCollector;\nuse Symfony\\Component\\Serializer\\Encoder\\DecoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\EncoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\NormalizationAwareInterface;\nuse Symfony\\Component\\Serializer\\SerializerAwareInterface;\nuse Symfon", "suffix": " SerializerAwareInterface\n{\n public function __construct(\n private EncoderInterface|DecoderInterface $encoder,\n private SerializerDataCollector $dataCollector,\n private readonly string $serializerName = 'default',\n ) {\n }\n\n ", "middle": "y\\Component\\Serializer\\SerializerInterface;\n\n/**\n * Collects some data about encoding.\n *\n * @author Mathias Arlaud \n *\n * @final\n */\nclass TraceableEncoder implements EncoderInterface, DecoderInterface,", "meta": {"filepath": "src/Symfony/Component/Serializer/Debug/TraceableEncoder.php", "language": "php", "file_size": 3649, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Debug;\n\nuse Symfony\\Component\\Serializer\\DataCollector\\SerializerDataCollector;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerAwareInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerAwareInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\Norm", "suffix": "com>\n *\n * @final\n */\nclass TraceableNormalizer implements NormalizerInterface, DenormalizerInterface, SerializerAwareInterface, NormalizerAwareInterface, DenormalizerAwareInterface\n{\n public function __construct(\n private NormalizerInterface|Den", "middle": "alizerInterface;\nuse Symfony\\Component\\Serializer\\SerializerAwareInterface;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\n\n/**\n * Collects some data about normalization.\n *\n * @author Mathias Arlaud \n *\n * @final\n */\nclass TraceableSerializer implements SerializerInterface, NormalizerInterface, DenormalizerInterface, EncoderInterface, DecoderInterface\n{\n public const DEBUG_T", "meta": {"filepath": "src/Symfony/Component/Serializer/Debug/TraceableSerializer.php", "language": "php", "file_size": 6674, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\NameConverter;\n\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedPropertyException;\n\n/**\n * CamelCase to Underscore name converter.\n *\n * @author Kévin Dunglas \n * @author Aurélien Pillevesse \n */\nclass CamelCaseToSnakeCaseNameConve", "suffix": "|null $attributes The list of attributes to rename or null for all attributes\n * @param bool $lowerCamelCase Use lowerCamelCase style\n */\n public function __construct(\n private ?array $attributes = null,\n private bool ", "middle": "rter implements NameConverterInterface\n{\n /**\n * Require all properties to be written in snake_case.\n */\n public const REQUIRE_SNAKE_CASE_PROPERTIES = 'require_snake_case_properties';\n\n /**\n * @param string[]", "meta": {"filepath": "src/Symfony/Component/Serializer/NameConverter/CamelCaseToSnakeCaseNameConverter.php", "language": "php", "file_size": 2663, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\NameConverter;\n\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractNormalizer;\n\n/**\n * @author Fabien Bourigault \n */\nfinal class MetadataAwareNameConverter implements NameConverterInterface\n{\n /**\n * @var array>\n */\n priv", "suffix": "private static array $attributesMetadataCache = [];\n\n public function __construct(\n private readonly ClassMetadataFactoryInterface $metadataFactory,\n private readonly ?NameConverterInterface $fallbackNameConverter = null,\n ) {\n }\n\n ", "middle": "ate static array $normalizeCache = [];\n\n /**\n * @var array>\n */\n private static array $denormalizeCache = [];\n\n /**\n * @var array>\n */\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/NameConverter/MetadataAwareNameConverter.php", "language": "php", "file_size": 6093, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\NameConverter;\n\n/**\n * Defines the interface for property name converters.\n *\n * @author Kévin Dunglas \n */\ninterface NameConverterInterface\n{\n /**\n * Converts a property name to its normalized value.\n *\n ", "suffix": "\n * Converts a property name to its denormalized value.\n *\n * @param class-string|null $class\n * @param array $context\n */\n public function denormalize(string $propertyName, ?string $class = null, ?string $format = ", "middle": " * @param class-string|null $class\n * @param array $context\n */\n public function normalize(string $propertyName, ?string $class = null, ?string $format = null, array $context = []): string;\n\n /**", "meta": {"filepath": "src/Symfony/Component/Serializer/NameConverter/NameConverterInterface.php", "language": "php", "file_size": 1037, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\NameConverter;\n\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedPropertyException;\n\n/**\n * Underscore to camelCase name converter.\n *\n * @author Kévin Dunglas \n */\nfinal class SnakeCaseToCamelCaseNameConverter implements NameConverterInterface\n{\n /**\n * R", "suffix": "null for all attributes\n * @param bool $lowerCamelCase Use lowerCamelCase style\n */\n public function __construct(\n private readonly ?array $attributes = null,\n private readonly bool $lowerCamelCase = true,\n ) {\n }\n\n ", "middle": "equire all properties to be written in camelCase.\n */\n public const REQUIRE_CAMEL_CASE_PROPERTIES = 'require_camel_case_properties';\n\n /**\n * @param string[]|null $attributes The list of attributes to rename or ", "meta": {"filepath": "src/Symfony/Component/Serializer/NameConverter/SnakeCaseToCamelCaseNameConverter.php", "language": "php", "file_size": 2460, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Exception\\RuntimeException;\n\n/**\n * Decoder delegating the decoding to a chain of decoders.\n *\n * @author Jordi Boggiano \n * @author Johannes M. Schmitt \n * @author Lukas Kahwe Smith getDecoder($format, $context)", "middle": "org>\n *\n * @final\n */\nclass ChainDecoder implements ContextAwareDecoderInterface\n{\n /**\n * @var array\n */\n private array $decoderByFormat = [];\n\n /**\n * @param array $deco", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/ChainDecoder.php", "language": "php", "file_size": 2259, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Debug\\TraceableEncoder;\nuse Symfony\\Component\\Serializer\\Exception\\RuntimeException;\n\n/**\n * Encoder delegating the decoding to a chain of encoders.\n *\n * @author Jordi Boggiano \n * @author Johannes M. Schmitt $encoders\n */\n public function __construct(\n private readonly array $encoders = [],\n ) {\n }\n\n final public function encode(mixed $data, string $format, array $context = []): string\n", "middle": "mail.com>\n * @author Lukas Kahwe Smith \n *\n * @final\n */\nclass ChainEncoder implements ContextAwareEncoderInterface\n{\n /**\n * @var array\n */\n private array $encoderByFormat =", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/ChainEncoder.php", "language": "php", "file_size": 2912, "cut_index": 563, "middle_length": 229}} {"prefix": "ValueException;\n\n/**\n * Encodes CSV data.\n *\n * @author Kévin Dunglas \n * @author Oliver Hoff \n */\nclass CsvEncoder implements EncoderInterface, DecoderInterface\n{\n public const FORMAT = 'csv';\n public const DELIMITER_KEY = 'csv_delimiter';\n public const ENCLOSURE_KEY = 'csv_enclosure';\n public const KEY_SEPARATOR_KEY = 'csv_key_separator';\n public const HEADERS_KEY = 'csv_headers';\n public const ESCAPE_FORMULAS_KEY = 'csv_escape_formulas';\n public c", "suffix": "\\xEF\\xBB\\xBF\";\n\n private const FORMULAS_START_CHARACTERS = ['=', '-', '+', '@', \"\\t\", \"\\r\", \"\\n\"];\n\n private array $defaultContext = [\n self::DELIMITER_KEY => ',',\n self::ENCLOSURE_KEY => '\"',\n self::END_OF_LINE => \"\\n\",\n ", "middle": "onst AS_COLLECTION_KEY = 'as_collection';\n public const NO_HEADERS_KEY = 'no_headers';\n public const END_OF_LINE = 'csv_end_of_line';\n public const OUTPUT_UTF8_BOM_KEY = 'output_utf8_bom';\n\n private const UTF8_BOM = \"", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/CsvEncoder.php", "language": "php", "file_size": 9906, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException;\n\n/**\n * @author Jordi Boggiano \n */\ninterface DecoderInterface\n{\n /**\n * Decodes a string into PHP data.\n *\n * @param string ", "suffix": "data is in; valid values\n * depend on the specific implementation. Authors implementing this interface\n * are encouraged to document which formats they support in a non-inherited\n * phpdoc comment.\n *\n * @throws UnexpectedValueException", "middle": " $data Data to decode\n * @param string $format Format name\n * @param array $context Options that decoders have access to\n *\n * The format parameter specifies which format the ", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/DecoderInterface.php", "language": "php", "file_size": 1300, "cut_index": 524, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException;\n\n/**\n * @author Jordi Boggiano \n */\ninterface EncoderInterface\n{\n /**\n * Encodes data into the given format.\n *\n * @param ", "suffix": "ueException\n */\n public function encode(mixed $data, string $format, array $context = []): string;\n\n /**\n * Checks whether the serializer can encode to given format.\n *\n * @param string $format Format name\n */\n public function ", "middle": "mixed $data Data to encode\n * @param string $format Format name\n * @param array $context Options that normalizers/encoders have access to\n *\n * @throws UnexpectedVal", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/EncoderInterface.php", "language": "php", "file_size": 1040, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Encoder;\n\nuse Seld\\JsonLint\\JsonParser;\nuse Symfony\\Component\\Serializer\\Exception\\NotEncodableValueException;\nuse Symfony\\Component\\Serializer\\Exception\\UnsupportedException;\n\n/**\n * Decodes JSON data.\n *\n * @author Sander Coolen \n */\nclass JsonDecode implements DecoderInterface\n{\n /**\n * True to return the re", "suffix": " json_decode fails.\n */\n public const DETAILED_ERROR_MESSAGES = 'json_decode_detailed_errors';\n\n public const OPTIONS = 'json_decode_options';\n\n /**\n * Specifies the recursion depth.\n */\n public const RECURSION_DEPTH = 'json_decode_", "middle": "sult as an associative array, false for a nested stdClass hierarchy.\n */\n public const ASSOCIATIVE = 'json_decode_associative';\n\n /**\n * True to enable seld/jsonlint as a source for more specific error messages when", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/JsonDecode.php", "language": "php", "file_size": 4295, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Exception\\NotEncodableValueException;\n\n/**\n * Encodes JSON data.\n *\n * @author Sander Coolen \n */\nclass JsonEncode implements EncoderInterface\n{\n /**\n * Configure the JSON flags bitmask.\n ", "suffix": "$this->defaultContext = array_merge($this->defaultContext, $defaultContext);\n }\n\n public function encode(mixed $data, string $format, array $context = []): string\n {\n $options = $context[self::OPTIONS] ?? $this->defaultContext[self::OPTIONS", "middle": "*/\n public const OPTIONS = 'json_encode_options';\n\n private array $defaultContext = [\n self::OPTIONS => \\JSON_PRESERVE_ZERO_FRACTION,\n ];\n\n public function __construct(array $defaultContext = [])\n {\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/JsonEncode.php", "language": "php", "file_size": 1682, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\PhpDocExtractor;\nuse Symfony\\Component\\Serializer\\Attribute\\Context;\nuse Symfony\\Component\\Serializer\\Attribute\\Groups;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Serializer\\NameConverter\\CamelCaseToSnake", "suffix": "alizer metadata.\n *\n * @author Maxime Steinhausser \n */\ntrait ContextMetadataTestTrait\n{\n #[DataProvider('contextMetadataDummyProvider')]\n public function testContextMetadataNormalize(string $contextMetadataDummyClass)\n", "middle": "CaseNameConverter;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer;\n\n/**\n * Test context handling from Seri", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/ContextMetadataTestTrait.php", "language": "php", "file_size": 6187, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\GroupDummy;\n\n/**\n * Test AbstractNormalizer::GROUPS.\n */\ntrait Grou", "suffix": " $normalizer = $this->getNormalizerForGroups();\n\n $obj = new GroupDummy();\n $obj->setFoo('foo');\n $obj->setBar('bar');\n $obj->setQuux('quux');\n $obj->setFooBar('fooBar');\n $obj->setSymfony('symfony');\n $", "middle": "psTestTrait\n{\n abstract protected function getNormalizerForGroups(): NormalizerInterface;\n\n abstract protected function getDenormalizerForGroups(): DenormalizerInterface;\n\n public function testGroupsNormalize()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/GroupsTestTrait.php", "language": "php", "file_size": 2533, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\MaxDepthDummy;\n\n/**\n * Covers AbstractObjectNormalizer::ENABLE_MAX_DEPTH and AbstractObjectNormalizer::MAX_DEPTH_HANDLER.\n */\ntrait Ma", "suffix": "Dummy();\n $level1->bar = 'level1';\n\n $level2 = new MaxDepthDummy();\n $level2->bar = 'level2';\n $level1->child = $level2;\n\n $level3 = new MaxDepthDummy();\n $level3->bar = 'level3';\n $level2->child = $level3;\n", "middle": "xDepthTestTrait\n{\n abstract protected function getNormalizerForMaxDepth(): NormalizerInterface;\n\n public function testMaxDepth()\n {\n $normalizer = $this->getNormalizerForMaxDepth();\n\n $level1 = new MaxDepth", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/MaxDepthTestTrait.php", "language": "php", "file_size": 3001, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Context;\nuse Symfony\\Component\\Serializer\\Attribute\\SerializedName;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer;\n\nfinal class ObjectDummyWithContextAttribute\n{\n public function ", "suffix": "FORMAT_KEY => 'm-d-Y'])]\n #[SerializedName('property_with_serialized_name')]\n public \\DateTimeImmutable $propertyWithSerializedName,\n\n #[Context([DateTimeNormalizer::FORMAT_KEY => 'm-d-Y'])]\n public \\DateTimeImmutable $propertyW", "middle": "__construct(\n #[Context([DateTimeNormalizer::", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/ObjectDummyWithContextAttribute.php", "language": "php", "file_size": 893, "cut_index": 547, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DeepObjectPopulateChildDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\DeepObjectPopulateParentDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\ProxyDummy;\nuse Symfony\\Component\\Ser", "suffix": "$dummy = new ObjectDummy();\n $dummy->bar = 'bar';\n\n $denormalizer = $this->getDenormalizerForObjectToPopulate();\n\n $obj = $denormalizer->denormalize(\n ['foo' => 'foo'],\n ObjectDummy::class,\n null,\n ", "middle": "ializer\\Tests\\Fixtures\\ToBeProxyfiedDummy;\n\ntrait ObjectToPopulateTestTrait\n{\n abstract protected function getDenormalizerForObjectToPopulate(): DenormalizerInterface;\n\n public function testObjectToPopulate()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/ObjectToPopulateTestTrait.php", "language": "php", "file_size": 3402, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\PropertyAccess\\Exception\\UninitializedPropertyException;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer;\n\n/**\n * Test AbstractObjectNormalizer::SKIP_UNINITIALIZED_VALU", "suffix": " testSkipUninitializedValues(array $context)\n {\n $object = new TypedPropertiesObjectWithGetters();\n\n $normalizer = $this->getNormalizerForSkipUninitializedValues();\n $result = $normalizer->normalize($object, null, $context);\n ", "middle": "ES.\n */\ntrait SkipUninitializedValuesTestTrait\n{\n abstract protected function getNormalizerForSkipUninitializedValues(): AbstractObjectNormalizer;\n\n #[DataProvider('skipUninitializedValuesFlagProvider')]\n public function", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/SkipUninitializedValuesTestTrait.php", "language": "php", "file_size": 2318, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nclass TypedPropertiesObjectWithGetters extends TypedPropertiesObject\n{\n public function getUnInitialized(): string\n {\n return $this->unInitialized;\n }\n\n public function setUnInitialized(strin", "suffix": "lized(string $initialized): self\n {\n $this->initialized = $initialized;\n\n return $this;\n }\n\n public function getInitialized2(): string\n {\n return $this->initialized2;\n }\n\n public function setInitialized2(string $initi", "middle": "g $unInitialized): self\n {\n $this->unInitialized = $unInitialized;\n\n return $this;\n }\n\n public function getInitialized(): string\n {\n return $this->initialized;\n }\n\n public function setInitia", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/TypedPropertiesObjectWithGetters.php", "language": "php", "file_size": 1097, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Exception\\CircularReferenceException;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Normalizer\\JsonSerializableNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\nuse Symfo", "suffix": "nSerializableDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\CircularReferenceTestTrait;\n\n/**\n * @author Fred Cox \n */\nclass JsonSerializableNormalizerTest extends TestCase\n{\n use CircularReferenceTestTrait;\n\n publ", "middle": "ny\\Component\\Serializer\\Serializer;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\JsonSerializableCircularReferenceDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Jso", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/JsonSerializableNormalizerTest.php", "language": "php", "file_size": 3830, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse BcMath\\Number;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Normalizer\\NumberNormalizer;\n\nclass NumberNormalizerTest extends TestCase\n{\n private Num", "suffix": "mixed $data, bool $expected)\n {\n $this->assertSame($expected, $this->normalizer->supportsNormalization($data));\n }\n\n public static function supportsNormalizationProvider(): iterable\n {\n if (class_exists(\\GMP::class)) {\n ", "middle": "berNormalizer $normalizer;\n\n protected function setUp(): void\n {\n $this->normalizer = new NumberNormalizer();\n }\n\n #[DataProvider('supportsNormalizationProvider')]\n public function testSupportsNormalization(", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/NumberNormalizerTest.php", "language": "php", "file_size": 8157, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectToPopulateTrait;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\ProxyDummy;\n\nclass ObjectToPopulateTraitTest extends TestCase\n{\n use ObjectToPopulateTrait;", "suffix": "ractObjectToPopulateReturnsNullWhenNonObjectIsProvided()\n {\n $object = $this->extractObjectToPopulate(ProxyDummy::class, [\n 'object_to_populate' => 'not an object',\n ]);\n\n $this->assertNull($object);\n }\n\n public fun", "middle": "\n\n public function testExtractObjectToPopulateReturnsNullWhenKeyIsMissing()\n {\n $object = $this->extractObjectToPopulate(ProxyDummy::class, []);\n\n $this->assertNull($object);\n }\n\n public function testExt", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/ObjectToPopulateTraitTest.php", "language": "php", "file_size": 1614, "cut_index": 537, "middle_length": 229}} {"prefix": "nException;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorFromClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Serializer\\NameConverter\\CamelCaseToSnakeCaseNameConverter;\nuse Symfony\\Component\\Serializer\\NameConverter\\MetadataAwareNameConverter;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormali", "suffix": "er\\Serializer;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\GroupDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Attributes\\GroupDummyChild;\nuse Symfony\\Component\\Serializer\\Tests\\F", "middle": "zer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer;\nuse Symfony\\Component\\Serializ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php", "language": "php", "file_size": 26480, "cut_index": 1331, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\n\n/**\n * Provides a test Normalizer which only implements the DenormalizerInterface.\n *\n * @author Lin Clark \n */\nclass TestDenormalizer implements DenormalizerInterface\n{\n public function denormalize($data, string $type, ", "suffix": " {\n }\n\n public function getSupportedTypes(?string $format): array\n {\n return ['*' => false];\n }\n\n public function supportsDenormalization($data, string $type, ?string $format = null, array $context = []): bool\n {\n return ", "middle": "?string $format = null, array $context = []): mixed\n", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/TestDenormalizer.php", "language": "php", "file_size": 928, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Normalizer\\TranslatableNormalizer;\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorTrait;\n\ncla", "suffix": ");\n }\n\n public function testSupportsNormalization()\n {\n $this->assertTrue($this->normalizer->supportsNormalization(new TestMessage()));\n $this->assertFalse($this->normalizer->supportsNormalization(new \\stdClass()));\n }\n\n public", "middle": "ss TranslatableNormalizerTest extends TestCase\n{\n private readonly TranslatableNormalizer $normalizer;\n\n protected function setUp(): void\n {\n $this->normalizer = new TranslatableNormalizer(new IdentityTranslator()", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/TranslatableNormalizerTest.php", "language": "php", "file_size": 2373, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Normalizer\\UnwrappingDenormalizer;\nuse Symfony\\Component\\Serializer\\Serializer;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\ObjectDummy;\n\n/**\n * @author Eduard Bulava assertTrue($denormalizer->supportsDenormalization([], 'stdClass', 'any', [UnwrappingDenormalizer::UNWRAP_PATH => '[baz][inner]']));\n $this->assertFalse($denormalizer->supportsDenormalization([], 'stdClass', 'any', [Un", "middle": "com>\n */\nclass UnwrappingDenormalizerTest extends TestCase\n{\n public function testSupportsNormalization()\n {\n $denormalizer = new UnwrappingDenormalizer();\n $denormalizer->setSerializer($this->createStub(Seria", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/UnwrappingDenormalizerTest.php", "language": "php", "file_size": 2916, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer;\n\n/**\n * This test ensures that attributes caching implemented in AbstractObjectNormalizer\n * does not break normalization of multiple objects having different set of initialized/unInitiali", "suffix": "ctAttributesTestTrait\n{\n /**\n * Returns a collection of objects to be normalized and compared with the expected array.\n * It is a specific object normalizer test class responsibility to prepare testing data.\n */\n abstract protected functi", "middle": "zed properties.\n *\n * The attributes cache MUST NOT depend on a specific object state, so that cached attributes could be reused\n * while normalizing any number of instances of the same class in any order.\n */\ntrait CacheableObje", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/CacheableObjectAttributesTestTrait.php", "language": "php", "file_size": 2589, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Exception\\MissingConstructorArgumentsException;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\NotSerializedConstructorArgumentDummy;\n\ntrait ConstructorArgumentsTestTrait\n{\n abstract protected function get", "suffix": "tructArguments();\n\n $result = $denormalizer->denormalize($data, ConstructorArgumentsObject::class, 'json', [\n 'default_constructor_arguments' => [\n ConstructorArgumentsObject::class => ['foo' => '', 'bar' => '', 'baz' => nu", "middle": "DenormalizerForConstructArguments(): DenormalizerInterface;\n\n public function testDefaultConstructorArguments()\n {\n $data = [\n 'foo' => 10,\n ];\n\n $denormalizer = $this->getDenormalizerForCons", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/ConstructorArgumentsTestTrait.php", "language": "php", "file_size": 3466, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * Test AbstractNormalizer::IGNORED_ATTRIBUTES.\n */\ntrait IgnoredAttributesTestTrait\n{\n abstract protected function ge", "suffix": "r = $this->getNormalizerForIgnoredAttributes();\n\n $objectInner = new ObjectInner();\n $objectInner->foo = 'innerFoo';\n $objectInner->bar = 'innerBar';\n\n $objectOuter = new ObjectOuter();\n $objectOuter->foo = 'foo';\n ", "middle": "tNormalizerForIgnoredAttributes(): NormalizerInterface;\n\n abstract protected function getDenormalizerForIgnoredAttributes(): DenormalizerInterface;\n\n public function testIgnoredAttributesNormalize()\n {\n $normalize", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/IgnoredAttributesTestTrait.php", "language": "php", "file_size": 3000, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nclass ObjectOuter\n{\n public $foo;\n public $bar;\n private $inner;\n private $date;\n\n /**\n * @var ObjectInner[]\n */\n private $inners;\n\n public function getFoo()\n {\n return $this->foo;", "suffix": " }\n\n /**\n * @return ObjectInner\n */\n public function getInner()\n {\n return $this->inner;\n }\n\n public function setInner(ObjectInner $inner)\n {\n $this->inner = $inner;\n }\n\n public function setDate(\\DateTimeInte", "middle": "\n }\n\n public function setFoo($foo): void\n {\n $this->foo = $foo;\n }\n\n public function getBar()\n {\n return $this->bar;\n }\n\n public function setBar($bar): void\n {\n $this->bar = $bar;\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/ObjectOuter.php", "language": "php", "file_size": 1302, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\n\n/**\n * Test type mismatch", "suffix": "terface;\n\n public function testRejectInvalidType()\n {\n $denormalizer = $this->getDenormalizerForTypeEnforcement();\n\n $this->expectException(UnexpectedValueException::class);\n $this->expectExceptionMessage('The type of the \"date\" ", "middle": "es with a denormalizer that is aware of types.\n * Covers AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT.\n */\ntrait TypeEnforcementTestTrait\n{\n abstract protected function getDenormalizerForTypeEnforcement(): DenormalizerIn", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/TypeEnforcementTestTrait.php", "language": "php", "file_size": 2008, "cut_index": 537, "middle_length": 229}} {"prefix": "nt\\Serializer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorFromClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorMapping;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassMetadataInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\C", "suffix": "ny\\Component\\Serializer\\Serializer;\n\nclass MapDenormalizationTest extends TestCase\n{\n public function testMapOfStringToNullableObject()\n {\n $normalizedData = $this->getSerializer()->denormalize([\n 'map' => [\n 'assertD", "middle": "lassMetadataFactoryInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfo", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/MapDenormalizationTest.php", "language": "php", "file_size": 9616, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\Messenger\\Exception\\ValidationFailedException as MessageValidationFailedException;\nuse Symfony\\Component\\Serializer\\Exception\\ExtraAttributesException;\nuse Symfony\\Component\\Serializer\\Exception\\NotNormalizableValueException;\nuse Symfony\\Compone", "suffix": "er\\Serializer;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\Exception\\ValidationFailedException;\n\nclass ProblemNormalizerTest extends TestCase\n{\n private Pr", "middle": "nt\\Serializer\\Exception\\PartialDenormalizationException;\nuse Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer;\nuse Symfony\\Component\\Serializ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/ProblemNormalizerTest.php", "language": "php", "file_size": 7558, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Serializer\\Exception\\LogicException;\nuse Symfony\\Component\\Serializer\\Normalizer\\UidNormalizer;\nuse Symfony\\Component\\Uid\\AbstractUid;\nuse Symfony\\Component\\Uid\\Ulid;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Uid\\UuidV1;\nuse Symfony\\Component\\Uid\\UuidV3;\nuse Symfony\\Component\\Uid\\UuidV4;\nuse Symfony\\Compon", "suffix": " }\n\n public function testSupportsNormalization()\n {\n $this->assertTrue($this->normalizer->supportsNormalization(Uuid::v1()));\n $this->assertTrue($this->normalizer->supportsNormalization(Uuid::v3(Uuid::v1(), 'foo')));\n $this->asse", "middle": "ent\\Uid\\UuidV5;\nuse Symfony\\Component\\Uid\\UuidV6;\n\nclass UidNormalizerTest extends TestCase\n{\n private UidNormalizer $normalizer;\n\n protected function setUp(): void\n {\n $this->normalizer = new UidNormalizer();\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/UidNormalizerTest.php", "language": "php", "file_size": 7721, "cut_index": 716, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nclass CallbacksObject\n{\n public $bar;\n\n /**\n * @var string|null\n */\n public $foo;\n\n public function __construct($bar = null, ?string $foo = null)\n {\n $this->bar = $bar;\n $this->f", "suffix": "\n return $this->bar;\n }\n\n public function setBar($bar)\n {\n $this->bar = $bar;\n }\n\n public function getFoo(): ?string\n {\n return $this->foo;\n }\n\n public function setFoo(?string $foo)\n {\n $this->foo = $f", "middle": "oo = $foo;\n }\n\n public function getBar()\n {", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/CallbacksObject.php", "language": "php", "file_size": 840, "cut_index": 520, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\n\n/**\n * Test AbstractNormalizer::FILTER_BOOL.\n */\ntrait FilterBoolTestTrait\n{\n abstract protected func", "suffix": "izer = $this->getNormalizerForFilterBool();\n\n $dummy = $normalizer->denormalize(['value' => $parameterValue], FilterBoolObject::class, context: ['filter_bool' => true]);\n\n $this->assertSame($expectedValue, $dummy->value);\n }\n\n public st", "middle": "tion getNormalizerForFilterBool(): DenormalizerInterface;\n\n #[DataProvider('provideObjectWithBoolArguments')]\n public function testObjectWithBoolArguments(?bool $expectedValue, ?string $parameterValue)\n {\n $normal", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/FilterBoolTestTrait.php", "language": "php", "file_size": 1419, "cut_index": 524, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * Test AbstractObjectNormalizer::SKIP_NULL_VALUES.\n */\ntrait SkipNullValuesTestTrait\n{\n abstract protected function getNormalizerForSkipNullValues(): NormalizerInterfac", "suffix": " $dummy = new ObjectDummy();\n $dummy->bar = 'present';\n\n $normalizer = $this->getNormalizerForSkipNullValues();\n $result = $normalizer->normalize($dummy, null, ['skip_null_values' => true]);\n $this->assertSame(['fooBar' =>", "middle": "e;\n\n public function testSkipNullValues()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/SkipNullValuesTestTrait.php", "language": "php", "file_size": 906, "cut_index": 547, "middle_length": 52}} {"prefix": "myPrivate;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\Php80Dummy;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\SiblingHolder;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\StdClassNormalizer;\nuse Symfony\\Component\\Serializer\\Tests\\Fixtures\\VoidNeverReturnTypeDummy;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\AttributesTestTrait;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\CacheableObjectAttributesTestTrait;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\Ca", "suffix": "ests\\Normalizer\\Features\\ContextMetadataTestTrait;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\FilterBoolTestTrait;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\GroupsTestTrait;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer", "middle": "llbacksTestTrait;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\CircularReferenceTestTrait;\nuse Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features\\ConstructorArgumentsTestTrait;\nuse Symfony\\Component\\Serializer\\T", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/ObjectNormalizerTest.php", "language": "php", "file_size": 71873, "cut_index": 3790, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nuse Symfony\\Component\\Serializer\\Exception\\ExtraAttributesException;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * Test AbstractNormalizer::ATTRIBUTES and AbstractNormalizer::ALLOW_EXTRA_ATTRIBUTES.\n */\ntrait Attrib", "suffix": "ze()\n {\n $normalizer = $this->getNormalizerForAttributes();\n\n $objectInner = new ObjectInner();\n $objectInner->foo = 'innerFoo';\n $objectInner->bar = 'innerBar';\n\n $objectDummy = new ObjectDummy();\n $objectDummy", "middle": "utesTestTrait\n{\n abstract protected function getNormalizerForAttributes(): NormalizerInterface;\n\n abstract protected function getDenormalizerForAttributes(): DenormalizerInterface;\n\n public function testAttributesNormali", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/AttributesTestTrait.php", "language": "php", "file_size": 3830, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Dummy;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Context;\nuse Symfony\\Component\\Serializer\\Attribute\\Groups;\nuse Symfony\\Component\\Serializer\\Attribute\\Ignore;\nuse Symfony\\Component\\Serializer\\Attribute\\MaxDepth;\nuse Symfony\\Component\\Serializer\\Attribute\\SerializedName;\nuse Symfony\\Component\\Ser", "suffix": "ne\n{\n #[MaxDepth(1)]\n #[Groups(['book:read', 'book:write'])]\n #[SerializedName('identifier')]\n #[Ignore]\n #[Context(\n normalizationContext: ['groups' => ['book:read']],\n denormalizationContext: ['groups' => ['book:write']],\n ", "middle": "ializer\\Attribute\\SerializedPath;\n\nclass DummyClassO", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Dummy/DummyClassOne.php", "language": "php", "file_size": 985, "cut_index": 582, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\n#[\\AllowDynamicProperties]\nclass ObjectDummy\n{\n protected $foo;\n /**\n * @var array\n */\n public $bar;\n private $baz;\n protected $camelCase;\n protected $object;\n private $go;\n\n public funct", "suffix": " {\n $this->baz = $baz;\n }\n\n public function getFooBar()\n {\n return $this->foo.$this->bar;\n }\n\n public function getCamelCase()\n {\n return $this->camelCase;\n }\n\n public function setCamelCase($camelCase)\n {\n ", "middle": "ion getFoo()\n {\n return $this->foo;\n }\n\n public function setFoo($foo)\n {\n $this->foo = $foo;\n }\n\n public function isBaz()\n {\n return $this->baz;\n }\n\n public function setBaz($baz)\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/Features/ObjectDummy.php", "language": "php", "file_size": 1478, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n\n/**\n * Provides a test Normalizer which only implements the NormalizerInterface.\n *\n * @author Lin Clark \n */\nclass TestNormalizer implements NormalizerInterface\n{\n public function normalize(mixed $", "suffix": "array|string|int|float|bool|\\ArrayObject|null\n {\n return null;\n }\n\n public function getSupportedTypes(?string $format): array\n {\n return ['*' => false];\n }\n\n public function supportsNormalization($data, ?string $format = nul", "middle": "data, ?string $format = null, array $context = []): ", "meta": {"filepath": "src/Symfony/Component/Serializer/Tests/Normalizer/TestNormalizer.php", "language": "php", "file_size": 955, "cut_index": 582, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Ansi;\n\n/**\n * Tracks active ANSI SGR codes to preserve styling across line breaks.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class AnsiCodeTracker\n{\n private bool $bold = false;\n private bool $dim = false;\n private bool $italic = false;\n private bool $underline = false;\n private bool $doubleUnderline = false;\n private bool $blink = false;\n private bool $inverse = fal", "suffix": "escape code and update tracking state.\n */\n public function process(string $ansiCode): void\n {\n // Fast direct parsing: skip regex, extract params between \\x1b[ and m\n if (\\strlen($ansiCode) < 3 || \"\\x1b\" !== $ansiCode[0] || '[' !==", "middle": "se;\n private bool $hidden = false;\n private bool $strikethrough = false;\n private ?string $fgColor = null;\n private ?string $bgColor = null;\n private ?string $underlineColor = null;\n\n /**\n * Process an ANSI ", "meta": {"filepath": "src/Symfony/Component/Tui/Ansi/AnsiCodeTracker.php", "language": "php", "file_size": 7861, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Render;\n\n/**\n * Represents the absolute position and size of a rendered widget on screen.\n *\n * Coordinates are in terminal character cells, with (0, 0) at the top-left.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier = $this->row\n ", "middle": "om>\n */\nfinal class WidgetRect\n{\n public function __construct(\n public readonly int $row,\n public readonly int $col,\n public readonly int $columns,\n public readonly int $rows,\n ) {\n }\n\n /**", "meta": {"filepath": "src/Symfony/Component/Tui/Render/WidgetRect.php", "language": "php", "file_size": 1494, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Render;\n\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\n\n/**\n * Interface for rendering individual widgets and resolving their styles.\n *\n * Used by LayoutEngine and ChromeApplier to call back into the Renderer\n *", "suffix": " pipeline.\n *\n * @return string[]\n */\n public function renderWidget(AbstractWidget $widget, RenderContext $context): array;\n\n /**\n * Resolve the style for a widget by merging cascade layers.\n */\n public function resolveStyle(Ab", "middle": " without creating a circular class dependency.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\ninterface WidgetRendererInterface\n{\n /**\n * Render a single widget through the full", "meta": {"filepath": "src/Symfony/Component/Tui/Render/WidgetRendererInterface.php", "language": "php", "file_size": 1394, "cut_index": 524, "middle_length": 229}} {"prefix": "er\\RenderContext;\nuse Symfony\\Component\\Tui\\Style\\DefaultStyleSheet;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\StyleSheet;\nuse Symfony\\Component\\Tui\\Tui;\n\n/**\n * Base widget class with lifecycle hooks and dirty tracking.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nabstract class AbstractWidget\n{\n private int $renderRevision = 0;\n private ?string $id = null;\n private ?string $label = null;\n private ?AbstractWidget $parent = null;\n pr", "suffix": "tring, list> */\n private array $listeners = [];\n\n // Render cache: stores the last output of Renderer::renderWidget()\n // keyed on (renderRevision, columns, rows) so unchanged widgets\n // skip style resolution, layout, ", "middle": "ivate ?WidgetContext $context = null;\n private ?Style $internalStyle = null;\n private static ?StyleSheet $defaultStyleSheet = null;\n\n /** @var string[] */\n private array $styleClasses = [];\n\n /** @var arrayinPaste;\n }\n\n /**\n * Process bracketed paste sequences in input data.\n *\n * Detects paste start/end markers and buff", "middle": "tencier \n */\ntrait BracketedPasteTrait\n{\n private const int MAX_PASTE_BYTES = 16 * 1024 * 1024;\n private const string PASTE_OVERFLOW_MESSAGE = '[paste exceeded 16 MiB limit]';\n\n private bool $inPaste ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/BracketedPasteTrait.php", "language": "php", "file_size": 3492, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\Tui\\Event\\CancelEvent;\nuse Symfony\\Component\\Tui\\Input\\Key;\n\n/**\n * Loader that can be cancelled with Escape key.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass CancellableLoaderWidget extends LoaderWi", "suffix": "truct($message);\n }\n\n /**\n * Check if the loader was cancelled.\n */\n public function isCancelled(): bool\n {\n return $this->cancelled;\n }\n\n /**\n * Reset the cancelled state.\n */\n public function reset(): void\n ", "middle": "dget implements FocusableInterface\n{\n use FocusableTrait;\n use KeybindingsTrait;\n\n private bool $cancelled = false;\n\n public function __construct(\n string $message = 'Loading...',\n ) {\n parent::__cons", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/CancellableLoaderWidget.php", "language": "php", "file_size": 1942, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\Tui\\Exception\\LogicException;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\n\n/**\n * Container widget that groups child widgets with optional styling.\n *\n * Supports:\n * - Vertical or horizontal layout (via Style::direction)\n * - Gap between children (via Style::gap)\n * - Padding, border, background via Style\n ", "suffix": "Or via stylesheet rules:\n *\n * $stylesheet->addRule('.panes', new Style(direction: Direction::Horizontal, gap: 2));\n *\n * Layout and chrome rendering is handled by the Renderer.\n *\n * @experimental\n *\n * @author Fabien Potencier \n *", "middle": "* - Vertically expandable children\n *\n * Layout direction and gap are style properties, configurable via\n * stylesheets or inline styles:\n *\n * $container->setStyle(new Style(direction: Direction::Horizontal, gap: 1));\n *\n * ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/ContainerWidget.php", "language": "php", "file_size": 4836, "cut_index": 614, "middle_length": 229}} {"prefix": "ent;\nuse Symfony\\Component\\Tui\\Input\\Key;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Style\\CursorShape;\nuse Symfony\\Component\\Tui\\Widget\\Editor\\EditorDocument;\nuse Symfony\\Component\\Tui\\Widget\\Editor\\EditorRenderer;\nuse Symfony\\Component\\Tui\\Widget\\Editor\\EditorViewport;\nuse Symfony\\Component\\Tui\\Widget\\Util\\KillRing;\nuse Symfony\\Component\\Tui\\Widget\\Util\\StringUtils;\n\n/**\n * Multi-line text editor.\n *\n * Orchestrates input routing ", "suffix": "\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass EditorWidget extends AbstractWidget implements FocusableInterface, VerticallyExpandableInterface\n{\n use BracketedPasteTrait;\n use FocusableTrait;\n use KeybindingsTrait", "middle": "between collaborators:\n * - {@see EditorDocument}: text buffer, cursor, undo/redo, kill ring\n * - {@see EditorViewport}: scroll offset, viewport calculations\n * - {@see EditorRenderer}: line rendering with cursor and word-wrap\n *", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/EditorWidget.php", "language": "php", "file_size": 16879, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\n\n/**\n * Interface for widgets that can receive focus.\n *\n * Widgets that accept user input (text editors, inputs, lists) implement\n * this interface so the focus manager can route keyboard events t", "suffix": "ar at the right spot.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\ninterface FocusableInterface\n{\n /**\n * Check if the widget currently has focus.\n */\n public function isFocused(): bool;\n\n /**\n * Set the ", "middle": "o them.\n *\n * Widgets that display a text cursor should emit\n * {@see AnsiUtils::cursorMarker()} at the cursor position when focused\n * so the terminal's hardware cursor handles blinking natively and IME\n * candidate windows appe", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/FocusableInterface.php", "language": "php", "file_size": 2326, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\n/**\n * Default implementation of focus state for focusable widgets.\n *\n * Invalidates the widget when focus changes. Override setFocused()\n * for custom behavior (e.g. cursor blinker management).\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\ntrait FocusableTrait\n{\n private bool $focused = fals", "suffix": " return $this->focused;\n }\n\n /**\n * @return $this\n */\n public function setFocused(bool $focused): static\n {\n if ($this->focused !== $focused) {\n $this->focused = $focused;\n $this->invalidate();\n }\n", "middle": "e;\n\n public function isFocused(): bool\n {\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/FocusableTrait.php", "language": "php", "file_size": 945, "cut_index": 606, "middle_length": 52}} {"prefix": ";\nuse Symfony\\Component\\Tui\\Event\\SubmitEvent;\nuse Symfony\\Component\\Tui\\Input\\Key;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Style\\CursorShape;\nuse Symfony\\Component\\Tui\\Widget\\Util\\Line;\nuse Symfony\\Component\\Tui\\Widget\\Util\\StringUtils;\n\n/**\n * Single-line text input with horizontal scrolling.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass InputWidget extends AbstractWidget implements Focusable", "suffix": " ?Keybindings $keybindings = null,\n ) {\n if (null !== $keybindings) {\n $this->setKeybindings($keybindings);\n }\n $this->line = new Line();\n }\n\n /**\n * @param callable(SubmitEvent): void $callback\n *\n * @r", "middle": "Interface\n{\n use BracketedPasteTrait;\n use FocusableTrait;\n use KeybindingsTrait;\n\n private Line $line;\n private string $prompt = '> ';\n private bool $submitted = false;\n\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/InputWidget.php", "language": "php", "file_size": 14238, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\n\n/**\n * Default implementation of keybindings for focusable widgets.\n *\n * Resolution order (later overrides earlier):\n * 1. Widget defaults (from getDefaultKeybindings())\n * 2. Global keybindings from the TUI (via WidgetContext)\n * 3. Exp", "suffix": "e(string): bool)|null */\n private ?\\Closure $onInput = null;\n\n /**\n * Return the effective keybindings for this widget.\n *\n * Resolution order (later overrides earlier):\n * 1. Widget defaults (from getDefaultKeybindings())\n * 2. G", "middle": "licit keybindings set on this widget (via setKeybindings())\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\ntrait KeybindingsTrait\n{\n private ?Keybindings $keybindings = null;\n\n /** @var (\\Closur", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/KeybindingsTrait.php", "language": "php", "file_size": 2223, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Loop\\PeriodicStepper;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Widget\\Util\\StringUtils;\n\n/**\n * Animated loading spinner.\n *\n * Newly constructed loaders are stopped; call {@see start()} to begin\n * the animation. Attaching a stopped loader to the widget tree does not\n * sc", "suffix": " = 'dots';\n private const DEFAULT_INTERVAL_MS = 80;\n\n /** @var array */\n private static array $styles = [\n 'line' => ['-', '\\\\', '|', '/'],\n 'dots' => ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'],\n 'bou", "middle": "hedule any ticks until start() is called.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass LoaderWidget extends AbstractWidget\n{\n use ScheduledTickTrait;\n\n private const string DEFAULT_STYLE", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/LoaderWidget.php", "language": "php", "file_size": 7154, "cut_index": 716, "middle_length": 229}} {"prefix": "ommonMark\\Node\\Block\\ThematicBreak;\nuse League\\CommonMark\\Extension\\CommonMark\\Node\\Inline\\Code;\nuse League\\CommonMark\\Extension\\CommonMark\\Node\\Inline\\Emphasis;\nuse League\\CommonMark\\Extension\\CommonMark\\Node\\Inline\\Link;\nuse League\\CommonMark\\Extension\\CommonMark\\Node\\Inline\\Strong;\nuse League\\CommonMark\\Extension\\GithubFlavoredMarkdownExtension;\nuse League\\CommonMark\\Extension\\Strikethrough\\Strikethrough;\nuse League\\CommonMark\\Extension\\Table\\Table;\nuse League\\CommonMark\\Extension\\Table\\TableCell;\nuse Le", "suffix": "eague\\CommonMark\\Node\\Inline\\Text;\nuse League\\CommonMark\\Node\\Node;\nuse League\\CommonMark\\Parser\\MarkdownParser;\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Ansi\\TextWrapper;\nuse Symfony\\Component\\Tui\\Exception\\LogicException;\nuse S", "middle": "ague\\CommonMark\\Extension\\Table\\TableRow;\nuse League\\CommonMark\\Extension\\Table\\TableSection;\nuse League\\CommonMark\\Node\\Block\\Document;\nuse League\\CommonMark\\Node\\Block\\Paragraph;\nuse League\\CommonMark\\Node\\Inline\\Newline;\nuse L", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/MarkdownWidget.php", "language": "php", "file_size": 19314, "cut_index": 1331, "middle_length": 229}} {"prefix": "ringUtils;\n\n/**\n * Animated progress bar widget.\n *\n * Supports both determinate (with max steps) and indeterminate (no max) modes.\n * Uses a format string with placeholders to render the bar.\n *\n * Built-in placeholders: %current%, %max%, %bar%, %percent%, %elapsed%,\n * %remaining%, %estimated%, %memory%, %message%.\n *\n * The bar animates via the event loop, like the LoaderWidget spinner.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass ProgressBarWidget extends AbstractWid", "suffix": "private int $startTime;\n private bool $running = false;\n\n private int $barWidth = 28;\n private string $barChar = '━';\n private string $emptyBarChar = '━';\n private string $progressChar = '';\n private string $format;\n\n /** @var array\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\Tui\\Event\\QuitEvent;\n\n/**\n * Trait for widgets that support a quit action.\n *\n * Dispatches a {@see QuitEvent} when the quit key is pressed.\n * If no listener is registered for QuitEvent (neither globally on the\n * Tui nor locally on th", "suffix": " * @param callable(QuitEvent): void $callback\n *\n * @return $this\n */\n public function onQuit(callable $callback): static\n {\n return $this->on(QuitEvent::class, $callback);\n }\n\n /**\n * Dispatch the quit event.\n *\n ", "middle": "e widget), the default behavior is to stop the TUI.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\ntrait QuitableTrait\n{\n /**\n * Register a listener for the quit event on this widget.\n *\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/QuitableTrait.php", "language": "php", "file_size": 1643, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\n\n/**\n * Shared scheduling lifecycle for runtime objects driven by WidgetContext ticks.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\ntrait ScheduledTickTrait\n{\n private ?string $scheduledTi", "suffix": "cheduledTick(float $intervalSeconds): void\n {\n if ($intervalSeconds <= 0.0) {\n throw new InvalidArgumentException(\\sprintf('Interval must be greater than 0, got %d.', $intervalSeconds));\n }\n\n if (null !== $this->scheduled", "middle": "ckId = null;\n private ?float $scheduledTickInterval = null;\n\n abstract protected function resolveScheduledTickContext(): ?WidgetContext;\n\n abstract protected function onScheduledTick(): void;\n\n private function startS", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/ScheduledTickTrait.php", "language": "php", "file_size": 2220, "cut_index": 563, "middle_length": 229}} {"prefix": ";\nuse Symfony\\Component\\Tui\\Event\\SelectionChangeEvent;\nuse Symfony\\Component\\Tui\\Input\\Key;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\n\n/**\n * Interactive selection list with keyboard navigation.\n *\n * Item `label`, `description`, and `value` are rendered to the terminal\n * as-is and are not sanitized. See {@see TextWidget} for the raw-passthrough\n * contract: never pass untrusted bytes here; sanitize upstream via\n * {@see Util\\StringUtils::stripControlByte", "suffix": " */\n private array $filteredItems;\n\n private int $selectedIndex = 0;\n private bool $selected = false;\n\n /**\n * @param array\n */\nclass SelectListWidget extends AbstractWidget implements FocusableInterface\n{\n use FocusableTrait;\n use KeybindingsTrait;\n\n /** @var array", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/SelectListWidget.php", "language": "php", "file_size": 11623, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\Tui\\Exception\\LogicException;\nuse Symfony\\Component\\Tui\\Widget\\Util\\StringUtils;\n\n/**\n * Represents a single item in a SettingsListWidget.\n *\n * The `$label` and `$description` constructor arguments are stored verbatim\n * and rendered as-is. Only `$currentValue`", "suffix": "mfony.com>\n *\n * @phpstan-type SubmenuFactory callable(string, callable(?string): void): (FocusableInterface&AbstractWidget)\n */\nfinal class SettingItem\n{\n private string $currentValue;\n\n /**\n * @param list $values Predefined valu", "middle": " is sanitized. See {@see TextWidget}\n * for the raw-passthrough contract: sanitize untrusted label/description\n * upstream via {@see StringUtils::stripControlBytes()}.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass SettingsListWidget extends AbstractWidget implements FocusableInterface, ParentInterface\n{\n use FocusableTrait;\n use KeybindingsTrait;\n\n private int $selectedIndex = 0;\n\n // Subm", "suffix": "[];\n\n /**\n * @param list $items\n */\n public function __construct(\n private array $items,\n private int $maxVisible = 10,\n ?Keybindings $keybindings = null,\n ) {\n if (null !== $keybindings) {\n ", "middle": "enu state\n private (FocusableInterface&AbstractWidget)|null $activeSubmenu = null;\n\n /** @var list Listeners to remove from the global dispatcher on cleanup */\n private array $submenuListeners = ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/SettingsListWidget.php", "language": "php", "file_size": 12713, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Ansi\\TextWrapper;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Widget\\Figlet\\FigletRenderer;\n\n/**\n * Text component - displays text with word wrapping or truncation.\n *\n * When truncate is false (default), text wraps to multiple lines.\n * When truncate is true, each line is truncated to fit the width with an ellipsis.\n *\n * When a FIGlet ", "suffix": "rules, CSS classes, or Tailwind utility classes:\n *\n * // Stylesheet rule\n * $stylesheet->addRule('.title', new Style(font: 'big'));\n *\n * // Tailwind utility class\n * $widget->addStyleClass('font-big');\n *\n * // Template\n * \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\n/**\n * Interface for widgets that can expand to fill available vertical space.\n *\n * When a widget implements this interface and vertical expansion is enabled,\n * it will expand to use available vertical space in its parent container.\n ", "suffix": "rface VerticallyExpandableInterface\n{\n /**\n * Set whether the widget should expand to fill available height.\n *\n * @return $this\n */\n public function expandVertically(bool $expand): static;\n\n /**\n * Check if the widget should e", "middle": "* In vertical layouts, multiple expanded siblings share the space equally.\n * In horizontal layouts, all children receive the full available height.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\ninte", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/VerticallyExpandableInterface.php", "language": "php", "file_size": 1092, "cut_index": 515, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\n/**\n * Interface for widgets that can contain and mutate child widgets.\n *\n * Extends ParentInterface with mutation methods (add, remove, clear).\n * Use ParentInterface when you only need read-only tree traversal.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\ninterface WidgetContainerInterface ex", "suffix": "\n */\n public function add(AbstractWidget $widget): static;\n\n /**\n * @return $this\n */\n public function remove(AbstractWidget $widget): static;\n\n /**\n * Remove all child widgets.\n *\n * @return $this\n */\n public fun", "middle": "tends ParentInterface\n{\n /**\n * @return $this", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/WidgetContainerInterface.php", "language": "php", "file_size": 939, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Tui\\Event\\AbstractEvent;\nuse Symfony\\Component\\Tui\\Focus\\FocusManager;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse", "suffix": "final class WidgetContext\n{\n /** @var array */\n private array $tickIds = [];\n\n /**\n * @internal constructed by the framework; user code receives the context via {@see AbstractWidget::onAttach()}\n */\n public function __co", "middle": " Symfony\\Component\\Tui\\Terminal\\TerminalInterface;\nuse Symfony\\Component\\Tui\\Tui;\n\n/**\n * Runtime context provided to widgets when attached to the tree.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\n", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/WidgetContext.php", "language": "php", "file_size": 3538, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Tui\\Focus\\FocusManager;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Terminal\\TerminalInterface;\nuse Symfony\\Component\\Tui\\Tui;\n\n", "suffix": "$terminal;\n private ?AbstractWidget $root = null;\n\n public function __construct(\n Tui $tui,\n Keybindings $keybindings,\n FocusManager $focusManager,\n Renderer $renderer,\n TerminalInterface $terminal,\n EventDis", "middle": "/**\n * Internal widget tree manager.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class WidgetTree\n{\n private WidgetContext $context;\n private readonly TerminalInterface ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/WidgetTree.php", "language": "php", "file_size": 2379, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Util;\n\n/**\n * Emacs-style kill ring for cut/paste operations.\n *\n * Consecutive kill operations are appended to the same entry.\n * Yank/yank-pop cycles through the ring.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass KillRing\n{\n /** @var string[] */\n private array $entries = [];\n private ?str", "suffix": "= 50,\n ) {\n }\n\n /**\n * Add text to the kill ring.\n *\n * If the last action was also a kill, the text is appended/prepended\n * to the most recent entry (consecutive kills accumulate).\n */\n public function add(string $text, bo", "middle": "ing $lastAction = null;\n\n /**\n * @var array{start_line: int, start_col: int, end_line: int, end_col: int}|null\n */\n private ?array $lastYank = null;\n\n public function __construct(\n private int $maxEntries ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Util/KillRing.php", "language": "php", "file_size": 3602, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Util;\n\n/**\n * Grapheme-aware single-line text buffer with cursor position.\n *\n * Encapsulates text content and a byte-offset cursor. Every editing method\n * mutates internal state and returns whether the operation had an effect,\n * letting the caller decide whether to invalidate, push undo snapshots, etc.\n *\n * Both InputWidget (single-line) and EditorWidget (multi-line, per-line)\n * delegate grapheme-level operations here.\n *\n * @expe", "suffix": " $this->text = $text;\n $this->cursor = max(0, min($cursor, \\strlen($text)));\n }\n\n public function getText(): string\n {\n return $this->text;\n }\n\n public function getCursor(): int\n {\n return $this->cursor;\n }\n\n ", "middle": "rimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class Line\n{\n private string $text;\n private int $cursor;\n\n public function __construct(string $text = '', int $cursor = 0)\n {\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Util/Line.php", "language": "php", "file_size": 6866, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Util;\n\n/**\n * General-purpose string utilities for terminal input handling.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class StringUtils\n{\n /**\n * Check if the input data contains control characters (C0 controls + DEL).\n ", "suffix": " * in multi-byte characters like emojis (e.g. 😀 = \\xF0\\x9F\\x98\\x80).\n */\n public static function hasControlChars(string $data): bool\n {\n for ($i = 0; $i < \\strlen($data); ++$i) {\n $code = \\ord($data[$i]);\n if ($code", "middle": " *\n * Only checks for ASCII control characters (0x00-0x1F and 0x7F).\n * Does NOT check for C1 control characters (U+0080-U+009F) at the byte\n * level, because bytes 0x80-0x9F are valid UTF-8 continuation bytes used\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Util/StringUtils.php", "language": "php", "file_size": 2099, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Util;\n\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\n\n/**\n * Grapheme-aware word navigation for text editing.\n *\n * Provides cursor movement logic: skip whitespace, then skip a punctuation run\n * or a word run. Both InputWidget and EditorWidget delegate to this class for\n * within-line word navigation.\n *\n * @experimental\n *\n * @internal\n ", "suffix": " * Algorithm: skip trailing whitespace, then skip a punctuation run or a\n * word-character run.\n */\n public static function skipWordBackward(string $text, int $cursor): int\n {\n if (0 === $cursor) {\n return 0;\n }\n\n ", "middle": "*\n * @author Fabien Potencier \n */\nfinal class WordNavigator\n{\n /**\n * Returns the new cursor position after moving one word backward within\n * the given text. The cursor is a byte offset.\n *\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Util/WordNavigator.php", "language": "php", "file_size": 3841, "cut_index": 614, "middle_length": 229}} {"prefix": "24;\n\n /** @var string[] */\n private array $lines = [''];\n private int $cursorLine = 0;\n private int $cursorCol = 0;\n\n private KillRing $killRing;\n\n // Undo/Redo\n /** @var array */\n private array $undoStack = [];\n /** @var array */\n private array $redoStack = [];\n private int $undoStackBytes = 0;\n\n // Character jump mode\n private ?string $jumpM", "suffix": "KillRing $killRing = null)\n {\n $this->killRing = $killRing ?? new KillRing();\n }\n\n // --- Accessors ---\n\n /**\n * @return string[]\n */\n public function getLines(): array\n {\n return $this->lines;\n }\n\n public func", "middle": "ode = null; // 'forward' or 'backward'\n\n // Paste handling\n private int $pasteCount = 0;\n /** @var array */\n private array $pasteMarkers = [];\n\n public function __construct(?", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Editor/EditorDocument.php", "language": "php", "file_size": 20597, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Editor;\n\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Ansi\\TextWrapper;\nuse Symfony\\Component\\Tui\\Style\\CursorShape;\nuse Symfony\\Component\\Tui\\Style\\Style;\n\n/**\n * Renders editor content lines with cursor and word-wrap.\n *\n * This is a stateless helper: all state (document content, cursor position,\n * scroll offset) is passed in from the EditorWidget.\n *\n * @experimental\n *\n * @author Fabien Potencier \n *\n * @internal\n */\nfinal class EditorRenderer\n{\n /**\n * Render the full editor output: borders + content lines + padding.\n *\n * @param string[] ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Editor/EditorRenderer.php", "language": "php", "file_size": 8714, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Editor;\n\nuse Symfony\\Component\\Tui\\Ansi\\TextWrapper;\n\n/**\n * Manages scroll offset and viewport calculations for the editor.\n *\n * Owns the scroll offset and computes which logical lines are visible\n * in the terminal viewport, accounting for word-wrap. Also handles\n * mouse cursor placement (display-row → logical line+col mapping).\n *\n * @experimental\n *\n * @author Fabien Potencier \n *\n * @internal\n */\nfinal class ", "suffix": "/**\n * Scroll by a full page.\n *\n * @param string[] $lines Document lines\n * @param int $direction 1 for down, -1 for up\n * @param int $pageSize Number of lines per page\n * @param int $cursorLine Current curso", "middle": "EditorViewport\n{\n private int $scrollOffset = 0;\n\n public function getScrollOffset(): int\n {\n return $this->scrollOffset;\n }\n\n public function reset(): void\n {\n $this->scrollOffset = 0;\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Editor/EditorViewport.php", "language": "php", "file_size": 5446, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Figlet;\n\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\n\n/**\n * Parses and represents a FIGlet font (.flf file).\n *\n * The FIGlet font format stores ASCII art representations of characters.\n * Each character is defined as a fixed number of lines (the font height).\n * Lines are terminated by the font's \"end mark\" character (@), and the\n * last line of each character uses a double end mark (@@).\n *\n * The \"hardblank\" chara", "suffix": "\n *\n * @author Fabien Potencier \n */\nfinal class FigletFont\n{\n private const int MAX_DECOMPRESSED_BYTES = 4 * 1024 * 1024;\n\n /** @var array codepoint → array of lines */\n private array $characters = [];\n\n /**\n", "middle": "cter (typically $) is rendered as a visible space\n * that prevents smushing; it's replaced with a regular space on output.\n *\n * @see https://github.com/cmatsuoka/figlet/blob/master/figfont.txt\n *\n * @experimental\n *\n * @internal", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Figlet/FigletFont.php", "language": "php", "file_size": 7109, "cut_index": 716, "middle_length": 229}} {"prefix": "class TextWrapper\n{\n /**\n * Wrap a single line into chunks with position tracking.\n *\n * Unlike wrapTextWithAnsi(), each chunk carries its start/end position\n * in the original line, allowing callers to map cursor positions\n * accurately through word-wrap boundaries.\n *\n * The chunk text may include trailing whitespace; callers that need\n * trimmed display text can rtrim() themselves.\n *\n * @param string $line A single line of text (no newlines)\n * @param int ", "suffix": "'' === $line) {\n return [['text' => '', 'start_index' => 0, 'end_index' => 0]];\n }\n\n if ($width <= 0) {\n return [['text' => $line, 'start_index' => 0, 'end_index' => \\strlen($line)]];\n }\n\n $lineWidth = Ansi", "middle": " $width Maximum visible width per chunk\n *\n * @return list\n */\n public static function wrapLineIntoChunks(string $line, int $width): array\n {\n if (", "meta": {"filepath": "src/Symfony/Component/Tui/Ansi/TextWrapper.php", "language": "php", "file_size": 15727, "cut_index": 921, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Exception;\n\n/**\n * Exception thrown when rendering fails.\n *\n * Typically thrown when a component renders a line that exceeds the terminal width.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass RenderException e", "suffix": " {\n parent::__construct($message);\n }\n\n public function getLineNumber(): int\n {\n return $this->lineNumber;\n }\n\n public function getLineWidth(): int\n {\n return $this->lineWidth;\n }\n\n public function getTerminalWi", "middle": "xtends RuntimeException\n{\n public function __construct(\n string $message,\n private readonly int $lineNumber = 0,\n private readonly int $lineWidth = 0,\n private readonly int $terminalWidth = 0,\n )", "meta": {"filepath": "src/Symfony/Component/Tui/Exception/RenderException.php", "language": "php", "file_size": 1062, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * @author Fabien Potencier \n */\nfinal class CellBuffer\n{\n // Attribute bitmask constants\n public const ATTR_BOLD = 1;\n public const ATTR_DIM = 2;\n public const ATTR_ITALIC = 4;\n public const ATTR_UNDERLINE = 8;\n public const ATTR_BLINK = 16;\n public const ATTR_REVERSE = 32;\n public const ATTR_STRIKETHROUGH = 64;\n\n /**\n * Flat arrays indexed by (row * width + col).\n *\n * @var string[] Character/grapheme at each cell\n */\n private array $ch", "suffix": "array $fg;\n\n /** @var string[] Background color code (e.g., \"48;2;30;30;46\") or \"\" for default */\n private array $bg;\n\n /** @var int[] Attribute bitmask (bold|dim|italic|underline|blink|reverse|strikethrough) */\n private array $attrs;\n\n /* R", "middle": "ars;\n\n /** @var int[] Display width of each cell (1 for normal, 2 for CJK, 0 for continuation) */\n private array $widths;\n\n /** @var string[] Foreground color code (e.g., \"38;2;255;0;0\") or \"\" for default */\n private ", "meta": {"filepath": "src/Symfony/Component/Tui/Render/CellBuffer.php", "language": "php", "file_size": 20324, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Render;\n\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\n\n/**\n * Composites multiple layers into a single set of ANSI-formatted lines.\n *\n * Layers are applied in order: layer 0 is the base (typically opaque),\n * subsequent layers are painted on top. Transparent layers let", "suffix": " Usage:\n *\n * $lines = Compositor::composite(\n * new Layer($backgroundLines),\n * new Layer($foregroundLines, transparent: true),\n * );\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal", "middle": " the\n * content below show through where no explicit background is set.\n *\n * The canvas dimensions are derived from the first (base) layer:\n * height is the number of lines, width is the visible width of the\n * first line.\n *\n *", "meta": {"filepath": "src/Symfony/Component/Tui/Render/Compositor.php", "language": "php", "file_size": 1848, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Render;\n\n/**\n * A compositing layer: content lines at a position, optionally transparent.\n *\n * When transparent, cells with no explicit background preserve the\n * background from the layer below. Fully unstyled spaces are completely\n * transparent (the entire cell b", "suffix": "$row Vertical offset in the composite\n * @param int $col Horizontal offset in the composite\n * @param bool $transparent Whether cells with default background inherit from layers below\n * @param int|null $width Exp", "middle": "elow shows through).\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class Layer\n{\n /**\n * @param string[] $lines ANSI-formatted content lines\n * @param int ", "meta": {"filepath": "src/Symfony/Component/Tui/Render/Layer.php", "language": "php", "file_size": 1513, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Render;\n\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Widget\\Figlet\\FontRegistry;\n\n/**\n * Context passed to widgets during rendering.\n *\n * Contains the available dimensions for rendering in terminal character cells,\n * the resolved style for the widget, and the font regis", "suffix": "* - Terminals measure size in character cells (columns × rows), not pixels\n * - The TerminalInterface uses `getColumns()` and `getRows()`\n * - Standard tools like `stty`, `tput`, and env vars `COLUMNS`/`LINES` use this terminology\n *\n * @experimental\n *\n *", "middle": "try for FIGlet rendering.\n *\n * This is an immutable value object - use with*() methods to create modified copies.\n *\n * ## Terminology: columns and rows\n *\n * This class uses `columns` and `rows` to match terminal conventions:\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Render/RenderContext.php", "language": "php", "file_size": 2734, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Render;\n\n/**\n * Capability interface for managing the render lifecycle.\n *\n * Used by internal collaborators (FocusManager, MouseCoordinator)\n * that need to trigger or flush a render pass without depending\n * on the full Tui API.\n *\n * @experiment", "suffix": "d do a full re-render\n */\n public function requestRender(bool $force = false): void;\n\n /**\n * Flush any pending render immediately.\n *\n * Unlike requestRender() which defers to the next tick, this\n * synchronously renders the curr", "middle": "al\n *\n * @internal\n *\n * @author Fabien Potencier \n */\ninterface RenderRequestorInterface\n{\n /**\n * Request a render on the next tick.\n *\n * @param bool $force If true, clear all cached state an", "meta": {"filepath": "src/Symfony/Component/Tui/Render/RenderRequestorInterface.php", "language": "php", "file_size": 1208, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Encoder;\n\n/**\n * Encodes JSON data.\n *\n * @author Jordi Boggiano \n */\nclass JsonEncoder implements EncoderInterface, DecoderInterface\n{\n public const FORMAT = 'json';\n\n protected JsonEncode $encodingImpl;\n protected JsonDecode $dec", "suffix": " {\n $this->defaultContext = array_merge($this->defaultContext, $defaultContext);\n $this->encodingImpl = $encodingImpl ?? new JsonEncode($this->defaultContext);\n $this->decodingImpl = $decodingImpl ?? new JsonDecode($this->defaultConte", "middle": "odingImpl;\n\n private array $defaultContext = [\n JsonDecode::ASSOCIATIVE => true,\n ];\n\n public function __construct(?JsonEncode $encodingImpl = null, ?JsonDecode $decodingImpl = null, array $defaultContext = [])\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/JsonEncoder.php", "language": "php", "file_size": 1739, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Encoder;\n\nuse Symfony\\Component\\Serializer\\Exception\\NotEncodableValueException;\nuse Symfony\\Component\\Serializer\\Exception\\RuntimeException;\nuse Symfony\\Component\\Yaml\\Dumper;\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Component\\Yaml\\Parser;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * Encodes YAML data.\n *\n * @autho", "suffix": "'preserve_empty_objects';\n\n /**\n * Override the amount of spaces to use for indentation of nested nodes.\n *\n * This option only works in the constructor, not in calls to `encode`.\n */\n public const YAML_INDENTATION = 'yaml_indentation", "middle": "r Kévin Dunglas \n */\nclass YamlEncoder implements EncoderInterface, DecoderInterface\n{\n public const FORMAT = 'yaml';\n private const ALTERNATIVE_FORMAT = 'yml';\n\n public const PRESERVE_EMPTY_OBJECTS = ", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/YamlEncoder.php", "language": "php", "file_size": 3373, "cut_index": 614, "middle_length": 229}} {"prefix": "mpiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PriorityTaggedServiceTrait;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableEncoder;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Nor", "suffix": "zer\" as\n * encoders and normalizers to the \"serializer\" service.\n *\n * @author Javier Lopez \n * @author Robin Chalas \n */\nclass SerializerPass implements CompilerPassInterface\n{\n use PriorityTaggedServiceTrait", "middle": "malizer\\NormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\n\n/**\n * Adds all services with the tags \"serializer.encoder\" and \"serializer.normali", "meta": {"filepath": "src/Symfony/Component/Serializer/DependencyInjection/SerializerPass.php", "language": "php", "file_size": 11899, "cut_index": 921, "middle_length": 229}} {"prefix": "Dispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Tui\\Event\\AbstractEvent;\nuse Symfony\\Component\\Tui\\Event\\InputEvent;\nuse Symfony\\Component\\Tui\\Event\\TickEvent;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Focus\\FocusManager;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Loop\\AdaptativeTicker;\nuse Symfony\\Component\\Tui\\Loop\\TickRuntimeInterface;\nuse Symfony\\Component\\Tui\\Loop\\TickScheduler;\nuse Symfony\\Component\\Tui\\Render\\Rendere", "suffix": "nal\\TerminalInterface;\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\nuse Symfony\\Component\\Tui\\Widget\\ContainerWidget;\nuse Symfony\\Component\\Tui\\Widget\\Figlet\\FontRegistry;\nuse Symfony\\Component\\Tui\\Widget\\FocusableInterface;\nuse Symfony\\Component\\Tui\\W", "middle": "r;\nuse Symfony\\Component\\Tui\\Render\\RenderRequestorInterface;\nuse Symfony\\Component\\Tui\\Render\\ScreenWriter;\nuse Symfony\\Component\\Tui\\Style\\StyleSheet;\nuse Symfony\\Component\\Tui\\Terminal\\Terminal;\nuse Symfony\\Component\\Tui\\Termi", "meta": {"filepath": "src/Symfony/Component/Tui/Tui.php", "language": "php", "file_size": 16026, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Style;\n\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\n\n/**\n * Represents border values like CSS border.\n *\n * Supports 1, 2, 3, or 4 values:\n * - 1 value: all sides\n * - 2 values: top/bottom, left/right\n * - 3 values: top, left/right, bottom\n * - 4 values: top, right, bottom, left\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfinal class Border\n{\n private const DEFAULT_PATTERN = BorderPattern:", "suffix": "unction __construct(\n int $top,\n int $right,\n int $bottom,\n int $left,\n BorderPattern|string|null $pattern = null,\n Color|string|int|null $color = null,\n ) {\n $this->top = max(0, $top);\n $this->rig", "middle": ":NORMAL;\n\n public readonly int $top;\n public readonly int $right;\n public readonly int $bottom;\n public readonly int $left;\n\n public readonly BorderPattern $pattern;\n public readonly ?Color $color;\n\n public f", "meta": {"filepath": "src/Symfony/Component/Tui/Style/Border.php", "language": "php", "file_size": 7239, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Style;\n\n/**\n * Terminal cursor shape, mapped to DECSCUSR escape sequences.\n *\n * These values correspond to the parameter N in `ESC [ N SP q`\n * (DECSCUSR: Set Cursor Style). Odd values produce a blinking\n * cursor; even values produce a stead", "suffix": "the blinking\n * variants so the terminal provides native cursor animation at\n * zero CPU cost.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nenum CursorShape: int\n{\n case Block = 1;\n case Underline = 3;\n case Bar = 5;", "middle": "y one. We use ", "meta": {"filepath": "src/Symfony/Component/Tui/Style/CursorShape.php", "language": "php", "file_size": 786, "cut_index": 513, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Style;\n\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\n\n/**\n * Represents padding values like CSS padding.\n *\n * Supports 1, 2, 3, or 4 values:\n * - 1 value: all sides\n * - 2 values: top/bottom, left/right\n * - 3 values: top, left/right, bottom\n * - 4 values: top, right, botto", "suffix": "t;\n\n public function __construct(int $top, int $right, int $bottom, int $left)\n {\n $this->top = max(0, $top);\n $this->right = max(0, $right);\n $this->bottom = max(0, $bottom);\n $this->left = max(0, $left);\n }\n\n /**\n ", "middle": "m, left\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfinal class Padding\n{\n public readonly int $top;\n public readonly int $right;\n public readonly int $bottom;\n public readonly int $lef", "meta": {"filepath": "src/Symfony/Component/Tui/Style/Padding.php", "language": "php", "file_size": 2990, "cut_index": 563, "middle_length": 229}} {"prefix": "l` means \"not set\" - the value will be inherited from parent styles during merge\n * - An explicit value (even if zero/false) means \"explicitly set\" - overrides inheritance\n *\n * This applies to:\n * - `padding` - null (inherit) vs Padding instance (explicit, even if all zeros)\n * - `border` - null (inherit) vs Border instance (explicit, even if all zeros)\n * - `background` - null (inherit) vs Color instance (explicit color)\n * - `color` - null (inherit) vs Color instance (explicit color)\n * - `bold`, `dim`, ", "suffix": "roperties will inherit from parent rules\n * $style = new Style()->withColor('red');\n * $style->getPadding(); // null - will inherit\n * $style->getBold(); // null - will inherit\n *\n * // Explicit bold=false to override a parent's bold=tru", "middle": "`italic`, `strikethrough`, `underline`, `reverse` - null (inherit) vs bool (explicit true/false)\n * - `hidden` - null (inherit) vs bool (true = hidden, false = explicitly visible)\n *\n * Examples:\n *\n * // Color only - other p", "meta": {"filepath": "src/Symfony/Component/Tui/Style/Style.php", "language": "php", "file_size": 25071, "cut_index": 1331, "middle_length": 229}} {"prefix": "e:\n * - FQCN: 'Symfony\\Component\\Tui\\Widget\\Input' or Input::class\n * - FQCN with state: 'Symfony\\Component\\Tui\\Widget\\Input:focus'\n * - CSS class: '.sidebar'\n * - CSS class with state: '.sidebar:focus'\n * - Standalone pseudo-class: ':root' (matches the root widget)\n * - Universal: '*' (matches all widgets)\n * - Sub-element (pseudo-element): SelectList::class.'::selected'\n * - Sub-element with state: SelectList::class.'::selected:focus'\n * - Class sub-element: '.my-list::selected'\n * - Class sub-element wit", "suffix": "ass)\n * 3. CSS class selectors (e.g., '.header')\n * 4. State selectors (e.g., ':root', Input::class.':focus')\n * 5. Instance style (widget's own setStyle())\n *\n * All style properties use `null` to mean \"inherit from earlier rules\":\n *\n * // This rule ", "middle": "h state: '.my-list::selected:focus'\n *\n * ## Style Inheritance\n *\n * When resolving styles, rules are applied in this order (later rules override earlier):\n * 1. Universal selector ('*')\n * 2. Widget FQCN selector (e.g., Text::cl", "meta": {"filepath": "src/Symfony/Component/Tui/Style/StyleSheet.php", "language": "php", "file_size": 16070, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Focus;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Tui\\Event\\FocusEvent;\nuse Symfony\\Component\\Tui\\Input\\Key;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Render\\RenderRequestorInterface;\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\nuse Symfony\\Component\\Tui\\Widget\\FocusableInterface;\n\n/**\n * Owns the focused-widget state and handles focus navigation.\n *\n * Default bindi", "suffix": "vious' => ['shift+f6'],\n ];\n\n private ?AbstractWidget $focused = null;\n\n /** @var array */\n private array $focusables = [];\n\n private Keybindings $keybindings;\n\n /**\n * @internal constructed by ", "middle": "ngs: F6 (next) and Shift+F6 (previous).\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass FocusManager\n{\n private const DEFAULT_BINDINGS = [\n 'focus_next' => [Key::F6],\n 'focus_pre", "meta": {"filepath": "src/Symfony/Component/Tui/Focus/FocusManager.php", "language": "php", "file_size": 5926, "cut_index": 716, "middle_length": 229}} {"prefix": "mfony\\Component\\Tui\\Style\\VerticalAlign;\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\nuse Symfony\\Component\\Tui\\Widget\\Figlet\\FontRegistry;\nuse Symfony\\Component\\Tui\\Widget\\ParentInterface;\nuse Symfony\\Component\\Tui\\Widget\\VerticallyExpandableInterface;\n\n/**\n * Lays out children vertically or horizontally with gap, fill, and alignment.\n *\n * The layout engine distributes available space among children, handles\n * fill-expanding children, and applies horizontal/vertical alignment.\n *\n * @experimental\n *\n", "suffix": "racker $positionTracker,\n private readonly FontRegistry $fontRegistry,\n ) {\n }\n\n /**\n * Layout children based on direction.\n *\n * @param AbstractWidget[] $children\n *\n * @return string[]\n */\n public function layou", "middle": " * @internal\n *\n * @author Fabien Potencier \n */\nfinal class LayoutEngine\n{\n public function __construct(\n private readonly WidgetRendererInterface $widgetRenderer,\n private readonly PositionT", "meta": {"filepath": "src/Symfony/Component/Tui/Render/LayoutEngine.php", "language": "php", "file_size": 17172, "cut_index": 921, "middle_length": 229}} {"prefix": "gn;\nuse Symfony\\Component\\Tui\\Style\\DefaultStyleSheet;\nuse Symfony\\Component\\Tui\\Style\\Direction;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\StyleSheet;\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\nuse Symfony\\Component\\Tui\\Widget\\ContainerWidget;\nuse Symfony\\Component\\Tui\\Widget\\Figlet\\FontRegistry;\nuse Symfony\\Component\\Tui\\Widget\\ParentInterface;\n\n/**\n * Renders the widget tree with style resolution, layout, and chrome.\n *\n * The Renderer:\n * 1. Resolves styles through cas", "suffix": "dget content\n *\n * All widget types are rendered through the Renderer: containers via\n * renderContainer(), and leaf widgets by delegating to widget->render().\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfina", "middle": "cade (* → FQCN → CSS class → state → instance)\n * 2. Computes layout (vertical/horizontal with gap and fill children)\n * 3. Calls widget->render() with enriched context\n * 4. Applies chrome (padding, border, background) around wi", "meta": {"filepath": "src/Symfony/Component/Tui/Render/Renderer.php", "language": "php", "file_size": 13600, "cut_index": 921, "middle_length": 229}} {"prefix": " EncoderInterface, DecoderInterface, NormalizationAwareInterface, SerializerAwareInterface\n{\n use SerializerAwareTrait;\n\n public const FORMAT = 'xml';\n\n public const AS_COLLECTION = 'as_collection';\n\n /**\n * An array of ignored XML node types while decoding, each one of the DOM Predefined XML_* constants.\n */\n public const DECODER_IGNORED_NODE_TYPES = 'decoder_ignored_node_types';\n\n /**\n * An array of ignored XML node types while encoding, each one of the DOM Predefined XML_* c", "suffix": "_* constants for loading XML documents.\n */\n public const LOAD_OPTIONS = 'load_options';\n\n /**\n * A bit field of LIBXML_* constants for saving XML documents.\n */\n public const SAVE_OPTIONS = 'save_options';\n\n public const REMOVE_EMP", "middle": "onstants.\n */\n public const ENCODER_IGNORED_NODE_TYPES = 'encoder_ignored_node_types';\n public const ENCODING = 'xml_encoding';\n public const FORMAT_OUTPUT = 'xml_format_output';\n\n /**\n * A bit field of LIBXML", "meta": {"filepath": "src/Symfony/Component/Serializer/Encoder/XmlEncoder.php", "language": "php", "file_size": 20680, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Serializer\\Exception\\MappingException;\n\n/**\n * @author Nicolas Grekas \n */\nfinal class Attrib", "suffix": "}\n\n $resolve = $container->getParameterBag()->resolveValue(...);\n $taggedClasses = [];\n foreach ($container->getDefinitions() as $id => $definition) {\n if (!$definition->hasTag('serializer.attribute_metadata')) {\n ", "middle": "uteMetadataPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('serializer.mapping.attribute_loader')) {\n return;\n ", "meta": {"filepath": "src/Symfony/Component/Serializer/DependencyInjection/AttributeMetadataPass.php", "language": "php", "file_size": 2686, "cut_index": 563, "middle_length": 229}} {"prefix": "rmats:\n * - Basic 16 ANSI colors (named: 'black', 'red', 'green', etc.)\n * - 256-color palette (integers 0-255)\n * - True color RGB (hex strings like '#ff5500' or '#f50')\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfinal class Color\n{\n // Basic 16 ANSI color codes (foreground)\n private const BASIC_COLORS = [\n 'black' => 30,\n 'red' => 31,\n 'green' => 32,\n 'yellow' => 33,\n 'blue' => 34,\n 'magenta' => 35,\n 'cyan' => 36,\n ", "suffix": " 'bright_cyan' => 96,\n 'bright_white' => 97,\n // Aliases\n 'gray' => 90,\n 'grey' => 90,\n ];\n\n /** Standard RGB values for named ANSI colors (xterm defaults). */\n private const NAMED_RGB = [\n 'black' => [0, 0, 0]", "middle": " 'white' => 37,\n 'default' => 39,\n 'bright_black' => 90,\n 'bright_red' => 91,\n 'bright_green' => 92,\n 'bright_yellow' => 93,\n 'bright_blue' => 94,\n 'bright_magenta' => 95,\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Style/Color.php", "language": "php", "file_size": 11402, "cut_index": 921, "middle_length": 229}} {"prefix": "asses are parsed from widget style classes and dynamically\n * converted to Style objects. They coexist with regular CSS-like rules\n * and take precedence over them in the cascade (they are \"immutable\").\n *\n * ## Supported utility classes\n *\n * ### Padding\n * p-{n} All sides\n * px-{n} Left and right\n * py-{n} Top and bottom\n * pt-{n} pr-{n} pb-{n} pl-{n} Individual sides\n *\n * ### Border\n * border All sides, width 1\n * border-{n}", "suffix": " border\n * border-{pattern} Pattern: normal, rounded, double, tall, wide, tall-medium, wide-medium, tall-large, wide-large\n * border-{color} Color: {family}-{shade}, [#hex], or palette index\n *\n * ### Background color\n * bg-{family}-{", "middle": " All sides, width n\n * border-t border-r border-b border-l Individual side, width 1\n * border-t-{n} border-r-{n} border-b-{n} border-l-{n} Individual side, width n\n * border-none Remove", "meta": {"filepath": "src/Symfony/Component/Tui/Style/TailwindStylesheet.php", "language": "php", "file_size": 15404, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Ansi;\n\nuse Symfony\\Component\\Tui\\Style\\Color;\nuse Symfony\\Component\\Tui\\Terminal\\ScreenBuffer;\n\n/**\n * Renders a ScreenBuffer to HTML with inline CSS styles.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfinal class ScreenBufferHtmlRenderer\n{\n private Color $defaultForeground;\n private Color $defaultBackground;\n\n public function __construct(\n ?Color $defaultForeground = null,\n ?Color $defau", "suffix": "ffer to HTML with inline styles.\n */\n public function convert(ScreenBuffer $screen): string\n {\n $cells = $screen->getCells();\n $height = $screen->getHeight();\n $result = '';\n $lastNonEmptyEnd = 0;\n\n for ($row = ", "middle": "ltBackground = null,\n ) {\n $this->defaultForeground = $defaultForeground ?? Color::hex('#d4d4d4');\n $this->defaultBackground = $defaultBackground ?? Color::hex('#1e1e1e');\n }\n\n /**\n * Convert a ScreenBu", "meta": {"filepath": "src/Symfony/Component/Tui/Ansi/ScreenBufferHtmlRenderer.php", "language": "php", "file_size": 7077, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Render;\n\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\TextAlign;\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\n\n/**\n * Applies chrome (padding, border, background) around widget content.\n *\n * Chrome is the visual frame around a widget's rendered lines:\n * padding adds space inside, borders draw a box, and background colors\n * fill the area. The result is cached for perfor", "suffix": " ) {\n }\n\n /**\n * Apply chrome (padding, border, background) to rendered lines.\n *\n * @param string[] $lines\n *\n * @return string[]\n */\n public function apply(array $lines, int $width, Style $style, AbstractWidget $widget): ", "middle": "mance.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class ChromeApplier\n{\n public function __construct(\n private readonly WidgetRendererInterface $widgetRenderer,\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Render/ChromeApplier.php", "language": "php", "file_size": 7999, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Serializer\\Extractor;\n\nuse Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface;\n\n/**\n * @author David Maicher \n */\nfinal class ObjectPropertyListExtractor implements ObjectPropertyListExtractorInterface\n{\n private \\", "suffix": "objectClassResolver ?? 'get_class')(...);\n }\n\n public function getProperties(object $object, array $context = []): ?array\n {\n $class = ($this->objectClassResolver)($object);\n\n return $this->propertyListExtractor->getProperties($class", "middle": "Closure $objectClassResolver;\n\n public function __construct(\n private PropertyListExtractorInterface $propertyListExtractor,\n ?callable $objectClassResolver = null,\n ) {\n $this->objectClassResolver = ($", "meta": {"filepath": "src/Symfony/Component/Serializer/Extractor/ObjectPropertyListExtractor.php", "language": "php", "file_size": 1018, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Style;\n\nuse Symfony\\Component\\Tui\\Widget\\CancellableLoaderWidget;\nuse Symfony\\Component\\Tui\\Widget\\EditorWidget;\nuse Symfony\\Component\\Tui\\Widget\\InputWidget;\nuse Symfony\\Component\\Tui\\Widget\\LoaderWidget;\nuse Symfony\\Component\\Tui\\Widget\\MarkdownWidget;\nuse Symfony\\Component\\Tui\\Widget\\SelectListWidget;\nuse Symfony\\Component\\Tui\\Widget\\Setti", "suffix": ".\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class DefaultStyleSheet\n{\n public static function create(): StyleSheet\n {\n return new StyleSheet([\n // Heading classes (used by

", "middle": "ngsListWidget;\n\n/**\n * Default TUI stylesheet with base styling rules.\n *\n * Provides sensible defaults for all core widget sub-elements.\n * These can be overridden by application or theme stylesheets\n * via the cascade mechanism", "meta": {"filepath": "src/Symfony/Component/Tui/Style/DefaultStyleSheet.php", "language": "php", "file_size": 4482, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Render;\n\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\n\n/**\n * Tracks absolute positions of rendered widgets on screen.\n *\n * Maintains a stack of absolute [row, col] offsets for the current rendering\n * context and records each widget's final position as a WidgetRect.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\n private array $positionStack = [];\n\n public function __construct()\n {\n $this->widgetPositions = new \\WeakMap();\n }\n\n /**\n * Reset the position stack for a new render pass.\n *", "middle": "ien@symfony.com>\n */\nfinal class PositionTracker\n{\n /** @var \\WeakMap */\n private \\WeakMap $widgetPositions;\n\n /**\n * Stack of absolute [row, col] offsets for the current rendering context", "meta": {"filepath": "src/Symfony/Component/Tui/Render/PositionTracker.php", "language": "php", "file_size": 4356, "cut_index": 614, "middle_length": 229}} {"prefix": " The 3x3 strategy matrix is used by renderers to decide how to swap colors\n * for block-style borders:\n * - 0: border color on inner background (standard border rendering)\n * - 1: border color on outer background (blend with outer background)\n * - 2: reverse video border/outer — filled part shows outer bg, empty part shows border color\n * - 3: reverse video border/inner — filled part shows inner bg, empty part shows border color\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfin", "suffix": ";\n public const TALL_MEDIUM = 'tall-medium';\n public const WIDE_MEDIUM = 'wide-medium';\n public const TALL_LARGE = 'tall-large';\n public const WIDE_LARGE = 'wide-large';\n\n /**\n * @param array> $chars\n * @param", "middle": "al class BorderPattern\n{\n public const NONE = 'none';\n public const NORMAL = 'normal';\n public const ROUNDED = 'rounded';\n public const DOUBLE = 'double';\n public const TALL = 'tall';\n public const WIDE = 'wide'", "meta": {"filepath": "src/Symfony/Component/Tui/Style/BorderPattern.php", "language": "php", "file_size": 13793, "cut_index": 921, "middle_length": 229}} {"prefix": "terminal\n * - Managing cursor position for differential rendering\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class ScreenWriter\n{\n private const PRINTABLE_ASCII = ' !\"#$%&\\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~';\n\n /** @var string[] */\n private array $previousLines = [];\n private int $previousWidth = 0;\n private int $cursorRow = 0;\n private int $hardwareCursorRow = 0;\n private int $", "suffix": "\n private ?array $previousCursorPos = null;\n\n public function __construct(\n private readonly TerminalInterface $terminal,\n ) {\n }\n\n public function setShowHardwareCursor(bool $enabled): void\n {\n if ($this->showHardwareCursor", "middle": "maxLinesRendered = 0;\n private bool $showHardwareCursor = true;\n private int $scrollOffset = 0;\n\n /** @var string[] */\n private array $previousRawLines = [];\n\n /** @var array{row: int, col: int, shape: int}|null */", "meta": {"filepath": "src/Symfony/Component/Tui/Render/ScreenWriter.php", "language": "php", "file_size": 18674, "cut_index": 1331, "middle_length": 229}} {"prefix": "pe, positions the hardware cursor, and\n * sets the cursor style via `ESC [ N SP q`.\n *\n * @see cursorMarker()\n */\n public const CURSOR_MARKER_PREFIX = \"\\x1b_pi:c;\";\n\n /**\n * Full SGR reset and OSC 8 reset sequence.\n */\n public const SEGMENT_RESET = \"\\x1b[0m\\x1b]8;;\\x07\";\n\n /**\n * Combined pattern matching all ECMA-48 escape sequences in a single regex.\n * Alternation order: CSI (most common), string sequences, nF, two-byte.\n */\n private const ALL_ESC_PATTER", "suffix": "RAM_CHARS = '0123456789:;<=>?';\n\n /**\n * Character set for CSI intermediate bytes (0x20-0x2F).\n */\n private const CSI_INTERMEDIATE_CHARS = \" !\\\"#\\$%&'()*+,-./\";\n\n /**\n * Create a cursor marker embedding the given shape.\n *\n * T", "middle": "N = '/\\x1b(?:\\[[\\x30-\\x3F]*[\\x20-\\x2F]*[\\x40-\\x7E]|[P\\]_\\^X][^\\x07\\x1b]*(?:\\x07|\\x1b\\\\\\\\)|[\\x20-\\x2F]+[\\x30-\\x7E]|[\\x30-\\x7E])/';\n\n /**\n * Character set for CSI parameter bytes (0x30-0x3F).\n */\n private const CSI_PA", "meta": {"filepath": "src/Symfony/Component/Tui/Ansi/AnsiUtils.php", "language": "php", "file_size": 22931, "cut_index": 1331, "middle_length": 229}} {"prefix": "umentException;\nuse Symfony\\Component\\Tui\\Style\\Border;\nuse Symfony\\Component\\Tui\\Style\\BorderPattern;\nuse Symfony\\Component\\Tui\\Style\\Color;\nuse Symfony\\Component\\Tui\\Style\\Style;\n\nclass BorderTest extends TestCase\n{\n public function testNegativeValuesClampedToZero()\n {\n $border = new Border(-5, -3, -1, -2);\n\n $this->assertSame(0, $border->top);\n $this->assertSame(0, $border->right);\n $this->assertSame(0, $border->bottom);\n $this->assertSame(0, $border->left);\n }", "suffix": "\n\n $this->assertSame($top, $border->top);\n $this->assertSame($right, $border->right);\n $this->assertSame($bottom, $border->bottom);\n $this->assertSame($left, $border->left);\n }\n\n /**\n * @return iterable $input\n */\n #[DataProvider('fromArrayProvider')]\n public function testFromArray(array $input, int $top, int $right, int $bottom, int $left)\n {\n $border = Border::from($input);", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Style/BorderTest.php", "language": "php", "file_size": 10713, "cut_index": 921, "middle_length": 229}} {"prefix": "idget\\TextWidget;\n\nclass ContainerTest extends TestCase\n{\n public function testRender()\n {\n $container = new ContainerWidget();\n $container->add(new TextWidget('First'));\n $container->add(new TextWidget('Second'));\n\n $lines = $this->renderContainer($container);\n\n $content = implode(\"\\n\", $lines);\n $this->assertStringContainsString('First', $content);\n $this->assertStringContainsString('Second', $content);\n }\n\n public function testRenderEmpty()\n ", "suffix": "tainerWidget();\n $container->setStyle(new Style(border: Border::all(1)));\n\n $lines = $this->renderContainer($container);\n\n $stripped = array_map(static fn ($l) => AnsiUtils::stripAnsiCodes($l), $lines);\n // Should have at least ", "middle": " {\n $container = new ContainerWidget();\n $lines = $this->renderContainer($container);\n\n $this->assertSame([], $lines);\n }\n\n public function testRenderEmptyWithBorder()\n {\n $container = new Con", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/ContainerTest.php", "language": "php", "file_size": 22165, "cut_index": 1331, "middle_length": 229}} {"prefix": "space\n\n $this->assertSame('Hell', $editor->getText());\n }\n\n #[DataProvider('deleteWordBackwardProvider')]\n public function testDeleteWordBackward(string $keySequence, string $description)\n {\n $editor = new EditorWidget();\n $editor->setText('hello world');\n\n $editor->handleInput(\"\\x1b[F\"); // End key\n $editor->handleInput($keySequence);\n\n $this->assertSame('hello ', $editor->getText());\n }\n\n /**\n * @return iterable", "suffix": "+Backspace (Kitty protocol)' => [\"\\x1b[127;3u\", 'Kitty Alt+Backspace'];\n }\n\n public function testEnterCreatesNewLine()\n {\n $editor = new EditorWidget();\n $editor->setText('Hello');\n // Move cursor to end using Ctrl+E\n $", "middle": "\n */\n public static function deleteWordBackwardProvider(): iterable\n {\n yield 'Alt+Backspace (legacy: ESC + DEL)' => [\"\\x1b\\x7f\", 'Alt+Backspace'];\n yield 'Ctrl+W' => [\"\\x17\", 'Ctrl+W'];\n yield 'Alt", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/EditorTest.php", "language": "php", "file_size": 50484, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\StyleSheet;\nuse Symfony\\Component\\Tui\\Style\\TailwindStylesheet;\nuse Symfony\\Component\\", "suffix": "rWithFont(string $font, int $expectedLines)\n {\n $widget = new TextWidget('Hi');\n $lines = $this->renderWidgetWithFont($widget, $font, 80, 24);\n\n $this->assertCount($expectedLines, $lines);\n }\n\n /**\n * @return iterablerender(new RenderContext(40, 24));\n\n $this->assertCount", "suffix": "lo');\n $lines = $input->render(new RenderContext(40, 24));\n\n $this->assertCount(1, $lines);\n // Full width available for text, no prompt prefix\n $this->assertSame(40, AnsiUtils::visibleWidth($lines[0]));\n $stripped = Ansi", "middle": "(1, $lines);\n $this->assertStringContainsString('>', $lines[0]);\n }\n\n public function testRenderWithEmptyPrompt()\n {\n $input = new InputWidget();\n $input->setPrompt('');\n $input->setValue('Hel", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/InputTest.php", "language": "php", "file_size": 15395, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\StyleSheet;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\nuse Symfony\\Component\\Tui\\Tui;\nuse Symfony\\Component\\Tui\\Widget\\LoaderWidget;\n\nclass LoaderTest extends TestCase\n{\n public function testRenderIncludesB", "suffix": "essage\n $this->assertSame('', $lines[0]);\n $this->assertCount(2, $lines);\n }\n\n public function testRenderIncludesSpinnerAndMessage()\n {\n $loader = new LoaderWidget(message: 'Working...');\n $loader->start();\n\n $li", "middle": "lankLine()\n {\n $loader = new LoaderWidget(message: 'Test');\n $loader->start();\n\n $lines = $loader->render(new RenderContext(80, 24));\n\n // First line should be blank, second line has the spinner + m", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/LoaderTest.php", "language": "php", "file_size": 8048, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\nuse Symfony\\Component\\Tui\\Tui;\nuse Symfony\\Component\\Tui\\Widget\\MarkdownWid", "suffix": "r(new RenderContext(40, 24));\n\n $this->assertSame([], $lines);\n }\n\n /**\n * @param list $expectedSubstrings substrings to find in the joined output\n */\n #[DataProvider('markdownElementProvider')]\n public function testRende", "middle": "get;\n\n#[IgnoreDeprecations('League\\\\\\\\CommonMark\\\\\\\\Util\\\\\\\\ArrayCollection')]\nclass MarkdownTest extends TestCase\n{\n public function testRenderEmpty()\n {\n $md = $this->createMarkdown('');\n $lines = $md->rende", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/MarkdownTest.php", "language": "php", "file_size": 7894, "cut_index": 716, "middle_length": 229}} {"prefix": "ymfony\\Component\\Tui\\Style\\StyleSheet;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\nuse Symfony\\Component\\Tui\\Tui;\nuse Symfony\\Component\\Tui\\Widget\\ProgressBarWidget;\n\n/**\n * @covers \\Symfony\\Component\\Tui\\Widget\\ProgressBarWidget\n */\nclass ProgressBarTest extends TestCase\n{\n public function testConstructionDeterminate()\n {\n $bar = new ProgressBarWidget(100);\n\n $this->assertSame(100, $bar->getMaxSteps());\n $this->assertSame(0, $bar->getProgress());\n $this->assertSame", "suffix": "tProgress());\n }\n\n public function testAdvance()\n {\n $bar = new ProgressBarWidget(100);\n $bar->advance(10);\n\n $this->assertSame(10, $bar->getProgress());\n $this->assertEqualsWithDelta(0.1, $bar->getProgressPercent(), 0.", "middle": "(0.0, $bar->getProgressPercent());\n }\n\n public function testConstructionIndeterminate()\n {\n $bar = new ProgressBarWidget();\n\n $this->assertSame(0, $bar->getMaxSteps());\n $this->assertSame(0, $bar->ge", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/ProgressBarTest.php", "language": "php", "file_size": 16539, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Event\\CancelEvent;\nuse Symfony\\Component\\Tui\\Event\\SelectEvent;\nuse Symfony\\Component\\Tui\\Event\\SelectionChangeEvent;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\nuse Symfony\\Component\\Tui\\Tui;\nuse Symfony\\Component\\Tui\\Widget\\Se", "suffix": "tringContainsString('Option 1', $lines[0]);\n }\n\n public function testRenderShowsSelectedIndicator()\n {\n $list = $this->createTestList();\n $lines = $list->render(new RenderContext(80, 24));\n\n // First item should have arrow ind", "middle": "lectListWidget;\n\nclass SelectListTest extends TestCase\n{\n public function testRenderShowsItems()\n {\n $list = $this->createTestList();\n $lines = $list->render(new RenderContext(80, 24));\n\n $this->assertS", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/SelectListTest.php", "language": "php", "file_size": 7242, "cut_index": 716, "middle_length": 229}} {"prefix": "ymfony\\Component\\Tui\\Event\\SelectEvent;\nuse Symfony\\Component\\Tui\\Event\\SettingChangeEvent;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Style\\Border;\nuse Symfony\\Component\\Tui\\Style\\Padding;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\nuse Symfony\\Component\\Tui\\Tui;\nuse Symfony\\Component\\Tui\\Widget\\SelectListWidget;\nuse Symfony\\Component\\Tui\\Widget\\SettingItem;\nuse Symfony\\Component\\Tui\\Wid", "suffix": "t(80, 24));\n\n $this->assertStringContainsString('Theme', $lines[0]);\n }\n\n public function testCycleValueRight()\n {\n [$widget, $tui] = $this->createWithTui();\n\n $this->assertSame('dark', $widget->getValue('theme'));\n\n //", "middle": "get\\SettingsListWidget;\n\nclass SettingsListTest extends TestCase\n{\n public function testRenderShowsItems()\n {\n $widget = new SettingsListWidget($this->createItems());\n $lines = $widget->render(new RenderContex", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/SettingsListTest.php", "language": "php", "file_size": 10332, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Widget\\TextWidget;\n\nclass TextTest extends TestCase\n{\n public function testRenderSimpleText()\n {\n $text = new TextWidget('Hello');\n $lines = $this->renderWidget($text, 20, 24);\n\n ", "suffix": "Hello');\n $text->setStyle($style);\n $lines = $this->renderWidget($text, 20, 24);\n\n // Should have 1 top padding + 1 content + 1 bottom padding = 3 lines\n $this->assertCount(3, $lines);\n\n // All lines should be full width\n", "middle": " $this->assertCount(1, $lines);\n $this->assertStringContainsString('Hello', $lines[0]);\n }\n\n public function testRenderWithPadding()\n {\n $style = Style::padding([1, 2]);\n $text = new TextWidget('", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/TextTest.php", "language": "php", "file_size": 7825, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Focus\\FocusManager;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Render\\RenderRequestorInterface;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\nuse Symfony\\Component\\Tui\\Tui;\nuse Symfony\\Component", "suffix": "e $tree;\n\n protected function setUp(): void\n {\n $terminal = new VirtualTerminal(80, 24);\n $tui = new Tui(terminal: $terminal);\n $this->tree = new WidgetTree($tui, new Keybindings(), new FocusManager($this->createStub(RenderReques", "middle": "\\Tui\\Widget\\ContainerWidget;\nuse Symfony\\Component\\Tui\\Widget\\TextWidget;\nuse Symfony\\Component\\Tui\\Widget\\WidgetContext;\nuse Symfony\\Component\\Tui\\Widget\\WidgetTree;\n\nclass WidgetTreeTest extends TestCase\n{\n private WidgetTre", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/WidgetTreeTest.php", "language": "php", "file_size": 3638, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget\\Util;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Widget\\Util\\KillRing;\n\nclass KillRingTest extends TestCase\n{\n public function testAddAndPeek()\n {\n $ring = new KillRing();\n $ring->add('hello', false);\n\n $this->assertSame('hello', $ring->peek());\n }\n\n public function testAddEmptyStr", "suffix": "$ring->add('hello', false);\n $ring->add(' world', false);\n\n $this->assertSame('hello world', $ring->peek());\n }\n\n public function testConsecutiveKillsPrepend()\n {\n $ring = new KillRing();\n $ring->add('world', true);\n ", "middle": "ingIsIgnored()\n {\n $ring = new KillRing();\n $ring->add('', false);\n\n $this->assertNull($ring->peek());\n }\n\n public function testConsecutiveKillsAppend()\n {\n $ring = new KillRing();\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Util/KillRingTest.php", "language": "php", "file_size": 4900, "cut_index": 614, "middle_length": 229}} {"prefix": "ne;\n\nclass LineTest extends TestCase\n{\n // --- bounds clamping ---\n\n public function testConstructorClampsNegativeCursor()\n {\n $line = new Line('hello', -5);\n $this->assertSame(0, $line->getCursor());\n }\n\n public function testConstructorClampsCursorBeyondEnd()\n {\n $line = new Line('hello', 100);\n $this->assertSame(5, $line->getCursor());\n }\n\n public function testSetCursorClampsNegativeValue()\n {\n $line = new Line('hello', 3);\n $line->setCu", "suffix": "getCursor());\n }\n\n public function testSetTextAdjustsCursorWhenBeyondNewLength()\n {\n $line = new Line('hello world', 10);\n $line->setText('hi');\n $this->assertSame('hi', $line->getText());\n $this->assertSame(2, $line->g", "middle": "rsor(-1);\n $this->assertSame(0, $line->getCursor());\n }\n\n public function testSetCursorClampsBeyondEnd()\n {\n $line = new Line('hello', 0);\n $line->setCursor(100);\n $this->assertSame(5, $line->", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Util/LineTest.php", "language": "php", "file_size": 11188, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Widget\\Util\\StringUtils;\n\nclass StringUtilsTest extends TestCase\n{\n // --- hasControlChars ---\n\n /**\n * @return iterable [\"hello\\x00world\", true];\n yield 'printable ASCII' => ['hello', false];\n yield 'latin accents' => ['café', false];\n yield 'emoji' => ['👋', false];\n yield 'emoji mixed with text' => ['hello 🎉 wo", "middle": "ay{string, bool}>\n */\n public static function hasControlCharsProvider(): iterable\n {\n yield 'null byte' => [\"\\x00\", true];\n yield 'escape' => [\"\\x1b\", true];\n yield 'del' => [\"\\x7f\", true];\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Util/StringUtilsTest.php", "language": "php", "file_size": 2029, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Widget\\Util\\WordNavigator;\n\nfinal class WordNavigatorTest extends TestCase\n{\n /**\n * @return iterable\n */\n public static function skipWordBackwardProvider(): iterable\n {", "suffix": " then word (from mid)' => ['hello world', 7, 0];\n yield 'skips punctuation (from end)' => ['hello...world', 13, 8];\n yield 'skips punctuation (from mid)' => ['hello...world', 8, 5];\n yield 'skips word after punctuation' => ['hello...w", "middle": "\n yield 'at start of string' => ['hello world', 0, 0];\n yield 'skips word' => ['hello world', 11, 6];\n yield 'skips whitespace then word (from end)' => ['hello world', 12, 7];\n yield 'skips whitespace", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Util/WordNavigatorTest.php", "language": "php", "file_size": 4092, "cut_index": 614, "middle_length": 229}} {"prefix": "r\\EditorDocument;\n\nclass EditorDocumentTest extends TestCase\n{\n // --- Text Operations ---\n\n public function testSetTextReturnsWhetherStateChanged()\n {\n $doc = new EditorDocument();\n\n $this->assertTrue($doc->setText('hello'), 'setText should return true when text changes');\n $this->assertFalse($doc->setText('hello'), 'setText on identical text+cursor should return false');\n }\n\n public function testSetTextNormalizesLineEndings()\n {\n $doc = new EditorDocument();\n ", "suffix": "e 2\\nline 3\");\n $doc->moveCursorDown();\n $doc->moveCursorDown();\n\n $doc->setText('new');\n\n $this->assertSame(0, $doc->getCursorLine());\n $this->assertSame(0, $doc->getCursorCol());\n }\n\n public function testSetTextCl", "middle": " $doc->setText(\"a\\r\\nb\\rc\");\n\n $this->assertSame(\"a\\nb\\nc\", $doc->getText());\n }\n\n public function testSetTextResetsCursorPosition()\n {\n $doc = new EditorDocument();\n $doc->setText(\"line 1\\nlin", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Editor/EditorDocumentTest.php", "language": "php", "file_size": 16694, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget\\Editor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Style\\CursorShape;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Widget\\Editor\\EditorRenderer;\n\nclass EditorRendererTest extends TestCase\n{\n private EditorRenderer $renderer;\n\n protected function setUp(): void\n {\n $this->renderer = new EditorRenderer();\n }\n\n public function testRend", "suffix": "\n {\n $lines = $this->renderSimple(['Line 1', 'Line 2', 'Line 3'], 0, 0, 40, 10);\n\n // Top border + 3 content lines + bottom border\n $this->assertCount(5, $lines);\n }\n\n public function testRenderLinesDoNotExceedWidth()\n {\n ", "middle": "erEmptyDocument()\n {\n $lines = $this->renderSimple([''], 0, 0, 40, 10);\n\n // Top border + 1 content line + bottom border\n $this->assertCount(3, $lines);\n }\n\n public function testRenderMultipleLines()", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Editor/EditorRendererTest.php", "language": "php", "file_size": 5422, "cut_index": 716, "middle_length": 229}} {"prefix": " = \"\\x1b[?25l\";\n private const SHOW_CURSOR = \"\\x1b[?25h\";\n\n // --- Full render (initial) ---\n\n public function testFirstRenderWritesAllLines()\n {\n $terminal = new VirtualTerminal(80, 24);\n $writer = new ScreenWriter($terminal);\n\n $writer->writeLines(['Line 1', 'Line 2', 'Line 3']);\n\n $output = $terminal->getOutput();\n\n // Should use synchronized output\n $this->assertStringContainsString(self::SYNC_START, $output);\n $this->assertStringContainsStrin", "suffix": "sString('Line 1', $output);\n $this->assertStringContainsString('Line 2', $output);\n $this->assertStringContainsString('Line 3', $output);\n\n // Plain text lines should be separated by \\r\\n without reset\n $this->assertStringContai", "middle": "g(self::SYNC_END, $output);\n\n // Should NOT clear screen on first render\n $this->assertStringNotContainsString(self::CLEAR_SCREEN, $output);\n\n // All lines should be present\n $this->assertStringContain", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Render/ScreenWriterTest.php", "language": "php", "file_size": 20911, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Render;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Render\\WidgetRect;\n\nclass WidgetRectTest extends TestCase\n{\n #[DataProvider('containsProvider')]\n public function testContains(int $row, int ", "suffix": " /**\n * @return iterable\n */\n public static function containsProvider(): iterable\n {\n // Inside\n yield 'top-left corner' => [5, 10, true];\n yield 'center' => [15, 30, true];\n yield 'b", "middle": "$col, bool $expected)\n {\n // Rect at (5, 10) with size 40x20 → covers rows 5..24, cols 10..49\n $rect = new WidgetRect(5, 10, 40, 20);\n\n $this->assertSame($expected, $rect->contains($row, $col));\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Render/WidgetRectTest.php", "language": "php", "file_size": 1745, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Figlet;\n\nuse Symfony\\Component\\Tui\\Render\\Compositor;\nuse Symfony\\Component\\Tui\\Style\\Color;\n\n/**\n * Renders text using a FIGlet font.\n *\n * Concatenates the ASCII art for each character horizontally, line by line.\n * Strips trailing whitespace from each line and removes blank trailing", "suffix": "nt mode: spaces at the end of lines won't carry styling that\n * would prevent lower layers from showing through.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class FigletRenderer\n{\n public function __", "middle": " lines.\n *\n * When a color is provided, each line is wrapped with the foreground ANSI\n * escape code. Since trailing whitespace is already stripped, the colored\n * output is safe for use with the {@see Compositor}\n * in transpare", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Figlet/FigletRenderer.php", "language": "php", "file_size": 2578, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Figlet;\n\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\n\n/**\n * Registry for FIGlet fonts.\n *\n * Maps font names to file paths and lazily loads FigletFont instances.\n * Bundled fonts (big, small, slant, standard, mini) are registered\n * by default. Custom fonts can be re", "suffix": " Style(font: 'custom'));\n * $widget->addStyleClass('font-custom');\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfinal class FontRegistry\n{\n private const string BUNDLED_FONTS_DIR = __DIR__.'/fonts';\n private const a", "middle": "gistered by name:\n *\n * $registry = new FontRegistry();\n * $registry->register('custom', '/path/to/custom.flf');\n *\n * Fonts are referenced by name throughout the Style system:\n *\n * $stylesheet->addRule('.title', new", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Figlet/FontRegistry.php", "language": "php", "file_size": 2734, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests;\n\n/**\n * Handles key sequence parsing for TUI tests.\n *\n * This centralizes the key name to escape sequence mapping used by\n * both the fixture recorder and regression tests.\n */\nfinal class KeySequenceParser\n{\n /**\n * Map of human-readable key names to terminal escape sequences.", "suffix": "ift+Tab>' => \"\\x1b[Z\",\n '' => \"\\x1b[17~\",\n '' => \"\\x1b[17;2~\",\n '' => \"\\x7f\",\n '' => \"\\x1b[A\",\n '' => \"\\x1b[B\",\n '' => \"\\x1b[C\",\n '' => \"\\x1b[D\",\n '\n */\n private const KEY_MAP = [\n '' => \"\\r\",\n '' => \"\\r\",\n '' => \"\\x1b\",\n '' => \"\\x1b\",\n '' => \"\\t\",\n 'assertTrue($result['identical']);\n $this->as", "suffix": "=> 0, 'unchanged' => 0], $result['stats']);\n }\n\n public function testAddedLines()\n {\n $expected = \"Line 1\\nLine 2\";\n $actual = \"Line 1\\nLine 2\\nLine 3\";\n\n $result = StateDiff::compare($expected, $actual);\n\n $this->asser", "middle": "sertSame('Outputs are identical', $result['summary']);\n $this->assertSame([], $result['diff_lines']);\n $this->assertSame('', $result['diff_text']);\n $this->assertSame(['added' => 0, 'removed' => 0, 'changed' ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/StateDiffTest.php", "language": "php", "file_size": 4864, "cut_index": 614, "middle_length": 229}} {"prefix": "omponent\\Tui\\Event\\TickEvent;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Input\\Key;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\StyleSheet;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\nuse Symfony\\Component\\Tui\\Tui;\nuse Symfony\\Component\\Tui\\Widget\\ContainerWidget;\nuse Symfony\\Component\\Tui\\Widget\\InputWidget;\nuse Symfony\\Component\\Tui\\Widget\\", "suffix": "d'));\n\n $tui->start();\n $tui->processRender();\n\n $output = $terminal->getOutput();\n $this->assertStringContainsString('Hello World', $output);\n }\n\n public function testMultipleComponents()\n {\n $terminal = new Vir", "middle": "TextWidget;\n\nclass TuiTest extends TestCase\n{\n public function testBasicRender()\n {\n $terminal = new VirtualTerminal(40, 10);\n $tui = new Tui(terminal: $terminal);\n\n $tui->add(new TextWidget('Hello Worl", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/TuiTest.php", "language": "php", "file_size": 16049, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Style;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Style\\BorderPattern;\nuse Symfony\\Component\\Tui\\Style\\Color;\nuse Symfony\\Component\\Tui\\Style\\Style;\n\nclass BorderPatternTest extends TestCase\n{\n #[DataProvider('allPatternsProvider')]\n public function testFromNameReturnsExpectedCharsAndIsNone(string $name, ?st", "suffix": "omName->getChars());\n $this->assertSame($fromMethod->getStrategies(), $fromName->getStrategies());\n }\n\n $this->assertSame($isNone, $fromName->isNone());\n }\n\n /**\n * @return iterable\n ", "middle": "ring $method, bool $isNone)\n {\n $fromName = BorderPattern::fromName($name);\n\n if (null !== $method) {\n $fromMethod = BorderPattern::$method();\n $this->assertSame($fromMethod->getChars(), $fr", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Style/BorderPatternTest.php", "language": "php", "file_size": 5691, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Style;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Style\\Padding;\n\nclass PaddingTest extends TestCase\n{\n /**\n * @param list $input\n */\n #[DataPr", "suffix": "this->assertSame($right, $padding->right);\n $this->assertSame($bottom, $padding->bottom);\n $this->assertSame($left, $padding->left);\n }\n\n /**\n * @return iterable, int, int, int, int}>\n */\n public stati", "middle": "ovider('fromArrayProvider')]\n public function testFromArray(array $input, int $top, int $right, int $bottom, int $left)\n {\n $padding = Padding::from($input);\n\n $this->assertSame($top, $padding->top);\n $", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Style/PaddingTest.php", "language": "php", "file_size": 2974, "cut_index": 563, "middle_length": 229}} {"prefix": "fony\\Component\\Tui\\Style\\Border;\nuse Symfony\\Component\\Tui\\Style\\BorderPattern;\nuse Symfony\\Component\\Tui\\Style\\Color;\nuse Symfony\\Component\\Tui\\Style\\CursorShape;\nuse Symfony\\Component\\Tui\\Style\\Direction;\nuse Symfony\\Component\\Tui\\Style\\Padding;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\TextAlign;\nuse Symfony\\Component\\Tui\\Style\\VerticalAlign;\n\nclass StyleTest extends TestCase\n{\n public function testBorderWithSingleElementArray()\n {\n $style = Style::border([2], Bo", "suffix": "me(2, $border->left);\n $this->assertSame(BorderPattern::double()->getChars(), $border->pattern->getChars());\n $this->assertSame(BorderPattern::double()->getStrategies(), $border->pattern->getStrategies());\n $this->assertSame(\n ", "middle": "rderPattern::DOUBLE, 'red');\n $border = $style->getBorder();\n\n $this->assertSame(2, $border->top);\n $this->assertSame(2, $border->right);\n $this->assertSame(2, $border->bottom);\n $this->assertSa", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Style/StyleTest.php", "language": "php", "file_size": 15452, "cut_index": 921, "middle_length": 229}} {"prefix": " */\n public static function paddingProvider(): iterable\n {\n yield 'all' => ['p-2', 2, 2, 2, 2];\n yield 'zero' => ['p-0', 0, 0, 0, 0];\n yield 'horizontal' => ['px-3', 0, 3, 0, 3];\n yield 'vertical' => ['py-1', 1, 0, 1, 0];\n }\n\n public function testPaddingIndividualSides()\n {\n $stylesheet = new TailwindStylesheet();\n $widget = new TextWidget('Hello');\n $widget->addStyleClass('pt-1');\n $widget->addStyleClass('pr-2');\n $widget->addSty", "suffix": ");\n $this->assertSame(3, $resolved->getPadding()->bottom);\n $this->assertSame(4, $resolved->getPadding()->left);\n }\n\n public function testPaddingLastWins()\n {\n $stylesheet = new TailwindStylesheet();\n $widget = new Text", "middle": "leClass('pb-3');\n $widget->addStyleClass('pl-4');\n\n $resolved = $stylesheet->resolve($widget);\n\n $this->assertSame(1, $resolved->getPadding()->top);\n $this->assertSame(2, $resolved->getPadding()->right", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Style/TailwindStylesheetTest.php", "language": "php", "file_size": 39590, "cut_index": 2151, "middle_length": 229}} {"prefix": "Renderer;\nuse Symfony\\Component\\Tui\\Style\\Color;\nuse Symfony\\Component\\Tui\\Terminal\\ScreenBuffer;\n\nclass ScreenBufferHtmlRendererTest extends TestCase\n{\n /**\n * @param string[] $expectedCss\n */\n #[DataProvider('ansiToHtmlProvider')]\n public function testAnsiToHtmlConversion(string $ansi, array $expectedCss)\n {\n $html = $this->convert($ansi);\n\n foreach ($expectedCss as $css) {\n $this->assertStringContainsString($css, $html);\n }\n }\n\n /**\n * @return", "suffix": "=> [\"\\x1b[1;32mHello\\x1b[0m\", ['font-weight: bold', 'color: #00cd00']];\n yield 'background color' => [\"\\x1b[41mHello\\x1b[0m\", ['background-color: #cd0000']];\n yield 'bright foreground' => [\"\\x1b[91mHello\\x1b[0m\", ['color: #ff0000']];\n ", "middle": " iterable\n */\n public static function ansiToHtmlProvider(): iterable\n {\n yield 'foreground color' => [\"\\x1b[32mHello\\x1b[0m\", ['color: #00cd00']];\n yield 'bold with color' ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Ansi/ScreenBufferHtmlRendererTest.php", "language": "php", "file_size": 10606, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Focus;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Event\\FocusEvent;\nuse Symfony\\Component\\Tui\\Input\\Key;\nuse Symfony\\Component\\Tui\\Input\\Keybindings;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\nuse Symfony\\Component\\Tui\\Tests\\KeySequenceParser;\nuse Symfony\\Component\\Tui\\Tui;\nuse Symfony\\Component\\Tui\\Widget\\Input", "suffix": "new InputWidget();\n $second = new InputWidget();\n\n $focusManager->add($first)->add($second);\n\n $tui->setFocus($first);\n $this->assertSame($first, $tui->getFocus());\n\n $focusManager->focusNext();\n $this->assertSame(", "middle": "Widget;\n\nclass FocusManagerTest extends TestCase\n{\n public function testFocusNavigation()\n {\n $tui = new Tui(terminal: new VirtualTerminal(80, 24));\n $focusManager = $tui->getFocusManager();\n\n $first = ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Focus/FocusManagerTest.php", "language": "php", "file_size": 3504, "cut_index": 614, "middle_length": 229}} {"prefix": "gumentException;\nuse Symfony\\Component\\Tui\\Render\\CellBuffer;\n\nclass CellBufferTest extends TestCase\n{\n /**\n * @return iterable\n */\n public static function invalidDimensionsProvider(): iterable\n {\n yield 'zero width' => [0, 5, 'CellBuffer dimensions must be at least 1x1, got 0x5'];\n yield 'zero height' => [10, 0, 'CellBuffer dimensions must be at least 1x1, got 10x0'];\n yield 'negative width' => [-1, 5, 'CellBuffer dimensions must be at ", "suffix": "[DataProvider('invalidDimensionsProvider')]\n public function testConstructorRejectsInvalidDimensions(int $width, int $height, string $expectedMessage)\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionM", "middle": "least 1x1, got -1x5'];\n yield 'negative height' => [10, -3, 'CellBuffer dimensions must be at least 1x1, got 10x-3'];\n yield 'both zero' => [0, 0, 'CellBuffer dimensions must be at least 1x1, got 0x0'];\n }\n\n #", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Render/CellBufferTest.php", "language": "php", "file_size": 13766, "cut_index": 921, "middle_length": 229}} {"prefix": "fony\\Component\\Tui\\Style\\Border;\nuse Symfony\\Component\\Tui\\Style\\Direction;\nuse Symfony\\Component\\Tui\\Style\\Padding;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Widget\\ContainerWidget;\nuse Symfony\\Component\\Tui\\Widget\\TextWidget;\n\nclass LayoutEngineTest extends TestCase\n{\n public function testLayoutVerticalSingleChild()\n {\n $renderer = new Renderer();\n $root = new ContainerWidget();\n $root->add(new TextWidget('Hello'));\n\n $result = $renderer->render($ro", "suffix": " $root = new ContainerWidget();\n $root->add(new TextWidget('First'));\n $root->add(new TextWidget('Second'));\n\n $result = $renderer->render($root, 80, 24);\n\n $this->assertCount(2, $result);\n $this->assertStringContainsSt", "middle": "ot, 80, 24);\n\n $this->assertCount(1, $result);\n $this->assertStringContainsString('Hello', $result[0]);\n }\n\n public function testLayoutVerticalMultipleChildren()\n {\n $renderer = new Renderer();\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Render/LayoutEngineTest.php", "language": "php", "file_size": 13049, "cut_index": 921, "middle_length": 229}} {"prefix": "ertStringContainsString('After', $after[0]);\n }\n\n public function testRenderCacheInvalidatedWhenDimensionsChange()\n {\n $renderer = new Renderer();\n $fill = new ContainerWidget();\n $fill->expandVertically(true);\n $fill->add(new TextWidget('A'));\n\n $root = new ContainerWidget();\n $root->add($fill);\n\n $small = $renderer->render($root, 40, 5);\n $large = $renderer->render($root, 40, 10);\n\n // The fill child expands differently with different", "suffix": "= new Renderer();\n $root = new ContainerWidget();\n $root->add(new TextWidget('First'));\n\n $oneChild = $renderer->render($root, 40, 10);\n\n $root->add(new TextWidget('Second'));\n $twoChildren = $renderer->render($root, 40, ", "middle": " rows\n $this->assertNotSame($small, $large);\n $this->assertCount(5, $small);\n $this->assertCount(10, $large);\n }\n\n public function testRenderCacheInvalidatedWhenChildrenChange()\n {\n $renderer ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Render/RendererTest.php", "language": "php", "file_size": 36302, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Widget\\BracketedPasteTrait;\n\nclass BracketedPasteHandler\n{\n use BracketedPasteTrait {\n processBracketedPaste as public;\n isBufferingPaste as public;\n }\n}\n\nclass BracketedPasteTraitTest extends TestCase\n{\n public function testSingleChunkPaste()\n {\n $handler = $this->createHandler();\n\n $data = \"\\x1b[200~hello world\\x1b[201~\";\n ", "suffix": "tMultiChunkPaste()\n {\n $handler = $this->createHandler();\n\n // First chunk: start marker + partial content\n $data = \"\\x1b[200~hello \";\n $result = $handler->processBracketedPaste($data);\n $this->assertNull($result);\n ", "middle": " $result = $handler->processBracketedPaste($data);\n\n $this->assertSame('hello world', $result);\n $this->assertSame('', $data);\n $this->assertFalse($handler->isBufferingPaste());\n }\n\n public function tes", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/BracketedPasteTraitTest.php", "language": "php", "file_size": 5952, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Widget\\Markdown;\n\nuse Tempest\\Highlight\\TerminalTheme;\nuse Tempest\\Highlight\\Themes\\EscapesTerminalTheme;\nuse Tempest\\Highlight\\Tokens\\TokenType;\nuse Tempest\\Highlight\\Tokens\\TokenTypeEnum;\n\n/**\n * Dark terminal theme for syntax highlighting.\n *\n * @experimental\n *\n ", "suffix": "gb = match ($tokenType) {\n TokenTypeEnum::KEYWORD => [255, 122, 178], // #ff7ab2\n TokenTypeEnum::TYPE => [172, 242, 228], // #acf2e4\n TokenTypeEnum::PROPERTY => [120, 199, 255], // #78c7ff (variable)\n Tok", "middle": "* @internal\n *\n * @author Fabien Potencier \n */\nfinal class DarkTerminalTheme implements TerminalTheme\n{\n use EscapesTerminalTheme;\n\n public function before(TokenType $tokenType): string\n {\n $r", "meta": {"filepath": "src/Symfony/Component/Tui/Widget/Markdown/DarkTerminalTheme.php", "language": "php", "file_size": 1803, "cut_index": 537, "middle_length": 229}} {"prefix": "d: int, unchanged: int}\n * }\n */\n public static function compare(string $expected, string $actual): array\n {\n if ($expected === $actual) {\n return [\n 'identical' => true,\n 'summary' => 'Outputs are identical',\n 'diff_lines' => [],\n 'diff_text' => '',\n 'stats' => ['added' => 0, 'removed' => 0, 'changed' => 0, 'unchanged' => 0],\n ];\n }\n\n $expectedLines = explode(\"\\n\", $expected);", "suffix": "y' => \\sprintf(\n '%d added, %d removed, %d changed, %d unchanged',\n $stats['added'],\n $stats['removed'],\n $stats['changed'],\n $stats['unchanged']\n ),\n 'diff_li", "middle": "\n $actualLines = explode(\"\\n\", $actual);\n\n $diff = self::computeDiff($expectedLines, $actualLines);\n $stats = self::computeStats($diff);\n\n return [\n 'identical' => false,\n 'summar", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/StateDiff.php", "language": "php", "file_size": 25837, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Render;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Render\\PositionTracker;\nuse Symfony\\Component\\Tui\\Render\\WidgetRect;\nuse Symfony\\Component\\Tui\\Widget\\TextWidget;\n\n/**\n * @author Fabien Potencier \n */\nfinal class PositionTrackerTest extends TestCase\n{\n // -----------------------------------------", "suffix": "acker();\n $widget = new TextWidget('hello');\n\n $this->assertNull($tracker->getWidgetRect($widget));\n }\n\n public function testSetAndGetWidgetRect()\n {\n $tracker = new PositionTracker();\n $widget = new TextWidget('hello')", "middle": "----------------------\n // Widget position tracking\n // ---------------------------------------------------------------\n\n public function testGetWidgetRectReturnsNullForUntracked()\n {\n $tracker = new PositionTr", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Render/PositionTrackerTest.php", "language": "php", "file_size": 4778, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Event\\CancelEvent;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\nuse Symfony\\Component\\Tui\\Tui;\nuse Symfony\\Component\\Tui\\Widget\\CancellableLoaderWidget;\n\nclass CancellableLoaderWidgetTest extends TestCase\n{\n public function testCancelViaEscapeKey()\n {\n ", "suffix": "assertSame($loader, $event->getTarget());\n });\n\n // Escape key = \\x1b\n $loader->handleInput(\"\\x1b\");\n\n $this->assertTrue($loader->isCancelled());\n $this->assertTrue($cancelCalled);\n }\n\n public function testCancelVia", "middle": " [$loader, $tui] = $this->createLoaderWithTui();\n $cancelCalled = false;\n\n $tui->addListener(function (CancelEvent $event) use (&$cancelCalled, $loader): void {\n $cancelCalled = true;\n $this->", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/CancellableLoaderWidgetTest.php", "language": "php", "file_size": 4673, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Style\\Color;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\StyleSheet;\nuse Symfony\\Component\\Tui\\Widget\\TextWidget;\n\n/**\n * Tests for cascading stylesheets integration with Tui.\n *\n * @author Fabien Potencier <", "suffix": "\n $stylesheet = $renderer->getStyleSheet();\n\n // Default stylesheet should resolve a basic widget\n $widget = new TextWidget('test');\n $style = $stylesheet->resolve($widget);\n // Style should have some defaults from the st", "middle": "fabien@symfony.com>\n */\nclass TuiCascadingStylesheetTest extends TestCase\n{\n public function testWithoutUserStylesheet()\n {\n // When no stylesheets are provided, defaults are used\n $renderer = new Renderer();\n", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/TuiCascadingStylesheetTest.php", "language": "php", "file_size": 4558, "cut_index": 614, "middle_length": 229}} {"prefix": " $stylesheet = new StyleSheet();\n $widget = new TextWidget('Hello');\n\n $resolved = $stylesheet->resolve($widget);\n\n $this->assertNull($resolved->getPadding());\n $this->assertNull($resolved->getBorder());\n $this->assertNull($resolved->getBackground());\n $this->assertNull($resolved->getColor());\n }\n\n public function testResolveWithUniversalSelector()\n {\n $stylesheet = new StyleSheet()\n ->addRule('*', Style::padding([1, 2]));\n $widget ", "suffix": "testResolveWithFqcnSelector()\n {\n $stylesheet = new StyleSheet()\n ->addRule(TextWidget::class, new Style()->withColor('red'));\n $widget = new TextWidget('Hello');\n\n $resolved = $stylesheet->resolve($widget);\n\n $thi", "middle": "= new TextWidget('Hello');\n\n $resolved = $stylesheet->resolve($widget);\n\n $this->assertSame(1, $resolved->getPadding()->top);\n $this->assertSame(2, $resolved->getPadding()->right);\n }\n\n public function ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Style/StyleSheetTest.php", "language": "php", "file_size": 32935, "cut_index": 1331, "middle_length": 229}} {"prefix": "(string $input, int $expected)\n {\n $this->assertSame($expected, AnsiUtils::visibleWidth($input));\n }\n\n public function testVisibleWidthWithAnsiCodes()\n {\n // Red \"Hello\" with reset\n $this->assertSame(5, AnsiUtils::visibleWidth(\"\\x1b[31mHello\\x1b[0m\"));\n\n // Bold + colors\n $this->assertSame(5, AnsiUtils::visibleWidth(\"\\x1b[1;31mHello\\x1b[0m\"));\n }\n\n public function testVisibleWidthWithEmoji()\n {\n // Most emojis are 2 columns wide\n $this->a", "suffix": ">assertSame(2, AnsiUtils::visibleWidth('日'));\n $this->assertSame(4, AnsiUtils::visibleWidth('日本'));\n }\n\n public function testVisibleWidthConsistencyBetweenSlowPathAndGraphemeWidth()\n {\n // Ensure visibleWidth (which uses mb_strwidth ", "middle": "ssertSame(2, AnsiUtils::visibleWidth('😀'));\n $this->assertSame(4, AnsiUtils::visibleWidth('😀😀'));\n }\n\n public function testVisibleWidthWithWideChars()\n {\n // CJK characters are 2 columns wide\n $this-", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Ansi/AnsiUtilsTest.php", "language": "php", "file_size": 19256, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Render;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Style\\Align;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\StyleSheet;\nuse Symfony\\Component\\Tui\\Style\\TailwindStylesheet;\nuse Symfony\\Component\\Tui\\Style\\VerticalAlign;\nuse Symfony\\Component\\Tui\\Widget\\ContainerWidg", "suffix": "StyleSheet([\n '.parent' => new Style(align: Align::Center),\n '.child' => new Style(maxColumns: 10),\n ]));\n\n $root = new ContainerWidget();\n $root->addStyleClass('parent');\n $child = new TextWidget('Hello');", "middle": "et;\nuse Symfony\\Component\\Tui\\Widget\\TextWidget;\n\n/**\n * @author Fabien Potencier \n */\nfinal class AlignTest extends TestCase\n{\n public function testAlignCenter()\n {\n $renderer = new Renderer(new ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Render/AlignTest.php", "language": "php", "file_size": 8882, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget\\Editor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Widget\\Editor\\EditorViewport;\n\nclass EditorViewportTest extends TestCase\n{\n public function testComputeViewportKeepsCursorVisible()\n {\n $viewport = new EditorViewport();\n $lines = [];\n for ($i = 0; $i < 50; ++$i) {\n $lines[] =", "suffix": " $this->assertLessThan($result['scroll_offset'] + $result['visible_line_count'], 20);\n }\n\n public function testComputeViewportScrollsUpWhenCursorAbove()\n {\n $viewport = new EditorViewport();\n $lines = [];\n for ($i = 0; $i < ", "middle": " \"Line $i\";\n }\n\n // Cursor at line 20, viewport shows 10 rows\n $result = $viewport->computeViewport($lines, 20, 10, 80, false, 1);\n\n $this->assertGreaterThanOrEqual($result['scroll_offset'], 20);\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Editor/EditorViewportTest.php", "language": "php", "file_size": 4023, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget\\Figlet;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Widget\\Figlet\\FigletFont;\nuse Symfony\\Component\\Tui\\Widget\\Figlet\\FigletRenderer;\n\nclass FigletRendererTest extends TestCase\n{\n private const FONTS_DIR = __DIR__.'/../../../Widget/Figlet/fonts';\n\n public function testRenderEmptyString()\n {\n $font = FigletFont::load(self::FONTS_DIR.'/big.flf');\n $renderer = new FigletRenderer($font);\n\n ", "suffix": "nes = $renderer->render('A');\n\n // big font is 8 tall, trailing blank lines stripped; should be ≤ 8 and ≥ 1\n $this->assertGreaterThanOrEqual(1, \\count($lines));\n $this->assertLessThanOrEqual(8, \\count($lines));\n\n // Should conta", "middle": " $this->assertSame([], $renderer->render(''));\n }\n\n public function testRenderSingleCharacter()\n {\n $font = FigletFont::load(self::FONTS_DIR.'/big.flf');\n $renderer = new FigletRenderer($font);\n\n $li", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Figlet/FigletRendererTest.php", "language": "php", "file_size": 6003, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Event;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Event\\ChangeEvent;\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\n\nclass ChangeEventTest extends TestCase\n{\n #[DataProvid", "suffix": "());\n }\n\n public static function isBlankProvider(): iterable\n {\n yield 'empty string' => ['', true];\n yield 'whitespace only' => [' ', true];\n yield 'tabs and spaces' => [\"\\t \\n\", true];\n yield 'non-empty value' => ['", "middle": "er('isBlankProvider')]\n public function testIsBlank(string $value, bool $expected)\n {\n $event = new ChangeEvent($this->createStub(AbstractWidget::class), $value);\n\n $this->assertSame($expected, $event->isBlank", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Event/ChangeEventTest.php", "language": "php", "file_size": 1099, "cut_index": 515, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Event;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Event\\SubmitEvent;\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\n\nclass SubmitEventTest extends TestCase\n{\n #[DataProvid", "suffix": "());\n }\n\n public static function isBlankProvider(): iterable\n {\n yield 'empty string' => ['', true];\n yield 'whitespace only' => [' ', true];\n yield 'tabs and spaces' => [\"\\t \\n\", true];\n yield 'non-empty value' => ['", "middle": "er('isBlankProvider')]\n public function testIsBlank(string $value, bool $expected)\n {\n $event = new SubmitEvent($this->createStub(AbstractWidget::class), $value);\n\n $this->assertSame($expected, $event->isBlank", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Event/SubmitEventTest.php", "language": "php", "file_size": 1099, "cut_index": 515, "middle_length": 229}} {"prefix": "class StdinBufferTest extends TestCase\n{\n /**\n * @param string[] $expectedSequences\n */\n #[DataProvider('sequenceProvider')]\n public function testProcess(string $input, array $expectedSequences)\n {\n $buffer = new StdinBuffer();\n $sequences = [];\n\n $buffer->onData(static function (string $data) use (&$sequences) {\n $sequences[] = bin2hex($data);\n });\n\n $buffer->process($input);\n\n $this->assertSame($expectedSequences, $sequences);\n }\n", "suffix": "complete, waiting for more\n ],\n 'double escape' => [\n \"\\x1b\\x1b\",\n [], // Need to wait for third char to decide\n ],\n 'escape then down arrow' => [\n \"\\x1b\\x1b[B\",\n ", "middle": "\n /**\n * @return array\n */\n public static function sequenceProvider(): array\n {\n return [\n 'single escape' => [\n \"\\x1b\",\n [], // In", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Input/StdinBufferTest.php", "language": "php", "file_size": 13335, "cut_index": 921, "middle_length": 229}} {"prefix": " }\n\n /**\n * @return iterable\n */\n public static function writeAndGetScreenProvider(): iterable\n {\n yield 'simple text' => [40, 10, 'Hello, World!', 'Hello, World!'];\n yield 'newlines' => [40, 10, \"Line 1\\nLine 2\\nLine 3\", \"Line 1\\nLine 2\\nLine 3\"];\n yield 'carriage return' => [40, 10, \"First\\rSecond\", 'Second'];\n yield 'clear screen' => [40, 10, \"Old content\\x1b[2J\\x1b[HNew content\", 'New content'];\n yield 'UTF-8 ch", "suffix": "e' => [20, 3, \"A\\nB\\nC\\nD\\nE\\nF\", \"D\\nE\\nF\"];\n yield 'wide character plain text' => [40, 10, '你好世界', '你好世界'];\n yield 'wide character multiline' => [40, 10, \"你好\\n世界\", \"你好\\n世界\"];\n }\n\n public function testCursorMovement()\n {\n $sc", "middle": "aracters' => [40, 10, \"→ Option 1\\n Option 2\\n✓ Selected\", \"→ Option 1\\n Option 2\\n✓ Selected\"];\n yield 'scroll up' => [20, 3, \"Line 1\\nLine 2\\nLine 3\\nLine 4\", \"Line 2\\nLine 3\\nLine 4\"];\n yield 'scroll up multipl", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Terminal/ScreenBufferTest.php", "language": "php", "file_size": 22067, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Terminal;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\n\nclass VirtualTerminalTest extends TestCase\n{\n public function testSimulateInputForwardsKeySequences()\n {\n $terminal = new VirtualTerminal();\n $received = [];\n\n $termina", "suffix": "this->assertSame(['a', 'b', 'c'], $received);\n\n $terminal->stop();\n }\n\n public function testSimulateInputForwardsPasteContent()\n {\n $terminal = new VirtualTerminal();\n $received = [];\n\n $terminal->start(\n sta", "middle": "l->start(\n static function (string $data) use (&$received) { $received[] = $data; },\n static function () {},\n static function () {},\n );\n\n $terminal->simulateInput('abc');\n\n $", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Terminal/VirtualTerminalTest.php", "language": "php", "file_size": 3846, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Loop;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Loop\\FixedStepAccumulator;\n\nclass FixedStepAccumulatorTest extends TestCase\n{\n public function testConstructorRejectsInvalidArgumen", "suffix": "Accumulator(60.0, 5);\n\n $this->assertSame(0, $accumulator->computeSteps(1.0 / 120.0));\n $this->assertSame(1, $accumulator->computeSteps(1.0 / 120.0));\n }\n\n public function testComputeStepsCapsLargeDelta()\n {\n $accumulator = ne", "middle": "ts()\n {\n $this->expectException(InvalidArgumentException::class);\n new FixedStepAccumulator(0.0);\n }\n\n public function testComputeStepsAccumulatesFractionalDelta()\n {\n $accumulator = new FixedStep", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Loop/FixedStepAccumulatorTest.php", "language": "php", "file_size": 1750, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\n\n/**\n * Tests for KeySequenceParser which converts human-readable key notation\n * to terminal escape sequences.\n */\nclass KeySequenceParserTest extends TestCase\n{\n #[DataProvider('parseKeysProvider')]\n ", "suffix": "lic static function parseKeysProvider(): array\n {\n return [\n 'enter' => ['', \"\\r\"],\n 'return' => ['', \"\\r\"],\n 'escape' => ['', \"\\x1b\"],\n 'esc' => ['', \"\\x1b\"],\n 't", "middle": " public function testParseKeys(string $input, string $expected)\n {\n $this->assertSame($expected, KeySequenceParser::parseKeys($input));\n }\n\n /**\n * @return array\n */\n pub", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/KeySequenceParserTest.php", "language": "php", "file_size": 2955, "cut_index": 563, "middle_length": 229}} {"prefix": "\n\nclass AnsiCodeTrackerTest extends TestCase\n{\n private AnsiCodeTracker $tracker;\n\n protected function setUp(): void\n {\n $this->tracker = new AnsiCodeTracker();\n }\n\n // --------------------------------------------------\n // Basic SGR attributes on/off\n // --------------------------------------------------\n\n /**\n * @return iterable\n */\n public static function sgrAttributeOnOffProvider(): iterable\n {\n yield 'bold' => [1, 22];\n ", "suffix": "gh' => [9, 29];\n }\n\n #[DataProvider('sgrAttributeOnOffProvider')]\n public function testSgrAttributeOnAndOff(int $onCode, int $offCode)\n {\n $this->tracker->process(\"\\x1b[{$onCode}m\");\n $this->assertTrue($this->tracker->hasActiveCod", "middle": " yield 'dim' => [2, 22];\n yield 'italic' => [3, 23];\n yield 'underline' => [4, 24];\n yield 'blink' => [5, 25];\n yield 'inverse' => [7, 27];\n yield 'hidden' => [8, 28];\n yield 'strikethrou", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Ansi/AnsiCodeTrackerTest.php", "language": "php", "file_size": 15828, "cut_index": 921, "middle_length": 229}} {"prefix": " Symfony\\Component\\Tui\\Render\\ChromeApplier;\nuse Symfony\\Component\\Tui\\Render\\RenderContext;\nuse Symfony\\Component\\Tui\\Render\\WidgetRendererInterface;\nuse Symfony\\Component\\Tui\\Style\\Border;\nuse Symfony\\Component\\Tui\\Style\\Padding;\nuse Symfony\\Component\\Tui\\Style\\Style;\nuse Symfony\\Component\\Tui\\Style\\TextAlign;\nuse Symfony\\Component\\Tui\\Widget\\TextWidget;\n\n/**\n * @author Fabien Potencier \n */\nfinal class ChromeApplierTest extends TestCase\n{\n // ---------------------------------------", "suffix": "\n public function testComputeInnerDimensions(int $columns, int $rows, Style $style, array $expected)\n {\n $applier = $this->createApplier();\n\n $this->assertSame($expected, $applier->computeInnerDimensions($columns, $rows, $style));\n }", "middle": "------------------------\n // computeInnerDimensions\n // ---------------------------------------------------------------\n\n /**\n * @param array{int, int} $expected\n */\n #[DataProvider('innerDimensionsProvider')]", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Render/ChromeApplierTest.php", "language": "php", "file_size": 13457, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget\\Figlet;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Widget\\Figlet\\FontRegistry;\n\nclass FontRegistryTest extends TestCase\n{\n public function testGetBundledFont()\n {\n $registry = new FontRegis", "suffix": "R__, 3).'/Widget/Figlet/fonts';\n\n $registry->register('my-font', $fontsDir.'/small.flf');\n\n $this->assertTrue($registry->has('my-font'));\n $font = $registry->get('my-font');\n $this->assertSame(5, $font->getHeight()); // small fo", "middle": "try();\n\n $font = $registry->get('big');\n\n $this->assertSame(8, $font->getHeight());\n }\n\n public function testRegisterCustomFont()\n {\n $registry = new FontRegistry();\n $fontsDir = \\dirname(__DI", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Figlet/FontRegistryTest.php", "language": "php", "file_size": 3002, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Event;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Event\\TickEvent;\n\nclass TickEventTest extends TestCase\n{\n public function testDeltaTimeDefaultsToZero()\n {\n $event = new TickEvent();\n\n $this->assertSame(0.0, $ev", "suffix": "efault()\n {\n $event = new TickEvent();\n\n $this->assertFalse($event->hasBusyHint());\n $this->assertFalse($event->isBusy());\n }\n\n public function testSetBusyTrueMarksBusy()\n {\n $event = new TickEvent();\n $event-", "middle": "ent->getDeltaTime());\n }\n\n public function testDeltaTimeCanBeProvided()\n {\n $event = new TickEvent(0.125);\n\n $this->assertSame(0.125, $event->getDeltaTime());\n }\n\n public function testHasNoBusyHintByD", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Event/TickEventTest.php", "language": "php", "file_size": 1349, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Terminal;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Terminal\\Terminal;\n\nclass TerminalTest extends TestCase\n{\n protected function setUp(): void\n {\n if ('\\\\' === \\DIRECTORY_SEPARATOR) {\n $this->markTestSkipped('fireAndFor", "suffix": "dForget');\n\n $start = microtime(true);\n $method->invoke($terminal, ['sleep', '10']);\n $elapsed = microtime(true) - $start;\n\n // Should return nearly instantly, not wait 10 seconds\n $this->assertLessThan(1.0, $elapsed);\n ", "middle": "get uses Unix shell syntax and is only invoked on macOS.');\n }\n }\n\n public function testFireAndForgetDoesNotBlock()\n {\n $terminal = new Terminal();\n $method = new \\ReflectionMethod($terminal, 'fireAn", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Terminal/TerminalTest.php", "language": "php", "file_size": 1883, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Render;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Ansi\\AnsiUtils;\nuse Symfony\\Component\\Tui\\Render\\Renderer;\nuse Symfony\\Component\\Tui\\Style\\TailwindStylesheet;\nuse Symfony\\Component\\Tui\\Widget\\ContainerWidget;\nuse Symfony\\Component\\Tui\\Widget\\TextWidget;\n\n/**\n * @author Fabien Potencier \n */\nfinal class TextAlignTest extends TestCase\n{\n #[DataProvide", "suffix": "new TextWidget('Hi');\n $text->addStyleClass($styleClass);\n $root->add($text);\n\n $lines = $renderer->render($root, 10, 5);\n\n $this->assertCount(1, $lines);\n $this->assertSame($expectedVisible, AnsiUtils::stripAnsiCodes($li", "middle": "r('textAlignProvider')]\n public function testTextAlignment(string $styleClass, string $expectedVisible)\n {\n $renderer = new Renderer(new TailwindStylesheet());\n\n $root = new ContainerWidget();\n $text = ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Render/TextAlignTest.php", "language": "php", "file_size": 5661, "cut_index": 716, "middle_length": 229}} {"prefix": "ymfony\\Component\\Tui\\Ansi\\TextWrapper;\n\nclass TextWrapperTest extends TestCase\n{\n /**\n * @param string[] $expected\n */\n #[DataProvider('wrapBasicProvider')]\n public function testWrapBasic(string $input, int $width, array $expected)\n {\n $this->assertSame($expected, TextWrapper::wrapTextWithAnsi($input, $width));\n }\n\n /**\n * @return iterable\n */\n public static function wrapBasicProvider(): iterable\n {\n yield 'short lin", "suffix": "\", 20, ['Hello', 'World']];\n yield 'multiple spaces preserved' => ['Hello World', 20, ['Hello World']];\n }\n\n public function testWrapWithAnsiCodes()\n {\n $styled = \"\\x1b[31mHello World\\x1b[0m\";\n $lines = TextWrapper::wrapTe", "middle": "e fits' => ['Hello', 20, ['Hello']];\n yield 'empty string' => ['', 20, ['']];\n yield 'long line wraps at word boundary' => ['Hello World', 5, ['Hello', 'World']];\n yield 'newlines preserved' => [\"Hello\\nWorld", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Ansi/TextWrapperTest.php", "language": "php", "file_size": 10426, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Input;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Input\\Key;\nuse Symfony\\Component\\Tui\\Input\\KeyParser;\n\nclass KeyParserTest extends TestCase\n{\n private KeyParser $parser;\n\n protected function setUp(): void\n {\n $this->parser = new KeyParser();\n }\n\n #[DataProvider('parseKeyProvider')]\n public function testParseKey(string $input, string $expectedKey)\n ", "suffix": "er(): iterable\n {\n yield 'enter (CR)' => [\"\\r\", Key::ENTER];\n yield 'enter (LF)' => [\"\\n\", Key::ENTER];\n yield 'escape' => [\"\\x1b\", Key::ESCAPE];\n yield 'tab' => [\"\\t\", Key::TAB];\n yield 'backspace' => [\"\\x7f\", Key::BA", "middle": " {\n $result = $this->parser->parse($input);\n $this->assertSame($expectedKey, $result['key']);\n }\n\n /**\n * @return iterable\n */\n public static function parseKeyProvid", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Input/KeyParserTest.php", "language": "php", "file_size": 8229, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Loop;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Loop\\AdaptativeTicker;\nuse Symfony\\Component\\Tui\\Loop\\TickRuntimeInterface;\n\nclass AdaptativeTickerTest extends TestCase\n{\n public function testRefreshSchedulesIdlePollingWhenTickStateIsUnknown()\n {\n $runtime = new TestTickRuntime();\n $ticker = new Adap", "suffix": "ticker));\n } finally {\n $ticker->stop();\n }\n }\n\n public function testRefreshDisablesPollingWhenExplicitlyIdleWithoutOtherWork()\n {\n $runtime = new TestTickRuntime();\n $ticker = new AdaptativeTicker($runtime);", "middle": "tativeTicker($runtime);\n\n try {\n $ticker->refresh(true, false, null, true, null);\n\n $this->assertSame(0.25, $this->getCurrentInterval($ticker));\n $this->assertNotNull($this->getCallbackId($", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Loop/AdaptativeTickerTest.php", "language": "php", "file_size": 3147, "cut_index": 614, "middle_length": 229}} {"prefix": "umentException;\nuse Symfony\\Component\\Tui\\Style\\Color;\n\nclass ColorTest extends TestCase\n{\n #[DataProvider('namedColorProvider')]\n public function testNamedColor(string $name, string $expectedFg, string $expectedBg)\n {\n $color = Color::named($name);\n $this->assertSame($expectedFg, $color->toForegroundCode());\n $this->assertSame($expectedBg, $color->toBackgroundCode());\n }\n\n /**\n * @return iterable\n */\n public static functi", "suffix": " 'yellow' => ['yellow', \"\\x1b[33m\", \"\\x1b[43m\"];\n yield 'blue' => ['blue', \"\\x1b[34m\", \"\\x1b[44m\"];\n yield 'magenta' => ['magenta', \"\\x1b[35m\", \"\\x1b[45m\"];\n yield 'cyan' => ['cyan', \"\\x1b[36m\", \"\\x1b[46m\"];\n yield 'white' => ['", "middle": "on namedColorProvider(): iterable\n {\n yield 'black' => ['black', \"\\x1b[30m\", \"\\x1b[40m\"];\n yield 'red' => ['red', \"\\x1b[31m\", \"\\x1b[41m\"];\n yield 'green' => ['green', \"\\x1b[32m\", \"\\x1b[42m\"];\n yield", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Style/ColorTest.php", "language": "php", "file_size": 9932, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Widget\\Figlet;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Widget\\Figlet\\FigletFont;\n\nclass FigletFontTest extends TestCase\n{\n private const FONTS_DIR = __D", "suffix": "=> ['small', 5];\n yield 'slant' => ['slant', 6];\n yield 'standard' => ['standard', 6];\n yield 'mini' => ['mini', 4];\n }\n\n #[DataProvider('bundledFontProvider')]\n public function testLoadBundledFont(string $name, int $expectedH", "middle": "IR__.'/../../../Widget/Figlet/fonts';\n\n /**\n * @return iterable\n */\n public static function bundledFontProvider(): iterable\n {\n yield 'big' => ['big', 8];\n yield 'small' ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Widget/Figlet/FigletFontTest.php", "language": "php", "file_size": 3627, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Terminal;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Terminal\\TeeTerminal;\nuse Symfony\\Component\\Tui\\Terminal\\VirtualTerminal;\n\nclass BellTest extends TestCase\n{\n public function testBellWritesBelCharacter()\n {\n ", "suffix": "irtualTerminal();\n $secondary = new VirtualTerminal();\n $tee = new TeeTerminal($primary, $secondary);\n\n $tee->bell();\n\n $this->assertSame(\"\\x07\", $primary->getOutput());\n $this->assertSame(\"\\x07\", $secondary->getOutput())", "middle": " $terminal = new VirtualTerminal();\n $terminal->bell();\n\n $this->assertSame(\"\\x07\", $terminal->getOutput());\n }\n\n public function testBellOnTeeTerminalWritesToBothTerminals()\n {\n $primary = new V", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Terminal/BellTest.php", "language": "php", "file_size": 1007, "cut_index": 512, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter;\n\nuse Symfony\\Component\\RateLimiter\\Exception\\MaxWaitDurationExceededException;\nuse Symfony\\Component\\RateLimiter\\Exception\\ReserveNotSupportedException;\n\n/**\n * @author Wouter de Jong \n */\ninterface LimiterInterface\n{\n /**\n * Waits ", "suffix": " *\n * @param int $tokens the number of tokens required\n * @param float|null $maxTime maximum accepted waiting time in seconds\n *\n * @throws MaxWaitDurationExceededException if $maxTime is set and the process needs to wait longer ", "middle": "until the required number of tokens is available.\n *\n * The reserved tokens will be taken into account when calculating\n * future token consumptions. Do not use this method if you intend\n * to skip this process.\n ", "meta": {"filepath": "src/Symfony/Component/RateLimiter/LimiterInterface.php", "language": "php", "file_size": 1667, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter;\n\nuse Symfony\\Component\\RateLimiter\\Exception\\RateLimitExceededException;\n\n/**\n * @author Valentin Silvestre \n */\nclass RateLimit\n{\n public function __construct(\n private int $availableTokens,\n private \\", "suffix": " * @throws RateLimitExceededException if not accepted\n */\n public function ensureAccepted(): static\n {\n if (!$this->accepted) {\n throw new RateLimitExceededException($this);\n }\n\n return $this;\n }\n\n public fu", "middle": "DateTimeImmutable $retryAfter,\n private bool $accepted,\n private int $limit,\n ) {\n }\n\n public function isAccepted(): bool\n {\n return $this->accepted;\n }\n\n /**\n * @return $this\n *\n ", "meta": {"filepath": "src/Symfony/Component/RateLimiter/RateLimit.php", "language": "php", "file_size": 1487, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Exception;\n\nuse Symfony\\Component\\RateLimiter\\RateLimit;\n\n/**\n * @author Kevin Bond \n */\nclass RateLimitExceededException extends \\RuntimeException\n{\n public function __construct(\n private RateLimit $rateLi", "suffix": "Limit;\n }\n\n public function getRetryAfter(): \\DateTimeImmutable\n {\n return $this->rateLimit->getRetryAfter();\n }\n\n public function getRemainingTokens(): int\n {\n return $this->rateLimit->getRemainingTokens();\n }\n\n publi", "middle": "mit,\n int $code = 0,\n ?\\Throwable $previous = null,\n ) {\n parent::__construct('Rate Limit Exceeded', $code, $previous);\n }\n\n public function getRateLimit(): RateLimit\n {\n return $this->rate", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Exception/RateLimitExceededException.php", "language": "php", "file_size": 1086, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Policy;\n\nuse Symfony\\Component\\RateLimiter\\LimiterStateInterface;\n\n/**\n * State of a fixed window aligned to calendar boundaries.\n *\n * @internal\n */\nfinal class CalendarAlignedWindow implements LimiterStateInterface\n{\n private int $hitCount = 0;\n\n public function __construct(\n ", "suffix": "s->id;\n }\n\n public function getPeriodStart(): \\DateTimeImmutable\n {\n return $this->periodStart;\n }\n\n public function getPeriodEnd(): \\DateTimeImmutable\n {\n return $this->periodEnd;\n }\n\n public function getExpirationTim", "middle": " private string $id,\n private int $maxSize,\n private \\DateTimeImmutable $periodStart,\n private \\DateTimeImmutable $periodEnd,\n ) {\n }\n\n public function getId(): string\n {\n return $thi", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Policy/CalendarAlignedWindow.php", "language": "php", "file_size": 2367, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Policy;\n\nuse Symfony\\Component\\Lock\\LockInterface;\nuse Symfony\\Component\\RateLimiter\\Exception\\MaxWaitDurationExceededException;\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\nuse Symfony\\Component\\RateLimiter\\Reservation;\nuse Symfony\\Component\\RateLimiter\\Storage\\StorageInterface;\nuse Symfony\\Component\\RateLimiter\\Util\\TimeUtil;\n\n/**\n * @author Wouter de Jong \n */\nf", "suffix": "he window is aligned to a calendar starting at this datetime\n * and resetting every $interval, instead of starting on the first hit.\n * The anchor's timezone is prese", "middle": "inal class FixedWindowLimiter implements LimiterInterface\n{\n use ResetLimiterTrait;\n\n private int $intervalInSeconds;\n private \\DateInterval $interval;\n\n /**\n * @param \\DateTimeImmutable|null $anchorAt When set, t", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Policy/FixedWindowLimiter.php", "language": "php", "file_size": 6754, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Policy;\n\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\nuse Symfony\\Component\\RateLimiter\\Reservation;\n\n/**\n * Implements a non limiting limiter.\n *\n * This can be used in cases where an ", "suffix": "oat $maxTime = null): Reservation\n {\n return new Reservation(microtime(true), new RateLimit(\\PHP_INT_MAX, new \\DateTimeImmutable(), true, \\PHP_INT_MAX));\n }\n\n public function consume(int $tokens = 1): RateLimit\n {\n return new Rate", "middle": "implementation requires a\n * limiter, but no rate limit should be enforced.\n *\n * @author Wouter de Jong \n */\nfinal class NoLimiter implements LimiterInterface\n{\n public function reserve(int $tokens = 1, ?fl", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Policy/NoLimiter.php", "language": "php", "file_size": 1122, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Policy;\n\nuse Symfony\\Component\\RateLimiter\\Util\\TimeUtil;\n\n/**\n * Data object representing the fill rate of a token bucket.\n *\n * @author Wouter de Jong \n */\nfinal class Rate\n{\n public function __construct(\n private \\DateInterval $refillTime,\n private int $refillAmount = 1,\n ) {\n }\n\n public", "suffix": "('PT1M'), $rate);\n }\n\n public static function perHour(int $rate = 1): self\n {\n return new static(new \\DateInterval('PT1H'), $rate);\n }\n\n public static function perDay(int $rate = 1): self\n {\n return new static(new \\DateInter", "middle": " static function perSecond(int $rate = 1): self\n {\n return new static(new \\DateInterval('PT1S'), $rate);\n }\n\n public static function perMinute(int $rate = 1): self\n {\n return new static(new \\DateInterval", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Policy/Rate.php", "language": "php", "file_size": 3151, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Policy;\n\nuse Symfony\\Component\\RateLimiter\\Exception\\InvalidIntervalException;\nuse Symfony\\Component\\RateLimiter\\LimiterStateInterface;\n\n/**\n * @author Tobias Nyholm \n *\n * @internal\n */\nfinal class SlidingWindow implements LimiterStateInterface\n{\n private int $hitCount = 0;\n private int $hitCountForLast", "suffix": "Exception(\\sprintf('The interval must be positive integer, \"%d\" given.', $intervalInSeconds));\n }\n $this->windowEndAt = microtime(true) + $intervalInSeconds;\n }\n\n public static function createFromPreviousWindow(self $window, int $interv", "middle": "Window = 0;\n private float $windowEndAt;\n\n public function __construct(\n private string $id,\n private int $intervalInSeconds,\n ) {\n if ($intervalInSeconds < 1) {\n throw new InvalidInterval", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Policy/SlidingWindow.php", "language": "php", "file_size": 4314, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Policy;\n\nuse Symfony\\Component\\Lock\\LockInterface;\nuse Symfony\\Component\\RateLimiter\\Exception\\MaxWaitDurationExceededException;\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\nuse Symfony\\Component\\RateLimiter\\Reservation;\nuse Symfony\\Component\\RateLimiter\\Storage\\StorageInterface;\nuse", "suffix": "are currently 25% into\n * the current window. We have made 3 hits in the current window so far.\n * That means our sliding window hit count is (75% * 8) + 3 = 9.\n *\n * @author Tobias Nyholm \n */\nfinal class SlidingWindowLimiter impl", "middle": " Symfony\\Component\\RateLimiter\\Util\\TimeUtil;\n\n/**\n * The sliding window algorithm will look at your last window and the current one.\n * It is good algorithm to reduce bursts.\n *\n * Example:\n * Last time window we did 8 hits. We ", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Policy/SlidingWindowLimiter.php", "language": "php", "file_size": 4753, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Policy;\n\nuse Symfony\\Component\\RateLimiter\\LimiterStateInterface;\n\n/**\n * @author Wouter de Jong \n *\n * @internal\n */\nfinal class TokenBucket implements LimiterStateInterface\n{\n private int $tokens;\n private int $burstSize;\n private float $timer;\n\n /**\n * @param string $id unique ident", "suffix": "null $timer the current timer of the bucket, defaulting to microtime(true)\n */\n public function __construct(\n private string $id,\n int $initialTokens,\n private Rate $rate,\n ?float $timer = null,\n ) {\n if", "middle": "ifier for this bucket\n * @param int $initialTokens the initial number of tokens in the bucket (i.e. the max burst size)\n * @param Rate $rate the fill rate and time of this bucket\n * @param float|", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Policy/TokenBucket.php", "language": "php", "file_size": 3755, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Policy;\n\nuse Symfony\\Component\\Lock\\LockInterface;\nuse Symfony\\Component\\RateLimiter\\Exception\\MaxWaitDurationExceededException;\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\nuse Symfony\\Component\\RateLimiter\\Reservation;\nuse Symfony\\Component\\RateLimiter\\Storage\\StorageInterface;\n\n/*", "suffix": " private Rate $rate,\n StorageInterface $storage,\n ?LockInterface $lock = null,\n ) {\n $this->id = $id;\n $this->storage = $storage;\n $this->lock = $lock;\n }\n\n /**\n * Waits until the required number of tokens", "middle": "*\n * @author Wouter de Jong \n */\nfinal class TokenBucketLimiter implements LimiterInterface\n{\n use ResetLimiterTrait;\n\n public function __construct(\n string $id,\n private int $maxBurst,\n ", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Policy/TokenBucketLimiter.php", "language": "php", "file_size": 4584, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Policy;\n\nuse Symfony\\Component\\RateLimiter\\LimiterStateInterface;\n\n/**\n * @author Wouter de Jong \n *\n * @internal\n */\nfinal class Window implements LimiterStateInterface\n{\n private int $hitCount = 0;\n private int $maxSize;\n private float $timer;\n\n public function __construct(\n private string $id,\n", "suffix": "ring\n {\n return $this->id;\n }\n\n public function getExpirationTime(): ?int\n {\n // Keep the entry alive long enough for any reservation debt to be\n // carried forward, otherwise resets that span an idle interval would\n ", "middle": " private int $intervalInSeconds,\n int $windowSize,\n ?float $timer = null,\n ) {\n $this->maxSize = $windowSize;\n $this->timer = $timer ?? microtime(true);\n }\n\n public function getId(): st", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Policy/Window.php", "language": "php", "file_size": 3877, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Component\\RateLimiter\\CompoundLimiter;\nuse Symfony\\Component\\RateLimiter\\Exception\\ReserveNotSupportedException;\nuse Symfony\\Component\\RateLimiter\\Policy\\FixedWindowLimiter;\nuse Symfony\\Component\\RateLimite", "suffix": "\n\n ClockMock::register(InMemoryStorage::class);\n }\n\n public function testConsume()\n {\n $limiter1 = $this->createLimiter(4, new \\DateInterval('PT1S'));\n $limiter2 = $this->createLimiter(8, new \\DateInterval('PT10S'));\n $", "middle": "r\\Storage\\InMemoryStorage;\n\n#[Group('time-sensitive')]\nclass CompoundLimiterTest extends TestCase\n{\n private InMemoryStorage $storage;\n\n protected function setUp(): void\n {\n $this->storage = new InMemoryStorage();", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/CompoundLimiterTest.php", "language": "php", "file_size": 3779, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\RateLimiter\\CompoundLimiter;\nuse Symfony\\Component\\RateLimiter\\CompoundRateLimiterFactory;\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\nuse Symfony\\Component\\RateLimiter\\RateLim", "suffix": "cts($this->once())\n ->method('create')\n ->with('foo')\n ->willReturn($this->createStub(LimiterInterface::class))\n ;\n $factory2 = $this->createMock(RateLimiterFactoryInterface::class);\n $factory2\n ", "middle": "iterFactoryInterface;\n\nclass CompoundRateLimiterFactoryTest extends TestCase\n{\n public function testCreate()\n {\n $factory1 = $this->createMock(RateLimiterFactoryInterface::class);\n $factory1\n ->expe", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/CompoundRateLimiterFactoryTest.php", "language": "php", "file_size": 1357, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\RateLimiter\\Policy\\FixedWindowLimiter;\nuse Symfony\\Component\\RateLimiter\\Policy\\TokenBucketLimiter;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactory;\nuse", "suffix": " => 'token_bucket',\n 'limit' => 10,\n 'rate' => ['interval' => '1 second'],\n ]);\n $limiter = $factory->create('127.0.0.1');\n\n $this->assertInstanceOf(TokenBucketLimiter::class, $limiter);\n }\n\n public function", "middle": " Symfony\\Component\\RateLimiter\\Storage\\StorageInterface;\n\nclass LimiterTest extends TestCase\n{\n public function testTokenBucket()\n {\n $factory = $this->createFactory([\n 'id' => 'test',\n 'policy'", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/LimiterTest.php", "language": "php", "file_size": 2007, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Input;\n\n/**\n * Helper class for creating key identifiers.\n *\n * Provides constants and factory methods for keyboard input matching.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfinal class Key\n{\n // Special keys\n public const ESCAPE = 'escape';\n public ", "suffix": "e';\n public const END = 'end';\n public const PAGE_UP = 'page_up';\n public const PAGE_DOWN = 'page_down';\n\n // Arrow keys\n public const UP = 'up';\n public const DOWN = 'down';\n public const LEFT = 'left';\n public const RIGHT = 'right", "middle": "const ENTER = 'enter';\n public const TAB = 'tab';\n public const SPACE = 'space';\n public const BACKSPACE = 'backspace';\n public const DELETE = 'delete';\n public const INSERT = 'insert';\n public const HOME = 'hom", "meta": {"filepath": "src/Symfony/Component/Tui/Input/Key.php", "language": "php", "file_size": 2211, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Component\\RateLimiter\\Exception\\RateLimitExceededException;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\n\n#[Group('time-sensitive", "suffix": "Limit, $rateLimit->ensureAccepted());\n }\n\n public function testEnsureAcceptedThrowsRateLimitExceptionIfNotAccepted()\n {\n $rateLimit = new RateLimit(10, $retryAfter = new \\DateTimeImmutable(), false, 10);\n\n try {\n $rateLimi", "middle": "')]\nclass RateLimitTest extends TestCase\n{\n public function testEnsureAcceptedDoesNotThrowExceptionIfAccepted()\n {\n $rateLimit = new RateLimit(10, new \\DateTimeImmutable(), true, 10);\n\n $this->assertSame($rate", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/RateLimitTest.php", "language": "php", "file_size": 1860, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Component\\OptionsResolver\\Exception\\MissingOptionsException;\nuse Symfony\\Component\\RateLimiter\\Policy\\FixedWindowLimiter;\nuse Symfony\\Component\\RateLimiter\\Policy\\NoLimiter;\nuse Symfony\\Component\\RateLimiter\\Policy\\SlidingWindowLimiter;\nuse Symfony\\Component\\Ra", "suffix": "gProvider')]\n public function testValidConfig(string $expectedClass, array $config)\n {\n $factory = new RateLimiterFactory($config, new InMemoryStorage());\n $rateLimiter = $factory->create('key');\n $this->assertInstanceOf($expecte", "middle": "teLimiter\\Policy\\TokenBucketLimiter;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactory;\nuse Symfony\\Component\\RateLimiter\\Storage\\InMemoryStorage;\n\nclass RateLimiterFactoryTest extends TestCase\n{\n #[DataProvider('validConfi", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/RateLimiterFactoryTest.php", "language": "php", "file_size": 6182, "cut_index": 716, "middle_length": 229}} {"prefix": "miter\\Util\\TimeUtil;\n\n#[Group('time-sensitive')]\nclass FixedWindowLimiterTest extends TestCase\n{\n private InMemoryStorage $storage;\n\n protected function setUp(): void\n {\n $this->storage = new InMemoryStorage();\n\n ClockMock::register(InMemoryStorage::class);\n ClockMock::register(RateLimit::class);\n ClockMock::register(Window::class);\n ClockMock::register(FixedWindowLimiter::class);\n }\n\n public function testConsume()\n {\n $now = time();\n $limit", "suffix": "assertSame(10, $rateLimit->getLimit());\n $this->assertTrue($rateLimit->isAccepted());\n $rateLimit = $limiter->consume();\n $this->assertFalse($rateLimit->isAccepted());\n $this->assertSame(10, $rateLimit->getLimit());\n // W", "middle": "er = $this->createLimiter();\n\n // fill 9 tokens in 45 seconds\n for ($i = 0; $i < 9; ++$i) {\n $limiter->consume();\n sleep(5);\n }\n\n $rateLimit = $limiter->consume();\n $this->", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Policy/FixedWindowLimiterTest.php", "language": "php", "file_size": 19953, "cut_index": 1331, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests\\Policy;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\RateLimiter\\Policy\\NoLimiter;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\nuse Symfony\\Component\\RateLimiter\\Reservation;\n\nclass NoLimiterTest extends TestCase\n{\n p", "suffix": "= new NoLimiter();\n $this->assertInstanceOf(RateLimit::class, $limiter->consume());\n }\n\n public function testReserve()\n {\n $limiter = new NoLimiter();\n $this->assertInstanceOf(Reservation::class, $limiter->reserve());\n }\n}\n", "middle": "ublic function testConsume()\n {\n $limiter ", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Policy/NoLimiterTest.php", "language": "php", "file_size": 822, "cut_index": 514, "middle_length": 52}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests\\Policy;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\RateLimiter\\Policy\\Rate;\n\nclass RateTest extends TestCase\n{\n #[DataProvider('provideRate')]\n public function testFromString(Rate $rate)\n {\n $this->assertEquals($rate, Rate:", "suffix": "ic function provideRate(): iterable\n {\n yield [new Rate(new \\DateInterval('PT15S'), 10)];\n yield [Rate::perSecond(10)];\n yield [Rate::perMinute(10)];\n yield [Rate::perHour(10)];\n yield [Rate::perDay(10)];\n yield", "middle": ":fromString((string) $rate));\n }\n\n public stat", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Policy/RateTest.php", "language": "php", "file_size": 956, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests\\Policy;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Component\\RateLimiter\\Policy\\SlidingWindowLimiter;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\nuse Symfony\\Component\\RateLimiter\\Storage\\InMemoryStorage;\n\n#[Group('time-sensitive')]\nclass SlidingWin", "suffix": "ckMock::register(RateLimit::class);\n }\n\n public function testConsume()\n {\n $limiter = $this->createLimiter();\n\n $limiter->consume(8);\n sleep(15);\n\n $rateLimit = $limiter->consume();\n $this->assertTrue($rateLimit-", "middle": "dowLimiterTest extends TestCase\n{\n private InMemoryStorage $storage;\n\n protected function setUp(): void\n {\n $this->storage = new InMemoryStorage();\n\n ClockMock::register(InMemoryStorage::class);\n Clo", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Policy/SlidingWindowLimiterTest.php", "language": "php", "file_size": 4639, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests\\Policy;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Component\\RateLimiter\\Exception\\InvalidIntervalException;\nuse Symfony\\Component\\RateLimiter\\Policy\\SlidingWindow;\n\nclass SlidingWindowTestToStringGadget\n{\n public static bool $fired = false;\n\n ", "suffix": "$window = new SlidingWindow('foo', 10);\n $this->assertSame(2 * 10, $window->getExpirationTime());\n $this->assertSame(2 * 10, $window->getExpirationTime());\n\n $data = serialize($window);\n sleep(10);\n $cachedWindow = unseri", "middle": "public function __toString(): string\n {\n self::$fired = true;\n\n return '';\n }\n}\n\n#[Group('time-sensitive')]\nclass SlidingWindowTest extends TestCase\n{\n public function testGetExpirationTime()\n {\n ", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Policy/SlidingWindowTest.php", "language": "php", "file_size": 4833, "cut_index": 614, "middle_length": 229}} {"prefix": "mfony\\Component\\RateLimiter\\Exception\\MaxWaitDurationExceededException;\nuse Symfony\\Component\\RateLimiter\\Policy\\Rate;\nuse Symfony\\Component\\RateLimiter\\Policy\\TokenBucket;\nuse Symfony\\Component\\RateLimiter\\Policy\\TokenBucketLimiter;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\nuse Symfony\\Component\\RateLimiter\\Storage\\InMemoryStorage;\nuse Symfony\\Component\\RateLimiter\\Tests\\Resources\\DummyWindow;\n\n#[Group('time-sensitive')]\nclass TokenBucketLimiterTest extends TestCase\n{\n private InMemoryStorage $storag", "suffix": "ter(TokenBucket::class);\n ClockMock::register(RateLimit::class);\n }\n\n public function testReserve()\n {\n $limiter = $this->createLimiter();\n\n $this->assertEquals(0, $limiter->reserve(5)->getWaitDuration());\n $this->asser", "middle": "e;\n\n protected function setUp(): void\n {\n $this->storage = new InMemoryStorage();\n\n ClockMock::register(TokenBucketLimiter::class);\n ClockMock::register(InMemoryStorage::class);\n ClockMock::regis", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Policy/TokenBucketLimiterTest.php", "language": "php", "file_size": 9191, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests\\Policy;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\RateLimiter\\Policy\\TokenBucket;\n\nclass TokenBucketTestToStringGadget\n{\n public static bool $fired = false;\n\n public function __toString(): string\n {\n self::$fire", "suffix": " 'tokens' => 0,\n 'timer' => 0.0,\n 'burstSize' => 10,\n 'rate' => 'PT1M-10',\n ];\n $payload = \\sprintf('O:%d:\"%s\":%d:{', \\strlen(TokenBucket::class), TokenBucket::class, \\count($data));\n foreach", "middle": "d = true;\n\n return '';\n }\n}\n\nclass TokenBucketTest extends TestCase\n{\n public function testUnserializeRejectsObjectInTypedIdProperty()\n {\n $data = [\n 'id' => new TokenBucketTestToStringGadget(),\n", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Policy/TokenBucketTest.php", "language": "php", "file_size": 1485, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests\\Policy;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\RateLimiter\\Policy\\Window;\n\nclass WindowTestToStringGadget\n{\n public static bool $fired = false;\n\n public function __toString(): string\n {\n self::$fired = true;\n", "suffix": "t' => 0,\n 'intervalInSeconds' => 1,\n 'maxSize' => 10,\n 'timer' => 0.0,\n ];\n $payload = \\sprintf('O:%d:\"%s\":%d:{', \\strlen(Window::class), Window::class, \\count($data));\n foreach ($data as $key => $value", "middle": "\n return '';\n }\n}\n\nclass WindowTest extends TestCase\n{\n public function testUnserializeRejectsObjectInTypedIdProperty()\n {\n $data = [\n 'id' => new WindowTestToStringGadget(),\n 'hitCoun", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Policy/WindowTest.php", "language": "php", "file_size": 1450, "cut_index": 524, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests\\Resources;\n\nuse Symfony\\Component\\RateLimiter\\LimiterStateInterface;\n\nclass DummyWindow implements LimiterStateInterface\n{\n private string $id;\n private ?int $expirationTime;\n\n public function __construct(string $id = 'test', ?int $expirationT", "suffix": "{\n $this->id = $id;\n $this->expirationTime = $expirationTime;\n }\n\n public function getId(): string\n {\n return $this->id;\n }\n\n public function getExpirationTime(): ?int\n {\n return $this->expirationTime;\n }\n}\n", "middle": "ime = 10)\n ", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Resources/DummyWindow.php", "language": "php", "file_size": 806, "cut_index": 536, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Tests\\Storage;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\RateLimiter\\Policy\\Window;\nuse Symfony\\Component\\RateLimiter\\Storage\\CacheStorage;\n\nclass CacheStorageTest extends TestCase\n{\n public functi", "suffix": "is->exactly(2))->method('expiresAfter')->with(10);\n\n $pool->method('getItem')->willReturnMap([\n [sha1('test'), $cacheItem],\n ]);\n $pool->expects($this->exactly(2))->method('save')->with($cacheItem);\n\n $window = new Wi", "middle": "on testSave()\n {\n $pool = $this->createMock(CacheItemPoolInterface::class);\n $storage = new CacheStorage($pool);\n\n $cacheItem = $this->createMock(CacheItemInterface::class);\n $cacheItem->expects($th", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Tests/Storage/CacheStorageTest.php", "language": "php", "file_size": 3000, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Storage;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\RateLimiter\\LimiterStateInterface;\n\n/**\n * @author Wouter de Jong \n */\nclass CacheStorage implements StorageInterface\n{\n public function __construct(\n ", "suffix": "limiterState);\n if (null !== ($expireAfter = $limiterState->getExpirationTime())) {\n $cacheItem->expiresAfter($expireAfter);\n }\n\n $this->pool->save($cacheItem);\n }\n\n public function fetch(string $limiterStateId): ?Limi", "middle": " private CacheItemPoolInterface $pool,\n ) {\n }\n\n public function save(LimiterStateInterface $limiterState): void\n {\n $cacheItem = $this->pool->getItem(sha1($limiterState->getId()));\n $cacheItem->set($", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Storage/CacheStorage.php", "language": "php", "file_size": 1383, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter\\Storage;\n\nuse Symfony\\Component\\RateLimiter\\LimiterStateInterface;\n\n/**\n * @author Wouter de Jong \n */\nclass InMemoryStorage implements StorageInterface\n{\n private array $buckets = [];\n\n public function save(LimiterStateInterface $lim", "suffix": " if (!isset($this->buckets[$limiterStateId])) {\n return null;\n }\n\n [$expireAt, $limiterState] = $this->buckets[$limiterStateId];\n if (null !== $expireAt && $expireAt <= microtime(true)) {\n unset($this->buckets[$li", "middle": "iterState): void\n {\n $this->buckets[$limiterState->getId()] = [$this->getExpireAt($limiterState), serialize($limiterState)];\n }\n\n public function fetch(string $limiterStateId): ?LimiterStateInterface\n {\n ", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Storage/InMemoryStorage.php", "language": "php", "file_size": 1627, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime;\n\nuse Egulias\\EmailValidator\\EmailValidator;\nuse Egulias\\EmailValidator\\Validation\\MessageIDValidation;\nuse Egulias\\EmailValidator\\Validation\\RFCValidation;\nuse Symfony\\Component\\Mime\\Encoder\\IdnAddressEncoder;\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Exception\\LogicException;\nuse Symfony\\Comp", "suffix": "ing between the first < and last > as email address.\n * This allows to use a single string to construct an Address, which can be convenient to use in\n * config, and allows to have more readable config.\n * This does not try to cover all edge cas", "middle": "onent\\Mime\\Exception\\RfcComplianceException;\n\n/**\n * @author Fabien Potencier \n */\nfinal class Address\n{\n /**\n * A regex that matches a structure like 'Name '.\n * It matches anyth", "meta": {"filepath": "src/Symfony/Component/Mime/Address.php", "language": "php", "file_size": 4715, "cut_index": 614, "middle_length": 229}} {"prefix": "cterStream\n{\n /** Pre-computed for optimization */\n private const UTF8_LENGTH_MAP = [\n \"\\x00\" => 1, \"\\x01\" => 1, \"\\x02\" => 1, \"\\x03\" => 1, \"\\x04\" => 1, \"\\x05\" => 1, \"\\x06\" => 1, \"\\x07\" => 1,\n \"\\x08\" => 1, \"\\x09\" => 1, \"\\x0a\" => 1, \"\\x0b\" => 1, \"\\x0c\" => 1, \"\\x0d\" => 1, \"\\x0e\" => 1, \"\\x0f\" => 1,\n \"\\x10\" => 1, \"\\x11\" => 1, \"\\x12\" => 1, \"\\x13\" => 1, \"\\x14\" => 1, \"\\x15\" => 1, \"\\x16\" => 1, \"\\x17\" => 1,\n \"\\x18\" => 1, \"\\x19\" => 1, \"\\x1a\" => 1, \"\\x1b\" => 1, \"\\x1c\" => 1, \"\\x1d\" => 1", "suffix": "2e\" => 1, \"\\x2f\" => 1,\n \"\\x30\" => 1, \"\\x31\" => 1, \"\\x32\" => 1, \"\\x33\" => 1, \"\\x34\" => 1, \"\\x35\" => 1, \"\\x36\" => 1, \"\\x37\" => 1,\n \"\\x38\" => 1, \"\\x39\" => 1, \"\\x3a\" => 1, \"\\x3b\" => 1, \"\\x3c\" => 1, \"\\x3d\" => 1, \"\\x3e\" => 1, \"\\x3f\" => 1,\n \"", "middle": ", \"\\x1e\" => 1, \"\\x1f\" => 1,\n \"\\x20\" => 1, \"\\x21\" => 1, \"\\x22\" => 1, \"\\x23\" => 1, \"\\x24\" => 1, \"\\x25\" => 1, \"\\x26\" => 1, \"\\x27\" => 1,\n \"\\x28\" => 1, \"\\x29\" => 1, \"\\x2a\" => 1, \"\\x2b\" => 1, \"\\x2c\" => 1, \"\\x2d\" => 1, \"\\x", "meta": {"filepath": "src/Symfony/Component/Mime/CharacterStream.php", "language": "php", "file_size": 9347, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime;\n\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Part\\AbstractPart;\n\n/**\n * @author Kevin Bond \n */\nclass DraftEmail extends Email\n{\n public function __construct(?Headers $headers = null, ?AbstractPar", "suffix": "sage-ID headers.\n * These are added by the client that actually sends the email.\n */\n public function getPreparedHeaders(): Headers\n {\n $headers = clone $this->getHeaders();\n\n if (!$headers->has('MIME-Version')) {\n $h", "middle": "t $body = null)\n {\n parent::__construct($headers, $body);\n\n $this->getHeaders()->addTextHeader('X-Unsent', '1');\n }\n\n /**\n * Override default behavior as draft emails do not require From/Sender/Date/Mes", "meta": {"filepath": "src/Symfony/Component/Mime/DraftEmail.php", "language": "php", "file_size": 1127, "cut_index": 518, "middle_length": 229}} {"prefix": "art;\nuse Symfony\\Component\\Mime\\Part\\File;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\AlternativePart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\MixedPart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\RelatedPart;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\n\n/**\n * @author Fabien Potencier \n */\nclass Email extends Message\n{\n public const PRIORITY_HIGHEST = 1;\n public const PRIORITY_HIGH = 2;\n public const PRIORITY_NORMAL = 3;\n public const PRIORITY_LOW = 4;\n public const PRIORIT", "suffix": "RIORITY_LOWEST => 'Lowest',\n ];\n\n /**\n * @var resource|string|null\n */\n private $text;\n\n private ?string $textCharset = null;\n\n /**\n * @var resource|string|null\n */\n private $html;\n\n private ?string $htmlCharset = null;", "middle": "Y_LOWEST = 5;\n\n private const PRIORITY_MAP = [\n self::PRIORITY_HIGHEST => 'Highest',\n self::PRIORITY_HIGH => 'High',\n self::PRIORITY_NORMAL => 'Normal',\n self::PRIORITY_LOW => 'Low',\n self::P", "meta": {"filepath": "src/Symfony/Component/Mime/Email.php", "language": "php", "file_size": 15546, "cut_index": 921, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter;\n\n/**\n * @author Wouter de Jong \n */\nfinal class Reservation\n{\n /**\n * @param float $timeToAct Unix timestamp in seconds when this reservation should act\n */\n public function __construct(\n private float $timeToAct,\n private RateLimit $rateLimit,\n ) {\n ", "suffix": " return $this->timeToAct;\n }\n\n public function getWaitDuration(): float\n {\n return max(0, (-microtime(true)) + $this->timeToAct);\n }\n\n public function getRateLimit(): RateLimit\n {\n return $this->rateLimit;\n }\n\n ", "middle": " }\n\n public function getTimeToAct(): float\n {\n", "meta": {"filepath": "src/Symfony/Component/RateLimiter/Reservation.php", "language": "php", "file_size": 989, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Loop;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Loop\\PeriodicStepper;\n\nclass PeriodicStepperTest extends TestCase\n{\n public function testConstructorRejectsInvalidInterval()\n {\n", "suffix": "s);\n PeriodicStepper::everyMs(0);\n }\n\n public function testAdvanceAccumulatesElapsedDelta()\n {\n $stepper = new PeriodicStepper(0.1, 5);\n\n $this->assertSame(0, $stepper->advance(0.05));\n $this->assertSame(1, $stepper->ad", "middle": " $this->expectException(InvalidArgumentException::class);\n new PeriodicStepper(0.0);\n }\n\n public function testEveryMsRejectsInvalidInterval()\n {\n $this->expectException(InvalidArgumentException::clas", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Loop/PeriodicStepperTest.php", "language": "php", "file_size": 1515, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Event;\n\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\n\n/**\n * Event dispatched when a widget's value changes.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass ChangeEvent extends AbstractEvent\n{\n public function __construct(\n AbstractWidget $target,\n private ", "suffix": "nstruct($target);\n }\n\n /**\n * Get the current value.\n */\n public function getValue(): string\n {\n return $this->value;\n }\n\n /**\n * Check if the current value is empty or contains only whitespace.\n */\n public funct", "middle": "readonly string $value,\n ) {\n parent::__co", "meta": {"filepath": "src/Symfony/Component/Tui/Event/ChangeEvent.php", "language": "php", "file_size": 966, "cut_index": 582, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Event;\n\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * Event dispatched when raw terminal input is received.\n *\n * Dispatched before focus navigation and before the focused widget\n * receives input. Call {@see stopPropagation()} to consume the input\n * and prevent furthe", "suffix": "en Potencier \n */\nclass InputEvent extends Event\n{\n public function __construct(\n private readonly string $data,\n ) {\n }\n\n /**\n * The raw input data from the terminal.\n */\n public function getData(): string", "middle": "r processing.\n *\n * @experimental\n *\n * @author Fabi", "meta": {"filepath": "src/Symfony/Component/Tui/Event/InputEvent.php", "language": "php", "file_size": 898, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Event;\n\nuse Symfony\\Component\\Tui\\Widget\\SelectListWidget;\n\n/**\n * Event dispatched when the highlighted item changes in a SelectList.\n *\n * This fires when the user moves the cursor (arrow keys, scroll), not\n * when they confirm a selection (that's {@see SelectEvent", "suffix": "public function __construct(\n SelectListWidget $target,\n private readonly array $item,\n ) {\n parent::__construct($target);\n }\n\n /**\n * Get the full highlighted item array.\n *\n * @return array{value: string, label: ", "middle": "}).\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass SelectionChangeEvent extends AbstractEvent\n{\n /**\n * @param array{value: string, label: string, description?: string} $item\n */\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Event/SelectionChangeEvent.php", "language": "php", "file_size": 1612, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Event;\n\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\n\n/**\n * Event dispatched when content is submitted (e.g., Enter pressed in Input/Editor).\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass SubmitEvent e", "suffix": " public function getValue(): string\n {\n return $this->value;\n }\n\n /**\n * Check if the submitted value is empty or contains only whitespace.\n */\n public function isBlank(): bool\n {\n return '' === trim($this->value);\n ", "middle": "xtends AbstractEvent\n{\n public function __construct(\n AbstractWidget $target,\n private readonly string $value,\n ) {\n parent::__construct($target);\n }\n\n /**\n * Get the submitted value.\n */\n", "meta": {"filepath": "src/Symfony/Component/Tui/Event/SubmitEvent.php", "language": "php", "file_size": 1004, "cut_index": 512, "middle_length": 229}} {"prefix": "> [\"\\x1b[2~\"],\n 'delete' => [\"\\x1b[3~\"],\n 'page_up' => [\"\\x1b[5~\", \"\\x1b[[5~\"],\n 'page_down' => [\"\\x1b[6~\", \"\\x1b[[6~\"],\n 'clear' => [\"\\x1b[E\", \"\\x1bOE\"],\n 'f1' => [\"\\x1bOP\", \"\\x1b[11~\", \"\\x1b[[A\"],\n 'f2' => [\"\\x1bOQ\", \"\\x1b[12~\", \"\\x1b[[B\"],\n 'f3' => [\"\\x1bOR\", \"\\x1b[13~\", \"\\x1b[[C\"],\n 'f4' => [\"\\x1bOS\", \"\\x1b[14~\", \"\\x1b[[D\"],\n 'f5' => [\"\\x1b[15~\", \"\\x1b[[E\"],\n 'f6' => [\"\\x1b[17~\"],\n 'f7' => [\"\\x1b[18~\"],\n 'f8' => [\"\\x1b[1", "suffix": " 'f3' => 13,\n 'f4' => 14,\n 'f5' => 15,\n 'f6' => 17,\n 'f7' => 18,\n 'f8' => 19,\n 'f9' => 20,\n 'f10' => 21,\n 'f11' => 23,\n 'f12' => 24,\n ];\n\n private const LEGACY_FUNCTION_KEY_LETTERS = [", "middle": "9~\"],\n 'f9' => [\"\\x1b[20~\"],\n 'f10' => [\"\\x1b[21~\"],\n 'f11' => [\"\\x1b[23~\"],\n 'f12' => [\"\\x1b[24~\"],\n ];\n\n private const LEGACY_FUNCTION_KEY_CODES = [\n 'f1' => 11,\n 'f2' => 12,\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Input/KeyParser.php", "language": "php", "file_size": 34086, "cut_index": 2151, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Input;\n\n/**\n * Configurable keybindings manager.\n *\n * Maps action names to key identifiers, allowing customizable keybindings.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfinal class Keybindings\n{\n /** @var array ", "suffix": "->bindings = $bindings;\n $this->parser = $parser ?? new KeyParser();\n }\n\n public function matches(string $data, string $action): bool\n {\n if (!isset($this->bindings[$action])) {\n return false;\n }\n\n foreach ($", "middle": "*/\n private array $bindings;\n\n private KeyParser $parser;\n\n /**\n * @param array $bindings\n */\n public function __construct(array $bindings = [], ?KeyParser $parser = null)\n {\n $this", "meta": {"filepath": "src/Symfony/Component/Tui/Input/Keybindings.php", "language": "php", "file_size": 1739, "cut_index": 537, "middle_length": 229}} {"prefix": "rray> */\n private array $cells = [];\n private int $cursorRow = 0;\n private int $cursorCol = 0;\n private int $width;\n private int $height;\n private AnsiCodeTracker $styleTracker;\n\n public function __construct(int $width = 80, int $height = 24)\n {\n $this->width = $width;\n $this->height = $height;\n $this->styleTracker = new AnsiCodeTracker();\n $this->clear();\n }\n\n /**\n * Clear the screen buffer.\n ", "suffix": " = 0;\n $this->styleTracker->reset();\n }\n\n /**\n * Process terminal output and update the screen buffer.\n */\n public function write(string $data): void\n {\n $i = 0;\n $len = \\strlen($data);\n\n while ($i < $len) {\n", "middle": " */\n public function clear(): void\n {\n $this->cells = [];\n for ($row = 0; $row < $this->height; ++$row) {\n $this->cells[$row] = [];\n }\n $this->cursorRow = 0;\n $this->cursorCol", "meta": {"filepath": "src/Symfony/Component/Tui/Terminal/ScreenBuffer.php", "language": "php", "file_size": 18261, "cut_index": 1331, "middle_length": 229}} {"prefix": "* @experimental\n *\n * @author Fabien Potencier \n */\nfinal class Terminal implements TerminalInterface\n{\n private ?StdinBuffer $stdinBuffer = null;\n\n private string $initialSttyState = '';\n private bool $kittyProtocolActive = false;\n private bool $started = false;\n private ?string $stdinCallbackId = null;\n private ?string $signalCallbackId = null;\n\n /** @var (\\Closure(string): void)|null */\n private ?\\Closure $onInput = null;\n\n /** @var (\\Closure(): void)|null *", "suffix": " = null;\n private ?int $cachedRows = null;\n\n public function start(callable $onInput, callable $onResize, callable $onKittyProtocolActivated): void\n {\n if ($this->started) {\n return;\n }\n\n $this->onInput = $onInput(.", "middle": "/\n private ?\\Closure $onResize = null;\n\n /** @var (\\Closure(): void)|null */\n private ?\\Closure $onKittyProtocolActivated = null;\n\n // Cached terminal dimensions (refreshed on SIGWINCH)\n private ?int $cachedColumns", "meta": {"filepath": "src/Symfony/Component/Tui/Terminal/Terminal.php", "language": "php", "file_size": 10746, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Terminal;\n\nuse Symfony\\Component\\Tui\\Input\\StdinBuffer;\n\n/**\n * Virtual terminal for testing.\n *\n * Captures output and allows simulating input for unit tests.\n * Uses StdinBuffer for input parsing to match real Terminal behavior.\n *\n * Virtual terminals don't have a physical screen: they don't scroll\n * content out of the addressable area an", "suffix": "lTerminal implements TerminalInterface\n{\n private string $output = '';\n private ?StdinBuffer $stdinBuffer = null;\n private ?\\Closure $onResize = null;\n\n public function __construct(\n private int $columns = 80,\n private int $rows =", "middle": "d don't respond to terminal\n * queries (e.g. cell size). This is used by the rendering pipeline\n * to adjust its behavior accordingly.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfinal class Virtua", "meta": {"filepath": "src/Symfony/Component/Tui/Terminal/VirtualTerminal.php", "language": "php", "file_size": 4543, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Loop;\n\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\n\n/**\n * Converts elapsed time into bounded fixed-step counts.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class FixedStepAccumulator\n{\n priva", "suffix": "Exception(\\sprintf('Steps per second must be greater than 0, got %d.', $stepsPerSecond));\n }\n\n if ($maxStepsPerUpdate < 1) {\n throw new InvalidArgumentException(\\sprintf('Max steps per update must be greater than 0, got %d.', $maxS", "middle": "te float $accumulator = 0.0;\n\n public function __construct(\n private float $stepsPerSecond,\n private int $maxStepsPerUpdate = 5,\n ) {\n if ($stepsPerSecond <= 0.0) {\n throw new InvalidArgument", "meta": {"filepath": "src/Symfony/Component/Tui/Loop/FixedStepAccumulator.php", "language": "php", "file_size": 1846, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Loop;\n\n/**\n * Small monotonic-ish clock abstraction for game and animation loops.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class LoopClock\n{\n private float $time;\n\n public function __construc", "suffix": "eltaTime = null): float\n {\n if (null === $deltaTime) {\n $now = hrtime(true) / 1e9;\n $elapsed = max(0.0, $now - $this->time);\n $this->time = $now;\n\n return $elapsed;\n }\n\n $elapsed = max(0.0", "middle": "t(\n ?float $time = null,\n ) {\n $this->time = $time ?? hrtime(true) / 1e9;\n }\n\n /**\n * Advance clock state and return elapsed seconds since previous advance.\n */\n public function advance(?float $d", "meta": {"filepath": "src/Symfony/Component/Tui/Loop/LoopClock.php", "language": "php", "file_size": 1282, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter;\n\nuse Symfony\\Component\\RateLimiter\\Exception\\ReserveNotSupportedException;\n\n/**\n * @author Wouter de Jong \n */\nfinal class CompoundLimiter implements LimiterInterface\n{\n /**\n * @param LimiterInterface[] $limiters\n */\n public ", "suffix": "ublic function reserve(int $tokens = 1, ?float $maxTime = null): Reservation\n {\n throw new ReserveNotSupportedException(__CLASS__);\n }\n\n public function consume(int $tokens = 1): RateLimit\n {\n $minimalRateLimit = null;\n for", "middle": "function __construct(\n private array $limiters,\n ) {\n if (!$limiters) {\n throw new \\LogicException(\\sprintf('\"%s::%s()\" require at least one limiter.', self::class, __METHOD__));\n }\n }\n\n p", "meta": {"filepath": "src/Symfony/Component/RateLimiter/CompoundLimiter.php", "language": "php", "file_size": 1616, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter;\n\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Component\\RateLimiter\\Policy\\FixedWindowLimiter;\nuse Symfony\\Component\\RateLimiter\\Policy\\NoLimiter;\nuse Symfony\\Component\\RateLimiter\\Policy\\Rate;\nuse Symfony\\Component\\RateLimiter\\Policy\\SlidingWindowLimiter;\nuse Symfony\\Component\\RateLimiter\\Policy\\TokenBucketLimiter;\nuse Symfon", "suffix": "nstruct(\n array $config,\n private StorageInterface $storage,\n private ?LockFactory $lockFactory = null,\n ) {\n $options = new OptionsResolver();\n self::configureOptions($options);\n\n $this->config = $options->reso", "middle": "y\\Component\\RateLimiter\\Storage\\StorageInterface;\n\n/**\n * @author Wouter de Jong \n */\nfinal class RateLimiterFactory implements RateLimiterFactoryInterface\n{\n private array $config;\n\n public function __co", "meta": {"filepath": "src/Symfony/Component/RateLimiter/RateLimiterFactory.php", "language": "php", "file_size": 5494, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Loop;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Loop\\LoopClock;\n\nclass LoopClockTest extends TestCase\n{\n public function testAdvanceWithExplicitDeltaAdvancesInternalTime()\n {\n $clock = new LoopClock(100.0);\n\n ", "suffix": "ock = new LoopClock();\n usleep(1000);\n\n $elapsed = $clock->advance();\n\n $this->assertGreaterThan(0.0, $elapsed);\n }\n\n public function testResetSetsCurrentTime()\n {\n $clock = new LoopClock(100.0);\n $clock->reset(4", "middle": " $elapsed = $clock->advance(0.25);\n\n $this->assertSame(0.25, $elapsed);\n $this->assertSame(100.25, $clock->now());\n }\n\n public function testAdvanceWithoutDeltaUsesWallClockElapsedTime()\n {\n $cl", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Loop/LoopClockTest.php", "language": "php", "file_size": 1063, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Tests\\Loop;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Tui\\Loop\\TickScheduler;\n\nclass TickSchedulerTest extends TestCase\n{\n public function testScheduleRejectsNonPositiveIntervals()\n {\n $scheduler = new Tic", "suffix": "$scheduler = new TickScheduler();\n $calls = 0;\n $start = microtime(true);\n\n $scheduler->schedule(static function () use (&$calls): void {\n ++$calls;\n }, 0.5);\n\n $scheduler->runDue($start + 0.10);\n $this-", "middle": "kScheduler();\n\n $this->expectException(InvalidArgumentException::class);\n $scheduler->schedule(static function (): void {}, 0.0);\n }\n\n public function testRunDueExecutesAndReschedulesCallbacks()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Tui/Tests/Loop/TickSchedulerTest.php", "language": "php", "file_size": 2374, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Event;\n\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\nuse Symfony\\Component\\Tui\\Widget\\FocusableInterface;\n\n/**\n * Event dispatched when focus changes to a new widget.\n *\n * Not dispatched when focus is cleared to null. Listeners that need\n * to", "suffix": "/\nclass FocusEvent extends AbstractEvent\n{\n public function __construct(\n AbstractWidget&FocusableInterface $target,\n private readonly ?FocusableInterface $previous,\n ) {\n parent::__construct($target);\n }\n\n /**\n * Get t", "middle": " know when focus is lost can observe widget removal directly or\n * track the previous focus via {@see getPrevious()} on subsequent\n * focus-change events.\n *\n * @experimental\n *\n * @author Fabien Potencier \n *", "meta": {"filepath": "src/Symfony/Component/Tui/Event/FocusEvent.php", "language": "php", "file_size": 1150, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Event;\n\n/**\n * Event dispatched on each tick of the main loop.\n *\n * Unlike widget events, tick is a global application event\n * with no associated widget target.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass Tic", "suffix": "previous tick callback.\n */\n public function getDeltaTime(): float\n {\n return $this->deltaTime;\n }\n\n public function setBusy(bool $busy = true): void\n {\n $this->hasBusyHint = true;\n $this->busy = $busy;\n }\n\n pu", "middle": "kEvent\n{\n private bool $hasBusyHint = false;\n private bool $busy = false;\n\n public function __construct(\n private readonly float $deltaTime = 0.0,\n ) {\n }\n\n /**\n * Time elapsed (in seconds) since the ", "meta": {"filepath": "src/Symfony/Component/Tui/Event/TickEvent.php", "language": "php", "file_size": 1162, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Terminal;\n\n/**\n * Terminal that delegates to multiple terminals simultaneously.\n *\n * This is useful for:\n * - Running examples with both a real terminal and a VirtualTerminal for testing\n * - Recording terminal output while displaying it\n * - Debugging terminal output\n *\n * The primary terminal is used for input handling and dimension querie", "suffix": "he primary terminal (used for input and dimensions)\n * @param TerminalInterface $secondary Additional terminal that receives writes\n */\n public function __construct(\n private TerminalInterface $primary,\n private TerminalInterface $", "middle": "s.\n * All terminals receive write operations.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nfinal class TeeTerminal implements TerminalInterface\n{\n /**\n * @param TerminalInterface $primary T", "meta": {"filepath": "src/Symfony/Component/Tui/Terminal/TeeTerminal.php", "language": "php", "file_size": 3387, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Loop;\n\nuse Revolt\\EventLoop;\n\n/**\n * Drives the main TUI tick interval using adaptive scheduling.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class AdaptativeTicker\n{\n private const float MIN_INTERVAL = 0.001;\n\n private ?string $callbackId = null;\n private ?float $interval = null;", "suffix": "lic function refresh(bool $running, bool $renderRequested, ?float $nextScheduledDelay, bool $hasTickCallback, ?bool $lastTickBusyHint): void\n {\n $this->setInterval($this->computeDesiredInterval($running, $renderRequested, $nextScheduledDelay, $ha", "middle": "\n\n public function __construct(\n private readonly TickRuntimeInterface $runtime,\n private readonly float $activeTickInterval = 0.01,\n private readonly float $idleTickInterval = 0.25,\n ) {\n }\n\n pub", "meta": {"filepath": "src/Symfony/Component/Tui/Loop/AdaptativeTicker.php", "language": "php", "file_size": 3253, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Loop;\n\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\n\n/**\n * Internal scheduler for repeat callbacks executed from the TUI tick.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class TickScheduler\n{\n private int $counter = 0", "suffix": "void $callback\n */\n public function schedule(callable $callback, float $intervalSeconds): string\n {\n if ($intervalSeconds <= 0) {\n throw new InvalidArgumentException(\\sprintf('Interval must be greater than 0, got %f.', $interval", "middle": ";\n\n /**\n * @var array\n */\n private array $intervals = [];\n\n /**\n * @param callable(): ", "meta": {"filepath": "src/Symfony/Component/Tui/Loop/TickScheduler.php", "language": "php", "file_size": 2491, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Event;\n\nuse Symfony\\Component\\Tui\\Widget\\SelectListWidget;\n\n/**\n * Event dispatched when an item is selected in a SelectList.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass SelectEvent extends AbstractEvent\n{\n /**\n ", "suffix": "get);\n }\n\n /**\n * Get the full selected item array.\n *\n * @return array{value: string, label: string, description?: string}\n */\n public function getItem(): array\n {\n return $this->item;\n }\n\n /**\n * Get the selec", "middle": " * @param array{value: string, label: string, description?: string} $item\n */\n public function __construct(\n SelectListWidget $target,\n private readonly array $item,\n ) {\n parent::__construct($tar", "meta": {"filepath": "src/Symfony/Component/Tui/Event/SelectEvent.php", "language": "php", "file_size": 1446, "cut_index": 524, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Event;\n\nuse Symfony\\Component\\Tui\\Widget\\AbstractWidget;\nuse Symfony\\Contracts\\EventDispatcher\\Event as BaseEvent;\n\n/**\n * Base class for all TUI widget events.\n *\n * Extends Symfony's Event so it can be dispatched through\n * Symfony's EventDispatcher. Carries the target widge", "suffix": " *\n * @author Fabien Potencier \n */\nabstract class AbstractEvent extends BaseEvent\n{\n public function __construct(\n private readonly AbstractWidget $target,\n ) {\n }\n\n public function getTarget(): AbstractWidget\n {\n", "middle": "t that\n * originated the event.\n *\n * @experimental\n", "meta": {"filepath": "src/Symfony/Component/Tui/Event/AbstractEvent.php", "language": "php", "file_size": 893, "cut_index": 547, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Event;\n\nuse Symfony\\Component\\Tui\\Widget\\SettingsListWidget;\n\n/**\n * Event dispatched when a setting value changes in SettingsList.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\nclass SettingChangeEvent extends AbstractEvent", "suffix": "ing identifier.\n */\n public function getId(): string\n {\n return $this->id;\n }\n\n /**\n * Get the new setting value.\n */\n public function getValue(): string\n {\n return $this->value;\n }\n\n /**\n * Check if th", "middle": "\n{\n public function __construct(\n SettingsListWidget $target,\n private readonly string $id,\n private readonly string $value,\n ) {\n parent::__construct($target);\n }\n\n /**\n * Get the sett", "meta": {"filepath": "src/Symfony/Component/Tui/Event/SettingChangeEvent.php", "language": "php", "file_size": 1446, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Terminal;\n\n/**\n * Interface for terminal implementations.\n *\n * Provides abstraction over terminal I/O for the TUI framework.\n * Implementations handle raw mode, input reading, and output writing.\n *\n * @experimental\n *\n * @author Fabien Potencier \n */\ninterface TerminalIn", "suffix": "(string): void $onInput Called when input is received\n * @param callable(): void $onResize Called when terminal is resized\n * @param callable(): void $onKittyProtocolActivated Called when Kitty keyboard ", "middle": "terface\n{\n /**\n * Start the terminal with input and resize handlers.\n *\n * This typically enables raw mode, sets up signal handlers,\n * and prepares the terminal for TUI operation.\n *\n * @param callable", "meta": {"filepath": "src/Symfony/Component/Tui/Terminal/TerminalInterface.php", "language": "php", "file_size": 3000, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RateLimiter;\n\n/**\n * @author Kevin Bond \n */\nfinal class CompoundRateLimiterFactory implements RateLimiterFactoryInterface\n{\n /**\n * @param iterable $rateLimiterFactories\n */\n public function __construct(private itera", "suffix": "unction create(?string $key = null): LimiterInterface\n {\n $rateLimiters = [];\n\n foreach ($this->rateLimiterFactories as $rateLimiterFactory) {\n $rateLimiters[] = $rateLimiterFactory->create($key);\n }\n\n return new C", "middle": "ble $rateLimiterFactories)\n {\n }\n\n public f", "meta": {"filepath": "src/Symfony/Component/RateLimiter/CompoundRateLimiterFactory.php", "language": "php", "file_size": 894, "cut_index": 547, "middle_length": 52}} {"prefix": "aking key parsing work correctly.\n * Also handles bracketed paste mode.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class StdinBuffer\n{\n private const int MAX_PASTE_BYTES = 16 * 1024 * 1024;\n private const int MAX_PENDING_BYTES = 1024 * 1024;\n private const string PASTE_OVERFLOW_MESSAGE = '[paste exceeded 16 MiB limit]';\n\n private string $buffer = '';\n\n /** @var (\\Closure(string): void)|null */\n private ?\\Closure $onData = null;\n\n /*", "suffix": "ram callable(string): void $callback\n */\n public function onData(callable $callback): void\n {\n $this->onData = $callback(...);\n }\n\n /**\n * Set callback for paste content.\n *\n * @param callable(string): void $callback\n ", "middle": "* @var (\\Closure(string): void)|null */\n private ?\\Closure $onPaste = null;\n\n private bool $inPaste = false;\n private string $pasteBuffer = '';\n\n /**\n * Set callback for individual key sequences.\n *\n * @pa", "meta": {"filepath": "src/Symfony/Component/Tui/Input/StdinBuffer.php", "language": "php", "file_size": 11982, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Tui\\Loop;\n\nuse Symfony\\Component\\Tui\\Exception\\InvalidArgumentException;\n\n/**\n * Converts elapsed time into periodic fixed-step counts.\n *\n * @experimental\n *\n * @internal\n *\n * @author Fabien Potencier \n */\nfinal class PeriodicStepper\n{\n private FixedStepAccumulator $accum", "suffix": "entException(\\sprintf('Interval must be greater than 0, got %d.', $intervalSeconds));\n }\n\n $this->accumulator = new FixedStepAccumulator(1.0 / $intervalSeconds, $maxStepsPerUpdate);\n $this->clock = new LoopClock();\n }\n\n public st", "middle": "ulator;\n private LoopClock $clock;\n\n public function __construct(\n private float $intervalSeconds,\n int $maxStepsPerUpdate = 8,\n ) {\n if ($intervalSeconds <= 0.0) {\n throw new InvalidArgum", "meta": {"filepath": "src/Symfony/Component/Tui/Loop/PeriodicStepper.php", "language": "php", "file_size": 2410, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Part\\Multipart;\n\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Part\\AbstractMultipartPart;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\n\n/**\n * Implements RFC 7578.\n *\n * @author Fabien Potencier \n */\nfinal class FormDataPart extends AbstractMultipartPart\n{\n /**\n * @param ar", "suffix": "ers()->setMaxLineLength(\\PHP_INT_MAX);\n }\n\n public function getMediaSubtype(): string\n {\n return 'form-data';\n }\n\n public function getParts(): array\n {\n return $this->prepareFields($this->fields);\n }\n\n private function", "middle": "ray $fields\n */\n public function __construct(\n private array $fields = [],\n ) {\n parent::__construct();\n\n // HTTP does not support \\r\\n in header values\n $this->getHead", "meta": {"filepath": "src/Symfony/Component/Mime/Part/Multipart/FormDataPart.php", "language": "php", "file_size": 3068, "cut_index": 614, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Part\\Multipart;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\Part\\MessagePart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\DigestPart;\n\nclass DigestPartTest extends TestCase\n{\n public functio", "suffix": "t($a = new MessagePart(new Message()), $b = new MessagePart(new Message()));\n $this->assertEquals('multipart', $r->getMediaType());\n $this->assertEquals('digest', $r->getMediaSubtype());\n $this->assertEquals([$a, $b], $r->getParts());\n", "middle": "n testConstructor()\n {\n $r = new DigestPar", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Part/Multipart/DigestPartTest.php", "language": "php", "file_size": 836, "cut_index": 520, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Part\\Multipart;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\FormDataPart;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\n\nclass FormDataPartTest extends TestCase\n{\n public function testConstructor()\n {\n $r = new \\ReflectionProperty(TextPart::class, 'encoding');\n\n $b = new TextPart('conte", "suffix": "ore than 76 characters, ok?',\n 'bar' => clone $b,\n 'baz' => clone $c,\n ]);\n $this->assertEquals('multipart', $f->getMediaType());\n $this->assertEquals('form-data', $f->getMediaSubtype());\n $t = new TextPart", "middle": "nt');\n $c = DataPart::fromPath($file = __DIR__.'/../../Fixtures/mimetypes/test.gif');\n $f = new FormDataPart([\n 'foo' => $content = 'very very long content that will not be cut even if the length is way m", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Part/Multipart/FormDataPartTest.php", "language": "php", "file_size": 7993, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Part\\Multipart;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\RelatedPart;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\n\nclass RelatedPartTest extends TestCase\n{\n public function testConstructor()\n {\n ", "suffix": " $this->assertEquals('related', $r->getMediaSubtype());\n $this->assertEquals([$a, $b, $c], $r->getParts());\n $this->assertFalse($a->getHeaders()->has('Content-ID'));\n $this->assertTrue($b->getHeaders()->has('Content-ID'));\n ", "middle": " $r = new RelatedPart($a = new TextPart('content'), $b = new TextPart('HTML content', 'utf-8', 'html'), $c = new TextPart('HTML content again', 'utf-8', 'html'));\n $this->assertEquals('multipart', $r->getMediaType());\n ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Part/Multipart/RelatedPartTest.php", "language": "php", "file_size": 1064, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Test\\Constraint\\EmailAddressContains;\n\nclas", "suffix": "value \"expectedValue\"', $constraint->toString());\n }\n\n public function testFailureDescription()\n {\n $mailboxHeader = 'text@example.com';\n $headers = new Headers();\n $headers->addMailboxHeader($mailboxHeader, 'actualValue@examp", "middle": "s EmailAddressContainsTest extends TestCase\n{\n public function testToString()\n {\n $constraint = new EmailAddressContains('headerName', 'expectedValue');\n\n $this->assertSame('contains address \"headerName\" with ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Test/Constraint/EmailAddressContainsTest.php", "language": "php", "file_size": 1393, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Test\\Constraint\\EmailAttachmentCount;\n\nclass EmailAttachmentCountTest extends", "suffix": "ription()\n {\n $email = new Email();\n $email->attach('attachment content', 'attachment.txt');\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptionMessage('Failed asserting that the Email has sen", "middle": " TestCase\n{\n public function testToString()\n {\n $constraint = new EmailAttachmentCount(1);\n\n $this->assertSame('has sent \"1\" attachment(s)', $constraint->toString());\n }\n\n public function testFailureDesc", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Test/Constraint/EmailAttachmentCountTest.php", "language": "php", "file_size": 1090, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Test\\Constraint\\EmailHasHeader;\n\nclas", "suffix": "ublic function testFailureDescription()\n {\n $headers = new Headers();\n $headers->addMailboxHeader('headerName', 'test@example.com');\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptionMessage(", "middle": "s EmailHasHeaderTest extends TestCase\n{\n public function testToString()\n {\n $constraint = new EmailHasHeader('headerName');\n\n $this->assertSame('has header \"headerName\"', $constraint->toString());\n }\n\n p", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Test/Constraint/EmailHasHeaderTest.php", "language": "php", "file_size": 1166, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Test\\Constraint\\EmailHtmlBodyContains;\n\nclass EmailHtmlBodyContainsTest extends ", "suffix": "tFailureDescription()\n {\n $expectedValue = 'expectedValue';\n $email = new Email();\n $email->html('actualValue')->text($expectedValue);\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptio", "middle": "TestCase\n{\n public function testToString()\n {\n $constraint = new EmailHtmlBodyContains('expectedValue');\n\n $this->assertSame('contains \"expectedValue\"', $constraint->toString());\n }\n\n public function tes", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Test/Constraint/EmailHtmlBodyContainsTest.php", "language": "php", "file_size": 1164, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Test\\Constraint\\EmailTextBodyContains;\n\nclass EmailTextBodyContainsTest extends ", "suffix": "tFailureDescription()\n {\n $expectedValue = 'expectedValue';\n $email = new Email();\n $email->html($expectedValue)->text('actualValue');\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptio", "middle": "TestCase\n{\n public function testToString()\n {\n $constraint = new EmailTextBodyContains('expectedValue');\n\n $this->assertSame('contains \"expectedValue\"', $constraint->toString());\n }\n\n public function tes", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Test/Constraint/EmailTextBodyContainsTest.php", "language": "php", "file_size": 1164, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Crypto;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Crypto\\DkimSigner;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Message;\n\n#[RequiresPhpExtension('openssl')]\n#[Group('time-sensitive')]\ncla", "suffix": "n7PDdZ8EuuxlAa7oNo/38YYV+5Oki93m\n io6rGV8zLMGLLygAB1sJaJVP5W9wm0RLY776YFL4V/nekA5ZTnA4+KaIYwIDAQAB\n AoGAJLhjgoKkA8kI1omkxAjDWRlmqD1Ga4hKy2FYd/GxbnPVVZ+0atUG/Cvarw2d\n kWVZjkxcr8nFoPTrwHOJQgUyOXWLuIuirznoTtDKzC+4JlDsZJd8hkVohqwKfdPA\n ", "middle": "ss DkimSignerTest extends TestCase\n{\n private static string $pk = <<from('noreply@example.com')\n ->text('El Barto was not here');\n\n $message->getHeaders()->addIdHeader('Message-ID', 'some@id');\n\n $encrypter = new SMimeEncrypter($this->samplesDir.'encrypt.crt');\n $encryptedMe", "middle": "estEncryptMessage()\n {\n $message = (new Email())\n ->date(new \\DateTimeImmutable('2019-04-07 10:36:30', new \\DateTimeZone('Europe/Paris')))\n ->to('fabien@symfony.com')\n ->subject('Testing", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Crypto/SMimeEncrypterTest.php", "language": "php", "file_size": 4289, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Crypto;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Mime\\Crypto\\SMimeEncrypter;\nuse Symfony\\Component\\Mime\\Crypto\\SMimeSigner;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\n\n#[RequiresPhpExtension('openssl')]\nclass SMimeSignerTest extends SMimeTestCase\n{", "suffix": " ->addMailboxListHeader('From', ['fabien@symfony.com']),\n new TextPart('content')\n );\n\n $signer = new SMimeSigner($this->samplesDir.'sign.crt', $this->samplesDir.'sign.key');\n $signedMessage = $signer->sign($m", "middle": "\n public function testSignedMessage()\n {\n $message = new Message(\n (new Headers())\n ->addDateHeader('Date', new \\DateTimeImmutable('2019-04-07 10:36:30', new \\DateTimeZone('Europe/Paris')))\n", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Crypto/SMimeSignerTest.php", "language": "php", "file_size": 6948, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Crypto;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\RawMessage;\n\nabstract class SMimeTestCase extends TestCase\n{\n protected string $samplesDir;\n\n private array $tmpFiles = [", "suffix": ") {\n @unlink($file);\n }\n $this->tmpFiles = [];\n }\n\n protected function generateTmpFilename(): string\n {\n return $this->tmpFiles[] = tempnam(sys_get_temp_dir(), 'sf_mime_');\n }\n\n protected function normalizeFil", "middle": "];\n\n protected function setUp(): void\n {\n $this->samplesDir = str_replace('\\\\', '/', realpath(__DIR__.'/../').'/_data/');\n }\n\n protected function tearDown(): void\n {\n foreach ($this->tmpFiles as $file", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Crypto/SMimeTestCase.php", "language": "php", "file_size": 2393, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Header;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Header\\DateHeader;\n\nclass DateHeaderTest extends TestCase\n{\n /* --\n The following tests refer to RFC 2822, section 3.6.1 and 3.3.\n */\n\n public function testGetDateTime()\n {\n $header = new DateHead", "suffix": "imeImmutable());\n $header->setDateTime($dateTime = new \\DateTimeImmutable());\n $this->assertEquals($dateTime, $header->getDateTime());\n }\n\n public function testDateTimeIsConvertedToImmutable()\n {\n $dateTime = new \\DateTime();\n", "middle": "er('Date', $dateTime = new \\DateTimeImmutable());\n $this->assertEquals($dateTime, $header->getDateTime());\n }\n\n public function testDateTimeCanBeSetBySetter()\n {\n $header = new DateHeader('Date', new \\DateT", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Header/DateHeaderTest.php", "language": "php", "file_size": 2869, "cut_index": 563, "middle_length": 229}} {"prefix": "ny\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Header\\IdentificationHeader;\nuse Symfony\\Component\\Mime\\Header\\MailboxListHeader;\nuse Symfony\\Component\\Mime\\Header\\PathHeader;\nuse Symfony\\Component\\Mime\\Header\\UnstructuredHeader;\n\nclass HeadersTest extends TestCase\n{\n public function testAddMailboxListHeaderDelegatesToFactory()\n {\n $headers = new Headers();\n $headers->addMailboxListHeader('From', ['person@domain']);\n $this->assertNotNull($headers->get('From'));\n }\n", "suffix": "aders->get('Date'));\n }\n\n public function testAddTextHeaderDelegatesToFactory()\n {\n $headers = new Headers();\n $headers->addTextHeader('Subject', 'some text');\n $this->assertNotNull($headers->get('Subject'));\n }\n\n public", "middle": "\n public function testAddDateHeaderDelegatesToFactory()\n {\n $dateTime = new \\DateTimeImmutable();\n $headers = new Headers();\n $headers->addDateHeader('Date', $dateTime);\n $this->assertNotNull($he", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Header/HeadersTest.php", "language": "php", "file_size": 12834, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Header;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Header\\IdentificationHeader;\n\nclass IdentificationHeaderTest extends TestCase\n{\n public function testValueMatchesMsgIdSpec()\n {\n /* -- RFC 2822, 3.6.4.\n message-id = \"Message-ID:\" msg-id CRLF\n\n in-reply-to = \"In-Reply-To:\" 1*msg-id CRLF\n\n references = \"References:\" 1*msg-id CRLF\n\n msg-id ", "suffix": "ld-quote = DQUOTE *(qtext / quoted-pair) DQUOTE\n\n no-fold-literal = \"[\" *(dtext / quoted-pair) \"]\"\n */\n\n $header = new IdentificationHeader('Message-ID', 'id-left@id-right');\n $this->assertEquals('\" [CFWS]\n\n id-left = dot-atom-text / no-fold-quote / obs-id-left\n\n id-right = dot-atom-text / no-fold-literal / obs-id-right\n\n no-fo", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Header/IdentificationHeaderTest.php", "language": "php", "file_size": 5820, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Header;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Header\\MailboxHeader;\n\nclass MailboxHeaderTest extends TestCase\n{\n public function testConstructor()\n {\n $header = new MailboxHeader('Sender', $address = new Address('fabien@symfony.com'));\n $this->assertEquals($a", "suffix": "header->setBody($address = new Address('helene@symfony.com'));\n $this->assertEquals($address, $header->getAddress());\n $this->assertEquals($address, $header->getBody());\n $header->setAddress($address = new Address('thomas@symfony.com')", "middle": "ddress, $header->getAddress());\n $this->assertEquals($address, $header->getBody());\n }\n\n public function testAddress()\n {\n $header = new MailboxHeader('Sender', new Address('fabien@symfony.com'));\n $", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Header/MailboxHeaderTest.php", "language": "php", "file_size": 3744, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Header;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Header\\MailboxListHeader;\n\nclass MailboxListHeaderTest extends TestCase\n{\n // RFC 2822, 3.6.2 for all tests\n\n public function testMailboxIsSetForAddress()\n {\n $header = new MailboxListHeader('From', [new Address('chris@swiftmailer.org')]);\n $this->assertEquals(['chris@swiftmailer.org'], $header->getAddressStrin", "suffix": "ris@swiftmailer.org>'], $header->getAddressStrings());\n }\n\n public function testAddressCanBeReturnedForAddress()\n {\n $header = new MailboxListHeader('From', $addresses = [new Address('chris@swiftmailer.org')]);\n $this->assertEquals($", "middle": "gs());\n }\n\n public function testMailboxIsRenderedForNameAddress()\n {\n $header = new MailboxListHeader('From', [new Address('chris@swiftmailer.org', 'Chris Corbyn')]);\n $this->assertEquals(['Chris Corbyn assertEquals('text/plain', $header->getValue());\n }\n\n public function testParametersAreAppended()\n {\n /* -- RFC 2045, 5.1\n parameter := attribute \"=\" value\n\n attribute := token\n ; Matching of attributes\n ; is ALWAYS c", "suffix": "\" / \":\" / \"\\\" / <\">\n \"/\" / \"[\" / \"]\" / \"?\" / \"=\"\n ; Must be in quoted-string,\n ; to use within parameter values\n */\n\n $header = new ParameterizedHeader('Content-Type', 'text/plain');\n ", "middle": "ase-insensitive.\n\n value := token / quoted-string\n\n token := 1*\n\n tspecials := \"(\" / \")\" / \"<\" / \">\" / \"@\" /\n \",\" / \";", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Header/ParameterizedHeaderTest.php", "language": "php", "file_size": 12586, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Header;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Header\\PathHeader;\n\nclass PathHeaderTest extends TestCase\n{\n public function testSingleAddressCanBeSetAndFetched()\n {\n $header = new PathHeader('Return-Path', $address =", "suffix": "new PathHeader('Return-Path', new Address('chr is@swiftmailer.org'));\n }\n\n public function testValueIsAngleAddrWithValidAddress()\n {\n /* -- RFC 2822, 3.6.7.\n\n return = \"Return-Path:\" path CRLF\n\n path ", "middle": " new Address('chris@swiftmailer.org'));\n $this->assertEquals($address, $header->getAddress());\n }\n\n public function testAddressMustComplyWithRfc2822()\n {\n $this->expectException(\\Exception::class);\n ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Header/PathHeaderTest.php", "language": "php", "file_size": 2541, "cut_index": 563, "middle_length": 229}} {"prefix": " TestCase\n{\n public function testGetNameReturnsNameVerbatim()\n {\n $header = new UnstructuredHeader('Subject', '');\n $this->assertEquals('Subject', $header->getName());\n }\n\n public function testGetValueReturnsValueVerbatim()\n {\n $header = new UnstructuredHeader('Subject', 'Test');\n $this->assertEquals('Test', $header->getValue());\n }\n\n public function testBasicStructureIsKeyValuePair()\n {\n /* -- RFC 2822, 2.2\n Header fields are lines composed ", "suffix": "oString());\n }\n\n public function testLongHeadersAreFoldedAtWordBoundary()\n {\n /* -- RFC 2822, 2.2.3\n Each header field is logically a single line of characters comprising\n the field name, the colon, and the field body. For co", "middle": "of a field name, followed by a colon\n (\":\"), followed by a field body, and terminated by CRLF.\n */\n $header = new UnstructuredHeader('Subject', 'Test');\n $this->assertEquals('Subject: Test', $header->t", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Header/UnstructuredHeaderTest.php", "language": "php", "file_size": 9982, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Encoder\\Base64Encoder;\n\nclass Base64EncoderTest extends TestCase\n{\n /*\n There's really no point in testing the entire base64 encoding to the\n level QP encoding has been tested. base64_encode() has been in PHP for\n years.\n */\n\n public function testInputOutputRatioIs3to4Bytes()\n {\n /*\n RFC 2045, 6.8\n\n The encoding process repr", "suffix": "treated as 4 concatenated 6-bit groups, each\n of which is translated into a single digit in the base64 alphabet.\n */\n\n $encoder = new Base64Encoder();\n $this->assertEquals('MTIz', $encoder->encodeString('123'), '3 bytes of inp", "middle": "esents 24-bit groups of input bits as output\n strings of 4 encoded characters. Proceeding from left to right, a\n 24-bit input group is formed by concatenating 3 8bit input groups.\n These 24 bits are then ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Encoder/Base64EncoderTest.php", "language": "php", "file_size": 6436, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Encoder\\QpEncoder;\n\nclass QpEncoderTest extends TestCase\n{\n /* -- RFC 2045, 6.7 --\n (1) (General 8bit representation) Any octet, except a CR or\n LF that is part of a CRLF line break of the canonical\n (standard) form of the data being encoded, may be\n represented by an \"=\" followed by a two digit\n ", "suffix": " used; lowercase letters are not allowed. Thus, for\n example, the decimal value 12 (US-ASCII form feed) can\n be represented by \"=0C\", and the decimal value 61 (US-\n ASCII EQUAL SIGN) can be represe", "middle": " hexadecimal representation of the octet's value. The\n digits of the hexadecimal alphabet, for this purpose,\n are \"0123456789ABCDEF\". Uppercase letters must be\n ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Encoder/QpEncoderTest.php", "language": "php", "file_size": 9130, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Encoder\\QpMimeHeaderEncoder;\n\nclass QpMimeHeaderEncoderTest extends TestCase\n{\n public function testNameIsQ()\n {\n $encoder = new QpMimeHeaderEncoder();\n $this->assertEquals('Q', $encoder->getName());\n }\n\n public function testSpaceAndTabNeverAppear()\n {\n /* -- RFC 2047, 4.\n Only a subset of the printable ASCII characters may ", "suffix": "DoesNotMatchRegularExpression('~[ \\t]~', $encoder->encodeString(\"a \\t b\"), 'encoded-words in headers cannot contain LWSP as per RFC 2047.');\n }\n\n public function testSpaceIsRepresentedByUnderscore()\n {\n /* -- RFC 2047, 4.2.\n (2) The ", "middle": "be used in\n 'encoded-text'. Space and tab characters are not allowed, so that\n the beginning and end of an 'encoded-word' are obvious.\n */\n\n $encoder = new QpMimeHeaderEncoder();\n $this->assert", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Encoder/QpMimeHeaderEncoderTest.php", "language": "php", "file_size": 5591, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Encoder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Encoder\\Rfc2231Encoder;\n\nclass Rfc2231EncoderTest extends TestCase\n{\n private string $rfc2045Token = '/^[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2E\\x30-\\x39\\x41-\\x5A\\x5E-\\x7E]+$/D';\n\n /* --\n This algorithm is described in RFC 2231, but is barely touched upon except\n fo", "suffix": "oken\".\n */\n\n public function testEncodingAsciiCharactersProducesValidToken()\n {\n $string = '';\n foreach (range(0x00, 0x7F) as $octet) {\n $char = pack('C', $octet);\n $string .= $char;\n }\n $encoder =", "middle": "r mentioning bytes can be represented as their octet values (e.g. %20 for\n the SPACE character).\n\n The tests here focus on how to use that representation to always generate text\n which matches RFC 2045's definition of \"t", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Encoder/Rfc2231EncoderTest.php", "language": "php", "file_size": 4285, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Mime\\DependencyInjection\\AddMimeTypeGuesser", "suffix": ";\n $container->addCompilerPass(new AddMimeTypeGuesserPass());\n\n $definition = new Definition(FileinfoMimeTypeGuesser::class);\n $definition->addArgument('/path/to/magic/file');\n $definition->addTag('mime.mime_type_guesser');\n ", "middle": "Pass;\nuse Symfony\\Component\\Mime\\FileinfoMimeTypeGuesser;\nuse Symfony\\Component\\Mime\\MimeTypes;\n\nclass AddMimeTypeGuesserPassTest extends TestCase\n{\n public function testTags()\n {\n $container = new ContainerBuilder()", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/DependencyInjection/AddMimeTypeGuesserPassTest.php", "language": "php", "file_size": 2401, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Mime\\Header\\MailboxHeader;\nuse Symfony\\Component\\Mime\\Header\\MailboxListHeader;\nuse Symfony\\Component\\Mime\\RawMessage;\n\nfinal class EmailAddressContains extends Constraint\n{\n pub", "suffix": "is->headerName, $this->expectedValue);\n }\n\n /**\n * @param RawMessage $message\n */\n protected function matches($message): bool\n {\n if (RawMessage::class === $message::class) {\n throw new \\LogicException('Unable to test ", "middle": "lic function __construct(\n private string $headerName,\n private string $expectedValue,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('contains address \"%s\" with value \"%s\"', $th", "meta": {"filepath": "src/Symfony/Component/Mime/Test/Constraint/EmailAddressContains.php", "language": "php", "file_size": 1935, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\RawMessage;\n\nfinal class EmailAttachmentCount extends Constraint\n{\n public function __construct(\n private int $expect", "suffix": "tches($message): bool\n {\n if (RawMessage::class === $message::class || Message::class === $message::class) {\n throw new \\LogicException('Unable to test a message attachment on a RawMessage or Message instance.');\n }\n\n ret", "middle": "edValue,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('has sent \"%d\" attachment(s)', $this->expectedValue);\n }\n\n /**\n * @param RawMessage $message\n */\n protected function ma", "meta": {"filepath": "src/Symfony/Component/Mime/Test/Constraint/EmailAttachmentCount.php", "language": "php", "file_size": 1252, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Mime\\RawMessage;\n\nfinal class EmailHasHeader extends Constraint\n{\n public function __construct(\n private string $headerName,\n ) {\n }\n\n public f", "suffix": ":class === $message::class) {\n throw new \\LogicException('Unable to test a message header on a RawMessage instance.');\n }\n\n return $message->getHeaders()->has($this->headerName);\n }\n\n /**\n * @param RawMessage $message\n ", "middle": "unction toString(): string\n {\n return \\sprintf('has header \"%s\"', $this->headerName);\n }\n\n /**\n * @param RawMessage $message\n */\n protected function matches($message): bool\n {\n if (RawMessage:", "meta": {"filepath": "src/Symfony/Component/Mime/Test/Constraint/EmailHasHeader.php", "language": "php", "file_size": 1129, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Mime\\Header\\UnstructuredHeader;\nuse Symfony\\Component\\Mime\\RawMessage;\n\nfinal class EmailHeaderSame extends Constraint\n{\n public function __construct(\n private string $hea", "suffix": "* @param RawMessage $message\n */\n protected function matches($message): bool\n {\n if (RawMessage::class === $message::class) {\n throw new \\LogicException('Unable to test a message header on a RawMessage instance.');\n }\n\n ", "middle": "derName,\n private string $expectedValue,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('has header \"%s\" with value \"%s\"', $this->headerName, $this->expectedValue);\n }\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Mime/Test/Constraint/EmailHeaderSame.php", "language": "php", "file_size": 1631, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\RawMessage;\n\nfinal class EmailHtmlBodyContains extends Constraint\n{\n public function __construct(\n private stri", "suffix": "$message): bool\n {\n if (RawMessage::class === $message::class || Message::class === $message::class) {\n throw new \\LogicException('Unable to test a message HTML body on a RawMessage or Message instance.');\n }\n\n return str", "middle": "ng $expectedText,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('contains \"%s\"', $this->expectedText);\n }\n\n /**\n * @param RawMessage $message\n */\n protected function matches(", "meta": {"filepath": "src/Symfony/Component/Mime/Test/Constraint/EmailHtmlBodyContains.php", "language": "php", "file_size": 1248, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Mime\\Email;\n\nfinal class EmailSubjectContains extends Constraint\n{\n public function __construct(\n private readonly string $expectedSubjectValue,\n ) {\n }", "suffix": "il) {\n throw new \\LogicException('Can only test a message subject on an Email instance.');\n }\n\n return str_contains((string) $other->getSubject(), $this->expectedSubjectValue);\n }\n\n protected function failureDescription($othe", "middle": "\n\n public function toString(): string\n {\n return \\sprintf('contains subject with value \"%s\"', $this->expectedSubjectValue);\n }\n\n protected function matches($other): bool\n {\n if (!$other instanceof Ema", "meta": {"filepath": "src/Symfony/Component/Mime/Test/Constraint/EmailSubjectContains.php", "language": "php", "file_size": 1264, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\RawMessage;\n\nfinal class EmailTextBodyContains extends Constraint\n{\n public function __construct(\n private stri", "suffix": "$message): bool\n {\n if (RawMessage::class === $message::class || Message::class === $message::class) {\n throw new \\LogicException('Unable to test a message text body on a RawMessage or Message instance.');\n }\n\n return str", "middle": "ng $expectedText,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('contains \"%s\"', $this->expectedText);\n }\n\n /**\n * @param RawMessage $message\n */\n protected function matches(", "meta": {"filepath": "src/Symfony/Component/Mime/Test/Constraint/EmailTextBodyContains.php", "language": "php", "file_size": 1248, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\MimeTypeGuesserInterface;\n\nabstract class AbstractMimeTypeGuesserTestCase extends TestCase\n{\n public static function tearDownAfterClass(): void\n {\n $path = __DIR__.'/Fixtures/mimetypes/to_delete';\n if (file_exists($path)) {\n @chmod($path, 0o666)", "suffix": "{\n $this->markTestSkipped('Guesser is not supported');\n }\n\n $cwd = getcwd();\n chdir(__DIR__.'/Fixtures/mimetypes');\n try {\n $this->assertEquals('image/gif', $this->getGuesser()->guessMimeType('-test'));\n ", "middle": ";\n @unlink($path);\n }\n }\n\n abstract protected function getGuesser(): MimeTypeGuesserInterface;\n\n public function testGuessWithLeadingDash()\n {\n if (!$this->getGuesser()->isGuesserSupported()) ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/AbstractMimeTypeGuesserTestCase.php", "language": "php", "file_size": 4123, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\CharacterStream;\n\nclass CharacterStreamTest extends TestCase\n{\n public function testReadCharactersAreInTact()\n {\n $stream = new CharacterStream(pack('C*', 0xD0, 0x94, 0xD0, 0xB6, 0xD0, 0xBE));\n $stream->write(pack('C*',\n 0xD0, 0xBB,\n ", "suffix": "ream->read(2));\n $this->assertSame(pack('C*', 0xD0, 0xBB), $stream->read(1));\n $this->assertSame(pack('C*', 0xD1, 0x8E, 0xD0, 0xB1, 0xD1, 0x8B), $stream->read(3));\n $this->assertSame(pack('C*', 0xD1, 0x85), $stream->read(1));\n $", "middle": "0xD1, 0x8E,\n 0xD0, 0xB1,\n 0xD1, 0x8B,\n 0xD1, 0x85\n ));\n $this->assertSame(pack('C*', 0xD0, 0x94), $stream->read(1));\n $this->assertSame(pack('C*', 0xD0, 0xB6, 0xD0, 0xBE), $st", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/CharacterStreamTest.php", "language": "php", "file_size": 3325, "cut_index": 614, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\Mime\\Test\\Constraint\\EmailHeaderSame;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\PhpDocExtractor;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\MimeMessageNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer;\n\nclass EmailTestToStringGadget\n{\n ", "suffix": "public function testUnserializeRejectsObjectInTypedCharsetProperty(int $slot)\n {\n $email = new Email();\n $email->text('text body');\n $email->html('html body');\n $data = $email->__serialize();\n $data[$slot] = new EmailT", "middle": " public static bool $fired = false;\n\n public function __toString(): string\n {\n self::$fired = true;\n\n return '';\n }\n}\n\nclass EmailTest extends TestCase\n{\n #[DataProvider('provideTrampolineSlots')]\n ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/EmailTest.php", "language": "php", "file_size": 31893, "cut_index": 1331, "middle_length": 229}} {"prefix": "ponent\\Mime\\Exception\\LogicException;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Header\\MailboxListHeader;\nuse Symfony\\Component\\Mime\\Header\\UnstructuredHeader;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\AlternativePart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\MixedPart;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\PhpDocExtractor;\nuse Symfony\\Component\\Serializ", "suffix": "omponent\\Serializer\\Normalizer\\PropertyNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer;\n\nclass MessageTest extends TestCase\n{\n public function testConstruct()\n {\n $m = new Message();\n $this->assertNull($m->getBody());\n $t", "middle": "er\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\MimeMessageNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\C", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/MessageTest.php", "language": "php", "file_size": 14314, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\nuse Symfony\\Component\\Mime\\MimeTypeGuesserInterface;\nuse Symfony\\Component\\Mime\\MimeTypes;\n\n#[RequiresPhpExtension('fileinfo')]\nclass MimeTypesTest extends AbstractMimeTypeGu", "suffix": "r->registerGuesser(new class implements MimeTypeGuesserInterface {\n public function isGuesserSupported(): bool\n {\n return false;\n }\n\n public function guessMimeType(string $mimeType): ?string\n ", "middle": "esserTestCase\n{\n protected function getGuesser(): MimeTypeGuesserInterface\n {\n return new MimeTypes();\n }\n\n public function testUnsupportedGuesser()\n {\n $guesser = $this->getGuesser();\n $guesse", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/MimeTypesTest.php", "language": "php", "file_size": 2958, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Part;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Part\\SMimePart;\n\nclass SMimePartTestToStringGadget\n{\n public static bool $fired = false;\n\n public function __toString(): string\n {\n ", "suffix": " $template = (new SMimePart('body content', 'application', 'pkcs7-mime', []))->__serialize();\n $template[$key] = new SMimePartTestToStringGadget();\n $payload = \\sprintf('O:%d:\"%s\":%d:{', \\strlen(SMimePart::class), SMimePart::class, \\count($", "middle": " self::$fired = true;\n\n return '';\n }\n}\n\nclass SMimePartTest extends TestCase\n{\n #[DataProvider('provideTrampolineKeys')]\n public function testUnserializeRejectsObjectInTypedStringProperty(string $key)\n {\n ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Part/SMimePartTest.php", "language": "php", "file_size": 1662, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime;\n\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Exception\\LogicException;\n\n/**\n * Guesses the MIME type with the binary \"file\" (only available on *nix).\n *\n * @author Bernhard Schussek \n */\nclass FileBinaryMimeTypeGuesser imple", "suffix": " *\n * @param string $cmd The command to run to get the MIME type of a file\n */\n public function __construct(\n private string $cmd = 'file -b --mime -- %s 2>/dev/null',\n ) {\n }\n\n public function isGuesserSupported(): bool\n {\n ", "middle": "ments MimeTypeGuesserInterface\n{\n /**\n * The $cmd pattern must contain a \"%s\" string that will be replaced\n * with the file name to guess.\n *\n * The command output must start with the MIME type of the file.\n ", "meta": {"filepath": "src/Symfony/Component/Mime/FileBinaryMimeTypeGuesser.php", "language": "php", "file_size": 2195, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime;\n\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Exception\\LogicException;\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\n\n/**\n * Guesses the MIME type using the PECL extension FileInfo.\n *\n * @author Bernhard Schus", "suffix": "e A magic file to use with the finfo instance\n *\n * @see https://php.net/finfo-open\n */\n public function __construct(\n private ?string $magicFile = null,\n ) {\n }\n\n public function isGuesserSupported(): bool\n {\n retu", "middle": "sek \n */\nclass FileinfoMimeTypeGuesser implements MimeTypeGuesserInterface\n{\n /**\n * @var array\n */\n private static $finfoCache = [];\n\n /**\n * @param string|null $magicFil", "meta": {"filepath": "src/Symfony/Component/Mime/FileinfoMimeTypeGuesser.php", "language": "php", "file_size": 2007, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime;\n\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\AlternativePart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\MixedPart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\RelatedPart;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\n\n/**\n * @author Fabien Potencier \n */\nfinal class MessageConverter\n{\n /**\n * @throws RuntimeException when una", "suffix": "ple\" Email instance\n $body = $message->getBody();\n if ($body instanceof TextPart) {\n return self::createEmailFromTextPart($message, $body);\n }\n\n if ($body instanceof AlternativePart) {\n return self::createE", "middle": "ble to convert the message to an email\n */\n public static function toEmail(Message $message): Email\n {\n if ($message instanceof Email) {\n return $message;\n }\n\n // try to convert to a \"sim", "meta": {"filepath": "src/Symfony/Component/Mime/MessageConverter.php", "language": "php", "file_size": 5161, "cut_index": 716, "middle_length": 229}} {"prefix": " 'application/fdf' => ['fdf'],\n 'application/fdt+xml' => ['fdt'],\n 'application/fits' => ['fits', 'fit', 'fts'],\n 'application/font-tdpfr' => ['pfr'],\n 'application/font-woff' => ['woff'],\n 'application/futuresplash' => ['swf', 'spl'],\n 'application/geo+json' => ['geojson', 'geo.json'],\n 'application/gml+xml' => ['gml'],\n 'application/gnunet-directory' => ['gnd'],\n 'application/gpx' => ['gpx'],\n 'application/gpx+xml' => ['gpx'],\n ", "suffix": "['stk'],\n 'application/ico' => ['ico'],\n 'application/ics' => ['vcs', 'ics', 'ifb', 'icalendar'],\n 'application/illustrator' => ['ai'],\n 'application/inkml+xml' => ['ink', 'inkml'],\n 'application/ipfix' => ['ipfix'],\n ", "middle": " 'application/gxf' => ['gxf'],\n 'application/gzip' => ['gz'],\n 'application/har+json' => ['har'],\n 'application/hjson' => ['hjson'],\n 'application/hta' => ['hta'],\n 'application/hyperstudio' => ", "meta": {"filepath": "src/Symfony/Component/Mime/MimeTypes.php", "language": "php", "file_size": 200416, "cut_index": 7068, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime;\n\nuse Symfony\\Component\\Mime\\Exception\\LogicException;\n\n/**\n * @author Fabien Potencier \n */\nclass RawMessage\n{\n private bool $isGeneratorClosed;\n\n /**\n * @param iterable|string|resource $message\n */\n public function __construct(\n private $", "suffix": "this->message)) {\n return $this->message;\n }\n\n if (\\is_resource($this->message)) {\n return stream_get_contents($this->message, -1, 0);\n }\n\n $message = '';\n foreach ($this->message as $chunk) {\n ", "middle": "message,\n ) {\n }\n\n public function __destruct()\n {\n if (\\is_resource($this->message)) {\n fclose($this->message);\n }\n }\n\n public function toString(): string\n {\n if (\\is_string($", "meta": {"filepath": "src/Symfony/Component/Mime/RawMessage.php", "language": "php", "file_size": 2442, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Part;\n\nuse Symfony\\Component\\Mime\\Header\\Headers;\n\n/**\n * @author Fabien Potencier \n */\nabstract class AbstractMultipartPart extends AbstractPart\n{\n private ?string $boundary = null;\n private array $parts = [];\n\n public function __construct(AbstractPart ...$parts", "suffix": "turn $this->parts;\n }\n\n public function getMediaType(): string\n {\n return 'multipart';\n }\n\n public function getPreparedHeaders(): Headers\n {\n $headers = parent::getPreparedHeaders();\n $headers->setHeaderParameter('Con", "middle": ")\n {\n parent::__construct();\n\n foreach ($parts as $part) {\n $this->parts[] = $part;\n }\n }\n\n /**\n * @return AbstractPart[]\n */\n public function getParts(): array\n {\n re", "meta": {"filepath": "src/Symfony/Component/Mime/Part/AbstractMultipartPart.php", "language": "php", "file_size": 2288, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Part;\n\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Header\\Headers;\n\n/**\n * @author Fabien Potencier \n */\nclass DataPart extends TextPart\n{\n private ?string $filename = null;\n private string $mediaType;\n private ?string $cid = null;\n\n /**\n * @param resource|stri", "suffix": "nstanceof File && !$filename) {\n $filename = $body->getFilename();\n }\n\n $contentType ??= $body instanceof File ? $body->getContentType() : 'application/octet-stream';\n [$this->mediaType, $subtype] = explode('/', $contentType", "middle": "ng|File $body Use a File instance to defer loading the file until rendering\n */\n public function __construct($body, ?string $filename = null, ?string $contentType = null, ?string $encoding = null)\n {\n if ($body i", "meta": {"filepath": "src/Symfony/Component/Mime/Part/DataPart.php", "language": "php", "file_size": 4109, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Part;\n\nuse Symfony\\Component\\Mime\\MimeTypes;\n\n/**\n * @author Fabien Potencier \n */\nclass File\n{\n private static MimeTypes $mimeTypes;\n\n public function __construct(\n private string $path,\n private ?string", "suffix": "ON));\n self::$mimeTypes ??= new MimeTypes();\n\n return self::$mimeTypes->getMimeTypes($ext)[0] ?? 'application/octet-stream';\n }\n\n public function getSize(): int\n {\n return filesize($this->path);\n }\n\n public function getF", "middle": " $filename = null,\n ) {\n }\n\n public function getPath(): string\n {\n return $this->path;\n }\n\n public function getContentType(): string\n {\n $ext = strtolower(pathinfo($this->path, \\PATHINFO_EXTENSI", "meta": {"filepath": "src/Symfony/Component/Mime/Part/File.php", "language": "php", "file_size": 1095, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Part;\n\nuse Symfony\\Component\\Mime\\Encoder\\Base64ContentEncoder;\nuse Symfony\\Component\\Mime\\Encoder\\ContentEncoderInterface;\nuse Symfony\\Component\\Mime\\Encoder\\EightBitContentEncoder;\nuse Symfony\\Component\\Mime\\Encoder\\QpContentEncoder;\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Header\\Headers;\n\n/**\n * @author Fabien Potencier \n */\nclass TextPart extends AbstractPart\n{\n pri", "suffix": " private ?string $disposition = null;\n private ?string $name = null;\n private string $encoding;\n private ?bool $seekable = null;\n\n /**\n * @param resource|string|File $body Use a File instance to defer loading the file until rendering\n ", "middle": "vate const DEFAULT_ENCODERS = ['quoted-printable', 'base64', '8bit'];\n\n private static array $encoders = [];\n\n /** @var resource|string|File */\n private $body;\n private ?string $charset;\n private string $subtype;\n ", "meta": {"filepath": "src/Symfony/Component/Mime/Part/TextPart.php", "language": "php", "file_size": 9125, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nif ('cli' !== \\PHP_SAPI) {\n throw new Exception('This script must be run from the command line.');\n}\n\n// load new map\n$data = json_decode(file_get_contents('https://cdn.jsdelivr.net/gh/jshttp/mime-db/db.json'), true);\n$new = [];\nforeach ($data as $mimeType => $mimeTypeInformation) {\n if (!array_key_exists('extensions', $mimeTypeInformation)) {\n continue;\n }\n $new[$mimeType] = $mimeTypeInformation['extensions'];\n}\n\n$xml = simplexml_load_string(file_get_con", "suffix": " if ('*' != $pattern[0] || '.' != $pattern[1]) {\n continue;\n }\n\n $exts[] = substr($pattern, 2);\n }\n\n if (!$exts) {\n continue;\n }\n\n $mt = strtolower((string) $node['type']);\n $new[$mt] = array_merge($new", "middle": "tents('https://gitlab.freedesktop.org/xdg/shared-mime-info/-/raw/master/data/freedesktop.org.xml.in'));\nforeach ($xml as $node) {\n $exts = [];\n foreach ($node->glob as $glob) {\n $pattern = (string) $glob['pattern'];\n", "meta": {"filepath": "src/Symfony/Component/Mime/Resources/bin/update_mime_types.php", "language": "php", "file_size": 5308, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Exception\\RfcComplianceException;\n\nclass AddressTest extends TestCase\n{\n public function testConstructor()\n {\n $a = new Address('fabien@symfonï.com');\n $this->assertEquals('fabien@symfonï.com', $a->getAddress());", "suffix": "s->assertEquals('Fabien', $a->getName());\n $this->assertEquals('fabien@symfonï.com', $a->getAddress());\n $this->assertEquals('\"Fabien\" ', $a->toString());\n $this->assertEquals('fabien@xn--symfon-nwa.com', $a-", "middle": "\n $this->assertEquals('fabien@xn--symfon-nwa.com', $a->toString());\n $this->assertEquals('fabien@xn--symfon-nwa.com', $a->getEncodedAddress());\n\n $a = new Address('fabien@symfonï.com', 'Fabien');\n $thi", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/AddressTest.php", "language": "php", "file_size": 6363, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\MessageConverter;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\n\nclass MessageConverterTest extends TestCase\n{\n public function testToEmail()\n {\n $file = file_get_contents(__DIR__.'/Fixtures/mimety", "suffix": "content'));\n $this->assertConversion((clone $email)->html('HTML content '));\n $this->assertConversion((clone $email)\n ->text('text content')\n ->html('HTML content ')\n ", "middle": "pes/test.gif');\n $email = (new Email())->from('fabien@symfony.com')->to('you@example.com');\n $this->assertSame($email, MessageConverter::toEmail($email));\n\n $this->assertConversion((clone $email)->text('text ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/MessageConverterTest.php", "language": "php", "file_size": 3397, "cut_index": 614, "middle_length": 229}} {"prefix": "der\\Headers;\nuse Symfony\\Component\\Mime\\Header\\IdentificationHeader;\nuse Symfony\\Component\\Mime\\Header\\ParameterizedHeader;\nuse Symfony\\Component\\Mime\\Header\\UnstructuredHeader;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\Process\\PhpExecutableFinder;\nuse Symfony\\Component\\Process\\Process;\n\nclass DataPartTest extends TestCase\n{\n public function testConstructor()\n {\n $p = new DataPart('content');\n $this->assertEquals('content', $p->getBody());\n $this->assertEqual", "suffix": "assertEquals(base64_encode('content'), implode('', iterator_to_array($p->bodyToIterable())));\n $this->assertEquals('application', $p->getMediaType());\n $this->assertEquals('octet-stream', $p->getMediaSubType());\n\n $p = new DataPart('co", "middle": "s(base64_encode('content'), $p->bodyToString());\n $this->assertEquals(base64_encode('content'), implode('', iterator_to_array($p->bodyToIterable())));\n // bodyToIterable() can be called several times\n $this->", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Part/DataPartTest.php", "language": "php", "file_size": 9841, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime;\n\nuse Symfony\\Component\\Mime\\Exception\\LogicException;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Part\\AbstractPart;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\n\n/**\n * @author Fabien Potencier \n */\nclass Message extends RawMessage\n{\n private Headers $headers;\n\n public function __construct(\n", "suffix": "this->headers;\n\n if (null !== $this->body) {\n $this->body = clone $this->body;\n }\n }\n\n /**\n * @return $this\n */\n public function setBody(?AbstractPart $body): static\n {\n $this->body = $body;\n\n retu", "middle": " ?Headers $headers = null,\n private ?AbstractPart $body = null,\n ) {\n $this->headers = $headers ? clone $headers : new Headers();\n }\n\n public function __clone()\n {\n $this->headers = clone $", "meta": {"filepath": "src/Symfony/Component/Mime/Message.php", "language": "php", "file_size": 4430, "cut_index": 614, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\HtmlToTextConverter;\n\nuse League\\HTMLToMarkdown\\HtmlConverter;\nuse League\\HTMLToMarkdown\\HtmlConverterInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass LeagueHtmlToMarkdownConverter implements HtmlToTextConverterInterface\n{\n public function __const", "suffix": "ter = new HtmlConverter([\n 'hard_break' => true,\n 'strip_tags' => true,\n 'remove_nodes' => 'head style',\n ]),\n ) {\n }\n\n public function convert(string $html, string $charset): string\n {\n return $th", "middle": "ruct(\n private HtmlConverterInterface $conver", "meta": {"filepath": "src/Symfony/Component/Mime/HtmlToTextConverter/LeagueHtmlToMarkdownConverter.php", "language": "php", "file_size": 894, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Part;\n\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\RawMessage;\n\n/**\n * @final\n *\n * @author Fabien Potencier \n */\nclass MessagePart extends DataPart\n{\n public function __construct(\n private RawMessage $message,\n ) ", "suffix": " public function getMediaType(): string\n {\n return 'message';\n }\n\n public function getMediaSubtype(): string\n {\n return 'rfc822';\n }\n\n public function getBody(): string\n {\n return $this->message->toString();\n ", "middle": "{\n if ($message instanceof Message) {\n $name = $message->getHeaders()->getHeaderBody('Subject').'.eml';\n } else {\n $name = 'email.eml';\n }\n parent::__construct('', $name);\n }\n\n", "meta": {"filepath": "src/Symfony/Component/Mime/Part/MessagePart.php", "language": "php", "file_size": 1514, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\DraftEmail;\nuse Symfony\\Component\\Mime\\Exception\\LogicException;\n\n/**\n * @author Kevin Bond \n */\nfinal class DraftEmailTest extends TestCase\n{\n public function testCanHaveJust", "suffix": "is->assertStringContainsString('X-Unsent: 1', $email);\n }\n\n public function testBccIsRemoved()\n {\n $email = (new DraftEmail())->text('some text')->bcc('sam@example.com')->toString();\n\n $this->assertStringNotContainsString('sam@exampl", "middle": "Body()\n {\n $email = (new DraftEmail())->text('some text')->toString();\n\n $this->assertStringContainsString('some text', $email);\n $this->assertStringContainsString('MIME-Version: 1.0', $email);\n $th", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/DraftEmailTest.php", "language": "php", "file_size": 1511, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Part;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Encoder\\ContentEncoderInterface;\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Header\\ParameterizedHeader;\nuse Symfony\\Component\\Mime\\Header\\UnstructuredHeader;\nuse Symfony\\Component\\M", "suffix": " }\n}\n\nclass TextPartTest extends TestCase\n{\n #[DataProvider('provideTrampolineKeys')]\n public function testUnserializeRejectsObjectInTypedStringProperty(string $key)\n {\n $template = (new TextPart('body content'))->__serialize();\n ", "middle": "ime\\Part\\File;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\n\nclass TextPartTestToStringGadget\n{\n public static bool $fired = false;\n\n public function __toString(): string\n {\n self::$fired = true;\n\n return '';\n", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Part/TextPartTest.php", "language": "php", "file_size": 8198, "cut_index": 716, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime;\n\n/**\n * Guesses the MIME type of a file.\n *\n * @author Fabien Potencier \n */\ninterface MimeTypeGuesserInterface\n{\n /**\n * Returns true if this guesser is supported.\n */\n public function isGuesserSupported(): boo", "suffix": " with the given path.\n *\n * @throws \\LogicException If the guesser is not supported\n * @throws \\InvalidArgumentException If the file does not exist or is not readable\n */\n public function guessMimeType(string $path): ?string;\n}", "middle": "l;\n\n /**\n * Guesses the MIME type of the file", "meta": {"filepath": "src/Symfony/Component/Mime/MimeTypeGuesserInterface.php", "language": "php", "file_size": 826, "cut_index": 517, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests\\Part;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Header\\ParameterizedHeader;\nuse Symfony\\Component\\Mime\\Header\\UnstructuredHeader;\nuse Symfony\\Component\\Mime\\Part\\MessagePart;\n\nclass MessagePa", "suffix": "tent', $p->getBody());\n $this->assertStringContainsString('content', $p->bodyToString());\n $this->assertStringContainsString('content', implode('', iterator_to_array($p->bodyToIterable())));\n $this->assertEquals('message', $p->getMedia", "middle": "rtTest extends TestCase\n{\n public function testConstructor()\n {\n $p = new MessagePart((new Email())->from('fabien@symfony.com')->to('you@example.com')->text('content'));\n $this->assertStringContainsString('con", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/Part/MessagePartTest.php", "language": "php", "file_size": 2061, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Part\\Multipart;\n\nuse Symfony\\Component\\Mime\\Part\\AbstractMultipartPart;\nuse Symfony\\Component\\Mime\\Part\\AbstractPart;\n\n/**\n * @author Fabien Potencier \n */\nfinal class RelatedPart extends AbstractMultipartPart\n{\n public function _", "suffix": "lic function getParts(): array\n {\n return array_merge([$this->mainPart], parent::getParts());\n }\n\n public function getMediaSubtype(): string\n {\n return 'related';\n }\n\n private function generateContentId(): string\n {\n ", "middle": "_construct(\n private AbstractPart $mainPart,\n AbstractPart $part,\n AbstractPart ...$parts,\n ) {\n $this->prepareParts($part, ...$parts);\n\n parent::__construct($part, ...$parts);\n }\n\n pub", "meta": {"filepath": "src/Symfony/Component/Mime/Part/Multipart/RelatedPart.php", "language": "php", "file_size": 1361, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Mime\\Exception\\LogicException;\nuse Symfony\\Component\\Mime\\RawMessage;\n\nclass RawMessageTest extends TestCase\n{\n #[DataProvider('provideMessages')]\n public function testToString(mixed $messageParameter, bool $supportReuse)\n {\n", "suffix": "if ($supportReuse) {\n // calling methods more than once work\n $this->assertEquals('some string', $message->toString());\n $this->assertEquals('some string', implode('', iterator_to_array($message->toIterable())));\n }\n", "middle": " $message = new RawMessage($messageParameter);\n $this->assertEquals('some string', $message->toString());\n $this->assertEquals('some string', implode('', iterator_to_array($message->toIterable())));\n\n ", "meta": {"filepath": "src/Symfony/Component/Mime/Tests/RawMessageTest.php", "language": "php", "file_size": 3499, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Part;\n\nuse Symfony\\Component\\Mime\\Header\\Headers;\n\n/**\n * @author Fabien Potencier \n */\nabstract class AbstractPart\n{\n private Headers $headers;\n\n public function __construct()\n {\n $this->headers = new Headers();\n }\n\n public", "suffix": "t-Type', $this->getMediaType().'/'.$this->getMediaSubtype());\n\n return $headers;\n }\n\n public function toString(): string\n {\n return $this->getPreparedHeaders()->toString().\"\\r\\n\".$this->bodyToString();\n }\n\n public function toIt", "middle": " function getHeaders(): Headers\n {\n return $this->headers;\n }\n\n public function getPreparedHeaders(): Headers\n {\n $headers = clone $this->headers;\n $headers->setHeaderBody('Parameterized', 'Conten", "meta": {"filepath": "src/Symfony/Component/Mime/Part/AbstractPart.php", "language": "php", "file_size": 1732, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Part;\n\nuse Symfony\\Component\\Mime\\Header\\Headers;\n\n/**\n * @author Sebastiaan Stok \n */\nclass SMimePart extends AbstractPart\n{\n public function __construct(\n private iterable|string $body,\n private string $type,\n private string $subtype,\n ", "suffix": "is->subtype;\n }\n\n public function bodyToString(): string\n {\n if (\\is_string($this->body)) {\n return $this->body;\n }\n\n $body = '';\n foreach ($this->body as $chunk) {\n $body .= $chunk;\n }\n ", "middle": " private array $parameters,\n ) {\n parent::__construct();\n }\n\n public function getMediaType(): string\n {\n return $this->type;\n }\n\n public function getMediaSubtype(): string\n {\n return $th", "meta": {"filepath": "src/Symfony/Component/Mime/Part/SMimePart.php", "language": "php", "file_size": 3032, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler;\n\nuse Psr\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Scheduler\\Event\\FailureEvent;\nuse Symfony\\Component\\Scheduler\\Event\\PostRunEvent;\nuse Symfony\\Component\\Scheduler\\Event\\PreRunEvent;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageGen", "suffix": "$schedules\n */\n public function __construct(\n private readonly array $handlers,\n array $schedules,\n private readonly ClockInterface $clock = new Clock(),\n private readonly ?EventDispatcherInterface $dispatcher = null,\n ", "middle": "erator;\n\nfinal class Scheduler\n{\n /**\n * @var array\n */\n private array $generators = [];\n private int $index = 0;\n private bool $shouldStop = false;\n\n /**\n * @param iterable ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Scheduler.php", "language": "php", "file_size": 3538, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Generator;\n\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\nuse Symfony\\Component\\Scheduler\\Schedule;\nuse Symfony\\Component\\Scheduler\\ScheduleProviderInterface;\nuse Symfony\\Component\\Scheduler\\Trigger\\StatefulTriggerInterface;\n\nfinal class MessageGenerator implements MessageGeneratorInterface\n{\n private ?Schedule $schedule = null;\n private TriggerHeap $triggerHeap;", "suffix": ",\n private readonly ClockInterface $clock = new Clock(),\n private ?CheckpointInterface $checkpoint = null,\n ) {\n $this->waitUntil = new \\DateTimeImmutable('@0');\n }\n\n /**\n * @return \\Generator\n ", "middle": "\n private bool $heapInitialized = false;\n private ?\\DateTimeImmutable $waitUntil;\n\n public function __construct(\n private readonly ScheduleProviderInterface $scheduleProvider,\n private readonly string $name", "meta": {"filepath": "src/Symfony/Component/Scheduler/Generator/MessageGenerator.php", "language": "php", "file_size": 5441, "cut_index": 716, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Generator;\n\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\n\n/**\n * @internal\n *\n * @extends \\SplHeap\n */\nfinal class TriggerHeap extends \\SplHeap\n{\n public function __construct(\n public \\DateTimeImmutable $time,\n ) {\n", "suffix": "e, int, RecurringMessage} $value1\n * @param array{\\DateTimeImmutable, int, RecurringMessage} $value2\n */\n protected function compare(mixed $value1, mixed $value2): int\n {\n return $value2[0] <=> $value1[0] ?: $value2[1] <=> $value1[1];\n", "middle": " }\n\n /**\n * @param array{\\DateTimeImmutabl", "meta": {"filepath": "src/Symfony/Component/Scheduler/Generator/TriggerHeap.php", "language": "php", "file_size": 875, "cut_index": 559, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Generator;\n\nuse Psr\\Cache\\CacheItemInterface;\nuse Symfony\\Component\\Lock\\LockInterface;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\n\nfinal class Checkpoint implements CheckpointInterface\n{\n private const CACHE_EXPIRY = 5 * 365 * 86400; // 5 years\n\n private \\DateTimeImmutable $from", "suffix": " private readonly ?CacheInterface $cache = null,\n ) {\n }\n\n public function acquire(\\DateTimeImmutable $now): bool\n {\n if ($this->lock && !$this->lock->acquire()) {\n // Reset local state if a Lock is acquired by another ", "middle": ";\n private \\DateTimeImmutable $time;\n private int $index = -1;\n private bool $reset = false;\n\n public function __construct(\n private readonly string $name,\n private readonly ?LockInterface $lock = null,\n", "meta": {"filepath": "src/Symfony/Component/Scheduler/Generator/Checkpoint.php", "language": "php", "file_size": 2932, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Crypto;\n\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\nuse Symfony\\Component\\Mime\\Header\\UnstructuredHeader;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Mime\\Part\\AbstractPart;\n\n/**\n * @author Fabien Potencier \n *\n * RFC 6376 and 8301\n */\nfinal class DkimSigner\n{\n public const CANON_SIMPLE = 'simple';\n public const CANON_RELAXED = ", "suffix": " or the path to the file containing the private key, should be prefixed with file:// (in PEM format)\n * @param string $passphrase A passphrase of the private key (if any)\n */\n public function __construct(\n string $pk,\n private stri", "middle": "'relaxed';\n\n public const ALGO_SHA256 = 'rsa-sha256';\n public const ALGO_ED25519 = 'ed25519-sha256'; // RFC 8463\n\n private \\OpenSSLAsymmetricKey $key;\n\n /**\n * @param string $pk The private key as a string", "meta": {"filepath": "src/Symfony/Component/Mime/Crypto/DkimSigner.php", "language": "php", "file_size": 8026, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Crypto;\n\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\nuse Symfony\\Component\\Mime\\Message;\n\n/**\n * @author Sebastiaan Stok \n */\nfinal class SMimeEncrypter extends SMime\n{\n private string|array $certs;\n private int $cipher;\n\n /**\n * @param string", "suffix": ": https://php.net/openssl.ciphers\n */\n public function __construct(string|array $certificate, ?int $cipher = null)\n {\n if (!\\extension_loaded('openssl')) {\n throw new \\LogicException('PHP extension \"openssl\" is required to use S", "middle": "|string[] $certificate The path (or array of paths) of the file(s) containing the X.509 certificate(s)\n * @param int|null $cipher A set of algorithms used to encrypt the message. Must be one of these PHP constants", "meta": {"filepath": "src/Symfony/Component/Mime/Crypto/SMimeEncrypter.php", "language": "php", "file_size": 2223, "cut_index": 563, "middle_length": 229}} {"prefix": "ract class AbstractHeader implements HeaderInterface\n{\n public const PHRASE_PATTERN = '(?:(?:(?:(?:(?:(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])?(\\((?:(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])|(?:(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x19\\x7F]|[\\x21-\\x27\\x2A-\\x5B\\x5D-\\x7E])|(?:\\\\[\\x00-\\x08\\x0B\\x0C\\x0E-\\x7F])|(?1)))*(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])?\\)))*(?:(?:(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])?(\\((?:(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])|(?:(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x19\\x7F]|[\\x21-\\x27\\x2A-\\x5B\\x5D-\\x7E])|(?:\\\\[\\x00-\\x08\\x0B\\x0C\\x0E-\\x7F])|(?1)))*(?:(?:[ \\t]*(?:", "suffix": "])|(?:\\\\[\\x00-\\x08\\x0B\\x0C\\x0E-\\x7F])|(?1)))*(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])?\\)))*(?:(?:(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])?(\\((?:(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])|(?:(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x19\\x7F]|[\\x21-\\x27\\x2A-\\x5B\\x5D-\\x7E])|(?:\\\\[\\x00-\\x08\\x0B\\x0C\\x0E-\\x7F])|(?", "middle": "\\r\\n))?[ \\t])?\\)))|(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])))?[a-zA-Z0-9!#\\$%&\\'\\*\\+\\-\\/=\\?\\^_`\\{\\}\\|~]+(?:(?:(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])?(\\((?:(?:(?:[ \\t]*(?:\\r\\n))?[ \\t])|(?:(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x19\\x7F]|[\\x21-\\x27\\x2A-\\x5B\\x5D-\\x7E", "meta": {"filepath": "src/Symfony/Component/Mime/Header/AbstractHeader.php", "language": "php", "file_size": 11036, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Header;\n\n/**\n * A MIME Header.\n *\n * @author Chris Corbyn\n */\ninterface HeaderInterface\n{\n /**\n * Sets the body.\n *\n * The type depends on the Header concrete class.\n */\n public function setBody(mixed $body): void;\n\n /**\n * ", "suffix": "\n public function setLanguage(string $lang): void;\n\n public function getLanguage(): ?string;\n\n public function getName(): string;\n\n public function setMaxLineLength(int $lineLength): void;\n\n public function getMaxLineLength(): int;\n\n /**\n", "middle": "Gets the body.\n *\n * The return type depends on the Header concrete class.\n */\n public function getBody(): mixed;\n\n public function setCharset(string $charset): void;\n\n public function getCharset(): ?string;\n", "meta": {"filepath": "src/Symfony/Component/Mime/Header/HeaderInterface.php", "language": "php", "file_size": 1410, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Header;\n\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Exception\\RfcComplianceException;\n\n/**\n * An ID MIME Header for something like Message-ID or Content-ID (one or more addresses).\n *\n * @author Chris Corbyn\n */\nfinal class IdentificationHeader extends AbstractHeader\n{\n ", "suffix": "ram string|string[] $body a string ID or an array of IDs\n *\n * @throws RfcComplianceException\n */\n public function setBody(mixed $body): void\n {\n $this->setId($body);\n }\n\n public function getBody(): array\n {\n return", "middle": " private array $ids = [];\n private array $idsAsAddresses = [];\n\n public function __construct(string $name, string|array $ids)\n {\n parent::__construct($name);\n\n $this->setId($ids);\n }\n\n /**\n * @pa", "meta": {"filepath": "src/Symfony/Component/Mime/Header/IdentificationHeader.php", "language": "php", "file_size": 2384, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Header;\n\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Exception\\RfcComplianceException;\n\n/**\n * A Mailbox MIME Header for something like Sender (one named address).\n *\n * @author Fabien Potencier \n */\nfinal class MailboxHeader e", "suffix": "ddress $body\n *\n * @throws RfcComplianceException\n */\n public function setBody(mixed $body): void\n {\n $this->setAddress($body);\n }\n\n /**\n * @throws RfcComplianceException\n */\n public function getBody(): Address\n ", "middle": "xtends AbstractHeader\n{\n private Address $address;\n\n public function __construct(string $name, Address $address)\n {\n parent::__construct($name);\n\n $this->setAddress($address);\n }\n\n /**\n * @param A", "meta": {"filepath": "src/Symfony/Component/Mime/Header/MailboxHeader.php", "language": "php", "file_size": 1968, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Header;\n\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Exception\\RfcComplianceException;\n\n/**\n * A Path Header, such a Return-Path (one address).\n *\n * @author Chris Corbyn\n */\nfinal class PathHeader extends AbstractHeader\n{\n private", "suffix": "RfcComplianceException\n */\n public function setBody(mixed $body): void\n {\n $this->setAddress($body);\n }\n\n public function getBody(): Address\n {\n return $this->getAddress();\n }\n\n public function setAddress(Address $add", "middle": " Address $address;\n\n public function __construct(string $name, Address $address)\n {\n parent::__construct($name);\n\n $this->setAddress($address);\n }\n\n /**\n * @param Address $body\n *\n * @throws ", "meta": {"filepath": "src/Symfony/Component/Mime/Header/PathHeader.php", "language": "php", "file_size": 1275, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Header;\n\n/**\n * A Simple MIME Header.\n *\n * @author Chris Corbyn\n */\nclass UnstructuredHeader extends AbstractHeader\n{\n private string $value;\n\n public function __construct(string $name, string $value)\n {\n parent::__construct($name);\n\n ", "suffix": "rn $this->getValue();\n }\n\n /**\n * Get the (unencoded) value of this header.\n */\n public function getValue(): string\n {\n return $this->value;\n }\n\n /**\n * Set the (unencoded) value of this header.\n */\n public funct", "middle": " $this->setValue($value);\n }\n\n /**\n * @param string $body\n */\n public function setBody(mixed $body): void\n {\n $this->setValue($body);\n }\n\n public function getBody(): string\n {\n retu", "meta": {"filepath": "src/Symfony/Component/Mime/Header/UnstructuredHeader.php", "language": "php", "file_size": 1279, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Encoder;\n\n/**\n * @author Chris Corbyn\n */\nfinal class Base64MimeHeaderEncoder extends Base64Encoder implements MimeHeaderEncoderInterface\n{\n public function getName(): string\n {\n return 'B';\n }\n\n /**\n * Takes an unencoded string a", "suffix": "eString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0): string\n {\n if ('iso-2022-jp' === strtolower($charset)) {\n $old = mb_internal_encoding();\n mb_internal_encoding('utf-8');\n", "middle": "nd produces a Base64 encoded string from it.\n *\n * If the charset is iso-2022-jp, it uses mb_encode_mimeheader instead of\n * default encodeString, otherwise pass to the parent method.\n */\n public function encod", "meta": {"filepath": "src/Symfony/Component/Mime/Encoder/Base64MimeHeaderEncoder.php", "language": "php", "file_size": 1287, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Encoder;\n\n/**\n * An IDN email address encoder.\n *\n * Encodes the domain part of an address using IDN. This is compatible will all\n * SMTP servers.\n *\n * Note: It leaves the local part as is. In case there are non-ASCII characters\n * in the local part th", "suffix": "\n public function encodeString(string $address): string\n {\n $i = strrpos($address, '@');\n if (false !== $i) {\n $local = substr($address, 0, $i);\n $domain = substr($address, $i + 1);\n\n if (preg_match('/[^", "middle": "en it depends on the SMTP Server if this is supported.\n *\n * @author Christian Schmidt\n */\nfinal class IdnAddressEncoder implements AddressEncoderInterface\n{\n /**\n * Encodes the domain part of an address using IDN.\n */", "meta": {"filepath": "src/Symfony/Component/Mime/Encoder/IdnAddressEncoder.php", "language": "php", "file_size": 1309, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Encoder;\n\n/**\n * @author Lars Strojny\n */\nfinal class QpContentEncoder implements ContentEncoderInterface\n{\n public function encodeByteStream($stream, int $maxLineLength = 0): iterable\n {\n if (!\\is_resource($stream)) {\n throw new \\TypeError(\\", "suffix": "am), 'utf-8', 0, $maxLineLength);\n }\n\n public function getName(): string\n {\n return 'quoted-printable';\n }\n\n public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0): s", "middle": "sprintf('Method \"%s\" takes a stream as a first argument.', __METHOD__));\n }\n\n // we don't use PHP stream filters here as the content should be small enough\n yield $this->encodeString(stream_get_contents($stre", "meta": {"filepath": "src/Symfony/Component/Mime/Encoder/QpContentEncoder.php", "language": "php", "file_size": 1727, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Encoder;\n\n/**\n * @author Chris Corbyn\n */\nfinal class QpMimeHeaderEncoder extends QpEncoder implements MimeHeaderEncoderInterface\n{\n protected function initSafeMap(): void\n {\n foreach (array_merge(\n range(0x61, 0x7A), ra", "suffix": "rn 'Q';\n }\n\n public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0): string\n {\n return str_replace([' ', '=20', \"=\\r\\n\"], ['_', '_', \"\\r\\n\"],\n parent::encodeStri", "middle": "nge(0x41, 0x5A),\n range(0x30, 0x39), [0x20, 0x21, 0x2A, 0x2B, 0x2D, 0x2F]\n ) as $byte) {\n $this->safeMap[$byte] = \\chr($byte);\n }\n }\n\n public function getName(): string\n {\n retu", "meta": {"filepath": "src/Symfony/Component/Mime/Encoder/QpMimeHeaderEncoder.php", "language": "php", "file_size": 1075, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler;\n\nuse Symfony\\Component\\Scheduler\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\nuse Symfony\\Component\\Scheduler\\Trigger\\CronExpressionTrigger;\nuse Symfony\\Component\\Scheduler\\Trigger\\JitterTrigger;\nuse Symfony\\Component\\Scheduler\\Trigger\\MessageProviderInterface;\nuse Symfony\\Component\\Sche", "suffix": "vate string $id;\n\n private function __construct(\n private readonly TriggerInterface $trigger,\n private readonly MessageProviderInterface $provider,\n ) {\n }\n\n /**\n * Sets the trigger frequency.\n *\n * Supported frequency", "middle": "duler\\Trigger\\PeriodicalTrigger;\nuse Symfony\\Component\\Scheduler\\Trigger\\StaticMessageProvider;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\n\nfinal class RecurringMessage implements MessageProviderInterface\n{\n pri", "meta": {"filepath": "src/Symfony/Component/Scheduler/RecurringMessage.php", "language": "php", "file_size": 4391, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Attribute;\n\n/**\n * A marker to call a service method from scheduler.\n *\n * @author valtzu \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass AsCronTask\n{\n /**\n * @param string $expression ", "suffix": "in seconds; for example, if set to 60, the cron\n * will randomly wait for a number of seconds between 0 and 60 before\n * executing which allows to avoid load sp", "middle": "The cron expression to define the task schedule (i.e. \"5 * * * *\")\n * @param string|null $timezone The timezone used with the cron expression\n * @param int|null $jitter The cron jitter, ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Attribute/AsCronTask.php", "language": "php", "file_size": 2026, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Crypto;\n\n/**\n * A helper providing autocompletion for available DkimSigner options.\n *\n * @author Fabien Potencier \n */\nfinal class DkimOptions\n{\n private array $options = [];\n\n public function toArray(): array\n {\n return $this->o", "suffix": "lic function signatureExpirationDelay(int $show): static\n {\n $this->options['signature_expiration_delay'] = $show;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function bodyMaxLength(int $max): static\n {\n ", "middle": "ptions;\n }\n\n /**\n * @return $this\n */\n public function algorithm(string $algo): static\n {\n $this->options['algorithm'] = $algo;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n pub", "meta": {"filepath": "src/Symfony/Component/Mime/Crypto/DkimOptions.php", "language": "php", "file_size": 1816, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Crypto;\n\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\nuse Symfony\\Component\\Mime\\Message;\n\n/**\n * @author Sebastiaan Stok \n */\nfinal class SMimeSigner extends SMime\n{\n private string $signCertificate;\n private string|array $signPrivateKey;\n private", "suffix": "The path of the file containing the private key (in PEM format)\n * @param string|null $privateKeyPassphrase A passphrase of the private key (if any)\n * @param string|null $extraCerts The path of the file containing intermediate certificat", "middle": " int $signOptions;\n private ?string $extraCerts;\n\n /**\n * @param string $certificate The path of the file containing the signing certificate (in PEM format)\n * @param string $privateKey ", "meta": {"filepath": "src/Symfony/Component/Mime/Crypto/SMimeSigner.php", "language": "php", "file_size": 2731, "cut_index": 563, "middle_length": 229}} {"prefix": "author Fabien Potencier \n */\nfinal class Headers\n{\n private const UNIQUE_HEADERS = [\n 'date', 'from', 'sender', 'reply-to', 'to', 'cc', 'bcc',\n 'message-id', 'in-reply-to', 'references', 'subject',\n ];\n private const HEADER_CLASS_MAP = [\n 'date' => DateHeader::class,\n 'from' => MailboxListHeader::class,\n 'sender' => MailboxHeader::class,\n 'reply-to' => MailboxListHeader::class,\n 'to' => MailboxListHeader::class,\n 'cc' => Ma", "suffix": "rences` are less strict than RFC 2822 (3.6.4) to allow users entering the original email's ...\n 'references' => [UnstructuredHeader::class, IdentificationHeader::class], // ... `Message-ID`, even if that is no valid `msg-id`\n 'return-path' =>", "middle": "ilboxListHeader::class,\n 'bcc' => MailboxListHeader::class,\n 'message-id' => IdentificationHeader::class,\n 'in-reply-to' => [UnstructuredHeader::class, IdentificationHeader::class], // `In-Reply-To` and `Refe", "meta": {"filepath": "src/Symfony/Component/Mime/Header/Headers.php", "language": "php", "file_size": 9199, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Header;\n\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Exception\\RfcComplianceException;\n\n/**\n * A Mailbox list MIME Header for something like From, To, Cc, and Bcc (one or more named addresses).\n *\n * @author Chris Corbyn\n */\nfinal class MailboxListHeader extends AbstractHeader\n{\n private array $addresses = [];\n\n /**\n", "suffix": " $body\n *\n * @throws RfcComplianceException\n */\n public function setBody(mixed $body): void\n {\n $this->setAddresses($body);\n }\n\n /**\n * @return Address[]\n *\n * @throws RfcComplianceException\n */\n public fun", "middle": " * @param Address[] $addresses\n */\n public function __construct(string $name, array $addresses)\n {\n parent::__construct($name);\n\n $this->setAddresses($addresses);\n }\n\n /**\n * @param Address[]", "meta": {"filepath": "src/Symfony/Component/Mime/Header/MailboxListHeader.php", "language": "php", "file_size": 3175, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Encoder;\n\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\n\n/**\n * @author Fabien Potencier \n */\nfinal class Base64ContentEncoder extends Base64Encoder implements ContentEncoderInterface\n{\n public function encodeByteStream($", "suffix": "filter_append($stream, 'convert.base64-encode', \\STREAM_FILTER_READ, [\n 'line-length' => 0 >= $maxLineLength || 76 < $maxLineLength ? 76 : $maxLineLength,\n 'line-break-chars' => \"\\r\\n\",\n ]);\n if (!\\is_resource($filter)) ", "middle": "stream, int $maxLineLength = 0): iterable\n {\n if (!\\is_resource($stream)) {\n throw new \\TypeError(\\sprintf('Method \"%s\" takes a stream as a first argument.', __METHOD__));\n }\n\n $filter = stream_", "meta": {"filepath": "src/Symfony/Component/Mime/Encoder/Base64ContentEncoder.php", "language": "php", "file_size": 1328, "cut_index": 524, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Encoder;\n\n/**\n * @author Fabien Potencier \n */\nfinal class EightBitContentEncoder implements ContentEncoderInterface\n{\n public function encodeByteStream($stream, int $maxLineLength = 0): iterable\n {\n while (!feof($strea", "suffix": " }\n }\n\n public function getName(): string\n {\n return '8bit';\n }\n\n public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0): string\n {\n return $string;\n }", "middle": "m)) {\n yield fread($stream, 16372);\n ", "meta": {"filepath": "src/Symfony/Component/Mime/Encoder/EightBitContentEncoder.php", "language": "php", "file_size": 834, "cut_index": 523, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Encoder;\n\nuse Symfony\\Component\\Mime\\CharacterStream;\n\n/**\n * @author Chris Corbyn\n */\nfinal class Rfc2231Encoder implements EncoderInterface\n{\n /**\n * Takes an unencoded string and produces a string encoded according to RFC 2231 from it.\n */", "suffix": "e = &$lines[$lineCount++];\n\n if (0 >= $maxLineLength) {\n $maxLineLength = 75;\n }\n\n $charStream = new CharacterStream($string, $charset);\n $thisLineLength = $maxLineLength - $firstLineOffset;\n\n while (null !== $", "middle": "\n public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0): string\n {\n $lines = [];\n $lineCount = 0;\n $lines[] = '';\n $currentLin", "meta": {"filepath": "src/Symfony/Component/Mime/Encoder/Rfc2231Encoder.php", "language": "php", "file_size": 1433, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Lock\\LockInterface;\nuse Symfony\\Component\\Scheduler\\Event\\FailureEvent;\nuse Symfony\\Component\\Scheduler\\Event\\PostRunEvent;\nuse Symfony\\Component\\Scheduler\\Event\\PreRunEvent;\nuse Symfony\\Component\\Scheduler\\Exception\\LogicException;\nuse Symfony\\Contr", "suffix": "nterface $state = null;\n private bool $shouldRestart = false;\n private bool $onlyLastMissed = false;\n\n public function __construct(\n private readonly ?EventDispatcherInterface $dispatcher = null,\n ) {\n }\n\n public function with(Recu", "middle": "acts\\Cache\\CacheInterface;\n\nfinal class Schedule implements ScheduleProviderInterface\n{\n /** @var array */\n private array $messages = [];\n private ?LockInterface $lock = null;\n private ?CacheI", "meta": {"filepath": "src/Symfony/Component/Scheduler/Schedule.php", "language": "php", "file_size": 4964, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Attribute;\n\n/**\n * A marker to call a service method from scheduler.\n *\n * @author valtzu \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass AsPeriodicTask\n{\n /**\n * @param string|int $frequen", "suffix": "00:00\")\n * @param string|null $until A string representing the end time of the periodic task (i.e. \"20:00:00\")\n * @param int|null $jitter The cron jitter, in seconds; for example, if set to 60, the cron\n * ", "middle": "cy A string (i.e. \"every hour\") or an integer (the number of seconds) representing the frequency of the task\n * @param string|null $from A string representing the start time of the periodic task (i.e. \"08:", "meta": {"filepath": "src/Symfony/Component/Scheduler/Attribute/AsPeriodicTask.php", "language": "php", "file_size": 2273, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Header;\n\n/**\n * A Date MIME Header.\n *\n * @author Chris Corbyn\n */\nfinal class DateHeader extends AbstractHeader\n{\n private \\DateTimeImmutable $dateTime;\n\n public function __construct(string $name, \\DateTimeInterface $date)\n {\n parent::_", "suffix": "on getBody(): \\DateTimeImmutable\n {\n return $this->getDateTime();\n }\n\n public function getDateTime(): \\DateTimeImmutable\n {\n return $this->dateTime;\n }\n\n /**\n * Set the date-time of the Date in this Header.\n *\n *", "middle": "_construct($name);\n\n $this->setDateTime($date);\n }\n\n /**\n * @param \\DateTimeInterface $body\n */\n public function setBody(mixed $body): void\n {\n $this->setDateTime($body);\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Component/Mime/Header/DateHeader.php", "language": "php", "file_size": 1380, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Header;\n\nuse Symfony\\Component\\Mime\\Encoder\\Rfc2231Encoder;\n\n/**\n * @author Chris Corbyn\n */\nfinal class ParameterizedHeader extends UnstructuredHeader\n{\n /**\n * RFC 2231's definition of a token.\n *\n * @var string\n */\n public const TOKEN_REGEX = '(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2E\\x30-\\x39\\x41-\\x5A\\x5E-\\x7E]+)';\n\n private ?Rfc2231Encoder $encoder = null;\n private array $parameters = [];\n\n public function __const", "suffix": "e' !== strtolower($name)) {\n $this->encoder = new Rfc2231Encoder();\n }\n }\n\n public function setParameter(string $parameter, ?string $value): void\n {\n $this->setParameters(array_merge($this->getParameters(), [$parameter => ", "middle": "ruct(string $name, string $value, array $parameters = [])\n {\n parent::__construct($name, $value);\n\n foreach ($parameters as $k => $v) {\n $this->setParameter($k, $v);\n }\n\n if ('content-typ", "meta": {"filepath": "src/Symfony/Component/Mime/Header/ParameterizedHeader.php", "language": "php", "file_size": 6366, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Encoder;\n\n/**\n * @author Chris Corbyn\n */\nclass Base64Encoder implements EncoderInterface\n{\n /**\n * Takes an unencoded string and produces a Base64 encoded string from it.\n *\n * Base64 encoded strings have a maximum line length of 76 char", "suffix": "neLength = 0): string\n {\n if (0 >= $maxLineLength || 76 < $maxLineLength) {\n $maxLineLength = 76;\n }\n\n $encodedString = base64_encode($string);\n $firstLine = '';\n if (0 !== $firstLineOffset) {\n $f", "middle": "acters.\n * If the first line needs to be shorter, indicate the difference with\n * $firstLineOffset.\n */\n public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLi", "meta": {"filepath": "src/Symfony/Component/Mime/Encoder/Base64Encoder.php", "language": "php", "file_size": 1281, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Registers custom mime types gu", "suffix": "me_types')) {\n return;\n }\n $definition = $container->findDefinition('mime_types');\n $id = null;\n foreach ($container->findTaggedServiceIds('mime.mime_type_guesser', true) as $id => $attributes) {\n $definiti", "middle": "essers.\n *\n * @author Fabien Potencier \n */\nclass AddMimeTypeGuesserPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->has('mi", "meta": {"filepath": "src/Symfony/Component/Mime/DependencyInjection/AddMimeTypeGuesserPass.php", "language": "php", "file_size": 1161, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Crypto;\n\nuse Symfony\\Component\\Mime\\Exception\\RuntimeException;\nuse Symfony\\Component\\Mime\\Part\\SMimePart;\n\n/**\n * @author Sebastiaan Stok \n *\n * @internal\n */\nabstract class SMime\n{\n protected function normalizeFilePath(string $path): string\n {\n if (!file_exists($path)) {\n throw new RuntimeEx", "suffix": "reach ($iterator as $chunk) {\n fwrite($stream, $chunk);\n }\n }\n\n protected function convertMessageToSMimePart($stream, string $type, string $subtype): SMimePart\n {\n rewind($stream);\n\n $headers = '';\n\n while (!", "middle": "ception(\\sprintf('File does not exist: \"%s\".', $path));\n }\n\n return 'file://'.str_replace('\\\\', '/', realpath($path));\n }\n\n protected function iteratorToFile(iterable $iterator, $stream): void\n {\n fo", "meta": {"filepath": "src/Symfony/Component/Mime/Crypto/SMime.php", "language": "php", "file_size": 3264, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Clock\\MockClock;\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\nuse Symfony\\Component\\Scheduler\\Schedule;\nuse Symfony\\Component\\Scheduler\\S", "suffix": "ringMessage::every('1 second', new Message()));\n $scheduler = new Scheduler([Message::class => $handler], [$schedule], $clock);\n $handler->scheduler = $scheduler;\n\n $scheduler->run(['sleep' => 100]);\n\n $this->assertSame(3, $hand", "middle": "cheduler;\n\nclass SchedulerTest extends TestCase\n{\n public function testCanRunAndStop()\n {\n $handler = new Handler();\n $handler->clock = $clock = new MockClock();\n $schedule = (new Schedule())->add(Recur", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/SchedulerTest.php", "language": "php", "file_size": 1366, "cut_index": 524, "middle_length": 229}} {"prefix": "ArrayAdapter;\nuse Symfony\\Component\\Clock\\MockClock;\nuse Symfony\\Component\\Scheduler\\Generator\\Checkpoint;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageGenerator;\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\nuse Symfony\\Component\\Scheduler\\Schedule;\nuse Symfony\\Component\\Scheduler\\ScheduleProviderInterface;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\n\nclass MessageGeneratorTest extends TestCase\n{\n #[DataProvider('messagesPro", "suffix": " if (\\is_array($s)) {\n $schedule[$i] = $this->createMessage(...$s);\n }\n }\n $schedule = (new Schedule())->add(...$schedule);\n $schedule->stateful(new ArrayAdapter());\n\n $scheduler = new MessageGenerator", "middle": "vider')]\n public function testGetMessagesFromSchedule(string $startTime, array $runs, array $schedule)\n {\n $clock = new MockClock(self::makeDateTime($startTime));\n\n foreach ($schedule as $i => $s) {\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Generator/MessageGeneratorTest.php", "language": "php", "file_size": 16264, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageHandledEvent;\nuse S", "suffix": "Component\\Scheduler\\Event\\PreRunEvent;\nuse Symfony\\Component\\Scheduler\\EventListener\\DispatchSchedulerEventListener;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\nuse Symfony\\Component\\Scheduler\\Messenger\\ScheduledStamp;\nuse Symfony\\Component\\S", "middle": "ymfony\\Component\\Messenger\\Event\\WorkerMessageReceivedEvent;\nuse Symfony\\Component\\Messenger\\Stamp\\HandledStamp;\nuse Symfony\\Component\\Scheduler\\Event\\FailureEvent;\nuse Symfony\\Component\\Scheduler\\Event\\PostRunEvent;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/EventListener/DispatchSchedulerEventListenerTest.php", "language": "php", "file_size": 3747, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\Trigger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\nuse Symfony\\Component\\Scheduler\\Trigger\\CallbackMessageProvider;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\n\nclass CallbackMessageProviderTe", "suffix": "ssageProvider(static fn () => []);\n $this->assertEquals([], $messageProvider->getMessages($context));\n $this->assertEquals('', $messageProvider->getId());\n\n $messageProvider = new CallbackMessageProvider(static fn () => [new \\stdClass(", "middle": "st extends TestCase\n{\n public function testToString()\n {\n $context = new MessageContext('test', 'test', $this->createStub(TriggerInterface::class), new \\DateTimeImmutable());\n $messageProvider = new CallbackMe", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Trigger/CallbackMessageProviderTest.php", "language": "php", "file_size": 1511, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\Trigger;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Scheduler\\Trigger\\CronExpressionTrigger;\n\nclass CronExpressionTriggerTest extends TestCase\n{\n #[DataProvider('hashedExpressionProvider')]\n public function testHashedExpressionParsing(string $input, string $expected)", "suffix": " $this->assertSame($expected, (string) $triggerA);\n $this->assertSame((string) $triggerB, (string) $triggerA);\n $this->assertNotSame((string) $triggerC, (string) $triggerA);\n }\n\n public static function hashedExpressionProvider():", "middle": "\n {\n $triggerA = CronExpressionTrigger::fromSpec($input, 'my task');\n $triggerB = CronExpressionTrigger::fromSpec($input, 'my task');\n $triggerC = CronExpressionTrigger::fromSpec($input, 'another task');\n\n", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Trigger/CronExpressionTriggerTest.php", "language": "php", "file_size": 3233, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\Trigger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Scheduler\\Trigger\\JitterTrigger;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\n\nclass JitterTriggerTest extends TestCase\n{\n public function testCanAddJitter(", "suffix": "values = array_map(\n static fn () => (int) $trigger->getNextRunDate($time)?->getTimestamp(),\n array_fill(0, 100, null)\n );\n\n foreach ($values as $value) {\n $this->assertGreaterThanOrEqual($time->getTimestamp()", "middle": ")\n {\n $time = new \\DateTimeImmutable();\n $inner = $this->createStub(TriggerInterface::class);\n $inner->method('getNextRunDate')->willReturn($time);\n\n $trigger = new JitterTrigger($inner);\n\n $", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Trigger/JitterTriggerTest.php", "language": "php", "file_size": 1207, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\Messenger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Clock\\MockClock;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Scheduler\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageGenerator;\nuse Sy", "suffix": "ace;\nuse Symfony\\Component\\Scheduler\\Tests\\Fixtures\\SomeScheduleProvider;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\nuse Symfony\\Contracts\\Service\\ServiceLocatorTrait;\n\nclass SchedulerTransportFactoryTest extends TestCase\n{\n public functi", "middle": "mfony\\Component\\Scheduler\\Messenger\\SchedulerTransport;\nuse Symfony\\Component\\Scheduler\\Messenger\\SchedulerTransportFactory;\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\nuse Symfony\\Component\\Scheduler\\ScheduleProviderInterf", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Messenger/SchedulerTransportFactoryTest.php", "language": "php", "file_size": 4212, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\Messenger\\Serializer\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Scheduler\\Messenger\\Serializer\\Normalizer\\SchedulerTriggerNormalizer;\nuse Symfony\\Component\\Scheduler\\Trigger\\CallbackTrigger;\nuse Symfony\\Component\\Scheduler\\Trigger\\PeriodicalTrigger;\nuse Symfony", "suffix": "ew SchedulerTriggerNormalizer();\n }\n\n #[DataProvider('normalizeProvider')]\n public function testNormalize(mixed $data, mixed $expected)\n {\n self::assertSame($expected, $this->normalizer->normalize($data));\n }\n\n public static functi", "middle": "\\Component\\Scheduler\\Trigger\\TriggerInterface;\n\nclass SchedulerTriggerNormalizerTest extends TestCase\n{\n private SchedulerTriggerNormalizer $normalizer;\n\n protected function setUp(): void\n {\n $this->normalizer = n", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Messenger/Serializer/Normalizer/SchedulerTriggerNormalizerTest.php", "language": "php", "file_size": 3460, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Scheduler\\DependencyIn", "suffix": " $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionCode(1);\n\n $container = new ContainerBuilder();\n\n $container->register('provider_a', SomeScheduleProvider::class)->addTag('scheduler.schedule_provider'", "middle": "jection\\AddScheduleMessengerPass;\nuse Symfony\\Component\\Scheduler\\Tests\\Fixtures\\SomeScheduleProvider;\n\nclass RegisterProviderTest extends TestCase\n{\n public function testErrorOnMultipleProvidersForTheSameSchedule()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/DependencyInjection/RegisterProviderTest.php", "language": "php", "file_size": 1236, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Event;\n\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\nuse Symfony\\Component\\Scheduler\\ScheduleProviderInterface;\n\nclass PostRunEvent\n{\n public function __construct(\n private readonly ScheduleProviderInterface $schedul", "suffix": " return $this->messageContext;\n }\n\n public function getSchedule(): ScheduleProviderInterface\n {\n return $this->schedule;\n }\n\n public function getMessage(): object\n {\n return $this->message;\n }\n\n public function get", "middle": "e,\n private readonly MessageContext $messageContext,\n private readonly object $message,\n private readonly mixed $result = null,\n ) {\n }\n\n public function getMessageContext(): MessageContext\n {\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Event/PostRunEvent.php", "language": "php", "file_size": 1060, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Trigger;\n\n/**\n * @author Kevin Bond \n */\nabstract class AbstractDecoratedTrigger implements StatefulTriggerInterface\n{\n public function __construct(private TriggerInterface $inner)\n {\n }\n\n public function cont", "suffix": " {\n $inner = $this->inner;\n\n while ($inner instanceof self) {\n $inner = $inner->inner;\n }\n\n return $inner;\n }\n\n /**\n * @return \\Traversable\n */\n final public function decorators(): \\Traversab", "middle": "inue(\\DateTimeImmutable $startedAt): void\n {\n if ($this->inner instanceof StatefulTriggerInterface) {\n $this->inner->continue($startedAt);\n }\n }\n\n final public function inner(): TriggerInterface\n", "meta": {"filepath": "src/Symfony/Component/Scheduler/Trigger/AbstractDecoratedTrigger.php", "language": "php", "file_size": 1188, "cut_index": 518, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Trigger;\n\n/**\n * @author Fabien Potencier \n */\nfinal class CallbackTrigger implements TriggerInterface\n{\n private \\Closure $callback;\n private string $description;\n\n public function __construct(callable $callback, ?string $description = null)", "suffix": " $this->description = $description ?? spl_object_hash($this->callback);\n }\n\n public function __toString(): string\n {\n return $this->description;\n }\n\n public function getNextRunDate(\\DateTimeImmutable $run): ?\\DateTimeImmutable\n ", "middle": "\n {\n $this->callback = $callback(...);\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Trigger/CallbackTrigger.php", "language": "php", "file_size": 906, "cut_index": 547, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Mime\\Encoder;\n\nuse Symfony\\Component\\Mime\\CharacterStream;\n\n/**\n * @author Chris Corbyn\n */\nclass QpEncoder implements EncoderInterface\n{\n /**\n * Pre-computed QP for HUGE optimization.\n */\n private const QP_MAP = [\n 0 => '=00', 1 => '=01', 2 => '=02', 3 => '=03', 4 => '=04',\n 5 => '=05', 6 => '=06', 7 => '=07', 8 => '=08', 9 => '=09',\n 10 => '=0A', 11 => '=0B', 12 => '=0C', 13 => '=0D', 14 => '=0E',\n 15 =", "suffix": "1 => '=1F', 32 => '=20', 33 => '=21', 34 => '=22',\n 35 => '=23', 36 => '=24', 37 => '=25', 38 => '=26', 39 => '=27',\n 40 => '=28', 41 => '=29', 42 => '=2A', 43 => '=2B', 44 => '=2C',\n 45 => '=2D', 46 => '=2E', 47 => '=2F', 48 => '=30',", "middle": "> '=0F', 16 => '=10', 17 => '=11', 18 => '=12', 19 => '=13',\n 20 => '=14', 21 => '=15', 22 => '=16', 23 => '=17', 24 => '=18',\n 25 => '=19', 26 => '=1A', 27 => '=1B', 28 => '=1C', 29 => '=1D',\n 30 => '=1E', 3", "meta": {"filepath": "src/Symfony/Component/Mime/Encoder/QpEncoder.php", "language": "php", "file_size": 7857, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Trigger;\n\n/**\n * @author Kevin Bond \n */\nfinal class JitterTrigger extends AbstractDecoratedTrigger\n{\n /**\n * @param positive-int $maxSeconds\n */\n public function __construct(private readonly TriggerInter", "suffix": ">maxSeconds);\n }\n\n public function getNextRunDate(\\DateTimeImmutable $run): ?\\DateTimeImmutable\n {\n if (!$nextRun = $this->trigger->getNextRunDate($run)) {\n return null;\n }\n\n return $nextRun->add(new \\DateInterval(\\", "middle": "face $trigger, private readonly int $maxSeconds = 60)\n {\n parent::__construct($trigger);\n }\n\n public function __toString(): string\n {\n return \\sprintf('%s with 0-%d second jitter', $this->trigger, $this-", "meta": {"filepath": "src/Symfony/Component/Scheduler/Trigger/JitterTrigger.php", "language": "php", "file_size": 1062, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\nuse Symfony\\Component\\Sche", "suffix": "ug:scheduler', description: 'List schedules and their recurring messages')]\nfinal class DebugCommand extends Command\n{\n private array $scheduleNames;\n\n public function __construct(private ServiceProviderInterface $schedules)\n {\n $this->sche", "middle": "duler\\Schedule;\nuse Symfony\\Contracts\\Cache\\ItemInterface;\nuse Symfony\\Contracts\\Service\\ServiceProviderInterface;\n\n/**\n * Command to list/debug schedules.\n *\n * @author Kevin Bond \n */\n#[AsCommand(name: 'deb", "meta": {"filepath": "src/Symfony/Component/Scheduler/Command/DebugCommand.php", "language": "php", "file_size": 6546, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\EventListener;\n\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageHandledEvent;", "suffix": "Symfony\\Component\\Scheduler\\Event\\PostRunEvent;\nuse Symfony\\Component\\Scheduler\\Event\\PreRunEvent;\nuse Symfony\\Component\\Scheduler\\Messenger\\ScheduledStamp;\n\nclass DispatchSchedulerEventListener implements EventSubscriberInterface\n{\n public function __c", "middle": "\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageReceivedEvent;\nuse Symfony\\Component\\Messenger\\Stamp\\HandledStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\nuse Symfony\\Component\\Scheduler\\Event\\FailureEvent;\nuse ", "meta": {"filepath": "src/Symfony/Component/Scheduler/EventListener/DispatchSchedulerEventListener.php", "language": "php", "file_size": 3451, "cut_index": 614, "middle_length": 229}} {"prefix": "se Symfony\\Component\\Lock\\Lock;\nuse Symfony\\Component\\Lock\\LockInterface;\nuse Symfony\\Component\\Lock\\NoLock;\nuse Symfony\\Component\\Lock\\Store\\InMemoryStore;\nuse Symfony\\Component\\Scheduler\\Generator\\Checkpoint;\nuse Symfony\\Contracts\\Cache\\ItemInterface;\n\nclass CheckpointTest extends TestCase\n{\n public function testWithoutLockAndWithoutState()\n {\n $now = new \\DateTimeImmutable('2020-02-20 20:20:20Z');\n $later = $now->modify('1 hour');\n $checkpoint = new Checkpoint('dummy');\n\n ", "suffix": " $checkpoint->time());\n $this->assertSame(7, $checkpoint->index());\n\n $checkpoint->release($later, null);\n }\n\n public function testWithStateInitStateOnFirstAcquiring()\n {\n $checkpoint = new Checkpoint('cache', new NoLock(), $c", "middle": " $this->assertTrue($checkpoint->acquire($now));\n $this->assertSame($now, $checkpoint->time());\n $this->assertSame(-1, $checkpoint->index());\n\n $checkpoint->save($later, 7);\n\n $this->assertSame($later,", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Generator/CheckpointTest.php", "language": "php", "file_size": 10988, "cut_index": 921, "middle_length": 229}} {"prefix": "rayAdapter;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Scheduler\\Command\\DebugCommand;\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\nuse Symfony\\Component\\Scheduler\\Schedule;\nuse Symfony\\Component\\Scheduler\\Trigger\\CallbackTrigger;\nuse Symfony\\Contracts\\Cache\\ItemInterface;\nuse Symfony\\Contracts\\Service\\ServiceProviderInterface;\n\n/**\n * @author Max Beckers \n */\nclass DebugCommandTest extends TestCase\n{\n public function testExecuteWithoutSch", "suffix": " $command = new DebugCommand($schedules);\n $tester = new CommandTester($command);\n\n $tester->execute([], ['decorated' => false]);\n\n $display = preg_replace('/ +$/m', '', $tester->getDisplay(true));\n $this->assertSame(\"\\nSc", "middle": "edules()\n {\n $schedules = $this->createMock(ServiceProviderInterface::class);\n $schedules\n ->expects($this->once())\n ->method('getProvidedServices')\n ->willReturn([])\n ;\n\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Command/DebugCommandTest.php", "language": "php", "file_size": 14219, "cut_index": 921, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\Trigger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Scheduler\\Trigger\\CallbackTrigger;\n\nclass CallbackTriggerTest extends TestCase\n{\n public function testToString()\n {\n $trigger = new CallbackTrigger(static fn () => null);", "suffix": "da-f]{32}$/', (string) $trigger);\n\n $trigger = new CallbackTrigger(static fn () => null, '');\n $this->assertSame('', (string) $trigger);\n\n $trigger = new CallbackTrigger(static fn () => null, 'foo');\n $this->assertSame('foo', (s", "middle": "\n $this->assertMatchesRegularExpression('/^[\\", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Trigger/CallbackTriggerTest.php", "language": "php", "file_size": 863, "cut_index": 529, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\Trigger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Scheduler\\Trigger\\ExcludeTimeTrigger;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\n\nclass ExcludeTimeTriggerTest extends TestCase\n{\n public function testGetNextRun()\n {\n ", "suffix": "w ExcludeTimeTrigger(\n $inner,\n new \\DateTimeImmutable('2020-02-20T02:02:02Z'),\n new \\DateTimeImmutable('2020-02-20T20:20:20Z')\n );\n\n $this->assertEquals(new \\DateTimeImmutable('2020-02-20T02:02:01Z'), $schedu", "middle": " $inner = $this->createStub(TriggerInterface::class);\n $inner\n ->method('getNextRunDate')\n ->willReturnCallback(static fn (\\DateTimeImmutable $d) => $d->modify('+1 sec'));\n\n $scheduled = ne", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Trigger/ExcludeTimeTriggerTest.php", "language": "php", "file_size": 1559, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\Messenger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Message\\RedispatchMessage;\nuse Symfony\\Component\\Scheduler\\Exception\\LogicException;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageGeneratorInterface;\nus", "suffix": "public function testGetFromIterator()\n {\n $messages = [\n (object) ['id' => 'first'],\n (object) ['id' => 'second'],\n ];\n $generator = $this->createStub(MessageGeneratorInterface::class);\n $generator->meth", "middle": "e Symfony\\Component\\Scheduler\\Messenger\\ScheduledStamp;\nuse Symfony\\Component\\Scheduler\\Messenger\\SchedulerTransport;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\n\nclass SchedulerTransportTest extends TestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Messenger/SchedulerTransportTest.php", "language": "php", "file_size": 3689, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Event;\n\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\nuse Symfony\\Component\\Scheduler\\ScheduleProviderInterface;\n\nclass PreRunEvent\n{\n private bool $shouldCancel = false;\n\n public function __construct(\n private readon", "suffix": "n $this->messageContext;\n }\n\n public function getSchedule(): ScheduleProviderInterface\n {\n return $this->schedule;\n }\n\n public function getMessage(): object\n {\n return $this->message;\n }\n\n public function shouldCancel(", "middle": "ly ScheduleProviderInterface $schedule,\n private readonly MessageContext $messageContext,\n private readonly object $message,\n ) {\n }\n\n public function getMessageContext(): MessageContext\n {\n retur", "meta": {"filepath": "src/Symfony/Component/Scheduler/Event/PreRunEvent.php", "language": "php", "file_size": 1185, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Trigger;\n\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\n\nfinal class CallbackMessageProvider implements MessageProviderInterface, \\Stringable\n{\n private \\Closure $callback;\n\n /**\n * @param callable(MessageContext):", "suffix": "ages(MessageContext $context): iterable\n {\n return ($this->callback)($context);\n }\n\n public function getId(): string\n {\n return $this->id;\n }\n\n public function __toString(): string\n {\n return $this->description ?: ", "middle": " iterable $callback\n */\n public function __construct(callable $callback, private string $id = '', private string $description = '')\n {\n $this->callback = $callback(...);\n }\n\n public function getMess", "meta": {"filepath": "src/Symfony/Component/Scheduler/Trigger/CallbackMessageProvider.php", "language": "php", "file_size": 1016, "cut_index": 512, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Trigger;\n\nfinal class ExcludeTimeTrigger extends AbstractDecoratedTrigger\n{\n public function __construct(\n private readonly TriggerInterface $inner,\n private readonly \\DateTimeImmutable $from,\n private readonly \\DateTi", "suffix": "::ATOM), $this->until->format(\\DateTimeInterface::ATOM));\n }\n\n public function getNextRunDate(\\DateTimeImmutable $run): ?\\DateTimeImmutable\n {\n $nextRun = $this->inner->getNextRunDate($run);\n if ($nextRun >= $this->from && $nextRun <", "middle": "meImmutable $until,\n ) {\n parent::__construct($inner);\n }\n\n public function __toString(): string\n {\n return \\sprintf('%s, excluding from %s until %s', $this->inner, $this->from->format(\\DateTimeInterface", "meta": {"filepath": "src/Symfony/Component/Scheduler/Trigger/ExcludeTimeTrigger.php", "language": "php", "file_size": 1128, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Scheduler\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\n\nclass RecurringMessageTest extends TestCase\n{\n public function testCanCreateHashedCronMessage()\n ", "suffix": "cron('#weekly', $object)->getTrigger());\n }\n\n public function testHashedCronContextIsRequiredIfMessageIsNotStringable()\n {\n $this->expectException(InvalidArgumentException::class);\n\n RecurringMessage::cron('#midnight', new \\stdClass(", "middle": " {\n $object = new DummyStringableMessage();\n\n $this->assertSame('30 0 * * *', (string) RecurringMessage::cron('#midnight', $object)->getTrigger());\n $this->assertSame('30 0 * * 3', (string) RecurringMessage::", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/RecurringMessageTest.php", "language": "php", "file_size": 1512, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\Trigger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Scheduler\\Trigger\\ExcludeTimeTrigger;\nuse Symfony\\Component\\Scheduler\\Trigger\\JitterTrigger;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\n\nclass AbstractDecoratedTri", "suffix": " $this->assertSame([$trigger], iterator_to_array($trigger->decorators()));\n }\n\n public function testCanGetNestedInnerTrigger()\n {\n $trigger = new ExcludeTimeTrigger(\n $jitter = new JitterTrigger($inner = $this->createStub(Trig", "middle": "ggerTest extends TestCase\n{\n public function testCanGetInnerTrigger()\n {\n $trigger = new JitterTrigger($inner = $this->createStub(TriggerInterface::class));\n\n $this->assertSame($inner, $trigger->inner());\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Trigger/AbstractDecoratedTriggerTest.php", "language": "php", "file_size": 1273, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\Scheduler\\DependencyInjection\\AddScheduleMessengerPass;\n\nclass AddScheduleMessengerPassTest extends TestCase\n{\n #[DataProvider('processSchedule", "suffix": "$definition = new Definition($commandClass);\n $definition->addTag('console.command');\n $definition->addTag('scheduler.task', $arguments);\n $container->setDefinition($commandClass, $definition);\n\n (new AddScheduleMessengerPass())", "middle": "rTaskCommandProvider')]\n public function testProcessSchedulerTaskCommand(array $arguments, string $expectedCommand, string $commandClass = SchedulableCommand::class)\n {\n $container = new ContainerBuilder();\n\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/DependencyInjection/AddScheduleMessengerPassTest.php", "language": "php", "file_size": 5261, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Event;\n\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\nuse Symfony\\Component\\Scheduler\\ScheduleProviderInterface;\n\nclass FailureEvent\n{\n private bool $shouldIgnore = false;\n\n public function __construct(\n private readonly Sc", "suffix": "t(): MessageContext\n {\n return $this->messageContext;\n }\n\n public function getSchedule(): ScheduleProviderInterface\n {\n return $this->schedule;\n }\n\n public function getMessage(): object\n {\n return $this->message;\n ", "middle": "heduleProviderInterface $schedule,\n private readonly MessageContext $messageContext,\n private readonly object $message,\n private readonly \\Throwable $error,\n ) {\n }\n\n public function getMessageContex", "meta": {"filepath": "src/Symfony/Component/Scheduler/Event/FailureEvent.php", "language": "php", "file_size": 1315, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Scheduler\\Exception\\LogicException;\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\nuse Symfony\\Component\\Scheduler\\Schedule;\n\nclass ScheduleTest extends TestCase\n{\n pub", "suffix": " $schedule = new Schedule();\n $schedule->add(RecurringMessage::cron('* * * * *', new \\stdClass()));\n\n $this->expectException(LogicException::class);\n\n $schedule->add(RecurringMessage::cron('* * * * *', new \\stdClass()));\n }\n}\n", "middle": "lic function testCannotAddDuplicateMessage()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/ScheduleTest.php", "language": "php", "file_size": 820, "cut_index": 512, "middle_length": 52}} {"prefix": "ion\\InvalidArgumentException;\nuse Symfony\\Component\\Scheduler\\Trigger\\PeriodicalTrigger;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\n\nclass PeriodicalTriggerTest extends TestCase\n{\n #[DataProvider('provideForConstructor')]\n public function testConstructor(PeriodicalTrigger $trigger, bool $optimizable = true)\n {\n $run = new \\DateTimeImmutable('2922-02-22 12:34:00+00:00');\n\n $this->assertSame('2922-02-23 13:34:00+01:00', $trigger->getNextRunDate($run)->format('Y-m-d H:i:sP", "suffix": "getValue($trigger));\n }\n }\n\n public static function provideForConstructor(): iterable\n {\n $from = new \\DateTimeImmutable($now = '2022-02-22 13:34:00+01:00');\n $until = new \\DateTimeImmutable($farFuture = '3000-01-01');\n\n ", "middle": "'));\n\n if ($optimizable) {\n // test that we are using the fast algorithm for short period of time\n $p = new \\ReflectionProperty($trigger, 'intervalInSeconds');\n $this->assertNotSame(0, $p->", "meta": {"filepath": "src/Symfony/Component/Scheduler/Tests/Trigger/PeriodicalTriggerTest.php", "language": "php", "file_size": 9737, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Trigger;\n\nuse Symfony\\Component\\Scheduler\\Exception\\InvalidArgumentException;\n\nclass PeriodicalTrigger implements StatefulTriggerInterface\n{\n private float $intervalInSeconds = 0.0;\n private ?\\DateTimeImmutable $from;\n private \\DateTimeImmutable $until;\n private \\DatePeriod $period;\n private string $description;\n priva", "suffix": "\\DateTimeImmutable('3000-01-01'),\n ) {\n $this->from = \\is_string($from) ? new \\DateTimeImmutable($from) : $from;\n $this->until = \\is_string($until) ? new \\DateTimeImmutable($until) : $until;\n\n if (\\is_int($interval) || \\is_float($in", "middle": "te string|int|float|\\DateInterval $interval;\n\n public function __construct(\n string|int|float|\\DateInterval $interval,\n string|\\DateTimeImmutable|null $from = null,\n string|\\DateTimeImmutable $until = new ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Trigger/PeriodicalTrigger.php", "language": "php", "file_size": 4910, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Trigger;\n\nuse Cron\\CronExpression;\nuse Random\\Engine\\Xoshiro256StarStar;\nuse Random\\Randomizer;\nuse Symfony\\Component\\Scheduler\\Exception\\LogicException;\n\n/**\n * Use cron expressions to describe a periodical trigger.\n *\n * @author Fabien Potencier \n */\nfinal class CronExpressionTrigger implements TriggerInterface\n{\n ", "suffix": "#monthly@midnight' => '# #(0-2) # * *',\n '#annually' => '# # # # *',\n '#annually@midnight' => '# #(0-2) # # *',\n '#yearly' => '# # # # *',\n '#yearly@midnight' => '# #(0-2) # # *',\n '#midnight' => '# #(0-2) * * *',\n ];\n", "middle": " private const HASH_ALIAS_MAP = [\n '#hourly' => '# * * * *',\n '#daily' => '# # * * *',\n '#weekly' => '# # * * #',\n '#weekly@midnight' => '# #(0-2) * * #',\n '#monthly' => '# # # * *',\n '", "meta": {"filepath": "src/Symfony/Component/Scheduler/Trigger/CronExpressionTrigger.php", "language": "php", "file_size": 3468, "cut_index": 614, "middle_length": 229}} {"prefix": "ng\\Exception\\MissingMandatoryParametersException;\nuse Symfony\\Component\\Routing\\Exception\\RouteNotFoundException;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * UrlGenerator can generate a URL or a path for any route in the RouteCollection\n * based on the passed parameters.\n *\n * @author Fabien Potencier \n * @author Tobias Schultze \n */\nclass UrlGenerator implements UrlGeneratorInterface, ConfigurableRequirementsInte", "suffix": " // reserved chars that have no special meaning for HTTP URIs in a query or fragment\n // this excludes esp. \"&\", \"=\" and also \"+\" because PHP would treat it as a space (form-encoded)\n '%40' => '@',\n '%3A' => ':',\n '%21' => '!',", "middle": "rface\n{\n private const QUERY_FRAGMENT_DECODED = [\n // RFC 3986 explicitly allows those in the query/fragment to reference other URIs unencoded\n '%2F' => '/',\n '%252F' => '%2F',\n '%3F' => '?',\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Generator/UrlGenerator.php", "language": "php", "file_size": 15555, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Messenger;\n\nuse Psr\\Clock\\ClockInterface;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactoryInterface;\nuse Symfony\\Component\\Sche", "suffix": "/\nclass SchedulerTransportFactory implements TransportFactoryInterface\n{\n public function __construct(\n private readonly ContainerInterface $scheduleProviders,\n private readonly ClockInterface $clock = new Clock(),\n ) {\n }\n\n publi", "middle": "duler\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Scheduler\\Generator\\MessageGenerator;\nuse Symfony\\Component\\Scheduler\\ScheduleProviderInterface;\n\n/**\n * @implements TransportFactoryInterface\n *", "meta": {"filepath": "src/Symfony/Component/Scheduler/Messenger/SchedulerTransportFactory.php", "language": "php", "file_size": 2083, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Messenger\\Serializer\\Normalizer;\n\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Scheduler\\Trigger\\TriggerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterf", "suffix": "e,\n ];\n }\n\n /**\n * @param TriggerInterface $data\n */\n public function normalize(mixed $data, ?string $format = null, array $context = []): string\n {\n return (string) $data;\n }\n\n public function supportsNormalization(", "middle": "ace;\n\nfinal class SchedulerTriggerNormalizer implements DenormalizerInterface, NormalizerInterface\n{\n public function getSupportedTypes(?string $format): array\n {\n return [\n TriggerInterface::class => fals", "meta": {"filepath": "src/Symfony/Component/Scheduler/Messenger/Serializer/Normalizer/SchedulerTriggerNormalizer.php", "language": "php", "file_size": 2180, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing;\n\nuse Symfony\\Component\\Routing\\Exception\\InvalidArgumentException;\n\nclass Alias\n{\n private array $deprecation = [];\n\n public function __construct(\n private string $id,\n ) {\n }\n\n public function withId(string $id): static\n {\n $new = clone $this;\n\n $n", "suffix": "/**\n * Whether this alias is deprecated, that means it should not be referenced anymore.\n *\n * @param string $package The name of the composer package that is triggering the deprecation\n * @param string $version The version of the package t", "middle": "ew->id = $id;\n\n return $new;\n }\n\n /**\n * Returns the target name of this alias.\n *\n * @return string The target name\n */\n public function getId(): string\n {\n return $this->id;\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Alias.php", "language": "php", "file_size": 2532, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing;\n\n/**\n * CompiledRoutes are returned by the RouteCompiler class.\n *\n * @author Fabien Potencier \n */\nclass CompiledRoute\n{\n /**\n * @param string $staticPrefix The static prefix of the compiled route\n * @param string $regex The regular expression to use to match this route\n * @param arr", "suffix": "ostTokens Host tokens\n * @param array $hostVariables An array of host variables\n * @param array $variables An array of variables (variables defined in the path and in the host patterns)\n */\n public function __construct(\n ", "middle": "ay $tokens An array of tokens to use to generate URL for this route\n * @param array $pathVariables An array of path variables\n * @param string|null $hostRegex Host regex\n * @param array $h", "meta": {"filepath": "src/Symfony/Component/Routing/CompiledRoute.php", "language": "php", "file_size": 3719, "cut_index": 614, "middle_length": 229}} {"prefix": "http://tobion.de>\n */\nclass Route\n{\n private string $path = '/';\n private string $host = '';\n private array $schemes = [];\n private array $methods = [];\n private array $defaults = [];\n private array $requirements = [];\n private array $options = [];\n private string $condition = '';\n private ?CompiledRoute $compiled = null;\n\n /**\n * Constructor.\n *\n * Available options:\n *\n * * compiler_class: A class name able to compile this route instance (RouteCompiler by", "suffix": "f default parameter values\n * @param array $requirements An array of requirements for parameters (regexes)\n * @param array $options An array of options\n * @param string|null $host ", "middle": " default)\n * * utf8: Whether UTF-8 matching is enforced or not\n *\n * @param string $path The path pattern to match\n * @param array $defaults An array o", "meta": {"filepath": "src/Symfony/Component/Routing/Route.php", "language": "php", "file_size": 13071, "cut_index": 921, "middle_length": 229}} {"prefix": "e;\nuse Symfony\\Component\\Config\\ConfigCacheInterface;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Generator\\CompiledUrlGenerator;\nuse Symfony\\Component\\Routing\\Generator\\ConfigurableRequirementsInterface;\nuse Symfony\\Component\\Routing\\Generator\\Dumper\\CompiledUrlGeneratorDumper;\nuse Symfony\\Component\\Routing\\Generator\\Dumper\\GeneratorDumperInterfa", "suffix": "cher\\Dumper\\MatcherDumperInterface;\nuse Symfony\\Component\\Routing\\Matcher\\RequestMatcherInterface;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcherInterface;\n\n/**\n * The Router class is an example of the integration of all pieces of the\n * routing system f", "middle": "ce;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\Matcher\\CompiledUrlMatcher;\nuse Symfony\\Component\\Routing\\Matcher\\Dumper\\CompiledUrlMatcherDumper;\nuse Symfony\\Component\\Routing\\Mat", "meta": {"filepath": "src/Symfony/Component/Routing/Router.php", "language": "php", "file_size": 11487, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Exception;\n\n/**\n * The resource was found but the request method is not allowed.\n *\n * This exception should trigger an HTTP 405 response in your application code.\n *\n * @author Kris Wallsmith \n */\nclass MethodNotAllowedExcept", "suffix": "e = '', int $code = 0, ?\\Throwable $previous = null)\n {\n $this->allowedMethods = array_map('strtoupper', $allowedMethods);\n\n parent::__construct($message, $code, $previous);\n }\n\n /**\n * Gets the allowed HTTP methods.\n *\n ", "middle": "ion extends \\RuntimeException implements ExceptionInterface\n{\n protected array $allowedMethods = [];\n\n /**\n * @param string[] $allowedMethods\n */\n public function __construct(array $allowedMethods, string $messag", "meta": {"filepath": "src/Symfony/Component/Routing/Exception/MethodNotAllowedException.php", "language": "php", "file_size": 1129, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Exception;\n\n/**\n * Exception thrown when a route cannot be generated because of missing\n * mandatory parameters.\n *\n * @author Alexandre Salomé \n */\nclass MissingMandatoryParametersException extends \\InvalidArgumentExcepti", "suffix": "array $missingParameters = [], int $code = 0, ?\\Throwable $previous = null)\n {\n $this->routeName = $routeName;\n $this->missingParameters = $missingParameters;\n $message = \\sprintf('Some mandatory parameters are missing (\"%s\") to gen", "middle": "on implements ExceptionInterface\n{\n private string $routeName = '';\n private array $missingParameters = [];\n\n /**\n * @param string[] $missingParameters\n */\n public function __construct(string $routeName = '', ", "meta": {"filepath": "src/Symfony/Component/Routing/Exception/MissingMandatoryParametersException.php", "language": "php", "file_size": 1389, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunction;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface;\nuse Symfony\\Contracts\\Service\\ServiceProviderInterface;\n\n/**\n * Exposes functions defined in the requ", "suffix": " ServiceProviderInterface $functions,\n ) {\n }\n\n public function getFunctions(): array\n {\n $functions = [];\n\n foreach ($this->functions->getProvidedServices() as $function => $type) {\n $functions[] = new ExpressionFuncti", "middle": "est context to route conditions.\n *\n * @author Ahmed TAILOULOUTE \n */\nclass ExpressionLanguageProvider implements ExpressionFunctionProviderInterface\n{\n public function __construct(\n private", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/ExpressionLanguageProvider.php", "language": "php", "file_size": 1495, "cut_index": 524, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher;\n\n/**\n * RedirectableUrlMatcherInterface knows how to redirect the user.\n *\n * @author Fabien Potencier \n */\ninterface RedirectableUrlMatcherInterface\n{\n /**\n * Redirects the user to another URL and returns the parameter", "suffix": " $path The path info to redirect to\n * @param string $route The route name that matched\n * @param string|null $scheme The URL scheme (null to keep the current one)\n */\n public function redirect(string $path, string $route, ?string", "middle": "s for the redirection.\n *\n * @param string ", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcherInterface.php", "language": "php", "file_size": 864, "cut_index": 529, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException;\nuse Symfony\\Component\\Routing\\Exception\\NoConfigurationException;\nuse Symfony\\Component\\Routing\\Exception\\ResourceNotFoun", "suffix": "ch a request with a set of routes.\n *\n * If the matcher cannot find information, it must throw one of the exceptions documented\n * below.\n *\n * @throws NoConfigurationException If no routing configuration could be found\n * @throws ", "middle": "dException;\n\n/**\n * RequestMatcherInterface is the interface that all request matcher classes must implement.\n *\n * @author Fabien Potencier \n */\ninterface RequestMatcherInterface\n{\n /**\n * Tries to mat", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php", "language": "php", "file_size": 1249, "cut_index": 518, "middle_length": 229}} {"prefix": "sionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException;\nuse Symfony\\Component\\Routing\\Exception\\NoConfigurationException;\nuse Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * UrlMatcher matches URL based on a set of routes.\n *\n * @author Fabien Potencier \n */\nclass Url", "suffix": "ld be allowed for the request.\n */\n protected array $allow = [];\n\n /**\n * Collects URI schemes that would be allowed for the request.\n *\n * @internal\n */\n protected array $allowSchemes = [];\n protected ?Request $request = nu", "middle": "Matcher implements UrlMatcherInterface, RequestMatcherInterface\n{\n public const REQUIREMENT_MATCH = 0;\n public const REQUIREMENT_MISMATCH = 1;\n public const ROUTE_MATCH = 2;\n\n /**\n * Collects HTTP methods that wou", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/UrlMatcher.php", "language": "php", "file_size": 9676, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher\\Dumper;\n\nuse Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException;\nuse Symfony\\Component\\Routing\\Exception\\NoConfigurationException;\nuse Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException;\nuse Symfony\\Component\\Routing\\Matcher\\RedirectableUrlMatcherInterface;\nuse Symfony\\Component\\Routing\\RequestContext;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n *\n * @property RequestContext $context\n */\nt", "suffix": "ic function match(string $pathinfo): array\n {\n $allow = $allowSchemes = [];\n if ($ret = $this->doMatch($pathinfo, $allow, $allowSchemes)) {\n return $ret;\n }\n if ($allow) {\n throw new MethodNotAllowedExce", "middle": "rait CompiledUrlMatcherTrait\n{\n private bool $matchHost = false;\n private array $staticRoutes = [];\n private array $regexpList = [];\n private array $dynamicRoutes = [];\n private ?\\Closure $checkCondition;\n\n publ", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php", "language": "php", "file_size": 7590, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher\\Dumper;\n\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * Prefix tree of routes preserving routes order.\n *\n * @author Frank de Jonge \n * @author Nicolas Grekas \n *\n * @internal\n */\nclass StaticPrefixCollection\n{\n /**\n * @var string[]\n */\n private array $staticPrefixes = [];\n\n /**\n * @var string[]\n */\n private array $prefixes = [];\n\n /**\n * @var array[]|", "suffix": "* @return array[]|self[]\n */\n public function getRoutes(): array\n {\n return $this->items;\n }\n\n /**\n * Adds a route to a group.\n */\n public function addRoute(string $prefix, array|self $route): void\n {\n [$prefix, ", "middle": "self[]\n */\n private array $items = [];\n\n public function __construct(\n private string $prefix = '/',\n ) {\n }\n\n public function getPrefix(): string\n {\n return $this->prefix;\n }\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.php", "language": "php", "file_size": 7092, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Generator;\n\n/**\n * ConfigurableRequirementsInterface must be implemented by URL generators that\n * can be configured whether an exception should be generated when the parameters\n * do not match the requirements. It is also possible to disable the requirements\n * check for URL generation c", "suffix": "e): Don't throw an exception but return an empty string as URL for\n * mismatching requirements and log the problem. Useful when you cannot control all\n * params because they come from third party libs but don't want to have a 404 in\n * production env", "middle": "ompletely.\n *\n * The possible configurations and use-cases:\n * - setStrictRequirements(true): Throw an exception for mismatching requirements. This\n * is mostly useful in development environment.\n * - setStrictRequirements(fals", "meta": {"filepath": "src/Symfony/Component/Routing/Generator/ConfigurableRequirementsInterface.php", "language": "php", "file_size": 2218, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Trigger;\n\nuse Symfony\\Component\\Scheduler\\Generator\\MessageContext;\n\nfinal class StaticMessageProvider implements MessageProviderInterface, \\Stringable\n{\n /**\n * @param array $messages\n */\n public function __construct(\n private array $messages,\n private string $id = '',\n private string ", "suffix": "n getMessages(MessageContext $context): iterable\n {\n return $this->messages;\n }\n\n public function getId(): string\n {\n return $this->id;\n }\n\n public function __toString(): string\n {\n return $this->description ?: $th", "middle": "$description = '',\n ) {\n }\n\n public functio", "meta": {"filepath": "src/Symfony/Component/Scheduler/Trigger/StaticMessageProvider.php", "language": "php", "file_size": 930, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Messenger;\n\n/**\n * Represents a service call.\n *\n * @author valtzu \n */\nclass ServiceCallMessage implements \\Stringable\n{\n public function __construct(\n private readonly string $serviceId,\n private rea", "suffix": " {\n return $this->method;\n }\n\n public function getArguments(): array\n {\n return $this->arguments;\n }\n\n public function __toString(): string\n {\n return \"@$this->serviceId\".('__invoke' !== $this->method ? \"::$this->met", "middle": "donly string $method = '__invoke',\n private readonly array $arguments = [],\n ) {\n }\n\n public function getServiceId(): string\n {\n return $this->serviceId;\n }\n\n public function getMethod(): string\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Messenger/ServiceCallMessage.php", "language": "php", "file_size": 1017, "cut_index": 512, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * Holds information about the current request.\n *\n * This class implements a fluent interface.\n *\n * @author Fabien Potencier \n * @author Tobias Schultze \n */\nclass RequestContext\n{\n private string $baseUrl;\n private string $pathInfo;\n private string $method;\n private string $host;\n private string $scheme;\n private int $httpPort;\n", "suffix": "int $httpPort = 80, int $httpsPort = 443, string $path = '/', string $queryString = '', ?array $parameters = null)\n {\n $this->setBaseUrl($baseUrl);\n $this->setMethod($method);\n $this->setHost($host);\n $this->setScheme($scheme", "middle": " private int $httpsPort;\n private string $queryString;\n private array $parameters = [];\n\n public function __construct(string $baseUrl = '', string $method = 'GET', string $host = 'localhost', string $scheme = 'http', ", "meta": {"filepath": "src/Symfony/Component/Routing/RequestContext.php", "language": "php", "file_size": 7089, "cut_index": 716, "middle_length": 229}} {"prefix": "hor Tobias Schultze \n */\nclass RouteCompiler implements RouteCompilerInterface\n{\n /**\n * This string defines the characters that are automatically considered separators in front of\n * optional placeholders (with default and no static text following). Such a single separator\n * can be left out together with the optional placeholder from matching and generating URLs.\n */\n public const SEPARATORS = '/,;.:-_~+*=@|';\n\n /**\n * The maximum supported length of a PCRE s", "suffix": "s named _fragment\n * @throws \\LogicException if a variable is referenced more than once\n * @throws \\DomainException if a variable name starts with a digit or if it is too long to be successfully used as\n * ", "middle": "ubpattern name\n * http://pcre.org/current/doc/html/pcre2pattern.html#SEC16.\n *\n * @internal\n */\n public const VARIABLE_MAXIMUM_LENGTH = 32;\n\n /**\n * @throws \\InvalidArgumentException if a path variable i", "meta": {"filepath": "src/Symfony/Component/Routing/RouteCompiler.php", "language": "php", "file_size": 14596, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Attribute;\n\n/**\n * @author Fabien Potencier \n * @author Alexander M. Turek \n */\n#[\\Attribute(\\Attribute::IS_REPEATABLE | \\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD)]\nclass Route\n{\n /** @var string[] */\n public array $methods;\n\n /** @var string[] */\n public array $envs;\n\n /** @va", "suffix": "er/login\")\n * @param string|null $name The route name (i.e. \"app_user_login\")\n * @param array $requirements Requirements for the route attributes, @see https:", "middle": "r string[] */\n public array $schemes;\n\n /** @var (string|DeprecatedAlias)[] */\n public array $aliases = [];\n\n /**\n * @param string|array|null $path The route path (i.e. \"/us", "meta": {"filepath": "src/Symfony/Component/Routing/Attribute/Route.php", "language": "php", "file_size": 4296, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher;\n\nuse Symfony\\Component\\Routing\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException;\n\n/**\n * @author Fabien Potencier \n */\nabstract class RedirectableUrlMatcher extends UrlMatcher implements RedirectableUrlMatcherInte", "suffix": "['HEAD', 'GET'], true)) {\n throw $e;\n }\n\n if ($this->allowSchemes) {\n redirect_scheme:\n $scheme = $this->context->getScheme();\n $this->context->setScheme(current($this->allow", "middle": "rface\n{\n public function match(string $pathinfo): array\n {\n try {\n return parent::match($pathinfo);\n } catch (ResourceNotFoundException $e) {\n if (!\\in_array($this->context->getMethod(), ", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php", "language": "php", "file_size": 2052, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher;\n\nuse Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException;\nuse Symfony\\Component\\Routing\\Exception\\NoConfigurationException;\nuse Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException;\nuse Symfony\\Component\\Routing\\RequestCon", "suffix": "ace\n{\n /**\n * Tries to match a URL path with a set of routes.\n *\n * If the matcher cannot find information, it must throw one of the exceptions documented\n * below.\n *\n * @param string $pathinfo The path info to be parsed (raw fo", "middle": "textAwareInterface;\n\n/**\n * UrlMatcherInterface is the interface that all URL matcher classes must implement.\n *\n * @author Fabien Potencier \n */\ninterface UrlMatcherInterface extends RequestContextAwareInterf", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/UrlMatcherInterface.php", "language": "php", "file_size": 1370, "cut_index": 524, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher\\Dumper;\n\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * MatcherDumperInterface is the interface that all matcher dumper classes must implement.\n *\n * @author Fabien Potencier \n */\ninterface MatcherDumperInterfa", "suffix": "g representation of executable code\n * that can then be used to match a request against these routes.\n */\n public function dump(array $options = []): string;\n\n /**\n * Gets the routes to dump.\n */\n public function getRoutes(): Route", "middle": "ce\n{\n /**\n * Dumps a set of routes to a strin", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/Dumper/MatcherDumperInterface.php", "language": "php", "file_size": 842, "cut_index": 520, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\Messenger;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Message\\RedispatchMessage;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\nuse Symfony\\Component\\Scheduler\\Exception\\LogicException;\nuse Symfony\\Component\\Schedu", "suffix": " * @param int $fetchSize Best-effort hint about how many messages can be received in one call\n */\n public function get(/* int $fetchSize = 1 */): iterable\n {\n foreach ($this->messageGenerator->getMessages() as $context => $message) {\n ", "middle": "ler\\Generator\\MessageGeneratorInterface;\n\nclass SchedulerTransport implements TransportInterface\n{\n public function __construct(\n private readonly MessageGeneratorInterface $messageGenerator,\n ) {\n }\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Scheduler/Messenger/SchedulerTransport.php", "language": "php", "file_size": 1834, "cut_index": 537, "middle_length": 229}} {"prefix": "y\\Component\\Routing\\Exception\\RouteCircularReferenceException;\n\n/**\n * A RouteCollection represents a set of Route instances.\n *\n * When adding a route at the end of the collection, an existing route\n * with the same name is removed first. So there can only be one route\n * with a given name.\n *\n * @author Fabien Potencier \n * @author Tobias Schultze \n *\n * @implements \\IteratorAggregate\n */\nclass RouteCollection implements \\IteratorAggregate, \\Countable\n{", "suffix": " private array $resources = [];\n\n /**\n * @var array\n */\n private array $priorities = [];\n\n public function __clone()\n {\n foreach ($this->routes as $name => $route) {\n $this->routes[$name] = clone $route;\n", "middle": "\n /**\n * @var array\n */\n private array $routes = [];\n\n /**\n * @var array\n */\n private array $aliases = [];\n\n /**\n * @var array\n */\n ", "meta": {"filepath": "src/Symfony/Component/Routing/RouteCollection.php", "language": "php", "file_size": 10940, "cut_index": 921, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher;\n\nuse Symfony\\Component\\Routing\\Matcher\\Dumper\\CompiledUrlMatcherTrait;\nuse Symfony\\Component\\Routing\\RequestContext;\n\n/**\n * Matches URLs based on rules dumped by CompiledUrlMatcherDumper.\n *\n * @author Nicolas Grekas \n */\nclass Co", "suffix": "edUrlMatcherTrait;\n\n public function __construct(array $compiledRoutes, RequestContext $context)\n {\n $this->context = $context;\n [$this->matchHost, $this->staticRoutes, $this->regexpList, $this->dynamicRoutes, $this->checkCondition] = $", "middle": "mpiledUrlMatcher extends UrlMatcher\n{\n use Compil", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/CompiledUrlMatcher.php", "language": "php", "file_size": 861, "cut_index": 529, "middle_length": 52}} {"prefix": "Dumper extends MatcherDumper\n{\n private ExpressionLanguage $expressionLanguage;\n private ?\\Exception $signalingException = null;\n\n /**\n * @var ExpressionFunctionProviderInterface[]\n */\n private array $expressionLanguageProviders = [];\n\n public function dump(array $options = []): string\n {\n return <<generateCompiledRoutes()}];\n\n EOF;\n }\n\n public function addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider): void\n {\n $this->expressionLanguageProviders[] = $pr", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherDumper.php", "language": "php", "file_size": 19503, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Generator;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Routing\\Exception\\RouteNotFoundException;\nuse Symfony\\Component\\Routing\\RequestContext;\n\n/**\n * Generates URLs based on rules dumped by CompiledUrlGeneratorDumper.\n */\nclass CompiledUrlGenerator extends UrlGenerator\n{\n priv", "suffix": " $this->compiledRoutes = $compiledRoutes;\n $this->context = $context;\n $this->logger = $logger;\n }\n\n public function generate(string $name, array $parameters = [], int $referenceType = self::ABSOLUTE_PATH): string\n {\n $loc", "middle": "ate array $compiledRoutes = [];\n\n public function __construct(\n array $compiledRoutes,\n RequestContext $context,\n ?LoggerInterface $logger = null,\n private ?string $defaultLocale = null,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Generator/CompiledUrlGenerator.php", "language": "php", "file_size": 2508, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Scheduler\\DependencyInjection;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Messenger\\RunCommandMessage;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentExcep", "suffix": "CallMessage;\nuse Symfony\\Component\\Scheduler\\RecurringMessage;\nuse Symfony\\Component\\Scheduler\\Schedule;\n\n/**\n * @internal\n */\nclass AddScheduleMessengerPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n", "middle": "tion;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Messenger\\Message\\RedispatchMessage;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\nuse Symfony\\Component\\Scheduler\\Messenger\\Service", "meta": {"filepath": "src/Symfony/Component/Scheduler/DependencyInjection/AddScheduleMessengerPass.php", "language": "php", "file_size": 7046, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Matcher;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * TraceableUrlMatcher helps debug path info matching by tracing the match.\n *\n * @author Fabien Potencier \n */\nclass TraceableUrlMatcher extends UrlMatcher\n{\n public const ROUTE_DOES_NOT_MATCH = 0;\n public cons", "suffix": "info);\n } catch (ExceptionInterface) {\n }\n\n return $this->traces;\n }\n\n public function getTracesForRequest(Request $request): array\n {\n $this->request = $request;\n $traces = $this->getTraces($request->getPathInfo", "middle": "t ROUTE_ALMOST_MATCHES = 1;\n public const ROUTE_MATCHES = 2;\n\n protected array $traces;\n\n public function getTraces(string $pathinfo): array\n {\n $this->traces = [];\n\n try {\n $this->match($path", "meta": {"filepath": "src/Symfony/Component/Routing/Matcher/TraceableUrlMatcher.php", "language": "php", "file_size": 6979, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing;\n\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcherInterface;\n\n/**\n * RouterInterface is the interface that all Router classes must implement.\n *\n * This interface is the concatenation of UrlMatcherInterface and UrlGeneratorInterface.\n *\n * @auth", "suffix": "ce RouterInterface extends UrlMatcherInterface, UrlGeneratorInterface\n{\n /**\n * Gets the RouteCollection instance associated with this Router.\n *\n * WARNING: This method should never be used at runtime as it is SLOW.\n * You migh", "middle": "or Fabien Potencier \n */\ninterfa", "meta": {"filepath": "src/Symfony/Component/Routing/RouterInterface.php", "language": "php", "file_size": 994, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Generator\\Dumper;\n\nuse Symfony\\Component\\Routing\\Exception\\RouteCircularReferenceException;\nuse Symfony\\Component\\Routing\\Exception\\RouteNotFoundException;\nuse Symfony\\Component\\Routing\\Matcher\\Dumper\\CompiledUrlMatcherDumper;\n\n/**\n * CompiledUrlGeneratorDumper creates a PHP array to be used with CompiledUrlGenerator.\n *\n * @author Fabien", "suffix": "\n {\n $compiledRoutes = [];\n foreach ($this->getRoutes()->all() as $name => $route) {\n $compiledRoute = $route->compile();\n\n $compiledRoutes[$name] = [\n $compiledRoute->getVariables(),\n $r", "middle": " Potencier \n * @author Tobias Schultze \n * @author Nicolas Grekas \n */\nclass CompiledUrlGeneratorDumper extends GeneratorDumper\n{\n public function getCompiledRoutes(): array", "meta": {"filepath": "src/Symfony/Component/Routing/Generator/Dumper/CompiledUrlGeneratorDumper.php", "language": "php", "file_size": 4267, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\Resource\\GlobResource;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * AttributeDirectoryLoader loads routing information from attributes set\n * on PHP classes and methods.\n *\n * @author Fabien Potencier \n * @author Alexandr", "suffix": "lic function load(mixed $path, ?string $type = null): ?RouteCollection\n {\n if (!is_dir($dir = $this->locator->locate($path))) {\n return parent::supports($path, $type) ? parent::load($path, $type) : new RouteCollection();\n }\n\n ", "middle": "e Daubois \n */\nclass AttributeDirectoryLoader extends AttributeFileLoader\n{\n /**\n * @throws \\InvalidArgumentException When the directory does not exist or its routes cannot be parsed\n */\n pub", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/AttributeDirectoryLoader.php", "language": "php", "file_size": 2630, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\FileLocatorInterface;\nuse Symfony\\Component\\Config\\Loader\\FileLoader;\nuse Symfony\\Component\\Config\\Resource\\ReflectionClassResource;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * AttributeFileLoader loads routing information from attributes set\n * on a PHP class and its methods.\n *\n * @author", "suffix": "cted AttributeClassLoader $loader,\n ) {\n if (!\\function_exists('token_get_all')) {\n throw new \\LogicException('The Tokenizer extension is required for the routing attribute loader.');\n }\n\n parent::__construct($locator);\n ", "middle": " Fabien Potencier \n * @author Alexandre Daubois \n */\nclass AttributeFileLoader extends FileLoader\n{\n public function __construct(\n FileLocatorInterface $locator,\n prote", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/AttributeFileLoader.php", "language": "php", "file_size": 4345, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Psr\\Container\\ContainerInterface;\n\n/**\n * A route loader that executes a service from a PSR-11 container to load the routes.\n *\n * @author Ryan Weaver \n */\nclass ContainerLoader extends ObjectLoader\n{\n public function __construct(\n private ContainerInterface $container,\n ?strin", "suffix": "env);\n }\n\n public function supports(mixed $resource, ?string $type = null): bool\n {\n return 'service' === $type && \\is_string($resource);\n }\n\n protected function getObject(string $id): object\n {\n return $this->container->get", "middle": "g $env = null,\n ) {\n parent::__construct($", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/ContainerLoader.php", "language": "php", "file_size": 929, "cut_index": 606, "middle_length": 52}} {"prefix": "ocalizedRouteTrait;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\Traits\\PrefixTrait;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @internal\n */\ntrait ContentLoaderTrait\n{\n use HostTrait;\n use LocalizedRouteTrait;\n use PrefixTrait;\n\n /**\n * Config keys accepted at the route or import level by {@see validate()}.\n */\n private const AVAILABLE_KEYS = [\n 'resource', 'type', 'prefix', 'path', 'host', 'schemes', 'methods', 'defaults', 'requirements', 'options', 'conditio", "suffix": "ng each entry to {@see parseRoute()} or {@see parseImport()}.\n */\n private function loadContent(RouteCollection $collection, array $config, string $path, string $file): void\n {\n foreach ($config as $name => $config) {\n if (!str_", "middle": "n', 'controller', 'name_prefix', 'trailing_slash_on_root', 'locale', 'format', 'utf8', 'exclude', 'stateless',\n ];\n\n /**\n * Processes a parsed configuration array, handling `when@` filtering\n * before dispatchi", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/ContentLoaderTrait.php", "language": "php", "file_size": 10372, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\Loader\\FileLoader;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * GlobFileLoader loads files from a glob pattern.\n *\n * @author Nicolas Grekas \n */\nclass GlobFileLoader extends ", "suffix": " $collection->addCollection($this->import($path));\n }\n\n $collection->addResource($globResource);\n\n return $collection;\n }\n\n public function supports(mixed $resource, ?string $type = null): bool\n {\n return 'glob' === $t", "middle": "FileLoader\n{\n public function load(mixed $resource, ?string $type = null): mixed\n {\n $collection = new RouteCollection();\n\n foreach ($this->glob($resource, false, $globResource) as $path => $info) {\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/GlobFileLoader.php", "language": "php", "file_size": 1010, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\FileLocatorInterface;\nuse Symfony\\Component\\Config\\Loader\\DirectoryAwareLoaderInterface;\nuse Symfony\\Component\\Config\\Loader\\Loader;\nuse Symfony\\Component\\Config\\Resource\\DirectoryResource;\nuse Symfony\\Component\\Routing\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Routing\\RouteCollection;", "suffix": "{\n private ?string $currentDirectory = null;\n\n public function __construct(\n private readonly FileLocatorInterface $locator,\n ) {\n // PSR-4 directory loader has no env-aware logic, so we drop the $env constructor parameter.\n p", "middle": "\n\n/**\n * A loader that discovers controller classes in a directory that follows PSR-4.\n *\n * @author Alexander M. Turek \n */\nfinal class Psr4DirectoryLoader extends Loader implements DirectoryAwareLoaderInterface\n", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Psr4DirectoryLoader.php", "language": "php", "file_size": 3876, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Routing\\Alias;\n\nclass AliasConfigurator\n{\n public function __construct(\n private Alias $alias,\n ) {\n }\n\n ", "suffix": " version of the package that introduced the deprecation\n * @param string $message The deprecation message to use\n *\n * @return $this\n *\n * @throws InvalidArgumentException when the message template is invalid\n */\n public function", "middle": " /**\n * Whether this alias is deprecated, that means it should not be called anymore.\n *\n * @param string $package The name of the composer package that is triggering the deprecation\n * @param string $version The", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/AliasConfigurator.php", "language": "php", "file_size": 1177, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator;\n\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @author Nicolas Grekas \n */\nclass CollectionConfigurator\n{\n use Traits\\AddTrait;\n use Traits\\HostTrait;\n use Traits\\PrefixTrait;\n use Traits\\RouteTrait;\n\n private string|array|null $host = null;\n ", "suffix": "ray $parentPrefixes = null,\n ) {\n $this->name = $name;\n $this->collection = new RouteCollection();\n $this->route = new Route('');\n }\n\n public function __serialize(): array\n {\n throw new \\BadMethodCallException('Canno", "middle": " private bool $trailingSlashOnRoot = true;\n\n public function __construct(\n private RouteCollection $parent,\n string $name,\n private ?self $parentConfigurator = null, // for GC control\n private ?ar", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/CollectionConfigurator.php", "language": "php", "file_size": 4005, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator;\n\n// For the phpdoc to remain compatible with the generation of per-app Routes class,\n// this file should have no \"use\" statements: all symbols referenced by\n// the phpdoc need to be in the current namespace or be root-scoped.\n\n/**\n * This class provides array-shapes f", "suffix": "> [\n * 'resource' => 'routing.controllers',\n * ],\n * ]);\n * ```\n *\n * @psalm-type RouteConfig = array{\n * path: string|array,\n * controller?: string,\n * methods?: string|list,\n * requiremen", "middle": "or configuring the routes of an application.\n *\n * Example:\n *\n * ```php\n * // config/routes.php\n * namespace Symfony\\Component\\Routing\\Loader\\Configurator;\n *\n * return Routes::config([\n * 'controllers' =", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/RoutesReference.php", "language": "php", "file_size": 2472, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\AliasConfigurator;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\CollectionConfigurator;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\RouteConfigurator;\nuse Symfony\\Component\\", "suffix": " = null;\n\n /**\n * Adds a route.\n *\n * @param string|array $path the path, or the localized paths of the route\n */\n public function add(string $name, string|array $path): RouteConfigurator\n {\n $parentConfigurator = $this inst", "middle": "Routing\\RouteCollection;\n\n/**\n * @author Nicolas Grekas \n */\ntrait AddTrait\n{\n use LocalizedRouteTrait;\n\n protected RouteCollection $collection;\n protected string $name = '';\n protected ?array $prefixes", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/Traits/AddTrait.php", "language": "php", "file_size": 1797, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @internal\n *\n * @author Nicolas Grekas \n */\ntrait PrefixTrait\n{\n final protected function addPrefix(RouteCollection $routes, string|array $prefix, boo", "suffix": "es = [];\n foreach ($routes->getAliases() as $name => $alias) {\n $aliases[$alias->getId()][] = $name;\n }\n foreach ($routes->all() as $name => $route) {\n if (null === $locale = $route->getDefault", "middle": "l $trailingSlashOnRoot): void\n {\n if (\\is_array($prefix)) {\n foreach ($prefix as $locale => $localePrefix) {\n $prefix[$locale] = trim(trim($localePrefix), '/');\n }\n $alias", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/Traits/PrefixTrait.php", "language": "php", "file_size": 3019, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @internal\n *\n * @author Nicolas Grekas \n * @author Jules Pietri \n */\ntrait LocalizedRouteTrait\n{\n /**\n * Creates one or many r", "suffix": "fix = '', ?array $prefixes = null): RouteCollection\n {\n $paths = [];\n\n $routes = new RouteCollection();\n\n if (\\is_array($path)) {\n if (null === $prefixes) {\n $paths = $path;\n } elseif ($missing =", "middle": "outes.\n *\n * @param string|array $path the path, or the localized paths of the route\n */\n final protected function createLocalizedRoute(RouteCollection $collection, string $name, string|array $path, string $namePre", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/Traits/LocalizedRouteTrait.php", "language": "php", "file_size": 2549, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\RequestContext;\n\nclass RequestContextTest extends TestCase\n{\n public function testConstruct()\n {\n $requestContext = new RequestContext(\n 'foo',\n 'post',\n 'foo.bar',\n 'HTTPS',\n 8080,\n 444,\n '/ba", "suffix": "od());\n $this->assertEquals('foo.bar', $requestContext->getHost());\n $this->assertEquals('https', $requestContext->getScheme());\n $this->assertSame(8080, $requestContext->getHttpPort());\n $this->assertSame(444, $requestContext->", "middle": "z',\n 'bar=foobar',\n [\n 'foo' => 'bar',\n ]\n );\n\n $this->assertEquals('foo', $requestContext->getBaseUrl());\n $this->assertEquals('POST', $requestContext->getMeth", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/RequestContextTest.php", "language": "php", "file_size": 8728, "cut_index": 716, "middle_length": 229}} {"prefix": "\\Component\\Routing\\RouteCompiler;\n\nclass RouteCompilerTest extends TestCase\n{\n #[DataProvider('provideCompileData')]\n public function testCompile($name, $arguments, $prefix, $regex, $variables, $tokens)\n {\n $r = new \\ReflectionClass(Route::class);\n $route = $r->newInstanceArgs($arguments);\n\n $compiled = $route->compile();\n $this->assertEquals($prefix, $compiled->getStaticPrefix(), $name.' (static prefix)');\n $this->assertEquals($regex, $compiled->getRegex(), $name", "suffix": "pileData()\n {\n return [\n [\n 'Static route',\n ['/foo'],\n '/foo', '{^/foo$}sD', [], [\n ['text', '/foo'],\n ],\n ],\n\n [\n 'Ro", "middle": ".' (regex)');\n $this->assertEquals($variables, $compiled->getVariables(), $name.' (variables)');\n $this->assertEquals($tokens, $compiled->getTokens(), $name.' (tokens)');\n }\n\n public static function provideCom", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/RouteCompilerTest.php", "language": "php", "file_size": 14672, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Generator;\n\nuse Symfony\\Component\\Routing\\Exception\\InvalidParameterException;\nuse Symfony\\Component\\Routing\\Exception\\MissingMandatoryParametersException;\nuse Symfony\\Component\\Routing\\Exception\\RouteNotFoundException;\nuse Symfony\\Component\\Routing\\RequestContextAwareInterface;\n\n/**\n * UrlGeneratorInterface is the interface that all URL ", "suffix": " of \"URI\" as this is more common in web applications\n * and we do not need to distinguish them as the difference is mostly semantical and\n * less technical. Generating URIs, i.e. representation-independent resource identifiers,\n * is also possible.\n *\n * @", "middle": "generator classes must implement.\n *\n * The constants in this interface define the different types of resource references that\n * are declared in RFC 3986: http://tools.ietf.org/html/rfc3986\n * We are using the term \"URL\" instead", "meta": {"filepath": "src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php", "language": "php", "file_size": 3468, "cut_index": 614, "middle_length": 229}} {"prefix": "Component\\Config\\Resource\\ReflectionClassResource;\nuse Symfony\\Component\\Routing\\Attribute\\DeprecatedAlias;\nuse Symfony\\Component\\Routing\\Attribute\\Route as RouteAttribute;\nuse Symfony\\Component\\Routing\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Routing\\Exception\\LogicException;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * AttributeClassLoader loads routing information from a PHP class and its methods.\n *\n * You need to define an implementation f", "suffix": "rs),\n * and on each method.\n *\n * The #[Route] attribute main value is the route path. The attribute also\n * recognizes several parameters: requirements, options, defaults, schemes,\n * methods, host, and name. The name parameter is mandatory.\n * Here is an", "middle": "or the configureRoute() method. Most of the\n * time, this method should define some PHP callable to be called for the route\n * (a controller in MVC speak).\n *\n * The #[Route] attribute can be set on the class (for global paramete", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/AttributeClassLoader.php", "language": "php", "file_size": 14495, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\Loader\\Loader;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * Loads routes from a list of tagged classes by delegating to the attribute class loader.\n *\n * @author Nicolas Grekas \n */", "suffix": "(mixed $resource, ?string $type = null): RouteCollection\n {\n $collection = new RouteCollection();\n\n foreach ($this->taggedClasses as $class) {\n $collection->addCollection($this->import($class, 'attribute'));\n }\n\n r", "middle": "\nfinal class AttributeServicesLoader extends Loader\n{\n /**\n * @param class-string[] $taggedClasses\n */\n public function __construct(\n private array $taggedClasses = [],\n ) {\n }\n\n public function load", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/AttributeServicesLoader.php", "language": "php", "file_size": 1169, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\Loader\\Loader;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * A route loader that calls a method on an object to load the routes.\n *\n * @author Ryan Weaver \n */\nabstra", "suffix": "d.\n */\n abstract protected function getObject(string $id): object;\n\n /**\n * Calls the object method that will load the routes.\n */\n public function load(mixed $resource, ?string $type = null): RouteCollection\n {\n if (!preg_ma", "middle": "ct class ObjectLoader extends Loader\n{\n /**\n * Returns the object that the method will be called on to load routes.\n *\n * For example, if your application uses a service container,\n * the $id may be a service i", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/ObjectLoader.php", "language": "php", "file_size": 2663, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\Loader\\FileLoader;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Component\\Yaml\\Parser as YamlParser;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * YamlFileLoader loads Yaml routing files.\n", "suffix": " as doParseRoute;\n validate as doValidate;\n }\n\n private YamlParser $yamlParser;\n\n /**\n * @throws \\InvalidArgumentException When a route can't be parsed because YAML is invalid\n */\n public function load(mixed $file, ?string $type ", "middle": " *\n * @author Fabien Potencier \n * @author Tobias Schultze \n */\nclass YamlFileLoader extends FileLoader\n{\n use ContentLoaderTrait {\n parseImport as doParseImport;\n parseRoute", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/YamlFileLoader.php", "language": "php", "file_size": 3439, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator;\n\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @author Nicolas Grekas \n */\nclass RouteConfigurator\n{\n use Traits\\AddTrait;\n use Traits\\HostTrait;\n use Traits\\RouteTrait;\n\n public function __con", "suffix": ") {\n $this->collection = $collection;\n $this->route = $route;\n $this->name = $name;\n $this->prefixes = $prefixes;\n }\n\n /**\n * Sets the host to use for all child routes.\n *\n * @param string|array $host the host,", "middle": "struct(\n RouteCollection $collection,\n RouteCollection $route,\n string $name = '',\n protected ?CollectionConfigurator $parentConfigurator = null, // for GC control\n ?array $prefixes = null,\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/RouteConfigurator.php", "language": "php", "file_size": 1486, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @internal\n */\ntrait HostTrait\n{\n final protected function addHost(RouteCollection $routes, string|array $hosts): void\n {\n if (!$hosts || !\\is_array($hosts)) {\n ", "suffix": "etPriority($name) ?? 0;\n $routes->remove($name);\n foreach ($hosts as $locale => $host) {\n $localizedRoute = clone $route;\n $localizedRoute->setDefault('_locale', $locale);\n ", "middle": " $routes->setHost($hosts ?: '');\n\n return;\n }\n\n foreach ($routes->all() as $name => $route) {\n if (null === $locale = $route->getDefault('_locale')) {\n $priority = $routes->g", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/Traits/HostTrait.php", "language": "php", "file_size": 1790, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Routing\\CompiledRoute;\n\nclass CompiledRouteTestToStringGadget\n{\n public static bool $fired = false;\n\n public function __toString(): string\n {\n self::$fired = true;\n", "suffix": "s->assertEquals('prefix', $compiled->getStaticPrefix(), '__construct() takes a static prefix as its second argument');\n $this->assertEquals('regex', $compiled->getRegex(), '__construct() takes a regexp as its third argument');\n $this->assertE", "middle": "\n return '';\n }\n}\n\nclass CompiledRouteTest extends TestCase\n{\n public function testAccessors()\n {\n $compiled = new CompiledRoute('prefix', 'regex', ['tokens'], [], null, [], [], ['variables']);\n $thi", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/CompiledRouteTest.php", "language": "php", "file_size": 2575, "cut_index": 563, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Generator\\Dumper;\n\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * GeneratorDumperInterface is the interface that all generator dumper classes must implement.\n *\n * @author Fabien Potencier \n */\ninterface GeneratorDumperInterface\n{\n ", "suffix": "sentation of executable code\n * that can then be used to generate a URL of such a route.\n */\n public function dump(array $options = []): string;\n\n /**\n * Gets the routes to dump.\n */\n public function getRoutes(): RouteCollection;\n}", "middle": " /**\n * Dumps a set of routes to a string repre", "meta": {"filepath": "src/Symfony/Component/Routing/Generator/Dumper/GeneratorDumperInterface.php", "language": "php", "file_size": 844, "cut_index": 535, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\Loader\\Loader;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * ClosureLoader loads routes from a PHP closure.\n *\n * The Closure must return a RouteCollection instance.\n *\n * @author Fabien Potencier \n */\nclass ClosureLoader extends Loader\n{\n /**\n * Loads a Clo", "suffix": "e, ?string $type = null): RouteCollection\n {\n return $closure($this->env);\n }\n\n public function supports(mixed $resource, ?string $type = null): bool\n {\n return $resource instanceof \\Closure && (!$type || 'closure' === $type);\n ", "middle": "sure.\n */\n public function load(mixed $closur", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/ClosureLoader.php", "language": "php", "file_size": 919, "cut_index": 606, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\Loader\\FileLoader;\nuse Symfony\\Component\\Config\\Resource\\DirectoryResource;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass DirectoryLoader extends FileLoader\n{\n public function load(mixed $file, ?string", "suffix": " if ('.' !== $dir[0]) {\n $this->setCurrentDir($path);\n $subPath = $path.'/'.$dir;\n $subType = null;\n\n if (is_dir($subPath)) {\n $subPath .= '/';\n $s", "middle": " $type = null): mixed\n {\n $path = $this->locator->locate($file);\n\n $collection = new RouteCollection();\n $collection->addResource(new DirectoryResource($path));\n\n foreach (scandir($path) as $dir) {\n", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/DirectoryLoader.php", "language": "php", "file_size": 1466, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator;\n\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @author Nicolas Grekas \n */\nclass ImportConfigurator\n{\n use Traits\\HostTrait;\n use Traits\\PrefixTrait;\n use Traits\\RouteTrait;\n\n public function __construct(\n ", "suffix": "CLASS__);\n }\n\n public function __unserialize(array $data): void\n {\n throw new \\BadMethodCallException('Cannot unserialize '.__CLASS__);\n }\n\n public function __destruct()\n {\n $this->parent->addCollection($this->route);\n }\n", "middle": " private RouteCollection $parent,\n RouteCollection $route,\n ) {\n $this->route = $route;\n }\n\n public function __serialize(): array\n {\n throw new \\BadMethodCallException('Cannot serialize '.__", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/ImportConfigurator.php", "language": "php", "file_size": 1980, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\ntrait RouteTrait\n{\n protected RouteCollection|Route $route;\n\n /**\n * Adds defaults.\n *\n * @return $this\n */\n final public function defaults(array $defaults): static\n {\n $this->route->addDefau", "suffix": "requirements);\n\n return $this;\n }\n\n /**\n * Adds options.\n *\n * @return $this\n */\n final public function options(array $options): static\n {\n $this->route->addOptions($options);\n\n return $this;\n }\n\n /**\n", "middle": "lts($defaults);\n\n return $this;\n }\n\n /**\n * Adds requirements.\n *\n * @return $this\n */\n final public function requirements(array $requirements): static\n {\n $this->route->addRequirements($", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/Traits/RouteTrait.php", "language": "php", "file_size": 3580, "cut_index": 614, "middle_length": 229}} {"prefix": "n new class {\n public function __invoke(RoutingConfigurator $routes)\n {\n $routes\n ->collection()\n ->add('foo', '/foo')\n ->condition('abc')\n ->options(['utf8' => true])\n ->add('buz', 'zub')\n ->controller('foo:act')\n ->stateless(true)\n ->add('controller_class', '/controller')\n ->controller(['Acme\\MyApp\\MyController', 'myAction']);\n\n $routes->import('php_dsl_sub.php')\n ->prefix('/su", "suffix": " $routes->import('php_dsl_sub.php')\n ->namePrefix('z_')\n ->prefix('/zub');\n\n $routes->import('php_dsl_sub_root.php')\n ->prefix('/bus', false);\n\n $routes->add('ouf', '/ouf')\n ->schemes(['https']", "middle": "b')\n ->requirements(['id' => '\\d+']);\n\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/php_object_dsl.php", "language": "php", "file_size": 969, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Matcher;\n\nuse Symfony\\Component\\Routing\\Matcher\\CompiledUrlMatcher;\nuse Symfony\\Component\\Routing\\Matcher\\Dumper\\CompiledUrlMatcherDumper;\nuse Symfony\\Component\\Routing\\Matcher\\RedirectableUrlMatcherInterface;\nuse Symfony\\Component\\Routing\\RequestContext;\nu", "suffix": "k = false)\n {\n $dumper = new CompiledUrlMatcherDumper($routes);\n $compiledRoutes = $dumper->getCompiledRoutes();\n\n if (!$mock) {\n return new TestCompiledRedirectableUrlMatcher($compiledRoutes, $context ?? new RequestConte", "middle": "se Symfony\\Component\\Routing\\RouteCollection;\n\nclass CompiledRedirectableUrlMatcherTest extends RedirectableUrlMatcherTest\n{\n protected function getUrlMatcher(RouteCollection $routes, ?RequestContext $context = null, bool $moc", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Matcher/CompiledRedirectableUrlMatcherTest.php", "language": "php", "file_size": 1515, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Matcher;\n\nuse Symfony\\Component\\Routing\\Matcher\\CompiledUrlMatcher;\nuse Symfony\\Component\\Routing\\Matcher\\Dumper\\CompiledUrlMatcherDumper;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcher;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\", "suffix": " $collection->add('static_host_route', new Route('/test', [], [], [], 'API.example.com'));\n\n $context = new RequestContext('/test', 'GET', 'api.example.com');\n $matcher = new UrlMatcher($collection, $context);\n\n $result = $matcher->mat", "middle": "Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass CompiledUrlMatcherTest extends UrlMatcherTest\n{\n public function testStaticHostIsCaseInsensitive()\n {\n $collection = new RouteCollection();\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Matcher/CompiledUrlMatcherTest.php", "language": "php", "file_size": 1806, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Matcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\Routing\\Matcher\\ExpressionLanguageProvider;\nuse Symfo", "suffix": " $functionProvider = new ServiceLocator([\n 'env' => static fn () => static fn (string $arg) => [\n 'APP_ENV' => 'test',\n 'PHP_VERSION' => '7.2',\n ][$arg] ?? null,\n 'sum' => static fn () => ", "middle": "ny\\Component\\Routing\\RequestContext;\n\nclass ExpressionLanguageProviderTest extends TestCase\n{\n private RequestContext $context;\n private ExpressionLanguage $expressionLanguage;\n\n protected function setUp(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Matcher/ExpressionLanguageProviderTest.php", "language": "php", "file_size": 2552, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Matcher;\n\nuse Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException;\nuse Symfony\\Component\\Routing\\Matcher\\RedirectableUrlMatcher;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass RedirectableUrlMatcherTest extends UrlMatcherTest\n{\n public function testMissingTrailingSlash()\n {\n $coll = new RouteCollection();\n $coll->a", "suffix": " testExtraTrailingSlash()\n {\n $coll = new RouteCollection();\n $coll->add('foo', new Route('/foo'));\n\n $matcher = $this->getUrlMatcher($coll, null, true);\n $matcher->expects($this->once())->method('redirect')->willReturn([]);\n", "middle": "dd('foo', new Route('/foo/'));\n\n $matcher = $this->getUrlMatcher($coll, null, true);\n $matcher->expects($this->once())->method('redirect')->willReturn([]);\n $matcher->match('/foo');\n }\n\n public function", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php", "language": "php", "file_size": 8399, "cut_index": 716, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Fixtures\\Psr4Controllers\\SubNamespace\\EvenDeeperNamespace;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Routing\\Attribute\\Route;\n\n#[Route('/my/other/route', name: 'my_other_controller_', methods: ['PUT'])]\nfinal class MyOthe", "suffix": " public function firstAction(): Response\n {\n return new Response('', Response::HTTP_NO_CONTENT);\n }\n\n #[Route('/second', name: 'two')]\n public function secondAction(): Response\n {\n return new Response('', Response::HTTP_NO_CON", "middle": "rController\n{\n #[Route('/first', name: 'one')]\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/Psr4Controllers/SubNamespace/EvenDeeperNamespace/MyOtherController.php", "language": "php", "file_size": 852, "cut_index": 529, "middle_length": 52}} {"prefix": "pace Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures;\n\nuse Symfony\\Component\\Routing\\Attribute\\Route;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributedClasses\\BarClass;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\Enum\\TestIntBackedEnum;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\Enum\\TestStringBackedEnum;\n\nclass DefaultValueController\n{\n #[Route(path: '/{default}/path', name: 'action')]\n public function action($default = 'value')\n {\n }\n\n #[\n Route(path: '/hello/{nam", "suffix": "e: 'string_enum_action')]\n public function stringEnumAction(TestStringBackedEnum $default = TestStringBackedEnum::Diamonds)\n {\n }\n\n #[Route(path: '/enum/{default<\\d+>}', name: 'int_enum_action')]\n public function intEnumAction(TestIntBackedE", "middle": "e<\\w+>}', name: 'hello_without_default'),\n Route(path: 'hello/{name<\\w+>?Symfony}', name: 'hello_with_default'),\n ]\n public function hello(string $name = 'World')\n {\n }\n\n #[Route(path: '/enum/{default}', nam", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/DefaultValueController.php", "language": "php", "file_size": 1436, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures;\n\nuse Symfony\\Component\\Routing\\Attribute\\Route;\n\n#[Route(path: '/defaults', methods: ['GET'], schemes: ['https'], locale: 'g_locale', format: 'g_format')]\nclass GlobalDefaultsClass\n{\n #[Route(path: '/s", "suffix": "\n\n #[Route(path: '/redundant-method', name: 'redundant_method', methods: ['GET'])]\n public function redundantMethod()\n {\n }\n\n #[Route(path: '/redundant-scheme', name: 'redundant_scheme', schemes: ['https'])]\n public function redundantSch", "middle": "pecific-locale', name: 'specific_locale', locale: 's_locale')]\n public function locale()\n {\n }\n\n #[Route(path: '/specific-format', name: 'specific_format', format: 's_format')]\n public function format()\n {\n }", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/GlobalDefaultsClass.php", "language": "php", "file_size": 1017, "cut_index": 512, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures;\n\nuse Symfony\\Component\\Routing\\Attribute\\DeprecatedAlias;\nuse Symfony\\Component\\Routing\\Attribute\\Route;\n\nclass MultipleDeprecatedAliasRouteController\n{\n #[Route('/path', name: 'action_with_multiple_deprecated_alias', ", "suffix": "_deprecated', 'MyFirstBundleFixture', '1.0'),\n new DeprecatedAlias('my_second_alias_deprecated', 'MySecondBundleFixture', '2.0'),\n new DeprecatedAlias('my_third_alias_deprecated', 'SurprisedThirdBundleFixture', '3.0'),\n ])]\n public func", "middle": "alias: [\n new DeprecatedAlias('my_first_alias", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/MultipleDeprecatedAliasRouteController.php", "language": "php", "file_size": 865, "cut_index": 529, "middle_length": 52}} {"prefix": "[^/]++)/efe937(*:3171)'\n .'|575e/([^/]++)/([^/]++)/([^/]++)/ef575e(*:3218)'\n .')'\n .'|7b24b/([^/]++)/([^/]++)/([^/]++)/e7b24b(*:3267)'\n .'|836d8/([^/]++)/([^/]++)/([^/]++)/e836d8(*:3315)'\n .')'\n .'|/a(?'\n .'|8(?'\n .'|7ff6/([^/]++)/([^/]++)/([^/]++)/a87ff6(*:3372)'\n .'|baa5/([^/]++)/([^/]++)/([^/]++)/a8baa5(*:3419)'\n ", "suffix": "\n .'|a(?'\n .'|b323/([^/]++)/([^/]++)/([^/]++)/aab323(*:3612)'\n .'|942a/([^/]++)/([^/]++)/([^/]++)/aa942a(*:3659)'\n .')'\n .'|5(?'\n ", "middle": " .'|f15e/([^/]++)/([^/]++)/([^/]++)/a8f15e(*:3466)'\n .'|c88a/([^/]++)/([^/]++)/([^/]++)/a8c88a(*:3513)'\n .'|abb4/([^/]++)/([^/]++)/([^/]++)/a8abb4(*:3560)'\n .')'", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher10.php", "language": "php", "file_size": 187630, "cut_index": 7068, "middle_length": 229}} {"prefix": "null, false, false, null]],\n '/test/baz.html' => [[['_route' => 'baz2'], null, null, null, false, false, null]],\n '/test/baz3' => [[['_route' => 'baz3'], null, null, null, true, false, null]],\n '/foofoo' => [[['_route' => 'foofoo', 'def' => 'test'], null, null, null, false, false, null]],\n '/spa ce' => [[['_route' => 'space'], null, null, null, false, false, null]],\n '/multi/new' => [[['_route' => 'overridden2'], null, null, null, false, false, null]],\n '/multi/hey'", "suffix": "lse, false, null]],\n '/c2/route2' => [[['_route' => 'route2'], 'a.example.com', null, null, false, false, null]],\n '/route4' => [[['_route' => 'route4'], 'a.example.com', null, null, false, false, null]],\n '/c2/route3' => [[['_route' =", "middle": " => [[['_route' => 'hey'], null, null, null, true, false, null]],\n '/ababa' => [[['_route' => 'ababa'], null, null, null, false, false, null]],\n '/route1' => [[['_route' => 'route1'], 'a.example.com', null, null, fa", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher2.php", "language": "php", "file_size": 5826, "cut_index": 716, "middle_length": 229}} {"prefix": "ing Component.\n */\n\nreturn [\n false, // $matchHost\n [ // $staticRoutes\n '/just_head' => [[['_route' => 'just_head'], null, ['HEAD' => 0], null, false, false, null]],\n '/head_and_get' => [[['_route' => 'head_and_get'], null, ['HEAD' => 0, 'GET' => 1], null, false, false, null]],\n '/get_and_head' => [[['_route' => 'get_and_head'], null, ['GET' => 0, 'HEAD' => 1], null, false, false, null]],\n '/post_and_head' => [[['_route' => 'post_and_head'], null, ['POST' => 0, 'HEAD' => 1]", "suffix": "' => [\n [['_route' => 'put_and_post'], null, ['PUT' => 0, 'POST' => 1], null, false, false, null],\n [['_route' => 'put_and_get_and_head'], null, ['PUT' => 0, 'GET' => 1, 'HEAD' => 2], null, false, false, null],\n ],\n ],\n [", "middle": ", null, false, false, null]],\n '/put_and_post", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher4.php", "language": "php", "file_size": 976, "cut_index": 582, "middle_length": 52}} {"prefix": "by the Symfony Routing Component.\n */\n\nreturn [\n false, // $matchHost\n [ // $staticRoutes\n '/trailing/simple/no-methods' => [[['_route' => 'simple_trailing_slash_no_methods'], null, null, null, true, false, null]],\n '/trailing/simple/get-method' => [[['_route' => 'simple_trailing_slash_GET_method'], null, ['GET' => 0], null, true, false, null]],\n '/trailing/simple/head-method' => [[['_route' => 'simple_trailing_slash_HEAD_method'], null, ['HEAD' => 0], null, true, false, null]],\n ", "suffix": "no_methods'], null, null, null, false, false, null]],\n '/not-trailing/simple/get-method' => [[['_route' => 'simple_not_trailing_slash_GET_method'], null, ['GET' => 0], null, false, false, null]],\n '/not-trailing/simple/head-method' => [[['_ro", "middle": " '/trailing/simple/post-method' => [[['_route' => 'simple_trailing_slash_POST_method'], null, ['POST' => 0], null, true, false, null]],\n '/not-trailing/simple/no-methods' => [[['_route' => 'simple_not_trailing_slash_", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher6.php", "language": "php", "file_size": 3017, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader\\Configurator;\n\nuse Symfony\\Component\\Routing\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @author Nicolas Grekas \n */\nclass RoutingConfigurator\n{\n use Traits\\AddTrait;\n\n public function __construct(\n RouteCollection $colle", "suffix": "tring[]|null $exclude Glob patterns to exclude from the import\n */\n final public function import(string|array $resource, ?string $type = null, bool $ignoreErrors = false, string|array|null $exclude = null): ImportConfigurator\n {\n $this->lo", "middle": "ction,\n private PhpFileLoader $loader,\n private string $path,\n private string $file,\n private ?string $env = null,\n ) {\n $this->collection = $collection;\n }\n\n /**\n * @param string|s", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/Configurator/RoutingConfigurator.php", "language": "php", "file_size": 2086, "cut_index": 563, "middle_length": 229}} {"prefix": "ctor()\n {\n $route = new Route('/{foo}', ['foo' => 'bar'], ['foo' => '\\d+'], ['foo' => 'bar'], '{locale}.example.com');\n $this->assertEquals('/{foo}', $route->getPath(), '__construct() takes a path as its first argument');\n $this->assertEquals(['foo' => 'bar'], $route->getDefaults(), '__construct() takes defaults as its second argument');\n $this->assertEquals(['foo' => '\\d+'], $route->getRequirements(), '__construct() takes requirements as its third argument');\n $this->a", "suffix": ");\n\n $route = new Route('/', [], [], [], '', ['Https'], ['POST', 'put'], 'context.getMethod() == \"GET\"');\n $this->assertEquals(['https'], $route->getSchemes(), '__construct() takes schemes as its sixth argument and lowercases it');\n $t", "middle": "ssertEquals('bar', $route->getOption('foo'), '__construct() takes options as its fourth argument');\n $this->assertEquals('{locale}.example.com', $route->getHost(), '__construct() takes a host pattern as its fifth argument'", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/RouteTest.php", "language": "php", "file_size": 20756, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Generator\\CompiledUrlGenerator;\nuse Symfony\\Component\\Routing\\Generator\\UrlGenerator;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\Matcher\\RequestMatcherInterface;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcher;\nuse Symfony", "suffix": "(): void\n {\n $this->cacheDir = tempnam(sys_get_temp_dir(), 'sf_router_');\n unlink($this->cacheDir);\n mkdir($this->cacheDir);\n }\n\n protected function tearDown(): void\n {\n if (is_dir($this->cacheDir)) {\n arr", "middle": "\\Component\\Routing\\Matcher\\UrlMatcherInterface;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Routing\\Router;\n\nclass RouterTest extends TestCase\n{\n private string $cacheDir;\n\n protected function setUp", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/RouterTest.php", "language": "php", "file_size": 7513, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Routing\\Loader\\AttributeClassLoader;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nfinal class TraceableAttributeClassLoader extends AttributeClassLoader\n{\n /", "suffix": "printf('Expected string, got \"%s\"', get_debug_type($class)));\n }\n\n $this->foundClasses[] = $class;\n\n return parent::load($class, $type);\n }\n\n protected function configureRoute(Route $route, \\ReflectionClass $class, \\ReflectionMet", "middle": "** @var list */\n public array $foundClasses = [];\n\n public function load(mixed $class, ?string $type = null): RouteCollection\n {\n if (!is_string($class)) {\n throw new \\InvalidArgumentException(s", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/TraceableAttributeClassLoader.php", "language": "php", "file_size": 1045, "cut_index": 513, "middle_length": 229}} {"prefix": "source;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nreturn function (string $format) {\n $expectedRoutes = new RouteCollection();\n $expectedRoutes->add('imported.en', $route = new Route('/example'));\n $route->setHost('www.example.com');\n $route->setRequirement('_locale', 'en');\n $route->setDefault('_locale', 'en');\n $route->setDefault('_canonical_route', 'imported');\n $route->setDefault('_controller', 'ImportedController::someAction');\n $expect", "suffix": "', 'imported');\n $route->setDefault('_controller', 'ImportedController::someAction');\n $expectedRoutes->add('imported_not_localized.en', $route = new Route('/here'));\n $route->setHost('www.example.com');\n $route->setRequirement('_locale', 'en')", "middle": "edRoutes->add('imported.nl', $route = new Route('/voorbeeld'));\n $route->setHost('www.example.nl');\n $route->setRequirement('_locale', 'nl');\n $route->setDefault('_locale', 'nl');\n $route->setDefault('_canonical_route", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/import-with-host-expected-collection.php", "language": "php", "file_size": 2500, "cut_index": 563, "middle_length": 229}} {"prefix": "\\Resource\\FileResource;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nreturn static function (string $format) {\n $expectedRoutes = new RouteCollection();\n\n $expectedRoutes->add('route', new Route('/hello'));\n $expectedRoutes->addAlias('alias', 'route');\n $expectedRoutes->addAlias('deprecated', 'route')\n ->setDeprecated('foo/bar', '1.0.0', '');\n $expectedRoutes->addAlias('deprecated-with-custom-message', 'route')\n ->setDeprecated('foo/bar', ", "suffix": "dAlias('deep', 'alias');\n $expectedRoutes->addAlias('overrided', 'route');\n\n $expectedRoutes->addResource(new FileResource(__DIR__.\"/alias.$format\"));\n if ('yaml' === $format) {\n $expectedRoutes->addResource(new FileResource(__DIR__.\"/overr", "middle": "'1.0.0', 'foo %alias_id%.');\n $expectedRoutes->ad", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/alias/expected.php", "language": "php", "file_size": 909, "cut_index": 547, "middle_length": 52}} {"prefix": "null, false, false, null]],\n '/test/baz.html' => [[['_route' => 'baz2'], null, null, null, false, false, null]],\n '/test/baz3' => [[['_route' => 'baz3'], null, null, null, true, false, null]],\n '/foofoo' => [[['_route' => 'foofoo', 'def' => 'test'], null, null, null, false, false, null]],\n '/spa ce' => [[['_route' => 'space'], null, null, null, false, false, null]],\n '/multi/new' => [[['_route' => 'overridden2'], null, null, null, false, false, null]],\n '/multi/hey'", "suffix": "lse, false, null]],\n '/c2/route2' => [[['_route' => 'route2'], 'a.example.com', null, null, false, false, null]],\n '/route4' => [[['_route' => 'route4'], 'a.example.com', null, null, false, false, null]],\n '/c2/route3' => [[['_route' =", "middle": " => [[['_route' => 'hey'], null, null, null, true, false, null]],\n '/ababa' => [[['_route' => 'ababa'], null, null, null, false, false, null]],\n '/route1' => [[['_route' => 'route1'], 'a.example.com', null, null, fa", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher1.php", "language": "php", "file_size": 5627, "cut_index": 716, "middle_length": 229}} {"prefix": "* This file has been auto-generated\n * by the Symfony Routing Component.\n */\n\nreturn [\n false, // $matchHost\n [ // $staticRoutes\n ],\n [ // $regexpList\n 0 => '{^(?'\n .'|/abc([^/]++)/(?'\n .'|1(?'\n .'|(*:27)'\n .'|0(?'\n .'|(*:38)'\n .'|0(*:46)'\n .')'\n .')'\n .'|2(?'\n .'|(*:59)'\n ", "suffix": "micRoutes\n 27 => [[['_route' => 'r1'], ['foo'], null, null, false, false, null]],\n 38 => [[['_route' => 'r10'], ['foo'], null, null, false, false, null]],\n 46 => [[['_route' => 'r100'], ['foo'], null, null, false, false, null]],\n ", "middle": " .'|0(?'\n .'|(*:70)'\n .'|0(*:78)'\n .')'\n .')'\n .')'\n .')/?$}sD',\n ],\n [ // $dyna", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher12.php", "language": "php", "file_size": 1360, "cut_index": 524, "middle_length": 229}} {"prefix": "?php\n\n/**\n * This file has been auto-generated\n * by the Symfony Routing Component.\n */\n\nreturn [\n false, // $matchHost\n [ // $staticRoutes\n '/rootprefix/test' => [[['_route' => 'static'], null, null, null, false, false, null]],\n '/with-condition' => [[['_route' => 'with-condition'], null, null, null, false, false, -1]],\n ],\n [ // $regexpList\n 0 => '{^(?'\n .'|/rootprefix/([^/]++)(*:27)'\n .'|/with\\\\-condition/(\\\\d+)(*:56)'\n .')/?$}sD',", "suffix": " [null, null, null, null, false, false, 0],\n ],\n ],\n static function ($condition, $context, $request, $params) { // $checkCondition\n switch ($condition) {\n case -1: return ($context->getMethod() == \"GET\");\n cas", "middle": "\n ],\n [ // $dynamicRoutes\n 27 => [[['_route' => 'dynamic'], ['var'], null, null, false, true, null]],\n 56 => [\n [['_route' => 'with-condition-dynamic'], ['id'], null, null, false, true, -2],\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher3.php", "language": "php", "file_size": 1054, "cut_index": 513, "middle_length": 229}} {"prefix": "eturns a route by name');\n $this->assertNull($collection->get('bar'), '->get() returns null if a route does not exist');\n }\n\n public function testOverriddenRoute()\n {\n $collection = new RouteCollection();\n $collection->add('foo', new Route('/foo'));\n $collection->add('foo', new Route('/foo1'));\n\n $this->assertEquals('/foo1', $collection->get('foo')->getPath());\n }\n\n public function testDeepOverriddenRoute()\n {\n $collection = new RouteCollection();\n", "suffix": "o', new Route('/foo2'));\n\n $collection1->addCollection($collection2);\n $collection->addCollection($collection1);\n\n $this->assertEquals('/foo2', $collection1->get('foo')->getPath());\n $this->assertEquals('/foo2', $collection->get", "middle": " $collection->add('foo', new Route('/foo'));\n\n $collection1 = new RouteCollection();\n $collection1->add('foo', new Route('/foo1'));\n\n $collection2 = new RouteCollection();\n $collection2->add('fo", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/RouteCollectionTest.php", "language": "php", "file_size": 17946, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Routing\\Attribute\\Route;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\FooController;\n\nclass RouteTest extends TestCase\n{\n #", "suffix": "ributes(Route::class)[0]->newInstance();\n\n $this->assertEquals($route->$property, $expectedReturn);\n }\n\n public static function getValidParameters(): iterable\n {\n return [\n ['simplePath', 'path', '/Blog'],\n ['lo", "middle": "[DataProvider('getValidParameters')]\n public function testLoadFromAttribute(string $methodName, string $property, mixed $expectedReturn)\n {\n $route = (new \\ReflectionMethod(FooController::class, $methodName))->getAtt", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Attribute/RouteTest.php", "language": "php", "file_size": 1667, "cut_index": 537, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Routing\\Matcher\\RedirectableUrlMatcherInterface;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcher;\n\n/**\n * @author Fabien Potencier \n */\nclass RedirectableUrlMatcher extends UrlMatcher impl", "suffix": "tableUrlMatcherInterface\n{\n public function redirect(string $path, string $route, ?string $scheme = null): array\n {\n return [\n '_controller' => 'Some controller reference...',\n 'path' => $path,\n 'scheme' => $sc", "middle": "ements Redirec", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/RedirectableUrlMatcher.php", "language": "php", "file_size": 817, "cut_index": 522, "middle_length": 14}} {"prefix": "ymfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nreturn function (string $format) {\n $expectedRoutes = new RouteCollection();\n $expectedRoutes->add('imported.en', $route = new Route('/example'));\n $route->setHost('www.example.com');\n $route->setRequirement('_locale', 'en');\n $route->setDefault('_locale', 'en');\n $route->setDefault('_canonical_route', 'imported');\n $route->setDefault('_controller', 'Import", "suffix": " $route->setDefault('_canonical_route', 'imported');\n $route->setDefault('_controller', 'ImportedController::someAction');\n $expectedRoutes->add('imported_not_localized', $route = new Route('/here'));\n $route->setHost('www.example.com');\n $r", "middle": "edController::someAction');\n $expectedRoutes->add('imported.nl', $route = new Route('/voorbeeld'));\n $route->setHost('www.example.com');\n $route->setRequirement('_locale', 'nl');\n $route->setDefault('_locale', 'nl');\n", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/import-with-single-host-expected-collection.php", "language": "php", "file_size": 1486, "cut_index": 524, "middle_length": 229}} {"prefix": "onent\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nreturn function (string $format) {\n $expectedRoutes = new RouteCollection();\n $expectedRoutes->add('static.en', $route = new Route('/example'));\n $route->setHost('www.example.com');\n $route->setRequirement('_locale', 'en');\n $route->setDefault('_locale', 'en');\n $route->setDefault('_canonical_route', 'static');\n $expectedRoutes->add('static.nl', $route = new Route('/e", "suffix": " $route->setRequirement('_locale', 'nl');\n $route->setDefault('_locale', 'nl');\n $route->setDefault('_canonical_route', 'static');\n\n $expectedRoutes->addResource(new FileResource(__DIR__.\"/route-with-hosts.$format\"));\n\n return $expectedRoutes;", "middle": "xample'));\n $route->setHost('www.example.nl');\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/route-with-hosts-expected-collection.php", "language": "php", "file_size": 847, "cut_index": 535, "middle_length": 52}} {"prefix": "\nnamespace Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures;\n\nuse Symfony\\Component\\Routing\\Attribute\\Route;\n\nclass FooController\n{\n #[Route('/Blog')]\n public function simplePath()\n {\n }\n\n #[Route(['nl' => '/hier', 'en' => '/here'])]\n public function localized()\n {\n }\n\n #[Route(requirements: ['locale' => 'en'])]\n public function requirements()\n {\n }\n\n #[Route(options: ['compiler_class' => 'RouteCompiler'])]\n public function options()\n {\n }\n\n #[Rou", "suffix": " schemes()\n {\n }\n\n #[Route(methods: ['GET', 'POST'])]\n public function methods()\n {\n }\n\n #[Route(host: '{locale}.example.com')]\n public function host()\n {\n }\n\n #[Route(condition: 'context.getMethod() == \\'GET\\'')]\n publi", "middle": "te(name: 'blog_index')]\n public function name()\n {\n }\n\n #[Route(defaults: ['_controller' => 'MyBlogBundle:Blog:index'])]\n public function defaults()\n {\n }\n\n #[Route(schemes: ['https'])]\n public function", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/FooController.php", "language": "php", "file_size": 1141, "cut_index": 518, "middle_length": 229}} {"prefix": "by the Symfony Routing Component.\n */\n\nreturn [\n false, // $matchHost\n [ // $staticRoutes\n ],\n [ // $regexpList\n 0 => '{^(?'\n .'|/(en|fr)/(?'\n .'|admin/post(?'\n .'|(*:32)'\n .'|/(?'\n .'|new(*:46)'\n .'|(\\\\d+)(*:58)'\n .'|(\\\\d+)/edit(*:75)'\n .'|(\\\\d+)/delete(*:94)'\n .')'\n ", "suffix": "|age/([^/]++)(*:154)'\n .'|osts/([^/]++)(*:175)'\n .')'\n .'|comments/(\\\\d+)/new(*:202)'\n .'|search(*:216)'\n .')'\n ", "middle": " .')'\n .'|blog(?'\n .'|(*:110)'\n .'|/(?'\n .'|rss\\\\.xml(*:130)'\n .'|p(?'\n .'", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher11.php", "language": "php", "file_size": 2882, "cut_index": 563, "middle_length": 229}} {"prefix": "by the Symfony Routing Component.\n */\n\nreturn [\n false, // $matchHost\n [ // $staticRoutes\n '/trailing/simple/no-methods' => [[['_route' => 'simple_trailing_slash_no_methods'], null, null, null, true, false, null]],\n '/trailing/simple/get-method' => [[['_route' => 'simple_trailing_slash_GET_method'], null, ['GET' => 0], null, true, false, null]],\n '/trailing/simple/head-method' => [[['_route' => 'simple_trailing_slash_HEAD_method'], null, ['HEAD' => 0], null, true, false, null]],\n ", "suffix": "no_methods'], null, null, null, false, false, null]],\n '/not-trailing/simple/get-method' => [[['_route' => 'simple_not_trailing_slash_GET_method'], null, ['GET' => 0], null, false, false, null]],\n '/not-trailing/simple/head-method' => [[['_ro", "middle": " '/trailing/simple/post-method' => [[['_route' => 'simple_trailing_slash_POST_method'], null, ['POST' => 0], null, true, false, null]],\n '/not-trailing/simple/no-methods' => [[['_route' => 'simple_not_trailing_slash_", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher7.php", "language": "php", "file_size": 3017, "cut_index": 563, "middle_length": 229}} {"prefix": "source;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nreturn function (string $format) {\n $expectedRoutes = new RouteCollection();\n $expectedRoutes->add('imported.en', $route = new Route('/en/example'));\n $route->setHost('www.example.com');\n $route->setRequirement('_locale', 'en');\n $route->setDefault('_locale', 'en');\n $route->setDefault('_canonical_route', 'imported');\n $route->setDefault('_controller', 'ImportedController::someAction');\n $exp", "suffix": "_route', 'imported');\n $route->setDefault('_controller', 'ImportedController::someAction');\n $expectedRoutes->add('imported_not_localized.en', $route = new Route('/en/here'));\n $route->setHost('www.example.com');\n $route->setRequirement('_local", "middle": "ectedRoutes->add('imported.nl', $route = new Route('/nl/voorbeeld'));\n $route->setHost('www.example.nl');\n $route->setRequirement('_locale', 'nl');\n $route->setDefault('_locale', 'nl');\n $route->setDefault('_canonical", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/import-with-locale-and-host-expected-collection.php", "language": "php", "file_size": 2529, "cut_index": 563, "middle_length": 229}} {"prefix": "as been auto-generated\n * by the Symfony Routing Component.\n */\n\nreturn [\n false, // $matchHost\n [ // $staticRoutes\n '/a/11' => [[['_route' => 'a_first'], null, null, null, false, false, null]],\n '/a/22' => [[['_route' => 'a_second'], null, null, null, false, false, null]],\n '/a/333' => [[['_route' => 'a_third'], null, null, null, false, false, null]],\n '/a/44' => [[['_route' => 'a_fourth'], null, null, null, true, false, null]],\n '/a/55' => [[['_route' => 'a_fifth']", "suffix": " '/nested/group/b' => [[['_route' => 'nested_b'], null, null, null, true, false, null]],\n '/nested/group/c' => [[['_route' => 'nested_c'], null, null, null, true, false, null]],\n '/slashed/group' => [[['_route' => 'slashed_a'], null, null, nu", "middle": ", null, null, null, true, false, null]],\n '/a/66' => [[['_route' => 'a_sixth'], null, null, null, true, false, null]],\n '/nested/group/a' => [[['_route' => 'nested_a'], null, null, null, true, false, null]],\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher5.php", "language": "php", "file_size": 1723, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Loader;\n\nuse Symfony\\Component\\Config\\Loader\\FileLoader;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Routing\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\Routes;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\Routes", "suffix": "tance.\n *\n * @author Fabien Potencier \n * @author Nicolas grekas \n * @author Jules Pietri \n */\nclass PhpFileLoader extends FileLoader\n{\n use ContentLoaderTrait;\n\n /**\n * Loads a PHP file.\n ", "middle": "Reference;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * PhpFileLoader loads routes from a PHP file.\n *\n * The file must return a RouteCollection ins", "meta": {"filepath": "src/Symfony/Component/Routing/Loader/PhpFileLoader.php", "language": "php", "file_size": 2983, "cut_index": 563, "middle_length": 229}} {"prefix": "Symfony\\Component\\Routing\\Loader\\Configurator;\n\nreturn function (RoutingConfigurator $routes) {\n $routes\n ->collection()\n ->add('foo', '/foo')\n ->condition('abc')\n ->options(['utf8' => true])\n ->add('buz', 'zub')\n ->controller('foo:act')\n ->stateless(true)\n ->add('controller_class', '/controller')\n ->controller(['Acme\\MyApp\\MyController', 'myAction']);\n\n $routes->import('php_dsl_sub.php')\n ->prefix('/sub')\n ", "suffix": "ort('php_dsl_sub.php')\n ->namePrefix('z_')\n ->prefix('/zub');\n\n $routes->import('php_dsl_sub_root.php')\n ->prefix('/bus', false);\n\n $routes->add('ouf', '/ouf')\n ->schemes(['https'])\n ->methods(['GET'])\n ->def", "middle": " ->requirements(['id' => '\\d+']);\n\n $routes->imp", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/php_dsl.php", "language": "php", "file_size": 860, "cut_index": 529, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Routing\\Loader\\AttributeDirectoryLoader;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributedClasses\\BarClass;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributedClasses\\B", "suffix": "oader;\n\nclass AttributeDirectoryLoaderTest extends TestCase\n{\n private AttributeDirectoryLoader $loader;\n private TraceableAttributeClassLoader $classLoader;\n\n protected function setUp(): void\n {\n $this->classLoader = new TraceableAttrib", "middle": "azClass;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributedClasses\\EncodingClass;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributedClasses\\FooClass;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\TraceableAttributeClassL", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/AttributeDirectoryLoaderTest.php", "language": "php", "file_size": 2722, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console;\n\nuse Symfony\\Component\\Config\\Resource\\ClassExistenceResource;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\AsTargetedValueResolver;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Consol", "suffix": "omponent\\Console\\DependencyInjection\\RemoveEmptyCommandArgumentLocatorsPass;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilde", "middle": "e\\DependencyInjection\\AddConsoleCommandPass;\nuse Symfony\\Component\\Console\\DependencyInjection\\ConsoleArgumentValueResolverPass;\nuse Symfony\\Component\\Console\\DependencyInjection\\RegisterCommandArgumentLocatorsPass;\nuse Symfony\\C", "meta": {"filepath": "src/Symfony/Component/Console/ConsoleBundle.php", "language": "php", "file_size": 4510, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console;\n\nuse Symfony\\Component\\Console\\Event\\ConsoleCommandEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleErrorEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleSignalEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent;\nuse Symfony\\Component\\Console\\Event\\QuestionAnsweredEvent;\n\n", "suffix": " * executed by the console. It also allows you to modify the command, input and output\n * before they are handed to the command.\n *\n * @Event(\"Symfony\\Component\\Console\\Event\\ConsoleCommandEvent\")\n */\n public const COMMAND = 'console.co", "middle": "/**\n * Contains all events dispatched by an Application.\n *\n * @author Francesco Levorato \n */\nfinal class ConsoleEvents\n{\n /**\n * The COMMAND event allows you to attach listeners before any command is\n ", "meta": {"filepath": "src/Symfony/Component/Console/ConsoleEvents.php", "language": "php", "file_size": 2572, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console;\n\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @author Pierre du Plessis \n */\nfinal class Cursor\n{\n /** @var resource */\n private $input;\n\n /**\n * @param resource|null $input\n */\n public function __construct(\n private OutputInterface $output,\n $input = null,\n ) {\n ", "suffix": "x1b[%dA\", $lines));\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function moveDown(int $lines = 1): static\n {\n $this->output->write(\\sprintf(\"\\x1b[%dB\", $lines));\n\n return $this;\n }\n\n /**\n * @retu", "middle": " $this->input = $input ?? (\\defined('STDIN') ? \\STDIN : fopen('php://input', 'r+'));\n }\n\n /**\n * @return $this\n */\n public function moveUp(int $lines = 1): static\n {\n $this->output->write(\\sprintf(\"\\", "meta": {"filepath": "src/Symfony/Component/Console/Cursor.php", "language": "php", "file_size": 3975, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @author Grégoire Pineau \n */\nclass SingleCommandApplication extends Command\n{\n ", "suffix": "on = $version;\n\n return $this;\n }\n\n /**\n * @final\n *\n * @return $this\n */\n public function setAutoExit(bool $autoExit): static\n {\n $this->autoExit = $autoExit;\n\n return $this;\n }\n\n public function run(", "middle": " private string $version = 'UNKNOWN';\n private bool $autoExit = true;\n private bool $running = false;\n\n /**\n * @return $this\n */\n public function setVersion(string $version): static\n {\n $this->versi", "meta": {"filepath": "src/Symfony/Component/Console/SingleCommandApplication.php", "language": "php", "file_size": 1798, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console;\n\nuse Symfony\\Component\\Console\\Output\\AnsiColorMode;\n\nclass Terminal\n{\n public const DEFAULT_COLOR_MODE = AnsiColorMode::Ansi4;\n\n private static ?AnsiColorMode $colorMode = null;\n private static ?int $width = null;\n private static ?int $height = null;\n private static ?bool $stty = null;\n private static ?bool $kittyGraphics = null;\n private static ?bool $iterm2Images = null;\n\n /**\n * About Ansi color types: htt", "suffix": "{\n // Use Cache from previous run (or user forced mode)\n if (null !== self::$colorMode) {\n return self::$colorMode;\n }\n\n // Try with $COLORTERM first\n if (\\is_string($colorterm = getenv('COLORTERM'))) {\n ", "middle": "ps://en.wikipedia.org/wiki/ANSI_escape_code#Colors\n * For more information about true color support with terminals https://github.com/termstandard/colors/.\n */\n public static function getColorMode(): AnsiColorMode\n ", "meta": {"filepath": "src/Symfony/Component/Console/Terminal.php", "language": "php", "file_size": 7980, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Style;\n\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\nuse Symfony\\Component\\Console\\Helper\\ProgressBar;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Decorates output to add console style guid", "suffix": "blic function newLine(int $count = 1): void\n {\n $this->output->write(str_repeat(\\PHP_EOL, $count));\n }\n\n public function createProgressBar(int $max = 0): ProgressBar\n {\n return new ProgressBar($this->output, $max);\n }\n\n publ", "middle": "e helpers.\n *\n * @author Kevin Bond \n */\nabstract class OutputStyle implements OutputInterface, StyleInterface\n{\n public function __construct(\n private OutputInterface $output,\n ) {\n }\n\n pu", "meta": {"filepath": "src/Symfony/Component/Console/Style/OutputStyle.php", "language": "php", "file_size": 2761, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Style;\n\n/**\n * Output style helpers.\n *\n * @author Kevin Bond \n */\ninterface StyleInterface\n{\n /**\n * Formats a command title.\n */\n public function title(string $message): void;\n\n /**\n * Formats a section title.\n */\n public function section", "suffix": "/**\n * Formats a success result bar.\n */\n public function success(string|array $message): void;\n\n /**\n * Formats an error result bar.\n */\n public function error(string|array $message): void;\n\n /**\n * Formats an warning resul", "middle": "(string $message): void;\n\n /**\n * Formats a list.\n */\n public function listing(array $elements): void;\n\n /**\n * Formats informational text.\n */\n public function text(string|array $message): void;\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Style/StyleInterface.php", "language": "php", "file_size": 2542, "cut_index": 563, "middle_length": 229}} {"prefix": "Symfony\\Component\\Console\\Helper\\TreeHelper;\nuse Symfony\\Component\\Console\\Helper\\TreeNode;\nuse Symfony\\Component\\Console\\Helper\\TreeStyle;\nuse Symfony\\Component\\Console\\Input\\File\\InputFile;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleSectionOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Output\\TrimmedBufferOutput;\nuse Symfony\\Component\\Console\\Questi", "suffix": "fony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * Output decorator helpers for the Symfony Style Guide.\n *\n * @author Kevin Bond \n */\nclass SymfonyStyle extends OutputStyle\n{\n public const MAX_LINE_LENGTH = 120;\n\n ", "middle": "on\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\Question\\ConfirmationQuestion;\nuse Symfony\\Component\\Console\\Question\\FileQuestion;\nuse Symfony\\Component\\Console\\Question\\Question;\nuse Symfony\\Component\\Console\\Terminal;\nuse Sym", "meta": {"filepath": "src/Symfony/Component/Console/Style/SymfonyStyle.php", "language": "php", "file_size": 20220, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tester;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\n\n/**\n * Eases the testing of console applications.\n *\n * When testing an application, don't forget to disable the auto exit flag:\n *\n * $application = new Application();\n * $applica", "suffix": " * Executes the application.\n *\n * Available options:\n *\n * * interactive: Sets the input interactive flag\n * * decorated: Sets the output decorated flag\n * * verbosity: Sets the o", "middle": "tion->setAutoExit(false);\n *\n * @author Fabien Potencier \n */\nclass ApplicationTester\n{\n use TesterTrait;\n\n public function __construct(\n private Application $application,\n ) {\n }\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tester/ApplicationTester.php", "language": "php", "file_size": 2679, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tester;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\n\n/**\n * Eases the testing of command completion.\n *\n * @author Jérôme Ta", "suffix": "ic function complete(array $input): array\n {\n $currentIndex = \\count($input);\n if ('' === end($input)) {\n array_pop($input);\n }\n array_unshift($input, $this->command->getName());\n\n $completionInput = Complet", "middle": "marelle \n */\nclass CommandCompletionTester\n{\n public function __construct(\n private Command $command,\n ) {\n }\n\n /**\n * Create completion suggestions from input tokens.\n */\n publ", "meta": {"filepath": "src/Symfony/Component/Console/Tester/CommandCompletionTester.php", "language": "php", "file_size": 1497, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tester;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Output\\TestOutput;\n\n/**\n * Eases the testing of console commands.\n *\n * @author", "suffix": "FormatterInterface $outputFormatter;\n\n /**\n * @param OutputInterface::VERBOSITY_* $verbosity\n */\n public function __construct(\n callable|Command $command,\n private ?bool $interactive = null,\n private bool $decorated = fal", "middle": " Fabien Potencier \n * @author Robin Chalas \n * @author Théo FIDRY \n */\nclass CommandTester\n{\n use TesterTrait;\n\n private Command $command;\n private Output", "meta": {"filepath": "src/Symfony/Component/Console/Tester/CommandTester.php", "language": "php", "file_size": 5434, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tester;\n\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandFailed;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandIsInvalid;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandIsSuccessful;\n\n/**\n * @psalm-require-extends \\PHPUnit\\Framework\\TestCase\n *\n * @author Théo FIDR", "suffix": "essful(), $message);\n }\n\n public function assertCommandFailed(ExecutionResult $result, string $message = ''): void\n {\n $this->assertThat($result->statusCode, new CommandFailed(), $message);\n }\n\n public function assertCommandIsInvalid(", "middle": "Y \n */\ntrait ConsoleAssertionsTrait\n{\n public function assertCommandIsSuccessful(ExecutionResult $result, string $message = ''): void\n {\n $this->assertThat($result->statusCode, new CommandIsSucc", "meta": {"filepath": "src/Symfony/Component/Console/Tester/ConsoleAssertionsTrait.php", "language": "php", "file_size": 2217, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tester;\n\nuse Symfony\\Component\\Console\\Output\\TestOutput;\n\n/**\n * @author Théo FIDRY \n */\nfinal class ExecutionResult\n{\n // This is purely for memoizing purposes\n private array $results = [];\n\n /**\n * @param array<\\Closure(string): string> $normalizers\n ", "suffix": "\n /**\n * Gets the display returned by the execution of the command or application. The display combines what was\n * written on both the output and error output.\n */\n public function getDisplay(bool $normalize = true): string\n {\n ", "middle": " */\n public function __construct(\n public readonly string $input,\n public readonly int $statusCode,\n private readonly TestOutput $output,\n private readonly array $normalizers = [],\n ) {\n }\n", "meta": {"filepath": "src/Symfony/Component/Console/Tester/ExecutionResult.php", "language": "php", "file_size": 2648, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tester;\n\nuse PHPUnit\\Framework\\Assert;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandFailed;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandIsInvalid;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandIsSuccessf", "suffix": "dependently = false;\n private InputInterface $input;\n private int $statusCode;\n\n /**\n * Gets the display returned by the last execution of the command or application.\n *\n * @throws \\RuntimeException If it's called before the execute me", "middle": "ul;\n\n/**\n * @author Amrouche Hamza \n */\ntrait TesterTrait\n{\n private StreamOutput $output;\n\n /**\n * @var list\n */\n private array $inputs = [];\n private bool $captureStreamsIn", "meta": {"filepath": "src/Symfony/Component/Console/Tester/TesterTrait.php", "language": "php", "file_size": 6332, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tester\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Console\\Command\\Command;\n\nfinal class CommandFailed extends Constraint\n{\n public function toString(): string\n {\n return 'failed';\n }\n\n ", "suffix": "cted function additionalFailureDescription($other): string\n {\n $mapping = [\n Command::SUCCESS => 'Command was successful.',\n Command::INVALID => 'Command was invalid.',\n ];\n\n return $mapping[$other] ?? \\sprintf", "middle": " protected function matches($other): bool\n {\n return Command::FAILURE === $other;\n }\n\n protected function failureDescription($other): string\n {\n return 'the command '.$this->toString();\n }\n\n prote", "meta": {"filepath": "src/Symfony/Component/Console/Tester/Constraint/CommandFailed.php", "language": "php", "file_size": 1052, "cut_index": 513, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tester\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Console\\Command\\Command;\n\nfinal class CommandIsInvalid extends Constraint\n{\n public function toString(): string\n {\n return 'is invalid';\n ", "suffix": " protected function additionalFailureDescription($other): string\n {\n $mapping = [\n Command::SUCCESS => 'Command was successful.',\n Command::FAILURE => 'Command failed.',\n ];\n\n return $mapping[$other] ?? \\sprin", "middle": " }\n\n protected function matches($other): bool\n {\n return Command::INVALID === $other;\n }\n\n protected function failureDescription($other): string\n {\n return 'the command '.$this->toString();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tester/Constraint/CommandIsInvalid.php", "language": "php", "file_size": 1054, "cut_index": 513, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tester\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\Console\\Command\\Command;\n\nfinal class CommandIsSuccessful extends Constraint\n{\n public function toString(): string\n {\n return 'is successfu", "suffix": " }\n\n protected function additionalFailureDescription($other): string\n {\n $mapping = [\n Command::FAILURE => 'Command failed.',\n Command::INVALID => 'Command was invalid.',\n ];\n\n return $mapping[$other] ?? \\sp", "middle": "l';\n }\n\n protected function matches($other): bool\n {\n return Command::SUCCESS === $other;\n }\n\n protected function failureDescription($other): string\n {\n return 'the command '.$this->toString();\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tester/Constraint/CommandIsSuccessful.php", "language": "php", "file_size": 1057, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Interaction;\n\nuse Symfony\\Component\\Console\\Attribute\\InteractiveAttributeInterface;\nuse Symfony\\Component\\Console\\Attribute\\MapInput;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @internal\n */\n", "suffix": "le $parameterResolver\n *\n * @param \\Closure(\\ReflectionFunction $function, InputInterface $input, OutputInterface $output): array $parameterResolver\n */\n public function interact(InputInterface $input, OutputInterface $output, \\Closure $para", "middle": "final class Interaction\n{\n public function __construct(\n private readonly object $owner,\n private readonly InteractiveAttributeInterface $attribute,\n ) {\n }\n\n /**\n * @param-immediately-invoked-callab", "meta": {"filepath": "src/Symfony/Component/Console/Interaction/Interaction.php", "language": "php", "file_size": 1761, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Exception;\n\n/**\n * Represents an incorrect command name typed in the console.\n *\n * @author Jérôme Tamarelle \n */\nclass CommandNotFoundException extends \\InvalidArgumentException implements ExceptionInterface\n{\n /**\n ", "suffix": "l $previous Previous exception used for the exception chaining\n */\n public function __construct(\n string $message,\n private array $alternatives = [],\n int $code = 0,\n ?\\Throwable $previous = null,\n ) {\n pare", "middle": " * @param string $message Exception message to throw\n * @param string[] $alternatives List of similar defined names\n * @param int $code Exception code\n * @param \\Throwable|nul", "meta": {"filepath": "src/Symfony/Component/Console/Exception/CommandNotFoundException.php", "language": "php", "file_size": 1192, "cut_index": 518, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Exception;\n\n/**\n * @author Jérôme Tamarelle \n */\nclass InvalidArgumentException extends \\InvalidArgumentException implements ExceptionInterface\n{\n /**\n * @internal\n */\n public static function fromEnumValue(string $name, string $value, array|\\Closure", "suffix": "intf('The value \"%s\" is not valid for the \"%s\" argument.', $value, $name);\n\n if (\\is_array($suggestedValues)) {\n $error .= \\sprintf(' Supported values are \"%s\".', implode('\", \"', $suggestedValues));\n }\n\n return new self($err", "middle": " $suggestedValues): self\n {\n $error = \\spr", "meta": {"filepath": "src/Symfony/Component/Console/Exception/InvalidArgumentException.php", "language": "php", "file_size": 882, "cut_index": 559, "middle_length": 52}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Exception;\n\n/**\n * Represents an incorrect option name or value typed in the console.\n *\n * @author Jérôme Tamarelle \n */\nclass InvalidOptionException extends \\InvalidArgumentException implements ExceptionInterface\n{\n /**\n * @internal\n */\n public static function fromEnumV", "suffix": "ggestedValues): self\n {\n $error = \\sprintf('The value \"%s\" is not valid for the \"%s\" option.', $value, $name);\n\n if (\\is_array($suggestedValues)) {\n $error .= \\sprintf(' Supported values are \"%s\".', implode('\", \"', $suggestedVal", "middle": "alue(string $name, string $value, array|\\Closure $su", "meta": {"filepath": "src/Symfony/Component/Console/Exception/InvalidOptionException.php", "language": "php", "file_size": 951, "cut_index": 582, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Exception;\n\nuse Symfony\\Component\\Console\\Messenger\\RunCommandContext;\n\n/**\n * @author Kevin Bond \n */\nfinal class RunCommandFailedException extends RuntimeException\n{\n public function __construct(\\Throwable|string $exception, public readonly RunCom", "suffix": "uct(\n $exception instanceof \\Throwable ? $exception->getMessage() : $exception,\n $exception instanceof \\Throwable && \\is_int($exception->getCode()) ? $exception->getCode() : 0,\n $exception instanceof \\Throwable ? $exception", "middle": "mandContext $context)\n {\n parent::__constr", "meta": {"filepath": "src/Symfony/Component/Console/Exception/RunCommandFailedException.php", "language": "php", "file_size": 883, "cut_index": 547, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute;\n\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\String\\UnicodeStrin", "suffix": "s-string<\\BackedEnum>\n */\n public string $typeName = '';\n private ?int $mode = null;\n private ?InteractiveAttributeInterface $interactiveAttribute = null;\n\n /**\n * Represents a console command definition.\n *\n * If uns", "middle": "g;\n\n#[\\Attribute(\\Attribute::TARGET_PARAMETER | \\Attribute::TARGET_PROPERTY)]\nclass Argument\n{\n public mixed $default = null;\n public array|\\Closure $suggestedValues;\n\n /**\n * @internal\n *\n * @var string|clas", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/Argument.php", "language": "php", "file_size": 4781, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute;\n\n/**\n * Service tag to autoconfigure commands.\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD)]\nfinal class AsCommand\n{\n /**\n * @param string $name The name of the command, used when calling it (i.e. \"cache:cle", "suffix": "em (i.e. \"cache:clean\")\n * @param bool $hidden If true, the command won't be shown when listing all the available commands, but it can still be run as any other command\n * @param string|null $help The help content of the command,", "middle": "ar\")\n * @param string|null $description The description of the command, displayed with the help page\n * @param string[] $aliases The list of aliases of the command. The command will be executed when using one of th", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/AsCommand.php", "language": "php", "file_size": 1695, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute;\n\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Input\\File\\InputFile;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Question\\ConfirmationQuestion;\nuse Symfony\\Component\\Console\\Question\\FileQuestion;\nuse Symfony\\Component", "suffix": "AttributeInterface\n{\n public ?\\Closure $normalizer;\n public ?\\Closure $validator;\n private \\Closure $closure;\n\n /**\n * @param string $question The question to ask the user\n * @param string|bool|int|float|null $def", "middle": "\\Console\\Question\\Question;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Validator\\Constraint;\n\n#[\\Attribute(\\Attribute::TARGET_PARAMETER | \\Attribute::TARGET_PROPERTY)]\nclass Ask implements Interactive", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/Ask.php", "language": "php", "file_size": 7103, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute;\n\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n#[\\Attribute(\\Attribute::TARGET_PARAMETER | \\Attribute::TARGET_PROPERTY)]\nclass AskChoice implements InteractiveAttributeInterface\n{\n public ?\\C", "suffix": "y|callable():array $choices The list of available choices (leave empty to use enum cases)\n * @param string|int|float|null $default The default answer to return if the us", "middle": "losure $validator;\n public array|\\Closure $choices;\n private \\Closure $closure;\n\n /**\n * @param string $question The question to ask the user\n * @param arra", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/AskChoice.php", "language": "php", "file_size": 5999, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute;\n\nuse Symfony\\Component\\Console\\Exception\\LogicException;\n\n#[\\Attribute(\\Attribute::TARGET_METHOD)]\nclass Interact implements InteractiveAttributeInterface\n{\n private \\ReflectionMethod $method;\n\n /**\n * @internal\n */\n publi", "suffix": " if (!$method->isPublic() || $method->isStatic()) {\n throw new LogicException(\\sprintf('The interactive method \"%s::%s()\" must be public and non-static.', $method->class, $method->getName()));\n }\n\n if ('__invoke' === $method->", "middle": "c static function tryFrom(\\ReflectionMethod $method): ?self\n {\n /** @var self|null $self */\n if (!$self = ($method->getAttributes(self::class)[0] ?? null)?->newInstance()) {\n return null;\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/Interact.php", "language": "php", "file_size": 1428, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute;\n\n/**\n * Defines how a DateTime parameter should be resolved from command input.\n *\n * @author Robin Chalas \n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nclass MapDateTime\n{\n /**\n * @param string|null", "suffix": "m (mutually exclusive with $argument)\n */\n public function __construct(\n public readonly ?string $format = null,\n public readonly ?string $argument = null,\n public readonly ?string $option = null,\n ) {\n if ($argument &", "middle": " $format The DateTime format (@see https://php.net/datetime.format)\n * @param string|null $argument The argument name to read from (defaults to parameter name)\n * @param string|null $option The option name to read fro", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/MapDateTime.php", "language": "php", "file_size": 1129, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute;\n\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Interaction\\Interaction;\n\n/**\n * Maps a command input into an object (DTO).\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER | \\Attribute::TARGET_PROPERTY)]\nfinal class MapInput\n{\n /**\n * @var array\n */\n private array $definition = [];\n\n private \\ReflectionClass $class;\n\n /**\n * @var list\n */\n private array $interactiveAttributes = [];\n\n /**\n * @param string[]|null $validati", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/MapInput.php", "language": "php", "file_size": 7466, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute;\n\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\String\\UnicodeString;\n\n#[\\Attribute(\\Attribute::TARGET_PARAMETER | \\Attribute::TARGET_PROPERTY)]\nclass Option\n{\n public ", "suffix": " */\n public string $typeName = '';\n /** @internal */\n public bool $allowNull = false;\n private ?int $mode = null;\n private string $memberName = '';\n private string $sourceName = '';\n\n /**\n * Represents a console command --option ", "middle": "const ALLOWED_UNION_TYPES = ['bool|string', 'bool|int', 'bool|float'];\n public mixed $default = null;\n public array|\\Closure $suggestedValues;\n\n /**\n * @internal\n *\n * @var string|class-string<\\BackedEnum>\n ", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/Option.php", "language": "php", "file_size": 6478, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute;\n\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\n\n/**\n * Defines which value resolver should be used for a given parameter.\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER | \\Attribute::IS_REPEATABLE)]\nclass ValueResolver\n{\n /**\n * @param class-string|string $resolver The class name", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/ValueResolver.php", "language": "php", "file_size": 981, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Routing\\Loader\\ClosureLoader;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass ClosureLoaderTest extends TestCase\n{\n public function testSupports()\n ", "suffix": "loader->supports('foo.foo'), '->supports() returns true if the resource is loadable');\n\n $this->assertTrue($loader->supports($closure, 'closure'), '->supports() checks the resource type if specified');\n $this->assertFalse($loader->supports($c", "middle": " {\n $loader = new ClosureLoader();\n\n $closure = static function () {};\n\n $this->assertTrue($loader->supports($closure), '->supports() returns true if the resource is loadable');\n $this->assertFalse($", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/ClosureLoaderTest.php", "language": "php", "file_size": 1581, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\Routing\\Loader\\AttributeFileLoader;\nuse Symfony\\Component\\Routing\\Loader\\DirectoryLoader;\nuse Symfony\\Component\\Routing\\Loader", "suffix": "ivate DirectoryLoader $loader;\n\n protected function setUp(): void\n {\n $locator = new FileLocator();\n $this->loader = new DirectoryLoader($locator);\n $resolver = new LoaderResolver([\n new YamlFileLoader($locator),\n ", "middle": "\\YamlFileLoader;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\TraceableAttributeClassLoader;\n\nclass DirectoryLoaderTest extends TestCase\n{\n pr", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/DirectoryLoaderTest.php", "language": "php", "file_size": 2418, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Routing\\Loader\\ObjectLoader;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass ObjectLoaderTest extends TestCase\n{\n public function testLoadCallsServiceAndReturnsCollection()\n {", "suffix": "oaderMap = [\n 'my_route_provider_service' => new TestObjectLoaderRouteService($collection, 'some-env'),\n ];\n\n $actualRoutes = $loader->load(\n 'my_route_provider_service::loadRoutes',\n 'service'\n );\n\n ", "middle": "\n $loader = new TestObjectLoader('some-env');\n\n // create a basic collection that will be returned\n $collection = new RouteCollection();\n $collection->add('foo', new Route('/foo'));\n\n $loader->l", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/ObjectLoaderTest.php", "language": "php", "file_size": 3725, "cut_index": 614, "middle_length": 229}} {"prefix": "g\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\Psr4Controllers\\MyController;\n\nclass PhpFileLoaderTest extends TestCase\n{\n public function testSupports()\n {\n $loader = new PhpFileLoader($this->createStub(FileLocatorInterface::class));\n\n $this->assertTrue($loader->supports('foo.php'), '->supports() returns true if the resource is loadable');\n $this->assertFalse($loader->support", "suffix": "pports('foo.php', 'foo'), '->supports() checks the resource type if specified');\n }\n\n public function testLoadWithRoute()\n {\n $loader = new PhpFileLoader(new FileLocator([__DIR__.'/../Fixtures']));\n $routeCollection = $loader->load('", "middle": "s('foo.foo'), '->supports() returns true if the resource is loadable');\n\n $this->assertTrue($loader->supports('foo.php', 'php'), '->supports() checks the resource type if specified');\n $this->assertFalse($loader->su", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/PhpFileLoaderTest.php", "language": "php", "file_size": 22226, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader\\Configurator\\Traits;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\Traits\\PrefixTrait;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass PrefixTraitTest extends TestCase\n{\n", "suffix": " $trait = new class {\n use PrefixTrait;\n\n public function add(RouteCollection $c, array $p)\n {\n $this->addPrefix($c, $p, false);\n }\n };\n\n $trait->add($collection, ['en' => '/en',", "middle": " public function testAddLocalizedPrefixUpdatesAliases()\n {\n $collection = new RouteCollection();\n $collection->add('app_route', new Route('/path'));\n $collection->addAlias('app_alias', 'app_route');\n\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/Configurator/Traits/PrefixTraitTest.php", "language": "php", "file_size": 1775, "cut_index": 537, "middle_length": 229}} {"prefix": " {\n $this->assertMatchesRegularExpression(\n (new Route('/{slug}', [], ['slug' => Requirement::ASCII_SLUG]))->compile()->getRegex(),\n '/'.$slug,\n );\n }\n\n #[TestWith([''])]\n #[TestWith(['-'])]\n #[TestWith(['fôo'])]\n #[TestWith(['-FOO'])]\n #[TestWith(['foo-'])]\n #[TestWith(['-foo-'])]\n #[TestWith(['-foo-bar-'])]\n #[TestWith(['foo--bar'])]\n public function testAsciiSlugKO(string $slug)\n {\n $this->assertDoesNotMatchRegularExpression(\n ", "suffix": "lic function testCatchAllOK(string $path)\n {\n $this->assertMatchesRegularExpression(\n (new Route('/{path}', [], ['path' => Requirement::CATCH_ALL]))->compile()->getRegex(),\n '/'.$path,\n );\n }\n\n #[TestWith([''])]", "middle": " (new Route('/{slug}', [], ['slug' => Requirement::ASCII_SLUG]))->compile()->getRegex(),\n '/'.$slug,\n );\n }\n\n #[TestWith(['foo'])]\n #[TestWith(['foo/bar/ccc'])]\n #[TestWith(['///'])]\n pub", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Requirement/RequirementTest.php", "language": "php", "file_size": 17567, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Compone", "suffix": "lver', LoaderResolver::class);\n $container->register('loader1')->addTag('routing.loader');\n $container->register('loader2')->addTag('routing.loader');\n\n (new RoutingResolverPass())->process($container);\n\n $this->assertEquals(\n ", "middle": "nt\\Routing\\DependencyInjection\\RoutingResolverPass;\n\nclass RoutingResolverPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $container->register('routing.reso", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/DependencyInjection/RoutingResolverPassTest.php", "language": "php", "file_size": 1196, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\Routing\\DependencyInjection\\RoutingControllerPass;\n\nclass RoutingCo", "suffix": ";\n\n $container->register('routing.loader.attribute.services', \\stdClass::class)\n ->setArguments([null]);\n\n $container->register('ctrl_a', '%ctrl_a.class%')->addTag('routing.controller', ['priority' => 10]);\n $container->regi", "middle": "ntrollerPassTest extends TestCase\n{\n public function testProcessInjectsTaggedControllerClassesOrderedAndUnique()\n {\n $container = new ContainerBuilder();\n $container->setParameter('ctrl_a.class', CtrlA::class)", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/DependencyInjection/RoutingControllerPassTest.php", "language": "php", "file_size": 1968, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Registers the expression", "suffix": " if (!$container->has('router.default')) {\n return;\n }\n\n $definition = $container->findDefinition('router.default');\n foreach ($container->findTaggedServiceIds('routing.expression_language_provider', true) as $id => $attribu", "middle": " language providers.\n *\n * @author Fabien Potencier \n */\nclass AddExpressionLanguageProvidersPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Routing/DependencyInjection/AddExpressionLanguageProvidersPass.php", "language": "php", "file_size": 1120, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PriorityTaggedServiceTrait;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author", "suffix": "ainer->hasDefinition('routing.loader.attribute.services')) {\n return;\n }\n\n $resolve = $container->getParameterBag()->resolveValue(...);\n $taggedClasses = [];\n foreach ($this->findAndSortTaggedServices('routing.control", "middle": " Nicolas Grekas \n */\nfinal class RoutingControllerPass implements CompilerPassInterface\n{\n use PriorityTaggedServiceTrait;\n\n public function process(ContainerBuilder $container): void\n {\n if (!$cont", "meta": {"filepath": "src/Symfony/Component/Routing/DependencyInjection/RoutingControllerPass.php", "language": "php", "file_size": 1278, "cut_index": 524, "middle_length": 229}} {"prefix": "tion $e) {\n $this->assertEquals(['POST'], $e->getAllowedMethods());\n }\n }\n\n public function testMatchRequestHonorsTheRequestsMethodOverTheStaticContext()\n {\n $coll = new RouteCollection();\n $coll->add('foo', new Route('/foo', [], [], [], '', [], ['GET']));\n\n $matcher = $this->getUrlMatcher($coll, new RequestContext('', 'POST'));\n\n $this->assertSame(\n ['_route' => 'foo'],\n $matcher->matchRequest(Request::create('/foo', 'GET'))\n ", "suffix": "ew RequestContext('', 'POST', 'example.com');\n $matcher = $this->getUrlMatcher($coll, $originalContext);\n $matcher->matchRequest(Request::create('https://other.example/foo', 'GET'));\n\n $this->assertSame('POST', $originalContext->getMet", "middle": " );\n }\n\n public function testMatchRequestRestoresTheContextAfterwards()\n {\n $coll = new RouteCollection();\n $coll->add('foo', new Route('/foo', [], [], [], '', [], ['GET']));\n\n $originalContext = n", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php", "language": "php", "file_size": 43346, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Matcher\\Dumper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Routing\\Matcher\\Dumper\\StaticPrefixCollection;\nuse Symfony\\Component\\Routing\\Route;\n\nclass StaticPrefixCollectionTest extends TestCase\n{\n #[DataProvider('routeProvider')]\n public function testGrouping(array $routes, $expected)\n {\n $collection = new StaticPrefixCollection('/');\n\n foreach ($route", "suffix": "Collection($collection);\n $this->assertEquals($expected, $dumped);\n }\n\n public static function routeProvider()\n {\n return [\n 'Simple - not nested' => [\n [\n ['/', 'root'],\n ", "middle": "s as $route) {\n [$path, $name] = $route;\n $staticPrefix = (new Route($path))->compile()->getStaticPrefix();\n $collection->addRoute($staticPrefix, [$name]);\n }\n\n $dumped = $this->dump", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Matcher/Dumper/StaticPrefixCollectionTest.php", "language": "php", "file_size": 5883, "cut_index": 716, "middle_length": 229}} {"prefix": "ponent\\Routing\\RouteCollection;\n\nclass CompiledUrlGeneratorDumperTest extends TestCase\n{\n private RouteCollection $routeCollection;\n private CompiledUrlGeneratorDumper $generatorDumper;\n private string $testTmpFilepath;\n private string $largeTestTmpFilepath;\n\n protected function setUp(): void\n {\n $this->routeCollection = new RouteCollection();\n $this->generatorDumper = new CompiledUrlGeneratorDumper($this->routeCollection);\n $this->testTmpFilepath = sys_get_temp_dir().", "suffix": "own(): void\n {\n @unlink($this->testTmpFilepath);\n @unlink($this->largeTestTmpFilepath);\n }\n\n public function testDumpWithRoutes()\n {\n $this->routeCollection->add('Test', new Route('/testing/{foo}'));\n $this->routeCol", "middle": "'/php_generator.php';\n $this->largeTestTmpFilepath = sys_get_temp_dir().'/php_generator.large.php';\n @unlink($this->testTmpFilepath);\n @unlink($this->largeTestTmpFilepath);\n }\n\n protected function tearD", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php", "language": "php", "file_size": 19451, "cut_index": 1331, "middle_length": 229}} {"prefix": "\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\AliasLocalizedRouteController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\AliasRouteController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\BazClass;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\DefaultValueController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\DeprecatedAliasCustomMessageRouteController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\DeprecatedAli", "suffix": "Tests\\Fixtures\\AttributeFixtures\\ExtendedRouteOnClassController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\ExtendedRouteOnMethodController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\GlobalDefaultsClass;\nuse Symfony", "middle": "asRouteController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\EncodingClass;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\ExplicitLocalizedActionPathController;\nuse Symfony\\Component\\Routing\\", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/AttributeClassLoaderTest.php", "language": "php", "file_size": 24005, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\n\n/**\n * @author Fabien Potencier \n */\nfinal class Color\n{\n private const COLORS = [\n 'black' => 0,\n 'red' => 1,\n 'green' => 2,\n 'yellow' => 3,\n 'blue' => 4,\n 'magenta' => 5,\n 'cyan' => 6,\n 'whi", "suffix": "magenta' => 5,\n 'bright-cyan' => 6,\n 'bright-white' => 7,\n ];\n\n private const AVAILABLE_OPTIONS = [\n 'bold' => ['set' => 1, 'unset' => 22],\n 'underscore' => ['set' => 4, 'unset' => 24],\n 'blink' => ['set' => 5, 'uns", "middle": "te' => 7,\n 'default' => 9,\n ];\n\n private const BRIGHT_COLORS = [\n 'gray' => 0,\n 'bright-red' => 1,\n 'bright-green' => 2,\n 'bright-yellow' => 3,\n 'bright-blue' => 4,\n 'bright-", "meta": {"filepath": "src/Symfony/Component/Console/Color.php", "language": "php", "file_size": 3785, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\Routing\\Loader\\AttributeServicesLoader;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributeFixtures\\ActionPathController;\nuse Symfony\\Component\\Routing\\Tests\\Fixture", "suffix": "er = new AttributeServicesLoader();\n\n $this->assertFalse($loader->supports('attributes', null));\n $this->assertFalse($loader->supports('attributes', 'attribute'));\n $this->assertFalse($loader->supports('other', 'routing.controllers'));", "middle": "s\\AttributeFixtures\\MethodActionControllers;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\TraceableAttributeClassLoader;\n\nclass AttributeServicesLoaderTest extends TestCase\n{\n public function testSupports()\n {\n $load", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/AttributeServicesLoaderTest.php", "language": "php", "file_size": 2291, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\Resource\\GlobResource;\nuse Symfony\\Component\\Routing\\Loader\\GlobFileLoader;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass GlobFileLoaderT", "suffix": " has the glob type');\n $this->assertFalse($loader->supports('any-path'), '->supports() returns false if the resource is not of glob type');\n }\n\n public function testLoadAddsTheGlobResourceToTheContainer()\n {\n $loader = new GlobFileLo", "middle": "est extends TestCase\n{\n public function testSupports()\n {\n $loader = new GlobFileLoader(new FileLocator());\n\n $this->assertTrue($loader->supports('any-path', 'glob'), '->supports() returns true if the resource", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/GlobFileLoaderTest.php", "language": "php", "file_size": 1538, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\Loader\\DelegatingLoader;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\Routing\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Routing\\Loader\\AttributeClassLoader;\nuse Symfony\\Component\\Routing\\Loader\\Psr4DirectoryLoader;\nuse Symfony\\Compo", "suffix": "espace\\MyOtherController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\Psr4Controllers\\SubNamespace\\MyChildController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\Psr4Controllers\\SubNamespace\\MyControllerWithATrait;\n\nclass Psr4DirectoryLoaderTest extends ", "middle": "nent\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\Psr4Controllers\\MyController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\Psr4Controllers\\SubNamespace\\EvenDeeperNam", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/Psr4DirectoryLoaderTest.php", "language": "php", "file_size": 7005, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Requirement;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Routing\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Routing\\Requirement\\EnumRequirement;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routin", "suffix": "s\\Enum\\TestUnitEnum;\n\nclass EnumRequirementTest extends TestCase\n{\n public function testNotABackedEnum()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('\"Symfony\\Component\\Routing\\Tests\\Fixtu", "middle": "g\\Tests\\Fixtures\\Enum\\TestIntBackedEnum;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\Enum\\TestStringBackedEnum;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\Enum\\TestStringBackedEnum2;\nuse Symfony\\Component\\Routing\\Tests\\Fixture", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Requirement/EnumRequirementTest.php", "language": "php", "file_size": 2837, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Requirement;\n\n/*\n * A collection of universal regular-expression constants to use as route parameter requirements.\n */\nenum Requirement\n{\n public const ASCII_SLUG = '[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*'; // symfony/string AsciiSlugger default implementation\n pub", "suffix": "onst POSITIVE_INT = '[1-9][0-9]*';\n public const UID_BASE32 = '[0-9A-HJKMNP-TV-Z]{26}';\n public const UID_BASE58 = '[1-9A-HJ-NP-Za-km-z]{22}';\n public const UID_RFC4122 = '[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}';\n public const UID_RFC9562 ", "middle": "lic const CATCH_ALL = '.+';\n public const DATE_YMD = '[0-9]{4}-(?:0[1-9]|1[012])-(?:0[1-9]|[12][0-9]|(? '\\w+'], [], '', [], ['POST']));\n $coll->add('bar2', new Route('/foo', [], [], [], 'baz'));\n $coll->add('bar3', new Route('/foo1', [], [], [], 'baz'));\n $coll->add('bar4', new Route('/foo2', [], [], [], 'baz', [],", "middle": " $coll = new RouteCollection();\n $coll->add('foo', new Route('/foo', [], [], [], '', [], ['POST']));\n $coll->add('bar', new Route('/bar/{id}', [], ['id' => '\\d+']));\n $coll->add('bar1', new Route('/bar", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Matcher/TraceableUrlMatcherTest.php", "language": "php", "file_size": 4961, "cut_index": 614, "middle_length": 229}} {"prefix": "testing', $url);\n }\n\n public function testAbsoluteUrlWithNonStandardPort()\n {\n $routes = $this->getRoutes('test', new Route('/testing'));\n $url = $this->getGenerator($routes, ['httpPort' => 8080])->generate('test', [], UrlGeneratorInterface::ABSOLUTE_URL);\n\n $this->assertEquals('http://localhost:8080/app.php/testing', $url);\n }\n\n public function testAbsoluteSecureUrlWithNonStandardPort()\n {\n $routes = $this->getRoutes('test', new Route('/testing'));\n $url", "suffix": "ic function testRelativeUrlWithoutParameters()\n {\n $routes = $this->getRoutes('test', new Route('/testing'));\n $url = $this->getGenerator($routes)->generate('test', [], UrlGeneratorInterface::ABSOLUTE_PATH);\n\n $this->assertEquals('/", "middle": " = $this->getGenerator($routes, ['httpsPort' => 8080, 'scheme' => 'https'])->generate('test', [], UrlGeneratorInterface::ABSOLUTE_URL);\n\n $this->assertEquals('https://localhost:8080/app.php/testing', $url);\n }\n\n publ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php", "language": "php", "file_size": 50090, "cut_index": 2151, "middle_length": 229}} {"prefix": "matterHelper;\nuse Symfony\\Component\\Console\\Helper\\DescriptorHelper;\nuse Symfony\\Component\\Console\\Helper\\FormatterHelper;\nuse Symfony\\Component\\Console\\Helper\\Helper;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Helper\\ProcessHelper;\nuse Symfony\\Component\\Console\\Helper\\QuestionHelper;\nuse Symfony\\Component\\Console\\Input\\ArgvInput;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputAwar", "suffix": "\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\SignalRegistry\\SignalRegistry;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\DependencyInjection", "middle": "eInterface;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutput;\nuse Symfony", "meta": {"filepath": "src/Symfony/Component/Console/Application.php", "language": "php", "file_size": 51900, "cut_index": 2151, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\Routing\\Loader\\ContainerLoader;\n\nclass ContainerLoaderTest extends TestCase\n{\n #[DataProvider('supportsProvider')]\n public function testSupports(bool $expect", "suffix": "tSame($expected, (new ContainerLoader(new Container()))->supports('foo', $type));\n }\n\n public static function supportsProvider()\n {\n return [\n [true, 'service'],\n [false, 'bar'],\n [false, null],\n ];\n ", "middle": "ed, ?string $type = null)\n {\n $this->asser", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/ContainerLoaderTest.php", "language": "php", "file_size": 921, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Routing\\DependencyInjection\\AddExpressio", "suffix": "ressionLanguageProvidersPass());\n\n $definition = new Definition(\\stdClass::class);\n $definition->addTag('routing.expression_language_provider');\n $container->setDefinition('some_routing_provider', $definition->setPublic(true));\n\n ", "middle": "nLanguageProvidersPass;\n\nclass AddExpressionLanguageProvidersPassTest extends TestCase\n{\n public function testProcessForRouter()\n {\n $container = new ContainerBuilder();\n $container->addCompilerPass(new AddExp", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/DependencyInjection/AddExpressionLanguageProvidersPassTest.php", "language": "php", "file_size": 2349, "cut_index": 563, "middle_length": 229}} {"prefix": "ymfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nreturn function (string $format) {\n $expectedRoutes = new RouteCollection();\n $expectedRoutes->add('imported.en', $route = new Route('/example'));\n $route->setHost('www.custom.com');\n $route->setRequirement('_locale', 'en');\n $route->setDefault('_locale', 'en');\n $route->setDefault('_canonical_route', 'imported');\n $route->setDefault('_controller', 'Importe", "suffix": " $route->setDefault('_canonical_route', 'imported');\n $route->setDefault('_controller', 'ImportedController::someAction');\n $expectedRoutes->add('imported_not_localized', $route = new Route('/here'));\n $route->setDefault('_controller', 'ImportedCo", "middle": "dController::someAction');\n $expectedRoutes->add('imported.nl', $route = new Route('/voorbeeld'));\n $route->setHost('www.custom.nl');\n $route->setRequirement('_locale', 'nl');\n $route->setDefault('_locale', 'nl');\n ", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/import-without-host-expected-collection.php", "language": "php", "file_size": 1438, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PriorityTaggedServiceTrait;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfo", "suffix": "ce\n{\n use PriorityTaggedServiceTrait;\n\n public function process(ContainerBuilder $container): void\n {\n if (false === $container->hasDefinition('routing.resolver')) {\n return;\n }\n\n $definition = $container->getDefini", "middle": "ny\\Component\\DependencyInjection\\Reference;\n\n/**\n * Adds tagged routing.loader services to routing.resolver service.\n *\n * @author Fabien Potencier \n */\nclass RoutingResolverPass implements CompilerPassInterfa", "meta": {"filepath": "src/Symfony/Component/Routing/DependencyInjection/RoutingResolverPass.php", "language": "php", "file_size": 1213, "cut_index": 518, "middle_length": 229}} {"prefix": "use Symfony\\Component\\Routing\\Tests\\Fixtures\\Psr4Controllers\\MyController;\n\nclass YamlFileLoaderTest extends TestCase\n{\n public function testSupports()\n {\n $loader = new YamlFileLoader($this->createStub(FileLocatorInterface::class));\n\n $this->assertTrue($loader->supports('foo.yml'), '->supports() returns true if the resource is loadable');\n $this->assertTrue($loader->supports('foo.yaml'), '->supports() returns true if the resource is loadable');\n $this->assertFalse($loader-", "suffix": "ader->supports('foo.yaml', 'yaml'), '->supports() checks the resource type if specified');\n $this->assertFalse($loader->supports('foo.yml', 'foo'), '->supports() checks the resource type if specified');\n }\n\n public function testLoadDoesNothing", "middle": ">supports('foo.foo'), '->supports() returns true if the resource is loadable');\n\n $this->assertTrue($loader->supports('foo.yml', 'yaml'), '->supports() checks the resource type if specified');\n $this->assertTrue($lo", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/YamlFileLoaderTest.php", "language": "php", "file_size": 23854, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Requirement;\n\nuse Symfony\\Component\\Routing\\Exception\\InvalidArgumentException;\n\nfinal class EnumRequirement implements \\Stringable\n{\n private string $requirement;\n\n /**\n * @template T of \\BackedEnum\n *\n * @param class-string|list $cases\n ", "suffix": "intf('\"%s\" is not a \"BackedEnum\" class.', $cases));\n }\n\n $cases = $cases::cases();\n } else {\n $class = null;\n\n foreach ($cases as $case) {\n if (!$case instanceof \\BackedEnum) {\n ", "middle": " */\n public function __construct(string|array $cases = [])\n {\n if (\\is_string($cases)) {\n if (!is_subclass_of($cases, \\BackedEnum::class, true)) {\n throw new InvalidArgumentException(\\spr", "meta": {"filepath": "src/Symfony/Component/Routing/Requirement/EnumRequirement.php", "language": "php", "file_size": 1648, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Routing\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Routing\\Loader\\AttributeFileLoader;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributedClasses\\FooClass;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributesFixtures\\AttributesClassParamAfterCommaController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributesFixtures\\AttributesClassParamAfterParenthesisController;\nuse ", "suffix": " Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributesFixtures\\AttributesClassParamInlineQuotedAfterCommaController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributesFixtures\\AttributesClassParamInlineQuotedAfterParenthesisController;\nuse Symfony\\Compo", "middle": "Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributesFixtures\\AttributesClassParamInlineAfterCommaController;\nuse Symfony\\Component\\Routing\\Tests\\Fixtures\\AttributesFixtures\\AttributesClassParamInlineAfterParenthesisController;\nuse", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Loader/AttributeFileLoaderTest.php", "language": "php", "file_size": 6577, "cut_index": 716, "middle_length": 229}} {"prefix": "ute;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass CompiledUrlMatcherDumperTest extends TestCase\n{\n private string $dumpPath;\n\n protected function setUp(): void\n {\n $this->dumpPath = tempnam(sys_get_temp_dir(), 'sf_matcher_');\n }\n\n protected function tearDown(): void\n {\n @unlink($this->dumpPath);\n }\n\n public function testRedirectPreservesUrlEncoding()\n {\n $collection = new RouteCollection();\n $collection->add('foo', new Route('/foo:bar/'));\n\n ", "suffix": "r('getRouteCollections')]\n public function testDump(RouteCollection $collection, $fixture)\n {\n $basePath = __DIR__.'/../../Fixtures/dumper/';\n\n $dumper = new CompiledUrlMatcherDumper($collection);\n $this->assertStringEqualsFile($", "middle": " $matcher = $this->generateDumpedMatcher($collection);\n $matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo')->willReturn([]);\n\n $matcher->match('/foo%3Abar');\n }\n\n #[DataProvide", "meta": {"filepath": "src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php", "language": "php", "file_size": 20621, "cut_index": 1331, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Question;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\n\n/**\n * Represents a question that accepts file input (paste or path).\n *\n * @author Robin Chalas \n */\nclass FileQuestion extends Question\n{", "suffix": ") {\n throw new InvalidArgumentException('At least one of allowPaste or allowPath must be true.');\n }\n\n $this->setTrimmable(false);\n }\n\n public function isPasteAllowed(): bool\n {\n return $this->allowPaste;\n }\n\n ", "middle": "\n public function __construct(\n string $question,\n private bool $allowPaste = true,\n private bool $allowPath = true,\n ) {\n parent::__construct($question);\n\n if (!$allowPaste && !$allowPath", "meta": {"filepath": "src/Symfony/Component/Console/Question/FileQuestion.php", "language": "php", "file_size": 1086, "cut_index": 515, "middle_length": 229}} {"prefix": "lper\\Helper;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\String\\UnicodeString;\n\nclass ReStructuredTextDescriptor extends Descriptor\n{\n //

\n private string $partChar = '=';\n //

\n private string $chapterChar = '-';\n //

\n private string $sectionChar = '~';\n //

\n private string $subsectionC", "suffix": "object, array $options = []): void\n {\n $decorated = $output->isDecorated();\n $output->setDecorated(false);\n\n parent::describe($output, $object, $options);\n\n $output->setDecorated($decorated);\n }\n\n /**\n * Override pa", "middle": "har = '.';\n //

\n private string $subsubsectionChar = '^';\n //
\n private string $paragraphsChar = '\"';\n\n private array $visibleNamespaces = [];\n\n public function describe(OutputInterface $output, object $", "meta": {"filepath": "src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php", "language": "php", "file_size": 10668, "cut_index": 921, "middle_length": 229}} {"prefix": "rmatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Helper\\Helper;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\n/**\n * Text descriptor.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass TextDescriptor extends Descriptor\n{\n protected function describeInputArgument(InputArgument $argument, array $options = []): void\n {\n if (null !== $argument->getDefault()", "suffix": " $default = '';\n }\n\n $totalWidth = $options['total_width'] ?? Helper::width($argument->getName());\n $spacingWidth = $totalWidth - \\strlen($argument->getName());\n\n $this->writeText(\\sprintf(' %s %s%s%s',\n ", "middle": " && (!\\is_array($argument->getDefault()) || \\count($argument->getDefault()))) {\n $default = \\sprintf(' [default: %s]', $this->formatDefaultValue($argument->getDefault()));\n } else {\n ", "meta": {"filepath": "src/Symfony/Component/Console/Descriptor/TextDescriptor.php", "language": "php", "file_size": 12302, "cut_index": 921, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\SignalRegistry;\n\n/**\n * @author Grégoire Pineau \n */\nclass SignalMap\n{\n private static array $map;\n\n public static function getSignalName(int $signal): ?string\n {\n if (!\\extension_loaded('pcntl')) {\n return null;\n }\n\n if (!isset(self::$map)) {\n $r = new \\Refle", "suffix": "stants();\n $map = array_filter($c, static fn ($k) => str_starts_with($k, 'SIG') && !str_starts_with($k, 'SIG_') && 'SIGBABY' !== $k, \\ARRAY_FILTER_USE_KEY);\n self::$map = array_flip($map);\n }\n\n return self::$map[$signal]", "middle": "ctionExtension('pcntl');\n $c = $r->getCon", "meta": {"filepath": "src/Symfony/Component/Console/SignalRegistry/SignalMap.php", "language": "php", "file_size": 933, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\n\n/**\n * @author Yewhen Khoptynskyi \n */\nclass TableCellStyle\n{\n public const DEFAULT_ALIGN = 'left';\n\n private const TAG_OPTIONS = [\n 'fg',\n 'bg',\n 'options',\n ]", "suffix": ",\n 'options' => null,\n 'align' => self::DEFAULT_ALIGN,\n 'cellFormat' => null,\n ];\n\n public function __construct(array $options = [])\n {\n if ($diff = array_diff(array_keys($options), array_keys($this->options))) {\n ", "middle": ";\n\n private const ALIGN_MAP = [\n 'left' => \\STR_PAD_RIGHT,\n 'center' => \\STR_PAD_BOTH,\n 'right' => \\STR_PAD_LEFT,\n ];\n\n private array $options = [\n 'fg' => 'default',\n 'bg' => 'default'", "meta": {"filepath": "src/Symfony/Component/Console/Helper/TableCellStyle.php", "language": "php", "file_size": 2221, "cut_index": 563, "middle_length": 229}} {"prefix": "\n * Defines the styles for a Table.\n *\n * @author Fabien Potencier \n * @author Саша Стаменковић \n * @author Dany Maillard \n */\nclass TableStyle\n{\n private string $paddingChar = ' ';\n private string $horizontalOutsideBorderChar = '-';\n private string $horizontalInsideBorderChar = '-';\n private string $verticalOutsideBorderChar = '|';\n private string $verticalInsideBorderChar = '|';\n private string $crossingChar = '+';\n pr", "suffix": "'+';\n private string $crossingBottomMidChar = '+';\n private string $crossingBottomLeftChar = '+';\n private string $crossingMidLeftChar = '+';\n private string $crossingTopLeftBottomChar = '+';\n private string $crossingTopMidBottomChar = '+';\n", "middle": "ivate string $crossingTopRightChar = '+';\n private string $crossingTopMidChar = '+';\n private string $crossingTopLeftChar = '+';\n private string $crossingMidRightChar = '+';\n private string $crossingBottomRightChar = ", "meta": {"filepath": "src/Symfony/Component/Console/Helper/TableStyle.php", "language": "php", "file_size": 13085, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\n/**\n * TerminalInputHelper stops Ctrl-C and similar signals from leaving the terminal in\n * an unusable state if its settings have been modified when reading user input.\n * This can be an issue on non-Windows platforms.\n *\n * Usage:\n *\n * $inputHelper = new TerminalInputHelper($inputStream);\n *\n * ...change terminal setti", "suffix": "ternal\n */\nfinal class TerminalInputHelper\n{\n /** @var resource */\n private $inputStream;\n private bool $isStdin;\n private string $initialState = '';\n private int $signalToKill = 0;\n private array $signalHandlers = [];\n private array $", "middle": "ngs\n *\n * // Wait for input before all input reads\n * $inputHelper->waitForInput();\n *\n * ...read input\n *\n * // Call finish to restore terminal settings and signal handlers\n * $inputHelper->finish()\n *\n * @in", "meta": {"filepath": "src/Symfony/Component/Console/Helper/TerminalInputHelper.php", "language": "php", "file_size": 4468, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * The TreeHelper class provides methods to display tree-like structures.\n *\n * @author Simon André \n *\n * @implements \\RecursiveIterator\n */\nfinal class TreeHelper implements \\Recursiv", "suffix": " private readonly TreeStyle $style,\n ) {\n $this->children = new \\IteratorIterator($this->node->getChildren());\n $this->children->rewind();\n }\n\n public static function createTree(OutputInterface $output, string|TreeNode|null $root =", "middle": "eIterator\n{\n /**\n * @var \\Iterator\n */\n private \\Iterator $children;\n\n private function __construct(\n private readonly OutputInterface $output,\n private readonly TreeNode $node,\n ", "meta": {"filepath": "src/Symfony/Component/Console/Helper/TreeHelper.php", "language": "php", "file_size": 2910, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\n/**\n * @implements \\IteratorAggregate\n *\n * @author Simon André \n */\nfinal class TreeNode implements \\Countable, \\IteratorAggregate\n{\n /**\n * @var array\n */\n private array $children = [];\n\n public fu", "suffix": "omValues(iterable $nodes, ?self $node = null): self\n {\n $node ??= new self();\n foreach ($nodes as $key => $value) {\n if (is_iterable($value)) {\n $child = new self($key);\n self::fromValues($value, $c", "middle": "nction __construct(\n private readonly string $value = '',\n iterable $children = [],\n ) {\n foreach ($children as $child) {\n $this->addChild($child);\n }\n }\n\n public static function fr", "meta": {"filepath": "src/Symfony/Component/Console/Helper/TreeNode.php", "language": "php", "file_size": 2367, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\n/**\n * Configures the output of the Tree helper.\n *\n * @author Simon André \n */\nfinal class TreeStyle\n{\n public function __construct(\n private readonly string $prefixEndHasNext,\n private readonly string $prefixEndLast,\n private readonl", "suffix": " return new self('┃╸ ', '┗╸ ', '', '┃ ', ' ', '');\n }\n\n public static function boxDouble(): self\n {\n return new self('╠═ ', '╚═ ', '', '║ ', ' ', '');\n }\n\n public static function compact(): self\n {\n return new self", "middle": "y string $prefixLeft,\n private readonly string $prefixMidHasNext,\n private readonly string $prefixMidLast,\n private readonly string $prefixRight,\n ) {\n }\n\n public static function box(): self\n {\n ", "meta": {"filepath": "src/Symfony/Component/Console/Helper/TreeStyle.php", "language": "php", "file_size": 2314, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Console\\ArgumentResolver\\ArgumentResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\BackedEnumValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\BuiltinTypeValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\DateTim", "suffix": "r\\ValueResolver\\MapInputValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ServiceValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\UidValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueRes", "middle": "eValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\DefaultValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\InputFileValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolve", "meta": {"filepath": "src/Symfony/Component/Console/Resources/config/console.php", "language": "php", "file_size": 4380, "cut_index": 614, "middle_length": 229}} {"prefix": "Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Base class for all commands.\n *\n * @author Fabien Potencier \n */\nclass Command implements SignalableCommandInterface\n{\n // see https://tldp.org/LDP/abs/html/exitcodes.html\n public const SUCCESS = 0;\n ", "suffix": "utDefinition $definition;\n private bool $hidden = false;\n private string $help = '';\n private string $description = '';\n private ?InputDefinition $fullDefinition = null;\n private bool $ignoreValidationErrors = false;\n private ?InvokableCo", "middle": " public const FAILURE = 1;\n public const INVALID = 2;\n\n private ?Application $application = null;\n private ?string $name = null;\n private ?string $processTitle = null;\n private array $aliases = [];\n private Inp", "meta": {"filepath": "src/Symfony/Component/Console/Command/Command.php", "language": "php", "file_size": 22530, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Output\\BashCompletionOutput;\nuse Symfony\\Component\\Console\\Completion\\Output\\CompletionOutputInterface;\nuse Symfony\\Component\\Console\\Completion\\Output\\FishCompletionOutput;\nuse Symfony\\Component\\Console\\Completion\\Out", "suffix": "ole\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Responsible for providing the values to the shell completion.\n *\n * @author Wouter de Jong \n */\n#[AsCommand(name: '|_complete', description: 'Internal c", "middle": "put\\ZshCompletionOutput;\nuse Symfony\\Component\\Console\\Exception\\CommandNotFoundException;\nuse Symfony\\Component\\Console\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Cons", "meta": {"filepath": "src/Symfony/Component/Console/Command/CompleteCommand.php", "language": "php", "file_size": 9091, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Dumps the completion script for the current shell.\n *\n * @author Wo", "suffix": "n configure(): void\n {\n $fullCommand = $_SERVER['PHP_SELF'];\n $commandName = basename($fullCommand);\n $fullCommand = @realpath($fullCommand) ?: $fullCommand;\n\n $shell = self::guessShell();\n [$rcFile, $completionFile] =", "middle": "uter de Jong \n */\n#[AsCommand(name: 'completion', description: 'Dump the shell completion script')]\nfinal class DumpCompletionCommand extends Command\n{\n private array $supportedShells;\n\n protected functio", "meta": {"filepath": "src/Symfony/Component/Console/Command/DumpCompletionCommand.php", "language": "php", "file_size": 5483, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Descriptor\\ApplicationDescription;\nuse Symfony\\Component\\Console\\Helper\\DescriptorHelper;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Sym", "suffix": " protected function configure(): void\n {\n $this->ignoreValidationErrors();\n\n $this\n ->setName('help')\n ->setDefinition([\n new InputArgument('command_name', InputArgument::OPTIONAL, 'The command name'", "middle": "fony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * HelpCommand displays the help for a given command.\n *\n * @author Fabien Potencier \n */\nclass HelpCommand extends Command\n{\n private Command $command;\n\n", "meta": {"filepath": "src/Symfony/Component/Console/Command/HelpCommand.php", "language": "php", "file_size": 2579, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ArgumentResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ArgumentResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Interact;\nuse Symfony\\Component\\Console\\Attribute\\MapInput;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Cursor;\nuse Symfony\\Co", "suffix": "teraction\\Interaction;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * Represents an invokable command.\n *\n * @author Yonel Ceruto \n *\n * @internal\n */\nclass InvokableCommand", "middle": "mponent\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\RawInputInterface;\nuse Symfony\\Component\\Console\\In", "meta": {"filepath": "src/Symfony/Component/Console/Command/InvokableCommand.php", "language": "php", "file_size": 8721, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Helper\\HelperInterface;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Sym", "suffix": "name,\n array $aliases,\n string $description,\n bool $isHidden,\n \\Closure $commandFactory,\n private ?bool $isEnabled = true,\n ) {\n $this->setName($name)\n ->setAliases($aliases)\n ->setHidden($", "middle": "fony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @author Nicolas Grekas \n */\nfinal class LazyCommand extends Command\n{\n private \\Closure|Command $command;\n\n public function __construct(\n string $", "meta": {"filepath": "src/Symfony/Component/Console/Command/LazyCommand.php", "language": "php", "file_size": 5724, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Descriptor\\ApplicationDescription;\nuse Symfony\\Component\\Console\\Helper\\DescriptorHelper;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Sym", "suffix": "rotected function configure(): void\n {\n $this\n ->setName('list')\n ->setDefinition([\n new InputArgument('namespace', InputArgument::OPTIONAL, 'The namespace name', null, fn () => array_keys((new ApplicationDesc", "middle": "fony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * ListCommand displays the list of all available commands for the application.\n *\n * @author Fabien Potencier \n */\nclass ListCommand extends Command\n{\n p", "meta": {"filepath": "src/Symfony/Component/Console/Command/ListCommand.php", "language": "php", "file_size": 2699, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Lock\\LockInterface;\nuse Symfony\\Component\\Lock\\Store\\FlockStore;\nuse Symfony\\Component\\Lock\\Store\\SemaphoreSto", "suffix": "* Locks a command.\n */\n private function lock(?string $name = null, bool $blocking = false): bool\n {\n if (!class_exists(SemaphoreStore::class)) {\n throw new LogicException('To enable the locking feature you must install the symf", "middle": "re;\n\n/**\n * Basic lock feature for commands.\n *\n * @author Geoffrey Brier \n */\ntrait LockableTrait\n{\n private ?LockInterface $lock = null;\n\n private ?LockFactory $lockFactory = null;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Console/Command/LockableTrait.php", "language": "php", "file_size": 2445, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Command;\n\n/**\n * Interface for command reacting to signal.\n *\n * @author Grégoire Pineau \n */\ninterface SignalableCommandInterface\n{\n /**\n * Returns the list of signals to subscribe.\n *\n * @return list<\\SIG*>\n *\n * @see https://php.net/pcntl.constants for signals\n */\n public functio", "suffix": " method will be called when the application is signaled.\n *\n * @return int|false The exit code to return or false to continue the normal execution\n */\n public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false;\n}\n", "middle": "n getSubscribedSignals(): array;\n\n /**\n * The", "meta": {"filepath": "src/Symfony/Component/Console/Command/SignalableCommandInterface.php", "language": "php", "file_size": 915, "cut_index": 606, "middle_length": 52}} {"prefix": "nsole\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Helper\\HelperInterface;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * @internal\n *\n * @author Jules Pietri \n */\nfinal class TraceableCommand extends ", "suffix": ";\n public string $maxMemoryUsage = 'n/a';\n public InputInterface $input;\n public OutputInterface $output;\n /** @var array */\n public array $arguments;\n /** @var array */\n public array $options;\n /** @va", "middle": "Command\n{\n public readonly Command $command;\n public int $exitCode;\n public ?int $interruptedBySignal = null;\n public bool $ignoreValidation;\n public bool $isInteractive = false;\n public string $duration = 'n/a'", "meta": {"filepath": "src/Symfony/Component/Console/Command/TraceableCommand.php", "language": "php", "file_size": 10947, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\EventListener;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleErrorEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent;\nuse Symfony\\Component\\EventDispatch", "suffix": "truct(\n private ?LoggerInterface $logger = null,\n ) {\n }\n\n public function onConsoleError(ConsoleErrorEvent $event): void\n {\n if (null === $this->logger) {\n return;\n }\n\n $error = $event->getError();\n\n ", "middle": "er\\EventSubscriberInterface;\n\n/**\n * @author James Halsall \n * @author Robin Chalas \n */\nclass ErrorListener implements EventSubscriberInterface\n{\n public function __cons", "meta": {"filepath": "src/Symfony/Component/Console/EventListener/ErrorListener.php", "language": "php", "file_size": 2673, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\EventListener;\n\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\QuestionAnsweredEvent;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\n/**", "suffix": "n __construct(\n private readonly ValidatorInterface $validator,\n ) {\n }\n\n public function onQuestionAnswered(QuestionAnsweredEvent $event): void\n {\n $violations = $this->validator->validate($event->value, $event->constraints);\n\n ", "middle": "\n * Validates Question answers (user input) using the Validator component.\n *\n * @author Robin Chalas \n */\nfinal class ValidateQuestionInputListener implements EventSubscriberInterface\n{\n public functio", "meta": {"filepath": "src/Symfony/Component/Console/EventListener/ValidateQuestionInputListener.php", "language": "php", "file_size": 1275, "cut_index": 524, "middle_length": 229}} {"prefix": "'], array_keys($application->all()), '__construct() registered the help and list commands by default');\n }\n\n public function testSetGetName()\n {\n $application = new Application();\n $application->setName('foo');\n $this->assertEquals('foo', $application->getName(), '->setName() sets the name of the application');\n }\n\n public function testSetGetVersion()\n {\n $application = new Application();\n $application->setVersion('bar');\n $this->assertEquals('bar'", "suffix": "fo>bar', $application->getLongVersion(), '->getLongVersion() returns the long version of the application');\n }\n\n public function testGetLongVersionWithContainer()\n {\n $container = new ContainerBuilder();\n $container->setParame", "middle": ", $application->getVersion(), '->setVersion() sets the version of the application');\n }\n\n public function testGetLongVersion()\n {\n $application = new Application('foo', 'bar');\n $this->assertEquals('foo \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Color;\nuse Symfony\\Component\\Console\\Output\\AnsiColorMode;\nuse Symfony\\Component\\Console\\Terminal;\n\nclass ColorTest extends TestCase\n{\n public function testAnsi4Colors()\n {\n $color = new Color();\n $t", "suffix": " $this->assertSame(\"\\033[91;103m \\033[39;49m\", $color->apply(' '));\n\n $color = new Color('red', 'yellow', ['underscore']);\n $this->assertSame(\"\\033[31;43;4m \\033[39;49;24m\", $color->apply(' '));\n }\n\n public function testTrueColors()\n ", "middle": "his->assertSame(' ', $color->apply(' '));\n\n $color = new Color('red', 'yellow');\n $this->assertSame(\"\\033[31;43m \\033[39;49m\", $color->apply(' '));\n\n $color = new Color('bright-red', 'bright-yellow');\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ColorTest.php", "language": "php", "file_size": 2463, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Attribute\\Reflection;\n\nuse Symfony\\Component\\String\\UnicodeString;\n\n/**\n * @internal\n */\nclass ReflectionMember\n{\n public function __construct(\n private readonly \\ReflectionParameter|\\ReflectionProperty $member,\n ) {\n }\n\n /**\n * @template T of object\n *\n * @param class-string $class\n *\n * @return ", "suffix": "T of object\n *\n * @param class-string $class\n *\n * @return list\n */\n public function getAttributes(string $class): array\n {\n return array_map(\n static fn (\\ReflectionAttribute $attribute) => $attribute->new", "middle": "T|null\n */\n public function getAttribute(string $class): ?object\n {\n return ($this->member->getAttributes($class, \\ReflectionAttribute::IS_INSTANCEOF)[0] ?? null)?->newInstance();\n }\n\n /**\n * @template ", "meta": {"filepath": "src/Symfony/Component/Console/Attribute/Reflection/ReflectionMember.php", "language": "php", "file_size": 3411, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\ConsoleBundle;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symf", "suffix": "rait;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\nclass ConsoleBundleTest extends TestCase\n{\n private string $varDir;\n\n protected function setUp(): void\n {\n $this->varDir = s", "middle": "ony\\Component\\Console\\Tester\\ApplicationTester;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\AbstractKernel;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\KernelT", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ConsoleBundleTest.php", "language": "php", "file_size": 4167, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleCommandEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleErrorEvent;\nus", "suffix": "y\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\EventDispatcher\\DependencyInjection\\RegisterListenersPass;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Compo", "middle": "e Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tester\\ApplicationTester;\nuse Symfon", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ConsoleEventsTest.php", "language": "php", "file_size": 3517, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Cursor;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\n\nclass CursorTest extends TestCase\n{\n /** @var resource */\n protected $stream;\n\n protected function setUp(): void\n {\n $this->stream = fopen('php://memory', 'r+');\n }\n\n protected function tearDown(): void\n {\n unset($this->stream);\n }\n\n public function testMoveUpOneLine()\n ", "suffix": " {\n $cursor = new Cursor($output = $this->getOutputStream());\n\n $cursor->moveUp(12);\n\n $this->assertEquals(\"\\x1b[12A\", $this->getOutputContent($output));\n }\n\n public function testMoveDownOneLine()\n {\n $cursor = new Cur", "middle": " {\n $cursor = new Cursor($output = $this->getOutputStream());\n\n $cursor->moveUp();\n\n $this->assertEquals(\"\\x1b[1A\", $this->getOutputContent($output));\n }\n\n public function testMoveUpMultipleLines()\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/CursorTest.php", "language": "php", "file_size": 5741, "cut_index": 716, "middle_length": 229}} {"prefix": "de;\nuse Symfony\\Component\\Console\\Terminal;\n\nclass TerminalTest extends TestCase\n{\n private string|false $colSize;\n private string|false $lineSize;\n private string|false $ansiCon;\n\n protected function setUp(): void\n {\n $this->colSize = getenv('COLUMNS');\n $this->lineSize = getenv('LINES');\n $this->ansiCon = getenv('ANSICON');\n $this->resetStatics();\n }\n\n protected function tearDown(): void\n {\n putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COL", "suffix": "\n foreach (['height', 'width', 'stty', 'kittyGraphics', 'iterm2Images'] as $name) {\n $property = new \\ReflectionProperty(Terminal::class, $name);\n $property->setValue(null, null);\n }\n }\n\n public function test()\n ", "middle": "UMNS');\n putenv($this->lineSize ? 'LINES' : 'LINES='.$this->lineSize);\n putenv($this->ansiCon ? 'ANSICON='.$this->ansiCon : 'ANSICON');\n $this->resetStatics();\n }\n\n private function resetStatics()\n {", "meta": {"filepath": "src/Symfony/Component/Console/Tests/TerminalTest.php", "language": "php", "file_size": 9416, "cut_index": 921, "middle_length": 229}} {"prefix": "and;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Helper\\TreeHelper;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\Input;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleSectionOutput;\nuse Symfony\\Component\\Conso", "suffix": "\nclass SymfonyStyleTest extends TestCase\n{\n protected Command $command;\n protected CommandTester $tester;\n private string|false $colSize;\n\n protected function setUp(): void\n {\n $this->colSize = getenv('COLUMNS');\n putenv('COLUM", "middle": "le\\Output\\NullOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Style/SymfonyStyleTest.php", "language": "php", "file_size": 14687, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Tester;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Helper\\QuestionHelper;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\Output;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\Question;\nuse Symfony\\Component\\Console\\Tester\\ApplicationTest", "suffix": " $this->application->setAutoExit(false);\n $this->application->register('foo')\n ->addArgument('foo')\n ->setCode(static function (OutputInterface $output): int {\n $output->writeln('foo');\n\n return", "middle": "er;\n\nclass ApplicationTesterTest extends TestCase\n{\n protected Application $application;\n protected ApplicationTester $tester;\n\n protected function setUp(): void\n {\n $this->application = new Application();\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Tester/ApplicationTesterTest.php", "language": "php", "file_size": 5582, "cut_index": 716, "middle_length": 229}} {"prefix": " Symfony\\Component\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\Console\\Output\\Output;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\Question\\Question;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Console\\Tester\\ConsoleAssertionsTrait;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\InvokableExtendingCommandTestCommand;\nuse Symfony\\C", "suffix": "fony\\Component\\Console\\Tests\\Fixtures\\InvokableWithInteractiveChoiceAttributeTestCommand;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\InvokableWithInteractiveHiddenQuestionAttributeTestCommand;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\MethodBasedTestC", "middle": "omponent\\Console\\Tests\\Fixtures\\InvokableTestCommand;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\InvokableWithInputTestCommand;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\InvokableWithInteractiveAttributesTestCommand;\nuse Sym", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Tester/CommandTesterTest.php", "language": "php", "file_size": 27202, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Tester\\Constraint;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandFailed", "suffix": "is->assertTrue($constraint->evaluate(Command::FAILURE, '', true));\n $this->assertFalse($constraint->evaluate(Command::INVALID, '', true));\n }\n\n #[DataProvider('providesUnsuccessful')]\n public function testUnsuccessfulCommand(string $expecte", "middle": ";\n\nfinal class CommandFailedTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new CommandFailed();\n\n $this->assertFalse($constraint->evaluate(Command::SUCCESS, '', true));\n $th", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Tester/Constraint/CommandFailedTest.php", "language": "php", "file_size": 1627, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Tester\\Constraint;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandIsInva", "suffix": " $this->assertFalse($constraint->evaluate(Command::FAILURE, '', true));\n $this->assertTrue($constraint->evaluate(Command::INVALID, '', true));\n }\n\n #[DataProvider('providesUnsuccessful')]\n public function testUnsuccessfulCommand(string", "middle": "lid;\n\nfinal class CommandIsInvalidTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new CommandIsInvalid();\n\n $this->assertFalse($constraint->evaluate(Command::SUCCESS, '', true));\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsInvalidTest.php", "language": "php", "file_size": 1637, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Tester\\Constraint;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandIsSucc", "suffix": "ue));\n $this->assertFalse($constraint->evaluate(Command::FAILURE, '', true));\n $this->assertFalse($constraint->evaluate(Command::INVALID, '', true));\n }\n\n #[DataProvider('providesUnsuccessful')]\n public function testUnsuccessfulComma", "middle": "essful;\n\nfinal class CommandIsSuccessfulTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new CommandIsSuccessful();\n\n $this->assertTrue($constraint->evaluate(Command::SUCCESS, '', tr", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php", "language": "php", "file_size": 1646, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\RunCommandFailedException;\nuse Symfony\\Component\\Console\\Messenger\\RunCommandContext;\nuse Symfony\\Component\\Conso", "suffix": " self::assertSame(42, $exception->getCode());\n }\n\n public function testNonIntegerCodeProvidesZero()\n {\n $exception = self::createException(new class extends \\Exception {\n protected $code = 'non-integer-code';\n });\n\n ", "middle": "le\\Messenger\\RunCommandMessage;\n\nclass RunCommandFailedExceptionTest extends TestCase\n{\n public function testDefaultExceptionProvidesCode()\n {\n $exception = self::createException(new \\Exception('Boom!', 42));\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Exception/RunCommandFailedExceptionTest.php", "language": "php", "file_size": 1394, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Question;\n\n/**\n * Represents a yes/no question.\n *\n * @author Fabien Potencier \n */\nclass ConfirmationQuestion extends Question\n{\n /**\n * @param string $question The question to ask to the user\n * @param bool $default ", "suffix": "te string $trueAnswerRegex = '/^y/i',\n ) {\n parent::__construct($question, $default);\n\n $this->setNormalizer($this->getDefaultNormalizer());\n }\n\n /**\n * Returns the default answer normalizer.\n */\n private function getDefau", "middle": " The default answer to return, true or false\n * @param string $trueAnswerRegex A regex to match the \"yes\" answer\n */\n public function __construct(\n string $question,\n bool $default = true,\n priva", "meta": {"filepath": "src/Symfony/Component/Console/Question/ConfirmationQuestion.php", "language": "php", "file_size": 1522, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\nabstract class Abstract", "suffix": "ntexts));\n $code = self::SUCCESS;\n\n foreach ($contexts as $ignored) {\n $io->progressAdvance();\n try {\n parent::run($input, $output);\n } catch (\\Throwable) {\n $code = self::FAILURE", "middle": "LoopCommand extends Command\n{\n public function run(InputInterface $input, OutputInterface $output): int\n {\n $io = new SymfonyStyle($input, $output);\n $contexts = [1, 2, 3];\n $io->progressStart(count($co", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/AbstractLoopCommand.php", "language": "php", "file_size": 1137, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\n/**\n * Helps outputting debug information when running an external program from a command.\n *\n * An external program can be a Process, an HTTP request, or anything else.\n *\n * @author Fabien Potencier \n */\nclass DebugFormatterHelper extends Helper\n{\n private const COLORS = ['black', 'red', 'green', 'yellow'", "suffix": "ing $prefix = 'RUN'): string\n {\n $this->started[$id] = ['border' => ++$this->count % \\count(self::COLORS)];\n\n return \\sprintf(\"%s %s %s\\n\", $this->getBorder($id), $prefix, $message);\n }\n\n /**\n * ", "middle": ", 'blue', 'magenta', 'cyan', 'white', 'default'];\n private array $started = [];\n private int $count = -1;\n\n /**\n * Starts a debug formatting session.\n */\n public function start(string $id, string $message, str", "meta": {"filepath": "src/Symfony/Component/Console/Helper/DebugFormatterHelper.php", "language": "php", "file_size": 3328, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface;\nuse Symfony\\Component\\VarDumper\\Cloner\\VarCloner;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper;\n\n/**\n * @author Roland Franssen handler = function ($var): string {\n $dumper = $this->dumper ??= new CliDumper(null, null, CliDumper::DUMP_LIGHT_ARRAY | CliDumper::DUMP_COMMA_SEPARATOR);\n ", "middle": "land@gmail.com>\n */\nfinal class Dumper\n{\n private \\Closure $handler;\n\n public function __construct(\n private OutputInterface $output,\n private ?CliDumper $dumper = null,\n private ?ClonerInterface $clone", "meta": {"filepath": "src/Symfony/Component/Console/Helper/Dumper.php", "language": "php", "file_size": 1681, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidFileException;\nuse Symfony\\Component\\Console\\Exception\\MissingInputException;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Input\\File\\InputFile;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\FileQuestion;\nuse Symfony\\Component\\Console\\Terminal;\nuse Symfony\\Component\\Console\\Terminal\\Image\\ImagePr", "suffix": " * @author Robin Chalas \n *\n * @internal\n */\nfinal class FileInputHelper\n{\n private const BPM_ENABLE = \"\\x1b[?2004h\";\n private const BPM_DISABLE = \"\\x1b[?2004l\";\n private const PASTE_START = \"\\x1b[200~\";\n private const P", "middle": "otocolInterface;\nuse Symfony\\Component\\Console\\Terminal\\Image\\ITerm2Protocol;\nuse Symfony\\Component\\Console\\Terminal\\Image\\KittyGraphicsProtocol;\n\n/**\n * Orchestrates file input handling through paste detection or path input.\n *\n", "meta": {"filepath": "src/Symfony/Component/Console/Helper/FileInputHelper.php", "language": "php", "file_size": 7318, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\nuse Symfony\\Component\\String\\UnicodeString;\n\n/**\n * Helper is the base class for all helper classes.\n *\n * @author Fabien Potencier \n */\nabstract class Helper implements HelperInterface\n{\n protected ?HelperSet $helperSet = null;\n\n public function setHelperSet(?HelperSet $helperSet): void\n {\n $this->helperSet = $helperSet;\n }\n\n", "suffix": "e string will use.\n */\n public static function width(?string $string): int\n {\n $string ??= '';\n\n if ('' === $string) {\n return 0;\n }\n\n // Fast path for ASCII-only strings (no multi-byte, no control chars exc", "middle": " public function getHelperSet(): ?HelperSet\n {\n return $this->helperSet;\n }\n\n /**\n * Returns the width of a string, using mb_strwidth if it is available.\n * The width is how many characters positions th", "meta": {"filepath": "src/Symfony/Component/Console/Helper/Helper.php", "language": "php", "file_size": 5113, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\n/**\n * Simple output wrapper for \"tagged outputs\" instead of wordwrap(). This solution is based on a StackOverflow\n * answer: https://stackoverflow.com/a/20434776/1476819 from user557597 (alias SLN).\n *\n * (?:\n * # -- Words/Characters\n * ( # (1 ", "suffix": "ed, non-linebreak whitespace\n * (?: # break types:\n * (?<= [^\\S\\r\\n] ) # 1. - Behind a non-linebreak whitespace\n * [^\\S\\r\\n]? # ( optionally accept an e", "middle": "start)\n * (?> # Atomic Group - Match words with valid breaks\n * .{1,16} # 1-N characters\n * # Followed by one of 4 prioritiz", "meta": {"filepath": "src/Symfony/Component/Console/Helper/OutputWrapper.php", "language": "php", "file_size": 3011, "cut_index": 563, "middle_length": 229}} {"prefix": "verbose';\n public const FORMAT_VERY_VERBOSE = 'very_verbose';\n public const FORMAT_DEBUG = 'debug';\n public const FORMAT_NORMAL = 'normal';\n\n private const FORMAT_VERBOSE_NOMAX = 'verbose_nomax';\n private const FORMAT_VERY_VERBOSE_NOMAX = 'very_verbose_nomax';\n private const FORMAT_DEBUG_NOMAX = 'debug_nomax';\n private const FORMAT_NORMAL_NOMAX = 'normal_nomax';\n\n private int $barWidth = 28;\n private string $barChar;\n private string $emptyBarChar = '-';\n private string $prog", "suffix": "sBetweenRedraws = 0;\n private float $maxSecondsBetweenRedraws = 1;\n private OutputInterface $output;\n private int $step = 0;\n private int $startingStep = 0;\n private ?int $max = null;\n private int $startTime;\n private int $stepWidth;\n ", "middle": "ressChar = '>';\n private ?string $format = null;\n private ?string $internalFormat = null;\n private ?int $redrawFreq = 1;\n private int $writeCount = 0;\n private float $lastWriteTime = 0;\n private float $minSecond", "meta": {"filepath": "src/Symfony/Component/Console/Helper/ProgressBar.php", "language": "php", "file_size": 24280, "cut_index": 1331, "middle_length": 229}} {"prefix": "StreamableInputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleSectionOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\Question\\FileQuestion;\nuse Symfony\\Component\\Console\\Question\\Question;\nuse Symfony\\Component\\Console\\Terminal;\nuse Symfony\\Component\\Validator\\Validation;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\nuse fu", "suffix": " $stty = true;\n private static bool $stdinIsInteractive;\n\n public function __construct(\n private ?EventDispatcherInterface $dispatcher = null,\n ) {\n }\n\n /**\n * Asks a question to the user.\n *\n * @return mixed The user answ", "middle": "nction Symfony\\Component\\String\\s;\n\n/**\n * The QuestionHelper class provides helpers to interact with the user.\n *\n * @author Fabien Potencier \n */\nclass QuestionHelper extends Helper\n{\n private static bool", "meta": {"filepath": "src/Symfony/Component/Console/Helper/QuestionHelper.php", "language": "php", "file_size": 22698, "cut_index": 1331, "middle_length": 229}} {"prefix": "nWidths = [];\n private int $numberOfColumns;\n private TableStyle $style;\n private array $columnStyles = [];\n private array $columnWidths = [];\n private array $columnMaxWidths = [];\n private bool $rendered = false;\n private string $displayOrientation = self::DISPLAY_ORIENTATION_DEFAULT;\n\n private static array $styles;\n\n public function __construct(\n private OutputInterface $output,\n ) {\n self::$styles ??= self::initStyles();\n\n $this->setStyle('default');\n ", "suffix": " }\n\n /**\n * Gets a style definition by name.\n */\n public static function getStyleDefinition(string $name): TableStyle\n {\n self::$styles ??= self::initStyles();\n\n return self::$styles[$name] ?? throw new InvalidArgumentExce", "middle": " }\n\n /**\n * Sets a style definition.\n */\n public static function setStyleDefinition(string $name, TableStyle $style): void\n {\n self::$styles ??= self::initStyles();\n\n self::$styles[$name] = $style;\n", "meta": {"filepath": "src/Symfony/Component/Console/Helper/Table.php", "language": "php", "file_size": 35293, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\DataCollector;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Debug\\CliRequest;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\SignalRegistry\\SignalMap;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\n\n/**\n * @internal\n *\n", "suffix": "request instanceof CliRequest) {\n return;\n }\n\n $command = $request->command;\n $application = $command->getApplication();\n\n $this->data = [\n 'command' => $command->invokableCommandInfo ?? $this->cloneVar($co", "middle": " * @author Jules Pietri \n */\nfinal class CommandDataCollector extends DataCollector\n{\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n if (!$", "meta": {"filepath": "src/Symfony/Component/Console/DataCollector/CommandDataCollector.php", "language": "php", "file_size": 6829, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Logger;\n\nuse Psr\\Log\\AbstractLogger;\nuse Psr\\Log\\InvalidArgumentException;\nuse Psr\\Log\\LogLevel;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * PSR-3 compliant console logger.\n *\n * @author Kévin Dunglas \n *\n * @see https://www.php-fig.org/psr/p", "suffix": " LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,\n LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL,\n LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,\n LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,\n ", "middle": "sr-3/\n */\nclass ConsoleLogger extends AbstractLogger\n{\n public const INFO = 'info';\n public const ERROR = 'error';\n\n private array $verbosityLevelMap = [\n LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,\n", "meta": {"filepath": "src/Symfony/Component/Console/Logger/ConsoleLogger.php", "language": "php", "file_size": 4199, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Descriptor;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\n/**\n * JSON descriptor.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass JsonDescriptor extends Descriptor\n{\n protected function describeInputArgument", "suffix": "oid\n {\n $this->writeData($this->getInputOptionData($option), $options);\n if ($option->isNegatable()) {\n $this->writeData($this->getInputOptionData($option, true), $options);\n }\n }\n\n protected function describeInputD", "middle": "(InputArgument $argument, array $options = []): void\n {\n $this->writeData($this->getInputArgumentData($argument), $options);\n }\n\n protected function describeInputOption(InputOption $option, array $options = []): v", "meta": {"filepath": "src/Symfony/Component/Console/Descriptor/JsonDescriptor.php", "language": "php", "file_size": 5745, "cut_index": 716, "middle_length": 229}} {"prefix": "put\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\n/**\n * XML descriptor.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass XmlDescriptor extends Descriptor\n{\n public function getInputDefinitionDocument(InputDefinition $definition): \\DOMDocument\n {\n $dom = new \\DOMDocument('1.0', 'UTF-8');\n $dom->appendChild($definitionXML = $dom->createElement('definition'));\n\n $definitionXML->ap", "suffix": " $definitionXML->appendChild($optionsXML = $dom->createElement('options'));\n foreach ($definition->getOptions() as $option) {\n $this->appendDocument($optionsXML, $this->getInputOptionDocument($option));\n }\n\n return $dom", "middle": "pendChild($argumentsXML = $dom->createElement('arguments'));\n foreach ($definition->getArguments() as $argument) {\n $this->appendDocument($argumentsXML, $this->getInputArgumentDocument($argument));\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Descriptor/XmlDescriptor.php", "language": "php", "file_size": 9709, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Question;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\n\n/**\n * Represents a choice question.\n *\n * @author Fabien Potencier \n */\nclass ChoiceQuestion extends Question\n{\n private bool $multiselect = false;\n private string $prompt = ' > ';\n private string $errorMessage = 'Value \"%s\" is invalid';\n\n /**\n * @param string $question The question to ask to", "suffix": "construct(\n string $question,\n private array $choices,\n string|bool|int|float|null $default = null,\n ) {\n if (!$choices) {\n throw new \\LogicException('Choice question must have at least 1 choice available.');\n ", "middle": " the user\n * @param array $choices The list of available choices\n * @param string|bool|int|float|null $default The default answer to return\n */\n public function __", "meta": {"filepath": "src/Symfony/Component/Console/Question/ChoiceQuestion.php", "language": "php", "file_size": 5185, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Question;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * Represents a Question.\n *\n * @author Fabien Potencier \n */\nclass Question\n{\n private ?int $attempts = null;\n private bool $hidden = false;\n private bool $hiddenFallback = true;\n /**\n * @var (\\Closure(string):string[])|nul", "suffix": " ?\\Closure $normalizer = null;\n private bool $trimmable = true;\n private bool $multiline = false;\n private ?int $timeout = null;\n /**\n * @var Constraint[]\n */\n private array $constraints = [];\n\n /**\n * @param string ", "middle": "l\n */\n private ?\\Closure $autocompleterCallback = null;\n /**\n * @var (\\Closure(mixed):mixed)|null\n */\n private ?\\Closure $validator = null;\n /**\n * @var (\\Closure(mixed):mixed)|null\n */\n private", "meta": {"filepath": "src/Symfony/Component/Console/Question/Question.php", "language": "php", "file_size": 8289, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Descriptor\\DescriptorInterface;\nuse Symfony\\Component\\Console\\Descriptor\\JsonDescriptor;\nuse Symfony\\Component\\Console\\Descriptor\\MarkdownDescriptor;\nuse Symfony\\Component\\Console\\Descriptor\\ReStructuredTextDescriptor;\nuse Symfony\\Component\\Console\\D", "suffix": "per method to describe objects in various formats.\n *\n * @author Jean-François Simon \n */\nclass DescriptorHelper extends Helper\n{\n /**\n * @var DescriptorInterface[]\n */\n private array $descriptors = [];\n\n public functio", "middle": "escriptor\\TextDescriptor;\nuse Symfony\\Component\\Console\\Descriptor\\XmlDescriptor;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * This class adds hel", "meta": {"filepath": "src/Symfony/Component/Console/Helper/DescriptorHelper.php", "language": "php", "file_size": 2617, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\n\n/**\n * HelperSet represents a set of helpers to be used with a command.\n *\n * @author Fabien Potencier \n *\n * @implements \\IteratorAggregate\n ", "suffix": "elpers = [])\n {\n foreach ($helpers as $alias => $helper) {\n $this->set($helper, \\is_int($alias) ? null : $alias);\n }\n }\n\n public function set(HelperInterface $helper, ?string $alias = null): void\n {\n $this->helpe", "middle": "*/\nclass HelperSet implements \\IteratorAggregate\n{\n /** @var array */\n private array $helpers = [];\n\n /**\n * @param HelperInterface[] $helpers\n */\n public function __construct(array $h", "meta": {"filepath": "src/Symfony/Component/Console/Helper/HelperSet.php", "language": "php", "file_size": 1837, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Output\\ConsoleSectionOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @author Kevin Bond \n */\nclass ProgressIndicator\n{\n private const FORMATS = [\n 'normal' => ' %indicator% %message%',\n 'normal_no_ansi' => ' %message%',\n\n", "suffix": "i' => ' %message% (%elapsed:6s%, %memory:6s%)',\n ];\n\n private int $startTime;\n private ?string $format = null;\n private ?string $message = null;\n private array $indicatorValues;\n private int $indicatorCurrent;\n private string $finished", "middle": " 'verbose' => ' %indicator% %message% (%elapsed:6s%)',\n 'verbose_no_ansi' => ' %message% (%elapsed:6s%)',\n\n 'very_verbose' => ' %indicator% %message% (%elapsed:6s%, %memory:6s%)',\n 'very_verbose_no_ans", "meta": {"filepath": "src/Symfony/Component/Console/Helper/ProgressIndicator.php", "language": "php", "file_size": 7552, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\n\n/**\n * @author Abdellatif Ait boudad \n */\nclass TableCell\n{\n private array $options = [\n 'rowspan' => 1,\n 'colspan' => 1,\n 'style' => null,\n", "suffix": " throw new InvalidArgumentException(\\sprintf('The TableCell does not support the following options: \\'%s\\'.', implode('\\', \\'', $diff)));\n }\n\n if (isset($options['style']) && !$options['style'] instanceof TableCellStyle) {\n ", "middle": " ];\n\n public function __construct(\n private string $value = '',\n array $options = [],\n ) {\n // check option names\n if ($diff = array_diff(array_keys($options), array_keys($this->options))) {\n ", "meta": {"filepath": "src/Symfony/Component/Console/Helper/TableCell.php", "language": "php", "file_size": 1728, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Descriptor;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\CommandNotFoundException;\n\n/**\n * @author Jean-François Simon \n *\n * @internal\n */\nclass ApplicationDescription\n{\n public const GLOBAL_NAMESPACE = '_global';\n\n", "suffix": "(\n private Application $application,\n private ?string $namespace = null,\n private bool $showHidden = false,\n ) {\n }\n\n public function getNamespaces(): array\n {\n if (!isset($this->namespaces)) {\n $this->ins", "middle": " private array $namespaces;\n\n /**\n * @var array\n */\n private array $commands;\n\n /**\n * @var array\n */\n private array $aliases = [];\n\n public function __construct", "meta": {"filepath": "src/Symfony/Component/Console/Descriptor/ApplicationDescription.php", "language": "php", "file_size": 3690, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\SignalRegistry;\n\nfinal class SignalRegistry\n{\n /**\n * @var array>\n */\n private array $signalHandlers = [];\n\n /**\n * @var array>>\n */\n private array $stack = [];\n\n /**\n * @var array\n */\n private array $originalHandlers = [];\n", "suffix": "{\n $previous = pcntl_signal_get_handler($signal);\n\n if (!isset($this->originalHandlers[$signal])) {\n $this->originalHandlers[$signal] = $previous;\n }\n\n if (!isset($this->signalHandlers[$signal])) {\n if (\\is", "middle": "\n public function __construct()\n {\n if (\\function_exists('pcntl_async_signals')) {\n pcntl_async_signals(true);\n }\n }\n\n public function register(int $signal, callable $signalHandler): void\n ", "meta": {"filepath": "src/Symfony/Component/Console/SignalRegistry/SignalRegistry.php", "language": "php", "file_size": 3879, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\n\n/**\n * The Formatter class provides helpers to format messages.\n *\n * @author Fabien Potencier \n */\nclass FormatterHelper extends Helper\n{\n /**\n * Formats a message within a section.\n */\n ", "suffix": "lock of text.\n */\n public function formatBlock(string|array $messages, string $style, bool $large = false): string\n {\n if (!\\is_array($messages)) {\n $messages = [$messages];\n }\n\n $len = 0;\n $lines = [];\n ", "middle": "public function formatSection(string $section, string $message, string $style = 'info'): string\n {\n return \\sprintf('<%s>[%s] %s', $style, $section, $style, $message);\n }\n\n /**\n * Formats a message as a b", "meta": {"filepath": "src/Symfony/Component/Console/Helper/FormatterHelper.php", "language": "php", "file_size": 2238, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Process\\Exception\\ProcessFailedException;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * The ProcessHelper class provides helpers to run external processes.\n *\n * @author Fabien Potencier \n *\n * @final\n */\nclass ProcessHelper extends Helper\n{\n /**\n * Runs an external process.\n *\n * @param array|Process $cmd An instance of Process or an array of the command and arguments\n * @pa", "meta": {"filepath": "src/Symfony/Component/Console/Helper/ProcessHelper.php", "language": "php", "file_size": 4829, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Descriptor;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Comp", "suffix": "erface\n{\n protected OutputInterface $output;\n\n public function describe(OutputInterface $output, object $object, array $options = []): void\n {\n $this->output = $output;\n\n match (true) {\n $object instanceof InputArgument =>", "middle": "onent\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @author Jean-François Simon \n *\n * @internal\n */\nabstract class Descriptor implements DescriptorInt", "meta": {"filepath": "src/Symfony/Component/Console/Descriptor/Descriptor.php", "language": "php", "file_size": 2656, "cut_index": 563, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\n/**\n * HelperInterface is the interface all helpers must implement.\n *\n * @author Fabien Potencier \n */\ninterface HelperInterface\n{\n /**\n * Sets the helper set associated with this helper.\n */\n public", "suffix": "elperSet(?HelperSet $helperSet): void;\n\n /**\n * Gets the helper set associated with this helper.\n */\n public function getHelperSet(): ?HelperSet;\n\n /**\n * Returns the canonical name of this helper.\n */\n public function getName()", "middle": " function setH", "meta": {"filepath": "src/Symfony/Component/Console/Helper/HelperInterface.php", "language": "php", "file_size": 799, "cut_index": 517, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Descriptor;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Helper\\Helper;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Markdown descriptor.\n *\n * @author Jean-François Simon \n *\n", "suffix": "etDecorated(false);\n\n parent::describe($output, $object, $options);\n\n $output->setDecorated($decorated);\n }\n\n protected function write(string $content, bool $decorated = true): void\n {\n parent::write($content, $decorated);\n ", "middle": " * @internal\n */\nclass MarkdownDescriptor extends Descriptor\n{\n public function describe(OutputInterface $output, object $object, array $options = []): void\n {\n $decorated = $output->isDecorated();\n $output->s", "meta": {"filepath": "src/Symfony/Component/Console/Descriptor/MarkdownDescriptor.php", "language": "php", "file_size": 6408, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\Question\\ConfirmationQuestion;\nuse Symfony\\Component\\Console\\Question\\Question;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n", "suffix": "ion): void\n {\n $text = OutputFormatter::escapeTrailingBackslash($question->getQuestion());\n $default = $question->getDefault();\n\n if ($question->isMultiline()) {\n $text .= \\sprintf(' (press %s to continue)', $this->getEof", "middle": " * Symfony Style Guide compliant question helper.\n *\n * @author Kevin Bond \n */\nclass SymfonyQuestionHelper extends QuestionHelper\n{\n protected function writePrompt(OutputInterface $output, Question $quest", "meta": {"filepath": "src/Symfony/Component/Console/Helper/SymfonyQuestionHelper.php", "language": "php", "file_size": 3281, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass DescriptorCommandMbString extends Command\n{\n protected function configure(): void\n {\n $this\n ->setName('descriptor:åèä')\n ->se", "suffix": "->setHelp('command åèä help')\n ->addUsage('-o|--option_name ')\n ->addUsage('')\n ->addArgument('argument_åèä', InputArgument::REQUIRED)\n ->addOption('option_åèä', 'o', InputOption::VA", "middle": "tDescription('command åèä description')\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/DescriptorCommandMbString.php", "language": "php", "file_size": 957, "cut_index": 606, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Descriptor;\n\nuse Symfony\\Component\\Console\\Descriptor\\JsonDescriptor;\n\nclass JsonDescriptorTest extends AbstractDescriptorTestCase\n{\n protected function getDescriptor()\n {\n return new JsonDescriptor();\n }\n\n protected", "suffix": "te function normalizeOutputRecursively($output)\n {\n if (\\is_array($output)) {\n return array_map($this->normalizeOutputRecursively(...), $output);\n }\n\n return match ($output) {\n null, true, false => $output,\n ", "middle": " static function getFormat()\n {\n return 'json';\n }\n\n protected function normalizeOutput($output)\n {\n return array_map($this->normalizeOutputRecursively(...), json_decode($output, true));\n }\n\n priva", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Descriptor/JsonDescriptorTest.php", "language": "php", "file_size": 1073, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Descriptor;\n\nuse Symfony\\Component\\Console\\Descriptor\\MarkdownDescriptor;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DescriptorApplicationMbString;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DescriptorCommandMbString;\n\nclass MarkdownDescrip", "suffix": "_mbstring' => new DescriptorCommandMbString()]\n ));\n }\n\n public static function getDescribeApplicationTestData()\n {\n return self::getDescriptionTestData(array_merge(\n ObjectsProvider::getApplications(),\n ['appli", "middle": "torTest extends AbstractDescriptorTestCase\n{\n public static function getDescribeCommandTestData()\n {\n return self::getDescriptionTestData(array_merge(\n ObjectsProvider::getCommands(),\n ['command", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Descriptor/MarkdownDescriptorTest.php", "language": "php", "file_size": 1255, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Descriptor;\n\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DescriptorApplication1;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DescriptorApplication2;\nuse Symfony\\Component\\Console\\", "suffix": "()\n {\n return [\n 'input_argument_1' => new InputArgument('argument_name', InputArgument::REQUIRED),\n 'input_argument_2' => new InputArgument('argument_name', InputArgument::IS_ARRAY, 'argument description'),\n 'inp", "middle": "Tests\\Fixtures\\DescriptorCommand1;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DescriptorCommand2;\n\n/**\n * @author Jean-François Simon \n */\nclass ObjectsProvider\n{\n public static function getInputArguments", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Descriptor/ObjectsProvider.php", "language": "php", "file_size": 4054, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Descriptor;\n\nuse Symfony\\Component\\Console\\Descriptor\\ReStructuredTextDescriptor;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DescriptorApplicationMbString;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DescriptorCommandMbString;\n\nclass ReStruc", "suffix": " ['command_mbstring' => new DescriptorCommandMbString()]\n ));\n }\n\n public static function getDescribeApplicationTestData()\n {\n return self::getDescriptionTestData(array_merge(\n ObjectsProvider::getApplications(),\n ", "middle": "turedTextDescriptorTest extends AbstractDescriptorTestCase\n{\n public static function getDescribeCommandTestData()\n {\n return self::getDescriptionTestData(array_merge(\n ObjectsProvider::getCommands(),\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Descriptor/ReStructuredTextDescriptorTest.php", "language": "php", "file_size": 1280, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Descriptor;\n\nuse Symfony\\Component\\Console\\Descriptor\\TextDescriptor;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DescriptorApplication2;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DescriptorApplicationMbString;\nuse Symfony\\Component\\Console\\Tests\\Fixtur", "suffix": "tsProvider::getCommands(),\n ['command_mbstring' => new DescriptorCommandMbString()]\n ));\n }\n\n public static function getDescribeApplicationTestData()\n {\n return self::getDescriptionTestData(array_merge(\n Objects", "middle": "es\\DescriptorCommandMbString;\n\nclass TextDescriptorTest extends AbstractDescriptorTestCase\n{\n public static function getDescribeCommandTestData()\n {\n return self::getDescriptionTestData(array_merge(\n Objec", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Descriptor/TextDescriptorTest.php", "language": "php", "file_size": 1602, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\SignalRegistry;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\SignalRegistry\\SignalMap;\n\nclass SignalMapTest extends TestCase\n{\n #[RequiresPhpExtension('pcntl')]\n public function testSignalExists()\n {\n $this->asser", "suffix": " $this->assertSame('SIGKILL', SignalMap::getSignalName(\\SIGKILL));\n $this->assertSame('SIGTERM', SignalMap::getSignalName(\\SIGTERM));\n $this->assertSame('SIGSYS', SignalMap::getSignalName(\\SIGSYS));\n }\n\n public function testSigna", "middle": "tSame('SIGINT', SignalMap::getSignalName(\\SIGINT));\n", "meta": {"filepath": "src/Symfony/Component/Console/Tests/SignalRegistry/SignalMapTest.php", "language": "php", "file_size": 981, "cut_index": 582, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\SignalRegistry;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\SignalRegistry\\SignalRegistry;\n\n#[RequiresPhpExtension('pcntl')]\nclass SignalRegistryTest extends TestCase\n{\n protected function tearDown(): void\n {\n pcntl_async_signals(false);\n // We reset all signals to their default value to avoid side effects\n pcntl_signal(\\SIGINT, \\SIG", "suffix": "gnalIsHandled()\n {\n $signalRegistry = new SignalRegistry();\n\n $isHandled = false;\n $signalRegistry->register(\\SIGUSR1, static function () use (&$isHandled) {\n $isHandled = true;\n });\n\n posix_kill(posix_getpi", "middle": "_DFL);\n pcntl_signal(\\SIGTERM, \\SIG_DFL);\n pcntl_signal(\\SIGUSR1, \\SIG_DFL);\n pcntl_signal(\\SIGUSR2, \\SIG_DFL);\n pcntl_signal(\\SIGALRM, \\SIG_DFL);\n }\n\n public function testOneCallbackForASignalSi", "meta": {"filepath": "src/Symfony/Component/Console/Tests/SignalRegistry/SignalRegistryTest.php", "language": "php", "file_size": 7765, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\n\nclass ChoiceQuestionTest extends TestCase\n{\n #[DataProvider('selectUseCases')]\n public function testSelectUseCases($multiSelect, $answers, $expected, $message, $default = null)\n {\n $question = new ChoiceQuestion('A question', [\n 'First response',\n 'Sec", "suffix": " = $question->getValidator();\n $actual = $validator($answer);\n\n $this->assertEquals($actual, $expected, $message);\n }\n }\n\n public static function selectUseCases()\n {\n return [\n [\n false", "middle": "ond response',\n 'Third response',\n 'Fourth response',\n null,\n ], $default);\n\n $question->setMultiselect($multiSelect);\n\n foreach ($answers as $answer) {\n $validator", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Question/ChoiceQuestionTest.php", "language": "php", "file_size": 5598, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Question\\ConfirmationQuestion;\n\nclass ConfirmationQuestionTest extends TestCase\n{\n #[DataProvider('normalizerUsecases')]\n public fu", "suffix": "r();\n $actual = $normalizer($answer);\n $this->assertEquals($expected, $actual, \\sprintf($message, $answer));\n }\n }\n\n public static function normalizerUsecases()\n {\n return [\n [\n true,\n ", "middle": "nction testDefaultRegexUsecases($default, $answers, $expected, $message)\n {\n $sut = new ConfirmationQuestion('A question', $default);\n\n foreach ($answers as $answer) {\n $normalizer = $sut->getNormalize", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Question/ConfirmationQuestionTest.php", "language": "php", "file_size": 1864, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Question;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Question\\FileQuestion;\nuse Symfony\\Component\\Validator\\Constraints\\File;\n\nclass FileQuestionTest extends TestCase\n{\n public function testGetQ", "suffix": "uestion('Provide a file:');\n\n $this->assertTrue($question->isPasteAllowed());\n $this->assertTrue($question->isPathAllowed());\n $this->assertFalse($question->isTrimmable());\n }\n\n public function testWithAllowPasteFalse()\n {\n ", "middle": "uestion()\n {\n $question = new FileQuestion('Provide a file:');\n\n $this->assertSame('Provide a file:', $question->getQuestion());\n }\n\n public function testDefaultOptions()\n {\n $question = new FileQ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Question/FileQuestionTest.php", "language": "php", "file_size": 2271, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Question;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Question\\Question;\n\nclass QuestionTest extends TestCase\n{\n private Question $question;\n\n protected function setUp(): void\n {\n $this->question = new Question('Test question');\n }\n\n public static function providerTrueFalse()\n {\n return [[true], [false]];\n }\n\n public function test", "suffix": "sertSame('Default value', $question->getDefault());\n }\n\n public function testGetDefaultDefault()\n {\n self::assertNull($this->question->getDefault());\n }\n\n #[DataProvider('providerTrueFalse')]\n public function testIsSetHidden(bool $", "middle": "GetQuestion()\n {\n self::assertSame('Test question', $this->question->getQuestion());\n }\n\n public function testGetDefault()\n {\n $question = new Question('Test question', 'Default value');\n self::as", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Question/QuestionTest.php", "language": "php", "file_size": 8651, "cut_index": 716, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Input\\StreamableInputInterface;\n\nabstract class AbstractQuestionHelperTestCase extends TestCase\n{\n protected function createStreamableInputInterfaceMock($stream = null, $interactive = true)\n {\n $", "suffix": "lass);\n $mock\n ->method('isInteractive')\n ->willReturn($interactive);\n\n if ($stream) {\n $mock\n ->method('getStream')\n ->willReturn($stream);\n }\n\n return $mock;\n }", "middle": "mock = $this->createStub(StreamableInputInterface::c", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/AbstractQuestionHelperTestCase.php", "language": "php", "file_size": 870, "cut_index": 559, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClassExistsMock;\nuse Symfony\\Component\\Console\\Helper\\Dumper;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\VarDumper", "suffix": " CliDumper::class => false,\n ]);\n }\n\n public static function tearDownAfterClass(): void\n {\n ClassExistsMock::withMockedClasses([]);\n }\n\n #[DataProvider('provideVariables')]\n public function testInvoke($variable, $primit", "middle": "\\Dumper\\CliDumper;\n\nclass DumperNativeFallbackTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n ClassExistsMock::register(Dumper::class);\n ClassExistsMock::withMockedClasses([\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/DumperNativeFallbackTest.php", "language": "php", "file_size": 1543, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Helper\\Dumper;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait;\n\nclas", "suffix": "ion tearDownAfterClass(): void\n {\n putenv('DUMP_LIGHT_ARRAY');\n putenv('DUMP_COMMA_SEPARATOR');\n }\n\n #[DataProvider('provideVariables')]\n public function testInvoke($variable)\n {\n $dumper = new Dumper(new NullOutput());\n", "middle": "s DumperTest extends TestCase\n{\n use VarDumperTestTrait;\n\n public static function setUpBeforeClass(): void\n {\n putenv('DUMP_LIGHT_ARRAY=1');\n putenv('DUMP_COMMA_SEPARATOR=1');\n }\n\n public static funct", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/DumperTest.php", "language": "php", "file_size": 1353, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Exception\\InvalidFileException;\nuse Symfony\\Component\\Console\\Helper\\FileInputHelper;\nuse Symfony\\Component\\Console\\Helper\\TerminalInputHelper;\nuse Symfony\\Component\\Console\\Input\\File\\InputFile;\nuse Symfony\\Comp", "suffix": " = 'sf_console_bad_'.bin2hex(random_bytes(4)).'.txt';\n $path = sys_get_temp_dir().\\DIRECTORY_SEPARATOR.$name;\n\n if (false === @file_put_contents($path, 'x')) {\n $this->markTestSkipped('Filesystem does not allow \"<\" / ", "middle": "onent\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\Console\\Question\\FileQuestion;\n\nclass FileInputHelperTest extends TestCase\n{\n public function testDisplayFileEscapesFormatterMetaCharactersInPath()\n {\n $name", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/FileInputHelperTest.php", "language": "php", "file_size": 2844, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Helper\\FormatterHelper;\n\nclass FormatterHelperTest extends TestCase\n{\n public function testFormatSection()\n {\n $formatter = new FormatterHelper();\n\n $this->assertEquals(\n '[cli] Some text to display',\n $forma", "suffix": " $this->assertEquals(\n ' Some text to display ',\n $formatter->formatBlock('Some text to display', 'error'),\n '::formatBlock() formats a message in a block'\n );\n\n $this->assertEquals(\n ", "middle": "tter->formatSection('cli', 'Some text to display'),\n '::formatSection() formats a message in a section'\n );\n }\n\n public function testFormatBlock()\n {\n $formatter = new FormatterHelper();\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/FormatterHelperTest.php", "language": "php", "file_size": 4413, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Console\\Helper\\HelperInterface;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\n\nclass HelperSetTest extends TestCase\n{\n public function testConstructor()\n {\n $mock_helper = $this->getGenericMockHel", "suffix": "$this->assertTrue($helperset->has('fake_helper_alias'), '__construct sets helper alias for given helper');\n }\n\n public function testSet()\n {\n $helperset = new HelperSet();\n $helperset->set($this->getGenericMockHelper('fake_helper', $", "middle": "per('fake_helper');\n $helperset = new HelperSet(['fake_helper_alias' => $mock_helper]);\n\n $this->assertEquals($mock_helper, $helperset->get('fake_helper_alias'), '__construct sets given helper to helpers');\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php", "language": "php", "file_size": 4758, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Helper\\Helper;\n\nclass HelperTest extends TestCase\n{\n public static function formatTimeProvider()\n {\n ", "suffix": "[59.21, '59 s', 1],\n [59.21, '59 s, 210 ms', 5],\n [60, '1 min', 2],\n [61, '1 min, 1 s', 2],\n [119, '1 min, 59 s', 2],\n [120, '2 min', 2],\n [121, '2 min, 1 s', 2],\n ", "middle": " return [\n [0, '< 1 ms', 1],\n [0.0004, '< 1 ms', 1],\n [0.95, '950 ms', 1],\n [1, '1 s', 1],\n [2, '2 s', 2],\n [59, '59 s', 1],\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/HelperTest.php", "language": "php", "file_size": 2409, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Helper\\OutputWrapper;\n\nclass OutputWrapperTest extends TestCase\n{\n #[DataProvider('textProvider')]\n public function testBasicWrap(string $text, int $width, boo", "suffix": "tProvider(): iterable\n {\n $baseTextWithUtf8AndUrl = 'Árvíztűrőtükörfúrógép https://github.com/symfony/symfony Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vestibulum nulla quis urna maximus porttitor. Donec", "middle": "l $allowCutUrls, string $expected)\n {\n $wrapper = new OutputWrapper($allowCutUrls);\n $result = $wrapper->wrap($text, $width);\n $this->assertEquals($expected, $result);\n }\n\n public static function tex", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/OutputWrapperTest.php", "language": "php", "file_size": 2367, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Helper\\DebugFormatterHelper;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Helper\\ProcessHelper;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\nuse Symfony\\Component\\Process\\Process;\n\nclass ProcessHelperTest extends TestCase\n{\n #[DataProvider('provideCommandsAndOutput')]\n pub", "suffix": "cmd);\n }\n\n $helper = new ProcessHelper();\n $helper->setHelperSet(new HelperSet([new DebugFormatterHelper()]));\n $outputStream = $this->getOutputStream($verbosity);\n $helper->run($outputStream, $cmd, $error);\n\n $exp", "middle": "lic function testVariousProcessRuns(array $expectedOutputLines, bool $successful, Process|string|array $cmd, int $verbosity, ?string $error)\n {\n if (\\is_string($cmd)) {\n $cmd = Process::fromShellCommandline($", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/ProcessHelperTest.php", "language": "php", "file_size": 5785, "cut_index": 716, "middle_length": 229}} {"prefix": "ic function testAdvance()\n {\n $bar = new ProgressBar($output = $this->getOutputStream(), 0, 0);\n $bar->start();\n $bar->advance();\n\n rewind($output->getStream());\n $this->assertEquals(\n ' 0 [>---------------------------]'.$this->osc(3, 0).\n $this->generateOutput(' 1 [->--------------------------]'),\n stream_get_contents($output->getStream())\n );\n }\n\n public function testResumeNoMax()\n {\n $bar = new ProgressBar", "suffix": "c(3, 0).\n $this->generateOutput(' 16 [---------------->-----------]'),\n stream_get_contents($output->getStream())\n );\n }\n\n public function testResumeWithMax()\n {\n $bar = new ProgressBar($output = $this->getOut", "middle": "($output = $this->getOutputStream(), 0, 0);\n $bar->start(null, 15);\n $bar->advance();\n\n rewind($output->getStream());\n\n $this->assertEquals(\n ' 15 [--------------->------------]'.$this->os", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/ProgressBarTest.php", "language": "php", "file_size": 61650, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Helper\\ProgressIndicator;\nuse Symfony\\Component\\Console\\Output\\ConsoleSectionOutput;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\n\n#[Group('time-sensitive')]\nclass ProgressIndicatorTest extends TestCase\n{\n public", "suffix": " $bar->advance();\n usleep(101000);\n $bar->advance();\n usleep(101000);\n $bar->advance();\n usleep(101000);\n $bar->advance();\n usleep(101000);\n $bar->setMessage('Advancing...');\n $bar->advance();\n", "middle": " function testDefaultIndicator()\n {\n $bar = new ProgressIndicator($output = $this->getOutputStream());\n $bar->start('Starting...');\n usleep(101000);\n $bar->advance();\n usleep(101000);\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/ProgressIndicatorTest.php", "language": "php", "file_size": 8961, "cut_index": 716, "middle_length": 229}} {"prefix": "lper();\n\n $helperSet = new HelperSet([new FormatterHelper()]);\n $questionHelper->setHelperSet($helperSet);\n\n $heroes = ['Superman', 'Batman', 'Spiderman'];\n\n $inputStream = $this->getInputStream(\"\\n1\\n 1 \\nFabien\\n1\\nFabien\\n1\\n0,2\\n 0 , 2 \\n\\n\\n\");\n\n $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '2');\n $question->setMaxAttempts(1);\n // first answer is an empty answer, we're supposed to receive the default value\n $this-", "suffix": "roes);\n $question->setMaxAttempts(1);\n $this->assertEquals('Batman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));\n $this->assertEquals('Batman', $questionHel", "middle": ">assertEquals('Spiderman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));\n\n $question = new ChoiceQuestion('What is your favorite superhero?', $he", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php", "language": "php", "file_size": 50735, "cut_index": 2151, "middle_length": 229}} {"prefix": "Console\\Helper\\FormatterHelper;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Helper\\SymfonyQuestionHelper;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n#[Group('tty')]\nclass SymfonyQuestionHelperTest extends AbstractQuestionHelperTestCase\n{\n public function testAskChoice()\n {\n $questionHelper = new Sym", "suffix": "tStream(\"\\n1\\n 1 \\nFabien\\n1\\nFabien\\n1\\n0,2\\n 0 , 2 \\n\\n\\n\");\n\n $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '2');\n $question->setMaxAttempts(1);\n // first answer is an empty answer, we're supposed to", "middle": "fonyQuestionHelper();\n\n $helperSet = new HelperSet([new FormatterHelper()]);\n $questionHelper->setHelperSet($helperSet);\n\n $heroes = ['Superman', 'Batman', 'Spiderman'];\n\n $inputStream = $this->getInpu", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/SymfonyQuestionHelperTest.php", "language": "php", "file_size": 10340, "cut_index": 921, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Helper\\TableCellStyle;\n\nclass TableCellStyleTest extends TestCase\n{\n public function testCreateTa", "suffix": "\n {\n $tableCellStyle = new TableCellStyle(['fg' => 'red']);\n $this->assertEquals('red', $tableCellStyle->getOptions()['fg']);\n\n $this->expectException(InvalidArgumentException::class);\n\n new TableCellStyle(['wrong_key' => nul", "middle": "bleCellStyle()", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/TableCellStyleTest.php", "language": "php", "file_size": 800, "cut_index": 517, "middle_length": 14}} {"prefix": "---+--------------------------+------------------+\n | 99921-58-10-7 | Divine Comedy | Dante Alighieri |\n | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |\n | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |\n | 80-902734-1-6 | And Then There Were None | Agatha Christie |\n +---------------+--------------------------+------------------+\n\n TABLE,\n ]", "suffix": " |---------------|--------------------------|------------------|\n | 99921-58-10-7 | Divine Comedy | Dante Alighieri |\n | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |\n ", "middle": ",\n [\n ['ISBN', 'Title', 'Author'],\n $books,\n 'markdown',\n <<<'TABLE'\n | ISBN | Title | Author |\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/TableTest.php", "language": "php", "file_size": 89442, "cut_index": 3790, "middle_length": 229}} {"prefix": "eeNode;\nuse Symfony\\Component\\Console\\Helper\\TreeStyle;\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\n\nclass TreeHelperTest extends TestCase\n{\n public function testRenderWithoutNode()\n {\n $output = new BufferedOutput();\n $tree = TreeHelper::createTree($output);\n\n $tree->render();\n $this->assertSame(\\PHP_EOL, $output->fetch());\n }\n\n public function testRenderSingleNode()\n {\n $rootNode = new TreeNode('Root');\n $output = new BufferedOutput();\n ", "suffix": " $rootNode = new TreeNode('Root');\n $child1 = new TreeNode('Child 1');\n $child2 = new TreeNode('Child 2');\n\n $rootNode->addChild($child1);\n $rootNode->addChild($child2);\n\n $output = new BufferedOutput();\n $tree = T", "middle": " $tree = TreeHelper::createTree($output, $rootNode);\n\n $tree->render();\n $this->assertSame(\"Root\\n\", self::normalizeLineBreaks($output->fetch()));\n }\n\n public function testRenderTwoLevelTree()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/TreeHelperTest.php", "language": "php", "file_size": 11056, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Helper\\TreeNode;\n\nclass TreeNodeTest extends TestCase\n{\n public function testNodeInitialization()\n {\n $node = new TreeNode('Root');\n $this->assertSame('Root', $node->getValue());\n $this", "suffix": " $this->assertSame(1, iterator_count($root->getChildren()));\n $this->assertSame($child, iterator_to_array($root->getChildren())[0]);\n }\n\n public function testAddingChildrenAsString()\n {\n $root = new TreeNode('Root');\n\n $root->", "middle": "->assertSame(0, iterator_count($node->getChildren()));\n }\n\n public function testAddingChildren()\n {\n $root = new TreeNode('Root');\n $child = new TreeNode('Child');\n\n $root->addChild($child);\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Helper/TreeNodeTest.php", "language": "php", "file_size": 2551, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Helper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Helper\\TreeHelper;\nuse Symfony\\Component\\Console\\Helper\\TreeNode;\nuse Symfony\\Component\\Console\\Helper\\TreeStyle;\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nclass TreeStyleTest extends TestCase\n{\n public function testDefaultStyle()\n {\n $output = new BufferedOutput();\n $tree = sel", "suffix": " │ └── A2.1.2\n ├── B\n │ ├── B1\n │ │ ├── B11\n │ │ └── B12\n │ └── B2\n └── C\n TREE,\n self::normalizeLineBreaks(trim($output->fetch()))\n ", "middle": "f::createTree($output);\n\n $tree->render();\n\n $this->assertSame(<<expectException(\\LogicException::class);\n $this->expectExceptionMessage('The command defined in \"Symfony\\Compo", "middle": "ixtures/';\n require_once self::$fixturesPath.'/TestCommand.php';\n }\n\n public function testConstructor()\n {\n $command = new Command('foo:bar');\n $this->assertEquals('foo:bar', $command->getName(), '__", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Command/CommandTest.php", "language": "php", "file_size": 21801, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Command\\CompleteCommand;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Output\\BashCompletionOutput;\nuse Symfon", "suffix": "s TestCase\n{\n private CompleteCommand $command;\n private Application $application;\n private CommandTester $tester;\n\n protected function setUp(): void\n {\n $this->command = new CompleteCommand();\n\n $this->application = new Applic", "middle": "y\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\nclass CompleteCommandTest extend", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Command/CompleteCommandTest.php", "language": "php", "file_size": 6876, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Command\\DumpCompletionCommand;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\n\nclass DumpCompletion", "suffix": "ommand());\n $suggestions = $tester->complete($input);\n\n $this->assertSame($expectedSuggestions, $suggestions);\n }\n\n public static function provideCompletionSuggestions()\n {\n yield 'shell' => [\n [''],\n ['b", "middle": "CommandTest extends TestCase\n{\n #[DataProvider('provideCompletionSuggestions')]\n public function testComplete(array $input, array $expectedSuggestions)\n {\n $tester = new CommandCompletionTester(new DumpCompletionC", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Command/DumpCompletionCommandTest.php", "language": "php", "file_size": 1039, "cut_index": 513, "middle_length": 229}} {"prefix": "p\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nclass FooCommand extends Command\n{\n public InputInterface $input;\n public OutputInterface $output;\n\n protected function configure(): void\n {\n $this\n ->setName('foo:bar')\n ->setDescription('The foo:bar command')\n ->setAliases(['afoobar'])\n ;\n }\n\n protected function interact(InputInterface $", "suffix": "$output->writeln('interact called');\n }\n\n protected function execute(InputInterface $input, OutputInterface $output): int\n {\n $this->input = $input;\n $this->output = $output;\n\n $output->writeln('called');\n\n return 0;\n ", "middle": "input, OutputInterface $output): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/FooCommand.php", "language": "php", "file_size": 830, "cut_index": 516, "middle_length": 52}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\Ask;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Sty", "suffix": "s InvokableWithAskCommand\n{\n public function __invoke(\n SymfonyStyle $io,\n\n #[Argument]\n #[Ask('What is your name?')]\n string $name,\n ): int {\n $io->writeln('Hello '.$name);\n\n return Command::SUCCESS;\n }\n}", "middle": "le\\SymfonyStyle;\n\n#[AsCommand('invokable:ask')]\nclas", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/InvokableWithAskCommand.php", "language": "php", "file_size": 826, "cut_index": 517, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\Ask;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Inpu", "suffix": "d\n{\n public function __invoke(\n OutputInterface $output,\n #[Argument]\n #[Ask('Provide an image file:', constraints: [new File(mimeTypes: ['image/png', 'image/jpeg'])])]\n InputFile $file,\n ): int {\n $output->writeln(", "middle": "t\\File\\InputFile;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Validator\\Constraints\\File;\n\n#[AsCommand(name: 'app:input-file-with-constraints')]\nclass InvokableWithInputFileAndConstraintsTestComman", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/InvokableWithInputFileAndConstraintsTestCommand.php", "language": "php", "file_size": 1152, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\Interact;\nuse Symfony\\Component\\Console\\Attribute\\MapInput;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\C", "suffix": "Dto $user): void\n {\n $user->email ??= 'user.interactive@command.com';\n }\n\n public function __invoke(SymfonyStyle $io, #[MapInput] UserDto $user): int\n {\n $io->writeln($user->name);\n $io->writeln($user->email);\n $io->", "middle": "onsole\\Command\\Command;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n#[AsCommand('invokable:input:test')]\nclass InvokableWithInputTestCommand\n{\n #[Interact]\n public function interact(SymfonyStyle $io, #[MapInput] User", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/InvokableWithInputTestCommand.php", "language": "php", "file_size": 2196, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\AskChoice;\nuse Symfony\\Component\\Console\\Attribute\\MapInput;\nuse Symfony\\Component\\Console\\Command\\Comman", "suffix": "ment, AskChoice('Select a color', ['red', 'green', 'blue'])]\n string $color,\n\n #[MapInput]\n ChoiceDto $dto,\n ): int {\n $io->writeln('Color: '.$color);\n $io->writeln('Size: '.$dto->size);\n $io->writeln('Status: '", "middle": "d;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n#[AsCommand('invokable:interactive:choice')]\nclass InvokableWithInteractiveChoiceAttributeTestCommand\n{\n public function __invoke(\n SymfonyStyle $io,\n\n #[Argu", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/InvokableWithInteractiveChoiceAttributeTestCommand.php", "language": "php", "file_size": 1611, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n#[AsCommand('app:c", "suffix": "erface $o, #[Argument] ?string $name = null): int\n {\n $o->write('cmd1');\n\n return Command::SUCCESS;\n }\n\n #[AsCommand('app:cmd2')]\n public function cmd2(OutputInterface $o): int\n {\n $o->write('cmd2');\n\n return Comm", "middle": "md0')]\nclass MethodBasedTestCommand\n{\n public function __invoke(OutputInterface $o): int\n {\n $o->write('cmd0');\n\n return Command::SUCCESS;\n }\n\n #[AsCommand('app:cmd1')]\n public function cmd1(OutputInt", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/MethodBasedTestCommand.php", "language": "php", "file_size": 1019, "cut_index": 512, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\Question\\Question;\nuse Symfony\\Component\\Console\\SingleCommandApplication;\n\n$vendor = __DIR__;\nwhile (!file_exists($vendor.'/vendor')) {\n $vendor = dirname($vendor);\n}\nrequire $vendor.'/vendor/autoload.php';\n\n(new c", "suffix": "))\n ->setCode(function (InputInterface $input, OutputInterface $output) {\n if ($input->getOption('choice')) {\n $this->getHelper('question')\n ->ask($input, $output, new ChoiceQuestion('😊', ['n']));\n } else {\n ", "middle": "lass extends SingleCommandApplication {})\n ->setDefinition(new InputDefinition([\n new InputOption('choice', null, InputOption::VALUE_NONE, ''),\n new InputOption('hidden', null, InputOption::VALUE_NONE, ''),\n ]", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/application_sttyhelper.php", "language": "php", "file_size": 1231, "cut_index": 518, "middle_length": 229}} {"prefix": "\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n//Ensure that all lines are aligned to the begin of the first line in a very long line block\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output = new SymfonyStyle($input, $output);\n $output->block(\n 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation", "suffix": "quat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',\n 'CUSTOM',\n 'fg=white", "middle": " ullamco laboris nisi ut aliquip ex ea commodo conse", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_10.php", "language": "php", "file_size": 954, "cut_index": 582, "middle_length": 52}} {"prefix": "t\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n// ensure that nested tags have no effect on the color of the '//' prefix\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output->setDecorated(true);\n $output = new SymfonyStyle($input, $output);\n $output->comment(\n 'Árvíztűrőtükörfúrógép 🎼 Lorem ipsum dolor sit 💕 amet, consectetur adipisicing elit, sed do eiusmod tempor incididu labore et dolore magna aliqua. Ut enim ad minim veniam, qui", "suffix": "ip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum'\n ", "middle": "s nostrud exercitation ullamco laboris nisi ut aliqu", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_13.php", "language": "php", "file_size": 950, "cut_index": 606, "middle_length": 52}} {"prefix": "tInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n// ensure that block() behaves properly with a type and without prefix\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output = new SymfonyStyle($input, $output);\n $output->block(\n 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitatio", "suffix": "equat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',\n 'TEST'\n );\n\n return ", "middle": "n ullamco laboris nisi ut aliquip ex ea commodo cons", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_15.php", "language": "php", "file_size": 873, "cut_index": 559, "middle_length": 52}} {"prefix": "e\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n// ensure that block() output is properly formatted (even padding lines)\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output->setDecorated(true);\n $output = new SymfonyStyle($input, $output);\n $output->success(\n 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ", "suffix": "llamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id", "middle": "Ut enim ad minim veniam, quis nostrud exercitation u", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_16.php", "language": "php", "file_size": 910, "cut_index": 547, "middle_length": 52}} {"prefix": "\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n//Ensure has single blank line after any text and a title\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output = new SymfonyStyle($input, $output);\n\n $output->write('Lorem ipsum dolor sit amet');\n $output->title('First title');\n\n $output->writeln('Lorem ipsum dolor sit amet');\n $output->title('Second title');\n", "suffix": "utput->write(new \\ArrayIterator(['', '', '']));\n $output->title('Fourth title');\n\n //Ensure have manual control over number of blank lines:\n $output->writeln('Lorem ipsum dolor sit amet');\n $output->writeln(new \\ArrayIterator(['', ''])); //Shou", "middle": "\n $output->write('Lorem ipsum dolor sit amet');\n $output->write('');\n $output->title('Third title');\n\n //Ensure edge case by appending empty strings to history:\n $output->write('Lorem ipsum dolor sit amet');\n $o", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_4_with_iterators.php", "language": "php", "file_size": 1235, "cut_index": 518, "middle_length": 229}} {"prefix": " Symfony\\Component\\Console\\Helper\\TableCell;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n//Ensure formatting tables when using multiple headers with TableCell\nreturn function (InputInterface $input, OutputInterface $output): int {\n $headers = [\n [new TableCell('Main table title', ['colspan' => 3])],\n ['ISBN', 'Title', 'Author'],\n ];\n\n $rows = [\n [\n '978-05", "suffix": " 'De Monarchia',\n new TableCell(\"Dante Alighieri\\nspans multiple rows\", ['rowspan' => 2]),\n ],\n ['978-0804169127', 'Divine Comedy'],\n ];\n\n $output = new SymfonyStyle($input, $output);\n $output->table($headers, $row", "middle": "21567817',\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_8.php", "language": "php", "file_size": 814, "cut_index": 522, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Logger;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\InvalidArgumentException;\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\LogLevel;\nuse Symfony\\Component\\Console\\Logger\\ConsoleLogger;\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\DummyOutput;\n\n/**\n * @author Kévin Dunglas output, [\n LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,\n LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,\n LogLevel::CRITIC", "middle": "il.com>\n * @author Jordi Boggiano \n */\nclass ConsoleLoggerTest extends TestCase\n{\n protected DummyOutput $output;\n\n public function getLogger(): LoggerInterface\n {\n $this->output = new DummyOut", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Logger/ConsoleLoggerTest.php", "language": "php", "file_size": 7019, "cut_index": 716, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass DescriptorCommand2 extends Command\n{\n protected function configure(): void\n {\n $this\n ->setName('descriptor:command2')\n ->setD", "suffix": "tHelp('command 2 help')\n ->addUsage('-o|--option_name ')\n ->addUsage('')\n ->addArgument('argument_name', InputArgument::REQUIRED)\n ->addOption('option_name', 'o', InputOption::VALUE_", "middle": "escription('command 2 description')\n ->se", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/DescriptorCommand2.php", "language": "php", "file_size": 938, "cut_index": 606, "middle_length": 52}} {"prefix": "y\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nclass Foo3Command extends Command\n{\n protected function configure(): void\n {\n $this\n ->setName('foo3:bar')\n ->setDescription('The foo3:bar command')\n ;\n }\n\n protected function execute(InputInterface $input, OutputInterface $output): int\n {\n try {\n try {\n throw new \\Exception('First e", "suffix": "(\\Exception $e) {\n throw new \\Exception('Second exception comment', 0, $e);\n }\n } catch (\\Exception $e) {\n throw new \\Exception('Third exception comment', 404, $e);\n }", "middle": "xception

this is html

');\n } catch ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Foo3Command.php", "language": "php", "file_size": 865, "cut_index": 529, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\Ask;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\O", "suffix": " validator: [self::class, 'validate'])]\n string $value,\n ): int {\n $output->writeln('Value: '.$value);\n\n return Command::SUCCESS;\n }\n\n public static function validate(string $value): string\n {\n if ('valid' !== $value", "middle": "utput\\OutputInterface;\n\n#[AsCommand(name: 'app:custom-validator')]\nclass InvokableWithCustomValidatorTestCommand\n{\n public function __invoke(\n OutputInterface $output,\n #[Argument]\n #[Ask('Enter a value:',", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/InvokableWithCustomValidatorTestCommand.php", "language": "php", "file_size": 1112, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\Ask;\nuse Symfony\\Component\\Console\\Attribute\\Interact;\nuse Symfony\\Component\\Console\\Attribute\\MapInput;\nuse Symfony\\Component\\Cons", "suffix": "$io, #[MapInput] DummyDto $dto): void\n {\n $dto->arg5 ??= $io->ask('Enter arg5');\n }\n\n public function __invoke(\n SymfonyStyle $io,\n\n #[Argument, Ask('Enter arg1')]\n string $arg1,\n\n #[MapInput]\n DummyDto $d", "middle": "ole\\Command\\Command;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n#[AsCommand('invokable:interactive:question')]\nclass InvokableWithInteractiveAttributesTestCommand\n{\n #[Interact]\n public function prompt(SymfonyStyle ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/InvokableWithInteractiveAttributesTestCommand.php", "language": "php", "file_size": 2494, "cut_index": 563, "middle_length": 229}} {"prefix": "onent\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\SingleCommandApplication;\n\n$vendor = __DIR__;\nwhile (!file_exists($vendor.'/vendor')) {\n $vendor = \\dirname($vendor);\n}\nrequire $vendor.'/vendor/autoload.php';\n\n(new class extends SingleCommandApplication {\n public function getSubscribedSignals(): array\n {\n return [SIGINT];\n }\n\n public function handleSignal(int $s", "suffix": " {\n exit(254);\n }\n})\n ->setCode(function(InputInterface $input, OutputInterface $output): int {\n $this->getHelper('question')\n ->ask($input, $output, new ChoiceQuestion('😊', ['y']));\n\n return 0;\n })\n ->run()\n\n", "middle": "ignal, int|false $previousExitCode = 0): int|false\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/application_signalable.php", "language": "php", "file_size": 848, "cut_index": 535, "middle_length": 52}} {"prefix": "ymfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Helper\\QuestionHelper;\nuse Symfony\\Component\\Console\\Input\\ArgvInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\Question;\n\n$vendor = __DIR__;\nwhile (!file_exists($vendor.'/vendor')) {\n $vendor = \\dirname($vendor);\n}\nrequire $vendor", "suffix": " $input, OutputInterface $output): int\n {\n $mode = $input->getArgument('mode');\n\n $question = new Question('Enter text: ');\n $question->setMultiline($mode !== 'single');\n\n $helper = new QuestionHelper();\n\n pcntl_async_", "middle": ".'/vendor/autoload.php';\n\n(new class extends Command {\n protected function configure(): void\n {\n $this->addArgument('mode', InputArgument::OPTIONAL, '', 'single');\n }\n\n protected function execute(InputInterface", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/application_test_sigint.php", "language": "php", "file_size": 1340, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n// ensure that nested tags have no effect on the color of the '//' prefix\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output->setDecorated(true);\n $output = new SymfonyStyle($input, $output);\n $output->block(\n 'Árvíztűrőtükörfúrógép Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed d", "suffix": "sse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',\n '★', // UTF-8 star!\n null,\n ' ║ ', // UTF-", "middle": "o eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit e", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_22.php", "language": "php", "file_size": 1082, "cut_index": 515, "middle_length": 229}} {"prefix": "hp\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n//Ensure has proper line ending before outputting a text block like with SymfonyStyle::listing() or SymfonyStyle::text()\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output = new SymfonyStyle($input, $output);\n\n $output->writeln('Lorem ipsum dolor sit amet');\n $output->listing([\n 'Lorem ipsum dolor sit am", "suffix": " ]);\n\n $output->write('Lorem ipsum dolor sit amet');\n $output->text([\n 'Lorem ipsum dolor sit amet',\n 'consectetur adipiscing elit',\n ]);\n\n $output->newLine();\n\n $output->write('Lorem ipsum dolor sit amet');\n $output->comme", "middle": "et',\n 'consectetur adipiscing elit',\n ]);\n\n //Even using write:\n $output->write('Lorem ipsum dolor sit amet');\n $output->listing([\n 'Lorem ipsum dolor sit amet',\n 'consectetur adipiscing elit',\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php", "language": "php", "file_size": 1108, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Descriptor;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Descriptor\\ApplicationDescriptio", "suffix": " foreach ($names as $name) {\n $application->addCommand(new Command($name));\n }\n\n $this->assertSame($expected, array_keys((new ApplicationDescription($application))->getNamespaces()));\n }\n\n public static function getName", "middle": "n;\n\nfinal class ApplicationDescriptionTest extends TestCase\n{\n #[DataProvider('getNamespacesProvider')]\n public function testGetNamespaces(array $expected, array $names)\n {\n $application = new TestApplication();\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Descriptor/ApplicationDescriptionTest.php", "language": "php", "file_size": 1391, "cut_index": 524, "middle_length": 229}} {"prefix": "setName('foo:bar')\n ->setDescription('The foo:bar command')\n ->setAliases(['afoobar'])\n ->addOption('fooopt', 'fo', ", "suffix": "ction execute(InputInterface $input, OutputInterface $output): int\n {\n $this->input = $input;\n $this->output = $output;\n\n $output->writeln('called');\n $output->writeln($this->input->getOption('fooopt'));\n\n return 0;\n ", "middle": "InputOption::VALUE_OPTIONAL, 'fooopt description')\n ;\n }\n\n protected function interact(InputInterface $input, OutputInterface $output): void\n {\n $output->writeln('interact called');\n }\n\n protected fun", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/FooOptCommand.php", "language": "php", "file_size": 1003, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\Ask;\nuse Symfony\\Component\\Console\\Attribute\\MapInput;\nuse Symfony\\Component\\Con", "suffix": "onyStyle $io,\n #[MapInput] DtoWithHiddenQuestionArg $dto,\n ): int {\n $io->writeln('Arg1: '.$dto->arg1);\n\n return Command::SUCCESS;\n }\n}\n\nclass DtoWithHiddenQuestionArg\n{\n #[Argument]\n #[Ask('Enter arg1', hidden: true)]\n ", "middle": "sole\\Command\\Command;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n#[AsCommand('invokable:interactive:question')]\nclass InvokableWithInteractiveHiddenQuestionAttributeTestCommand\n{\n public function __invoke(\n Symf", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/InvokableWithInteractiveHiddenQuestionAttributeTestCommand.php", "language": "php", "file_size": 1020, "cut_index": 512, "middle_length": 229}} {"prefix": "e\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n// ensure that all lines are aligned to the begin of the first one and start with '//' in a very long line comment\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output = new SymfonyStyle($input, $output);\n $output->comment(\n 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna", "suffix": "itation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt molli", "middle": " aliqua. Ut enim ad minim veniam, quis nostrud exerc", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_12.php", "language": "php", "file_size": 903, "cut_index": 547, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Descriptor;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;", "suffix": "nt $argument, $expectedDescription)\n {\n $this->assertDescription($expectedDescription, $argument);\n }\n\n #[DataProvider('getDescribeInputOptionTestData')]\n public function testDescribeInputOption(InputOption $option, $expectedDescription)", "middle": "\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\n\nabstract class AbstractDescriptorTestCase extends TestCase\n{\n #[DataProvider('getDescribeInputArgumentTestData')]\n public function testDescribeInputArgument(InputArgume", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTestCase.php", "language": "php", "file_size": 4012, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\Ask;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Consol", "suffix": "#[Argument]\n #[Ask('Provide a file:')]\n InputFile $file,\n ): int {\n $output->writeln('Filename: '.$file->getFilename());\n $output->writeln('Valid: '.($file->isValid() ? 'yes' : 'no'));\n\n return Command::SUCCESS;\n }\n", "middle": "e\\Input\\File\\InputFile;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n#[AsCommand(name: 'app:input-file')]\nclass InvokableWithInputFileTestCommand\n{\n public function __invoke(\n OutputInterface $output,\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/InvokableWithInputFileTestCommand.php", "language": "php", "file_size": 999, "cut_index": 512, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n//Ensure has single blank line after any text and a title\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output = new SymfonyStyle($input, $output);\n\n $output->write('Lorem ipsum dolor sit amet');\n $output->title('First title');\n\n $output->writeln('Lorem ipsum dolor sit amet');\n $output->title('Second title');\n", "suffix": "utput->write(['', '', '']);\n $output->title('Fourth title');\n\n //Ensure have manual control over number of blank lines:\n $output->writeln('Lorem ipsum dolor sit amet');\n $output->writeln(['', '']); //Should append an extra blank line\n $outpu", "middle": "\n $output->write('Lorem ipsum dolor sit amet');\n $output->write('');\n $output->title('Third title');\n\n //Ensure edge case by appending empty strings to history:\n $output->write('Lorem ipsum dolor sit amet');\n $o", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_4.php", "language": "php", "file_size": 1195, "cut_index": 518, "middle_length": 229}} {"prefix": "e\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n// ensure that block() behaves properly with a prefix and without type\nreturn function (InputInterface $input, OutputInterface $output): int {\n $output = new SymfonyStyle($input, $output);\n $output->block(\n 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud", "suffix": "commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',\n null,\n ", "middle": " exercitation ullamco laboris nisi ut aliquip ex ea ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_14.php", "language": "php", "file_size": 913, "cut_index": 547, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\HelpCommand;\nuse Symfony\\Component\\Console\\Command\\ListCommand;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\C", "suffix": "w CommandTester($command);\n $commandTester->execute(['command_name' => 'li'], ['decorated' => false]);\n $this->assertStringContainsString('list [options] [--] []', $commandTester->getDisplay(), '->execute() returns a text help for ", "middle": "ommandTester;\n\nclass HelpCommandTest extends TestCase\n{\n public function testExecuteForCommandAlias()\n {\n $command = new HelpCommand();\n $command->setApplication(new Application());\n $commandTester = ne", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Command/HelpCommandTest.php", "language": "php", "file_size": 4797, "cut_index": 614, "middle_length": 229}} {"prefix": "omponent\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Cursor;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\InvalidOptionException;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Cons", "suffix": "ableTestCommand;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\InvokableWithCustomValidatorTestCommand;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\InvokableWithInputFileAndConstraintsTestCommand;\n\nclass InvokableCommandTest extends TestCase\n{\n public f", "middle": "ole\\Output\\NullOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\Invok", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Command/InvokableCommandTest.php", "language": "php", "file_size": 25332, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\ArgumentResolver\\ValueResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\TraceableValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\Reflecti", "suffix": "unction testTimingsInResolve()\n {\n $stopwatch = new Stopwatch();\n $resolver = new TraceableValueResolver(new ResolverStub(), $stopwatch);\n $input = new ArrayInput([]);\n $reflectionParam = new \\ReflectionParameter([TestInvokab", "middle": "on\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\nclass TraceableValueResolverTest extends TestCase\n{\n public f", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/TraceableValueResolverTest.php", "language": "php", "file_size": 2055, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\ArgumentResolver\\ValueResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\UidValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\InvalidOptionExcept", "suffix": "id\\Ulid;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Uid\\UuidV4;\n\nclass UidValueResolverTest extends TestCase\n{\n public function testResolveUuidArgument()\n {\n $resolver = new UidValueResolver();\n $uuid = '550e8400-e29b-41d4-a7", "middle": "ion;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\U", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/UidValueResolverTest.php", "language": "php", "file_size": 8143, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\ArgumentResolver\\ValueResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\VariadicValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component", "suffix": "olver();\n\n $input = new ArrayInput(['files' => ['file1.txt', 'file2.txt', 'file3.txt']], new InputDefinition([\n new InputArgument('files', InputArgument::IS_ARRAY),\n ]));\n\n $command = new class {\n public function ", "middle": "\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass VariadicValueResolverTest extends TestCase\n{\n public function testResolveVariadicArgument()\n {\n $resolver = new VariadicValueRes", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/VariadicValueResolverTest.php", "language": "php", "file_size": 6301, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Formatter;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Formatter\\NullOutputFormatterStyle;\n\n/**\n * @author Tien Xuan Vo \n */\nclass NullOutputFormatterStyleTest extends TestCase\n{\n public function te", "suffix": " $style->setForeground('black');\n $this->assertSame('foo', $style->apply('foo'));\n }\n\n public function testSetBackground()\n {\n $style = new NullOutputFormatterStyle();\n $style->setBackground('blue');\n $this->assertSam", "middle": "stApply()\n {\n $style = new NullOutputFormatterStyle();\n\n $this->assertSame('foo', $style->apply('foo'));\n }\n\n public function testSetForeground()\n {\n $style = new NullOutputFormatterStyle();\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterStyleTest.php", "language": "php", "file_size": 1443, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Formatter;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Formatter\\NullOutputFormatter;\nuse Symfony\\Component\\Console\\Formatter\\NullOutputFormatterStyle;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle;\n\n/**\n * @author Tien Xua", "suffix": " will be destroyed'));\n }\n\n public function testGetStyle()\n {\n $formatter = new NullOutputFormatter();\n $this->assertInstanceof(NullOutputFormatterStyle::class, $style = $formatter->getStyle('null'));\n $this->assertSame($style", "middle": "n Vo \n */\nclass NullOutputFormatterTest extends TestCase\n{\n public function testFormat()\n {\n $formatter = new NullOutputFormatter();\n\n $this->assertNull($formatter->format('this message", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterTest.php", "language": "php", "file_size": 1821, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Formatter;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterStyleStack;\n\nclass OutputFormatterStyleStackTest extends TestCase\n{\n public function testPush()\n {\n $stack = ", "suffix": "());\n\n $stack->push($s3 = new OutputFormatterStyle('green', 'red'));\n\n $this->assertEquals($s3, $stack->getCurrent());\n }\n\n public function testPop()\n {\n $stack = new OutputFormatterStyleStack();\n $stack->push($s1 = new", "middle": "new OutputFormatterStyleStack();\n $stack->push($s1 = new OutputFormatterStyle('white', 'black'));\n $stack->push($s2 = new OutputFormatterStyle('yellow', 'blue'));\n\n $this->assertEquals($s2, $stack->getCurrent", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php", "language": "php", "file_size": 2180, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Formatter;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle;\n\nclass OutputFormatterStyleTest extends TestCase\n{\n public function testConstructor()\n {\n $style = new OutputFormatterStyle('green', 'black', ['bold', 'underscore']);\n $this->assertEquals(\"\\033[32;40;1;4mfoo\\", "suffix": "le(null, 'white');\n $this->assertEquals(\"\\033[47mfoo\\033[49m\", $style->apply('foo'));\n }\n\n public function testForeground()\n {\n $style = new OutputFormatterStyle();\n\n $style->setForeground('black');\n $this->assertEquals", "middle": "033[39;49;22;24m\", $style->apply('foo'));\n\n $style = new OutputFormatterStyle('red', null, ['blink']);\n $this->assertEquals(\"\\033[31;5mfoo\\033[39;25m\", $style->apply('foo'));\n\n $style = new OutputFormatterSty", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleTest.php", "language": "php", "file_size": 3914, "cut_index": 614, "middle_length": 229}} {"prefix": "ertEquals('fooformat('foo\\\\assertEquals('foo << bar', $formatter->format('foo << bar'));\n $this->assertEquals('foo << bar \\\\', $formatter->format('foo << bar \\\\'));\n $this->assertEquals(\"foo << \\033[32mbar \\\\ baz\\033[39m \\\\\", $formatter->format('foo << bar \\\\ baz \\\\'));\n $this->assertEquals('some info', $formatter->format('\\\\some info\\\\'));\n $this->assertEquals('\\\\some info\\\\', Outp", "suffix": "hes escaping non-special characters\n $this->assertEquals('foo \\\\< bar \\\\< baz \\\\\\\\< foo \\\\> bar \\\\> baz \\\\\\\\> \\\\x', OutputFormatter::escape('foo < bar \\\\< baz \\\\\\\\< foo > bar \\\\> baz \\\\\\\\> \\\\x'));\n\n $this->assertEquals(\n \"\\033[33mS", "middle": "utFormatter::escape('some info'));\n // every < and > gets escaped if not already escaped, but already escaped ones do not get escaped again\n // and escaped backslashes remain as such, same with backslas", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php", "language": "php", "file_size": 19348, "cut_index": 1331, "middle_length": 229}} {"prefix": "Tests\\Fixtures\\MethodBasedTestCommand;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\n\nclass AddConsoleCommandPassTest extends TestCase\n{", "suffix": "ING);\n $container->setParameter('my-command.class', 'Symfony\\Component\\Console\\Tests\\DependencyInjection\\MyCommand');\n\n $id = 'my-command';\n $definition = new Definition('%my-command.class%');\n $definition->setPublic($public);\n ", "middle": "\n #[DataProvider('visibilityProvider')]\n public function testProcess($public)\n {\n $container = new ContainerBuilder();\n $container->addCompilerPass(new AddConsoleCommandPass(), PassConfig::TYPE_BEFORE_REMOV", "meta": {"filepath": "src/Symfony/Component/Console/Tests/DependencyInjection/AddConsoleCommandPassTest.php", "language": "php", "file_size": 18655, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ArgumentResolver;\nuse Symfony\\Component\\Console\\DependencyInjection\\ConsoleArgumentValueResolverPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Compo", "suffix": " = [\n 'n3' => [[]],\n 'n1' => [['priority' => 200]],\n 'n2' => [['priority' => 100]],\n ];\n\n $expected = [\n new Reference('n1'),\n new Reference('n2'),\n new Reference('n3'),\n ", "middle": "nent\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\nclass ConsoleArgumentValueResolverPassTest extends TestCase\n{\n public function testServicesAreOrderedAccordingToPriority()\n {\n $services", "meta": {"filepath": "src/Symfony/Component/Console/Tests/DependencyInjection/ConsoleArgumentValueResolverPassTest.php", "language": "php", "file_size": 3454, "cut_index": 614, "middle_length": 229}} {"prefix": "erInterface;\nuse Symfony\\Component\\Console\\DependencyInjection\\RegisterCommandArgumentLocatorsPass;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\n\nclass RegisterCommandArgumentLocatorsPassTest ", "suffix": " $this->assertTrue(true);\n }\n\n public function testProcessWithServiceArguments()\n {\n $container = new ContainerBuilder();\n $container->register('logger', LoggerInterface::class);\n $container->register('console.argument_resolv", "middle": "extends TestCase\n{\n public function testProcessWithoutServiceResolver()\n {\n $container = new ContainerBuilder();\n $pass = new RegisterCommandArgumentLocatorsPass();\n\n $pass->process($container);\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/DependencyInjection/RegisterCommandArgumentLocatorsPassTest.php", "language": "php", "file_size": 10264, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\DependencyInjection\\RemoveEmptyCommandArgumentLocatorsPass;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceL", "suffix": "tLocatorsPass();\n\n $pass->process($container);\n\n $this->assertTrue(true);\n }\n\n public function testProcessWithNullArgument()\n {\n $container = new ContainerBuilder();\n $container->register('console.argument_resolver.serv", "middle": "ocator;\n\nclass RemoveEmptyCommandArgumentLocatorsPassTest extends TestCase\n{\n public function testProcessWithoutServiceResolver()\n {\n $container = new ContainerBuilder();\n $pass = new RemoveEmptyCommandArgumen", "meta": {"filepath": "src/Symfony/Component/Console/Tests/DependencyInjection/RemoveEmptyCommandArgumentLocatorsPassTest.php", "language": "php", "file_size": 5329, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\CommandLoader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\CommandLoader\\ContainerCommandLoader;\nuse Symfony\\Component\\Console\\Exception\\CommandNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocat", "suffix": " 'bar-service' => static fn () => new Command('bar'),\n ]), ['foo' => 'foo-service', 'bar' => 'bar-service']);\n\n $this->assertTrue($loader->has('foo'));\n $this->assertTrue($loader->has('bar'));\n $this->assertFalse($loader->", "middle": "or;\n\nclass ContainerCommandLoaderTest extends TestCase\n{\n public function testHas()\n {\n $loader = new ContainerCommandLoader(new ServiceLocator([\n 'foo-service' => static fn () => new Command('foo'),\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/CommandLoader/ContainerCommandLoaderTest.php", "language": "php", "file_size": 2101, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\CommandLoader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\CommandLoader\\FactoryCommandLoader;\nuse Symfony\\Component\\Console\\Exception\\CommandNotFoundException;\n\nclass FactoryCommandLoaderTes", "suffix": " $this->assertTrue($loader->has('foo'));\n $this->assertTrue($loader->has('bar'));\n $this->assertFalse($loader->has('baz'));\n }\n\n public function testGet()\n {\n $loader = new FactoryCommandLoader([\n 'foo' => st", "middle": "t extends TestCase\n{\n public function testHas()\n {\n $loader = new FactoryCommandLoader([\n 'foo' => static fn () => new Command('foo'),\n 'bar' => static fn () => new Command('bar'),\n ]);\n\n", "meta": {"filepath": "src/Symfony/Component/Console/Tests/CommandLoader/FactoryCommandLoaderTest.php", "language": "php", "file_size": 1749, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Output;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Output\\AnsiColorMode;\n\nclass AnsiColorModeTest extends TestCase\n{\n #[DataProvider('provideColors", "suffix": "($corlorHex));\n }\n\n #[DataProvider('provideColorsConversion')]\n public function testColorsConversionToAnsi8(string $corlorHex, array $expected)\n {\n $this->assertSame('8;5;'.$expected[AnsiColorMode::Ansi8->name], AnsiColorMode::Ansi8->con", "middle": "Conversion')]\n public function testColorsConversionToAnsi4(string $corlorHex, array $expected)\n {\n $this->assertSame((string) $expected[AnsiColorMode::Ansi4->name], AnsiColorMode::Ansi4->convertFromHexToAnsiColorCode", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Output/AnsiColorModeTest.php", "language": "php", "file_size": 2834, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Output;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutput;\nuse Symfony\\Component\\Console\\Output\\Output;\n\nclass ConsoleOutputTest extends TestCase\n{\n public function testConstructorWithoutFo", "suffix": " $this->assertNotSame($output->getFormatter(), $output->getErrorOutput()->getFormatter(), 'ErrorOutput should use it own formatter');\n }\n\n public function testConstructorWithFormatter()\n {\n $output = new ConsoleOutput(Output::VERBOSITY_QUIE", "middle": "rmatter()\n {\n $output = new ConsoleOutput(Output::VERBOSITY_QUIET, true);\n $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '__construct() takes the verbosity as its first argument');\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Output/ConsoleOutputTest.php", "language": "php", "file_size": 2027, "cut_index": 563, "middle_length": 229}} {"prefix": "elper\\QuestionHelper;\nuse Symfony\\Component\\Console\\Input\\StreamableInputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleSectionOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\nuse Symfony\\Component\\Console\\Question\\Question;\n\nclass ConsoleSectionOutputTest extends TestCase\n{\n /** @var resource */\n private $stream;\n\n protected function setUp(): void\n {\n $this->stream = fopen('php://memory', 'r+', false);\n }\n\n pro", "suffix": "RBOSITY_NORMAL, true, new OutputFormatter());\n\n $output->writeln('Foo'.\\PHP_EOL.'Bar');\n $output->clear();\n\n rewind($output->getStream());\n $this->assertEquals('Foo'.\\PHP_EOL.'Bar'.\\PHP_EOL.\\sprintf(\"\\x1b[%dA\", 2).\"\\x1b[0J\", str", "middle": "tected function tearDown(): void\n {\n unset($this->stream);\n }\n\n public function testClearAll()\n {\n $sections = [];\n $output = new ConsoleSectionOutput($this->stream, $sections, OutputInterface::VE", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Output/ConsoleSectionOutputTest.php", "language": "php", "file_size": 13215, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Output;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Formatter\\NullOutputFormatter;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\Console\\Output\\Output;\nuse Symfony\\Component\\Console\\", "suffix": ";\n\n $this->assertSame('', $buffer, '->write() does nothing (at least nothing is printed)');\n $this->assertFalse($output->isDecorated(), '->isDecorated() returns false');\n }\n\n public function testVerbosity()\n {\n $output = new N", "middle": "Output\\OutputInterface;\n\nclass NullOutputTest extends TestCase\n{\n public function testConstructor()\n {\n $output = new NullOutput();\n\n ob_start();\n $output->write('foo');\n $buffer = ob_get_clean()", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Output/NullOutputTest.php", "language": "php", "file_size": 3033, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Output;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle;\nuse Symfony\\Component\\Console\\Output\\Output;\n\nclass OutputTest extends TestCase\n{\n public function testConstructor()\n {\n $output = new TestOutput(Output::VERBOSITY_QUIET, true);\n $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '__construct() ta", "suffix": "= new TestOutput();\n $output->setDecorated(true);\n $this->assertTrue($output->isDecorated(), 'setDecorated() sets the decorated flag');\n }\n\n public function testSetGetVerbosity()\n {\n $output = new TestOutput();\n $output", "middle": "kes the verbosity as its first argument');\n $this->assertTrue($output->isDecorated(), '__construct() takes the decorated flag as its second argument');\n }\n\n public function testSetIsDecorated()\n {\n $output ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Output/OutputTest.php", "language": "php", "file_size": 6959, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Output;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Output\\Output;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\nuse Symfony\\Component\\Process\\Process;\n\nclass StreamOutputTest extends TestCase\n{\n /** @var resource */\n protected $stream;\n\n protected f", "suffix": "$output = new StreamOutput($this->stream, Output::VERBOSITY_QUIET, true);\n $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '__construct() takes the verbosity as its first argument');\n $this->assertTrue($output->isDecorat", "middle": "unction setUp(): void\n {\n $this->stream = fopen('php://memory', 'a', false);\n }\n\n protected function tearDown(): void\n {\n unset($this->stream);\n }\n\n public function testConstructor()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Output/StreamOutputTest.php", "language": "php", "file_size": 2494, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Event;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nfinal class ConsoleAlarmEvent extends ConsoleEvent\n{\n public function __constru", "suffix": "ExitCode(int $exitCode): void\n {\n if ($exitCode < 0 || $exitCode > 255) {\n throw new \\InvalidArgumentException('Exit code must be between 0 and 255.');\n }\n\n $this->exitCode = $exitCode;\n }\n\n public function abortExi", "middle": "ct(\n Command $command,\n InputInterface $input,\n OutputInterface $output,\n private int|false $exitCode = 0,\n ) {\n parent::__construct($command, $input, $output);\n }\n\n public function set", "meta": {"filepath": "src/Symfony/Component/Console/Event/ConsoleAlarmEvent.php", "language": "php", "file_size": 1150, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Event;\n\n/**\n * Allows to do things before the command is executed, like skipping the command or executing code before the command is\n * going to be executed.\n *\n * Changing the input arguments will have no effect.\n *\n * @author Fabien Potencier \n */\nfinal class ConsoleCommandEvent extends ConsoleEvent\n{\n /**\n * The return code for skipped commands, this will also be passed into the terminate event.\n */\n public const RETURN_CODE_DISABLED = 11", "meta": {"filepath": "src/Symfony/Component/Console/Event/ConsoleCommandEvent.php", "language": "php", "file_size": 1326, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Event;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Allows to handle throwables thrown while running a command.\n *\n * @author Wouter ", "suffix": "rowable $error,\n ?Command $command = null,\n ) {\n parent::__construct($command, $input, $output);\n }\n\n public function getError(): \\Throwable\n {\n return $this->error;\n }\n\n public function setError(\\Throwable $error): v", "middle": "de Jong \n */\nfinal class ConsoleErrorEvent extends ConsoleEvent\n{\n private int $exitCode;\n\n public function __construct(\n InputInterface $input,\n OutputInterface $output,\n private \\Th", "meta": {"filepath": "src/Symfony/Component/Console/Event/ConsoleErrorEvent.php", "language": "php", "file_size": 1460, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Event;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * Allows to inspect input and ou", "suffix": "vate OutputInterface $output,\n ) {\n }\n\n /**\n * Gets the command that is executed.\n */\n public function getCommand(): ?Command\n {\n return $this->command;\n }\n\n /**\n * Gets the input instance.\n */\n public functio", "middle": "tput of a command.\n *\n * @author Francesco Levorato \n */\nclass ConsoleEvent extends Event\n{\n public function __construct(\n protected ?Command $command,\n private InputInterface $input,\n pri", "meta": {"filepath": "src/Symfony/Component/Console/Event/ConsoleEvent.php", "language": "php", "file_size": 1216, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Event;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @author marie \n */\nfinal class ConsoleSignalEvent", "suffix": ") {\n parent::__construct($command, $input, $output);\n }\n\n public function getHandlingSignal(): int\n {\n return $this->handlingSignal;\n }\n\n public function setExitCode(int $exitCode): void\n {\n if ($exitCode < 0 || $exit", "middle": " extends ConsoleEvent\n{\n public function __construct(\n Command $command,\n InputInterface $input,\n OutputInterface $output,\n private int $handlingSignal,\n private int|false $exitCode = 0,\n ", "meta": {"filepath": "src/Symfony/Component/Console/Event/ConsoleSignalEvent.php", "language": "php", "file_size": 1342, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Event;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Allows to manipulate the exit code of a command after its execution.\n *\n * ", "suffix": "ace $input,\n OutputInterface $output,\n private int $exitCode,\n private readonly ?int $interruptingSignal = null,\n ) {\n parent::__construct($command, $input, $output);\n }\n\n public function setExitCode(int $exitCode): voi", "middle": "@author Francesco Levorato \n * @author Jules Pietri \n */\nfinal class ConsoleTerminateEvent extends ConsoleEvent\n{\n public function __construct(\n Command $command,\n InputInterf", "meta": {"filepath": "src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php", "language": "php", "file_size": 1245, "cut_index": 518, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Event;\n\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * Event dispatched when constraint validation is needed for a question.\n *\n * @author Robin Chalas \n */\nclass QuestionAnsweredEvent extends Event\n{\n private array $violations = [];\n\n public function __construct(\n ", "suffix": "ly array $constraints,\n ) {\n }\n\n public function addViolation(string $message): void\n {\n $this->violations[] = $message;\n }\n\n public function getViolations(): array\n {\n return $this->violations;\n }\n\n public function", "middle": " public readonly mixed $value,\n public readon", "meta": {"filepath": "src/Symfony/Component/Console/Event/QuestionAnsweredEvent.php", "language": "php", "file_size": 968, "cut_index": 582, "middle_length": 52}} {"prefix": " *\n * Usage:\n *\n * $input = new ArgvInput();\n *\n * By default, the `$_SERVER['argv']` array is used for the input values.\n *\n * This can be overridden by explicitly passing the input values in the constructor:\n *\n * $input = new ArgvInput($_SERVER['argv']);\n *\n * If you pass it yourself, don't forget that the first element of the array\n * is the name of the running application.\n *\n * When passing an argument to the constructor, be sure that it respects\n * the same rules as the argv one. It's almost ", "suffix": "://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02\n */\nclass ArgvInput extends Input\n{\n /** @var list */\n private array $tokens;\n private array $parsed;\n\n /** @param list|null $argv */\n public functi", "middle": "always better to use the\n * `StringInput` when you want to provide your own input.\n *\n * @author Fabien Potencier \n *\n * @see http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html\n * @see http", "meta": {"filepath": "src/Symfony/Component/Console/Input/ArgvInput.php", "language": "php", "file_size": 13469, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Input;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\InvalidOptionException;\n\n/**\n * ArrayInput represents an input provided as an array.\n *\n * Usage:\n *\n * $input = new ArrayInput(['command' => 'foo:bar', 'foo' => 'bar', '--bar' => 'foobar']);\n *\n * @author Fabien Potencier \n */\nclass ArrayInput extends Input\n{\n public function __construct(\n pr", "suffix": "$value) {\n if ($param && \\is_string($param) && '-' === $param[0]) {\n continue;\n }\n\n return $value;\n }\n\n return null;\n }\n\n public function hasParameterOption(string|array $values, bool $onl", "middle": "ivate array $parameters,\n ?InputDefinition $definition = null,\n ) {\n parent::__construct($definition);\n }\n\n public function getFirstArgument(): ?string\n {\n foreach ($this->parameters as $param => ", "meta": {"filepath": "src/Symfony/Component/Console/Input/ArrayInput.php", "language": "php", "file_size": 5585, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Input;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\n\n/**\n * Input is the base class for all concrete Input classes.\n *\n * Three concrete classes are provided by default:\n *\n * * `ArgvInput`: The input comes from the CLI arguments (argv)\n * * `StringInput`: The input is provided as a string\n * * `ArrayInput`: The input is provided as an array\n *\n * @author F", "suffix": " $options = [];\n protected array $arguments = [];\n protected bool $interactive = true;\n\n public function __construct(?InputDefinition $definition = null)\n {\n if (null === $definition) {\n $this->definition = new InputDefinition", "middle": "abien Potencier \n */\nabstract class Input implements RawInputInterface, StreamableInputInterface\n{\n protected InputDefinition $definition;\n /** @var resource */\n protected $stream;\n protected array", "meta": {"filepath": "src/Symfony/Component/Console/Input/Input.php", "language": "php", "file_size": 6186, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Input;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\n\n/**\n * Represents a command line argument.\n *\n * @author Fabien Potencier \n */\nclass InputArgument\n{\n /**\n * Providing an argument is required (e.g. just 'app:foo' is not allowed).\n */\n public const REQUIRED = 1;\n\n /**\n * Providing an argument is optional (e.g. 'app:foo' and '", "meta": {"filepath": "src/Symfony/Component/Console/Input/InputArgument.php", "language": "php", "file_size": 5376, "cut_index": 716, "middle_length": 229}} {"prefix": " * A InputDefinition represents a set of valid command line arguments and options.\n *\n * Usage:\n *\n * $definition = new InputDefinition([\n * new InputArgument('name', InputArgument::REQUIRED),\n * new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),\n * ]);\n *\n * @author Fabien Potencier \n */\nclass InputDefinition\n{\n private array $arguments = [];\n private int $requiredCount = 0;\n private ?InputArgument $lastArrayArgument = null;\n private ?InputArgu", "suffix": "\n */\n public function __construct(array $definition = [])\n {\n $this->setDefinition($definition);\n }\n\n /**\n * Sets the definition of the input.\n */\n public function setDefinition(array $definition): void\n {\n $argu", "middle": "ment $lastOptionalArgument = null;\n private array $options = [];\n private array $negations = [];\n private array $shortcuts = [];\n\n /**\n * @param array $definition An array of InputArgument and InputOption instance", "meta": {"filepath": "src/Symfony/Component/Console/Input/InputDefinition.php", "language": "php", "file_size": 11804, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Lock\\SharedLockInterface;\nuse Symfony\\Component\\Lock\\Store\\FlockStore;\nuse Symfony\\Component\\Lock\\Store\\SemaphoreStore;\n\nclass Lock", "suffix": "h.'/FooLockCommand.php';\n require_once self::$fixturesPath.'/FooLock2Command.php';\n require_once self::$fixturesPath.'/FooLock3Command.php';\n require_once self::$fixturesPath.'/FooLock4InvokableCommand.php';\n }\n\n public function ", "middle": "ableTraitTest extends TestCase\n{\n protected static string $fixturesPath;\n\n public static function setUpBeforeClass(): void\n {\n self::$fixturesPath = __DIR__.'/../Fixtures/';\n require_once self::$fixturesPat", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Command/LockableTraitTest.php", "language": "php", "file_size": 3274, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\TraceableCommand;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\InvokableTestCommand;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\InvokableWithAskCommand;\nuse ", "suffix": " {\n $this->application = new Application();\n $this->application->addCommand(new LoopExampleCommand());\n $this->application->addCommand(new InvokableTestCommand());\n }\n\n public function testRunIsOverriddenWithoutProfile()\n {\n ", "middle": "Symfony\\Component\\Console\\Tests\\Fixtures\\LoopExampleCommand;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\nclass TraceableCommandTest extends TestCase\n{\n private Application $application;\n\n protected function setUp(): void\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Command/TraceableCommandTest.php", "language": "php", "file_size": 4254, "cut_index": 614, "middle_length": 229}} {"prefix": " $this->assertSame($expectedOptions, $input->getOptions(), $message);\n }\n\n #[DataProvider('provideNegatableOptions')]\n public function testParseOptionsNegatable($input, $options, $expectedOptions, $message)\n {\n $input = new ArgvInput($input);\n $input->bind(new InputDefinition($options));\n $this->assertSame($expectedOptions, $input->getOptions(), $message);\n }\n\n public static function provideOptions()\n {\n return [\n [\n ['cli.php', '-", "suffix": " [new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)],\n ['foo' => 'bar'],\n '->parse() parses long options with a required value (with a = separator)',\n ],\n [\n ['cli.php', '--foo'", "middle": "-foo'],\n [new InputOption('foo')],\n ['foo' => true],\n '->parse() parses long options without a value',\n ],\n [\n ['cli.php', '--foo=bar'],\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php", "language": "php", "file_size": 38074, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Input;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\nclass InputArgumentT", "suffix": " public function testModes()\n {\n $argument = new InputArgument('foo');\n $this->assertFalse($argument->isRequired(), '__construct() gives a \"InputArgument::OPTIONAL\" mode by default');\n\n $argument = new InputArgument('foo', null);\n", "middle": "est extends TestCase\n{\n public function testConstructor()\n {\n $argument = new InputArgument('foo');\n $this->assertSame('foo', $argument->getName(), '__construct() takes a name as its first argument');\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php", "language": "php", "file_size": 7131, "cut_index": 716, "middle_length": 229}} {"prefix": "gnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass InputOptionTest extends TestCase\n{\n public function testConstructor()\n {\n $option = new InputOption('foo');\n $this->assertSame('foo', $option->getName(), ", "suffix": "unction testArrayModeWithoutValue()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('Impossible to have an option mode VALUE_IS_ARRAY if the option does not accept a value.');\n new InputO", "middle": "'__construct() takes a name as its first argument');\n $option = new InputOption('--foo');\n $this->assertSame('foo', $option->getName(), '__construct() removes the leading -- of the option name');\n }\n\n public f", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Input/InputOptionTest.php", "language": "php", "file_size": 15121, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Input;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass InputTest extends TestCase\n{\n public function testConstructor()\n {\n $input = new ArrayInput(['name' => 'foo'], new InputDefinition([new InputArgument('name')]));\n $this", "suffix": "new InputOption('name')]));\n $this->assertSame('foo', $input->getOption('name'), '->getOption() returns the value for the given option');\n\n $input->setOption('name', 'bar');\n $this->assertSame('bar', $input->getOption('name'), '->setOp", "middle": "->assertSame('foo', $input->getArgument('name'), '->__construct() takes a InputDefinition as an argument');\n }\n\n public function testOptions()\n {\n $input = new ArrayInput(['--name' => 'foo'], new InputDefinition([", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Input/InputTest.php", "language": "php", "file_size": 8327, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\CI;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\CI\\GithubActionReporter;\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\n\nclass GithubActionReporterTest extends TestCase\n{\n public function testIsGithubActionEn", "suffix": ";\n self::assertTrue(GithubActionReporter::isGithubActionEnvironment());\n } finally {\n putenv('GITHUB_ACTIONS'.($prev ? \"=$prev\" : ''));\n }\n }\n\n #[DataProvider('annotationsFormatProvider')]\n public function testA", "middle": "vironment()\n {\n $prev = getenv('GITHUB_ACTIONS');\n putenv('GITHUB_ACTIONS');\n\n try {\n self::assertFalse(GithubActionReporter::isGithubActionEnvironment());\n putenv('GITHUB_ACTIONS=1')", "meta": {"filepath": "src/Symfony/Component/Console/Tests/CI/GithubActionReporterTest.php", "language": "php", "file_size": 2606, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Completion\\Output;\n\nuse Symfony\\Component\\Console\\Completion\\Output\\BashCompletionOutput;\nuse Symfony\\Component\\Console\\Completion\\Output\\CompletionOutputInterface;\n\nclass BashCompletionOutputTest extends CompletionOutputTestCase\n{\n public function getCompletionOu", "suffix": "rn new BashCompletionOutput();\n }\n\n public function getExpectedOptionsOutput(): string\n {\n return \"--option1\\n--negatable\\n--no-negatable\".\\PHP_EOL;\n }\n\n public function getExpectedValuesOutput(): string\n {\n return \"Green\\nR", "middle": "tput(): CompletionOutputInterface\n {\n retu", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Completion/Output/BashCompletionOutputTest.php", "language": "php", "file_size": 885, "cut_index": 547, "middle_length": 52}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Completion\\Output;\n\nuse Symfony\\Component\\Console\\Completion\\Output\\CompletionOutputInterface;\nuse Symfony\\Component\\Console\\Completion\\Output\\FishCompletionOutput;\n\nclass FishCompletionOutputTest extends CompletionOutputTestCase\n{\n public function getCompletionOutput(): CompletionOutputInterface\n ", "suffix": "}\n\n public function getExpectedOptionsOutput(): string\n {\n return \"--option1\\tFirst Option\\n--negatable\\tCan be negative\\n--no-negatable\\tCan be negative\";\n }\n\n public function getExpectedValuesOutput(): string\n {\n return \"Gree", "middle": " {\n return new FishCompletionOutput();\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Completion/Output/FishCompletionOutputTest.php", "language": "php", "file_size": 967, "cut_index": 582, "middle_length": 52}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Completion\\Output;\n\nuse Symfony\\Component\\Console\\Completion\\Output\\CompletionOutputInterface;\nuse Symfony\\Component\\Console\\Completion\\Output\\ZshCompletionOutput;\n\nclass ZshCompletionOutputTest extends CompletionOutputTestCase\n{\n public function getCompletionOutput(): CompletionOutputInterface\n ", "suffix": " public function getExpectedOptionsOutput(): string\n {\n return \"--option1\\tFirst Option\\n--negatable\\tCan be negative\\n--no-negatable\\tCan be negative\\n\";\n }\n\n public function getExpectedValuesOutput(): string\n {\n return \"Green", "middle": " {\n return new ZshCompletionOutput();\n }\n\n", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Completion/Output/ZshCompletionOutputTest.php", "language": "php", "file_size": 968, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Terminal\\Image;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Terminal\\Image\\KittyGraphicsProtocol;\n\nclass KittyGraphicsProtocolTest extends TestCase\n{\n public function testGetName()\n {\n $this->assertSame('kitty', (new KittyGraphicsProtocol())->getName());\n }\n\n public function testDetectPastedImag", "suffix": "eWithoutKittySequence()\n {\n $data = 'just plain text';\n\n $this->assertFalse((new KittyGraphicsProtocol())->detectPastedImage($data));\n }\n\n public function testDecodeValidPayload()\n {\n $imageData = 'test image data';\n ", "middle": "eWithKittySequence()\n {\n $data = \"some text\\x1b_Ga=T,f=100;base64data\\x1b\\\\more text\";\n\n $this->assertTrue((new KittyGraphicsProtocol())->detectPastedImage($data));\n }\n\n public function testDetectPastedImag", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Terminal/Image/KittyGraphicsProtocolTest.php", "language": "php", "file_size": 4414, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\ArgumentResolver\\ValueResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\BackedEnumValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\InvalidOptio", "suffix": "mValueResolverTest extends TestCase\n{\n public function testResolveBackedEnumArgument()\n {\n $resolver = new BackedEnumValueResolver();\n\n $input = new ArrayInput(['status' => 'pending'], new InputDefinition([\n new InputArgument", "middle": "nException;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass BackedEnu", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/BackedEnumValueResolverTest.php", "language": "php", "file_size": 7147, "cut_index": 716, "middle_length": 229}} {"prefix": "nent\\Clock\\MockClock;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\DateTimeValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\MapDateTime;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass DateTimeValueResolverTest extends TestCase\n{\n private readonly string $de", "suffix": "e);\n }\n\n public static function getTimeZones()\n {\n yield ['UTC', false];\n yield ['Pacific/Honolulu', false];\n yield ['America/Toronto', false];\n yield ['UTC', true];\n yield ['Pacific/Honolulu', true];\n yie", "middle": "faultTimezone;\n\n protected function setUp(): void\n {\n $this->defaultTimezone = date_default_timezone_get();\n }\n\n protected function tearDown(): void\n {\n date_default_timezone_set($this->defaultTimezon", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/DateTimeValueResolverTest.php", "language": "php", "file_size": 13866, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\ArgumentResolver\\ValueResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ArgumentResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\InputFileValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\InvalidFileExc", "suffix": "nent\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Console\\Tests\\Fixtures\\InvokableWithInputFileTestCommand;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass InputFileValueResolverTest extends TestC", "middle": "eption;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\File\\InputFile;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Compo", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/InputFileValueResolverTest.php", "language": "php", "file_size": 8933, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\ArgumentResolver\\ValueResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\Exception\\NearMissValueResolverException;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ServiceValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\I", "suffix": "eValueResolver(new ServiceLocator([]));\n $input = new ArrayInput(['app:test'], new InputDefinition([\n new InputArgument('command'),\n ]));\n\n $function = static fn (DummyService $dummy) => null;\n $reflection = new \\Refl", "middle": "nput\\InputDefinition;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\n\nclass ServiceValueResolverTest extends TestCase\n{\n public function testDoNotSupportWhenCommandDoesNotExist()\n {\n $resolver = new Servic", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/ServiceValueResolverTest.php", "language": "php", "file_size": 7561, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\nclass ListCommandTest extends TestCase\n{\n public function testExecuteListsCommands()\n {\n $application = new Application();\n $commandTester = new CommandTester($command =", "suffix": "tDisplay(), '->execute() returns a list of available commands');\n }\n\n public function testExecuteListsCommandsWithXmlOption()\n {\n $application = new Application();\n $commandTester = new CommandTester($command = $application->get('lis", "middle": " $application->get('list'));\n $commandTester->execute(['command' => $command->getName()], ['decorated' => false]);\n\n $this->assertMatchesRegularExpression('/help\\s{2,}Display help for a command/', $commandTester->ge", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Command/ListCommandTest.php", "language": "php", "file_size": 5786, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Event\\ConsoleErrorEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent;\nuse Symfony\\Component\\Console\\EventListener\\ErrorListener;\nuse Symfony\\Component\\Console\\Input\\A", "suffix": "le\\Output\\NullOutput;\n\nclass ErrorListenerTest extends TestCase\n{\n public function testOnConsoleError()\n {\n $error = new \\TypeError('An error occurred');\n\n $logger = $this->createMock(LoggerInterface::class);\n $logger\n ", "middle": "rgvInput;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\Input;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\StringInput;\nuse Symfony\\Component\\Conso", "meta": {"filepath": "src/Symfony/Component/Console/Tests/EventListener/ErrorListenerTest.php", "language": "php", "file_size": 4820, "cut_index": 614, "middle_length": 229}} {"prefix": "\n }\n\n public function testConstructorArguments()\n {\n $this->initializeArguments();\n\n $definition = new InputDefinition();\n $this->assertSame([], $definition->getArguments(), '__construct() creates a new InputDefinition object');\n\n $definition = new InputDefinition([$this->foo, $this->bar]);\n $this->assertSame(['foo' => $this->foo, 'bar' => $this->bar], $definition->getArguments(), '__construct() takes an array of InputArgument objects as its first argument');\n ", "suffix": "finition object');\n\n $definition = new InputDefinition([$this->foo, $this->bar]);\n $this->assertSame(['foo' => $this->foo, 'bar' => $this->bar], $definition->getOptions(), '__construct() takes an array of InputOption objects as its first argu", "middle": "}\n\n public function testConstructorOptions()\n {\n $this->initializeOptions();\n\n $definition = new InputDefinition();\n $this->assertSame([], $definition->getOptions(), '__construct() creates a new InputDe", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php", "language": "php", "file_size": 17521, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Input;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Input\\ArgvInput;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Input\\StringInput;\n\nclass StringInputTest extends TestCase\n{\n #[D", "suffix": "');\n $this->assertSame($tokens, $p->getValue($input), $message);\n }\n\n public function testInputOptionWithGivenString()\n {\n $definition = new InputDefinition(\n [new InputOption('foo', null, InputOption::VALUE_REQUIRED)]\n ", "middle": "ataProvider('getTokenizeData')]\n public function testTokenize($input, $tokens, $message)\n {\n $input = new StringInput($input);\n $r = new \\ReflectionClass(ArgvInput::class);\n $p = $r->getProperty('tokens", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Input/StringInputTest.php", "language": "php", "file_size": 4478, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Completion\\Output;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Output\\CompletionOutputInterface;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Input\\Inp", "suffix": " getExpectedOptionsOutput(): string;\n\n abstract public function getExpectedValuesOutput(): string;\n\n public function testOptionsOutput()\n {\n $options = [\n new InputOption('option1', 'o', InputOption::VALUE_NONE, 'First Option'),\n", "middle": "utOption;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\n\nabstract class CompletionOutputTestCase extends TestCase\n{\n abstract public function getCompletionOutput(): CompletionOutputInterface;\n\n abstract public function", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Completion/Output/CompletionOutputTestCase.php", "language": "php", "file_size": 2095, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Messenger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\RunCommandFailedException;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Messenger\\RunCommandMessage;\nuse Symfony\\Component\\Console\\Messenger\\RunCommandMessageHandler;\nuse Symfo", "suffix": "Exception\\UnrecoverableExceptionInterface;\nuse Symfony\\Component\\Messenger\\Exception\\UnrecoverableMessageHandlingException;\n\n/**\n * @author Kevin Bond \n */\nfinal class RunCommandMessageHandlerTest extends TestCase\n{\n public function", "middle": "ny\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Messenger\\Exception\\RecoverableExceptionInterface;\nuse Symfony\\Component\\Messenger\\Exception\\RecoverableMessageHandlingException;\nuse Symfony\\Component\\Messenger\\", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Messenger/RunCommandMessageHandlerTest.php", "language": "php", "file_size": 5902, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\ArgumentResolver\\ValueResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\BuiltinTypeValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Compon", "suffix": "alueResolver();\n\n $input = new ArrayInput(['username' => 'john'], new InputDefinition([\n new InputArgument('username'),\n ]));\n\n $command = new class {\n public function __invoke(\n #[Argument]\n ", "middle": "ent\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass BuiltinTypeValueResolverTest extends TestCase\n{\n public function testResolveStringArgument()\n {\n $resolver = new BuiltinTypeV", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/BuiltinTypeValueResolverTest.php", "language": "php", "file_size": 8280, "cut_index": 716, "middle_length": 229}} {"prefix": "kedEnumValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\BuiltinTypeValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\DateTimeValueResolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\MapInputValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\MapInput;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Compon", "suffix": "onsole\\Input\\InputOption;\nuse Symfony\\Component\\Validator\\Validation;\n\nclass MapInputValueResolverTest extends TestCase\n{\n public function testResolveMapInput()\n {\n $resolver = new MapInputValueResolver(new BuiltinTypeValueResolver(), new Back", "middle": "ent\\Console\\Exception\\InputValidationFailedException;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\C", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/MapInputValueResolverTest.php", "language": "php", "file_size": 11202, "cut_index": 921, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\SingleCommandApplication;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\nclass SingleCommandApplicationTest extends Te", "suffix": " $command = new class extends SingleCommandApplication {\n protected function execute(InputInterface $input, OutputInterface $output): int\n {\n return 0;\n }\n };\n\n $command->setAutoExit(false);\n ", "middle": "stCase\n{\n public function testRun()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Command/SingleCommandApplicationTest.php", "language": "php", "file_size": 969, "cut_index": 582, "middle_length": 52}} {"prefix": "\\Exception\\InvalidFileException;\nuse Symfony\\Component\\Console\\Input\\File\\InputFile;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass InputFileTest extends TestCase\n{\n private Filesystem $filesystem;\n private string $tempDir;\n\n protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n $this->tempDir = sys_get_temp_dir().\\DIRECTORY_SEPARATOR.microtime(true).'.'.mt_rand();\n mkdir($this->tempDir, 0o777, true);\n }\n\n protected function tearDown(): void\n", "suffix": "ta);\n\n $this->assertTrue($file->isValid());\n $this->assertTrue($file->isTempFile());\n $this->assertSame($data, $file->getContents());\n $this->assertStringStartsWith(sys_get_temp_dir().'/symfony_input_', $file->getPathname());\n ", "middle": " {\n $this->filesystem->remove($this->tempDir);\n InputFile::cleanupAll();\n }\n\n public function testFromDataCreatesTemporaryFile()\n {\n $data = 'test content';\n $file = InputFile::fromData($da", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Input/File/InputFileTest.php", "language": "php", "file_size": 10699, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Terminal\\Image;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Terminal\\Image\\ITerm2Protocol;\n\nclass ITerm2ProtocolTest extends TestCase\n{\n public function testGetName()\n {\n $this->assertSame('iterm2', (new ITerm2Protocol())->getName());\n }\n\n public function testDetectPastedImageWithITerm2Sequence(", "suffix": "ce()\n {\n $data = 'just plain text';\n\n $this->assertFalse((new ITerm2Protocol())->detectPastedImage($data));\n }\n\n public function testDecodeValidPayload()\n {\n $imageData = 'test image data';\n $base64 = base64_encode($", "middle": ")\n {\n $data = \"some text\\x1b]1337;File=inline=1:base64data\\x07more text\";\n\n $this->assertTrue((new ITerm2Protocol())->detectPastedImage($data));\n }\n\n public function testDetectPastedImageWithoutITerm2Sequen", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Terminal/Image/ITerm2ProtocolTest.php", "language": "php", "file_size": 4824, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ArgumentResolverInterface;\nuse Symfony\\Component\\Console\\ArgumentResolver\\TraceableArgumentResolver;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\", "suffix": " = new class implements ArgumentResolverInterface {\n public function getArguments(InputInterface $input, callable $command, ?\\ReflectionFunctionAbstract $reflector = null): array\n {\n return ['arg1', 'arg2'];\n ", "middle": "InputInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\nclass TraceableArgumentResolverTest extends TestCase\n{\n public function testTimingsInGetArguments()\n {\n $stopwatch = new Stopwatch();\n $innerResolver", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/TraceableArgumentResolverTest.php", "language": "php", "file_size": 2410, "cut_index": 563, "middle_length": 229}} {"prefix": "nput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass ArrayInputTest extends TestCase\n{\n public function testGetFirstArgument()\n {\n $input = new ArrayInput([]);\n $this->assertNull($input->getFirstArgument(), '->getFirstArgument() returns null if no argument were passed');\n $input = new ArrayInput(['name' => 'Fabien']);\n $this->assertSame('Fabien', $input->getFirst", "suffix": " returns the first passed argument');\n }\n\n public function testHasParameterOption()\n {\n $input = new ArrayInput(['name' => 'Fabien', '--foo' => 'bar']);\n $this->assertTrue($input->hasParameterOption('--foo'), '->hasParameterOption() ", "middle": "Argument(), '->getFirstArgument() returns the first passed argument');\n $input = new ArrayInput(['--foo' => 'bar', 'name' => 'Fabien']);\n $this->assertSame('Fabien', $input->getFirstArgument(), '->getFirstArgument()", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php", "language": "php", "file_size": 16499, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\Completion;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass CompletionInputTest extends TestCase\n{\n #[DataProvider('provideBindData')]\n public function testBind(CompletionInput $in", "suffix": "tOption('with-optional-value', 'o', InputOption::VALUE_OPTIONAL),\n new InputOption('without-value', 'n', InputOption::VALUE_NONE),\n new InputArgument('required-arg', InputArgument::REQUIRED),\n new InputArgument('optional-ar", "middle": "put, string $expectedType, ?string $expectedName, string $expectedValue)\n {\n $definition = new InputDefinition([\n new InputOption('with-required-value', 'r', InputOption::VALUE_REQUIRED),\n new Inpu", "meta": {"filepath": "src/Symfony/Component/Console/Tests/Completion/CompletionInputTest.php", "language": "php", "file_size": 8510, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Tests\\ArgumentResolver\\ValueResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\DefaultValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\n\nclass DefaultValu", "suffix": " 'default') => null;\n $reflection = new \\ReflectionFunction($function);\n $parameter = $reflection->getParameters()[0];\n $member = new ReflectionMember($parameter);\n\n $result = $resolver->resolve('name', $input, $member);\n\n ", "middle": "eResolverTest extends TestCase\n{\n public function testResolveParameterWithDefaultValue()\n {\n $resolver = new DefaultValueResolver();\n $input = new ArrayInput([]);\n\n $function = static fn (string $name =", "meta": {"filepath": "src/Symfony/Component/Console/Tests/ArgumentResolver/ValueResolver/DefaultValueResolverTest.php", "language": "php", "file_size": 2585, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Input\\File;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidFileException;\nuse Symfony\\Component\\Mime\\MimeTypes;\n\n/**\n * Represents a file provided through console input.\n *\n * Inspired by HttpFoundation's UploadedFile, this class wraps a file provided\n * through console input (either pasted via terminal image protocols or typed as a path).\n *\n * @author Robin Chalas \n */\nfinal class InputFile extends \\SplFileInfo\n", "suffix": " string $path,\n bool $isTempFile = false,\n ?string $mimeType = null,\n ) {\n parent::__construct($path);\n\n $this->isTempFile = $isTempFile;\n $this->mimeType = $mimeType;\n\n if ($isTempFile) {\n if (!se", "middle": "{\n /** @var string[] */\n private static array $tempFiles = [];\n private static bool $shutdownRegistered = false;\n\n private ?string $mimeType = null;\n private bool $isTempFile;\n\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Console/Input/File/InputFile.php", "language": "php", "file_size": 7757, "cut_index": 716, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Responsible for resolving the value of a Command argument based on its\n * parameter metadata and the Command MapInput.\n *\n ", "suffix": "Robin Chalas \n */\ninterface ValueResolverInterface\n{\n /**\n * Returns the possible value(s) for the argument.\n */\n public function resolve(string $argumentName, InputInterface $input, ReflectionMember $member): iterable", "middle": "* @author Nicolas Grekas \n * @author ", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/ValueResolverInterface.php", "language": "php", "file_size": 871, "cut_index": 559, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Component\\Console\\Attribute\\MapDateTime;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Resolves a \\DateTime* instance as a command input argument or option.\n *\n * @author Benjamin Eb", "suffix": "(\n private readonly ?ClockInterface $clock = null,\n ) {\n }\n\n public function resolve(string $argumentName, InputInterface $input, ReflectionMember $member): iterable\n {\n $type = $member->getType();\n\n if (!$type instanceof \\", "middle": "erlei \n * @author Tim Goudriaan \n * @author Robin Chalas \n */\nfinal class DateTimeValueResolver implements ValueResolverInterface\n{\n public function __construct", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/DateTimeValueResolver.php", "language": "php", "file_size": 3360, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Yields the default value defined in the command signature when no input value h", "suffix": "string $argumentName, InputInterface $input, ReflectionMember $member): iterable\n {\n if ($member->hasDefaultValue()) {\n return [$member->getDefaultValue()];\n }\n\n if ($member->isNullable() && !$member->isVariadic()) {\n ", "middle": "as been explicitly passed.\n *\n * @author Iltar van der Berg \n * @author Robin Chalas \n */\nfinal class DefaultValueResolver implements ValueResolverInterface\n{\n public function resolve(", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/DefaultValueResolver.php", "language": "php", "file_size": 1061, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Yie", "suffix": "tInterface $input, ReflectionMember $member): iterable\n {\n if (!$member->isVariadic()) {\n return [];\n }\n\n if ($argument = Argument::tryFrom($member->getMember())) {\n $values = $input->getArgument($argument->nam", "middle": "lds a variadic argument's values from the input.\n *\n * @author Robin Chalas \n */\nfinal class VariadicValueResolver implements ValueResolverInterface\n{\n public function resolve(string $argumentName, Inpu", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/VariadicValueResolver.php", "language": "php", "file_size": 1814, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Formatter;\n\n/**\n * @author Tien Xuan Vo \n */\nfinal class NullOutputFormatter implements OutputFormatterInterface\n{\n private NullOutputFormatterStyle $style;\n\n public function format(?string $message): ?string\n {", "suffix": "ew NullOutputFormatterStyle();\n }\n\n public function hasStyle(string $name): bool\n {\n return false;\n }\n\n public function isDecorated(): bool\n {\n return false;\n }\n\n public function setDecorated(bool $decorated): void\n ", "middle": "\n return null;\n }\n\n public function getStyle(string $name): OutputFormatterStyleInterface\n {\n // to comply with the interface we must return a OutputFormatterStyleInterface\n return $this->style ??= n", "meta": {"filepath": "src/Symfony/Component/Console/Formatter/NullOutputFormatter.php", "language": "php", "file_size": 1158, "cut_index": 518, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Formatter;\n\n/**\n * @author Tien Xuan Vo \n */\nfinal class NullOutputFormatterStyle implements OutputFormatterStyleInterface\n{\n public function apply(string $text): string\n {\n return $text;\n }\n\n public function setBackground(?string $color): void\n {\n // do ", "suffix": "ring $color): void\n {\n // do nothing\n }\n\n public function setOption(string $option): void\n {\n // do nothing\n }\n\n public function setOptions(array $options): void\n {\n // do nothing\n }\n\n public function unsetOp", "middle": "nothing\n }\n\n public function setForeground(?st", "meta": {"filepath": "src/Symfony/Component/Console/Formatter/NullOutputFormatterStyle.php", "language": "php", "file_size": 953, "cut_index": 582, "middle_length": 52}} {"prefix": "n Symfony\\Component\\String\\b;\n\n/**\n * Formatter class for console output.\n *\n * @author Konstantin Kudryashov \n * @author Roland Franssen \n */\nclass OutputFormatter implements WrappableOutputFormatterInterface\n{\n private array $styles = [];\n private OutputFormatterStyleStack $styleStack;\n\n public function __clone()\n {\n $this->styleStack = clone $this->styleStack;\n foreach ($this->styles as $key => $value) {\n $this->styles[$k", "suffix": "\\$2', $text);\n\n return self::escapeTrailingBackslash($text);\n }\n\n /**\n * Escapes trailing \"\\\" in given text.\n *\n * @internal\n */\n public static function escapeTrailingBackslash(string $text): string\n {\n if (str_end", "middle": "ey] = clone $value;\n }\n }\n\n /**\n * Escapes \"<\" and \">\" special chars in given text.\n */\n public static function escape(string $text): string\n {\n $text = preg_replace('/([^\\\\\\\\]|^)([<>])/', '$1\\\\\\", "meta": {"filepath": "src/Symfony/Component/Console/Formatter/OutputFormatter.php", "language": "php", "file_size": 9305, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Formatter;\n\n/**\n * Formatter interface for console output.\n *\n * @author Konstantin Kudryashov \n */\ninterface OutputFormatterInterface\n{\n /**\n * Sets the decorated flag.\n */\n public function setDecorated(bool $decora", "suffix": "rface $style): void;\n\n /**\n * Checks if output formatter has style with specified name.\n */\n public function hasStyle(string $name): bool;\n\n /**\n * Gets style options from style with specified name.\n *\n * @throws \\InvalidArgume", "middle": "ted): void;\n\n /**\n * Whether the output will decorate messages.\n */\n public function isDecorated(): bool;\n\n /**\n * Sets a new style.\n */\n public function setStyle(string $name, OutputFormatterStyleInte", "meta": {"filepath": "src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php", "language": "php", "file_size": 1259, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Formatter;\n\nuse Symfony\\Component\\Console\\Color;\n\n/**\n * Formatter style class for defining styles.\n *\n * @author Konstantin Kudryashov \n */\nclass OutputFormatterStyle implements OutputFormatterStyleInterface\n{\n private Color $color;\n private string $foreground;\n", "suffix": "nd The style foreground color name\n * @param string|null $background The style background color name\n */\n public function __construct(?string $foreground = null, ?string $background = null, array $options = [])\n {\n $this->color = new C", "middle": " private string $background;\n private array $options;\n private ?string $href = null;\n private bool $handlesHrefGracefully;\n\n /**\n * Initializes output formatter style.\n *\n * @param string|null $foregrou", "meta": {"filepath": "src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php", "language": "php", "file_size": 2737, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Formatter;\n\n/**\n * Formatter style interface for defining styles.\n *\n * @author Konstantin Kudryashov \n */\ninterface OutputFormatterStyleInterface\n{\n /**\n * Sets style foreground color.\n */\n public function ", "suffix": "tion(string $option): void;\n\n /**\n * Unsets some specific style option.\n */\n public function unsetOption(string $option): void;\n\n /**\n * Sets multiple style options at once.\n */\n public function setOptions(array $options): void;", "middle": "setForeground(?string $color): void;\n\n /**\n * Sets style background color.\n */\n public function setBackground(?string $color): void;\n\n /**\n * Sets some specific style option.\n */\n public function setOp", "meta": {"filepath": "src/Symfony/Component/Console/Formatter/OutputFormatterStyleInterface.php", "language": "php", "file_size": 1111, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Formatter;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * @author Jean-François Simon \n */\nclass OutputFormatterStyleStack implements ResetInterface\n{\n /**\n * @var OutputFormatterStyleInte", "suffix": "tyle ?? new OutputFormatterStyle();\n $this->reset();\n }\n\n /**\n * Resets stack (ie. empty internal arrays).\n */\n public function reset(): void\n {\n $this->styles = [];\n }\n\n /**\n * Pushes a style in the stack.\n ", "middle": "rface[]\n */\n private array $styles = [];\n\n private OutputFormatterStyleInterface $emptyStyle;\n\n public function __construct(?OutputFormatterStyleInterface $emptyStyle = null)\n {\n $this->emptyStyle = $emptyS", "meta": {"filepath": "src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php", "language": "php", "file_size": 2545, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\DependencyInjection;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Command\\LazyCommand;\nuse Symfony\\Component\\Console\\CommandLoader\\ContainerCommandLoader;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\Ser", "suffix": "nent\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\n\n/**\n * Registers console commands.\n *\n * @author Grégoire Pineau \n */\nclass AddConsoleCommandPass implements CompilerPassInterface\n{\n publ", "middle": "viceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Compo", "meta": {"filepath": "src/Symfony/Component/Console/DependencyInjection/AddConsoleCommandPass.php", "language": "php", "file_size": 7578, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\DependencyInjection;\n\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\TraceableValueResolver;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInject", "suffix": "on\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Gathers and configures the console argument value resolvers.\n *\n * @author Robin Chalas \n */\nclass ConsoleArgumentValueResolverPass implements Compile", "middle": "ion\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PriorityTaggedServiceTrait;\nuse Symfony\\Component\\DependencyInjecti", "meta": {"filepath": "src/Symfony/Component/Console/DependencyInjection/ConsoleArgumentValueResolverPass.php", "language": "php", "file_size": 3030, "cut_index": 563, "middle_length": 229}} {"prefix": "mfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireCallable;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Target;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse S", "suffix": "\\TypedReference;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\n\n/**\n * Creates the service-locators required by ServiceValueResolver for commands.\n *\n * @author Nicolas Grekas \n * @author Robin Chalas \n */\nfinal clas", "middle": "ymfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection", "meta": {"filepath": "src/Symfony/Component/Console/DependencyInjection/RegisterCommandArgumentLocatorsPass.php", "language": "php", "file_size": 9649, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Removes empty service-locators registered for ServiceValueResolver for commands.\n *\n * @author Robin Chalas getDefinition('console.argument_resolver.service');\n $commandLocatorRef = $serviceResolverDef->getArgument(0);\n\n if (!$commandLocatorRef) {\n ", "middle": "il.com>\n */\nfinal class RemoveEmptyCommandArgumentLocatorsPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('console.argument_resol", "meta": {"filepath": "src/Symfony/Component/Console/DependencyInjection/RemoveEmptyCommandArgumentLocatorsPass.php", "language": "php", "file_size": 2076, "cut_index": 563, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\CommandLoader;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\CommandNotFoundException;\n\n/**\n * @author Robin Chalas \n */\ninterface CommandLoaderInterface\n{\n /**\n * Loads a command.\n *\n ", "suffix": "CommandNotFoundException\n */\n public function get(string $name): Command;\n\n /**\n * Checks if a command exists.\n */\n public function has(string $name): bool;\n\n /**\n * @return string[]\n */\n public function getNames(): array", "middle": " * @throws ", "meta": {"filepath": "src/Symfony/Component/Console/CommandLoader/CommandLoaderInterface.php", "language": "php", "file_size": 810, "cut_index": 536, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\CommandLoader;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\CommandNotFoundException;\n\n/**\n * Loads commands from a PSR-11 container.\n *\n * @author Robin Chalas has($name)) {\n throw new CommandNotFoundException(\\sprintf('Command \"%s\" do", "middle": "halas@gmail.com>\n */\nclass ContainerCommandLoader implements CommandLoaderInterface\n{\n /**\n * @param array $commandMap An array with command names as keys and service ids as values\n */\n public function __construct(\n", "meta": {"filepath": "src/Symfony/Component/Console/CommandLoader/ContainerCommandLoader.php", "language": "php", "file_size": 1370, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\CommandLoader;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\CommandNotFoundException;\n\n/**\n * A simple command loader using factories to instantiate commands lazily.\n *\n * @author Maxime Steinhausser factories[$name]);\n }\n\n public function get(string $name): Command\n {\n if (!isset($this->factories[$name])) {\n throw new CommandN", "middle": ".steinhausser@gmail.com>\n */\nclass FactoryCommandLoader implements CommandLoaderInterface\n{\n /**\n * @param callable[] $factories Indexed by command names\n */\n public function __construct(\n private array $fact", "meta": {"filepath": "src/Symfony/Component/Console/CommandLoader/FactoryCommandLoader.php", "language": "php", "file_size": 1263, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\n\n/**\n * @author Fabien Potencier \n * @author Julien Boudry \n */\nenum AnsiColorMode\n{\n /*\n * Classical 4-bit Ansi colors, including 8 classical colors and 8 bright color. Output syntax is \"ESC[${foreGroundColorcode};", "suffix": "kward compatibility).\n * Output syntax is: \"ESC[38;5;${foreGroundColorcode};48;5;${backGroundColorcode}m\"\n * Should be compatible with most terminals.\n */\n case Ansi8;\n\n /*\n * 24-bit Ansi colors (RGB).\n * Output syntax is: \"ESC[38", "middle": "${backGroundColorcode}m\"\n * Must be compatible with all terminals and it's the minimal version supported.\n */\n case Ansi4;\n\n /*\n * 8-bit Ansi colors (240 different colors + 16 duplicate color codes, ensuring bac", "meta": {"filepath": "src/Symfony/Component/Console/Output/AnsiColorMode.php", "language": "php", "file_size": 3492, "cut_index": 614, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\n/**\n * @author Jean-François Simon \n */\nclass BufferedOutput extends Output\n{\n private string $buffer = '';\n\n /**\n * Empties buffer and returns its content.\n */\n public function fetch(): string\n {\n $content", "suffix": "er;\n $this->buffer = '';\n\n return $content;\n }\n\n protected function doWrite(string $message, bool $newline): void\n {\n $this->buffer .= $message;\n\n if ($newline) {\n $this->buffer .= \\PHP_EOL;\n }\n }\n}", "middle": " = $this->buff", "meta": {"filepath": "src/Symfony/Component/Console/Output/BufferedOutput.php", "language": "php", "file_size": 808, "cut_index": 536, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\n\n/**\n * @internal\n */\nfinal class CombinedOutput implements OutputInterface\n{\n /**\n * @param OutputInterface[] $outputs\n */\n public function __c", "suffix": " = false, int $options = 0): void\n {\n foreach ($this->outputs as $output) {\n $output->write(...\\func_get_args());\n }\n }\n\n public function writeln(iterable|string $messages, int $options = 0): void\n {\n foreach ($t", "middle": "onstruct(\n private array $outputs,\n ) {\n if (!$outputs) {\n throw new LogicException('Expected at least one output.');\n }\n }\n\n public function write(iterable|string $messages, bool $newline", "meta": {"filepath": "src/Symfony/Component/Console/Output/CombinedOutput.php", "language": "php", "file_size": 2568, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\n\n/**\n * ConsoleOutput is the default class for all CLI output. It uses STDOUT and STDERR.\n *\n * This class is a convenient wrapper around `StreamOutput` for both STDOUT and STDERR.\n *\n * $output = new ConsoleOutput();\n *\n * This is equivalent to:\n *\n * $output = new StreamOutput(fopen('php://stdout', 'w'));\n * $stdErr = new StreamOutput(fopen('php://std", "suffix": "\n\n /**\n * @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)\n * @param bool|null $decorated Whether to decorate messages (null for auto-guessing)\n * @pa", "middle": "err', 'w'));\n *\n * @author Fabien Potencier \n */\nclass ConsoleOutput extends StreamOutput implements ConsoleOutputInterface\n{\n private OutputInterface $stderr;\n private array $consoleSectionOutputs = [];", "meta": {"filepath": "src/Symfony/Component/Console/Output/ConsoleOutput.php", "language": "php", "file_size": 5543, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\n/**\n * ConsoleOutputInterface is the interface implemented by ConsoleOutput class.\n * This adds information about stderr and section output stream.\n *\n * @author Dariusz Górecki \n */\ninterface ConsoleOutputIn", "suffix": "s OutputInterface\n{\n /**\n * Gets the OutputInterface for errors.\n */\n public function getErrorOutput(): OutputInterface;\n\n public function setErrorOutput(OutputInterface $error): void;\n\n public function section(): ConsoleSectionOutput;\n", "middle": "terface extend", "meta": {"filepath": "src/Symfony/Component/Console/Output/ConsoleOutputInterface.php", "language": "php", "file_size": 785, "cut_index": 512, "middle_length": 14}} {"prefix": "ponent\\Console\\Terminal;\n\n/**\n * @author Pierre du Plessis \n * @author Gabriel Ostrolucký \n */\nclass ConsoleSectionOutput extends StreamOutput\n{\n private array $content = [];\n private int $lines = 0;\n private array $sections;\n private Terminal $terminal;\n private int $maxHeight = 0;\n\n /**\n * @param resource $stream\n * @param ConsoleSectionOutput[] $sections\n */\n public function __construct($stream, array &$section", "suffix": "s;\n $this->terminal = new Terminal();\n }\n\n /**\n * Defines a maximum number of lines for this section.\n *\n * When more lines are added, the section will automatically scroll to the\n * end (i.e. remove the first lines to comply w", "middle": "s, int $verbosity, bool $decorated, OutputFormatterInterface $formatter)\n {\n parent::__construct($stream, $verbosity, $decorated, $formatter);\n array_unshift($sections, $this);\n $this->sections = &$section", "meta": {"filepath": "src/Symfony/Component/Console/Output/ConsoleSectionOutput.php", "language": "php", "file_size": 9264, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\nuse Symfony\\Component\\Console\\Formatter\\NullOutputFormatter;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\n\n/**\n * NullOutput suppresses all output.\n *\n * $output = new NullOutput();\n *\n * @author Fabien Potencier formatter ??= new NullOutputFormatter();\n }\n\n publi", "middle": "com>\n * @author Tobias Schultze \n */\nclass NullOutput implements OutputInterface\n{\n private NullOutputFormatter $formatter;\n\n public function setFormatter(OutputFormatterInterface $formatter): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Console/Output/NullOutput.php", "language": "php", "file_size": 2006, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\n\n/**\n * Base class for output classes.\n *\n * There are six levels of verbosity:\n *\n * * normal: no option passed (normal output)\n * * verbose: -v (more output)\n * * very verbose: -vv (highly extended outpu", "suffix": "e int $verbosity;\n private OutputFormatterInterface $formatter;\n\n /**\n * @param int|null $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)\n * @param bool $decorate", "middle": "t)\n * * debug: -vvv (all debug output)\n * * quiet: -q (only output errors)\n * * silent: --silent (no output)\n *\n * @author Fabien Potencier \n */\nabstract class Output implements OutputInterface\n{\n privat", "meta": {"filepath": "src/Symfony/Component/Console/Output/Output.php", "language": "php", "file_size": 4281, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\n\n/**\n * OutputInterface is the interface implemented by all Output classes.\n *\n * @author Fabien Potencier \n */\ninterface OutputInterface\n{\n public const VERBOSITY_SILENT = 8;\n public cons", "suffix": " public const OUTPUT_RAW = 2;\n public const OUTPUT_PLAIN = 4;\n\n /**\n * Writes a message to the output.\n *\n * @param bool $newline Whether to add a newline\n * @param int-mask-of\n */\nclass StreamOutput extends Output\n{\n /** @var resource */\n private $stream;\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Output/StreamOutput.php", "language": "php", "file_size": 4204, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\n\n/**\n * @internal\n *\n * @author Théo FIDRY \n */\nfinal class TestOutput i", "suffix": "t $errorOutput;\n private OutputFormatterInterface $formatter;\n\n /**\n * @param OutputInterface::VERBOSITY_* $verbosity\n */\n public function __construct(\n private bool $decorated,\n private int $verbosity,\n ?OutputFormatt", "middle": "mplements ConsoleOutputInterface\n{\n private OutputInterface $innerOutput;\n private OutputInterface $innerErrorOutput;\n private OutputInterface $displayOutput;\n private CombinedOutput $output;\n private CombinedOutpu", "meta": {"filepath": "src/Symfony/Component/Console/Output/TestOutput.php", "language": "php", "file_size": 4829, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Output;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface;\n\n/**\n * A BufferedOutput that keeps only the last N chars.\n *\n * @author Jérémy Derussé \n */\nclass Tri", "suffix": "terface $formatter = null)\n {\n if ($maxLength <= 0) {\n throw new InvalidArgumentException(\\sprintf('\"%s()\" expects a strictly positive maxLength. Got %d.', __METHOD__, $maxLength));\n }\n\n parent::__construct($verbosity, $d", "middle": "mmedBufferOutput extends Output\n{\n private int $maxLength;\n private string $buffer = '';\n\n public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, ?OutputFormatterIn", "meta": {"filepath": "src/Symfony/Component/Console/Output/TrimmedBufferOutput.php", "language": "php", "file_size": 1553, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer;\n\nuse PHPStan\\PhpDocParser\\Parser\\PhpDocParser;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Config\\ConfigCacheFactoryInterface;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\GenericTypePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Pro", "suffix": "mfony\\Component\\JsonStreamer\\Read\\StreamReaderGenerator;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateIntervalValueObjectTransformer;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateTimeValueObjectTransformer;\nuse Symfony\\Component\\JsonStreamer\\Tr", "middle": "pertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Read\\AttributePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Read\\Instantiator;\nuse Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator;\nuse Sy", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/JsonStreamReader.php", "language": "php", "file_size": 4838, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer;\n\nuse PHPStan\\PhpDocParser\\Parser\\PhpDocParser;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Config\\ConfigCacheFactoryInterface;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\GenericTypePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Write\\AttributePropertyMetada", "suffix": "neValueObjectTransformer;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\PropertyValueTransformerInterface;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\ValueObjectTransformerInterface;\nuse Symfony\\Component\\JsonStreamer\\Write\\StreamWriterGenerator;\nuse ", "middle": "taLoader;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateIntervalValueObjectTransformer;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateTimeValueObjectTransformer;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateTimeZo", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/JsonStreamWriter.php", "language": "php", "file_size": 5237, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer;\n\n/**\n * @author Mathias Arlaud \n *\n * @internal\n */\ntrait PhpGeneratorTrait\n{\n /**\n * @var array\n */\n private array $valueObjectTransformerIdCache = [];\n\n /**\n * @param class-string $", "suffix": "merIdCache[$className];\n }\n\n if ($this->transformers->has($className)) {\n return $this->valueObjectTransformerIdCache[$className] = $className;\n }\n\n $reflection = new \\ReflectionClass($className);\n if (($parent", "middle": "className\n */\n private function getValueObjectTransformerId(string $className): ?string\n {\n if (\\array_key_exists($className, $this->valueObjectTransformerIdCache)) {\n return $this->valueObjectTransfor", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/PhpGeneratorTrait.php", "language": "php", "file_size": 1746, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer;\n\nuse Symfony\\Component\\Config\\ConfigCacheFactoryInterface;\nuse Symfony\\Component\\Config\\ConfigCacheInterface;\nuse Symfony\\Component\\Config\\Resource\\ReflectionClassResource;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse", "suffix": "= null;\n\n public function __construct(\n private PropertyMetadataLoaderInterface $propertyMetadataLoader,\n private string $cacheDir,\n private ?ConfigCacheFactoryInterface $cacheFactory = null,\n ) {\n }\n\n /**\n * Dumps the ", "middle": " Symfony\\Component\\TypeInfo\\Type\\GenericType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\n\n/**\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class StreamerDumper\n{\n private ?Filesystem $fs ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/StreamerDumper.php", "language": "php", "file_size": 3469, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Read;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException;\n\n/**\n * Decodes string or stream using the native \"json_decode\" PHP function.\n *\n * @author Mathias Arla", "suffix": "ON_ERROR);\n } catch (\\JsonException $e) {\n throw new UnexpectedValueException('JSON is not valid: '.$e->getMessage());\n }\n }\n\n /**\n * @param resource $stream\n */\n public static function decodeStream($stream, int $o", "middle": "ud \n *\n * @internal\n */\nfinal class Decoder\n{\n public static function decodeString(string $json): mixed\n {\n try {\n return json_decode($json, associative: true, flags: \\JSON_THROW_", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Read/Decoder.php", "language": "php", "file_size": 1280, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Read;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException;\n\n/**\n * Instantiates a new $className eagerly, then sets the given properties.\n *\n * The $className class must have a constructor without any parameter\n * and th", "suffix": "\n * @param array $properties\n *\n * @return T\n */\n public function instantiate(string $className, array $properties): object\n {\n $object = new $className();\n\n foreach ($properties as $name => $value) {\n ", "middle": "e related properties must be public.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class Instantiator\n{\n /**\n * @template T of object\n *\n * @param class-string $className", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Read/Instantiator.php", "language": "php", "file_size": 1239, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Read;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\n\n/**\n * Instantiates a new $className lazy ghost.\n *\n * The $initializer must be a callable that sets the actual object values when being called.\n *\n * @author Mathias Arlaud $className\n * @param callable(T): void $initializer\n *\n * @return T\n */\n public function instantiate(string $className, callable $initializer): object\n {\n ", "middle": "ud@gmail.com>\n *\n * @internal\n */\nfinal class LazyInstantiator\n{\n /**\n * @var array{reflection: array>}\n */\n private static array $cache = [\n 'reflection' => [],\n ];\n", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Read/LazyInstantiator.php", "language": "php", "file_size": 1542, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Console\\ArgumentResolver\\Exception\\NearMissValueResolverException;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symf", "suffix": "gmail.com>\n */\nfinal class ServiceValueResolver implements ValueResolverInterface\n{\n public function __construct(\n private readonly ContainerInterface $container,\n ) {\n }\n\n public function resolve(string $argumentName, InputInterface $in", "middle": "ony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\n/**\n * Yields a service from a service locator keyed by command and argument name.\n *\n * @author Nicolas Grekas \n * @author Robin Chalas \n */\ninterface InputInterface\n{\n /**\n * Returns the first argument from the ", "suffix": "t parameters\n * before they have been validated. It must be used carefully.\n * Does not necessarily return the correct result for short options\n * when multiple flags are combined in the same option.\n *\n * @param string|array $values ", "middle": "raw parameters (not parsed).\n */\n public function getFirstArgument(): ?string;\n\n /**\n * Returns true if the raw parameters (not parsed) contain a value.\n *\n * This method is to be used to introspect the inpu", "meta": {"filepath": "src/Symfony/Component/Console/Input/InputInterface.php", "language": "php", "file_size": 4540, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Input;\n\n/**\n * Provides access to the original input arguments and options\n * before they are merged with default values, and allows\n * unparsing options back to their CLI representation.\n *\n * @author Théo FIDRY \n */\ninterface RawInputInterface extends InputInterfac", "suffix": ";\n\n /**\n * Returns all the given options NOT merged with the default values.\n *\n * @return array|null>\n */\n public function getRawOptions(): array;\n\n /**\n * Returns a stri", "middle": "e\n{\n /**\n * Returns all the given arguments NOT merged with the default values.\n *\n * @return array|null>\n */\n public function getRawArguments(): array", "meta": {"filepath": "src/Symfony/Component/Console/Input/RawInputInterface.php", "language": "php", "file_size": 2090, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Input;\n\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\n\n/**\n * StringInput represents an input provided as a string.\n *\n * Usage:\n *\n * $input = new StringInput('foo --bar=\"foobar\"');\n *\n * @author Fabien Potencier \n */\nclass StringInput extends ", "suffix": "ng representing the parameters from the CLI\n */\n public function __construct(string $input)\n {\n parent::__construct([]);\n\n $this->setTokens($this->tokenize($input));\n }\n\n /**\n * Tokenizes a string.\n *\n * @return li", "middle": "ArgvInput\n{\n public const REGEX_UNQUOTED_STRING = '([^\\s\\\\\\\\]+?)';\n public const REGEX_QUOTED_STRING = '(?:\"([^\"\\\\\\\\]*(?:\\\\\\\\.[^\"\\\\\\\\]*)*)\"|\\'([^\\'\\\\\\\\]*(?:\\\\\\\\.[^\\'\\\\\\\\]*)*)\\')';\n\n /**\n * @param string $input A stri", "meta": {"filepath": "src/Symfony/Component/Console/Input/StringInput.php", "language": "php", "file_size": 2651, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\CI;\n\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Utility class for Github actions.\n *\n * @author Maxime Steinhausser \n */\nclass GithubActionReporter\n{\n /**\n * @see https://github.com/actions/toolkit/blob/5e5e1b7aacba68a53836a34db4a288c3c1c1585b/packages/core/src/command.ts#L80-L85\n ", "suffix": "re/src/command.ts#L87-L94\n */\n private const ESCAPED_PROPERTIES = [\n '%' => '%25',\n \"\\r\" => '%0D',\n \"\\n\" => '%0A',\n ':' => '%3A',\n ',' => '%2C',\n ];\n\n public function __construct(\n private OutputInterf", "middle": " */\n private const ESCAPED_DATA = [\n '%' => '%25',\n \"\\r\" => '%0D',\n \"\\n\" => '%0A',\n ];\n\n /**\n * @see https://github.com/actions/toolkit/blob/5e5e1b7aacba68a53836a34db4a288c3c1c1585b/packages/co", "meta": {"filepath": "src/Symfony/Component/Console/CI/GithubActionReporter.php", "language": "php", "file_size": 3113, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Completion;\n\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\n/**\n * Stores all completion suggestions for the current input.\n *\n * @author Wouter de Jong \n */\nfinal class CompletionSuggestions\n{\n private array $valueSuggestions = [];\n private array $optionSugges", "suffix": "$value instanceof Suggestion ? new Suggestion($value) : $value;\n\n return $this;\n }\n\n /**\n * Add multiple suggested values at once for an input option or argument.\n *\n * @param list $values\n *\n * @return $", "middle": "tions = [];\n\n /**\n * Add a suggested value for an input option or argument.\n *\n * @return $this\n */\n public function suggestValue(string|Suggestion $value): static\n {\n $this->valueSuggestions[] = !", "meta": {"filepath": "src/Symfony/Component/Console/Completion/CompletionSuggestions.php", "language": "php", "file_size": 2118, "cut_index": 563, "middle_length": 229}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Completion;\n\n/**\n * Represents a single suggested value.\n *\n * @author Wouter de Jong \n */\nclass Suggestion implements \\Stringable\n{\n public function __construct(\n private readonly string $value,\n private r", "suffix": " public function getValue(): string\n {\n return $this->value;\n }\n\n public function getDescription(): string\n {\n return $this->description;\n }\n\n public function __toString(): string\n {\n return $this->getValue();\n ", "middle": "eadonly string $description = '',\n ) {\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Completion/Suggestion.php", "language": "php", "file_size": 828, "cut_index": 516, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Completion\\Output;\n\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @author Jitendra A \n */\nclass ZshCompletionOutput implements CompletionOutputInterfa", "suffix": "lue().($value->getDescription() ? \"\\t\".$value->getDescription() : '');\n }\n foreach ($suggestions->getOptionSuggestions() as $option) {\n $values[] = '--'.$option->getName().($option->getDescription() ? \"\\t\".$option->getDescription()", "middle": "ce\n{\n public function write(CompletionSuggestions $suggestions, OutputInterface $output): void\n {\n $values = [];\n foreach ($suggestions->getValueSuggestions() as $value) {\n $values[] = $value->getVa", "meta": {"filepath": "src/Symfony/Component/Console/Completion/Output/ZshCompletionOutput.php", "language": "php", "file_size": 1266, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Terminal\\Image;\n\n/**\n * Handles the Kitty Graphics Protocol for terminal image paste/display.\n *\n * The Kitty Graphics Protocol uses Application Programming Command (APC) sequences:\n * - Start: ESC _ G (0x1B 0x5F 0x47)\n * - End: ESC \\ (0x1B 0x5C) - also known as ST (String Terminator)\n *\n * Format: ESC_G;ESC\\\n *\n * ", "suffix": "x1b_G\";\n public const ST = \"\\x1b\\\\\";\n\n public function detectPastedImage(string $data): bool\n {\n return str_contains($data, self::APC_START);\n }\n\n public function decode(string $data): array\n {\n if (false === $start = strpos", "middle": "@see https://sw.kovidgoyal.net/kitty/graphics-protocol/\n *\n * @author Robin Chalas \n *\n * @internal\n */\nfinal class KittyGraphicsProtocol implements ImageProtocolInterface\n{\n public const APC_START = \"\\", "meta": {"filepath": "src/Symfony/Component/Console/Terminal/Image/KittyGraphicsProtocol.php", "language": "php", "file_size": 4014, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Messenger;\n\nuse Symfony\\Component\\Console\\Exception\\RunCommandFailedException;\n\n/**\n * @author Kevin Bond \n */\nclass RunCommandMessage implements \\Stringable\n{\n /**\n * @param bool $throwOnFailure If the command has a non-zero exit code, throw {@see RunCommandFailedException}\n * @param bool $catchEx", "suffix": " */\n public function __construct(\n public readonly string $input,\n public readonly bool $throwOnFailure = true,\n public readonly bool $catchExceptions = false,\n ) {\n }\n\n public function __toString(): string\n {\n re", "middle": "ceptions @see Application::setCatchExceptions()\n ", "meta": {"filepath": "src/Symfony/Component/Console/Messenger/RunCommandMessage.php", "language": "php", "file_size": 941, "cut_index": 606, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver;\n\nuse Symfony\\Component\\Console\\ArgumentResolver\\Exception\\ResolverNotFoundException;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Determines the arguments for a specific Console Command.\n *\n * @author Robin", "suffix": "mand after resolution.\n *\n * @throws \\RuntimeException When no value could be provided for a required argument\n * @throws ResolverNotFoundException\n */\n public function getArguments(InputInterface $input, callable $command, ?\\Ref", "middle": " Chalas \n * @author Fabien Potencier \n * @author Nicolas Grekas \n */\ninterface ArgumentResolverInterface\n{\n /**\n * Returns the arguments to pass to the Console Com", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ArgumentResolverInterface.php", "language": "php", "file_size": 1051, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * @author Robin Chalas \n */\nclass TraceableArgumentResolver implements ArgumentResolverInterfa", "suffix": "onFunctionAbstract $reflector = null): array\n {\n $e = $this->stopwatch->start('command.get_arguments');\n\n try {\n return $this->resolver->getArguments($input, $command, $reflector);\n } finally {\n $e->stop();\n ", "middle": "ce\n{\n public function __construct(\n private ArgumentResolverInterface $resolver,\n private Stopwatch $stopwatch,\n ) {\n }\n\n public function getArguments(InputInterface $input, callable $command, ?\\Reflecti", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/TraceableArgumentResolver.php", "language": "php", "file_size": 1012, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Resolves values from #[Argume", "suffix": " public function resolve(string $argumentName, InputInterface $input, ReflectionMember $member): iterable\n {\n if ($member->isVariadic()) {\n return [];\n }\n\n if ($argument = Argument::tryFrom($member->getMember())) {\n ", "middle": "nt] or #[Option] attributes for built-in PHP types.\n *\n * Handles: string, bool, int, float, array\n *\n * @author Robin Chalas \n */\nfinal class BuiltinTypeValueResolver implements ValueResolverInterface\n{\n ", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/BuiltinTypeValueResolver.php", "language": "php", "file_size": 2133, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\File\\InputFile;\nuse Symfony", "suffix": "rface $input, ReflectionMember $member): iterable\n {\n $type = $member->getType();\n\n if (!$type instanceof \\ReflectionNamedType || InputFile::class !== $type->getName()) {\n return [];\n }\n\n if ($argument = Argument::", "middle": "\\Component\\Console\\Input\\InputInterface;\n\n/**\n * @author Robin Chalas \n */\nfinal class InputFileValueResolver implements ValueResolverInterface\n{\n public function resolve(string $argumentName, InputInte", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/InputFileValueResolver.php", "language": "php", "file_size": 1707, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Console\\ArgumentResolver\\Exception\\NearMissValueResolverException;\nuse Symfony\\Component\\Console\\ArgumentResolver\\Exception\\ResolverNotFoundException;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver as Resolver;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse", "suffix": "omponent\\Console\\Cursor;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\RawInputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Contract", "middle": " Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Attribute\\ValueResolver;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\C", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ArgumentResolver.php", "language": "php", "file_size": 6777, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Mapping\\Write;\n\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\n\ntrigger_deprecation('symfony/json-streamer', '8.1', 'The \"%s\" class is deprecated, Date times are handled as value objects.', DateTimeTypePrope", "suffix": "implements PropertyMetadataLoaderInterface\n{\n public function __construct(\n private PropertyMetadataLoaderInterface $decorated,\n ) {\n }\n\n public function load(string $className, array $options = [], array $context = []): array\n {\n ", "middle": "rtyMetadataLoader::class);\n\n/**\n * @author Mathias Arlaud \n *\n * @deprecated since Symfony 8.1, Date times are handled as value objects\n *\n * @internal\n */\nfinal class DateTimeTypePropertyMetadataLoader ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Mapping/Write/DateTimeTypePropertyMetadataLoader.php", "language": "php", "file_size": 1075, "cut_index": 515, "middle_length": 229}} {"prefix": "er\\Exception\\NotEncodableValueException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\JsonStreamer\\PhpGeneratorTrait;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\Type\\NullableType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\Type\\WrappingTypeInterface;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Generates PHP code tha", "suffix": "ct(\n private ContainerInterface $transformers,\n ) {\n }\n\n /**\n * @param array $options\n * @param array $context\n */\n public function generate(DataModelNodeInterface $dataModel, array $options = []", "middle": "t writes data to JSON stream.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class PhpGenerator\n{\n use PhpGeneratorTrait;\n\n private string $yieldBuffer = '';\n\n public function __constru", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Write/PhpGenerator.php", "language": "php", "file_size": 18886, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Write;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Config\\ConfigCacheFactoryInterface;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\BackedEnumNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\CollectionNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\CompositeNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\DataModelNodeInterface;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\ObjectN", "suffix": "mer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\StreamerDumper;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BackedEnumType;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\", "middle": "ode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\ScalarNode;\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnsupportedException;\nuse Symfony\\Component\\JsonStrea", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Write/StreamWriterGenerator.php", "language": "php", "file_size": 7180, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\ValueTransformer;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateTimeValueObjectTransformer;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse", "suffix": "eTimeValueObjectTransformer::class);\n\n/**\n * Transforms DateTimeInterface to string during stream writing.\n *\n * @author Mathias Arlaud \n *\n * @deprecated since Symfony 8.1, date times will be transformed thanks to DateTimeValueOb", "middle": " Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\ntrigger_deprecation('symfony/json-streamer', '8.1', 'The \"%s\" class is deprecated. Date times will be transformed thanks to \"%s\" instead.', DateTimeToStringValueTransformer::class, Dat", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/ValueTransformer/DateTimeToStringValueTransformer.php", "language": "php", "file_size": 1707, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\ValueTransformer;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateTimeValueObjectTransformer;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\ntrigger_deprecation('symfony/jso", "suffix": "utable during stream reading.\n *\n * @author Mathias Arlaud \n *\n * @deprecated since Symfony 8.1, date times will be transformed thanks to DateTimeValueObjectTransformer instead\n */\nfinal class StringToDateTimeValueTransformer impl", "middle": "n-streamer', '8.1', 'The \"%s\" class is deprecated. Date times will be transformed thanks to \"%s\" instead.', StringToDateTimeValueTransformer::class, DateTimeValueObjectTransformer::class);\n\n/**\n * Transforms string to DateTimeImm", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/ValueTransformer/StringToDateTimeValueTransformer.php", "language": "php", "file_size": 3115, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\ValueTransformer;\n\nuse Symfony\\Component\\JsonStreamer\\Transformer\\PropertyValueTransformerInterface;\n\ntrigger_deprecation('symfony/json-streamer', '8.1', 'The \"%s\" interface is deprecated, use \"%s\" instead.', ValueTransformerInterface::class, PropertyValueTransformerInterface::class);\n\n/**\n * Transforms a native value before ", "suffix": "or Mathias Arlaud \n *\n * @deprecated since Symfony 8.1, use Symfony\\Component\\JsonStreamer\\Transformer\\PropertyValueTransformerInterface instead\n */\ninterface ValueTransformerInterface extends PropertyValueTransformerInterface\n{\n}", "middle": "stream writing and after stream reading.\n *\n * @auth", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/ValueTransformer/ValueTransformerInterface.php", "language": "php", "file_size": 915, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\CacheWarmer;\n\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\Config\\ConfigCacheFactoryInterface;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerInterface;\nuse Symfony\\Component\\JsonStreamer\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\JsonStreamer\\Mappi", "suffix": "ers and stream writers PHP files.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class StreamerCacheWarmer implements CacheWarmerInterface\n{\n private StreamWriterGenerator $streamWriterGenerator;\n private StreamRead", "middle": "ng\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\Read\\StreamReaderGenerator;\nuse Symfony\\Component\\JsonStreamer\\Write\\StreamWriterGenerator;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Generates stream read", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/CacheWarmer/StreamerCacheWarmer.php", "language": "php", "file_size": 4050, "cut_index": 614, "middle_length": 229}} {"prefix": "onStreamReader;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Mapping\\SyntheticPropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateIntervals;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateTimes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateTimeZones;\nuse Symfony\\Component\\JsonS", "suffix": "ponent\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithPhpDoc;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithSyntheticProperties;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithValueObjects;\nuse Symfony\\Component\\JsonStreame", "middle": "treamer\\Tests\\Fixtures\\Model\\DummyWithGenerics;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNameAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNullableProperties;\nuse Symfony\\Com", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/JsonStreamReaderTest.php", "language": "php", "file_size": 13186, "cut_index": 921, "middle_length": 229}} {"prefix": "Fixtures\\Model\\DummyWithArray;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateIntervals;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateTimes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateTimeZones;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDollarNamedProperties;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithGenerics;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithList;\nuse Symfony", "suffix": "s;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNestedList;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNestedListDummies;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNullableProperties;\nuse Sym", "middle": "\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNameAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNestedArray;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNestedDictDummie", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/JsonStreamWriterTest.php", "language": "php", "file_size": 22630, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\ConfigCacheFactory;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\StreamerDumper;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum;\nuse Symfony\\Component\\JsonStreamer\\", "suffix": "Fixtures\\Model\\DummyWithOtherDummies;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithRepeatedOtherDummy;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\SelfReferencingDummy;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Compon", "middle": "Tests\\Fixtures\\Model\\ClassicDummy;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithArray;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNameAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/StreamerDumperTest.php", "language": "php", "file_size": 5570, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Read;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\JsonStreamer\\Read\\Decoder;\n\nclass DecoderTest extends TestCase\n{\n public function testDecode()\n {\n $this->a", "suffix": "is->expectException(UnexpectedValueException::class);\n $this->expectExceptionMessage('JSON is not valid: Syntax error');\n\n Decoder::decodeString('foo\"');\n }\n\n public function testDecodeThrowOnInvalidJsonStream()\n {\n $this->exp", "middle": "ssertDecoded('foo', '\"foo\"');\n }\n\n public function testDecodeSubset()\n {\n $this->assertDecoded('bar', '[\"foo\",\"bar\",\"baz\"]', 7, 5);\n }\n\n public function testDecodeThrowOnInvalidJsonString()\n {\n $th", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Read/DecoderTest.php", "language": "php", "file_size": 1766, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Read;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\JsonStreamer\\Read\\Instantiator;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy;\n\nclas", "suffix": "> 100,\n 'name' => 'dummy',\n ];\n\n $this->assertEquals($expected, (new Instantiator())->instantiate(ClassicDummy::class, $properties));\n }\n\n public function testThrowOnInvalidProperty()\n {\n $this->expectException(Unex", "middle": "s InstantiatorTest extends TestCase\n{\n public function testInstantiate()\n {\n $expected = new ClassicDummy();\n $expected->id = 100;\n $expected->name = 'dummy';\n\n $properties = [\n 'id' =", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Read/InstantiatorTest.php", "language": "php", "file_size": 1287, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Read;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\nuse Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy;\n\nclass LazyInstantiatorTest extends TestCase\n{\n public function testCreateLazyGhostUsingPhp()\n ", "suffix": "lic function testInstantiateInternalClassEagerly()\n {\n $object = (new LazyInstantiator())->instantiate(\\DateTimeImmutable::class, static function (\\DateTimeImmutable $object): void {\n });\n\n $this->assertInstanceOf(\\DateTimeImmutable", "middle": " {\n $ghost = (new LazyInstantiator())->instantiate(ClassicDummy::class, static function (ClassicDummy $object): void {\n $object->id = 123;\n });\n\n $this->assertSame(123, $ghost->id);\n }\n\n pub", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Read/LazyInstantiatorTest.php", "language": "php", "file_size": 3439, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Read;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidStreamException;\nuse Symfony\\Component\\JsonStreamer\\Read\\Lexer;\n\nclass LexerTest extends TestCase\n{\n private const RFC8259_TEST_SUITE_PATH = '/vendor/nst/json-test-suite';\n\n public function testTokens()\n {\n $this->assertTokens([['1', 0]], '1');\n $this->assertTokens([['f", "suffix": " ['10', 2], [',', 4], ['20', 6], [']', 9]], '[ 10, 20 ]');\n $this->assertTokens([['[', 0], ['1', 1], [',', 2], ['[', 4], ['2', 5], [']', 6], [']', 8]], '[1, [2] ]');\n $this->assertTokens([['{', 0], ['}', 1]], '{}');\n $this->assertToken", "middle": "alse', 0]], 'false');\n $this->assertTokens([['null', 0]], 'null');\n $this->assertTokens([['\"string\"', 0]], '\"string\"');\n $this->assertTokens([['[', 0], [']', 1]], '[]');\n $this->assertTokens([['[', 0],", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Read/LexerTest.php", "language": "php", "file_size": 6309, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Read;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidStreamException;\nuse Symfony\\Component\\JsonStreamer\\Read\\Splitter;\n\nclass SplitterTest extends TestCase\n{\n public function testSplitNull()\n {\n $this->assertListBoundaries(null, 'null');\n $this->assertDictBoundaries(null, 'null');\n }\n\n public function testSplitList()\n", "suffix": ", '[1,[2,3]]');\n $this->assertListBoundaries([[1, 1], [3, 7]], '[1,{\"2\":3}]');\n }\n\n public function testSplitDict()\n {\n $this->assertDictBoundaries([], '{}');\n $this->assertDictBoundaries(['k' => [5, 2]], '{\"k\":10}');\n ", "middle": " {\n $this->assertListBoundaries([], '[]');\n $this->assertListBoundaries([[1, 3]], '[100]');\n $this->assertListBoundaries([[1, 3], [5, 3]], '[100,200]');\n $this->assertListBoundaries([[1, 1], [3, 5]]", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Read/SplitterTest.php", "language": "php", "file_size": 5271, "cut_index": 716, "middle_length": 229}} {"prefix": "eption\\LogicException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnsupportedException;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\GenericTypePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Read\\AttributePropertyMetadataLoad", "suffix": "onStreamer\\Tests\\Fixtures\\Mapping\\SyntheticPropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateTimes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fi", "middle": "er;\nuse Symfony\\Component\\JsonStreamer\\Read\\StreamReaderGenerator;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyEnum;\nuse Symfony\\Component\\Js", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Read/StreamReaderGeneratorTest.php", "language": "php", "file_size": 12699, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Attribute\\ValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Exception\\LogicException;\n\nclass ValueTransformerTest extends TestCase\n{\n public f", "suffix": "nnotCreateWithoutAnything()\n {\n $this->expectException(LogicException::class);\n $this->expectExceptionMessage('#[ValueTransformer] attribute must declare either $streamToNative or $nativeToStream.');\n\n new ValueTransformer();\n }\n", "middle": "unction testCa", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Attribute/ValueTransformerTest.php", "language": "php", "file_size": 784, "cut_index": 512, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Transformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateIntervalValueObjectTransformer;\n\nclass DateIntervalValueObjectTransformerTest extends TestCase\n{\n public function testTransform()\n {\n $transformer = new DateIntervalValueObjectTransformer();\n\n $th", "suffix": "rval('P2Y6M1DT12H30M5S')),\n );\n\n $this->assertSame(\n '2 years',\n $transformer->transform(new \\DateInterval('P2Y'), [DateIntervalValueObjectTransformer::FORMAT_KEY => '%y years']),\n );\n }\n\n public function te", "middle": "is->assertSame(\n 'P0Y0M0DT0H0M0S',\n $transformer->transform(new \\DateInterval('P0Y')),\n );\n\n $this->assertSame(\n 'P2Y6M1DT12H30M5S',\n $transformer->transform(new \\DateInte", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Transformer/DateIntervalValueObjectTransformerTest.php", "language": "php", "file_size": 6233, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Transformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateTimeValueObjectTransformer;\n\nclass DateTimeValueObjectTransformerTest extends TestCase\n{\n public function testTransform()\n {\n $transformer = new DateTimeValueObjectTransformer();\n\n $this->assertSame(\n '2023-07-26T00:00:00+00:00',\n ", "suffix": "mutable('2023-07-26', new \\DateTimeZone('UTC')))->setTime(0, 0), [DateTimeValueObjectTransformer::FORMAT_KEY => 'd/m/Y H:i:s']),\n );\n }\n\n public function testTransformWithTimezone()\n {\n $transformer = new DateTimeValueObjectTransform", "middle": " $transformer->transform(new \\DateTimeImmutable('2023-07-26', new \\DateTimeZone('UTC')), []),\n );\n\n $this->assertSame(\n '26/07/2023 00:00:00',\n $transformer->transform((new \\DateTimeIm", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Transformer/DateTimeValueObjectTransformerTest.php", "language": "php", "file_size": 5565, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Transformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateTimeZoneValueObjectTransformer;\n\nclass DateTimeZoneValueObjectTransformerTest extends TestCase\n{\n public fu", "suffix": "mer->transform(new \\DateTimeZone('Asia/Tokyo')));\n $this->assertSame('Europe/Paris', $transformer->transform(new \\DateTimeZone('Europe/Paris')));\n }\n\n public function testTransformThrowWhenInvalidNativeValue()\n {\n $this->expectExcept", "middle": "nction testTransform()\n {\n $transformer = new DateTimeZoneValueObjectTransformer();\n\n $this->assertSame('UTC', $transformer->transform(new \\DateTimeZone('UTC')));\n $this->assertSame('Asia/Tokyo', $transfor", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Transformer/DateTimeZoneValueObjectTransformerTest.php", "language": "php", "file_size": 2259, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Transformer;\n\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\ValueObject\\Height;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\ValueObjectTransformerInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\T", "suffix": " $options = []): int|float|string|bool|null\n {\n return $object->value.' '.$object->unit;\n }\n\n public function reverseTransform(int|float|string|bool|null $scalar, array $options = []): object\n {\n return new Height(...explode(' ', ", "middle": "ypeInfo\\Type\\BuiltinType;\n\n/**\n * @implements ValueObjectTransformerInterface\n */\nclass HeightValueObjectTransformer implements ValueObjectTransformerInterface\n{\n public function transform(object $object, array", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/Transformer/HeightValueObjectTransformer.php", "language": "php", "file_size": 1231, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Transformer;\n\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithValueObjectAndUnion;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\ValueObjectTransformerInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\C", "suffix": "er implements ValueObjectTransformerInterface\n{\n public function transform(object $object, array $options = []): int|float|string|bool|null\n {\n throw new \\BadMethodCallException('Not implemented.');\n }\n\n public function reverseTransform(", "middle": "omponent\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * @implements ValueObjectTransformerInterface\n */\nfinal class UnsupportedStreamValueTypeObjectTransform", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/Transformer/UnsupportedStreamValueTypeObjectTransformer.php", "language": "php", "file_size": 1447, "cut_index": 524, "middle_length": 229}} {"prefix": "ic function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['array{\\'id\\': int, \\'name\\': string}'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::splitDict($stream, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $transforme", "suffix": "h ($data as $k => $v) {\n yield $k => \\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeStream($stream, $v[0], $v[1]);\n }\n };\n return \\iterator_to_array($iterable($stream, $data));\n };\n return $providers['arra", "middle": "rs, $instantiator, &$providers) {\n foreac", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/array_shape.stream.php", "language": "php", "file_size": 947, "cut_index": 582, "middle_length": 52}} {"prefix": " mixed>\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['array'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::splitDict($stream, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $tra", "suffix": " foreach ($data as $k => $v) {\n yield $k => \\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeStream($stream, $v[0], $v[1]);\n }\n };\n return \\iterator_to_array($iterable($stream, $data));\n };\n return $provider", "middle": "nsformers, $instantiator, &$providers) {\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/dict.stream.php", "language": "php", "file_size": 903, "cut_index": 547, "middle_length": 52}} {"prefix": "terable\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['iterable'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::splitDict($stream, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $transformers, $", "suffix": "ata as $k => $v) {\n yield $k => \\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeStream($stream, $v[0], $v[1]);\n }\n };\n return $iterable($stream, $data);\n };\n return $providers['iterable']($stream, 0, null);", "middle": "instantiator, &$providers) {\n foreach ($d", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/iterable.stream.php", "language": "php", "file_size": 847, "cut_index": 535, "middle_length": 52}} {"prefix": "atic function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['list'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::splitList($stream, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $transformers, $instantiator, &$pr", "suffix": "\n yield $k => \\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeStream($stream, $v[0], $v[1]);\n }\n };\n return \\iterator_to_array($iterable($stream, $data));\n };\n return $providers['list']($stream, 0, n", "middle": "oviders) {\n foreach ($data as $k => $v) {", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/list.stream.php", "language": "php", "file_size": 876, "cut_index": 559, "middle_length": 52}} {"prefix": "* @return Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum|null\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum'] = static function ($data) {\n return \\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum::from($data);\n };\n $provide", "suffix": "['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum']($data);\n }\n if (null === $data) {\n return null;\n }\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException(\\sprintf('U", "middle": "rs['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum|null'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n if (\\is_int($data)) {\n return $providers", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/nullable_backed_enum.php", "language": "php", "file_size": 1341, "cut_index": 524, "middle_length": 229}} {"prefix": "fony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum|null\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum'] = static function ($stream, $offset, $length) {\n return \\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum::from(\\Symfony\\Component\\JsonStream", "suffix": "formers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeStream($stream, $offset, $length);\n if (\\is_int($data)) {\n return $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\En", "middle": "er\\Read\\Decoder::decodeStream($stream, $offset, $length));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum|null'] = static function ($stream, $offset, $length) use ($options, $trans", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/nullable_backed_enum.stream.php", "language": "php", "file_size": 1515, "cut_index": 537, "middle_length": 229}} {"prefix": "fony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy|null\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\T", "suffix": " $v;\n }));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy|null'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n if (\\is_array($data)) {\n return ", "middle": "ests\\Fixtures\\Model\\ClassicDummy::class, \\array_filter(['id' => $data['id'] ?? '_symfony_missing_value', 'name' => $data['name'] ?? '_symfony_missing_value'], static function ($v) {\n return '_symfony_missing_value' !==", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/nullable_object.php", "language": "php", "file_size": 1614, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Terminal\\Image;\n\n/**\n * Handles the iTerm2 Inline Images Protocol (OSC 1337).\n *\n * The iTerm2 protocol uses Operating System Command (OSC) sequences:\n * - Start: ESC ] 1337 ; File= (0x1B 0x5D 0x31 0x33 0x33 0x37 0x3B 0x46 0x69 0x6C 0x65 0x3D)\n * - End: BEL (0x07) or ESC \\ (0x1B 0x5C)\n *\n", "suffix": "ocolInterface\n{\n public const OSC_START = \"\\x1b]1337;File=\";\n public const BEL = \"\\x07\";\n public const ST = \"\\x1b\\\\\";\n\n public function detectPastedImage(string $data): bool\n {\n return str_contains($data, self::OSC_START);\n }\n\n ", "middle": " * Format: ESC]1337;File=[arguments]:[base64 data]BEL\n *\n * @see https://iterm2.com/documentation-images.html\n *\n * @author Robin Chalas \n *\n * @internal\n */\nfinal class ITerm2Protocol implements ImageProt", "meta": {"filepath": "src/Symfony/Component/Console/Terminal/Image/ITerm2Protocol.php", "language": "php", "file_size": 2988, "cut_index": 563, "middle_length": 229}} {"prefix": "r\\Tests\\Fixtures\\Model\\ClassicDummy|null\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::splitDict($stream, $offset,", "suffix": " foreach ($data as $k => $v) {\n match ($k) {\n 'id' => $object->id = \\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeStream($stream, $v[0], $v[1]),\n 'name' => $object->name = \\Symfony\\Compo", "middle": " $length);\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy::class, static function ($object) use ($stream, $data, $options, $transformers, $instantiator, &$providers) {\n", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/nullable_object.stream.php", "language": "php", "file_size": 2112, "cut_index": 563, "middle_length": 229}} {"prefix": "nt\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy>|null\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['array'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n $iterable = static function ($data) use ($options, $transformer", "suffix": "urn \\iterator_to_array($iterable($data));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->in", "middle": "s, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k => $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($v);\n }\n };\n ret", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/nullable_object_dict.php", "language": "php", "file_size": 2228, "cut_index": 563, "middle_length": 229}} {"prefix": "nt\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy>|null\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['array'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitte", "suffix": "iders['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($stream, $v[0], $v[1]);\n }\n };\n return \\iterator_to_array($iterable($stream, $data));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\F", "middle": "r::splitDict($stream, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k => $prov", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/nullable_object_dict.stream.php", "language": "php", "file_size": 2884, "cut_index": 563, "middle_length": 229}} {"prefix": "reamer\\Tests\\Fixtures\\Model\\ClassicDummy>|null\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['list'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n $iterable = static function ($data) use ($options, $transformers, $instantiator, ", "suffix": "rray($iterable($data));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->instantiate(\\Symfony", "middle": "&$providers) {\n foreach ($data as $k => $v) {\n yield $k => $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($v);\n }\n };\n return \\iterator_to_a", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/nullable_object_list.php", "language": "php", "file_size": 2199, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\MapInput;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\InputValidationFailedException;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\n/**\n ", "suffix": "implements ValueResolverInterface\n{\n public function __construct(\n private readonly ValueResolverInterface $builtinTypeResolver,\n private readonly ValueResolverInterface $backedEnumResolver,\n private readonly ValueResolverInterface ", "middle": "* Resolves the value of a input argument/option to an object holding the #[MapInput] attribute.\n *\n * @author Yonel Ceruto \n * @author Robin Chalas \n */\nfinal class MapInputValueResolver ", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/MapInputValueResolver.php", "language": "php", "file_size": 5222, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Input;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\n\n/**\n * Represents a command line option.\n *\n * @author Fabien Potencier \n */\nclass InputOption\n{\n /**\n * Do not accept input for the option (e.g. --yell). This is the default behavior of options.\n */\n public const VALUE_NONE = 1;\n\n /**\n * A value must be passed when the option", "meta": {"filepath": "src/Symfony/Component/Console/Input/InputOption.php", "language": "php", "file_size": 9103, "cut_index": 716, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Input;\n\n/**\n * StreamableInputInterface is the interface implemented by all input classes\n * that have an input stream.\n *\n * @author Robin Chalas \n */\ninterface StreamableInputInterface extends InputInterface\n{\n /**\n * Sets the input stream to read from", "suffix": "is mainly useful for testing purpose.\n *\n * @param resource $stream The input stream\n */\n public function setStream($stream): void;\n\n /**\n * Returns the input stream.\n *\n * @return resource|null\n */\n public function get", "middle": " when interacting with the user.\n *\n * This ", "meta": {"filepath": "src/Symfony/Component/Console/Input/StreamableInputInterface.php", "language": "php", "file_size": 879, "cut_index": 559, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Debug;\n\nuse Symfony\\Component\\Console\\Command\\TraceableCommand;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * @internal\n */\nfinal class CliRequest extends Request\n{\n public function __construct(\n pu", "suffix": "// Methods below allow to populate a profile, thus enable search and filtering\n public function getUri(): string\n {\n if ($this->server->has('SYMFONY_CLI_BINARY_NAME')) {\n $binary = $this->server->get('SYMFONY_CLI_BINARY_NAME').' con", "middle": "blic readonly TraceableCommand $command,\n ) {\n parent::__construct(\n attributes: ['_controller' => $command->command::class, '_virtual_type' => 'command'],\n server: $_SERVER,\n );\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Console/Debug/CliRequest.php", "language": "php", "file_size": 1872, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Completion\\Output;\n\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @author Wouter de Jong \n */\nclass BashCompletionOutput implements CompletionOutputInterface\n{\n public function write(CompletionSuggestions $", "suffix": " $values = $suggestions->getValueSuggestions();\n foreach ($suggestions->getOptionSuggestions() as $option) {\n $values[] = '--'.$option->getName();\n if ($option->isNegatable()) {\n $values[] = '--no-'.$option-", "middle": "suggestions, OutputInterface $output): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Console/Completion/Output/BashCompletionOutput.php", "language": "php", "file_size": 984, "cut_index": 582, "middle_length": 52}} {"prefix": "ception;\n\n/**\n * Retrieves lexical tokens from a given stream.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class Lexer\n{\n private const MAX_CHUNK_LENGTH = 8192;\n private const MAX_DEPTH = 512;\n\n private const WHITESPACE_CHARS = [' ' => true, \"\\r\" => true, \"\\t\" => true, \"\\n\" => true];\n private const STRUCTURE_CHARS = [',' => true, ':' => true, '{' => true, '}' => true, '[' => true, ']' => true];\n\n private const TOKEN_DICT_START = 1;\n private const TOKEN", "suffix": "R = 128;\n private const TOKEN_END = 256;\n private const TOKEN_VALUE = self::TOKEN_DICT_START | self::TOKEN_LIST_START | self::TOKEN_SCALAR;\n\n private const KEY_REGEX = '/^(?:(?>\"(?>\\\\\\\\(?>[\"\\\\\\\\\\/bfnrt]|u[a-fA-F0-9]{4})|[^\\0-\\x1F\\\\\\\\\"]+)*\"))$/u';\n", "middle": "_DICT_END = 2;\n private const TOKEN_LIST_START = 4;\n private const TOKEN_LIST_END = 8;\n private const TOKEN_KEY = 16;\n private const TOKEN_COLUMN = 32;\n private const TOKEN_COMMA = 64;\n private const TOKEN_SCALA", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Read/Lexer.php", "language": "php", "file_size": 10503, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Read;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException;\n\n/**\n * Splits collections to retrieve the offset and length of each element.\n *\n * @author Mathias Arlaud \n */\nfinal class Splitter\n{\n private const NESTING_CHARS = ['{' => true, '[' => true];\n private const UNNESTING_CHARS ", "suffix": "e $stream\n */\n public static function splitList($stream, int $offset = 0, ?int $length = null): ?\\Iterator\n {\n $lexer = self::$lexer ??= new Lexer();\n $tokens = $lexer->getTokens($stream, $offset, $length);\n\n if ('null' === $", "middle": "= ['}' => true, ']' => true];\n\n private static ?Lexer $lexer = null;\n\n /**\n * @var array{key: array}\n */\n private static array $cache = [\n 'key' => [],\n ];\n\n /**\n * @param resourc", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Read/Splitter.php", "language": "php", "file_size": 4663, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Attribute;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\LogicException;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\PropertyValueTransformerInterface;\n\n/**\n * Defines a callable or a {@see PropertyValueTransformerInterface} service id\n * that will be use", "suffix": "eamToNative;\n private \\Closure|string|null $nativeToStream;\n\n /**\n * @param (callable(mixed, array=): mixed)|string|null $streamToNative\n * @param (callable(mixed, array=): mixed)|string|null $nativeToStream\n ", "middle": "d to transform the property data during stream reading/writing.\n *\n * @author Mathias Arlaud \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY)]\nclass ValueTransformer\n{\n private \\Closure|string|null $str", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Attribute/ValueTransformer.php", "language": "php", "file_size": 1911, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Transformer;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Transforms a {@see \\DateInterval} to a string and vice versa.\n *\n * @author Mathias Arlaud \n *\n * @psalm-type Options = array{\n * date_interval_format?: string,\n * ...,\n * }\n *\n * @implements ValueObjectTransformerInterface<\\DateInterval, string>\n */\nfinal class DateIntervalValueObjectTra", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Transformer/DateIntervalValueObjectTransformer.php", "language": "php", "file_size": 3398, "cut_index": 614, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Transformer;\n\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Transforms a property value before stream writing and after stream reading.\n *\n * @author Mathias Arlaud \n */\ninterface PropertyValueTransformerInterface\n{\n", "suffix": "ect?: object, // When writing stream: the object holding the current property\n * ...,\n * } $options\n */\n public function transform(mixed $value, array $options = []): mixed;\n\n public static function getStreamValueType()", "middle": " /**\n * @param array{\n * _current_obj", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Transformer/PropertyValueTransformerInterface.php", "language": "php", "file_size": 838, "cut_index": 520, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Transformer;\n\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\n\n/**\n * Transforms value objects during stream writing and reading.\n *\n * @author Mathias Arlaud \n *\n * @template T of object\n * @template U of int|float|st", "suffix": " * @return U\n */\n public function transform(object $object, array $options = []): int|float|string|bool|null;\n\n /**\n * Reverses the transformation from a scalar value back into a value object.\n *\n * @param U $scala", "middle": "ring|bool|null\n */\ninterface ValueObjectTransformerInterface\n{\n /**\n * Transforms a value object into a scalar value.\n *\n * @param T $object\n * @param array $options\n *\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Transformer/ValueObjectTransformerInterface.php", "language": "php", "file_size": 1365, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Mapping;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolverInterface;\n\n/**\n * Loads basic properties stream reading/writing metadata for a given $className.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class PropertyMetadataLoader implements PropertyMetadataLoaderInterface\n{\n public function __construct(\n private TypeResolverInterface $typeResolver,\n ) {\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Mapping/PropertyMetadataLoader.php", "language": "php", "file_size": 1522, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Mapping\\Read;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\JsonStreamer\\Attribute\\StreamedName;\nuse Symfony\\Component\\JsonStreamer\\Attribute\\ValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\Prope", "suffix": "based on properties' attributes.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class AttributePropertyMetadataLoader implements PropertyMetadataLoaderInterface\n{\n public function __construct(\n private PropertyM", "middle": "rtyValueTransformerInterface;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\ValueObjectTransformerInterface;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolverInterface;\n\n/**\n * Enhances properties stream reading metadata ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Mapping/Read/AttributePropertyMetadataLoader.php", "language": "php", "file_size": 5409, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Mapping\\Write;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\JsonStreamer\\Attribute\\StreamedName;\nuse Symfony\\Component\\JsonStreamer\\Attribute\\ValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\Prop", "suffix": " based on properties' attributes.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class AttributePropertyMetadataLoader implements PropertyMetadataLoaderInterface\n{\n public function __construct(\n private Property", "middle": "ertyValueTransformerInterface;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\ValueObjectTransformerInterface;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolverInterface;\n\n/**\n * Enhances properties stream writing metadata", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Mapping/Write/AttributePropertyMetadataLoader.php", "language": "php", "file_size": 5147, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Messenger;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\RunCommandFailedException;\nuse Symfony\\Component\\Console\\Input\\StringInput;\nuse Symfony\\Component\\Console\\Output\\Buffered", "suffix": "ndMessageHandler\n{\n public function __construct(\n private readonly Application $application,\n ) {\n }\n\n public function __invoke(RunCommandMessage $message): RunCommandContext\n {\n $input = new StringInput($message->input);\n ", "middle": "Output;\nuse Symfony\\Component\\Messenger\\Exception\\RecoverableExceptionInterface;\nuse Symfony\\Component\\Messenger\\Exception\\UnrecoverableExceptionInterface;\n\n/**\n * @author Kevin Bond \n */\nfinal class RunComma", "meta": {"filepath": "src/Symfony/Component/Console/Messenger/RunCommandMessageHandler.php", "language": "php", "file_size": 1846, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\C", "suffix": " Jérôme Tamarelle \n * @author Maxime Steinhausser \n */\nfinal class BackedEnumValueResolver implements ValueResolverInterface\n{\n public function resolve(string $argumentName, InputInterface $input, Ref", "middle": "onsole\\Exception\\InvalidOptionException;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Resolves a BackedEnum instance from a Command argument or option.\n *\n * @author Robin Chalas \n * @author", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/BackedEnumValueResolver.php", "language": "php", "file_size": 2964, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\C", "suffix": "halas \n */\nfinal class UidValueResolver implements ValueResolverInterface\n{\n public function resolve(string $argumentName, InputInterface $input, ReflectionMember $member): iterable\n {\n if ($argument = Argument::tryFrom", "middle": "onsole\\Exception\\InvalidOptionException;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Uid\\AbstractUid;\n\n/**\n * Resolves an AbstractUid instance from a Command argument or option.\n *\n * @author Robin C", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/UidValueResolver.php", "language": "php", "file_size": 2692, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Completion;\n\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\ArgvInput;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\n/**\n * An input specialized for shell completion.\n *\n * This input allows unfinished option names or values and exposes what kind of\n * completion is expected.\n *\n * @author Wouter de Jong \n */\nfinal cl", "suffix": " 'none';\n\n private array $tokens;\n private int $currentIndex;\n private string $completionType;\n private ?string $completionName = null;\n private string $completionValue = '';\n\n /**\n * Converts a terminal string into tokens.\n *\n ", "middle": "ass CompletionInput extends ArgvInput\n{\n public const TYPE_ARGUMENT_VALUE = 'argument_value';\n public const TYPE_OPTION_VALUE = 'option_value';\n public const TYPE_OPTION_NAME = 'option_name';\n public const TYPE_NONE =", "meta": {"filepath": "src/Symfony/Component/Console/Completion/CompletionInput.php", "language": "php", "file_size": 8098, "cut_index": 716, "middle_length": 229}} {"prefix": "nt\\JsonStreamer\\DataModel\\Read\\CollectionNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\CompositeNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\DataModelNodeInterface;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\ObjectNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\ScalarNode;\nuse Symfony\\Component\\JsonStreamer\\Exception\\LogicException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\JsonStreamer\\PhpGeneratorTrait;\nuse Symfony\\Comp", "suffix": "TypeInterface;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Generates PHP code that reads JSON stream.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class PhpGenerator\n{\n use PhpGeneratorTrait;\n\n public f", "middle": "onent\\TypeInfo\\Type\\BackedEnumType;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\Type\\Wrapping", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Read/PhpGenerator.php", "language": "php", "file_size": 17281, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Transformer;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Transforms a {@see \\DateTimeInterface} to a string and vice versa.\n *\n * @author Mathias Arlaud \n */\nfinal class DateTimeValueObjectTransformer implements ValueObjectTransformerInterface\n{\n public const FORMAT_KEY = 'date_time_format';\n public const TIMEZONE_KEY = 'date_time_timezone';\n\n /**\n * @param Options $options\n *", "middle": "ud@gmail.com>\n *\n * @psalm-type Options = array{\n * date_time_format?: string,\n * date_time_timezone?: string|\\DateTimeZone,\n * ...,\n * }\n *\n * @implements ValueObjectTransformerInterface<\\DateTimeInter", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Transformer/DateTimeValueObjectTransformer.php", "language": "php", "file_size": 4163, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Mapping;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\GenericType;\nuse Symfony\\Component\\TypeInfo\\Type\\IntersectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Compon", "suffix": "@author Mathias Arlaud \n *\n * @internal\n */\nfinal class GenericTypePropertyMetadataLoader implements PropertyMetadataLoaderInterface\n{\n public function __construct(\n private PropertyMetadataLoaderInterface $decorated,\n ", "middle": "ent\\TypeInfo\\Type\\UnionType;\nuse Symfony\\Component\\TypeInfo\\Type\\WrappingTypeInterface;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\n\n/**\n * Enhances properties metadata based on properties' generic type.\n *\n * ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Mapping/GenericTypePropertyMetadataLoader.php", "language": "php", "file_size": 4996, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Mapping;\n\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Holds stream reading/writing metadata about a given property.\n *\n * @author Mathias Arlaud \n */\nfinal class PropertyMetadata\n{\n /**\n * @param list $valueTransformers\n */\n p", "suffix": "c static function createSynthetic(Type $type, array $valueTransformers = []): self\n {\n return new self(null, $type, $valueTransformers);\n }\n\n public function getName(): ?string\n {\n return $this->name;\n }\n\n public function wi", "middle": "ublic function __construct(\n private ?string $name,\n private Type $type,\n private array $valueTransformers = [],\n ) {\n }\n\n /**\n * @param list $valueTransformers\n */\n publi", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Mapping/PropertyMetadata.php", "language": "php", "file_size": 2109, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\Exception;\n\nfinal class ResolverNotFoundException extends \\RuntimeException\n{\n /**\n * @param string[] $alternatives\n */\n public function __construct(string $name, array $alternatives = [])\n {\n $msg = \\sprintf('You have requested a n", "suffix": "ternatives) {\n if (1 === \\count($alternatives)) {\n $msg .= ' Did you mean this: \"';\n } else {\n $msg .= ' Did you mean one of these: \"';\n }\n $msg .= implode('\", \"', $alternatives).'\"?", "middle": "on-existent resolver \"%s\".', $name);\n if ($al", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/Exception/ResolverNotFoundException.php", "language": "php", "file_size": 912, "cut_index": 547, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver;\n\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * @author Robin Chalas inner::class.'::'.__FUNCTION__;\n $this->stopwatch->start($method, 'command.argument_value_resolver');\n\n try {\n ", "middle": "l.com>\n */\nfinal class TraceableValueResolver implements ValueResolverInterface\n{\n public function __construct(\n private ValueResolverInterface $inner,\n private Stopwatch $stopwatch,\n ) {\n }\n\n public fun", "meta": {"filepath": "src/Symfony/Component/Console/ArgumentResolver/ValueResolver/TraceableValueResolver.php", "language": "php", "file_size": 1158, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Read;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Config\\ConfigCacheFactoryInterface;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\BackedEnumNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\CollectionNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\CompositeNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\DataModelNodeInterface;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\ObjectNode;\nu", "suffix": "ping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\StreamerDumper;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BackedEnumType;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInf", "middle": "se Symfony\\Component\\JsonStreamer\\DataModel\\Read\\ScalarNode;\nuse Symfony\\Component\\JsonStreamer\\Exception\\RuntimeException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnsupportedException;\nuse Symfony\\Component\\JsonStreamer\\Map", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Read/StreamReaderGenerator.php", "language": "php", "file_size": 6788, "cut_index": 716, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Mapping;\n\n/**\n * Loads properties stream reading/writing metadata for a given $className.\n *\n * These metadata can be used by the DataModelBuilder to create\n * an appropriate ObjectNode.\n *\n * @author Mathias Arlaud \n */\ninterface PropertyMet", "suffix": "tring $className\n * @param array $options Implementation-specific options\n * @param array $context\n *\n * @return array\n */\n public function load(string $className, arr", "middle": "adataLoaderInterface\n{\n /**\n * @param class-s", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Mapping/PropertyMetadataLoaderInterface.php", "language": "php", "file_size": 904, "cut_index": 547, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Console\\Completion\\Output;\n\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @author Guillaume Aveline \n */\nclass FishCompletionOutput implements Completion", "suffix": "$value->getValue().($value->getDescription() ? \"\\t\".$value->getDescription() : '');\n }\n foreach ($suggestions->getOptionSuggestions() as $option) {\n $values[] = '--'.$option->getName().($option->getDescription() ? \"\\t\".$option->get", "middle": "OutputInterface\n{\n public function write(CompletionSuggestions $suggestions, OutputInterface $output): void\n {\n $values = [];\n foreach ($suggestions->getValueSuggestions() as $value) {\n $values[] = ", "meta": {"filepath": "src/Symfony/Component/Console/Completion/Output/FishCompletionOutput.php", "language": "php", "file_size": 1274, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Mapping\\Read;\n\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\n\ntrigger_deprecation('symfony/json-streamer', '8.1', 'The \"%s\" class is deprecated, Date times are handled as value objects.', DateTimeTypeProper", "suffix": "mplements PropertyMetadataLoaderInterface\n{\n public function __construct(\n private PropertyMetadataLoaderInterface $decorated,\n ) {\n }\n\n public function load(string $className, array $options = [], array $context = []): array\n {\n ", "middle": "tyMetadataLoader::class);\n\n/**\n * @author Mathias Arlaud \n *\n * @deprecated since Symfony 8.1, Date times are handled as value objects\n *\n * @internal\n */\nfinal class DateTimeTypePropertyMetadataLoader i", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Mapping/Read/DateTimeTypePropertyMetadataLoader.php", "language": "php", "file_size": 1074, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Transformer;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Transforms a {@see \\DateTimeZone", "suffix": " ValueObjectTransformerInterface\n{\n public function transform(object $object, array $options = []): string\n {\n if (!$object instanceof \\DateTimeZone) {\n throw new InvalidArgumentException('The native value must be an instance of \"\\D", "middle": "} to a timezone string and vice versa.\n *\n * @author Mathias Arlaud \n *\n * @implements ValueObjectTransformerInterface<\\DateTimeZone, string>\n */\nfinal class DateTimeZoneValueObjectTransformer implements", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Transformer/DateTimeZoneValueObjectTransformer.php", "language": "php", "file_size": 1866, "cut_index": 537, "middle_length": 229}} {"prefix": "r\\Tests\\Fixtures\\Model\\DummyWithNullableProperties\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithNullableProperties'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Te", "suffix": "\\\\Enum\\\\DummyBackedEnum|null']($data['enum']) : '_symfony_missing_value'], static function ($v) {\n return '_symfony_missing_value' !== $v;\n }));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEn", "middle": "sts\\Fixtures\\Model\\DummyWithNullableProperties::class, \\array_filter(['name' => $data['name'] ?? '_symfony_missing_value', 'enum' => \\array_key_exists('enum', $data) ? $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_nullable_properties.php", "language": "php", "file_size": 2022, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/**\n * @param array $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n yield \"{\";\n $prefix1 = '';\n foreach ($data as $key1 => $value1) {\n $key1 = \\substr(\\json_encode($key1), 1, -1);\n $prefix2 = '';\n yield \"{$prefix1}\\\"{$key1}\\\":{{$prefix2}\\\"@id\\\":\";\n yield \\json_encode", "suffix": "= ',';\n }\n yield \"}\";\n } catch (\\JsonException $e) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueException(\"Cannot encode \\\"arrayid, \\JSON_THROW_ON_ERROR, 510);\n $prefix2 = ',';\n yield \"{$prefix2}\\\"name\\\":\";\n yield \\json_encode($value1->name, \\JSON_THROW_ON_ERROR, 510);\n yield \"}\";\n $prefix1 ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_dict.php", "language": "php", "file_size": 1065, "cut_index": 515, "middle_length": 229}} {"prefix": "* @param Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithOtherDummies $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n $prefix1 = '';\n yield \"{{$prefix1}\\\"name\\\":\";\n yield \\json_encode($data->name, \\JSON_THROW_ON_ERROR, 511);\n $prefix1 = ',';\n yield \"{$prefix1}\\\"otherDummyOne\\\":\";\n $prefix2 = '';\n yield \"{{$prefix2}\\\"@id\\\":\";\n yield \\json_encode($data", "suffix": "myTwo\\\":\";\n $prefix2 = '';\n yield \"{{$prefix2}\\\"id\\\":\";\n yield \\json_encode($data->otherDummyTwo->id, \\JSON_THROW_ON_ERROR, 510);\n $prefix2 = ',';\n yield \"{$prefix2}\\\"name\\\":\";\n yield \\json_encode($data->otherDummy", "middle": "->otherDummyOne->id, \\JSON_THROW_ON_ERROR, 510);\n $prefix2 = ',';\n yield \"{$prefix2}\\\"name\\\":\";\n yield \\json_encode($data->otherDummyOne->name, \\JSON_THROW_ON_ERROR, 510);\n yield \"}{$prefix1}\\\"otherDum", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_in_object.php", "language": "php", "file_size": 1336, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/**\n * @param iterable $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n yield \"{\";\n $prefix1 = '';\n foreach ($data as $key1 => $value1) {\n $key1 = is_int($key1) ? $key1 : \\substr(\\json_encode($key1), 1, -1);\n $prefix2 = '';\n yield \"{$prefix1}\\\"{$key1}\\\":{{$prefix2}\\\"id\\\":\";\n ", "suffix": " $prefix1 = ',';\n }\n yield \"}\";\n } catch (\\JsonException $e) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueException(\"Cannot encode \\\"iterableid, \\JSON_THROW_ON_ERROR, 510);\n $prefix2 = ',';\n yield \"{$prefix2}\\\"name\\\":\";\n yield \\json_encode($value1->name, \\JSON_THROW_ON_ERROR, 510);\n yield \"}\";\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_iterable.php", "language": "php", "file_size": 1080, "cut_index": 515, "middle_length": 229}} {"prefix": "s\\Model\\DummyWithNameAttributes> $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n yield \"[\";\n $prefix1 = '';\n foreach ($data as $value1) {\n $prefix2 = '';\n yield \"{$prefix1}{{$prefix2}\\\"@id\\\":\";\n yield \\json_encode($value1->id, \\JSON_THROW_ON_ERROR, 510);\n $prefix2 = ',';\n yield \"{$prefix2}\\\"name\\\":\";\n yield \\json_encode($value1->nam", "suffix": ";\n $prefix1 = ',';\n }\n yield \"]\";\n } catch (\\JsonException $e) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueException(\"Cannot encode \\\"list= 512) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueEx", "suffix": " = \\substr(\\json_encode($key1), 1, -1);\n yield \"{$prefix2}\\\"{$key1}\\\":\";\n yield from $generators['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithNestedDictDummies']($value1, $depth + 1);\n $prefix2 = ',';", "middle": "ception('Maximum stack depth exceeded');\n }\n $prefix1 = '';\n yield \"{{$prefix1}\\\"dummies\\\":\";\n yield \"{\";\n $prefix2 = '';\n foreach ($data->dummies as $key1 => $value1) {\n $key1", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_with_nested_dict_self.php", "language": "php", "file_size": 1460, "cut_index": 524, "middle_length": 229}} {"prefix": "* @param Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNestedListDummies $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n $generators['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithNestedListDummies'] = static function ($data, $depth) use ($transformers, $options, &$generators) {\n if ($depth >= 512) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueEx", "suffix": " = is_int($key1) ? $key1 : \\substr(\\json_encode($key1), 1, -1);\n yield \"{$prefix2}\\\"{$key1}\\\":\";\n yield from $generators['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithNestedListDummies']($value1, $depth + 1);\n ", "middle": "ception('Maximum stack depth exceeded');\n }\n $prefix1 = '';\n yield \"{{$prefix1}\\\"dummies\\\":\";\n yield \"{\";\n $prefix2 = '';\n foreach ($data->dummies as $key1 => $value1) {\n $key1", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_with_nested_list_self.php", "language": "php", "file_size": 1484, "cut_index": 524, "middle_length": 229}} {"prefix": "* @param Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithSyntheticProperties $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n $prefix1 = '';\n yield \"{{$prefix1}\\\"synthetic\\\":\";\n yield \\json_encode(Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Mapping\\SyntheticPropertyMetadataLoader::true(null, ['_current_object' => $data] + $options), \\JSON_THROW_ON_ERROR, 511);\n yield \"}\";\n ", "suffix": "Exception $e) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueException(\"Cannot encode \\\"Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithSyntheticProperties\\\" to JSON: {$e->getMessage()}.\", 0, $e);\n }\n};", "middle": "} catch (\\Json", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_with_synthetic_properties.php", "language": "php", "file_size": 795, "cut_index": 524, "middle_length": 14}} {"prefix": "* @param Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithUnionProperties $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n $prefix1 = '';\n yield \"{\";\n if (null === $data->value && ($options['include_null_properties'] ?? false)) {\n yield \"{$prefix1}\\\"value\\\":null\";\n }\n if (null !== $data->value) {\n yield \"{$prefix1}\\\"value\\\":\";\n if ($data->v", "suffix": " yield \\json_encode($data->value, \\JSON_THROW_ON_ERROR, 511);\n } else {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException(\\sprintf('Unexpected \"%s\" value.', \\get_debug_type($data->value)));\n ", "middle": "alue instanceof \\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum) {\n yield \\json_encode($data->value->value, \\JSON_THROW_ON_ERROR, 511);\n } elseif (\\is_string($data->value)) {\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_with_union.php", "language": "php", "file_size": 1318, "cut_index": 524, "middle_length": 229}} {"prefix": "* @param Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateTimes $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n $prefix1 = '';\n yield \"{{$prefix1}\\\"interface\\\":\";\n yield \\json_encode($transformers->get('DateTimeInterface')->transform($data->interface, $options), \\JSON_THROW_ON_ERROR, 511);\n $prefix1 = ',';\n yield \"{$prefix1}\\\"immutable\\\":\";\n yield \\json_encode(", "suffix": "ncode($transformers->get('DateTimeInterface')->transform($data->union, $options), \\JSON_THROW_ON_ERROR, 511);\n } elseif (\\is_int($data->union)) {\n yield \\json_encode($data->union, \\JSON_THROW_ON_ERROR, 511);\n } else {\n t", "middle": "$transformers->get('DateTimeInterface')->transform($data->immutable, $options), \\JSON_THROW_ON_ERROR, 511);\n yield \"{$prefix1}\\\"union\\\":\";\n if ($data->union instanceof \\DateTimeImmutable) {\n yield \\json_e", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_with_value_object.php", "language": "php", "file_size": 1447, "cut_index": 524, "middle_length": 229}} {"prefix": "ony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithValueTransformerAttributes $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n $prefix1 = '';\n yield \"{{$prefix1}\\\"id\\\":\";\n yield \\json_encode($transformers->get('Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Transformer\\\\DoubleIntAndCastToStringValueTransformer')->transform($data->id, ['_current_object' => $data] + $options), \\JSON_THROW_O", "suffix": "form($data->active, ['_current_object' => $data] + $options), \\JSON_THROW_ON_ERROR, 511);\n yield \"{$prefix1}\\\"name\\\":\";\n yield \\json_encode(strtolower($data->name), \\JSON_THROW_ON_ERROR, 511);\n yield \"{$prefix1}\\\"range\\\":\";\n yie", "middle": "N_ERROR, 511);\n $prefix1 = ',';\n yield \"{$prefix1}\\\"active\\\":\";\n yield \\json_encode($transformers->get('Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Transformer\\\\BooleanToStringValueTransformer')->trans", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_with_value_transformer.php", "language": "php", "file_size": 1524, "cut_index": 537, "middle_length": 229}} {"prefix": "* @param Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\SelfReferencingDummy $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n $generators['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\SelfReferencingDummy'] = static function ($data, $depth) use ($transformers, $options, &$generators) {\n if ($depth >= 512) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueException('Max", "suffix": " if (null !== $data->self) {\n yield \"{$prefix1}\\\"@self\\\":\";\n yield from $generators['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\SelfReferencingDummy']($data->self, $depth + 1);\n }\n yield \"}\";\n };\n t", "middle": "imum stack depth exceeded');\n }\n $prefix1 = '';\n yield \"{\";\n if (null === $data->self && ($options['include_null_properties'] ?? false)) {\n yield \"{$prefix1}\\\"@self\\\":null\";\n }\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/self_referencing_object.php", "language": "php", "file_size": 1405, "cut_index": 524, "middle_length": 229}} {"prefix": "* @param Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\SelfReferencingDummyDict $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n $generators['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\SelfReferencingDummyDict'] = static function ($data, $depth) use ($transformers, $options, &$generators) {\n if ($depth >= 512) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueExcept", "suffix": "tr(\\json_encode($key1), 1, -1);\n yield \"{$prefix2}\\\"{$key1}\\\":\";\n yield from $generators['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\SelfReferencingDummyDict']($value1, $depth + 1);\n $prefix2 = ',';\n }", "middle": "ion('Maximum stack depth exceeded');\n }\n $prefix1 = '';\n yield \"{{$prefix1}\\\"items\\\":\";\n yield \"{\";\n $prefix2 = '';\n foreach ($data->items as $key1 => $value1) {\n $key1 = \\subs", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/self_referencing_object_dict.php", "language": "php", "file_size": 1446, "cut_index": 524, "middle_length": 229}} {"prefix": "* @param Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\SelfReferencingDummyList $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n $generators['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\SelfReferencingDummyList'] = static function ($data, $depth) use ($transformers, $options, &$generators) {\n if ($depth >= 512) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueExcept", "suffix": "t($key1) ? $key1 : \\substr(\\json_encode($key1), 1, -1);\n yield \"{$prefix2}\\\"{$key1}\\\":\";\n yield from $generators['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\SelfReferencingDummyList']($value1, $depth + 1);\n $", "middle": "ion('Maximum stack depth exceeded');\n }\n $prefix1 = '';\n yield \"{{$prefix1}\\\"items\\\":\";\n yield \"{\";\n $prefix2 = '';\n foreach ($data->items as $key1 => $value1) {\n $key1 = is_in", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/self_referencing_object_list.php", "language": "php", "file_size": 1470, "cut_index": 524, "middle_length": 229}} {"prefix": "ony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNameAttributes|int|list $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n if (\\is_array($data)) {\n yield \"[\";\n $prefix1 = '';\n foreach ($data as $value1) {\n yield \"{$prefix1}\";\n yield \\json_encode($value1->value, \\JSON_THROW_ON_", "suffix": " yield \"{{$prefix1}\\\"@id\\\":\";\n yield \\json_encode($data->id, \\JSON_THROW_ON_ERROR, 511);\n $prefix1 = ',';\n yield \"{$prefix1}\\\"name\\\":\";\n yield \\json_encode($data->name, \\JSON_THROW_ON_ERROR, 511);\n ", "middle": "ERROR, 511);\n $prefix1 = ',';\n }\n yield \"]\";\n } elseif ($data instanceof \\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNameAttributes) {\n $prefix1 = '';\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/union.php", "language": "php", "file_size": 1668, "cut_index": 537, "middle_length": 229}} {"prefix": "pace Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model;\n\nuse Symfony\\Component\\JsonStreamer\\Attribute\\ValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Attribute\\BooleanStringValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Transformer\\DivideStringAndCastToIntValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Transformer\\DoubleIntAndCastToStringValueTransformer;\n\nclass DummyWithValueTransformerAttributes\n{\n #[ValueTransformer(\n nativeToStream", "suffix": " #[ValueTransformer(nativeToStream: 'strtolower', streamToNative: 'strtoupper')]\n public string $name = 'DUMMY';\n\n #[ValueTransformer(\n nativeToStream: [self::class, 'concatRange'],\n streamToNative: [self::class, 'explodeRange'],\n )", "middle": ": DoubleIntAndCastToStringValueTransformer::class,\n streamToNative: DivideStringAndCastToIntValueTransformer::class,\n )]\n public int $id = 1;\n\n #[BooleanStringValueTransformer]\n public bool $active = false;\n\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/Model/DummyWithValueTransformerAttributes.php", "language": "php", "file_size": 1440, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Mapping;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\GenericTypePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithGeneric", "suffix": "{\n public function testReplaceGenerics()\n {\n $loader = new GenericTypePropertyMetadataLoader(self::propertyMetadataLoader([\n 'foo' => new PropertyMetadata('foo', Type::template('T')),\n ]), new TypeContextFactory(new StringTyp", "middle": "s;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\StringTypeResolver;\n\nclass GenericTypePropertyMetadataLoaderTest extends TestCase\n", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Mapping/GenericTypePropertyMetadataLoaderTest.php", "language": "php", "file_size": 3123, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Mapping;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\C", "suffix": "ew PropertyMetadataLoader(TypeResolver::create());\n\n $this->assertEquals([\n 'id' => new PropertyMetadata('id', Type::int()),\n 'name' => new PropertyMetadata('name', Type::string()),\n ], $loader->load(ClassicDummy::class)", "middle": "lassicDummy;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolver;\n\nclass PropertyMetadataLoaderTest extends TestCase\n{\n public function testReadPropertyType()\n {\n $loader = n", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Mapping/PropertyMetadataLoaderTest.php", "language": "php", "file_size": 1008, "cut_index": 512, "middle_length": 229}} {"prefix": "* @param list|null $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n if (\\is_array($data)) {\n yield \"[\";\n $prefix1 = '';\n foreach ($data as $value1) {\n $prefix2 = '';\n yield \"{$prefix1}{{$prefix2}\\\"@id\\\":\";\n yield \\json_encode($value1->id, \\JSON_THROW_ON_ERROR,", "suffix": " }\n yield \"]\";\n } elseif (null === $data) {\n yield \"null\";\n } else {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException(\\sprintf('Unexpected \"%s\" value.', \\get_debug_type($data)))", "middle": " 510);\n $prefix2 = ',';\n yield \"{$prefix2}\\\"name\\\":\";\n yield \\json_encode($value1->name, \\JSON_THROW_ON_ERROR, 510);\n yield \"}\";\n $prefix1 = ',';\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/nullable_object_list.php", "language": "php", "file_size": 1302, "cut_index": 524, "middle_length": 229}} {"prefix": "del\\ClassicDummy\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy::class, \\array_fi", "suffix": "', 'name' => $data['name'] ?? '_symfony_missing_value'], static function ($v) {\n return '_symfony_missing_value' !== $v;\n }));\n };\n return $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'](\\Symfony", "middle": "lter(['id' => $data['id'] ?? '_symfony_missing_value", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object.php", "language": "php", "file_size": 964, "cut_index": 582, "middle_length": 52}} {"prefix": "ay\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['array'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n $iterable = static function ($data) use ($", "suffix": " };\n return \\iterator_to_array($iterable($data));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n ret", "middle": "options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k => $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($v);\n }\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_dict.php", "language": "php", "file_size": 1533, "cut_index": 537, "middle_length": 229}} {"prefix": "nt\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy>\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['array'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::sp", "suffix": "['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($stream, $v[0], $v[1]);\n }\n };\n return \\iterator_to_array($iterable($stream, $data));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtur", "middle": "litDict($stream, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k => $providers", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_dict.stream.php", "language": "php", "file_size": 2046, "cut_index": 563, "middle_length": 229}} {"prefix": "rable\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['iterable'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n $iterable = static function ", "suffix": " }\n };\n return $iterable($data);\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $i", "middle": "($data) use ($options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k => $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($v);\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_iterable.php", "language": "php", "file_size": 1534, "cut_index": 537, "middle_length": 229}} {"prefix": "* @return list\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['list'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n $iterable = static function ($data) use ($optio", "suffix": " };\n return \\iterator_to_array($iterable($data));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $", "middle": "ns, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k => $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($v);\n }\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_list.php", "language": "php", "file_size": 1506, "cut_index": 524, "middle_length": 229}} {"prefix": "r\\Tests\\Fixtures\\Model\\DummyWithNullableProperties\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithNullableProperties'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::sp", "suffix": "sformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n match ($k) {\n 'name' => $object->name = \\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeStream($stream, $v[0], $v[1]),\n ", "middle": "litDict($stream, $offset, $length);\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNullableProperties::class, static function ($object) use ($stream, $data, $options, $tran", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_nullable_properties.stream.php", "language": "php", "file_size": 2526, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/**\n * @return Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithSyntheticProperties\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithSyntheticProperties'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\S", "suffix": "n ($object) use ($stream, $data, $options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n match ($k) {\n default => null,\n };\n }\n });\n };\n retu", "middle": "ymfony\\Component\\JsonStreamer\\Read\\Splitter::splitDict($stream, $offset, $length);\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithSyntheticProperties::class, static functio", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_synthetic_properties.stream.php", "language": "php", "file_size": 1129, "cut_index": 518, "middle_length": 229}} {"prefix": "r\\Tests\\Fixtures\\Model\\DummyWithUnionProperties\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithUnionProperties'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::splitDic", "suffix": " $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n match ($k) {\n 'value' => $object->value = $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum|null|string']($stream", "middle": "t($stream, $offset, $length);\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithUnionProperties::class, static function ($object) use ($stream, $data, $options, $transformers,", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_union.stream.php", "language": "php", "file_size": 2477, "cut_index": 563, "middle_length": 229}} {"prefix": "r\\Tests\\Fixtures\\Model\\DummyWithDateTimes\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithDateTimes'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model", "suffix": ") ? $providers['DateTimeImmutable']($data['immutable']) : '_symfony_missing_value', 'union' => \\array_key_exists('union', $data) ? $providers['DateTimeImmutable|int']($data['union']) : '_symfony_missing_value'], static function ($v) {\n return '_", "middle": "\\DummyWithDateTimes::class, \\array_filter(['interface' => \\array_key_exists('interface', $data) ? $providers['DateTimeInterface']($data['interface']) : '_symfony_missing_value', 'immutable' => \\array_key_exists('immutable', $data", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_value_object.php", "language": "php", "file_size": 2204, "cut_index": 563, "middle_length": 229}} {"prefix": "r\\Tests\\Fixtures\\Model\\DummyWithValueTransformerAttributes\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithValueTransformerAttributes'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\R", "suffix": ", $data, $options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n match ($k) {\n 'id' => $object->id = $transformers->get('Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Transfor", "middle": "ead\\Splitter::splitDict($stream, $offset, $length);\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithValueTransformerAttributes::class, static function ($object) use ($stream", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_value_transformer.stream.php", "language": "php", "file_size": 2089, "cut_index": 563, "middle_length": 229}} {"prefix": "r\\Tests\\Fixtures\\Model\\DummyWithNameAttributes|int|list\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['list'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n $i", "suffix": "um\\\\DummyBackedEnum']($v);\n }\n };\n return \\iterator_to_array($iterable($data));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum'] = static function ($data) {\n return \\Symfony\\C", "middle": "terable = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k => $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\En", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/union.php", "language": "php", "file_size": 2943, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Mapping;\n\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\n\nfinal class SyntheticPropertyMetadataLoader implements PropertyMetad", "suffix": " $className, array $options = [], array $context = []): array\n {\n return [\n 'synthetic' => PropertyMetadata::createSynthetic(Type::true(), [\n self::true(...),\n ]),\n ];\n }\n\n public static function ", "middle": "ataLoaderInterface\n{\n public function load(string", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/Mapping/SyntheticPropertyMetadataLoader.php", "language": "php", "file_size": 903, "cut_index": 547, "middle_length": 52}} {"prefix": " $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n yield \"[\";\n $prefix1 = '';\n foreach ($data as $value1) {\n $prefix2 = '';\n yield \"{$prefix1}{{$prefix2}\\\"dummies\\\":\";\n yield \"[\";\n $prefix3 = '';\n foreach ($value1->dummies as $value2) {\n $prefix4 = '';\n ", "suffix": "{$prefix5}{{$prefix6}\\\"id\\\":\";\n yield \\json_encode($value3->id, \\JSON_THROW_ON_ERROR, 506);\n $prefix6 = ',';\n yield \"{$prefix6}\\\"name\\\":\";\n yield \\json_encode($value3->name, \\JSON_", "middle": " yield \"{$prefix3}{{$prefix4}\\\"dummies\\\":\";\n yield \"[\";\n $prefix5 = '';\n foreach ($value2->dummies as $value3) {\n $prefix6 = '';\n yield \"", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/double_nested_list.php", "language": "php", "file_size": 1894, "cut_index": 537, "middle_length": 229}} {"prefix": "ent\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum|null $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n if ($data instanceof \\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyBackedEnum) {\n yield \\json_encode($data->value, \\JSON_THROW_ON_ERROR, 512);\n } elseif (null === $data) {\n yield \"null\";\n } else {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\", "suffix": "alue.', \\get_debug_type($data)));\n }\n } catch (\\JsonException $e) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueException(\"Cannot encode \\\"Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum|n", "middle": "UnexpectedValueException(\\sprintf('Unexpected \"%s\" v", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/nullable_backed_enum.php", "language": "php", "file_size": 909, "cut_index": 547, "middle_length": 52}} {"prefix": "* @param array|null $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n if (\\is_array($data)) {\n yield \"{\";\n $prefix1 = '';\n foreach ($data as $key1 => $value1) {\n $key1 = \\substr(\\json_encode($key1), 1, -1);\n $prefix2 = '';\n yield \"{$prefix1}\\\"{$key1}\\\":", "suffix": "N_THROW_ON_ERROR, 510);\n yield \"}\";\n $prefix1 = ',';\n }\n yield \"}\";\n } elseif (null === $data) {\n yield \"null\";\n } else {\n throw new \\Symfony\\Component\\JsonStreamer\\Exc", "middle": "{{$prefix2}\\\"@id\\\":\";\n yield \\json_encode($value1->id, \\JSON_THROW_ON_ERROR, 510);\n $prefix2 = ',';\n yield \"{$prefix2}\\\"name\\\":\";\n yield \\json_encode($value1->name, \\JSO", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/nullable_object_dict.php", "language": "php", "file_size": 1402, "cut_index": 524, "middle_length": 229}} {"prefix": "reamer\\Tests\\Fixtures\\Model\\ClassicDummy>|null\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['list'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::splitList($stre", "suffix": "mponent\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($stream, $v[0], $v[1]);\n }\n };\n return \\iterator_to_array($iterable($stream, $data));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\Cl", "middle": "am, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k => $providers['Symfony\\\\Co", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/nullable_object_list.stream.php", "language": "php", "file_size": 2855, "cut_index": 563, "middle_length": 229}} {"prefix": "turn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithOtherDummies'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::splitDict($stream, $offset, $length);\n return $instantiato", "suffix": " $k => $v) {\n match ($k) {\n 'name' => $object->name = \\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeStream($stream, $v[0], $v[1]),\n 'otherDummyOne' => $object->otherDummyOne = $providers['Symfony\\\\", "middle": "r->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithOtherDummies::class, static function ($object) use ($stream, $data, $options, $transformers, $instantiator, &$providers) {\n foreach ($data as", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_in_object.stream.php", "language": "php", "file_size": 3466, "cut_index": 614, "middle_length": 229}} {"prefix": "t\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['list'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Spli", "suffix": "roviders['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($stream, $v[0], $v[1]);\n }\n };\n return \\iterator_to_array($iterable($stream, $data));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests", "middle": "tter::splitList($stream, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k => $p", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_list.stream.php", "language": "php", "file_size": 2019, "cut_index": 537, "middle_length": 229}} {"prefix": "operties\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithSyntheticProperties'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithSyntheticProp", "suffix": ") {\n return '_symfony_missing_value' !== $v;\n }));\n };\n return $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithSyntheticProperties'](\\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeString((string) ", "middle": "erties::class, \\array_filter([], static function ($v", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_synthetic_properties.php", "language": "php", "file_size": 928, "cut_index": 606, "middle_length": 52}} {"prefix": "r\\Tests\\Fixtures\\Model\\DummyWithUnionProperties\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithUnionProperties'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fi", "suffix": "mfony_missing_value'], static function ($v) {\n return '_symfony_missing_value' !== $v;\n }));\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum'] = static function ($data) {\n return \\Sym", "middle": "xtures\\Model\\DummyWithUnionProperties::class, \\array_filter(['value' => \\array_key_exists('value', $data) ? $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum|null|string']($data['value']) : '_sy", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_union.php", "language": "php", "file_size": 2050, "cut_index": 563, "middle_length": 229}} {"prefix": "fony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithValueTransformerAttributes\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithValueTransformerAttributes'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->inst", "suffix": "stToIntValueTransformer')->transform($data['id'] ?? '_symfony_missing_value', $options), 'active' => $transformers->get('Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Transformer\\\\StringToBooleanValueTransformer')->transform($data['active'] ?? '_symfo", "middle": "antiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithValueTransformerAttributes::class, \\array_filter(['id' => $transformers->get('Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Transformer\\\\DivideStringAndCa", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_value_transformer.php", "language": "php", "file_size": 1582, "cut_index": 537, "middle_length": 229}} {"prefix": "eamer\\Tests\\Fixtures\\Model\\DummyWithNestedArray> $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n yield \"[\";\n $prefix1 = '';\n foreach ($data as $value1) {\n $prefix2 = '';\n yield \"{$prefix1}{{$prefix2}\\\"dummies\\\":\";\n yield \"{\";\n $prefix3 = '';\n foreach ($value1->dummies as $key2 => $value2) {\n $key2 = is_int($key2) ? $key2 : \\subs", "suffix": "mies as $key3 => $value3) {\n $key3 = is_int($key3) ? $key3 : \\substr(\\json_encode($key3), 1, -1);\n $prefix6 = '';\n yield \"{$prefix5}\\\"{$key3}\\\":{{$prefix6}\\\"id\\\":\";\n yield \\json_en", "middle": "tr(\\json_encode($key2), 1, -1);\n $prefix4 = '';\n yield \"{$prefix3}\\\"{$key2}\\\":{{$prefix4}\\\"dummies\\\":\";\n yield \"{\";\n $prefix5 = '';\n foreach ($value2->dum", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/double_nested_array.php", "language": "php", "file_size": 2112, "cut_index": 563, "middle_length": 229}} {"prefix": "* @param list $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n yield \"[\";\n $prefix1 = '';\n foreach ($data as $value1) {\n $prefix2 = '';\n yield \"{$prefix1}{{$prefix2}\\\"dummies\\\":\";\n yield \"[\";\n $prefix3 = '';\n foreach ($value1->dummies as $value2) {\n $prefix4 = '';", "suffix": " \\json_encode($value2->name, \\JSON_THROW_ON_ERROR, 508);\n yield \"}\";\n $prefix3 = ',';\n }\n $prefix2 = ',';\n yield \"]{$prefix2}\\\"customProperty\\\":\";\n yield \\json_encode($value1->custom", "middle": "\n yield \"{$prefix3}{{$prefix4}\\\"id\\\":\";\n yield \\json_encode($value2->id, \\JSON_THROW_ON_ERROR, 508);\n $prefix4 = ',';\n yield \"{$prefix4}\\\"name\\\":\";\n yield", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/nested_list.php", "language": "php", "file_size": 1393, "cut_index": 524, "middle_length": 229}} {"prefix": "* @return Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Spl", "suffix": "rs, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n match ($k) {\n 'id' => $object->id = \\Symfony\\Component\\JsonStreamer\\Read\\Decoder::decodeStream($stream, $v[0], $v[1]),\n 'name'", "middle": "itter::splitDict($stream, $offset, $length);\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy::class, static function ($object) use ($stream, $data, $options, $transforme", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object.stream.php", "language": "php", "file_size": 1319, "cut_index": 524, "middle_length": 229}} {"prefix": "Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy>\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['iterable'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Rea", "suffix": " => $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($stream, $v[0], $v[1]);\n }\n };\n return $iterable($stream, $data);\n };\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Mo", "middle": "d\\Splitter::splitDict($stream, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $k", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_iterable.stream.php", "language": "php", "file_size": 2047, "cut_index": 563, "middle_length": 229}} {"prefix": "r\\Tests\\Fixtures\\Model\\DummyWithDateTimes\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithDateTimes'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Read\\Splitter::splitDict($stream, $", "suffix": "providers) {\n foreach ($data as $k => $v) {\n match ($k) {\n 'interface' => $object->interface = $providers['DateTimeInterface']($stream, $v[0], $v[1]),\n 'immutable' => $object->immutable = $pro", "middle": "offset, $length);\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateTimes::class, static function ($object) use ($stream, $data, $options, $transformers, $instantiator, &$", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_with_value_object.stream.php", "language": "php", "file_size": 2685, "cut_index": 563, "middle_length": 229}} {"prefix": "* @param list $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n yield \"[\";\n $prefix1 = '';\n foreach ($data as $value1) {\n $prefix2 = '';\n yield \"{$prefix1}{{$prefix2}\\\"dummies\\\":\";\n yield \"{\";\n $prefix3 = '';\n foreach ($value1->dummies as $key2 => $value2) {\n $key", "suffix": "R, 508);\n $prefix4 = ',';\n yield \"{$prefix4}\\\"name\\\":\";\n yield \\json_encode($value2->name, \\JSON_THROW_ON_ERROR, 508);\n yield \"}\";\n $prefix3 = ',';\n }\n $prefix", "middle": "2 = is_int($key2) ? $key2 : \\substr(\\json_encode($key2), 1, -1);\n $prefix4 = '';\n yield \"{$prefix3}\\\"{$key2}\\\":{{$prefix4}\\\"id\\\":\";\n yield \\json_encode($value2->id, \\JSON_THROW_ON_ERRO", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/nested_array.php", "language": "php", "file_size": 1501, "cut_index": 524, "middle_length": 229}} {"prefix": "r\\Tests\\Fixtures\\Model\\DummyWithOtherDummies\n */\nreturn static function (string|\\Stringable $string, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\Instantiator $instantiator, array $options): mixed {\n $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\DummyWithOtherDummies'] = static function ($data) use ($options, $transformers, $instantiator, &$providers) {\n return $instantiator->instantiate(\\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures", "suffix": "\\\\Model\\\\DummyWithNameAttributes']($data['otherDummyOne']) : '_symfony_missing_value', 'otherDummyTwo' => \\array_key_exists('otherDummyTwo', $data) ? $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Model\\\\ClassicDummy']($data['otherDummyTwo'", "middle": "\\Model\\DummyWithOtherDummies::class, \\array_filter(['name' => $data['name'] ?? '_symfony_missing_value', 'otherDummyOne' => \\array_key_exists('otherDummyOne', $data) ? $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/object_in_object.php", "language": "php", "file_size": 2393, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/**\n * @param Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNameAttributes|null $data\n */\nreturn static function (mixed $data, \\Psr\\Container\\ContainerInterface $transformers, array $options): \\Traversable {\n try {\n if ($data instanceof \\Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNameAttributes) {\n $prefix1 = '';\n yield \"{{$prefix1}\\\"@id\\\":\";\n yield \\json_encode($data->id, \\JSON_THROW_ON_ERROR, 511);\n $prefix1 = ',';\n ", "suffix": " new \\Symfony\\Component\\JsonStreamer\\Exception\\UnexpectedValueException(\\sprintf('Unexpected \"%s\" value.', \\get_debug_type($data)));\n }\n } catch (\\JsonException $e) {\n throw new \\Symfony\\Component\\JsonStreamer\\Exception\\NotEncodableValueEx", "middle": " yield \"{$prefix1}\\\"name\\\":\";\n yield \\json_encode($data->name, \\JSON_THROW_ON_ERROR, 511);\n yield \"}\";\n } elseif (null === $data) {\n yield \"null\";\n } else {\n throw", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/nullable_object.php", "language": "php", "file_size": 1165, "cut_index": 518, "middle_length": 229}} {"prefix": "list\n */\nreturn static function (mixed $stream, \\Psr\\Container\\ContainerInterface $transformers, \\Symfony\\Component\\JsonStreamer\\Read\\LazyInstantiator $instantiator, array $options): mixed {\n $providers['list'] = static function ($stream, $offset, $length) use ($options, $transformers, $instantiator, &$providers) {\n $data = \\Symfony\\Component\\JsonStreamer\\Re", "suffix": "k => $providers['Symfony\\\\Component\\\\JsonStreamer\\\\Tests\\\\Fixtures\\\\Enum\\\\DummyBackedEnum']($stream, $v[0], $v[1]);\n }\n };\n return \\iterator_to_array($iterable($stream, $data));\n };\n $providers['Symfony\\\\Component\\\\JsonStream", "middle": "ad\\Splitter::splitList($stream, $offset, $length);\n $iterable = static function ($stream, $data) use ($options, $transformers, $instantiator, &$providers) {\n foreach ($data as $k => $v) {\n yield $", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_reader/union.stream.php", "language": "php", "file_size": 3719, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Mapping\\Read;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Read\\AttributePropertyMetadataLoader;\nus", "suffix": "odel\\DummyWithValueTransformerAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Transformer\\DivideStringAndCastToIntValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Transformer\\StringToBooleanValueTransformer;\nuse Symfony\\Com", "middle": "e Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNameAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithValueObjectTransformerAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\M", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Mapping/Read/AttributePropertyMetadataLoaderTest.php", "language": "php", "file_size": 4915, "cut_index": 614, "middle_length": 229}} {"prefix": "ception\\RuntimeException;\nuse Symfony\\Component\\JsonStreamer\\Exception\\UnsupportedException;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\GenericTypePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoaderInterface;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Write\\AttributePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\", "suffix": "\\ClassicDummy;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithArray;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDateTimes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithDollarNamedProperties;\nuse S", "middle": "DummyBackedEnum;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Enum\\DummyEnum;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Mapping\\SyntheticPropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Write/StreamWriterGeneratorTest.php", "language": "php", "file_size": 11343, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\ValueTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\ValueTransformer\\StringToDat", "suffix": "rmer();\n\n $this->assertEquals(\n new \\DateTimeImmutable('2023-07-26'),\n $valueTransformer->transform('2023-07-26', []),\n );\n\n $this->assertEquals(\n (new \\DateTimeImmutable('2023-07-26'))->setTime(0, 0),\n", "middle": "eTimeValueTransformer;\n\n#[Group('legacy')]\n#[IgnoreDeprecations]\nclass StringToDateTimeValueTransformerTest extends TestCase\n{\n public function testTransform()\n {\n $valueTransformer = new StringToDateTimeValueTransfo", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/ValueTransformer/StringToDateTimeValueTransformerTest.php", "language": "php", "file_size": 2620, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\DependencyInjection\\Strea", "suffix": "register('.json_streamer.cache_warmer.streamer')->setArguments([null]);\n\n $container->register('streamable')->setClass('Foo')->addResourceTag('json_streamer.streamable', ['object' => true, 'list' => true]);\n $container->register('notStreamabl", "middle": "mablePass;\n\nclass StreamablePassTest extends TestCase\n{\n public function testSetStreamable()\n {\n $container = new ContainerBuilder();\n\n $container->register('json_streamer.stream_writer');\n $container->", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/DependencyInjection/StreamablePassTest.php", "language": "php", "file_size": 1631, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\DataModel\\Write;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\CollectionNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\CompositeNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\ObjectNode;\nuse Symfony\\Component\\JsonStream", "suffix": "eType()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage(\\sprintf('\"%s\" expects at least 2 nodes.', CompositeNode::class));\n\n new CompositeNode('$data', [new ScalarNode('$data', Type::int()", "middle": "er\\DataModel\\Write\\ScalarNode;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\n\nclass CompositeNodeTest extends TestCase\n{\n public function testCannotCreateWithOnlyOn", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/DataModel/Write/CompositeNodeTest.php", "language": "php", "file_size": 2475, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\DataModel\\Write;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\ObjectNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Write\\ScalarNode;\nuse Symfony\\Component\\TypeInfo\\Type;\n\nclass ObjectNodeTest exte", "suffix": "()', Type::int()),\n new ScalarNode('function()', Type::int()),\n new ScalarNode('$bar', Type::int()),\n ]);\n $object = $object->withAccessor('$baz');\n\n $this->assertSame('$baz', $object->getAccessor());\n $thi", "middle": "nds TestCase\n{\n public function testWithAccessor()\n {\n $object = new ObjectNode('$foo', Type::object(self::class), [\n new ScalarNode('$foo->property', Type::int()),\n new ScalarNode('$foo->method", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/DataModel/Write/ObjectNodeTest.php", "language": "php", "file_size": 1347, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\Mapping\\Write;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Write\\AttributePropertyMetadataLoader;\n", "suffix": "\\Model\\DummyWithValueTransformerAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Transformer\\BooleanToStringValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Transformer\\DoubleIntAndCastToStringValueTransformer;\nuse Symfony\\C", "middle": "use Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithNameAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\DummyWithValueObjectTransformerAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/Mapping/Write/AttributePropertyMetadataLoaderTest.php", "language": "php", "file_size": 4916, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\CacheWarmer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\JsonStreamer\\CacheWarmer\\StreamerCacheWarmer;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Model\\ClassicDummy;\nuse Symfony\\Component\\JsonStreamer\\Tests\\Fixtures\\Mode", "suffix": "r;\n private string $streamReadersDir;\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->streamWritersDir = \\sprintf('%s/symfony_json_streamer_test/stream_writer', sys_get_temp_dir());\n $this->streamReadersDir = ", "middle": "l\\DummyWithNameAttributes;\nuse Symfony\\Component\\JsonStreamer\\Tests\\ServiceContainer;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolver;\n\nclass StreamerCacheWarmerTest extends TestCase\n{\n private string $streamWritersDi", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/CacheWarmer/StreamerCacheWarmerTest.php", "language": "php", "file_size": 3395, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\DataModel\\Read;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\CollectionNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\CompositeNode;\nuse Symfony\\Component\\JsonStreamer\\DataModel\\Read\\ObjectNode;\nuse Symfon", "suffix": "annotCreateWithOnlyOneType()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage(\\sprintf('\"%s\" expects at least 2 nodes.', CompositeNode::class));\n\n new CompositeNode([new ScalarNode(Type::in", "middle": "y\\Component\\JsonStreamer\\DataModel\\Read\\ScalarNode;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\n\nclass CompositeNodeTest extends TestCase\n{\n public function testC", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/DataModel/Read/CompositeNodeTest.php", "language": "php", "file_size": 1938, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\Tests\\ValueTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonStreamer\\Va", "suffix": "teTimeToStringValueTransformer();\n\n $this->assertSame(\n '2023-07-26T00:00:00+00:00',\n $valueTransformer->transform(new \\DateTimeImmutable('2023-07-26', new \\DateTimeZone('UTC')), []),\n );\n\n $this->assertSame(\n ", "middle": "lueTransformer\\DateTimeToStringValueTransformer;\n\n#[Group('legacy')]\n#[IgnoreDeprecations]\nclass DateTimeToStringValueTransformerTest extends TestCase\n{\n public function testTransform()\n {\n $valueTransformer = new Da", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/ValueTransformer/DateTimeToStringValueTransformerTest.php", "language": "php", "file_size": 1573, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\I", "suffix": "Interface;\n\n/**\n * Collects and merges services tagged with \"json_streamer.property_value_transformer\"\n * or \"json_streamer.value_object_transformer\" and sets them as arguments for the\n * services that need transformers.\n *\n * @author Mathias Arlaud register('j", "middle": "s\\Fixtures\\Transformer\\BooleanToStringValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateTimeValueObjectTransformer;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\PropertyValueTransformerInterface;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/Tests/DependencyInjection/TransformerPassTest.php", "language": "php", "file_size": 5179, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Read;\n\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\Type\\UnionType;\n\n/**\n * Represents an object in the data model graph representation.\n *\n * @author Mathias Arlaud \n *\n * @i", "suffix": "ction __construct(\n private ObjectType $type,\n private array $properties,\n private bool $mock = false,\n ) {\n }\n\n public static function createMock(ObjectType|UnionType $type): self\n {\n return new self($type, [], true", "middle": "nternal\n */\nfinal class ObjectNode implements DataModelNodeInterface\n{\n /**\n * @param array $properties\n */\n public fun", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Read/ObjectNode.php", "language": "php", "file_size": 1496, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Metadata;\n\nuse Symfony\\Component\\ObjectMapper\\Attribute\\Map;\nuse Symfony\\Component\\ObjectMapper\\Exception\\MappingException;\n\n/**\n * @internal\n *\n * @author Antoine Bluchet \n */\nfinal class ReflectionObjectMapperMetadataFactory implements Ob", "suffix": " try {\n $key = $object::class.($property ?? '');\n\n if (isset($this->attributesCache[$key])) {\n return $this->attributesCache[$key];\n }\n\n $refl = $this->reflectionClassCache[$object::class] ??", "middle": "jectMapperMetadataFactoryInterface\n{\n private array $reflectionClassCache = [];\n private array $attributesCache = [];\n\n public function create(object $object, ?string $property = null, array $context = []): array\n {\n ", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Metadata/ReflectionObjectMapperMetadataFactory.php", "language": "php", "file_size": 1639, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Metadata;\n\nuse Symfony\\Component\\ObjectMapper\\Attribute\\Map;\n\n/**\n * Maps classes based on attributes found on the target's properties.\n *\n * @author Florent Blaison \n */\nfinal class ReverseClassObjectMapperMetadataFactory implements ObjectMapperMetadataFac", "suffix": " private readonly ObjectMapperMetadataFactoryInterface $objectMapperMetadataFactory,\n private readonly array $classMap,\n ) {\n }\n\n public function create(object $object, ?string $property = null, array $context = []): array\n {\n $cl", "middle": "toryInterface\n{\n /**\n * @var array>\n */\n private array $attributesCache = [];\n\n /**\n * @param array $classMap\n */\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Metadata/ReverseClassObjectMapperMetadataFactory.php", "language": "php", "file_size": 2415, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author Florent Blaison \n */\nfinal class ReverseMappin", "suffix": "\n\n $reverseClassObjectMapperMetadataFactory = $container->getDefinition('object_mapper.metadata_factory.reverse_class');\n\n $classes = [];\n foreach ($container->findTaggedResourceIds('object_mapper.map') as $tags) {\n foreach ", "middle": "gPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('object_mapper.metadata_factory.reverse_class')) {\n return;\n }", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/DependencyInjection/ReverseMappingPass.php", "language": "php", "file_size": 1282, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n */\nabstract class AbstractExtension implements FormExtensionInterface\n{\n /**\n * The types provided by this extension.\n *\n * @var FormTypeInterfa", "suffix": "provided by this extension.\n */\n private ?FormTypeGuesserInterface $typeGuesser = null;\n\n /**\n * Whether the type guesser has been loaded.\n */\n private bool $typeGuesserLoaded = false;\n\n public function getType(string $name): FormTy", "middle": "ce[]\n */\n private array $types;\n\n /**\n * The type extensions provided by this extension.\n *\n * @var FormTypeExtensionInterface[][]\n */\n private array $typeExtensions;\n\n /**\n * The type guesser ", "meta": {"filepath": "src/Symfony/Component/Form/AbstractExtension.php", "language": "php", "file_size": 4552, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Default implementation of {@link FormRendererEngineInterface}.\n *\n * @author Bernhard Schussek \n */\nabstract class AbstractRendererEngine implements FormRendererEngineInterface, ResetInterface\n{\n /**\n * The variable in {@link FormView} used as cache key.\n */\n public const CACHE_KEY_VAR = 'cache_key';\n\n /**\n * @var array[]\n */\n protected a", "suffix": " private array $resourceHierarchyLevels = [];\n\n /**\n * @var array>\n */\n private array $resourceInheritability = [];\n\n /**\n * Creates a new renderer engine.\n *\n * @param array $defaultThemes The defau", "middle": "rray $themes = [];\n\n /**\n * @var bool[]\n */\n protected array $useDefaultThemes = [];\n\n /**\n * @var array[]\n */\n protected array $resources = [];\n\n /**\n * @var array>\n */\n ", "meta": {"filepath": "src/Symfony/Component/Form/AbstractRendererEngine.php", "language": "php", "file_size": 7848, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Util\\StringUtil;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Bernhard Schussek \n */\nabstract class AbstractType i", "suffix": "FormBuilderInterface $builder, array $options): void\n {\n }\n\n public function buildView(FormView $view, FormInterface $form, array $options): void\n {\n }\n\n public function finishView(FormView $view, FormInterface $form, array $options): voi", "middle": "mplements FormTypeInterface\n{\n public function getParent(): ?string\n {\n return FormType::class;\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n }\n\n public function buildForm(", "meta": {"filepath": "src/Symfony/Component/Form/AbstractType.php", "language": "php", "file_size": 1144, "cut_index": 518, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Bernhard Schussek \n */\nabstract class AbstractTypeExtension implements FormTypeExtensionInterface\n{\n public function configureOptions(OptionsResolver $resolver): void\n", "suffix": "erInterface $builder, array $options): void\n {\n }\n\n public function buildView(FormView $view, FormInterface $form, array $options): void\n {\n }\n\n public function finishView(FormView $view, FormInterface $form, array $options): void\n {\n ", "middle": " {\n }\n\n public function buildForm(FormBuild", "meta": {"filepath": "src/Symfony/Component/Form/AbstractTypeExtension.php", "language": "php", "file_size": 850, "cut_index": 535, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\AlreadySubmittedException;\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathInterface;\n\n/**\n * A form button.\n *\n * @author Bernhard Schussek \n *\n * @implements \\IteratorAggregate\n */\nclass Button implements \\IteratorAggregate, FormI", "suffix": "ce $config,\n ) {\n }\n\n /**\n * Unsupported method.\n */\n public function offsetExists(mixed $offset): bool\n {\n return false;\n }\n\n /**\n * Unsupported method.\n *\n * This method should not be invoked.\n *\n *", "middle": "nterface\n{\n private ?FormInterface $parent = null;\n private bool $submitted = false;\n\n /**\n * Creates a new button from a form configuration.\n */\n public function __construct(\n private FormConfigInterfa", "meta": {"filepath": "src/Symfony/Component/Form/Button.php", "language": "php", "file_size": 7863, "cut_index": 716, "middle_length": 229}} {"prefix": "\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathInterface;\n\n/**\n * A builder for {@link Button} instances.\n *\n * @author Bernhard Schussek \n *\n * @implements \\IteratorAggregate\n */\nclass ButtonBuilder implements \\IteratorAggregate, FormBuilderInterface\n{\n protected bool $locked = false;\n\n private bool $disabled = false;\n private ResolvedFormTypeInterface $type;\n private string $name;\n priva", "suffix": "e || null === $name) {\n throw new InvalidArgumentException('Buttons cannot have empty names.');\n }\n\n $this->name = $name;\n\n FormConfigBuilder::validateName($name);\n }\n\n /**\n * Unsupported method.\n *\n * @thr", "middle": "te array $attributes = [];\n\n /**\n * @throws InvalidArgumentException if the name is empty\n */\n public function __construct(\n ?string $name,\n private array $options = [],\n ) {\n if ('' === $nam", "meta": {"filepath": "src/Symfony/Component/Form/ButtonBuilder.php", "language": "php", "file_size": 14784, "cut_index": 921, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nclass CallbackTransformer implements DataTransformerInterface\n{\n private \\Closure $transform;\n private \\Closure $reverseTransform;\n\n public function __construct(callable $transform, callable $reverseTransform)\n {\n $this->transform ", "suffix": " $reverseTransform(...);\n }\n\n public function transform(mixed $data): mixed\n {\n return ($this->transform)($data);\n }\n\n public function reverseTransform(mixed $data): mixed\n {\n return ($this->reverseTransform)($data);\n }\n}", "middle": "= $transform(...);\n $this->reverseTransform =", "meta": {"filepath": "src/Symfony/Component/Form/CallbackTransformer.php", "language": "php", "file_size": 832, "cut_index": 523, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * Writes and reads values to/from an object or array bound to a form.\n *\n * @author Yonel Ceruto \n */\ninterface DataAccessorInterface\n{\n /**\n * Returns the value at the end of the property of the object graph.\n *\n * @thro", "suffix": "ject graph.\n *\n * @throws Exception\\AccessException If unable to write the given value\n */\n public function setValue(object|array &$viewData, mixed $value, FormInterface $form): void;\n\n /**\n * Returns whether a value can be read from ", "middle": "ws Exception\\AccessException If unable to read from the given form data\n */\n public function getValue(object|array $viewData, FormInterface $form): mixed;\n\n /**\n * Sets the value at the end of the property of the ob", "meta": {"filepath": "src/Symfony/Component/Form/DataAccessorInterface.php", "language": "php", "file_size": 1607, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * @author Bernhard Schussek \n */\ninterface DataMapperInterface\n{\n /**\n * Maps the view data of a compound form to its children.\n *\n * The method is responsible for calling {@link FormInterface::setData()}\n * on the children of compound forms, de", "suffix": "rmInterface} instances\n *\n * @throws Exception\\UnexpectedTypeException if the type of the data parameter is not supported\n */\n public function mapDataToForms(mixed $viewData, \\Traversable $forms): void;\n\n /**\n * Maps the model data of", "middle": "fining their underlying model data.\n *\n * @param mixed $viewData View data of the compound form being initialized\n * @param \\Traversable $forms A list of {@link Fo", "meta": {"filepath": "src/Symfony/Component/Form/DataMapperInterface.php", "language": "php", "file_size": 2483, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms a value between different representations.\n *\n * @author Bernhard Schussek \n *\n * @template TValue\n * @template TTransformedValue\n */\ninterface DataTransformerInterface\n{\n /**\n * Transforms a value from the original representa", "suffix": "normalize the model data.\n * This is mainly useful when the same form type (the same configuration)\n * has to handle different kind of underlying data, e.g The DateType can\n * deal with strings or \\DateTime objects as input.\n *\n ", "middle": "tion to a transformed representation.\n *\n * This method is called when the form field is initialized with its default data, on\n * two occasions for two types of transformers:\n *\n * 1. Model transformers which ", "meta": {"filepath": "src/Symfony/Component/Form/DataTransformerInterface.php", "language": "php", "file_size": 3926, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\EnumType;\nuse Symfony\\Component\\Form\\Guess\\Guess;\nuse Symfony\\Component\\Form\\Guess\\TypeGuess;\nuse Symfony\\Component\\Form\\Guess\\ValueGuess;\n\nfinal class EnumFormTypeGuesser implements FormTypeGuesserInterface\n{\n /**\n * @var array ltrim($enum, '?')], Guess::HIGH_CONFIDENCE);\n }\n\n public function guessRequired(string $class, string $property): ?ValueGuess\n {\n if (!($enum = $this->getPr", "middle": " array>\n */\n private array $cache = [];\n\n public function guessType(string $class, string $property): ?TypeGuess\n {\n if (!($enum = $this->getPropertyType($class, $property))) {\n ", "meta": {"filepath": "src/Symfony/Component/Form/EnumFormTypeGuesser.php", "language": "php", "file_size": 2218, "cut_index": 563, "middle_length": 229}} {"prefix": "y simple fields\n * or map children model data for compound fields\n *\n * A date field, for example, may store a date as \"Y-m-d\" string (1) in the\n * object. To facilitate processing in the field, this value is normalized\n * to a DateTime object (2). In the HTML representation of your form, a\n * localized string (3) may be presented to and modified by the user, or it could be an array of values\n * to be mapped to choices fields.\n *\n * In most cases, format (1) and format (2) will be the same. For exampl", "suffix": "ViewTransformer().\n *\n * In some cases though it makes sense to make format (1) configurable. To\n * demonstrate this, let's extend our above date field to store the value\n * either as \"Y-m-d\" string or as timestamp. Internally we still want to\n * use a Dat", "middle": "e,\n * a checkbox field uses a Boolean value for both internal processing and\n * storage in the object. In these cases you need to set a view transformer\n * to convert between formats (2) and (3). You can do this by calling\n * add", "meta": {"filepath": "src/Symfony/Component/Form/Form.php", "language": "php", "file_size": 36585, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\n\n/**\n * A builder for creating {@link Form} instances.\n *\n * @author Bernhard Schussek \n *\n * @implements \\IteratorAggregate\n */\nclass FormBuilder ", "suffix": "The data of children who haven't been converted to form builders yet.\n */\n private array $unresolvedChildren = [];\n\n public function __construct(?string $name, ?string $dataClass, EventDispatcherInterface $dispatcher, FormFactoryInterface $factor", "middle": "extends FormConfigBuilder implements \\IteratorAggregate, FormBuilderInterface\n{\n /**\n * The children of the form builder.\n *\n * @var FormBuilderInterface[]\n */\n private array $children = [];\n\n /**\n * ", "meta": {"filepath": "src/Symfony/Component/Form/FormBuilder.php", "language": "php", "file_size": 6777, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * @author Bernhard Schussek \n *\n * @extends \\Traversable\n */\ninterface FormBuilderInterface extends \\Traversable, \\Countable, FormConfigBuilderInterface\n{\n /**\n * Adds a new field to this group. A field must have a unique name ", "suffix": "ace>|null $type\n * @param array $options\n */\n public function add(string|self $child, ?string $type = null, array $options = []): static;\n\n /**\n * Creates a form builder.\n *\n * @param string ", "middle": "within\n * the group. Otherwise the existing field is overwritten.\n *\n * If you add a nested group, this group should also be represented in the\n * object hierarchy.\n *\n * @param class-string\n */\ninterface FormConfigBuilderInterface extends FormConfigInterface\n{\n /**\n * Adds an event listener to an event on this form.\n *\n * @param int $priority The priority of the listener. Listeners\n * with a higher priority ar", "suffix": " * Adds an event subscriber for events on this form.\n *\n * @return $this\n */\n public function addEventSubscriber(EventSubscriberInterface $subscriber): static;\n\n /**\n * Appends / prepends a transformer to the view transformer chain.\n", "middle": "e called before\n * listeners with a lower priority.\n *\n * @return $this\n */\n public function addEventListener(string $eventName, callable $listener, int $priority = 0): static;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Form/FormConfigBuilderInterface.php", "language": "php", "file_size": 7327, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathInterface;\n\n/**\n * The configuration of a {@link Form} object.\n *\n * @author Bernhard Schussek \n */\ninterface FormConfigInterface\n{\n /**\n * Returns the event dispatcher used to dispatch form events.\n */\n public function getEventDispatcher(): EventDispatcherInterface;\n\n /**\n * Returns the", "suffix": "erface;\n\n /**\n * Returns whether the form should be mapped to an element of its\n * parent's data.\n */\n public function getMapped(): bool;\n\n /**\n * Returns whether the form's data should be modified by reference.\n */\n public ", "middle": " name of the form used as HTTP parameter.\n */\n public function getName(): string;\n\n /**\n * Returns the property path that the form should be mapped to.\n */\n public function getPropertyPath(): ?PropertyPathInt", "meta": {"filepath": "src/Symfony/Component/Form/FormConfigInterface.php", "language": "php", "file_size": 5249, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Translation\\Translator;\n\n/**\n * Wraps errors in forms.\n *\n * @author Bernhard Schussek \n */\nclass FormError\n{\n protected string $messageTemplate;\n\n /**\n * The form that spawned", "suffix": "The translated error message\n * @param string|null $messageTemplate The template for the error message\n * @param array $messageParameters The parameters that should be\n * substituted in the", "middle": " this error.\n */\n private ?FormInterface $origin = null;\n\n /**\n * Any array key in $messageParameters will be used as a placeholder in\n * $messageTemplate.\n *\n * @param string $message ", "meta": {"filepath": "src/Symfony/Component/Form/FormError.php", "language": "php", "file_size": 2987, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Exception\\OutOfBoundsException;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\n\n/**\n * Iterates over the errors of a form.\n *\n * This class supports recursive iteration. In order to iterate recursively,\n * pass a structure of {@link ", "suffix": "ors.\n *\n * @author Bernhard Schussek \n *\n * @template T of FormError|FormErrorIterator\n *\n * @implements \\ArrayAccess\n * @implements \\RecursiveIterator\n * @implements \\SeekableIterator\n */\nclass FormErrorIterato", "middle": "FormError} and {@link FormErrorIterator} objects\n * to the $errors constructor argument.\n *\n * You can also wrap the iterator into a {@link \\RecursiveIteratorIterator} to\n * flatten the recursive structure into a flat list of err", "meta": {"filepath": "src/Symfony/Component/Form/FormErrorIterator.php", "language": "php", "file_size": 7531, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormEvent extends Event\n{\n public function __construct(\n private FormInterface $form,\n protected mixed $data,\n ) {\n }\n\n /**\n * Returns the form at the source of the eve", "suffix": "face\n {\n return $this->form;\n }\n\n /**\n * Returns the data associated with this event.\n */\n public function getData(): mixed\n {\n return $this->data;\n }\n\n /**\n * Allows updating with some filtered data.\n */\n", "middle": "nt.\n */\n public function getForm(): FormInter", "meta": {"filepath": "src/Symfony/Component/Form/FormEvent.php", "language": "php", "file_size": 980, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Event\\PostSetDataEvent;\nuse Symfony\\Component\\Form\\Event\\PostSubmitEvent;\nuse Symfony\\Component\\Form\\Event\\PreSetDataEvent;\nuse Symfony\\Component\\Form\\Event\\PreSubmitEvent;\nuse Symfony\\Component\\Form\\Event\\SubmitEvent;\n\n/**\n * To learn more about how form events work check the documentation\n * entry at {@link htt", "suffix": "l}.\n *\n * @author Bernhard Schussek \n */\nfinal class FormEvents\n{\n /**\n * The PRE_SUBMIT event is dispatched at the beginning of the Form::submit() method.\n *\n * It can be used to:\n * - Change data from the request,", "middle": "ps://symfony.com/doc/any/components/form/form_events.html}.\n *\n * To learn how to dynamically modify forms using events check the cookbook\n * entry at {@link https://symfony.com/doc/any/cookbook/form/dynamic_form_modification.htm", "meta": {"filepath": "src/Symfony/Component/Form/FormEvents.php", "language": "php", "file_size": 4121, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * Interface for extensions which provide types, type extensions and a guesser.\n */\ninterface FormExtensionInterface\n{\n /**\n * Returns a type by name.\n *\n * @param string $name The name of the type\n *\n * @throws Exception\\In", "suffix": "tring $name The name of the type\n */\n public function hasType(string $name): bool;\n\n /**\n * Returns the extensions for the given type.\n *\n * @param string $name The name of the type\n *\n * @return FormTypeExtensionInterface[]\n ", "middle": "validArgumentException if the given type is not supported by this extension\n */\n public function getType(string $name): FormTypeInterface;\n\n /**\n * Returns whether the given type is supported.\n *\n * @param s", "meta": {"filepath": "src/Symfony/Component/Form/FormExtensionInterface.php", "language": "php", "file_size": 1434, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\Flow\\FormFlowBuilderInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowTypeInterface;\n\nclass FormFactory implements FormFactoryInterface\n{\n public", "suffix": "tring $type = FormType::class, mixed $data = null, array $options = []): FormInterface\n {\n return $this->createBuilder($type, $data, $options)->getForm();\n }\n\n /**\n * @return ($type is class-string ? FormFlowInter", "middle": " function __construct(\n private FormRegistryInterface $registry,\n ) {\n }\n\n /**\n * @return ($type is class-string ? FormFlowInterface : FormInterface)\n */\n public function create(s", "meta": {"filepath": "src/Symfony/Component/Form/FormFactory.php", "language": "php", "file_size": 4552, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\CoreExtension;\n\n/**\n * The default implementation of FormFactoryBuilderInterface.\n *\n * @author Bernhard Schussek \n */\nclass FormFactoryBuilder implements FormFactoryBuilderInterface\n{\n private ResolvedFormTypeFactoryInterface $resolvedTypeFactory;\n\n /**\n * @var FormE", "suffix": "tensions = [];\n\n /**\n * @var FormTypeGuesserInterface[]\n */\n private array $typeGuessers = [];\n\n public function __construct(\n private bool $forceCoreExtension = false,\n ) {\n }\n\n public function setResolvedTypeFactory(Resol", "middle": "xtensionInterface[]\n */\n private array $extensions = [];\n\n /**\n * @var FormTypeInterface[]\n */\n private array $types = [];\n\n /**\n * @var FormTypeExtensionInterface[][]\n */\n private array $typeEx", "meta": {"filepath": "src/Symfony/Component/Form/FormFactoryBuilder.php", "language": "php", "file_size": 3864, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * A builder for FormFactoryInterface objects.\n *\n * @author Bernhard Schussek \n */\ninterface FormFactoryBuilderInterface\n{\n /**\n * Sets the factory for creating ResolvedFormTypeInterface instances.\n *\n * @return $this\n */\n public function set", "suffix": "Interface $extension): static;\n\n /**\n * Adds a list of extensions to be loaded by the factory.\n *\n * @param FormExtensionInterface[] $extensions The extensions\n *\n * @return $this\n */\n public function addExtensions(array $exte", "middle": "ResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory): static;\n\n /**\n * Adds an extension to be loaded by the factory.\n *\n * @return $this\n */\n public function addExtension(FormExtension", "meta": {"filepath": "src/Symfony/Component/Form/FormFactoryBuilderInterface.php", "language": "php", "file_size": 2402, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Flow\\FormFlowBuilderInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowTypeInterface;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException;\n\n/**\n * Allows creating a form based on a name,", "suffix": "a\n *\n * @return ($type is class-string ? FormFlowInterface : FormInterface)\n *\n * @throws InvalidOptionsException if any given option is not applicable to the given type\n */\n public function create(string $type", "middle": " a class or a property.\n *\n * @author Bernhard Schussek \n */\ninterface FormFactoryInterface\n{\n /**\n * Returns a form.\n *\n * @see createBuilder()\n *\n * @param mixed $data The initial dat", "meta": {"filepath": "src/Symfony/Component/Form/FormFactoryInterface.php", "language": "php", "file_size": 3749, "cut_index": 614, "middle_length": 229}} {"prefix": "\n * @author Bernhard Schussek \n *\n * @extends \\ArrayAccess\n * @extends \\Traversable\n */\ninterface FormInterface extends \\ArrayAccess, \\Traversable, \\Countable\n{\n /**\n * Sets the parent form.\n *\n * @param FormInterface|null $parent The parent form or null if it's the root\n *\n * @return $this\n *\n * @throws Exception\\AlreadySubmittedException if the form has already been submitted\n * @throws Exception\\LogicExc", "suffix": "\n */\n public function getParent(): ?self;\n\n /**\n * Adds or replaces a child to the form.\n *\n * @param FormInterface|string $child The FormInterface instance or the name of the child\n * @param string|null $type The ch", "middle": "eption when trying to set a parent for a form with\n * an empty name\n */\n public function setParent(?self $parent): static;\n\n /**\n * Returns the parent form.", "meta": {"filepath": "src/Symfony/Component/Form/FormInterface.php", "language": "php", "file_size": 9486, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\n\n/**\n * The central registry of the Form component.\n *\n * @author Bernhard Schussek \n", "suffix": "= [];\n\n private FormTypeGuesserInterface|false|null $guesser = false;\n private array $checkedTypes = [];\n\n /**\n * @param FormExtensionInterface[] $extensions\n *\n * @throws UnexpectedTypeException if any extension does not implement For", "middle": " */\nclass FormRegistry implements FormRegistryInterface\n{\n /**\n * @var FormExtensionInterface[]\n */\n private array $extensions = [];\n\n /**\n * @var ResolvedFormTypeInterface[]\n */\n private array $types ", "meta": {"filepath": "src/Symfony/Component/Form/FormRegistry.php", "language": "php", "file_size": 4576, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * The central registry of the Form component.\n *\n * @author Bernhard Schussek \n */\ninterface FormRegistryInterface\n{\n /**\n * Returns a form type by name.\n *\n * This method registers the type extensions fr", "suffix": "urns whether the given form type is supported.\n */\n public function hasType(string $name): bool;\n\n /**\n * Returns the guesser responsible for guessing types.\n */\n public function getTypeGuesser(): ?FormTypeGuesserInterface;\n\n /**\n ", "middle": "om the form extensions.\n *\n * @throws Exception\\InvalidArgumentException if the type cannot be retrieved from any extension\n */\n public function getType(string $name): ResolvedFormTypeInterface;\n\n /**\n * Ret", "meta": {"filepath": "src/Symfony/Component/Form/FormRegistryInterface.php", "language": "php", "file_size": 1157, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Write;\n\nuse Symfony\\Component\\TypeInfo\\Type\\BackedEnumType;\n\n/**\n * Represents a backed enum in the data model graph representation.\n *\n * Backed enums are leaves in the data model tree.\n *\n * @author Mathias Arlaud type);\n }\n\n public function getIdentifier(): string\n {\n return (string) $this->getType();\n }\n\n public function getAccessor(): string\n {\n ", "middle": "ud@gmail.com>\n *\n * @internal\n */\nfinal class BackedEnumNode implements DataModelNodeInterface\n{\n public function __construct(\n private string $accessor,\n private BackedEnumType $type,\n ) {\n }\n\n public f", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Write/BackedEnumNode.php", "language": "php", "file_size": 1128, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Write;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\UnionType;\n\n/**\n * Represents a \"OR\" node composition in the data model graph representation.\n *\n * Composing nodes are so", "suffix": "onNode::class => 3,\n ObjectNode::class => 2,\n BackedEnumNode::class => 1,\n ScalarNode::class => 0,\n ];\n\n /**\n * @var list\n */\n private array $nodes;\n\n /**\n * @param list\n *\n * @internal\n */\nfinal class CompositeNode implements DataModelNodeInterface\n{\n private const NODE_PRECISION = [\n Collecti", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Write/CompositeNode.php", "language": "php", "file_size": 2521, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Write;\n\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\n\n/**\n * Represents a scalar in the data model graph representation.\n *\n * Scalars are leaves in the data model tree.\n *\n * @author Mathias Arlaud type);\n }\n\n public function getIdentifier(): string\n {\n return (string) $this->getType();\n }\n\n public function getAccessor(): string\n {\n return $thi", "middle": "om>\n *\n * @internal\n */\nfinal class ScalarNode implements DataModelNodeInterface\n{\n public function __construct(\n private string $accessor,\n private BuiltinType $type,\n ) {\n }\n\n public function withAcces", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Write/ScalarNode.php", "language": "php", "file_size": 1105, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper;\n\nuse Symfony\\Component\\ObjectMapper\\Exception\\MappingException;\nuse Symfony\\Component\\ObjectMapper\\Exception\\MappingTransformException;\nuse Symfony\\Component\\ObjectMapper\\Exception\\NoSuchPropertyException;\n\n/**\n * Object to object mapper.", "suffix": "T>|null $target The object or class to map to\n *\n * @return T\n *\n * @throws MappingException When the mapping configuration is wrong\n * @throws MappingTransformException When a transformation on an object does not return an obj", "middle": "\n *\n * @author Antoine Bluchet \n */\ninterface ObjectMapperInterface\n{\n /**\n * @template T of object\n *\n * @param object $source The object to map from\n * @param T|class-string<", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/ObjectMapperInterface.php", "language": "php", "file_size": 1173, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Transform;\n\nuse Symfony\\Component\\ObjectMapper\\Exception\\MappingException;\nuse Symfony\\Component\\ObjectMapper\\ObjectMapper;\nuse Symfony\\Component\\ObjectMapper\\ObjectMapperAwareInterface;\nuse Symfony\\Component\\ObjectMapper\\ObjectMapperInterface;\nuse Symfony\\C", "suffix": " public function __construct(\n private ?ObjectMapperInterface $objectMapper = null,\n public readonly ?string $targetClass = null,\n ) {\n }\n\n public function withObjectMapper(ObjectMapperInterface $objectMapper): static\n {\n ", "middle": "omponent\\ObjectMapper\\TransformCallableInterface;\n\n/**\n * @template T of object\n *\n * @implements TransformCallableInterface\n */\nclass MapCollection implements TransformCallableInterface, ObjectMapperAwareInterface\n{\n ", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Transform/MapCollection.php", "language": "php", "file_size": 1638, "cut_index": 537, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Condition;\n\nuse Symfony\\Component\\ObjectMapper\\ConditionCallableInterface;\n\n/**\n * Marker interface for condition callables that validate class rules.\n *\n * Conditions implementing this interface are evaluated before fetching\n * the prope", "suffix": "owing early skip of mapping rules based on\n * source/target class checks.\n *\n * @template T of object\n * @template T2 of object\n *\n * @extends ConditionCallableInterface\n */\ninterface ClassRuleConditionCallableInterface extends ConditionCallableInte", "middle": "rty value, all", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Condition/ClassRuleConditionCallableInterface.php", "language": "php", "file_size": 797, "cut_index": 517, "middle_length": 14}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Condition;\n\n/**\n * @template T of object\n *\n * @implements ClassRuleConditionCallableInterface\n */\nfinal class SourceClass implements ClassRuleConditionCallableInterface\n{\n /**\n * @var non-empty-array\n ", "suffix": "Name) ? $className : [$className];\n }\n\n public function __invoke(mixed $value, object $source, ?object $target): bool\n {\n foreach ($this->sources as $validSource) {\n if ($source instanceof $validSource) {\n return t", "middle": " */\n private readonly array $sources;\n\n /**\n * @param class-string|array> $className\n */\n public function __construct(string|array $className)\n {\n $this->sources = \\is_array($class", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Condition/SourceClass.php", "language": "php", "file_size": 1058, "cut_index": 513, "middle_length": 229}} {"prefix": "RequestWithSourceAndAutoMappedView;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ClassMap\\CostRequestWithSourceView;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ClassMap\\Quote;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ClassMap\\QuoteRequestView;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ClassRule\\A as ClassRuleA;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ClassRule\\B as ClassRuleB;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ClassRule\\C as ClassRuleC;\nuse Symfony\\Comp", "suffix": " ConditionalSourceMapAddress;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ConditionalSourceMap\\User as ConditionalSourceMapUser;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ConditionalSourceMap\\UserDto as ConditionalSourceMapUserDto;\nuse Symfon", "middle": "onent\\ObjectMapper\\Tests\\Fixtures\\ClassWithoutTarget;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ConditionalConstructorArgument\\InputSource;\nuse Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ConditionalSourceMap\\Address as", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/ObjectMapperTest.php", "language": "php", "file_size": 45513, "cut_index": 2151, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures;\n\nuse Symfony\\Component\\VarExporter\\LazyObjectInterface;\n\nclass LazyFoo extends \\stdClass implements LazyObjectInterface\n{\n private bool $initialized = false;\n\n public function isLazyObjectInitialized(bool $partial = false", "suffix": " return $this->initialized;\n }\n\n public function initializeLazyObject(): object\n {\n $this->initialized = true;\n\n return $this;\n }\n\n public function resetLazyObject(): bool\n {\n $this->initialized = false;\n\n ", "middle": "): bool\n {\n", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/LazyFoo.php", "language": "php", "file_size": 816, "cut_index": 522, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ClassRule;\n\nuse Symfony\\Component\\ObjectMapper\\Attribute\\Map;\nuse Symfony\\Component\\ObjectMapper\\Condition\\ClassRule;\nuse Symfony\\Component\\ObjectMapper\\Condition\\ClassRuleList;\nuse Symfony\\Component\\ObjectMapper\\Condition\\SourceC", "suffix": "strtolower',\n if: new ClassRuleList([\n new SourceClass(B::class),\n ]),\n )]\n #[Map(\n source: 'bar',\n if: new ClassRuleList([\n new ClassRule(sources: [C::class]),\n ]),\n )]\n public string $s", "middle": "lass;\nuse Symfony\\Component\\ObjectMapper\\Condition\\TargetClass;\n\n#[Map(source: B::class)]\n#[Map(source: C::class)]\n#[Map(target: B::class)]\n#[Map(target: C::class)]\nclass A\n{\n #[Map(\n source: 'foo',\n transform: '", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/ClassRule/A.php", "language": "php", "file_size": 1374, "cut_index": 524, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\MultipleTargets;\n\nuse Symfony\\Component\\ObjectMapper\\Attribute\\Map;\n\n#[Map(target: B::class, if: [A::class, 'shouldMapToB'])]\n#[Map(target: C::class, if: [A::class, 'shouldMapToC'])]\nclass A\n{\n public function __const", "suffix": "adonly string $foo = 'bar')\n {\n }\n\n public static function shouldMapToB(mixed $value, object $object): bool\n {\n return false;\n }\n\n public static function shouldMapToC(mixed $value, object $object): bool\n {\n return true;\n ", "middle": "ruct(public re", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/MultipleTargets/A.php", "language": "php", "file_size": 791, "cut_index": 514, "middle_length": 14}} {"prefix": "hp\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\NestedMappingWithClassTransformer;\n\nclass ParentTarget\n{\n public string $name;\n public ChildWithClassTransformTarget $childWithClassTransformer;\n public ChildWithoutClassTransformerTarget $childWithoutClassTransformer;\n public ChildWithClassTransformTarget $childWithBothTransformers;\n public bool $transformed = false;\n\n public static function createFromSource(self $value, ParentSource $source): self\n {\n $value->transform", "suffix": "ithoutClassTransformerTarget();\n\n $target->name = 'child';\n $target->propertyTransformed = true;\n\n return $target;\n }\n\n public static function childBothTransformer(ChildWithClassTransformSource $value, ParentSource $source): Chil", "middle": "ed = true;\n\n return $value;\n }\n\n public static function childPropertyTransformer(ChildWithoutClassTransformerSource $value, ParentSource $source): ChildWithoutClassTransformerTarget\n {\n $target = new ChildW", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/NestedMappingWithClassTransformer/ParentTarget.php", "language": "php", "file_size": 1095, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\MapStruct;\n\nuse Symfony\\Component\\ObjectMapper\\Metadata\\Mapping;\nuse Symfony\\Component\\ObjectMapper\\Metadata\\ObjectMapperMetadataFactoryInterface;\nuse Symfony\\Component\\ObjectMapper\\ObjectMapperInterface;\n\n/**\n * A Metadata factory that implem", "suffix": "ate readonly string $mapper)\n {\n if (!is_a($mapper, ObjectMapperInterface::class, true)) {\n throw new \\RuntimeException(\\sprintf('Mapper should implement \"%s\".', ObjectMapperInterface::class));\n }\n }\n\n public function crea", "middle": "ents the basics behind https://mapstruct.org/.\n *\n * @author Antoine Bluchet \n */\nfinal class MapStructMapperMetadataFactory implements ObjectMapperMetadataFactoryInterface\n{\n public function __construct(priv", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/MapStruct/MapStructMapperMetadataFactory.php", "language": "php", "file_size": 1834, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Sets the streamable metadata to the services that need them.\n *\n * @author Mathia", "suffix": "ter')) {\n return;\n }\n\n $streamable = [];\n\n foreach ($container->findTaggedResourceIds('json_streamer.streamable') as $id => $tag) {\n $class = $container->getDefinition($id)->getClass();\n $streamable[$cl", "middle": "s Arlaud \n */\nclass StreamablePass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('json_streamer.stream_wri", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DependencyInjection/StreamablePass.php", "language": "php", "file_size": 1311, "cut_index": 524, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Read;\n\nuse Symfony\\Component\\TypeInfo\\Type\\BackedEnumType;\n\n/**\n * Represents a backed enum in the data model graph representation.\n *\n * Backed enums are leaves in the data model tree.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal cl", "suffix": "\n{\n public function __construct(\n public BackedEnumType $type,\n ) {\n }\n\n public function getIdentifier(): string\n {\n return (string) $this->type;\n }\n\n public function getType(): BackedEnumType\n {\n return $this->", "middle": "ass BackedEnumNode implements DataModelNodeInterface", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Read/BackedEnumNode.php", "language": "php", "file_size": 881, "cut_index": 559, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Read;\n\nuse Symfony\\Component\\JsonStreamer\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\UnionType;\n\n/**\n * Represents a \"OR\" node composition in the data model graph representation.\n *\n * Composing nodes are sor", "suffix": "nNode::class => 3,\n ObjectNode::class => 2,\n BackedEnumNode::class => 1,\n ScalarNode::class => 0,\n ];\n\n /**\n * @var list\n */\n private array $nodes;\n\n /**\n * @param list\n *\n * @internal\n */\nfinal class CompositeNode implements DataModelNodeInterface\n{\n private const NODE_PRECISION = [\n Collectio", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Read/CompositeNode.php", "language": "php", "file_size": 2163, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Write;\n\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\n\n/**\n * Represents a collection in the data model graph representation.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class CollectionNode ", "suffix": "y,\n ) {\n }\n\n public function withAccessor(string $accessor): self\n {\n return new self($accessor, $this->type, $this->item, $this->key);\n }\n\n public function getIdentifier(): string\n {\n return (string) $this->getType();\n ", "middle": "implements DataModelNodeInterface\n{\n public function __construct(\n private string $accessor,\n private CollectionType $type,\n private DataModelNodeInterface $item,\n private DataModelNodeInterface $ke", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Write/CollectionNode.php", "language": "php", "file_size": 1385, "cut_index": 524, "middle_length": 229}} {"prefix": "ony\\Component\\ObjectMapper\\Metadata\\ReflectionObjectMapperMetadataFactory;\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException as PropertyAccessorNoSuchPropertyException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\VarExporter\\LazyObjectInterface;\n\n/**\n * Object to object mapper.\n *\n * @author Antoine Bluchet \n */\nfinal class ObjectMapper implements ObjectMapperInterface, ObjectMapperAwareInterface\n{\n /**\n * Tracks recursi", "suffix": " private readonly ?PropertyAccessorInterface $propertyAccessor = null,\n private readonly ?ContainerInterface $transformCallableLocator = null,\n private readonly ?ContainerInterface $conditionCallableLocator = null,\n private ?ObjectMa", "middle": "ve references.\n */\n private ?\\WeakMap $objectMap = null;\n\n public function __construct(\n private readonly ObjectMapperMetadataFactoryInterface $metadataFactory = new ReflectionObjectMapperMetadataFactory(),\n ", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/ObjectMapper.php", "language": "php", "file_size": 17449, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Condition;\n\nuse Symfony\\Component\\ObjectMapper\\Exception\\InvalidArgumentException;\n\n/**\n * @template T1 of object\n * @template T2 of object\n *\n * @implements ClassRuleConditionCallableInterface\n */\nfinal class ClassRule implements ClassRuleConditionC", "suffix": "ts = [],\n ) {\n if (!$this->sources && !$this->targets) {\n throw new InvalidArgumentException('A ClassRule needs a sources list and/or a targets list.');\n }\n }\n\n public function __invoke(mixed $value, object $source, ?objec", "middle": "allableInterface\n{\n /**\n * @param array|null $sources\n * @param array|null $targets\n */\n public function __construct(\n private array $sources = [],\n private array $targe", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Condition/ClassRule.php", "language": "php", "file_size": 1553, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Condition;\n\nuse Symfony\\Component\\ObjectMapper\\Exception\\InvalidArgumentException;\n\n/**\n * @implements ClassRuleConditionCallableInterface\n */\nfinal class ClassRuleList implements ClassRuleConditionCallableInterface\n{\n /**\n * @param non-empty-arrayrules) {\n throw new InvalidArgumentException('A ClassRuleList needs at least one rule.');\n }\n }\n\n public function __invoke(mixed $value, object $source, ?object $target): bool\n {\n ", "middle": "ss> $rules\n */\n public function __construct(p", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Condition/ClassRuleList.php", "language": "php", "file_size": 989, "cut_index": 582, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\ServiceLoadedValue;\n\nuse Symfony\\Component\\ObjectMapper\\Metadata\\ObjectMapperMetadataFactoryInterface;\nuse Symfony\\Component\\ObjectMapper\\TransformCallableInterface;\n\n/**\n * @implements TransformCallableInterface\n *", "suffix": "a)\n {\n }\n\n public function __invoke(mixed $value, object $source, ?object $target): mixed\n {\n $metadata = $this->metadata->create($value);\n\n if (1 !== \\count($metadata)) {\n throw new \\LogicException('Exactly one metadat", "middle": "/\nclass ServiceLoadedValueTransformer implements TransformCallableInterface\n{\n public function __construct(private readonly LoadedValueService $serviceLoadedValue, private readonly ObjectMapperMetadataFactoryInterface $metadat", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/ServiceLoadedValue/ServiceLoadedValueTransformer.php", "language": "php", "file_size": 1258, "cut_index": 524, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\MultipleTargetProperty;\n\nuse Symfony\\Component\\ObjectMapper\\Attribute\\Map;\nuse Symfony\\Component\\ObjectMapper\\Condition\\TargetClass;\n\n#[Map(target: B::class)]\n#[Map(target: C::class)]\nclass A\n{\n #[Map(target: 'foo', transfo", "suffix": " #[Map(target: 'bar')]\n public string $something = 'test';\n\n #[Map(target: 'otherFoo', transform: 'strtolower', if: new TargetClass([B::class, C::class]))]\n public string $somethingOther = 'TESTOTHER';\n\n public string $doesNotExistInTargetB = ", "middle": "rm: 'strtoupper', if: new TargetClass(B::class))]\n ", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/MultipleTargetProperty/A.php", "language": "php", "file_size": 837, "cut_index": 520, "middle_length": 52}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\MapStruct;\n\nuse Symfony\\Component\\ObjectMapper\\ObjectMapper;\nuse Symfony\\Component\\ObjectMapper\\ObjectMapperInterface;\n\n#[Map(source: Source::class, target: Target::class)]\nclass AToBMapper implements ObjectMapperInterface\n{\n public", "suffix": "$objectMapper)\n {\n }\n\n #[Map(source: 'propertyA', target: 'propertyD')]\n #[Map(source: 'propertyB', if: false)]\n public function map(object $source, object|string|null $target = null): object\n {\n return $this->objectMapper->map($so", "middle": " function __construct(private readonly ObjectMapper ", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/MapStruct/AToBMapper.php", "language": "php", "file_size": 861, "cut_index": 529, "middle_length": 52}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Read;\n\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\n\n/**\n * Represents a scalar in the data model graph representation.\n *\n * Scalars are leaves in the data model tree.\n *\n * @author Mathias Arlaud \n *\n * @inte", "suffix": "NodeInterface\n{\n public function __construct(\n public BuiltinType $type,\n ) {\n }\n\n public function getIdentifier(): string\n {\n return (string) $this->type;\n }\n\n public function getType(): BuiltinType\n {\n return ", "middle": "rnal\n */\nfinal class ScalarNode implements DataModel", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Read/ScalarNode.php", "language": "php", "file_size": 858, "cut_index": 529, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Write;\n\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\n\n/**\n * Represents an object in the data model graph representation.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class ObjectNode implements DataModelNode", "suffix": " private bool $mock = false,\n ) {\n }\n\n public static function createMock(string $accessor, ObjectType $type): self\n {\n return new self($accessor, $type, [], true);\n }\n\n public function withAccessor(string $accessor): self\n ", "middle": "Interface\n{\n /**\n * @param array $properties\n */\n public function __construct(\n private string $accessor,\n private ObjectType $type,\n private array $properties,\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Write/ObjectNode.php", "language": "php", "file_size": 1832, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Condition;\n\n/**\n * @template T of object\n *\n * @implements ClassRuleConditionCallableInterface\n */\nfinal class TargetClass implements ClassRuleConditionCallableInterface\n{\n /**\n * @var non-empty-arraytargets as $validTarget) {\n if ($target instanceof $validTarget) {\n retur", "middle": ">\n */\n private readonly array $targets;\n\n /**\n * @param class-string|array> $className\n */\n public function __construct(string|array $className)\n {\n $this->targets = \\is_array($cl", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Condition/TargetClass.php", "language": "php", "file_size": 1063, "cut_index": 515, "middle_length": 229}} {"prefix": "appingWithClassTransformer;\n\nuse Symfony\\Component\\ObjectMapper\\Attribute\\Map;\n\n#[Map(target: ParentTarget::class, transform: [ParentTarget::class, 'createFromSource'])]\nclass ParentSource\n{\n public string $name = 'parent';\n\n public ChildWithClassTransformSource $childWithClassTransformer;\n\n #[Map(transform: [ParentTarget::class, 'childPropertyTransformer'])]\n public ChildWithoutClassTransformerSource $childWithoutClassTransformer;\n\n #[Map(transform: [ParentTarget::class, 'childBothTransforme", "suffix": "dWithBothTransformers;\n\n public function __construct()\n {\n $this->childWithClassTransformer = new ChildWithClassTransformSource();\n $this->childWithoutClassTransformer = new ChildWithoutClassTransformerSource();\n $this->childWith", "middle": "r'])]\n public ChildWithClassTransformSource $chil", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/NestedMappingWithClassTransformer/ParentSource.php", "language": "php", "file_size": 954, "cut_index": 582, "middle_length": 52}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures\\MultipleSourceProperty;\n\nuse Symfony\\Component\\ObjectMapper\\Attribute\\Map;\nuse Symfony\\Component\\ObjectMapper\\Condition\\SourceClass;\n\n#[Map(source: B::class)]\n#[Map(source: C::class)]\nclass A\n{\n #[Map(source: 'foo', transform:", "suffix": "[Map(source: 'bar', if: new SourceClass(C::class))]\n public string $something;\n\n #[Map(source: 'foo', transform: 'strtoupper', if: new SourceClass([B::class, C::class]))]\n public string $somethingOther;\n\n public string $doesNotExistInSourceB;\n}", "middle": " 'strtolower', if: new SourceClass(B::class))]\n #", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/MultipleSourceProperty/A.php", "language": "php", "file_size": 832, "cut_index": 523, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Attribute;\n\n/**\n * Configures a class or a property to map to.\n *\n * @author Antoine Bluchet \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_PROPERTY | \\Attribute::IS_REPEATABLE)]\nclass Map\n{\n /**\n * @par", "suffix": " $target The property or the class to map to\n * @param string|bool|callable(mixed, object, ?object): bool|null $if A boolean, a service id or a cal", "middle": "am string|class-string|null $source The property or the class to map from\n * @param string|class-string|null ", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Attribute/Map.php", "language": "php", "file_size": 1487, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonStreamer\\DataModel\\Read;\n\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\n\n/**\n * Represents a collection in the data model graph representation.\n *\n * @author Mathias Arlaud \n *\n * @internal\n */\nfinal class CollectionNode implements DataModelNodeInterface\n{\n public function __c", "suffix": " private DataModelNodeInterface $item,\n ) {\n }\n\n public function getIdentifier(): string\n {\n return (string) $this->type;\n }\n\n public function getType(): CollectionType\n {\n return $this->type;\n }\n\n public functio", "middle": "onstruct(\n private CollectionType $type,\n ", "meta": {"filepath": "src/Symfony/Component/JsonStreamer/DataModel/Read/CollectionNode.php", "language": "php", "file_size": 972, "cut_index": 582, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ObjectMapper\\Tests\\Fixtures;\n\nuse Symfony\\Component\\ObjectMapper\\Attribute\\Map;\n\n#[Map(B::class)]\nclass A\n{\n #[Map('bar')]\n public string $foo;\n\n public string $baz;\n\n public string $notinb;\n\n #[Map(transform: 'strtoupper')]\n public string $transform;\n\n #[Map(transform: [self::class, 'concatFn'])]\n public ?string $", "suffix": " bool $nomap = false;\n\n public C $relation;\n\n public D $relationNotMapped;\n\n public function getConcat()\n {\n return 'should';\n }\n\n public static function concatFn($v, $object): string\n {\n return $v.$object->foo.$object->b", "middle": "concat = null;\n\n #[Map(if: 'boolval')]\n public", "meta": {"filepath": "src/Symfony/Component/ObjectMapper/Tests/Fixtures/A.php", "language": "php", "file_size": 926, "cut_index": 606, "middle_length": 52}} {"prefix": "Security\\Csrf\\CsrfTokenManagerInterface;\nuse Twig\\Environment;\n\n/**\n * Renders a form into HTML using a rendering engine.\n *\n * @author Bernhard Schussek \n */\nclass FormRenderer implements FormRendererInterface\n{\n public const CACHE_KEY_VAR = 'unique_block_prefix';\n\n private array $blockNameHierarchyMap = [];\n private array $hierarchyLevelMap = [];\n private array $variableStack = [];\n\n public function __construct(\n private FormRendererEngineInterface $engine,\n ", "suffix": "ixed $themes, bool $useDefaultThemes = true): void\n {\n $this->engine->setTheme($view, $themes, $useDefaultThemes);\n }\n\n public function renderCsrfToken(string $tokenId): string\n {\n if (null === $this->csrfTokenManager) {\n ", "middle": " private ?CsrfTokenManagerInterface $csrfTokenManager = null,\n ) {\n }\n\n public function getEngine(): FormRendererEngineInterface\n {\n return $this->engine;\n }\n\n public function setTheme(FormView $view, m", "meta": {"filepath": "src/Symfony/Component/Form/FormRenderer.php", "language": "php", "file_size": 11939, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Flow\\AbstractFlowType;\nuse Symfony\\Component\\Form\\Flow\\ButtonFlowInterface;\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\DataStorageInterface;\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\NullDataStorage;\nuse Symfony\\Component\\Form\\Flow\\FormFlowBuil", "suffix": "m\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\OptionsResolver\\Exception\\MissingOptionsException;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsRe", "middle": "derInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowInterface;\nuse Symfony\\Component\\Form\\Flow\\StepAccessor\\PropertyPathStepAccessor;\nuse Symfony\\Component\\Form\\Flow\\StepAccessor\\StepAccessorInterface;\nuse Symfony\\Component\\For", "meta": {"filepath": "src/Symfony/Component/Form/Flow/Type/FormFlowType.php", "language": "php", "file_size": 4662, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * A navigator type that defines default buttons to interact with a form flow.\n *\n * @autho", "suffix": "ss);\n $builder->add('next', NextFlowType::class);\n $builder->add('finish', FinishFlowType::class);\n\n if ($options['with_reset']) {\n $builder->add('reset', ResetFlowType::class);\n }\n }\n\n public function configure", "middle": "r Yonel Ceruto \n */\nclass NavigatorFlowType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->add('previous', PreviousFlowType::cla", "meta": {"filepath": "src/Symfony/Component/Form/Flow/Type/NavigatorFlowType.php", "language": "php", "file_size": 1400, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\Type;\n\nuse Symfony\\Component\\Form\\Flow\\AbstractButtonFlowType;\nuse Symfony\\Component\\Form\\Flow\\ButtonFlowInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowCursor;\nuse Symfony\\Component\\Form\\Flow\\FormFlowInterface;\nuse Symfony\\Component\\Form\\", "suffix": "uilder->setAttribute('action', 'next');\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'handler' => static fn (mixed $data, ButtonFlowInterface $button, FormFlowInterface $flo", "middle": "FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass NextFlowType extends AbstractButtonFlowType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $b", "meta": {"filepath": "src/Symfony/Component/Form/Flow/Type/NextFlowType.php", "language": "php", "file_size": 1144, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\Type;\n\nuse Symfony\\Component\\Form\\Flow\\AbstractButtonFlowType;\nuse Symfony\\Component\\Form\\Flow\\ButtonFlowInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowCursor;\nuse Symfony\\Component\\Form\\Flow\\FormFlowInterface;\nuse Symfony\\Component\\Form\\", "suffix": " $builder->setAttribute('action', 'previous');\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'handler' => static fn (mixed $data, ButtonFlowInterface $button, FormFlowInterf", "middle": "FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass PreviousFlowType extends AbstractButtonFlowType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Flow/Type/PreviousFlowType.php", "language": "php", "file_size": 1218, "cut_index": 518, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\Type;\n\nuse Symfony\\Component\\Form\\Flow\\AbstractButtonFlowType;\nuse Symfony\\Component\\Form\\Flow\\ButtonFlowInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowInterface;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component", "suffix": " }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'handler' => static fn (mixed $data, ButtonFlowInterface $button, FormFlowInterface $flow) => $flow->reset(),\n 'clear_", "middle": "\\OptionsResolver\\OptionsResolver;\n\nclass ResetFlowType extends AbstractButtonFlowType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->setAttribute('action', 'reset');\n ", "meta": {"filepath": "src/Symfony/Component/Form/Flow/Type/ResetFlowType.php", "language": "php", "file_size": 1039, "cut_index": 513, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\DataStorage;\n\n/**\n * @author Yonel Ceruto \n */\nclass InMemoryDataStorage implements DataStorageInterface\n{\n private array $memory = [];\n\n public function __construct(\n private readonly string $key,\n ) {\n }\n\n publi", "suffix": " $this->memory[$this->key] = $data;\n }\n\n public function load(object|array|null $default = null): object|array|null\n {\n return $this->memory[$this->key] ?? $default;\n }\n\n public function clear(): void\n {\n unset($this->mem", "middle": "c function save(object|array $data): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Flow/DataStorage/InMemoryDataStorage.php", "language": "php", "file_size": 863, "cut_index": 529, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\DataStorage;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\VarExporter\\DeepCloner;\n\n/**\n * @author Yonel Ceruto \n */\nclass SessionDataStorage implements DataStorageInterface\n{\n public function ", "suffix": ">requestStack->getSession()->set($this->key, $data->isStaticValue() ? $data->clone() : $data);\n }\n\n public function load(object|array|null $default = null): object|array|null\n {\n if (null === $data = $this->requestStack->getSession()->get($", "middle": "__construct(\n private readonly string $key,\n private readonly RequestStack $requestStack,\n ) {\n }\n\n public function save(object|array $data): void\n {\n $data = new DeepCloner($data);\n $this-", "meta": {"filepath": "src/Symfony/Component/Form/Flow/DataStorage/SessionDataStorage.php", "language": "php", "file_size": 1244, "cut_index": 518, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\DataCollector;\n\nuse Symfony\\Component\\Form\\AbstractExtension;\n\n/**\n * Extension for collecting data of the forms on a page.\n *\n * @author Robert Schönthal \n * @author Bernhard Schussek \n */\nclass DataColl", "suffix": "c function __construct(\n private FormDataCollectorInterface $dataCollector,\n ) {\n }\n\n protected function loadTypeExtensions(): array\n {\n return [\n new Type\\DataCollectorTypeExtension($this->dataCollector),\n ];\n ", "middle": "ectorExtension extends AbstractExtension\n{\n publi", "meta": {"filepath": "src/Symfony/Component/Form/Extension/DataCollector/DataCollectorExtension.php", "language": "php", "file_size": 850, "cut_index": 535, "middle_length": 52}} {"prefix": "ion\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\Validator\\ConstraintViolationInterface;\nuse Symfony\\Component\\VarDumper\\Caster\\Caster;\nuse Symfony\\Component\\VarDumper\\Caster\\ClassStub;\nuse Symfony\\Component\\VarDumper\\Caster\\StubCaster;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Cloner\\Stub;\n\n/**\n * Data collector for {@link FormInterface} instances.\n *\n * @author Robert Schönthal", "suffix": " {@link FormInterface} instance.\n *\n * Uses the hashes of the forms as keys. This is preferable over using\n * {@link \\SplObjectStorage}, because in this way no references are kept\n * to the {@link FormInterface} instances.\n */\n priva", "middle": " \n * @author Bernhard Schussek \n *\n * @final\n */\nclass FormDataCollector extends DataCollector implements FormDataCollectorInterface\n{\n /**\n * Stores the collected data per", "meta": {"filepath": "src/Symfony/Component/Form/Extension/DataCollector/FormDataCollector.php", "language": "php", "file_size": 9658, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\DataCollector;\n\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\n\n/**\n * Collects and structures information about forms.\n *\n * @author ", "suffix": "figuration(FormInterface $form): void;\n\n /**\n * Stores the default data of the given form and its children.\n */\n public function collectDefaultData(FormInterface $form): void;\n\n /**\n * Stores the submitted data of the given form and it", "middle": "Bernhard Schussek \n */\ninterface FormDataCollectorInterface extends DataCollectorInterface\n{\n /**\n * Stores configuration data of the given form and its children.\n */\n public function collectCon", "meta": {"filepath": "src/Symfony/Component/Form/Extension/DataCollector/FormDataCollectorInterface.php", "language": "php", "file_size": 2820, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\DataCollector;\n\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Validator\\ConstraintViolationInterface;\n\n/**\n * Default implementation of {@link FormDataExtractorInterface}.\n *\n * @author Bernhard Schussek \n */\nclass FormDataExtractor implements FormDataExtra", "suffix": "tConfig()->getType()->getInnerType()::class,\n 'synchronized' => $form->isSynchronized(),\n 'passed_options' => [],\n 'resolved_options' => [],\n ];\n\n foreach ($form->getConfig()->getAttribute('data_collector/pass", "middle": "ctorInterface\n{\n public function extractConfiguration(FormInterface $form): array\n {\n $data = [\n 'id' => $this->buildId($form),\n 'name' => $form->getName(),\n 'type_class' => $form->ge", "meta": {"filepath": "src/Symfony/Component/Form/Extension/DataCollector/FormDataExtractor.php", "language": "php", "file_size": 4215, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\DataCollector;\n\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\n\n/**\n * Extracts arrays of information out of forms.\n *\n * @author Bernhard Schussek \n */\ninterface FormDataExtracto", "suffix": " extractDefaultData(FormInterface $form): array;\n\n /**\n * Extracts the submitted data of a form.\n */\n public function extractSubmittedData(FormInterface $form): array;\n\n /**\n * Extracts the view variables of a form.\n */\n public ", "middle": "rInterface\n{\n /**\n * Extracts the configuration data of a form.\n */\n public function extractConfiguration(FormInterface $form): array;\n\n /**\n * Extracts the default data of a form.\n */\n public function", "meta": {"filepath": "src/Symfony/Component/Form/Extension/DataCollector/FormDataExtractorInterface.php", "language": "php", "file_size": 1054, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\DataCollector\\Proxy;\n\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\FormDataCollectorInterface;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormTypeInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfo", "suffix": "om>\n */\nclass ResolvedTypeDataCollectorProxy implements ResolvedFormTypeInterface\n{\n public function __construct(\n private ResolvedFormTypeInterface $proxiedType,\n private FormDataCollectorInterface $dataCollector,\n ) {\n }\n\n publi", "middle": "ny\\Component\\Form\\ResolvedFormTypeInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * Proxy that invokes a data collector when creating a form and its view.\n *\n * @author Bernhard Schussek \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\DataCollector\\Proxy;\n\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\FormDataCollectorInterface;\nuse Symfony\\Component\\Form\\FormTypeInterface;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactoryInterface;\nuse Symfony\\Component\\Form\\Resolved", "suffix": " ResolvedFormTypeFactoryInterface\n{\n public function __construct(\n private ResolvedFormTypeFactoryInterface $proxiedFactory,\n private FormDataCollectorInterface $dataCollector,\n ) {\n }\n\n public function createResolvedType(FormType", "middle": "FormTypeInterface;\n\n/**\n * Proxy that wraps resolved types into {@link ResolvedTypeDataCollectorProxy}\n * instances.\n *\n * @author Bernhard Schussek \n */\nclass ResolvedTypeFactoryDataCollectorProxy implements", "meta": {"filepath": "src/Symfony/Component/Form/Extension/DataCollector/Proxy/ResolvedTypeFactoryDataCollectorProxy.php", "language": "php", "file_size": 1316, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\DataCollector\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\EventListener\\DataCollectorListener;\nuse Symfony\\Component\\Form\\", "suffix": ">\n * @author Bernhard Schussek \n */\nclass DataCollectorTypeExtension extends AbstractTypeExtension\n{\n private DataCollectorListener $listener;\n\n public function __construct(FormDataCollectorInterface $dataCollector)\n {\n ", "middle": "Extension\\DataCollector\\FormDataCollectorInterface;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n\n/**\n * Type extension for collecting data of a form with this type.\n *\n * @author Robert Schönthal \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\DataCollector\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\FormDataCollectorInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\n\n/**\n * Listener that invokes a ", "suffix": " public function __construct(\n private FormDataCollectorInterface $dataCollector,\n ) {\n }\n\n public static function getSubscribedEvents(): array\n {\n return [\n // Low priority in order to be called as late as possible\n ", "middle": "data collector for the {@link FormEvents::POST_SET_DATA}\n * and {@link FormEvents::POST_SUBMIT} events.\n *\n * @author Bernhard Schussek \n */\nclass DataCollectorListener implements EventSubscriberInterface\n{\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/DataCollector/EventListener/DataCollectorListener.php", "language": "php", "file_size": 2270, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\HttpFoundation;\n\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\MissingDataHandler;\nuse Symfony\\Component\\Form\\RequestHandlerInterface;\nuse Symfony\\Component\\Form\\Util\\FormUtil;\nuse Symfony\\Component\\Form\\Util\\S", "suffix": " HttpFoundation\n * component.\n *\n * @author Bernhard Schussek \n */\nclass HttpFoundationRequestHandler implements RequestHandlerInterface\n{\n private ServerParams $serverParams;\n private MissingDataHandler $missingDataHandler;\n\n ", "middle": "erverParams;\nuse Symfony\\Component\\HttpFoundation\\File\\File;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * A request processor using the {@link Request} class of the", "meta": {"filepath": "src/Symfony/Component/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php", "language": "php", "file_size": 4825, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\HttpFoundation\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\SessionDataStorage;\nuse Symfony\\Component\\Form\\Flow\\FormFlowBuilderInterface;\nuse Symfony\\Component\\Form\\Flow\\Type\\FormFlowType;\nuse Symfony", "suffix": "questStack $requestStack = null,\n ) {\n }\n\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n if (!$builder instanceof FormFlowBuilderInterface) {\n throw new \\InvalidArgumentException(\\sprintf('", "middle": "\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\n\nclass FormFlowTypeSessionDataStorageExtension extends AbstractTypeExtension\n{\n public function __construct(\n private readonly ?Re", "meta": {"filepath": "src/Symfony/Component/Form/Extension/HttpFoundation/Type/FormFlowTypeSessionDataStorageExtension.php", "language": "php", "file_size": 1555, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\HttpFoundation\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\HttpFoundation\\HttpFoundationRequestHandler;\nuse Symfony\\Component\\Form", "suffix": "erInterface $requestHandler;\n\n public function __construct(?RequestHandlerInterface $requestHandler = null)\n {\n $this->requestHandler = $requestHandler ?? new HttpFoundationRequestHandler();\n }\n\n public function buildForm(FormBuilderInte", "middle": "\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\RequestHandlerInterface;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormTypeHttpFoundationExtension extends AbstractTypeExtension\n{\n private RequestHandl", "meta": {"filepath": "src/Symfony/Component/Form/Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php", "language": "php", "file_size": 1218, "cut_index": 518, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Csrf;\n\nuse Symfony\\Component\\Form\\AbstractExtension;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * This extension protects forms by using a CSRF token.\n", "suffix": "ace $translator = null,\n private ?string $translationDomain = null,\n ) {\n }\n\n protected function loadTypeExtensions(): array\n {\n return [\n new Type\\FormTypeCsrfExtension($this->tokenManager, true, '_token', $this->trans", "middle": " *\n * @author Bernhard Schussek \n */\nclass CsrfExtension extends AbstractExtension\n{\n public function __construct(\n private CsrfTokenManagerInterface $tokenManager,\n private ?TranslatorInterf", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Csrf/CsrfExtension.php", "language": "php", "file_size": 1051, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\DataStorageInterface;\nuse Symfony\\Component\\Form\\Flow\\StepAccessor\\StepAccessorInterface;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\For", "suffix": "Builder implements FormFlowBuilderInterface\n{\n /**\n * @var array\n */\n private array $steps = [];\n private array $initialOptions = [];\n private DataStorageInterface $dataStorage;\n private StepAc", "middle": "mBuilderInterface;\n\n/**\n * A builder for creating {@link FormFlow} instances.\n *\n * @author Yonel Ceruto \n *\n * @implements \\IteratorAggregate\n */\nclass FormFlowBuilder extends Form", "meta": {"filepath": "src/Symfony/Component/Form/Flow/FormFlowBuilder.php", "language": "php", "file_size": 8001, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Csrf\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\HiddenType;\nuse Symfony\\Component\\Form\\Extension\\Csrf\\EventListener\\CsrfValidationListener;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form", "suffix": "ty\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormTypeCsrfExtension extends AbstractTypeExtension\n{\n public function __construct(\n priva", "middle": "\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\Util\\ServerParams;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Component\\Securi", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php", "language": "php", "file_size": 4529, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Csrf\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\Util\\ServerParams;\nuse Symfony\\Component\\Security\\Csrf\\", "suffix": "EventSubscriberInterface\n{\n private ServerParams $serverParams;\n\n public static function getSubscribedEvents(): array\n {\n return [\n FormEvents::PRE_SUBMIT => 'preSubmit',\n ];\n }\n\n public function __construct(\n ", "middle": "CsrfToken;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * @author Bernhard Schussek \n */\nclass CsrfValidationListener implements ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php", "language": "php", "file_size": 2573, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\PasswordHasher;\n\nuse Symfony\\Component\\Form\\AbstractExtension;\nuse Symfony\\Component\\Form\\Extension\\PasswordHasher\\EventListener\\PasswordHasherListener;\n\n/**\n * Integrates the PasswordHasher component with the Form library.\n *\n * @", "suffix": "rotected function loadTypeExtensions(): array\n {\n return [\n new Type\\FormTypePasswordHasherExtension($this->passwordHasherListener),\n new Type\\PasswordTypePasswordHasherExtension($this->passwordHasherListener),\n ];\n ", "middle": "author Sébastien Alfaiate \n */\nclass PasswordHasherExtension extends AbstractExtension\n{\n public function __construct(\n private PasswordHasherListener $passwordHasherListener,\n ) {\n }\n\n p", "meta": {"filepath": "src/Symfony/Component/Form/Extension/PasswordHasher/PasswordHasherExtension.php", "language": "php", "file_size": 1004, "cut_index": 512, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\PasswordHasher\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\PasswordHasher\\EventListener\\PasswordHasherListener;\nuse Symfony\\Compon", "suffix": "truct(\n private PasswordHasherListener $passwordHasherListener,\n ) {\n }\n\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->addEventListener(FormEvents::POST_SUBMIT, [$this->passwordHashe", "middle": "ent\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvents;\n\n/**\n * @author Sébastien Alfaiate \n */\nclass FormTypePasswordHasherExtension extends AbstractTypeExtension\n{\n public function __cons", "meta": {"filepath": "src/Symfony/Component/Form/Extension/PasswordHasher/Type/FormTypePasswordHasherExtension.php", "language": "php", "file_size": 1145, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\PasswordHasher\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\Extension\\PasswordHasher\\EventListener\\PasswordHasherListener;\nuse Symfony\\Component\\Form\\FormBu", "suffix": " PasswordTypePasswordHasherExtension extends AbstractTypeExtension\n{\n public function __construct(\n private PasswordHasherListener $passwordHasherListener,\n ) {\n }\n\n public function buildForm(FormBuilderInterface $builder, array $options", "middle": "ilderInterface;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\n\n/**\n * @author Sébastien Alfaiate \n */\nclass", "meta": {"filepath": "src/Symfony/Component/Form/Extension/PasswordHasher/Type/PasswordTypePasswordHasherExtension.php", "language": "php", "file_size": 1719, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\PasswordHasher\\EventListener;\n\nuse Symfony\\Component\\Form\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\RepeatedType;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\UserPasswordHasherInterface;\nuse Symfony\\Componen", "suffix": "fr>\n * @author Gábor Egyed \n */\nclass PasswordHasherListener\n{\n private array $passwords = [];\n\n public function __construct(\n private UserPasswordHasherInterface $passwordHasher,\n private ?PropertyAccessorInterfa", "middle": "t\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\n\n/**\n * @author Sébastien Alfaiate \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator;\n\nuse Symfony\\Component\\Form\\AbstractExtension;\nuse Symfony\\Component\\Form\\Extension\\Validator\\Constraints\\Form;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\FormRendererInterface;\nuse Symfony\\Componen", "suffix": "nslation\\TranslatorInterface;\n\n/**\n * Extension supporting the Symfony Validator component in forms.\n *\n * @author Bernhard Schussek \n */\nclass ValidatorExtension extends AbstractExtension\n{\n private readonly ?ViolationMapperInterfa", "middle": "t\\Form\\FormTypeGuesserInterface;\nuse Symfony\\Component\\Validator\\Constraints\\Traverse;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Contracts\\Tra", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/ValidatorExtension.php", "language": "php", "file_size": 2866, "cut_index": 563, "middle_length": 229}} {"prefix": "onType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CountryType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CurrencyType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\DateTimeType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FileType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\LanguageType;\nuse Symfony\\Component\\Form\\Ex", "suffix": "\\Extension\\Core\\Type\\UrlType;\nuse Symfony\\Component\\Form\\FormTypeGuesserInterface;\nuse Symfony\\Component\\Form\\Guess\\Guess;\nuse Symfony\\Component\\Form\\Guess\\TypeGuess;\nuse Symfony\\Component\\Form\\Guess\\ValueGuess;\nuse Symfony\\Component\\Validator\\Constraint;\n", "middle": "tension\\Core\\Type\\LocaleType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TimeType;\nuse Symfony\\Component\\Form", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/ValidatorTypeGuesser.php", "language": "php", "file_size": 11377, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Attribute\\HasNamedArguments;\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS)]\nclass Fo", "suffix": " self::NOT_SYNCHRONIZED_ERROR => 'NOT_SYNCHRONIZED_ERROR',\n self::NO_SUCH_FIELD_ERROR => 'NO_SUCH_FIELD_ERROR',\n ];\n\n #[HasNamedArguments]\n public function __construct(mixed $options = null, ?array $groups = null, mixed $payload = null)\n ", "middle": "rm extends Constraint\n{\n public const NOT_SYNCHRONIZED_ERROR = '1dafa156-89e1-4736-b832-419c2e501fca';\n public const NO_SUCH_FIELD_ERROR = '6e5212ed-a197-4339-99aa-5654798a4854';\n\n protected const ERROR_NAMES = [\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/Constraints/Form.php", "language": "php", "file_size": 1171, "cut_index": 518, "middle_length": 229}} {"prefix": "ent\\Validator\\Constraints\\Composite;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormValidator extends ConstraintValidator\n{\n /**\n * @var \\SplObjectStorage>\n */\n private \\SplObjectStorage $", "suffix": "xpectedTypeException($formConstraint, Form::class);\n }\n\n if (!$form instanceof FormInterface) {\n return;\n }\n\n /** @var FormInterface $form */\n $config = $form->getConfig();\n\n $validator = $this->context-", "middle": "resolvedGroups;\n\n /**\n * @psalm-suppress ParamNameMismatch\n */\n public function validate(mixed $form, Constraint $formConstraint): void\n {\n if (!$formConstraint instanceof Form) {\n throw new Une", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php", "language": "php", "file_size": 11262, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\n\n/**\n * Encapsulates common ", "suffix": "unction configureOptions(OptionsResolver $resolver): void\n {\n // Make sure that validation groups end up as null, closure or array\n $validationGroupsNormalizer = static function (Options $options, $groups) {\n if (false === $grou", "middle": "logic of {@link FormTypeValidatorExtension} and\n * {@link SubmitTypeValidatorExtension}.\n *\n * @author Bernhard Schussek \n */\nabstract class BaseValidatorExtension extends AbstractTypeExtension\n{\n public f", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/Type/BaseValidatorExtension.php", "language": "php", "file_size": 1556, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Validator\\EventListener\\ValidationListener;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapper;\nuse Symfony\\Component\\Form\\Extension\\Validator\\", "suffix": "ionsResolver;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormTypeValidat", "middle": "ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormRendererInterface;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\Opt", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/Type/FormTypeValidatorExtension.php", "language": "php", "file_size": 2985, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Bernhard Schussek \n */\ninterface FormTypeExtensionInterface\n{\n /**\n * Gets the extended types.\n *\n * @return string[]\n */\n public static function getE", "suffix": "odify it.\n *\n * @param array $options\n *\n * @see FormTypeInterface::buildForm()\n */\n public function buildForm(FormBuilderInterface $builder, array $options): void;\n\n /**\n * Builds the view.\n *\n * This m", "middle": "xtendedTypes(): iterable;\n\n public function configureOptions(OptionsResolver $resolver): void;\n\n /**\n * Builds the form.\n *\n * This method is called after the extended type has built the form to\n * further m", "meta": {"filepath": "src/Symfony/Component/Form/FormTypeExtensionInterface.php", "language": "php", "file_size": 1658, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * @author Bernhard Schussek \n */\ninterface FormTypeGuesserInterface\n{\n /**\n * Returns a field guess for a property name of a class.\n */\n public function guessType(string $class, string $property): ?G", "suffix": "ield's maximum length.\n */\n public function guessMaxLength(string $class, string $property): ?Guess\\ValueGuess;\n\n /**\n * Returns a guess about the field's pattern.\n */\n public function guessPattern(string $class, string $property): ?Gu", "middle": "uess\\TypeGuess;\n\n /**\n * Returns a guess whether a property of a class is required.\n */\n public function guessRequired(string $class, string $property): ?Guess\\ValueGuess;\n\n /**\n * Returns a guess about the f", "meta": {"filepath": "src/Symfony/Component/Form/FormTypeGuesserInterface.php", "language": "php", "file_size": 1015, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Bernhard Schussek \n */\ninterface FormTypeInterface\n{\n /**\n * Returns the name of the parent type.\n *\n * The parent type and its extensions will configure the form with the\n * foll", "suffix": "d;\n\n /**\n * Builds the form.\n *\n * This method is called for each type in the hierarchy starting from the\n * top most type. Type extensions can further modify the form.\n *\n * @param array $options\n *\n * @se", "middle": "owing methods before the current implementation.\n */\n public function getParent(): ?string;\n\n /**\n * Configures the options for this type.\n */\n public function configureOptions(OptionsResolver $resolver): voi", "meta": {"filepath": "src/Symfony/Component/Form/FormTypeInterface.php", "language": "php", "file_size": 2829, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * Entry point of the Form component.\n *\n * Use this class to conveniently create new form factories:\n *\n * use Symfony\\Component\\Form\\Forms;\n *\n * $formFactory = Forms::createFormFactory();\n *\n * $form = $formFactory->createBuilder()\n * ->add('firstName', 'Symfony\\", "suffix": "'color', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType', [\n * 'choices' => ['Red' => 'r', 'Blue' => 'b'],\n * ])\n * ->getForm();\n *\n * You can also add custom extensions to the form factory:\n *\n * $formFactory = Form", "middle": "Component\\Form\\Extension\\Core\\Type\\TextType')\n * ->add('lastName', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType')\n * ->add('age', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType')\n * ->add(", "meta": {"filepath": "src/Symfony/Component/Form/Forms.php", "language": "php", "file_size": 2792, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\Util\\FormUtil;\nuse Symfony\\Component\\Form\\Util\\ServerParams;\n\n/**\n * A request handler using PHP super globals $_GET, $_POST and $_SERVER.\n *\n * @author Bernhard Schussek \n */\nclass NativeRequestHandler implements RequestHandlerInterface\n{\n private ServerParams $serverParams;\n private MissingDataHandler $missingDataHandler;\n\n", "suffix": "_construct(?ServerParams $params = null)\n {\n $this->serverParams = $params ?? new ServerParams();\n $this->missingDataHandler = new MissingDataHandler();\n }\n\n /**\n * @throws UnexpectedTypeException If the $request is not null\n ", "middle": " /**\n * The allowed keys of the $_FILES array.\n */\n private const FILE_KEYS = [\n 'error',\n 'full_path',\n 'name',\n 'size',\n 'tmp_name',\n 'type',\n ];\n\n public function _", "meta": {"filepath": "src/Symfony/Component/Form/NativeRequestHandler.php", "language": "php", "file_size": 8140, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\Flow\\ButtonFlowBuilder;\nuse Symfony\\Component\\Form\\Flow\\ButtonFlowTypeInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowBuilder;\nuse Symfony\\Component\\Form\\Flow\\FormFlowTypeInterface;\nuse Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsR", "suffix": "[]\n */\n private array $typeExtensions;\n\n private OptionsResolver $optionsResolver;\n\n /**\n * @param FormTypeExtensionInterface[] $typeExtensions\n */\n public function __construct(\n private FormTypeInterface $innerType,\n ", "middle": "esolver;\n\n/**\n * A wrapper for a form type and its extensions.\n *\n * @author Bernhard Schussek \n */\nclass ResolvedFormType implements ResolvedFormTypeInterface\n{\n /**\n * @var FormTypeExtensionInterface", "meta": {"filepath": "src/Symfony/Component/Form/ResolvedFormType.php", "language": "php", "file_size": 5709, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * A wrapper for a form type and its extensions.\n *\n * @author Bernhard Schussek \n */\ninterface ResolvedFormTypeInterface\n{\n /**\n * Returns the prefix of the template block name for this type.\n */\n ", "suffix": "TypeInterface;\n\n /**\n * Returns the extensions of the wrapped form type.\n *\n * @return FormTypeExtensionInterface[]\n */\n public function getTypeExtensions(): array;\n\n /**\n * Creates a new form builder for this type.\n *\n ", "middle": " public function getBlockPrefix(): string;\n\n /**\n * Returns the parent type.\n */\n public function getParent(): ?self;\n\n /**\n * Returns the wrapped form type.\n */\n public function getInnerType(): Form", "meta": {"filepath": "src/Symfony/Component/Form/ResolvedFormTypeInterface.php", "language": "php", "file_size": 2158, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * A button that submits the form.\n *\n * @author Bernhard Schussek \n */\nclass SubmitButton extends Button implements ClickableInterface\n{\n private bool $clicked = false;\n\n public function isClicked(): bool\n {", "suffix": "ction submit(array|string|null $submittedData, bool $clearMissing = true): static\n {\n if ($this->getConfig()->getDisabled()) {\n $this->clicked = false;\n\n return $this;\n }\n\n parent::submit($submittedData, $clear", "middle": "\n return $this->clicked;\n }\n\n /**\n * Submits data to the button.\n *\n * @return $this\n *\n * @throws Exception\\AlreadySubmittedException if the form has already been submitted\n */\n public fun", "meta": {"filepath": "src/Symfony/Component/Form/SubmitButton.php", "language": "php", "file_size": 1092, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Flow\\Type\\FormFlowType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\n\n/**\n * @author Yonel Ceruto \n */\nabstract clas", "suffix": "{\n throw new \\InvalidArgumentException(\\sprintf('The \"%s\" can only be used with FormFlowType.', self::class));\n }\n\n $this->buildFormFlow($builder, $options);\n }\n\n final public function buildView(FormView $view, FormInterface ", "middle": "s AbstractFlowType extends AbstractType implements FormFlowTypeInterface\n{\n final public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n if (!$builder instanceof FormFlowBuilderInterface) ", "meta": {"filepath": "src/Symfony/Component/Form/Flow/AbstractFlowType.php", "language": "php", "file_size": 2087, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\ClickableInterface;\nuse Symfony\\Component\\Form\\Exception\\AlreadySubmittedException;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\RuntimeException;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Form\\FormInterface;\n\n/**\n * FormFlow represents a multistep form.\n *\n * @author Yonel ", "suffix": "nished = false;\n\n public function __construct(\n private readonly FormFlowConfigInterface $config,\n private FormFlowCursor $cursor,\n ) {\n parent::__construct($config);\n }\n\n public function submit(mixed $submittedData, bool $", "middle": "Ceruto \n *\n * @implements \\IteratorAggregate\n */\nclass FormFlow extends Form implements FormFlowInterface\n{\n private ?ButtonFlowInterface $clickedFlowButton = null;\n private bool $fi", "meta": {"filepath": "src/Symfony/Component/Form/Flow/FormFlow.php", "language": "php", "file_size": 7280, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\DataStorageInterface;\nuse Symfony\\Component\\Form\\Flow\\StepAccessor\\StepAccessorInterface;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n\n/**\n * @author Yonel Ceruto \n *\n * @extends \\Traversable\n */\ninterface FormFlowBuilderInterface extends FormBuilderInterface, FormFlowConfigInterface\n{\n /**\n * Creates a new step builder.\n */\n public function cr", "meta": {"filepath": "src/Symfony/Component/Form/Flow/FormFlowBuilderInterface.php", "language": "php", "file_size": 2129, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\n\n/**\n * @author Yonel Ceruto \n */\nclass FormFlowCursor\n{\n /**\n * @param array $steps\n */\n public function __construct(\n private readonly array $steps,\n private readonly", "suffix": "eps)));\n }\n }\n\n public function getSteps(): array\n {\n return $this->steps;\n }\n\n public function getTotalSteps(): int\n {\n return \\count($this->steps);\n }\n\n public function getStepIndex(): int\n {\n return", "middle": " string $currentStep,\n ) {\n if (!\\in_array($currentStep, $steps, true)) {\n throw new InvalidArgumentException(\\sprintf('Step \"%s\" does not exist. Available steps are: \"%s\".', $currentStep, implode('\", \"', $st", "meta": {"filepath": "src/Symfony/Component/Form/Flow/FormFlowCursor.php", "language": "php", "file_size": 2417, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\FormTypeInterface;\nuse Symfony\\Component\\Form\\FormView;\n\n/**\n * A type that should be converted into a {@link FormFlow} instance.\n *\n * @author Yonel Ceruto \n */\ninterface FormFlowTypeInterface extends FormTypeInterface\n{\n /**\n * Bui", "suffix": "ldFormFlow(FormFlowBuilderInterface $builder, array $options): void;\n\n /**\n * Builds the multistep form view.\n *\n * This method is called for each multistep type. Type extensions can further\n * modify the view.\n *\n * A view of a ", "middle": "lds the multistep form.\n *\n * This method is called for each multistep type. Type extensions can further\n * modify the multistep form.\n *\n * @param array $options\n */\n public function bui", "meta": {"filepath": "src/Symfony/Component/Form/Flow/FormFlowTypeInterface.php", "language": "php", "file_size": 2086, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\n/**\n * @author Yonel Ceruto \n */\ninterface StepFlowBuilderConfigInterface extends StepFlowConfigInterface\n{\n /**\n * Returns the form type class name for the step.\n */\n public function getType(): string;\n\n ", "suffix": "rity of the step.\n */\n public function setPriority(int $priority): static;\n\n /**\n * Sets the closure that determines if the step should be skipped.\n */\n public function setSkip(?\\Closure $skip): static;\n\n /**\n * Returns a StepFl", "middle": " /**\n * Returns the form options for the step.\n */\n public function getOptions(): array;\n\n /**\n * Returns the priority of the step.\n */\n public function getPriority(): int;\n\n /**\n * Sets the prio", "meta": {"filepath": "src/Symfony/Component/Form/Flow/StepFlowBuilderConfigInterface.php", "language": "php", "file_size": 1113, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType;\nuse Symfony\\Component\\Form\\Flow\\ButtonFlowTypeInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowCursor;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\Option", "suffix": "ic function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->define('handler')\n ->info('The callable that will be called when this button is clicked')\n ->required()\n ->allowedTypes('callable');\n\n ", "middle": "sResolver\\OptionsResolver;\n\n/**\n * A submit button with a callable handler for a form flow.\n *\n * @author Yonel Ceruto \n */\nclass ButtonFlowType extends AbstractType implements ButtonFlowTypeInterface\n{\n publ", "meta": {"filepath": "src/Symfony/Component/Form/Flow/Type/ButtonFlowType.php", "language": "php", "file_size": 2092, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * Adapter for rendering form templates with a specific templating engine.\n *\n * @author Bernhard Schussek \n */\ninterface FormRendererEngineInterface\n{\n /**\n * Sets the theme(s) to be used for rendering a view and its children.\n *\n * @param FormView $view The view to assign the theme(s) to\n * @param mixed $themes The theme(s). The type of these themes\n * is open t", "suffix": "n the themes attached to $view, then\n * in the themes of its parent view and so on, until a resource was found.\n *\n * The type of the resource is decided by the implementation. The resource\n * is later passed to {@link renderBlock()} by the", "middle": "o the implementation.\n */\n public function setTheme(FormView $view, mixed $themes, bool $useDefaultThemes = true): void;\n\n /**\n * Returns the resource for a block name.\n *\n * The resource is first searched i", "meta": {"filepath": "src/Symfony/Component/Form/FormRendererEngineInterface.php", "language": "php", "file_size": 6214, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\Guess\\Guess;\nuse Symfony\\Component\\Form\\Guess\\TypeGuess;\nuse Symfony\\Component\\Form\\Guess\\ValueGuess;\n\nclass FormTypeGuesserChain implements FormTypeGuesserInterface\n{\n private array $guessers = [];", "suffix": " {\n $tmpGuessers = [];\n foreach ($guessers as $guesser) {\n if (!$guesser instanceof FormTypeGuesserInterface) {\n throw new UnexpectedTypeException($guesser, FormTypeGuesserInterface::class);\n }\n\n ", "middle": "\n\n /**\n * @param FormTypeGuesserInterface[] $guessers\n *\n * @throws UnexpectedTypeException if any guesser does not implement FormTypeGuesserInterface\n */\n public function __construct(iterable $guessers)\n ", "meta": {"filepath": "src/Symfony/Component/Form/FormTypeGuesserChain.php", "language": "php", "file_size": 2675, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * @internal\n */\nclass MissingDataHandler\n{\n public readonly \\stdClass $missingData;\n\n public function __construct()\n {\n $this->missingData = new \\stdClass();\n }\n\n /**\n * Folds default values (typically from `false_values`) into $data for children the payload ", "suffix": "data): mixed\n {\n $processedData = $this->handleMissingData($form, $data);\n\n return $processedData === $this->missingData ? $data : $processedData;\n }\n\n /**\n * Returns `$this->missingData` to signal \"nothing to synthesise for this", "middle": "omits.\n *\n * Callers may pass `$this->missingData` as the sentinel for \"no data submitted\". Returns $data\n * unchanged when no child synthesises a value.\n */\n public function handle(FormInterface $form, mixed $", "meta": {"filepath": "src/Symfony/Component/Form/MissingDataHandler.php", "language": "php", "file_size": 2389, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * Creates ResolvedFormTypeInterface instances.\n *\n * This interface allows you to use your custom ResolvedFormTypeInterface\n * implementation, within which you can customize the concrete FormBuilderInterface\n * implementations or FormView s", "suffix": "[] $typeExtensions\n *\n * @throws Exception\\UnexpectedTypeException if the types parent {@link FormTypeInterface::getParent()} is not a string\n * @throws Exception\\InvalidArgumentException if the types parent cannot be retrieved from any extens", "middle": "ubclasses that are used by the framework.\n *\n * @author Bernhard Schussek \n */\ninterface ResolvedFormTypeFactoryInterface\n{\n /**\n * Resolves a form type.\n *\n * @param FormTypeExtensionInterface", "meta": {"filepath": "src/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php", "language": "php", "file_size": 1175, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\SubmitButton;\n\n/**\n * A button that submits the form and handles an action.\n *\n * @author Yonel Ceruto \n */\nclass ButtonFlow extends SubmitButton implements ButtonFlowInterface\n{\n private mixed $", "suffix": " submit\n }\n\n parent::submit($submittedData, $clearMissing);\n\n if ($this->isSubmitted()) {\n $this->data = $submittedData;\n }\n\n return $this;\n }\n\n public function getViewData(): mixed\n {\n return $", "middle": "data = null;\n private bool $handled = false;\n\n public function submit(array|string|null $submittedData, bool $clearMissing = true): static\n {\n if ($this->isSubmitted()) {\n return $this; // ignore double", "meta": {"filepath": "src/Symfony/Component/Form/Flow/ButtonFlow.php", "language": "php", "file_size": 2190, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\DataStorageInterface;\nuse Symfony\\Component\\Form\\Flow\\StepAccessor\\StepAccessorInterface;\nuse Symfony\\Component\\Form\\FormConfigInterface;\n\n/**\n * The configuration of a {@link FormFlow} object.\n *\n * @author Yonel C", "suffix": "urns the step with the given name.\n */\n public function getStep(string $name): StepFlowConfigInterface;\n\n /**\n * Returns all steps.\n *\n * @return array\n */\n public function getSteps(): array;\n\n ", "middle": "eruto \n */\ninterface FormFlowConfigInterface extends FormConfigInterface\n{\n /**\n * Checks if a step with the given name exists.\n */\n public function hasStep(string $name): bool;\n\n /**\n * Ret", "meta": {"filepath": "src/Symfony/Component/Form/Flow/FormFlowConfigInterface.php", "language": "php", "file_size": 1688, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\ClickableInterface;\nuse Symfony\\Component\\Form\\Exception\\RuntimeException;\nuse Symfony\\Component\\Form\\FormInterface;\n\n/**\n * @author Yonel Ceruto \n */\ninterface FormFlowInterface extends FormInterface\n{\n /**\n ", "suffix": "rsor to the initial step.\n */\n public function reset(): void;\n\n /**\n * Moves back to a previous step in the flow.\n *\n * @param string|null $step The step to move back to, or null to move back one step\n *\n * @throws RuntimeExce", "middle": " * Returns the button used to submit the form.\n */\n public function getClickedButton(): ButtonFlowInterface|FormInterface|ClickableInterface|null;\n\n /**\n * Resets the flow by clearing stored data and setting the cu", "meta": {"filepath": "src/Symfony/Component/Form/Flow/FormFlowInterface.php", "language": "php", "file_size": 2019, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\Type;\n\nuse Symfony\\Component\\Form\\Flow\\AbstractButtonFlowType;\nuse Symfony\\Component\\Form\\Flow\\ButtonFlowInterface;\nuse Symfony\\Component\\Form\\Flow\\FormFlowCursor;\nuse Symfony\\Component\\Form\\Flow\\FormFlowInterface;\nuse Symfony\\Component\\Form\\", "suffix": "$builder->setAttribute('action', 'finish');\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'handler' => static fn (mixed $data, ButtonFlowInterface $button, FormFlowInterface ", "middle": "FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass FinishFlowType extends AbstractButtonFlowType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Flow/Type/FinishFlowType.php", "language": "php", "file_size": 1144, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * Renders a form into HTML.\n *\n * @author Bernhard Schussek \n */\ninterface FormRendererInterface\n{\n /**\n * Returns the engine used by this renderer.\n */\n public function getEngine(): FormRendererEngineInterface;\n\n /**\n * Sets the theme(s) to be used for rendering a view and its children.\n ", "suffix": "\n * @param bool $useDefaultThemes If true, will use default themes specified\n * in the renderer\n */\n public function setTheme(FormView $view, mixed $themes, bool $useDefaultThemes = true): void;\n\n /**", "middle": "*\n * @param FormView $view The view to assign the theme(s) to\n * @param mixed $themes The theme(s). The type of these themes\n * is open to the implementation.", "meta": {"filepath": "src/Symfony/Component/Form/FormRendererInterface.php", "language": "php", "file_size": 3050, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\n\n/**\n * A form extension with preloaded types, type extensions and type guessers.\n *\n * @author Bernhard Schussek \n */\nclass PreloadedExtension implements FormExtensionInterface\n{\n", "suffix": "rface[][] $typeExtensions The type extensions that the extension should support\n */\n public function __construct(\n array $types,\n private array $typeExtensions,\n private ?FormTypeGuesserInterface $typeGuesser = null,\n ) {\n ", "middle": " private array $types = [];\n\n /**\n * Creates a new preloaded extension.\n *\n * @param FormTypeInterface[] $types The types that the extension should support\n * @param FormTypeExtensionInte", "meta": {"filepath": "src/Symfony/Component/Form/PreloadedExtension.php", "language": "php", "file_size": 1878, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\ClickableInterface;\nuse Symfony\\Component\\Form\\FormInterface;\n\n/**\n * @author Yonel Ceruto \n */\ninterface ButtonFlowInterface extends FormInterface, ClickableInterface\n{\n /**\n * Executes the cal", "suffix": ".\n */\n public function isResetAction(): bool;\n\n /**\n * Checks if the button's action is 'previous'.\n */\n public function isPreviousAction(): bool;\n\n /**\n * Checks if the button's action is 'next'.\n */\n public function isN", "middle": "lable handler.\n */\n public function handle(): void;\n\n /**\n * Checks if the callable handler was already called.\n */\n public function isHandled(): bool;\n\n /**\n * Checks if the button's action is 'reset'", "meta": {"filepath": "src/Symfony/Component/Form/Flow/ButtonFlowInterface.php", "language": "php", "file_size": 1273, "cut_index": 524, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow\\StepAccessor;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathInterface;\n\n/**\n * @author Yonel Ceruto \n */\nclass PropertyPathStepAccessor implements Step", "suffix": "bject|array $data, ?string $default = null): ?string\n {\n return $this->propertyAccessor->getValue($data, $this->propertyPath) ?: $default;\n }\n\n public function setStep(object|array &$data, string $step): void\n {\n $this->propertyAc", "middle": "AccessorInterface\n{\n public function __construct(\n private readonly PropertyAccessorInterface $propertyAccessor,\n private readonly PropertyPathInterface $propertyPath,\n ) {\n }\n\n public function getStep(o", "meta": {"filepath": "src/Symfony/Component/Form/Flow/StepAccessor/PropertyPathStepAccessor.php", "language": "php", "file_size": 1059, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\n\n/**\n * @author Bernhard Schussek \n *\n * @implements \\ArrayAccess\n * @implements \\IteratorAggregate\n */\nclass FormView implements \\ArrayAccess, \\IteratorAggregate, \\Countable\n{\n /**\n * The variables assigned ", "suffix": "/**\n * Is the form attached to this renderer rendered?\n *\n * Rendering happens when either the widget or the row method was called.\n * Row implicitly includes widget, however certain rendering mechanisms\n * have to skip widget rendering", "middle": "to this view.\n */\n public array $vars = [\n 'value' => null,\n 'attr' => [],\n ];\n\n /**\n * The child views.\n *\n * @var array\n */\n public array $children = [];\n\n ", "meta": {"filepath": "src/Symfony/Component/Form/FormView.php", "language": "php", "file_size": 3513, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form;\n\n/**\n * Reverses a transformer.\n *\n * When the transform() method is called, the reversed transformer's\n * reverseTransform() method is called and vice versa.\n *\n * @author Bernhard Schussek \n */\nclass ReversedTransformer implements DataTransformerInterface\n{\n public function __construct(\n protected Da", "suffix": "\n }\n\n public function transform(mixed $value): mixed\n {\n return $this->reversedTransformer->reverseTransform($value);\n }\n\n public function reverseTransform(mixed $value): mixed\n {\n return $this->reversedTransformer->transfor", "middle": "taTransformerInterface $reversedTransformer,\n ) {", "meta": {"filepath": "src/Symfony/Component/Form/ReversedTransformer.php", "language": "php", "file_size": 933, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Flow;\n\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Form\\FormTypeInterface;\n\n/**\n * @author Yonel Ceruto \n */\nclass StepFlowBuilder implements StepFlowBuilderConfigInterface\n{\n private bool $locked = false;\n private int $priority ", "suffix": "private readonly array $options = [],\n ) {\n }\n\n public function getName(): string\n {\n return $this->name;\n }\n\n public function getType(): string\n {\n if ($this->locked) {\n throw new BadMethodCallException('StepF", "middle": "= 0;\n private ?\\Closure $skip = null;\n\n /**\n * @param class-string $type\n */\n public function __construct(\n private readonly string $name,\n private readonly string $type,\n ", "meta": {"filepath": "src/Symfony/Component/Form/Flow/StepFlowBuilder.php", "language": "php", "file_size": 2940, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Contr", "suffix": "tion __construct(\n private TranslatorInterface $translator,\n private ?string $translationDomain = null,\n ) {\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $translator = $this->translator;\n ", "middle": "acts\\Translation\\TranslatorInterface;\n\n/**\n * @author Abdellatif Ait boudad \n * @author David Badura \n */\nclass UploadValidatorExtension extends AbstractTypeExtension\n{\n public func", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/Type/UploadValidatorExtension.php", "language": "php", "file_size": 1344, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\NumberToLocalizedStringTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\StringToFloatTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n", "suffix": "lic function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->addViewTransformer(new NumberToLocalizedStringTransformer(\n $options['scale'],\n $options['grouping'],\n $options['rounding_m", "middle": "use Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass NumberType extends AbstractType\n{\n pub", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/NumberType.php", "language": "php", "file_size": 3174, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass PasswordType extends AbstractType\n{\n pub", "suffix": "configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'always_empty' => true,\n 'trim' => false,\n 'invalid_message' => 'The password is invalid.',\n ]);\n }\n\n public function ge", "middle": "lic function buildView(FormView $view, FormInterface $form, array $options): void\n {\n if ($options['always_empty'] || !$form->isSubmitted()) {\n $view->vars['value'] = '';\n }\n }\n\n public function ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/PasswordType.php", "language": "php", "file_size": 1153, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\PercentToLocalizedStringTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Sy", "suffix": "oLocalizedStringTransformer(\n $options['scale'],\n $options['type'],\n $options['rounding_mode'],\n $options['html5']\n ));\n }\n\n public function buildView(FormView $view, FormInterface $form, array $opti", "middle": "mfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass PercentType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->addViewTransformer(new PercentT", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/PercentType.php", "language": "php", "file_size": 2363, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass RadioType extends AbstractType\n{\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->", "suffix": " 'invalid_message' => 'Please select a valid option.',\n ]);\n }\n\n public function getParent(): ?string\n {\n return CheckboxType::class;\n }\n\n public function getBlockPrefix(): string\n {\n return 'radio';\n }\n", "middle": "setDefaults([\n", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/RadioType.php", "language": "php", "file_size": 796, "cut_index": 524, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass RangeType extends AbstractType\n{\n public function configureOptions(OptionsResolver $resolver): void\n {\n $", "suffix": "efaults([\n 'invalid_message' => 'Please choose a valid range.',\n ]);\n }\n\n public function getParent(): ?string\n {\n return TextType::class;\n }\n\n public function getBlockPrefix(): string\n {\n return 'range';\n ", "middle": "resolver->setD", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/RangeType.php", "language": "php", "file_size": 791, "cut_index": 514, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\ValueToDuplicatesTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass RepeatedType extends AbstractT", "suffix": "ptions['second_options']['required'] = $options['required'];\n\n if (!isset($options['options']['error_bubbling'])) {\n $options['options']['error_bubbling'] = $options['error_bubbling'];\n }\n\n // children fields must always be ", "middle": "ype\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n // Overwrite required option for child fields\n $options['first_options']['required'] = $options['required'];\n $o", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/RepeatedType.php", "language": "php", "file_size": 2290, "cut_index": 563, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass SearchType extends AbstractType\n{\n public function configureOptions(OptionsResolver $resolver): void\n {\n $re", "suffix": "aults([\n 'invalid_message' => 'Please enter a valid search term.',\n ]);\n }\n\n public function getParent(): ?string\n {\n return TextType::class;\n }\n\n public function getBlockPrefix(): string\n {\n return 'search", "middle": "solver->setDef", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/SearchType.php", "language": "php", "file_size": 798, "cut_index": 517, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\SubmitButtonTypeInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/", "suffix": "y $options): void\n {\n $view->vars['clicked'] = $form->isClicked();\n\n if (!$options['validate']) {\n $view->vars['attr']['formnovalidate'] = true;\n }\n }\n\n public function configureOptions(OptionsResolver $resolver): v", "middle": "**\n * A submit button.\n *\n * @author Bernhard Schussek \n */\nclass SubmitType extends AbstractType implements SubmitButtonTypeInterface\n{\n public function buildView(FormView $view, FormInterface $form, arra", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/SubmitType.php", "language": "php", "file_size": 1303, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass TelType extends AbstractType\n{\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->se", "suffix": " 'invalid_message' => 'Please provide a valid phone number.',\n ]);\n }\n\n public function getParent(): ?string\n {\n return TextType::class;\n }\n\n public function getBlockPrefix(): string\n {\n return 'tel';\n }\n}", "middle": "tDefaults([\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/TelType.php", "language": "php", "file_size": 795, "cut_index": 524, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass TextType extends AbstractType implement", "suffix": "when NULL is submitted\n // This gives more control and thus helps preventing some issues\n // with PHP 7 which allows type hinting strings in functions\n // See https://github.com/symfony/symfony/issues/5906#issuecomment-203189375\n ", "middle": "s DataTransformerInterface\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n // When empty_data is explicitly set to an empty string,\n // a string should always be returned ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/TextType.php", "language": "php", "file_size": 1601, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\", "suffix": "his);\n }\n\n public function buildView(FormView $view, FormInterface $form, array $options): void\n {\n $view->vars['pattern'] = null;\n unset($view->vars['attr']['pattern']);\n }\n\n public function getParent(): ?string\n {\n ", "middle": "Form\\Util\\StringUtil;\n\nclass TextareaType extends AbstractType implements DataTransformerInterface\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->addViewTransformer($t", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/TextareaType.php", "language": "php", "file_size": 1554, "cut_index": 537, "middle_length": 229}} {"prefix": "\\InvalidConfigurationException;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DatePointToDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeImmutableToDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToArrayTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToStringTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTime", "suffix": "use Symfony\\Component\\Form\\ReversedTransformer;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass TimeType extends AbstractType\n{\n private const WIDGETS = [\n 'text' => TextType::class,\n ", "middle": "ToTimestampTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\n", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/TimeType.php", "language": "php", "file_size": 17105, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\IntlCallbackChoiceLoader;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeZoneToStringTransformer;\nuse Symfony\\Com", "suffix": "lver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass TimezoneType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n if ('datetimezone' === $options['input']) {\n ", "middle": "ponent\\Form\\Extension\\Core\\DataTransformer\\IntlTimeZoneToStringTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Intl\\Intl;\nuse Symfony\\Component\\Intl\\Timezones;\nuse Symfony\\Component\\OptionsReso", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/TimezoneType.php", "language": "php", "file_size": 4674, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\EventListener\\TransformationFailureListener;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Contracts\\Translation\\Trans", "suffix": "e $translator = null,\n ) {\n }\n\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n if (!isset($options['constraints'])) {\n $builder->addEventSubscriber(new TransformationFailureListener($this->t", "middle": "latorInterface;\n\n/**\n * @author Christian Flothmann \n */\nclass TransformationFailureExtension extends AbstractTypeExtension\n{\n public function __construct(\n private ?TranslatorInterfac", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/TransformationFailureExtension.php", "language": "php", "file_size": 1137, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\UlidToStringTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsR", "suffix": "ansformer(new UlidToStringTransformer())\n ;\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'compound' => false,\n 'invalid_message' => 'Please enter a valid U", "middle": "esolver;\n\n/**\n * @author Pavel Dyakonov \n */\nclass UlidType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder\n ->addViewTr", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/UlidType.php", "language": "php", "file_size": 1024, "cut_index": 512, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\EventListener\\FixUrlProtocolListener;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormV", "suffix": "tocol']) {\n $builder->addEventSubscriber(new FixUrlProtocolListener($options['default_protocol']));\n }\n }\n\n public function buildView(FormView $view, FormInterface $form, array $options): void\n {\n if ($options['default_pro", "middle": "iew;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass UrlType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n if (null !== $options['default_pro", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/UrlType.php", "language": "php", "file_size": 1620, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\UuidToStringTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsR", "suffix": "ansformer(new UuidToStringTransformer())\n ;\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'compound' => false,\n 'invalid_message' => 'Please enter a valid U", "middle": "esolver;\n\n/**\n * @author Pavel Dyakonov \n */\nclass UuidType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder\n ->addViewTr", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/UuidType.php", "language": "php", "file_size": 1024, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\IntlCallbackChoiceLoader;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Intl\\Currencies;\nuse Symfony\\Component\\Intl\\Intl;\nuse Symfony\\Component\\OptionsResol", "suffix": "esolver $resolver): void\n {\n $resolver->setDefaults([\n 'choice_loader' => function (Options $options) {\n if (!class_exists(Intl::class)) {\n throw new LogicException(\\sprintf('The \"symfony/intl\" compone", "middle": "ver\\Exception\\InvalidOptionsException;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass CurrencyType extends AbstractType\n{\n public function configureOptions(OptionsR", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/CurrencyType.php", "language": "php", "file_size": 4429, "cut_index": 614, "middle_length": 229}} {"prefix": "orm\\Extension\\Core\\DataTransformer\\DateTimeToStringTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToTimestampTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\ReversedTransformer;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException;\nuse Symfony\\Component\\OptionsRes", "suffix": " const ACCEPTED_FORMATS = [\n \\IntlDateFormatter::FULL,\n \\IntlDateFormatter::LONG,\n \\IntlDateFormatter::MEDIUM,\n \\IntlDateFormatter::SHORT,\n ];\n\n private const WIDGETS = [\n 'text' => TextType::class,\n 'choice'", "middle": "olver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass DateType extends AbstractType\n{\n public const DEFAULT_FORMAT = \\IntlDateFormatter::MEDIUM;\n public const HTML5_FORMAT = 'yyyy-MM-dd';\n\n private", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/DateType.php", "language": "php", "file_size": 17952, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\n\n/**\n * A choice type for native PHP enums.\n *\n * @author Alexander M.", "suffix": "pes('class', 'string')\n ->setAllowedValues('class', enum_exists(...))\n ->setDefault('choices', static fn (Options $options): array => $options['class']::cases())\n ->setDefault('choice_label', static function (Options $optio", "middle": " Turek \n */\nfinal class EnumType extends AbstractType\n{\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver\n ->setRequired(['class'])\n ->setAllowedTy", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/EnumType.php", "language": "php", "file_size": 2119, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Event\\PreSubmitEvent;\nuse Symfony\\Component\\Form\\FileUploadError;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\HttpFoundation\\File\\File;\nuse Symfony\\Component\\OptionsResolve", "suffix": "76;\n\n private const SUFFIXES = [\n 1 => 'bytes',\n self::KIB_BYTES => 'KiB',\n self::MIB_BYTES => 'MiB',\n ];\n\n public function __construct(\n private ?TranslatorInterface $translator = null,\n ) {\n }\n\n public functi", "middle": "r\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass FileType extends AbstractType\n{\n public const KIB_BYTES = 1024;\n public const MIB_BYTES = 10485", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/FileType.php", "language": "php", "file_size": 7971, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\IntegerToLocalizedStringTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Compo", "suffix": "ewTransformer(new IntegerToLocalizedStringTransformer($options['grouping'], $options['rounding_mode'], !$options['grouping'] ? 'en' : null));\n }\n\n public function buildView(FormView $view, FormInterface $form, array $options): void\n {\n if (", "middle": "nent\\Form\\FormView;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass IntegerType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->addVi", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/IntegerType.php", "language": "php", "file_size": 1967, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\IntlCallbackChoiceLoader;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Intl\\In", "suffix": "solver $resolver): void\n {\n $resolver->setDefaults([\n 'choice_loader' => function (Options $options) {\n if (!class_exists(Intl::class)) {\n throw new LogicException(\\sprintf('The \"symfony/intl\" componen", "middle": "tl;\nuse Symfony\\Component\\Intl\\Locales;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass LocaleType extends AbstractType\n{\n public function configureOptions(OptionsRe", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/LocaleType.php", "language": "php", "file_size": 1851, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\RepeatedType;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/", "suffix": "he first field\n $errorMapping = static fn (Options $options) => ['.' => $options['first_name']];\n\n $resolver->setDefaults([\n 'error_mapping' => $errorMapping,\n ]);\n }\n\n public static function getExtendedTypes(): iterab", "middle": "**\n * @author Bernhard Schussek \n */\nclass RepeatedTypeValidatorExtension extends AbstractTypeExtension\n{\n public function configureOptions(OptionsResolver $resolver): void\n {\n // Map errors to t", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/Type/RepeatedTypeValidatorExtension.php", "language": "php", "file_size": 1053, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\IntlCallbackChoiceLoader;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Intl\\Countries;\nuse Symfony\\Compo", "suffix": "\n {\n $resolver->setDefaults([\n 'choice_loader' => function (Options $options) {\n if (!class_exists(Intl::class)) {\n throw new LogicException(\\sprintf('The \"symfony/intl\" component is required to use \"%", "middle": "nent\\Intl\\Intl;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass CountryType extends AbstractType\n{\n public function configureOptions(OptionsResolver $resolver): void", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/CountryType.php", "language": "php", "file_size": 2064, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a Boolean and a string", "suffix": "formerInterface\n{\n /**\n * @param string $trueValue The value emitted upon transform if the input is true\n */\n public function __construct(\n private string $trueValue,\n private array $falseValues = [null],\n ) {\n if (\\in", "middle": ".\n *\n * @author Bernhard Schussek \n * @author Florian Eckerstorfer \n *\n * @implements DataTransformerInterface\n */\nclass BooleanToStringTransformer implements DataTrans", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php", "language": "php", "file_size": 1816, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * @author Bernhard Schussek choiceList->getValuesForChoices([$choice]));\n }\n\n public function reverseTransform(mixed $value): mixed\n {\n if (null !== $value && !\\is_strin", "middle": "m>\n *\n * @implements DataTransformerInterface\n */\nclass ChoiceToValueTransformer implements DataTransformerInterface\n{\n public function __construct(\n private ChoiceListInterface $choiceList,\n ) {\n }", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php", "language": "php", "file_size": 1518, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * @author Bernhard Schussek \n *\n * @implements DataTransformerInterface\n */\nclass ChoicesToValuesTransformer implements DataTransformerInterface\n{\n public function __construct(\n private ChoiceListInterface $choiceList,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToValuesTransformer.php", "language": "php", "file_size": 1607, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\n\n/**\n * Passes a value through multiple value transformers.\n *\n * @author Bernhard Schussek \n */\nclass DataTransformerChain implements DataTransfo", "suffix": " ) {\n }\n\n public function transform(mixed $value): mixed\n {\n foreach ($this->transformers as $transformer) {\n $value = $transformer->transform($value);\n }\n\n return $value;\n }\n\n public function reverseTransfo", "middle": "rmerInterface\n{\n /**\n * Uses the given value transformers to transform values.\n *\n * @param DataTransformerInterface[] $transformers\n */\n public function __construct(\n protected array $transformers,\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DataTransformerChain.php", "language": "php", "file_size": 1373, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\n\n/**\n * Transforms between a normalized date interval and an interval string/array.\n *\n * @author Steffen Roßkamp \n *\n * @implements DataTransformerInterface<\\DateInterval, array>\n */\nclass DateI", "suffix": "inutes';\n public const SECONDS = 'seconds';\n public const INVERT = 'invert';\n\n private const AVAILABLE_FIELDS = [\n self::YEARS => 'y',\n self::MONTHS => 'm',\n self::DAYS => 'd',\n self::HOURS => 'h',\n self::MINUTES", "middle": "ntervalToArrayTransformer implements DataTransformerInterface\n{\n public const YEARS = 'years';\n public const MONTHS = 'months';\n public const DAYS = 'days';\n public const HOURS = 'hours';\n public const MINUTES = 'm", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateIntervalToArrayTransformer.php", "language": "php", "file_size": 5598, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\n\n/**\n * Transforms between a date string and a DateInterval object.\n *\n * @a", "suffix": "a \\DateInterval instance to a string.\n *\n * @see \\DateInterval::format() for supported formats\n *\n * @param string $format The date format\n */\n public function __construct(\n private string $format = 'P%yY%mM%dDT%hH%iM%sS',\n ", "middle": "uthor Steffen Roßkamp \n *\n * @implements DataTransformerInterface<\\DateInterval, string>\n */\nclass DateIntervalToStringTransformer implements DataTransformerInterface\n{\n /**\n * Transforms ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateIntervalToStringTransformer.php", "language": "php", "file_size": 2647, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Clock\\DatePoint;\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a DatePoint object and a DateTime", "suffix": "if (null === $value) {\n return null;\n }\n\n if (!$value instanceof DatePoint) {\n throw new TransformationFailedException(\\sprintf('Expected a \"%s\".', DatePoint::class));\n }\n\n return \\DateTime::createFromImmut", "middle": " object.\n *\n * @implements DataTransformerInterface\n */\nfinal class DatePointToDateTimeTransformer implements DataTransformerInterface\n{\n public function transform(mixed $value): ?\\DateTime\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DatePointToDateTimeTransformer.php", "language": "php", "file_size": 1360, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper;\n\nuse Symfony\\Component\\Form\\Exception\\ErrorMappingException;\nuse Symfony\\Component\\Form\\FormInterface;\n\n/**\n * @author Bernhard Schussek \n */\nclass MappingRule\n{\n public function __construct(\n private FormInterface $origin,\n", "suffix": " rule path.\n *\n * If the rule matches, the form mapped by the rule is returned.\n * Otherwise this method returns false.\n */\n public function match(string $propertyPath): ?FormInterface\n {\n return $propertyPath === $this->proper", "middle": " private string $propertyPath,\n private string $targetPath,\n ) {\n }\n\n public function getOrigin(): FormInterface\n {\n return $this->origin;\n }\n\n /**\n * Matches a property path against the", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.php", "language": "php", "file_size": 2078, "cut_index": 563, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper;\n\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\n\n/**\n * @author Bernhard Schussek \n */\ninterface ViolationMapperInterface\n{\n /**\n * Maps", "suffix": "nder\n * the given form.\n *\n * @param bool $allowNonSynchronized Whether to allow mapping to non-synchronized forms\n */\n public function mapViolation(ConstraintViolation $violation, FormInterface $form, bool $allowNonSynchronized = false)", "middle": " a constraint violation to a form in the form tree u", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapperInterface.php", "language": "php", "file_size": 838, "cut_index": 520, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core;\n\nuse Symfony\\Component\\Form\\AbstractExtension;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\CachingFactoryDecorator;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\ChoiceListFactoryInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\DefaultChoiceListFactory;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\PropertyAccessDec", "suffix": "erface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * Represents the main form extension, which loads the core functionality.\n *\n * @author Bernhard Schussek \n */\nclass CoreExtension extends AbstractExtension\n{\n pri", "middle": "orator;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TransformationFailureExtension;\nuse Symfony\\Component\\Form\\Flow;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInt", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/CoreExtension.php", "language": "php", "file_size": 3570, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataAccessor;\n\nuse Symfony\\Component\\Form\\DataAccessorInterface;\nuse Symfony\\Component\\Form\\Exception\\AccessException;\nuse Symfony\\Component\\Form\\FormInterface;\n\n/**\n * Writes and reads values to/from an object or array using callback functions.\n *\n *", "suffix": "getConfig()->getOption('getter')) {\n throw new AccessException('Unable to read from the given form data as no getter is defined.');\n }\n\n return ($getter)($data, $form);\n }\n\n public function setValue(object|array &$data, mixed", "middle": " @author Yonel Ceruto \n */\nclass CallbackAccessor implements DataAccessorInterface\n{\n public function getValue(object|array $data, FormInterface $form): mixed\n {\n if (null === $getter = $form->", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataAccessor/CallbackAccessor.php", "language": "php", "file_size": 1619, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractRendererEngine;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * Encapsulates common logic of {@link FormType} and {@link ButtonType}.\n *\n * This type d", "suffix": "ss BaseType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->setDisabled($options['disabled']);\n $builder->setAutoInitialize($options['auto_initialize']);\n }\n\n pu", "middle": "oes not appear in the form's type inheritance chain and as such\n * cannot be extended (via {@link \\Symfony\\Component\\Form\\FormExtensionInterface}) nor themed.\n *\n * @author Bernhard Schussek \n */\nabstract cla", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/BaseType.php", "language": "php", "file_size": 6440, "cut_index": 716, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\ButtonTypeInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * A form button.\n *\n * @author Bernhard Schussek \n */\nclass ButtonType extends BaseType implements ButtonTypeInterface\n{\n ", "suffix": "return null;\n }\n\n public function getBlockPrefix(): string\n {\n return 'button';\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n parent::configureOptions($resolver);\n\n $resolver->setDefault('", "middle": " public function getParent(): ?string\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/ButtonType.php", "language": "php", "file_size": 889, "cut_index": 547, "middle_length": 52}} {"prefix": "ponent\\Form\\ChoiceList\\Factory\\Cache\\ChoiceValue;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\GroupBy;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\PreferredChoice;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\CachingFactoryDecorator;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\ChoiceListFactoryInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\DefaultChoiceListFactory;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\PropertyAccessDecorator;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader", "suffix": "orm\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\Event\\PreSubmitEvent;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\C", "middle": "\\ChoiceLoaderInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\LazyChoiceLoader;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceGroupView;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceListView;\nuse Symfony\\Component\\F", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php", "language": "php", "file_size": 22664, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfon", "suffix": "/i';\n\n public function __construct(\n private ?TranslatorInterface $translator = null,\n ) {\n }\n\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n if (!$options['html5']) {\n return;\n ", "middle": "y\\Contracts\\Translation\\TranslatorInterface;\n\nclass ColorType extends AbstractType\n{\n /**\n * @see https://www.w3.org/TR/html52/sec-forms.html#color-state-typecolor\n */\n private const HTML5_PATTERN = '/^#[0-9a-f]{6}$", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/ColorType.php", "language": "php", "file_size": 2368, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\n\n/**\n * Adds a protocol to a URL if it doesn't already have one.\n *\n * @author Be", "suffix": "ta\n */\n public function __construct(\n private ?string $defaultProtocol = 'http',\n ) {\n }\n\n public function onSubmit(FormEvent $event): void\n {\n $data = $event->getData();\n\n if ($this->defaultProtocol && $data && \\is_", "middle": "rnhard Schussek \n */\nclass FixUrlProtocolListener implements EventSubscriberInterface\n{\n /**\n * @param string|null $defaultProtocol The URL scheme to add when there is none or null to not modify the da", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/EventListener/FixUrlProtocolListener.php", "language": "php", "file_size": 1290, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\Event\\PostSetDataEvent;\nuse Symfony\\Component\\Form\\Event\\PreSetDataEvent;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\FormInterface;\n\n/**\n * Resize a collection form element based on the data sent from", "suffix": "ay $preSetDataChildrenStack = [];\n\n public function __construct(\n private string $type,\n private array $options = [],\n private bool $allowAdd = false,\n private bool $allowDelete = false,\n bool|callable $deleteEmpty = f", "middle": " the client.\n *\n * @author Bernhard Schussek \n */\nclass ResizeFormListener implements EventSubscriberInterface\n{\n protected array $prototypeOptions;\n\n private \\Closure|bool $deleteEmpty;\n private arr", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php", "language": "php", "file_size": 6741, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\Util\\StringUtil;\n\n/**\n * Trims string data.\n *\n * @author Bernhard Schussek \n */\nclass Trim", "suffix": "ublic function preSubmit(FormEvent $event): void\n {\n $data = $event->getData();\n\n if (!\\is_string($data)) {\n return;\n }\n\n $event->setData(StringUtil::trim($data));\n }\n\n public static function getSubscribedEve", "middle": "Listener implements EventSubscriberInterface\n{\n p", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/EventListener/TrimListener.php", "language": "php", "file_size": 973, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\n\n/**\n * @template TTransformedValue\n *\n * @implements DataTransformerInterface<\\DateTimeInterface, TTransformedValue>", "suffix": " \\IntlDateFormatter::MEDIUM,\n \\IntlDateFormatter::SHORT,\n ];\n\n protected string $inputTimezone;\n protected string $outputTimezone;\n\n /**\n * @param string|null $inputTimezone The name of the input timezone\n * @param string|null", "middle": "\n */\nabstract class BaseDateTimeTransformer implements DataTransformerInterface\n{\n protected static array $formats = [\n \\IntlDateFormatter::NONE,\n \\IntlDateFormatter::FULL,\n \\IntlDateFormatter::LONG,\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/BaseDateTimeTransformer.php", "language": "php", "file_size": 1974, "cut_index": 537, "middle_length": 229}} {"prefix": "fony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateIntervalToArrayTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateIntervalToStringTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\IntegerToLocalizedStringTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\ReversedTransformer;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Componen", "suffix": "weeks',\n 'days',\n 'hours',\n 'minutes',\n 'seconds',\n ];\n private const WIDGETS = [\n 'text' => TextType::class,\n 'integer' => IntegerType::class,\n 'choice' => ChoiceType::class,\n ];\n\n public functi", "middle": "t\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Steffen Roßkamp \n */\nclass DateIntervalType extends AbstractType\n{\n private const TIME_PARTS = [\n 'years',\n 'months',\n '", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/DateIntervalType.php", "language": "php", "file_size": 10370, "cut_index": 921, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass EmailType extends AbstractType\n{\n public function configureOptions(OptionsResolver $resolver): void\n {\n $res", "suffix": "ults([\n 'invalid_message' => 'Please enter a valid email address.',\n ]);\n }\n\n public function getParent(): ?string\n {\n return TextType::class;\n }\n\n public function getBlockPrefix(): string\n {\n return 'email", "middle": "olver->setDefa", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/EmailType.php", "language": "php", "file_size": 798, "cut_index": 517, "middle_length": 14}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass HiddenType extends AbstractType\n{\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n // hidden fields cannot have a required attribute\n ", "suffix": "rs to the parent\n 'error_bubbling' => true,\n 'compound' => false,\n 'invalid_message' => 'The hidden field is invalid.',\n ]);\n }\n\n public function getBlockPrefix(): string\n {\n return 'hidden';\n }\n}\n", "middle": " 'required' => false,\n // Pass erro", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/HiddenType.php", "language": "php", "file_size": 914, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\MoneyToLocalizedStringTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\StringToFloatTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Op", "suffix": "$options): void\n {\n // Values used in HTML5 number inputs should be formatted as in \"1234.5\", ie. 'en' format without grouping,\n // according to https://www.w3.org/TR/html51/sec-forms.html#date-time-and-number-formats\n $builder\n ", "middle": "tionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass MoneyType extends AbstractType\n{\n protected static array $patterns = [];\n\n public function buildForm(FormBuilderInterface $builder, array ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/MoneyType.php", "language": "php", "file_size": 5119, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\Extension\\Validator\\Constraints\\Form;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\", "suffix": "ubscriberInterface\n{\n public static function getSubscribedEvents(): array\n {\n return [FormEvents::POST_SUBMIT => 'validateForm'];\n }\n\n public function __construct(\n private ValidatorInterface $validator,\n private ViolationM", "middle": "Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\n/**\n * @author Bernhard Schussek \n */\nclass ValidationListener implements EventS", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php", "language": "php", "file_size": 1787, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataAccessor;\n\nuse Symfony\\Component\\Form\\DataAccessorInterface;\nuse Symfony\\Component\\Form\\Exception\\AccessException;\nuse Symfony\\Component\\Form\\FormInterface;\n\n/**\n * @author Yonel Ceruto \n */\nclass ChainAccessor implements DataAccessorInterface\n{\n ", "suffix": "ed\n {\n foreach ($this->accessors as $accessor) {\n if ($accessor->isReadable($data, $form)) {\n return $accessor->getValue($data, $form);\n }\n }\n\n throw new AccessException('Unable to read from the ", "middle": "/**\n * @param DataAccessorInterface[]|iterable $accessors\n */\n public function __construct(\n private iterable $accessors,\n ) {\n }\n\n public function getValue(object|array $data, FormInterface $form): mix", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataAccessor/ChainAccessor.php", "language": "php", "file_size": 2114, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass BirthdayType extends AbstractType\n{\n public fu", "suffix": " ]);\n\n $resolver->setAllowedTypes('years', 'array');\n }\n\n public function getParent(): ?string\n {\n return DateType::class;\n }\n\n public function getBlockPrefix(): string\n {\n return 'birthday';\n }\n\n public functio", "middle": "nction configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'years' => range(date('Y') - 120, date('Y')),\n 'invalid_message' => 'Please enter a valid birthdate.',\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/BirthdayType.php", "language": "php", "file_size": 1334, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\EventListener\\ResizeFormListener;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\Options", "suffix": "dd'] && $options['prototype']) {\n $resizePrototypeOptions = array_replace($options['entry_options'], $options['prototype_options']);\n $prototypeOptions = array_replace([\n 'required' => $options['required'],\n ", "middle": "Resolver\\OptionsResolver;\n\nclass CollectionType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $resizePrototypeOptions = null;\n if ($options['allow_a", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/CollectionType.php", "language": "php", "file_size": 4597, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\n\n/**\n * @author Bernhard Schussek \n */\nclass MergeCollectionListener implements EventSub", "suffix": "t(\n private bool $allowAdd = false,\n private bool $allowDelete = false,\n ) {\n }\n\n public static function getSubscribedEvents(): array\n {\n return [\n FormEvents::SUBMIT => 'onSubmit',\n ];\n }\n\n public f", "middle": "scriberInterface\n{\n /**\n * @param bool $allowAdd Whether values might be added to the collection\n * @param bool $allowDelete Whether values might be removed from the collection\n */\n public function __construc", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php", "language": "php", "file_size": 3529, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * @author Bernhard Schussek \n *\n * @implements DataTransformerInterface\n */\nclass ArrayToPartsTra", "suffix": " throw new TransformationFailedException('Expected an array.');\n }\n\n $result = [];\n\n foreach ($this->partMapping as $partKey => $originalKeys) {\n if (!$array) {\n $result[$partKey] = null;\n ", "middle": "nsformer implements DataTransformerInterface\n{\n public function __construct(\n private array $partMapping,\n ) {\n }\n\n public function transform(mixed $array): mixed\n {\n if (!\\is_array($array ??= [])) {\n", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/ArrayToPartsTransformer.php", "language": "php", "file_size": 2240, "cut_index": 563, "middle_length": 229}} {"prefix": "\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\ArrayToPartsTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DataTransformerChain;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DatePointToDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeImmutableToDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToArrayTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\", "suffix": "ymfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToTimestampTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\FormInterface;\nuse", "middle": "DateTimeToHtml5LocalDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToLocalizedStringTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToStringTransformer;\nuse S", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php", "language": "php", "file_size": 14969, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\IntlCallbackChoiceLoader;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\nuse Symfony\\Component\\Intl\\Intl;\nuse Symfon", "suffix": "solver): void\n {\n $resolver->setDefaults([\n 'choice_loader' => function (Options $options) {\n if (!class_exists(Intl::class)) {\n throw new LogicException(\\sprintf('The \"symfony/intl\" component is requi", "middle": "y\\Component\\Intl\\Languages;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass LanguageType extends AbstractType\n{\n public function configureOptions(OptionsResolver $re", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/LanguageType.php", "language": "php", "file_size": 3636, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper;\n\nuse Symfony\\Component\\Form\\Exception\\OutOfBoundsException;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathInterface;\n\n/**\n * @author Bernhard Schussek \n *\n * @implements \\IteratorAggregate\n */\nclass ViolationPath implements \\IteratorAggregate, PropertyPathInterface\n{\n /** @var list */\n private array $elem", "suffix": "ring $violationPath The property path of a {@link \\Symfony\\Component\\Validator\\ConstraintViolation} object\n */\n public function __construct(string $violationPath)\n {\n $path = new PropertyPath($violationPath);\n $elements = $path->get", "middle": "ents = [];\n private array $isIndex = [];\n private array $mapsForm = [];\n private string $pathAsString = '';\n private int $length = 0;\n\n /**\n * Creates a new violation path from a string.\n *\n * @param st", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php", "language": "php", "file_size": 6539, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\BooleanToStringTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Com", "suffix": "by default, it\n // needs to be a Boolean here. setData(null) is not acceptable\n // for checkboxes and radio buttons (unless a custom model\n // transformer handles this case).\n // We cannot solve this case via overriding the \"dat", "middle": "ponent\\OptionsResolver\\OptionsResolver;\n\nclass CheckboxType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n // Unlike in other types, where the data is NULL ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/CheckboxType.php", "language": "php", "file_size": 2212, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * @author Christian F", "suffix": " public static function getSubscribedEvents(): array\n {\n return [\n FormEvents::POST_SUBMIT => ['convertTransformationFailureToFormError', -1024],\n ];\n }\n\n public function convertTransformationFailureToFormError(FormEvent", "middle": "lothmann \n */\nclass TransformationFailureListener implements EventSubscriberInterface\n{\n public function __construct(\n private ?TranslatorInterface $translator = null,\n ) {\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/EventListener/TransformationFailureListener.php", "language": "php", "file_size": 2108, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataAccessor\\CallbackAccessor;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataAccessor\\ChainAccessor;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataAccessor\\PropertyPathAccessor;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\DataMapper;\nuse Symfony\\Component\\Form\\Extension\\Core\\EventListener\\TrimListener;\nuse Symfony\\Com", "suffix": "mponent\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\n\nclass FormType extends BaseType\n{\n private DataMapper $dataMapper;\n\n public function __co", "middle": "ponent\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Co", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/FormType.php", "language": "php", "file_size": 8364, "cut_index": 716, "middle_length": 229}} {"prefix": "ent\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormRendererInterface;\nuse Symfony\\Component\\Form\\Util\\InheritDataAwareIterator;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathBuilder;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathIterator;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathIteratorInterface;\nuse Symfony\\Component\\Validator\\Constraints\\File;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * @author Bernhard Schussek allowNonSynchronized = $allowNonSynchr", "middle": "chussek@gmail.com>\n */\nclass ViolationMapper implements ViolationMapperInterface\n{\n private bool $allowNonSynchronized = false;\n\n public function __construct(\n private ?FormRendererInterface $formRenderer = null,\n ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapper.php", "language": "php", "file_size": 12830, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\WeekToArrayTransformer;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\ReversedTransformer;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\Op", "suffix": "erface $builder, array $options): void\n {\n if ('string' === $options['input']) {\n $builder->addModelTransformer(new WeekToArrayTransformer());\n }\n\n if ('single_text' === $options['widget']) {\n $builder->addView", "middle": "tionsResolver\\OptionsResolver;\n\nclass WeekType extends AbstractType\n{\n private const WIDGETS = [\n 'text' => IntegerType::class,\n 'choice' => ChoiceType::class,\n ];\n\n public function buildForm(FormBuilderInt", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/Type/WeekType.php", "language": "php", "file_size": 6548, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataAccessor;\n\nuse Symfony\\Component\\Form\\DataAccessorInterface;\nuse Symfony\\Component\\Form\\DataMapperInterface;\nuse Symfony\\Component\\Form\\Exception\\AccessException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\DataMapper;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\PropertyAccess\\Exception\\AccessE", "suffix": "itializedPropertyException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathInterface;\n\n/**\n * Writes and reads values to/from an object o", "middle": "xception as PropertyAccessException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchIndexException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\Unin", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataAccessor/PropertyPathAccessor.php", "language": "php", "file_size": 4442, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Uid\\Uuid;\n\n/**\n * Transforms between a UUID string and a Uuid object.\n *\n * @author Pavel ", "suffix": "ll === $value) {\n return null;\n }\n\n if (!$value instanceof Uuid) {\n throw new TransformationFailedException('Expected a Uuid.');\n }\n\n return (string) $value;\n }\n\n public function reverseTransform(mixe", "middle": "Dyakonov \n *\n * @implements DataTransformerInterface\n */\nclass UuidToStringTransformer implements DataTransformerInterface\n{\n public function transform(mixed $value): ?string\n {\n if (nu", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/UuidToStringTransformer.php", "language": "php", "file_size": 1664, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Console\\Descriptor;\n\nuse Symfony\\Component\\Console\\Descriptor\\DescriptorInterface;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\OutputStyle;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Form\\ResolvedFormTypeInterface;\nuse Symfony\\Component\\Form\\Util\\OptionsResolverWrapper;\nuse Symfony\\Component\\OptionsResolver\\Debug\\Options", "suffix": "act class Descriptor implements DescriptorInterface\n{\n protected OutputStyle $output;\n protected array $ownOptions = [];\n protected array $overriddenOptions = [];\n protected array $parentOptions = [];\n protected array $extensionOptions = [];", "middle": "ResolverIntrospector;\nuse Symfony\\Component\\OptionsResolver\\Exception\\NoConfigurationException;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Yonel Ceruto \n *\n * @internal\n */\nabstr", "meta": {"filepath": "src/Symfony/Component/Form/Console/Descriptor/Descriptor.php", "language": "php", "file_size": 8090, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Console\\Descriptor;\n\nuse Symfony\\Component\\Form\\ResolvedFormTypeInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Yonel Ceruto \n *\n * @internal\n */\nclass JsonDescriptor extends Descriptor\n{\n protected function describeDefaults(array $options): void\n {\n $data['builtin_form_ty", "suffix": "uessers'] = $options['guessers'];\n }\n\n $this->writeData($data, $options);\n }\n\n protected function describeResolvedFormType(ResolvedFormTypeInterface $resolvedFormType, array $options = []): void\n {\n $this->collectOptions($reso", "middle": "pes'] = $options['core_types'];\n $data['service_form_types'] = $options['service_types'];\n if (!$options['show_deprecated']) {\n $data['type_extensions'] = $options['extensions'];\n $data['type_g", "meta": {"filepath": "src/Symfony/Component/Form/Console/Descriptor/JsonDescriptor.php", "language": "php", "file_size": 4346, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Console\\Descriptor;\n\nuse Symfony\\Component\\Console\\Helper\\Dumper;\nuse Symfony\\Component\\Console\\Helper\\TableSeparator;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\Form\\ResolvedFormTypeInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Yonel Ceruto \n *\n * @internal\n */\nclass TextDescriptor extends Descriptor\n{\n public function __construct(\n ", "suffix": "ilt-in form types (Symfony\\Component\\Form\\Extension\\Core\\Type)');\n $shortClassNames = array_map(fn ($fqcn) => $this->formatClassLink($fqcn, \\array_slice(explode('\\\\', $fqcn), -1)[0]), $options['core_types']);\n for ($i = 0, $loopsMax =", "middle": " private readonly ?FileLinkFormatter $fileLinkFormatter = null,\n ) {\n }\n\n protected function describeDefaults(array $options): void\n {\n if ($options['core_types']) {\n $this->output->section('Bu", "meta": {"filepath": "src/Symfony/Component/Form/Console/Descriptor/TextDescriptor.php", "language": "php", "file_size": 7861, "cut_index": 716, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Console\\Helper;\n\nuse Symfony\\Component\\Console\\Helper\\DescriptorHelper as BaseDescriptorHelper;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\Form\\Console\\Descriptor\\JsonDescriptor;\nuse Symfony\\Component\\Form\\Console\\Descriptor\\TextDescriptor;\n\n/**\n * @author Yonel Ceruto register('txt', new TextDescriptor($fileLinkFormatter))\n ->register('json', new JsonDescriptor())\n ", "middle": ".com>\n *\n * @internal\n */\nclass DescriptorHelper ext", "meta": {"filepath": "src/Symfony/Component/Form/Console/Helper/DescriptorHelper.php", "language": "php", "file_size": 925, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList;\n\n/**\n * A list of choices with arbitrary data types.\n *\n * The user of this class is responsible for assigning string values to the\n * choices and for their uniqueness.\n * Both the choices and their values are passed to the constructor.\n * Each choice must have a corresponding value (with the same key) in\n * the values array.\n *\n * @author Bernhard Schussek \n */\nclass ArrayChoiceList implements ChoiceListInte", "suffix": "iginalKeys;\n protected ?\\Closure $valueCallback = null;\n\n /**\n * Creates a list with the given choices and values.\n *\n * The given choice array must have the same array keys as the value array.\n *\n * @param iterable $choices ", "middle": "rface\n{\n protected array $choices;\n\n /**\n * The values indexed by the original keys.\n */\n protected array $structuredValues;\n\n /**\n * The original keys of the choices array.\n */\n protected array $or", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php", "language": "php", "file_size": 6586, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList;\n\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\ChoiceAttr;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\ChoiceFieldName;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\ChoiceFilter;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\ChoiceLabel;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\ChoiceLoader;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\ChoiceTranslationParameters;\nuse Symfony\\Component", "suffix": "oiceLoader;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface;\nuse Symfony\\Component\\Form\\FormTypeExtensionInterface;\nuse Symfony\\Component\\Form\\FormTypeInterface;\n\n/**\n * A set of convenient static methods to create cacheable choice list ", "middle": "\\Form\\ChoiceList\\Factory\\Cache\\ChoiceValue;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\GroupBy;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\PreferredChoice;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\CallbackCh", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/ChoiceList.php", "language": "php", "file_size": 6613, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList;\n\n/**\n * A list of choices that can be selected in a choice field.\n *\n * A choice list assigns unique string values to each of a list of choices.\n * These string values are displayed in the \"value\" attributes in HTML and\n * submitted back to the server.\n *\n * The acceptable data types for the choices depend on the implementation.\n", "suffix": "turn array The selectable choices indexed by the corresponding values\n */\n public function getChoices(): array;\n\n /**\n * Returns the values for the choices.\n *\n * The values are strings that do not contain duplicates:\n *\n * ", "middle": " * Values must always be strings and (within the list) free of duplicates.\n *\n * @author Bernhard Schussek \n */\ninterface ChoiceListInterface\n{\n /**\n * Returns all selectable choices.\n *\n * @re", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/ChoiceListInterface.php", "language": "php", "file_size": 4511, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList;\n\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface;\n\n/**\n * A choice list that loads its choices lazily.\n *\n * The choices are fetched using a {@link ChoiceLoaderInterface} instance.\n * If only {@link getChoicesForValues()} or {@link getValuesForChoices()} is\n * ", "suffix": "lass LazyChoiceList implements ChoiceListInterface\n{\n /**\n * The callable creating string values for each choice.\n *\n * If null, choices are cast to strings.\n */\n private ?\\Closure $value;\n\n /**\n * Creates a lazily-loaded list ", "middle": "called, the choice list is only loaded partially for improved performance.\n *\n * Once {@link getChoices()} or {@link getValues()} is called, the list is\n * loaded fully.\n *\n * @author Bernhard Schussek \n */\nc", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/LazyChoiceList.php", "language": "php", "file_size": 2457, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Loader;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ArrayChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\n\n/**\n * @author Jules Pietri \n */\nabstract class AbstractChoiceLoader implements ChoiceLoaderInterface\n{\n pri", "suffix": " }\n\n public function loadChoicesForValues(array $values, ?callable $value = null): array\n {\n if (!$values) {\n return [];\n }\n\n return $this->doLoadChoicesForValues($values, $value);\n }\n\n /**\n * @param-immedi", "middle": "vate ?iterable $choices;\n\n /**\n * @final\n */\n public function loadChoiceList(?callable $value = null): ChoiceListInterface\n {\n return new ArrayChoiceList($this->choices ??= $this->loadChoices(), $value);\n ", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Loader/AbstractChoiceLoader.php", "language": "php", "file_size": 1832, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Loader;\n\n/**\n * Loads an {@link ArrayChoiceList} instance from a callable returning iterable choices.\n *\n * @author Jules Pietri \n */\nclass CallbackChoiceLoader extends AbstractChoiceLoader\n{\n private \\Closu", "suffix": "ack The callable returning iterable choices\n */\n public function __construct(callable $callback)\n {\n $this->callback = $callback(...);\n }\n\n protected function loadChoices(): iterable\n {\n return ($this->callback)();\n }\n}\n", "middle": "re $callback;\n\n /**\n * @param callable $callb", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Loader/CallbackChoiceLoader.php", "language": "php", "file_size": 820, "cut_index": 512, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Loader;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\n\n/**\n * Loads a choice list.\n *\n * The methods {@link loadChoicesForValues()} and {@link loadValuesForChoices()}\n * can be used to load the list only partially in cases where a fully-loaded\n * list is not necessar", "suffix": "e callable receives the choice as only argument.\n * Null may be passed when the choice list contains the empty value.\n *\n * @param callable|null $value The callable which generates the values\n * from choices\n ", "middle": "y.\n *\n * @author Bernhard Schussek \n */\ninterface ChoiceLoaderInterface\n{\n /**\n * Loads a list of choices.\n *\n * Optionally, a callable can be passed for generating the choice values.\n * Th", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.php", "language": "php", "file_size": 2690, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Loader;\n\n/**\n * A decorator to filter choices only when they are loaded or partially loaded.\n *\n * @author Jules Pietri \n */\nclass FilterChoiceLoaderDecorator extends AbstractChoiceLoader\n{\n private ChoiceLoaderInterface $decoratedLoader;\n private \\Closur", "suffix": "ble\n {\n $list = $this->decoratedLoader->loadChoiceList();\n\n if (array_values($list->getValues()) === array_values($structuredValues = $list->getStructuredValues())) {\n return array_filter(array_combine($list->getOriginalKeys(), ", "middle": "e $filter;\n\n public function __construct(ChoiceLoaderInterface $loader, callable $filter)\n {\n $this->decoratedLoader = $loader;\n $this->filter = $filter(...);\n }\n\n protected function loadChoices(): itera", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Loader/FilterChoiceLoaderDecorator.php", "language": "php", "file_size": 2082, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Loader;\n\n/**\n * Callback choice loader optimized for Intl choice types.\n *\n * @author Jules Pietri \n * @author Yonel Ceruto \n */\nclass IntlCallbackChoiceLoader extends CallbackChoiceLoader", "suffix": "hoices, ?callable $value = null): array\n {\n $choices = array_filter($choices);\n\n // If no callable is set, choices are the same as values\n if (null === $value) {\n return $choices;\n }\n\n return parent::loadVal", "middle": "\n{\n public function loadChoicesForValues(array $values, ?callable $value = null): array\n {\n return parent::loadChoicesForValues(array_filter($values), $value);\n }\n\n public function loadValuesForChoices(array $c", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Loader/IntlCallbackChoiceLoader.php", "language": "php", "file_size": 1039, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Loader;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ArrayChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\n\n/**\n * A choice loader that loads its choices and values lazily, only when necessary.\n *\n * @author Yonel Ceruto choiceList ??= new ArrayChoiceList([], $value);\n }\n\n public function loadChoicesForValues(array $values, ?callable $value = null): array\n {\n ", "middle": ".com>\n */\nclass LazyChoiceLoader implements ChoiceLoaderInterface\n{\n private ?ChoiceListInterface $choiceList = null;\n\n public function __construct(\n private readonly ChoiceLoaderInterface $loader,\n ) {\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Loader/LazyChoiceLoader.php", "language": "php", "file_size": 1541, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Factory;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceListView;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Caches the choice lists created by the decorated factory.\n *\n * To cache a list based on its options, arguments must be decorated\n * by a {@see Cache\\AbstractStaticOption} implementati", "suffix": "ace[]\n */\n private array $lists = [];\n\n /**\n * @var ChoiceListView[]\n */\n private array $views = [];\n\n /**\n * Generates a SHA-256 hash for the given value.\n *\n * Optionally, a namespace string can be passed. Calling this", "middle": "on.\n *\n * @author Bernhard Schussek \n * @author Jules Pietri \n */\nclass CachingFactoryDecorator implements ChoiceListFactoryInterface, ResetInterface\n{\n /**\n * @var ChoiceListInterf", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Factory/CachingFactoryDecorator.php", "language": "php", "file_size": 6876, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Factory;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceListView;\n\n/**\n * Creates {@link ChoiceListInterface} instances.\n *\n * @author Bernhard Schussek \n */\ninterface ChoiceListFac", "suffix": "ce values.\n * The callable receives the choice as only argument.\n * Null may be passed when the choice list contains the empty value.\n *\n * @param callable|null $filter The callable filtering the choices\n */\n public function createLi", "middle": "toryInterface\n{\n /**\n * Creates a choice list for the given choices.\n *\n * The choices should be passed in the values of the choices array.\n *\n * Optionally, a callable can be passed for generating the choi", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Factory/ChoiceListFactoryInterface.php", "language": "php", "file_size": 4190, "cut_index": 614, "middle_length": 229}} {"prefix": " Symfony\\Component\\Form\\ChoiceList\\LazyChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\CallbackChoiceLoader;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\FilterChoiceLoaderDecorator;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceGroupView;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceListView;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\n\n/**\n * Default imple", "suffix": "blic function createListFromChoices(iterable $choices, ?callable $value = null, ?callable $filter = null): ChoiceListInterface\n {\n if ($filter) {\n // filter the choice list lazily\n return $this->createListFromLoader(new Filt", "middle": "mentation of {@link ChoiceListFactoryInterface}.\n *\n * @author Bernhard Schussek \n * @author Jules Pietri \n */\nclass DefaultChoiceListFactory implements ChoiceListFactoryInterface\n{\n pu", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php", "language": "php", "file_size": 12191, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Factory;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceListView;\nuse Symfony\\Component\\PropertyAccess\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath", "suffix": "actory);\n *\n * You can now pass property paths for generating choice values, labels, view\n * indices, HTML attributes and for determining the preferred choices and the\n * choice groups:\n *\n * // extract values from the $value property\n * $list = $c", "middle": ";\nuse Symfony\\Component\\PropertyAccess\\PropertyPathInterface;\n\n/**\n * Adds property path support to a choice list factory.\n *\n * Pass the decorated factory to the constructor:\n *\n * $decorator = new PropertyAccessDecorator($f", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Factory/PropertyAccessDecorator.php", "language": "php", "file_size": 6956, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache;\n\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\CachingFactoryDecorator;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\FormTypeExtens", "suffix": "i \n */\nabstract class AbstractStaticOption\n{\n private static array $options = [];\n\n private bool|string|array|\\Closure|ChoiceLoaderInterface $option;\n\n /**\n * @param mixed $option Any pseudo callable, array, string or bool ", "middle": "ionInterface;\nuse Symfony\\Component\\Form\\FormTypeInterface;\n\n/**\n * A template decorator for static {@see ChoiceType} options.\n *\n * Used as fly weight for {@see CachingFactoryDecorator}.\n *\n * @internal\n *\n * @author Jules Pietr", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Factory/Cache/AbstractStaticOption.php", "language": "php", "file_size": 1785, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface;\nuse Symfony\\Component\\Form\\FormTypeExtensionInterface;\nuse Symfony\\Component\\Form\\FormTypeInterface", "suffix": "oader extends AbstractStaticOption implements ChoiceLoaderInterface\n{\n public function loadChoiceList(?callable $value = null): ChoiceListInterface\n {\n return $this->getOption()->loadChoiceList($value);\n }\n\n public function loadChoicesFo", "middle": ";\n\n/**\n * A cacheable wrapper for {@see FormTypeInterface} or {@see FormTypeExtensionInterface}\n * which configures a \"choice_loader\" option.\n *\n * @internal\n *\n * @author Jules Pietri \n */\nfinal class ChoiceL", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/Factory/Cache/ChoiceLoader.php", "language": "php", "file_size": 1329, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\View;\n\n/**\n * Represents a group of choices in templates.\n *\n * @author Bernhard Schussek \n *\n * @implements \\IteratorAggregate\n */\nclass ChoiceGroupView implements \\IteratorAggregate\n{\n /**\n * Creates a new choice group view.\n *", "suffix": "oices the choice views in the group\n */\n public function __construct(\n public string $label,\n public array $choices = [],\n ) {\n }\n\n /**\n * @return \\Traversable\n */\n public func", "middle": "\n * @param array $ch", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/View/ChoiceGroupView.php", "language": "php", "file_size": 988, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\View;\n\n/**\n * Represents a choice list in templates.\n *\n * A choice list contains choices and optionally preferred choices which are\n * displayed in the very beginning of the list. Both choices and preferred\n * choices may be grouped in {@link ChoiceGroup", "suffix": "views\n * @param array $preferredChoices the preferred choice views\n */\n public function __construct(\n public array $choices = [],\n public array $preferredChoices = [],\n ) {\n }\n\n /**\n * Retur", "middle": "View} instances.\n *\n * @author Bernhard Schussek \n */\nclass ChoiceListView\n{\n /**\n * Creates a new choice list view.\n *\n * @param array $choices The choice ", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/View/ChoiceListView.php", "language": "php", "file_size": 1558, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\ChoiceList\\View;\n\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\n\n/**\n * Represents a choice in templates.\n *\n * @author Bernhard Schussek \n */\nclass ChoiceView\n{\n /**\n * Creates a new choice view.\n *\n * @pa", "suffix": "atableInterface|false $label The label displayed to humans; pass false to discard the label\n * @param array $attr Additional attributes for the HTML tag\n * @param array ", "middle": "ram mixed $data The original choice\n * @param string $value The view representation of the choice\n * @param string|Transl", "meta": {"filepath": "src/Symfony/Component/Form/ChoiceList/View/ChoiceView.php", "language": "php", "file_size": 1370, "cut_index": 524, "middle_length": 229}} {"prefix": "Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\Form\\Con", "suffix": "mation about form types.\n *\n * @author Yonel Ceruto \n */\n#[AsCommand(name: 'debug:form', description: 'Display form type information')]\nclass DebugCommand extends Command\n{\n public function __construct(\n private FormRegistr", "middle": "sole\\Helper\\DescriptorHelper;\nuse Symfony\\Component\\Form\\Extension\\Core\\CoreExtension;\nuse Symfony\\Component\\Form\\FormRegistryInterface;\nuse Symfony\\Component\\Form\\FormTypeInterface;\n\n/**\n * A console command for retrieving infor", "meta": {"filepath": "src/Symfony/Component/Form/Command/DebugCommand.php", "language": "php", "file_size": 11349, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\AbstractExtension;\nuse Symfony\\Component\\Form\\FormTypeGuesserInterface;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\FooType;\n\nclass AbstractExtensionTest extends TestCase\n{\n publi", "suffix": " public function testGetType()\n {\n $loader = new ConcreteExtension();\n $this->assertInstanceOf(FooType::class, $loader->getType('Symfony\\Component\\Form\\Tests\\Fixtures\\FooType'));\n }\n}\n\nclass ConcreteExtension extends AbstractExtension", "middle": "c function testHasType()\n {\n $loader = new ConcreteExtension();\n $this->assertTrue($loader->hasType('Symfony\\Component\\Form\\Tests\\Fixtures\\FooType'));\n $this->assertFalse($loader->hasType('foo'));\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/AbstractExtensionTest.php", "language": "php", "file_size": 1175, "cut_index": 518, "middle_length": 229}} {"prefix": "\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormFactory;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\Forms;\nuse Symfony\\Component\\Form\\RequestHandlerInterface;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\nuse Symfony\\Component\\Form\\Tests\\Extension\\Type\\ItemFileType;\nuse Symfony\\Component\\Form\\Util\\ServerParams;\n\n/**\n * @author Bernhard Schussek \n */\nabstract class AbstractRequestHandlerTestCase extends Test", "suffix": "$this->serverParams = new class extends ServerParams {\n public ?int $contentLength = null;\n public string $postMaxSize = '';\n\n public function getContentLength(): ?int\n {\n return $this->contentLeng", "middle": "Case\n{\n protected RequestHandlerInterface $requestHandler;\n protected FormFactory $factory;\n protected mixed $request = null;\n protected ServerParams $serverParams;\n\n protected function setUp(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/AbstractRequestHandlerTestCase.php", "language": "php", "file_size": 22132, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ButtonBuilder;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\n\n/**\n * @author Alexander Cheprasov \n */\nclass ButtonB", "suffix": "rovider('getValidNames')]\n public function testValidNames($name)\n {\n $this->assertInstanceOf(ButtonBuilder::class, new ButtonBuilder($name));\n }\n\n public function testNameContainingIllegalCharacters()\n {\n $this->expectException", "middle": "uilderTest extends TestCase\n{\n public static function getValidNames()\n {\n return [\n ['reset'],\n ['submit'],\n ['foo'],\n ['0'],\n [0],\n ];\n }\n\n #[DataP", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ButtonBuilderTest.php", "language": "php", "file_size": 1785, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\ButtonBuilder;\nuse Symfony\\Component\\Form\\Exception\\AlreadySubmittedException;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse ", "suffix": "public function testSetParentOnSubmittedButton()\n {\n $this->expectException(AlreadySubmittedException::class);\n $button = $this->getButtonBuilder('button')\n ->getForm()\n ;\n\n $button->submit('');\n\n $button->s", "middle": "Symfony\\Component\\Form\\FormFactory;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\n\n/**\n * @author Bernhard Schussek \n */\nclass ButtonTest extends TestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ButtonTest.php", "language": "php", "file_size": 2141, "cut_index": 563, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\CallbackTransformer;\n\nclass CallbackTransformerTest extends TestCase\n{\n public function testTransform()\n {\n $transformer = new CallbackTransformer(\n static fn ($value)", "suffix": "ic fn ($value) => $value.' has reversely been transformed'\n );\n\n $this->assertEquals('foo has been transformed', $transformer->transform('foo'));\n $this->assertEquals('bar has reversely been transformed', $transformer->reverseTransform", "middle": " => $value.' has been transformed',\n stat", "meta": {"filepath": "src/Symfony/Component/Form/Tests/CallbackTransformerTest.php", "language": "php", "file_size": 855, "cut_index": 529, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Form\\Test\\FormPerformanceTestCase;\n\n/**\n * @author Bernhard Schussek \n */\nclass CompoundFormPerformanceTest extends FormPerformanceTestCase\n{\n /**\n * Create a compound ", "suffix": "= $this->factory->createBuilder('Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType')\n ->add('firstName', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType')\n ->add('lastName', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\T", "middle": "form multiple times, as happens in a collection form.\n */\n #[Group('benchmark')]\n public function testArrayBasedForm()\n {\n $this->setMaxRunningTime(1);\n\n for ($i = 0; $i < 40; ++$i) {\n $form ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/CompoundFormPerformanceTest.php", "language": "php", "file_size": 1762, "cut_index": 537, "middle_length": 229}} {"prefix": " Symfony\\Component\\PropertyAccess\\PropertyAccess;\n\nclass CompoundFormTest extends TestCase\n{\n private FormFactory $factory;\n private FormInterface $form;\n\n protected function setUp(): void\n {\n $this->factory = new FormFactory(new FormRegistry([], new ResolvedFormTypeFactory()));\n $this->form = $this->createForm();\n }\n\n public function testValidIfAllChildrenAreValid()\n {\n $this->form->add($this->getBuilder('firstName')->getForm());\n $this->form->add($this->get", "suffix": "on testInvalidIfChildIsInvalid()\n {\n $this->form->add($this->getBuilder('firstName')->getForm());\n $this->form->add($this->getBuilder('lastName')->getForm());\n\n $this->form->submit([\n 'firstName' => 'Bernhard',\n ", "middle": "Builder('lastName')->getForm());\n\n $this->form->submit([\n 'firstName' => 'Bernhard',\n 'lastName' => 'Schussek',\n ]);\n\n $this->assertTrue($this->form->isValid());\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Component/Form/Tests/CompoundFormTest.php", "language": "php", "file_size": 35437, "cut_index": 2151, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * @author Bernhard Schussek \n *\n * @implements DataTransformerInterface", "suffix": " [];\n\n foreach ($this->keys as $key) {\n $result[$key] = $value;\n }\n\n return $result;\n }\n\n public function reverseTransform(mixed $array): mixed\n {\n if (!\\is_array($array)) {\n throw new Transformati", "middle": "\n */\nclass ValueToDuplicatesTransformer implements DataTransformerInterface\n{\n public function __construct(\n private array $keys,\n ) {\n }\n\n public function transform(mixed $value): array\n {\n $result =", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/ValueToDuplicatesTransformer.php", "language": "php", "file_size": 1870, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\EnumFormTypeGuesser;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\EnumType as FormEnumType;\nuse Symfony\\Component\\Form\\Guess\\Guess;\nuse Symfony\\Component\\Form\\Guess\\TypeGuess;\nuse Symfony\\Component\\Form\\Guess\\ValueGuess;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\BackedEnumFormTypeGuesserCaseEnum;\nuse Symfony\\Component\\Form\\Test", "suffix": "ssType(?TypeGuess $expectedTypeGuess, string $class, string $property)\n {\n $typeGuesser = new EnumFormTypeGuesser();\n\n $typeGuess = $typeGuesser->guessType($class, $property);\n\n self::assertEquals($expectedTypeGuess, $typeGuess);\n ", "middle": "s\\Fixtures\\EnumFormTypeGuesserCase;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\EnumFormTypeGuesserCaseEnum;\n\nclass EnumFormTypeGuesserTest extends TestCase\n{\n #[DataProvider('provideGuessTypeCases')]\n public function testGue", "meta": {"filepath": "src/Symfony/Component/Form/Tests/EnumFormTypeGuesserTest.php", "language": "php", "file_size": 5727, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataMapper;\n\nuse Symfony\\Component\\Form\\DataMapperInterface;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\n\n/**\n * Maps choices to/from checkbox forms.\n *\n * A {@link ChoiceListInterface} implementation is used to find the\n * correspon", "suffix": "plements DataMapperInterface\n{\n public function mapDataToForms(mixed $choices, \\Traversable $checkboxes): void\n {\n if (!\\is_array($choices ??= [])) {\n throw new UnexpectedTypeException($choices, 'array');\n }\n\n foreach ", "middle": "ding string values for the choices. Each checkbox form whose \"value\"\n * option corresponds to any of the selected values is marked as selected.\n *\n * @author Bernhard Schussek \n */\nclass CheckboxListMapper im", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataMapper/CheckboxListMapper.php", "language": "php", "file_size": 1699, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataMapper;\n\nuse Symfony\\Component\\Form\\DataMapperInterface;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\n\n/**\n * Maps choices to/from radio forms.\n *\n * A {@link ChoiceListInterface} implementation is used to find the\n * correspondin", "suffix": "rInterface\n{\n public function mapDataToForms(mixed $choice, \\Traversable $radios): void\n {\n if (!\\is_string($choice)) {\n throw new UnexpectedTypeException($choice, 'string');\n }\n\n foreach ($radios as $radio) {\n ", "middle": "g string values for the choices. The radio form whose \"value\"\n * option corresponds to the selected value is marked as selected.\n *\n * @author Bernhard Schussek \n */\nclass RadioListMapper implements DataMappe", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataMapper/RadioListMapper.php", "language": "php", "file_size": 1698, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\HtmlSanitizer\\Type;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse", "suffix": "blic function __construct(\n private ContainerInterface $sanitizers,\n private string $defaultSanitizer = 'default',\n ) {\n }\n\n public static function getExtendedTypes(): iterable\n {\n return [TextType::class];\n }\n\n publi", "middle": " Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Titouan Galopin \n */\nclass TextTypeHtmlSanitizerExtension extends AbstractTypeExtension\n{\n pu", "meta": {"filepath": "src/Symfony/Component/Form/Extension/HtmlSanitizer/Type/TextTypeHtmlSanitizerExtension.php", "language": "php", "file_size": 2006, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Exception;\n\n/**\n * Indicates a value transformation error.\n *\n * @author Bernhard Schussek \n */\nclass TransformationFailedException extends RuntimeException\n{\n private ?string $invalidMessage;\n private array $invalidMessageParameters;\n\n ", "suffix": "\n $this->setInvalidMessage($invalidMessage, $invalidMessageParameters);\n }\n\n /**\n * Sets the message that will be shown to the user.\n *\n * @param string|null $invalidMessage The message or message key\n * @param array ", "middle": " public function __construct(string $message = '', int $code = 0, ?\\Throwable $previous = null, ?string $invalidMessage = null, array $invalidMessageParameters = [])\n {\n parent::__construct($message, $code, $previous);\n", "meta": {"filepath": "src/Symfony/Component/Form/Exception/TransformationFailedException.php", "language": "php", "file_size": 1557, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a normalized time and a localized time string/array.\n *\n * @author Bernhard Schussek \n * @author Florian Eckerstorfer \n *\n * @extends BaseDateTimeTransformer\n */\nclass DateTimeToArrayTransformer extends BaseDateTimeTransformer\n{\n private array $fields;\n pri", "suffix": "fields\n * @param bool $pad Whether to use padding\n */\n public function __construct(\n ?string $inputTimezone = null,\n ?string $outputTimezone = null,\n ?array $fields = null,\n private bool $pad = fal", "middle": "vate \\DateTimeInterface $referenceDate;\n\n /**\n * @param string|null $inputTimezone The input timezone\n * @param string|null $outputTimezone The output timezone\n * @param string[]|null $fields The date ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToArrayTransformer.php", "language": "php", "file_size": 5906, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\n\n/**\n * Transforms between a normalized time and a localized time string.\n *\n * @author Bernhard Schussek \n * @author Florian Eckerstorfer \n *\n * @extends BaseDateTimeTrans", "suffix": "net/browse/CLDR-14032\n */\n private const NO_BREAK_SPACE = \"\\u{00A0}\";\n private const NARROW_NO_BREAK_SPACE = \"\\u{202F}\"; // Used by ICU 72+ before AM/PM\n private const THIN_SPACE = \"\\u{2009}\";\n\n private int $dateFormat;\n private int $tim", "middle": "former\n */\nclass DateTimeToLocalizedStringTransformer extends BaseDateTimeTransformer\n{\n /**\n * Unicode whitespace characters used by ICU in formatted date strings.\n *\n * @see https://unicode-org.atlassian.", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php", "language": "php", "file_size": 9034, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * @author Bernhard Schussek \n *\n * @extends BaseDateTimeTransformer\n */\nclass DateTimeToRfc3339Transformer extends BaseDateTimeTransformer\n{\n public func", "suffix": "ted a \\DateTimeInterface.');\n }\n\n if ($this->inputTimezone !== $this->outputTimezone) {\n $dateTime = \\DateTimeImmutable::createFromInterface($dateTime);\n $dateTime = $dateTime->setTimezone(new \\DateTimeZone($this->output", "middle": "tion transform(mixed $dateTime): ?string\n {\n if (null === $dateTime) {\n return '';\n }\n\n if (!$dateTime instanceof \\DateTimeInterface) {\n throw new TransformationFailedException('Expec", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToRfc3339Transformer.php", "language": "php", "file_size": 2291, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a timezone identifier string and a DateTimeZone object.\n *\n * @author Roland Franssen multiple) {\n if (!\\is_array($dateTimeZone)) {", "middle": "m>\n *\n * @implements DataTransformerInterface<\\DateTimeZone|array<\\DateTimeZone>, string|array>\n */\nclass DateTimeZoneToStringTransformer implements DataTransformerInterface\n{\n public function __construct(\n priv", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeZoneToStringTransformer.php", "language": "php", "file_size": 2205, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a timezone identifier string and a IntlTimeZone object.\n *\n * @author Roland Franssen multiple) {\n if (!\\is_array($intlTimeZone)) {", "middle": "m>\n *\n * @implements DataTransformerInterface<\\IntlTimeZone|array<\\IntlTimeZone>, string|array>\n */\nclass IntlTimeZoneToStringTransformer implements DataTransformerInterface\n{\n public function __construct(\n priv", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/IntlTimeZoneToStringTransformer.php", "language": "php", "file_size": 2278, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a number type and a localized number with grouping\n * (each thousand) and comma separators.\n *\n * @author Bernhard Schussek \n * @author Florian Eckerstorfer \n *\n * @implements DataTransformerInterfacegrouping = $grouping ?? false;\n $this->roundingMode = $roundingMode ?? \\NumberFormatter::ROUND_HALFUP;", "middle": "g>\n */\nclass NumberToLocalizedStringTransformer implements DataTransformerInterface\n{\n protected bool $grouping;\n protected int $roundingMode;\n\n public function __construct(\n private ?int $scale = null,\n ?b", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php", "language": "php", "file_size": 7062, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * @implements DataTransformerInterface\n */\nclass StringToFloatTransfor", "suffix": "turn null;\n }\n\n if (!\\is_string($value) || !is_numeric($value)) {\n throw new TransformationFailedException('Expected a numeric string.');\n }\n\n return (float) $value;\n }\n\n public function reverseTransform(mixed $", "middle": "mer implements DataTransformerInterface\n{\n public function __construct(\n private ?int $scale = null,\n ) {\n }\n\n public function transform(mixed $value): ?float\n {\n if (null === $value) {\n re", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/StringToFloatTransformer.php", "language": "php", "file_size": 1395, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Util;\n\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormUtil\n{\n /**\n * This class should not be instantiated.\n */\n private function __construct()\n {\n }\n\n /**\n * Returns whether the given data is empty.\n *\n * This logic is reused mu", "suffix": "ol\n {\n // Should not do a check for [] === $data!!!\n // This method is used in occurrences where arrays are\n // not considered to be empty, ever.\n return null === $data || '' === $data;\n }\n\n /**\n * Merges query stri", "middle": "ltiple times throughout the processing of\n * a form and needs to be consistent. PHP keyword `empty` cannot\n * be used as it also considers 0 and \"0\" to be empty.\n */\n public static function isEmpty(mixed $data): bo", "meta": {"filepath": "src/Symfony/Component/Form/Util/FormUtil.php", "language": "php", "file_size": 3589, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Util;\n\nuse Symfony\\Component\\OptionsResolver\\Exception\\AccessException;\nuse Symfony\\Component\\OptionsResolver\\Exception\\UndefinedOptionsException;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Yonel Ceruto \n *\n * @internal\n */\nclass OptionsReso", "suffix": "::setNormalizer($option, $normalizer);\n } catch (UndefinedOptionsException) {\n $this->undefined[$option] = true;\n }\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function setAllowedValues(string $opt", "middle": "lverWrapper extends OptionsResolver\n{\n private array $undefined = [];\n\n /**\n * @return $this\n */\n public function setNormalizer(string $option, \\Closure $normalizer): static\n {\n try {\n parent", "meta": {"filepath": "src/Symfony/Component/Form/Util/OptionsResolverWrapper.php", "language": "php", "file_size": 2628, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Util;\n\n/**\n * A hash map which keeps track of deletions and additions.\n *\n * Like in associative arrays, elements can be mapped to integer or string keys.\n * Unlike associative arrays, the map keeps track of the order in which keys\n * were added and removed. This order is reflected during iteration.\n *\n * The map supports concurrent modifica", "suffix": "d by the iterator,\n * changed elements are not. Otherwise the loop could be infinite if each loop\n * changes the current element:\n *\n * $map = new OrderedHashMap();\n * $map[1] = 1;\n * $map[2] = 2;\n * $map[3] = 3;\n *\n * foreach ($map as ", "middle": "tion during iteration. That means that\n * you can insert and remove elements from within a foreach loop and the\n * iterator will reflect those changes accordingly.\n *\n * While elements that are added during the loop are recognize", "meta": {"filepath": "src/Symfony/Component/Form/Util/OrderedHashMap.php", "language": "php", "file_size": 4276, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Util;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\n\n/**\n * @author Bernhard Schussek \n */\nclass ServerParams\n{\n public function __construct(\n private ?RequestStack $requestStack = null,\n ) {\n }\n\n /**\n * Returns true if the POST max size has ", "suffix": "ntLength && $contentLength > $maxContentLength;\n }\n\n /**\n * Returns maximum post size in bytes.\n */\n public function getPostMaxSize(): int|float|null\n {\n $iniMax = strtolower($this->getNormalizedIniPostMaxSize());\n\n if (''", "middle": "been exceeded in the request.\n */\n public function hasPostMaxSizeBeenExceeded(): bool\n {\n $contentLength = $this->getContentLength();\n $maxContentLength = $this->getPostMaxSize();\n\n return $maxConte", "meta": {"filepath": "src/Symfony/Component/Form/Util/ServerParams.php", "language": "php", "file_size": 2294, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between an ISO 8601 week date string and an array.\n *\n * @author Damien Fayet \n *\n * @implements DataTransformerInterface\\d{4})-W(?P\n */\nclass WeekToArrayTransformer implements DataTransformerInterface\n{\n public function transform(mixed $value): array\n {\n if (null === $value) {\n return ['year' => null, 'week' => nu", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/WeekToArrayTransformer.php", "language": "php", "file_size": 3135, "cut_index": 614, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\HtmlSanitizer;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Form\\AbstractExtension;\n\n/**\n * Integrates the HtmlSanitizer component with the Form library.\n *\n * @author Nicolas Grekas \n */\nclass HtmlSanitizerExtension extends AbstractEx", "suffix": "rivate ContainerInterface $sanitizers,\n private string $defaultSanitizer = 'default',\n ) {\n }\n\n protected function loadTypeExtensions(): array\n {\n return [\n new Type\\TextTypeHtmlSanitizerExtension($this->sanitizers, $th", "middle": "tension\n{\n public function __construct(\n p", "meta": {"filepath": "src/Symfony/Component/Form/Extension/HtmlSanitizer/HtmlSanitizerExtension.php", "language": "php", "file_size": 897, "cut_index": 547, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a DateTimeImmutable object and a DateTime object.\n *\n * @author Valentin", "suffix": "ansform(mixed $value): ?\\DateTime\n {\n if (null === $value) {\n return null;\n }\n\n if (!$value instanceof \\DateTimeImmutable) {\n throw new TransformationFailedException('Expected a \\DateTimeImmutable.');\n }", "middle": " Udaltsov \n *\n * @implements DataTransformerInterface<\\DateTimeImmutable, \\DateTime>\n */\nfinal class DateTimeImmutableToDateTimeTransformer implements DataTransformerInterface\n{\n public function tr", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeImmutableToDateTimeTransformer.php", "language": "php", "file_size": 1421, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a date string and a DateTime object.\n *\n * @author Bernhard Schussek \n * @author Florian Eckerstorfer \n *\n * @extends BaseDateTimeTransformer\n */\nclass DateTime", "suffix": "e {@link $generateFormat} because formats for parsing\n * support additional characters in PHP that are not supported for\n * generating strings.\n */\n private string $parseFormat;\n\n /**\n * Transforms a \\DateTime instance to a string.\n ", "middle": "ToStringTransformer extends BaseDateTimeTransformer\n{\n /**\n * Format used for generating strings.\n */\n private string $generateFormat;\n\n /**\n * Format used for parsing strings.\n *\n * Different than th", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToStringTransformer.php", "language": "php", "file_size": 4201, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a timestamp and a DateTime object.\n *\n * @author Bernhard Schussek \n * @author Florian Eckerstorfer getTimestamp();\n }\n\n publi", "middle": "rfer.org>\n *\n * @extends BaseDateTimeTransformer\n */\nclass DateTimeToTimestampTransformer extends BaseDateTimeTransformer\n{\n public function transform(mixed $dateTime): ?int\n {\n if (null === $date", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToTimestampTransformer.php", "language": "php", "file_size": 1780, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\n\n/**\n * Transforms between a normalized format (integer or float) and a percentage value.\n *\n * @author Bernhard Schussek \n * @author Florian Eckerstorfer \n *\n * @implements DataTran", "suffix": " $types = [\n self::FRACTIONAL,\n self::INTEGER,\n ];\n\n private string $type;\n private int $scale;\n\n /**\n * @see self::$types for a list of supported types\n *\n * @param int $roundingMode A value from \\NumberFormatter, su", "middle": "sformerInterface\n */\nclass PercentToLocalizedStringTransformer implements DataTransformerInterface\n{\n public const FRACTIONAL = 'fractional';\n public const INTEGER = 'integer';\n\n protected static array", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php", "language": "php", "file_size": 7219, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Util;\n\n/**\n * Iterator that traverses an array of forms.\n *\n * Contrary to \\ArrayIterator, this iterator recognizes changes in the original\n * array during iteration.\n *\n * You can wrap the iterator into a {@link \\RecursiveIteratorIterator} ", "suffix": "tor implements \\RecursiveIterator\n{\n public function getChildren(): static\n {\n return new static($this->current());\n }\n\n public function hasChildren(): bool\n {\n return (bool) $this->current()->getConfig()->getInheritData();\n ", "middle": "in order to\n * enter any child form that inherits its parent's data and iterate the children\n * of that form as well.\n *\n * @author Bernhard Schussek \n */\nclass InheritDataAwareIterator extends \\IteratorItera", "meta": {"filepath": "src/Symfony/Component/Form/Util/InheritDataAwareIterator.php", "language": "php", "file_size": 1002, "cut_index": 512, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Util;\n\n/**\n * @author Issei Murasawa \n * @author Bernhard Schussek \n */\nclass StringUtil\n{\n /**\n * This class should not be instantiated.\n */\n private function __construct()\n {\n }\n\n /**\n * Returns t", "suffix": " }\n\n return trim($string);\n }\n\n /**\n * Converts both CRLF and CR to LF.\n */\n public static function normalizeNewlines(string $string): string\n {\n return str_replace([\"\\r\\n\", \"\\r\"], \"\\n\", $string);\n }\n\n /**\n * Con", "middle": "he trimmed data.\n */\n public static function trim(string $string): string\n {\n if (null !== $result = @preg_replace('/^[\\pZ\\p{Cc}\\p{Cf}]+|[\\pZ\\p{Cc}\\p{Cf}]+$/u', '', $string)) {\n return $result;\n ", "meta": {"filepath": "src/Symfony/Component/Form/Util/StringUtil.php", "language": "php", "file_size": 1528, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataMapper;\n\nuse Symfony\\Component\\Form\\DataAccessorInterface;\nuse Symfony\\Component\\Form\\DataMapperInterface;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataAccessor\\CallbackAccessor;\nuse Symfony\\Component\\Form\\Exte", "suffix": "com>\n */\nclass DataMapper implements DataMapperInterface\n{\n private DataAccessorInterface $dataAccessor;\n\n public function __construct(?DataAccessorInterface $dataAccessor = null)\n {\n $this->dataAccessor = $dataAccessor ?? new ChainAccessor", "middle": "nsion\\Core\\DataAccessor\\ChainAccessor;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataAccessor\\PropertyPathAccessor;\n\n/**\n * Maps arrays/objects to/from forms using data accessors.\n *\n * @author Bernhard Schussek \n * @author Bernhard Schussek \n * @author Fred Cox \n *\n * @extends BaseDateTimeTransformer\n */\nclass DateTimeToHtml5LocalDateTimeTransformer ex", "suffix": "null, private bool $withSeconds = false)\n {\n parent::__construct($inputTimezone, $outputTimezone);\n }\n\n /**\n * According to the HTML standard, the input string of a datetime-local\n * input is an RFC3339 date followed by 'T', followe", "middle": "tends BaseDateTimeTransformer\n{\n public const HTML5_FORMAT = 'Y-m-d\\\\TH:i:s';\n public const HTML5_FORMAT_NO_SECONDS = 'Y-m-d\\\\TH:i';\n\n public function __construct(?string $inputTimezone = null, ?string $outputTimezone = ", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToHtml5LocalDateTimeTransformer.php", "language": "php", "file_size": 3583, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between a normalized format and a localized money string.\n *\n * @author Bernhard Schussek \n * @author Florian Eckerstorfer \n ", "suffix": "de = \\NumberFormatter::ROUND_HALFUP,\n ?int $divisor = 1,\n ?string $locale = null,\n private readonly string $input = 'float',\n ) {\n parent::__construct($scale ?? 2, $grouping ?? true, $roundingMode, $locale);\n\n $this->d", "middle": "*/\nclass MoneyToLocalizedStringTransformer extends NumberToLocalizedStringTransformer\n{\n private int $divisor;\n\n public function __construct(\n ?int $scale = 2,\n ?bool $grouping = true,\n ?int $roundingMo", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformer.php", "language": "php", "file_size": 2063, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Util;\n\n/**\n * Iterator for {@link OrderedHashMap} objects.\n *\n * @author Bernhard Schussek \n *\n * @internal\n *\n * @template-covariant TValue\n *\n * @implements \\Iterator\n */\nclass OrderedHashMapIterator implements \\Iterator\n{\n private int $cursor = 0;\n private int $cursorId;\n private ?string $key ", "suffix": "ram list $orderedKeys The keys of the map in the order in which\n * they should be iterated\n * @param array $managedCursors An array from which to reference the\n * ", "middle": "= null;\n /** @var TValue|null */\n private mixed $current = null;\n\n /**\n * @param TValue[] $elements The elements of the map, indexed by their\n * keys\n * @pa", "meta": {"filepath": "src/Symfony/Component/Form/Util/OrderedHashMapIterator.php", "language": "php", "file_size": 3274, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\DependencyInjection;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\FormExtensionInterface;\nuse Symfony\\Component\\Form\\FormTypeExtensionInterface;\nuse Symfony\\Component\\Form\\FormTypeGuesserChain;\nuse Symfony\\Component\\Form\\FormTypeGuesserInterface;\nus", "suffix": "m array> $typeExtensionServices\n */\n public function __construct(\n private ContainerInterface $typeContainer,\n private array $typeExtensionServices,\n private iterable $guesserServices", "middle": "e Symfony\\Component\\Form\\FormTypeInterface;\n\nclass DependencyInjectionExtension implements FormExtensionInterface\n{\n private ?FormTypeGuesserChain $guesser = null;\n private bool $guesserLoaded = false;\n\n /**\n * @para", "meta": {"filepath": "src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php", "language": "php", "file_size": 3104, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Uid\\Ulid;\n\n/**\n * Transforms between a ULID string and a Ulid object.\n *\n * @author Pavel ", "suffix": "ll === $value) {\n return null;\n }\n\n if (!$value instanceof Ulid) {\n throw new TransformationFailedException('Expected a Ulid.');\n }\n\n return (string) $value;\n }\n\n public function reverseTransform(mixe", "middle": "Dyakonov \n *\n * @implements DataTransformerInterface\n */\nclass UlidToStringTransformer implements DataTransformerInterface\n{\n public function transform(mixed $value): ?string\n {\n if (nu", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/UlidToStringTransformer.php", "language": "php", "file_size": 1521, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Transforms between an integer and a localized number with grouping\n * (each thousand) and comma separators.\n *\n * @author Bernhard Schussek \n */\nclass IntegerToLocalizedStringTransformer extends NumberToLocalizedStringTransformer\n{\n /**\n * Constructs a transformer.\n *\n * @param bool $grouping Whether thousands should be grouped\n * @p", "meta": {"filepath": "src/Symfony/Component/Form/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformer.php", "language": "php", "file_size": 1769, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\DataCollector\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\FormDataCollector;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\FormDataExtractor;\nuse Symfony\\Component\\Form\\E", "suffix": "omponent\\Form\\ResolvedFormTypeFactory;\n\nclass DataCollectorTypeExtensionTest extends TestCase\n{\n private DataCollectorTypeExtension $extension;\n\n protected function setUp(): void\n {\n $this->extension = new DataCollectorTypeExtension(new For", "middle": "xtension\\DataCollector\\Type\\DataCollectorTypeExtension;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\FormFactory;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\C", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php", "language": "php", "file_size": 2378, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\HttpFoundation;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\DataMapper;\nuse Symfony\\Component\\Form\\Extension\\HttpFoundation\\HttpFoundationRequestHand", "suffix": "ase;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * @author Bernhard Schussek \n */\nclass HttpFoundationRequestHandlerTest extends AbstractRequestHandlerTestCase\n{\n publi", "middle": "ler;\nuse Symfony\\Component\\Form\\Extension\\HttpFoundation\\Type\\FormTypeHttpFoundationExtension;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\Forms;\nuse Symfony\\Component\\Form\\Tests\\AbstractRequestHandlerTestC", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/HttpFoundation/HttpFoundationRequestHandlerTest.php", "language": "php", "file_size": 2974, "cut_index": 563, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\n\nclass ChoiceTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n r", "suffix": "actory->create(ChoiceType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('The selected choice is invalid.', $form->getConfig()->getOption('invalid_message'));\n ", "middle": "eturn $this->f", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/ChoiceTypeValidatorExtensionTest.php", "language": "php", "file_size": 791, "cut_index": 514, "middle_length": 14}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType;\n\nclass CollectionTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "is->factory->create(CollectionType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('The collection is invalid.', $form->getConfig()->getOption('invalid_message')", "middle": " return $th", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/CollectionTypeValidatorExtensionTest.php", "language": "php", "file_size": 798, "cut_index": 517, "middle_length": 14}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ColorType;\n\nclass ColorTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n re", "suffix": "ctory->create(ColorType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please select a valid color.', $form->getConfig()->getOption('invalid_message'));\n }\n", "middle": "turn $this->fa", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/ColorTypeValidatorExtensionTest.php", "language": "php", "file_size": 785, "cut_index": 513, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CountryType;\n\nclass CountryTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": ">factory->create(CountryType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please select a valid country.', $form->getConfig()->getOption('invalid_message'));", "middle": " return $this-", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/CountryTypeValidatorExtensionTest.php", "language": "php", "file_size": 793, "cut_index": 514, "middle_length": 14}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CurrencyType;\n\nclass CurrencyTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "factory->create(CurrencyType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please select a valid currency.', $form->getConfig()->getOption('invalid_message'))", "middle": "return $this->", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/CurrencyTypeValidatorExtensionTest.php", "language": "php", "file_size": 797, "cut_index": 517, "middle_length": 14}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\DateIntervalType;\n\nclass DateIntervalTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "s->factory->create(DateIntervalType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please choose a valid date interval.', $form->getConfig()->getOption('invali", "middle": " return $thi", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/DateIntervalTypeValidatorExtensionTest.php", "language": "php", "file_size": 814, "cut_index": 522, "middle_length": 14}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\DateTimeType;\n\nclass DateTimeTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "ull, $options + ['widget' => 'choice']);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter a valid date and time.', $form->getConfig()->getOption('invalid_message'));\n }\n}", "middle": "return $this->factory->create(DateTimeType::class, n", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/DateTimeTypeValidatorExtensionTest.php", "language": "php", "file_size": 826, "cut_index": 517, "middle_length": 52}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType;\n\nclass DateTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n return $", "suffix": ">create(DateType::class, null, $options + ['widget' => 'choice']);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter a valid date.', $form->getConfig()->getOption('invalid_me", "middle": "this->factory-", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/DateTypeValidatorExtensionTest.php", "language": "php", "file_size": 805, "cut_index": 517, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType;\n\nclass EmailTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ret", "suffix": "tory->create(EmailType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter a valid email address.', $form->getConfig()->getOption('invalid_message'));\n", "middle": "urn $this->fac", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/EmailTypeValidatorExtensionTest.php", "language": "php", "file_size": 792, "cut_index": 514, "middle_length": 14}} {"prefix": "alidatorExtension;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Form\\Forms;\nuse Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type\\CollectionTypeTest;\nuse Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type\\FormTypeTest;\nuse Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type\\TextTypeTest;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\Author;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\AuthorType;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\Organization;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOpti", "suffix": "l;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\MetadataFactoryInterface;\nuse Symfony\\Component\\Validator\\Validation;\n\nclass FormTypeValidatorExten", "middle": "onsException;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNul", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/FormTypeValidatorExtensionTest.php", "language": "php", "file_size": 13847, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\HiddenType;\n\nclass HiddenTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n retur", "suffix": "ry->create(HiddenType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('The hidden field is invalid.', $form->getConfig()->getOption('invalid_message'));\n }\n}\n", "middle": "n $this->facto", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/HiddenTypeValidatorExtensionTest.php", "language": "php", "file_size": 788, "cut_index": 518, "middle_length": 14}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType;\n\nclass IntegerTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "->factory->create(IntegerType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter an integer.', $form->getConfig()->getOption('invalid_message'));\n ", "middle": " return $this", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/IntegerTypeValidatorExtensionTest.php", "language": "php", "file_size": 787, "cut_index": 513, "middle_length": 14}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\LanguageType;\n\nclass LanguageTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "factory->create(LanguageType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please select a valid language.', $form->getConfig()->getOption('invalid_message'))", "middle": "return $this->", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/LanguageTypeValidatorExtensionTest.php", "language": "php", "file_size": 797, "cut_index": 517, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\LocaleType;\n\nclass LocaleTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n r", "suffix": "actory->create(LocaleType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please select a valid locale.', $form->getConfig()->getOption('invalid_message'));\n ", "middle": "eturn $this->f", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/LocaleTypeValidatorExtensionTest.php", "language": "php", "file_size": 789, "cut_index": 514, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType;\n\nclass MoneyTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ret", "suffix": "tory->create(MoneyType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter a valid money amount.', $form->getConfig()->getOption('invalid_message'));\n ", "middle": "urn $this->fac", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/MoneyTypeValidatorExtensionTest.php", "language": "php", "file_size": 791, "cut_index": 514, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType;\n\nclass NumberTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": ">factory->create(NumberType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter a number.', $form->getConfig()->getOption('invalid_message'));\n }\n}\n", "middle": " return $this-", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/NumberTypeValidatorExtensionTest.php", "language": "php", "file_size": 782, "cut_index": 512, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\n\nclass PasswordTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "s->factory->create(PasswordType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('The password is invalid.', $form->getConfig()->getOption('invalid_message'));\n ", "middle": " return $thi", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/PasswordTypeValidatorExtensionTest.php", "language": "php", "file_size": 790, "cut_index": 514, "middle_length": 14}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PercentType;\n\nclass PercentTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n return $this->factor", "suffix": "nding_mode' => \\NumberFormatter::ROUND_CEILING]);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter a percentage value.', $form->getConfig()->getOption('invalid_message'));\n ", "middle": "y->create(PercentType::class, null, $options + ['rou", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/PercentTypeValidatorExtensionTest.php", "language": "php", "file_size": 850, "cut_index": 535, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\RadioType;\n\nclass RadioTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n re", "suffix": "ctory->create(RadioType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please select a valid option.', $form->getConfig()->getOption('invalid_message'));\n }", "middle": "turn $this->fa", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/RadioTypeValidatorExtensionTest.php", "language": "php", "file_size": 786, "cut_index": 513, "middle_length": 14}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\RangeType;\n\nclass RangeTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n re", "suffix": "ctory->create(RangeType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please choose a valid range.', $form->getConfig()->getOption('invalid_message'));\n }\n", "middle": "turn $this->fa", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/RangeTypeValidatorExtensionTest.php", "language": "php", "file_size": 785, "cut_index": 513, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\RepeatedType;\n\nclass RepeatedTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "s->factory->create(RepeatedType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('The values do not match.', $form->getConfig()->getOption('invalid_message'));\n ", "middle": " return $thi", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/RepeatedTypeValidatorExtensionTest.php", "language": "php", "file_size": 790, "cut_index": 514, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\SearchType;\n\nclass SearchTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n r", "suffix": "actory->create(SearchType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter a valid search term.', $form->getConfig()->getOption('invalid_message'));", "middle": "eturn $this->f", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/SearchTypeValidatorExtensionTest.php", "language": "php", "file_size": 793, "cut_index": 514, "middle_length": 14}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TelType;\n\nclass TelTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n return", "suffix": "y->create(TelType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please provide a valid phone number.', $form->getConfig()->getOption('invalid_message'));\n ", "middle": " $this->factor", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/TelTypeValidatorExtensionTest.php", "language": "php", "file_size": 787, "cut_index": 513, "middle_length": 14}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TimeType;\n\nclass TimeTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n return $", "suffix": ">create(TimeType::class, null, $options + ['widget' => 'choice']);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter a valid time.', $form->getConfig()->getOption('invalid_me", "middle": "this->factory-", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/TimeTypeValidatorExtensionTest.php", "language": "php", "file_size": 805, "cut_index": 517, "middle_length": 14}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TimezoneType;\n\nclass TimezoneTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "factory->create(TimezoneType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please select a valid timezone.', $form->getConfig()->getOption('invalid_message'))", "middle": "return $this->", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/TimezoneTypeValidatorExtensionTest.php", "language": "php", "file_size": 797, "cut_index": 517, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Validator\\Type\\UploadValidatorExtension;\nuse Symfony\\Component\\Form\\Test\\TypeTestCase;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Sym", "suffix": "ed function setUp(): void\n {\n $this->dispatcher = new EventDispatcher();\n\n parent::setUp();\n }\n\n public function testPostMaxSizeTranslation()\n {\n $extension = new UploadValidatorExtension(new DummyTranslator());\n\n $r", "middle": "fony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Contracts\\Translation\\LocaleAwareInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass UploadValidatorExtensionTest extends TypeTestCase\n{\n protect", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/UploadValidatorExtensionTest.php", "language": "php", "file_size": 1834, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\DataMapper;\nuse Symfony\\Component\\Form\\Extension\\Validator\\Constraints\\Form as FormConstraint;\nuse Symfony\\Component\\Form\\Extension\\Validator\\EventListener\\ValidationListener;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapper;\nuse Sym", "suffix": "ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationInterface;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\nuse Symfony\\Component\\Validator\\Context\\ExecutionC", "middle": "fony\\Component\\Form\\Form;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormConfigBuilder;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\nuse Symfony\\Component\\Validator\\", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php", "language": "php", "file_size": 5604, "cut_index": 716, "middle_length": 229}} {"prefix": "chronized()\n {\n $violation = $this->getConstraintViolation('children[address].data.street');\n $parent = $this->getForm('parent');\n $child = $this->getForm('address', 'address', null, [], false, false);\n // even though \"street\" is synchronized, it should not have any errors\n // due to its parent not being synchronized\n $grandChild = $this->getForm('street', 'street');\n\n $parent->add($child);\n $child->add($grandChild);\n\n // invoke the transform", "suffix": "as one');\n $this->assertCount(0, $child->getErrors(), $child->getName().' should not have an error, but has one');\n $this->assertCount(0, $grandChild->getErrors(), $grandChild->getName().' should not have an error, but has one');\n }\n\n p", "middle": "er and mark the form unsynchronized\n $parent->submit([]);\n\n $this->mapper->mapViolation($violation, $parent);\n\n $this->assertCount(0, $parent->getErrors(), $parent->getName().' should not have an error, but h", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php", "language": "php", "file_size": 155149, "cut_index": 7068, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\ViolationMapper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationPath;\n\n/**\n * @author Bernhard Schussek \n */\nclass ViolationPathTest extends TestCase\n{\n public static function providePaths()\n {\n return [\n ['children[address]', [\n ['address', true, true],", "suffix": "address', true, true],\n ['street', true, true],\n ], 'children[address].children[street]'],\n ['children[address].data', [\n ['address', true, true],\n ], 'children[address]'],\n ['childr", "middle": "\n ]],\n ['children[address].children[street]', [\n ['address', true, true],\n ['street', true, true],\n ]],\n ['children[address][street]', [\n ['", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationPathTest.php", "language": "php", "file_size": 7279, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Extension\\Core\\CoreExtension;\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\n\nclass CoreExtensionTest extends TestCase\n{\n public function testTransformationFailuresAreConvertedIntoFormErrors()\n {\n $formFactoryBuilder", "suffix": "$formFactoryBuilder->addExtension(new CoreExtension())\n ->getFormFactory();\n\n $form = $formFactory->createBuilder()\n ->add('foo', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType', ['widget' => 'choice'])\n ->getF", "middle": " = new FormFactoryBuilder();\n $formFactory = ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/CoreExtensionTest.php", "language": "php", "file_size": 982, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Csrf\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\DataMapper;\nuse Symfony\\Component\\Form\\Extension\\Csrf\\EventListener\\CsrfValidationListener;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormErr", "suffix": "ams;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManager;\n\nclass CsrfValidationListenerTest extends TestCase\n{\n protected EventDispatcher $dispatcher;\n protected FormFactoryInterface $factory;\n protected CsrfTokenManager $tokenManager;\n protec", "middle": "orIterator;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\Util\\ServerPar", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php", "language": "php", "file_size": 3067, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Extension\\Validator\\Constraints\\Form as FormConstraint;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ValidatorExtension;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ValidatorTypeGuesser;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Validator", "suffix": "nt\\Validator\\Validation;\n\nclass ValidatorExtensionTest extends TestCase\n{\n public function test2Dot5ValidationApi()\n {\n $metadata = new ClassMetadata(Form::class);\n\n $metadataFactory = new FakeMetadataFactory();\n $metadataFactory", "middle": "\\Mapping\\CascadingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\TraversalStrategy;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\FakeMetadataFactory;\nuse Symfony\\Compone", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorExtensionTest.php", "language": "php", "file_size": 3136, "cut_index": 614, "middle_length": 229}} {"prefix": "m\\Extension\\Validator\\ValidatorExtension;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Component\\Validator\\Constraints\\Collection;\nuse Symfony\\Component\\Validator\\Constraints\\Expression;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\Not", "suffix": "Loader\\StaticMethodLoader;\nuse Symfony\\Component\\Validator\\Validation;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\nclass FormValidatorFunctionalTest extends TestCase\n{\n private ValidatorInterface $validator;\n private FormFactoryInt", "middle": "Blank;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\LazyLoadingMetadataFactory;\nuse Symfony\\Component\\Validator\\Mapping\\", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php", "language": "php", "file_size": 19318, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ValidatorExtension;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\Tes", "suffix": "ensions(?ViolationMapperInterface $violationMapper = null): array\n {\n return [\n new ValidatorExtension(Validation::createValidator(), $violationMapper),\n ];\n }\n\n /**\n * findClickedButton() used to have an exponential n", "middle": "t\\FormPerformanceTestCase;\nuse Symfony\\Component\\Validator\\Validation;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormValidatorPerformanceTest extends FormPerformanceTestCase\n{\n protected function getExt", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorPerformanceTest.php", "language": "php", "file_size": 1593, "cut_index": 537, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\BirthdayType;\n\nclass BirthdayTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": ", null, $options + ['widget' => 'choice']);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('Please enter a valid birthdate.', $form->getConfig()->getOption('invalid_message'));\n }\n}\n", "middle": " return $this->factory->create(BirthdayType::class", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/BirthdayTypeValidatorExtensionTest.php", "language": "php", "file_size": 822, "cut_index": 514, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\ButtonBuilder;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormFactory;\nuse Symfony\\Comp", "suffix": "mFactory $factory;\n private FormBuilder $builder;\n\n protected function setUp(): void\n {\n $this->factory = new FormFactory(new FormRegistry([], new ResolvedFormTypeFactory()));\n $this->builder = new FormBuilder('name', null, new Event", "middle": "onent\\Form\\FormFactoryBuilder;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\nuse Symfony\\Component\\Form\\SubmitButtonBuilder;\n\nclass FormBuilderTest extends TestCase\n{\n private For", "meta": {"filepath": "src/Symfony/Component/Form/Tests/FormBuilderTest.php", "language": "php", "file_size": 6401, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\FormConfigBuilder;\nuse Symfony\\Component\\Form\\NativeRequestHandler;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormConfigTest extends TestCase\n{\n pu", "suffix": " ['a#', 'Symfony\\Component\\Form\\Exception\\InvalidArgumentException'],\n ['a$', 'Symfony\\Component\\Form\\Exception\\InvalidArgumentException'],\n ['a%', 'Symfony\\Component\\Form\\Exception\\InvalidArgumentException'],\n ['a ', 'Symf", "middle": "blic static function getHtml4Ids()\n {\n return [\n ['z0'],\n ['A0'],\n ['A9'],\n ['Z0'],\n ['#', 'Symfony\\Component\\Form\\Exception\\InvalidArgumentException'],\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/FormConfigTest.php", "language": "php", "file_size": 4669, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormFactory;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\FormTypeGuesserChain;\nuse Symfony\\Component\\Form\\FormTypeGuesserInterface;\nuse Symfony\\Component\\Form\\Guess\\Guess;\nuse Symfony\\Component\\Form\\Guess\\TypeGuess;\nuse Symfony\\Componen", "suffix": "sek@gmail.com>\n */\nclass FormFactoryTest extends TestCase\n{\n private ConfigurableFormTypeGuesser $guesser1;\n private ConfigurableFormTypeGuesser $guesser2;\n private FormRegistry $registry;\n private FormFactory $factory;\n\n protected function ", "middle": "t\\Form\\Guess\\ValueGuess;\nuse Symfony\\Component\\Form\\PreloadedExtension;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\ConfigurableFormType;\n\n/**\n * @author Bernhard Schussek \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\DummyFormRendererEngine;\n\nclass ", "suffix": " $this->assertEquals('Is active', $renderer->humanize('isActive'));\n }\n\n public function testRenderARenderedField()\n {\n $this->expectException(BadMethodCallException::class);\n $this->expectExceptionMessage('Field \"foo\" has already b", "middle": "FormRendererTest extends TestCase\n{\n public function testHumanize()\n {\n $renderer = new FormRenderer(new DummyFormRendererEngine());\n\n $this->assertEquals('Is active', $renderer->humanize('is_active'));\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/FormRendererTest.php", "language": "php", "file_size": 1354, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\NativeRequestHandler;\n\n/**\n * @author Bernhard Schussek \n */\nclass NativeRequestHandlerTest extends AbstractRequestHandlerTestCase\n{\n private static array $serverBackup;\n\n public static function setUpBeforeClass(): void\n {\n self::$serverBackup = $_SERVER;\n }\n\n protected function setUp(): void\n {\n ", "suffix": " protected function tearDown(): void\n {\n $_GET = [];\n $_POST = [];\n $_FILES = [];\n $_SERVER = self::$serverBackup;\n }\n\n public function testRequestShouldBeNull()\n {\n $this->expectException(UnexpectedTypeExce", "middle": " parent::setUp();\n\n $_GET = [];\n $_POST = [];\n $_FILES = [];\n $_SERVER = [\n // PHPUnit needs this entry\n 'SCRIPT_NAME' => self::$serverBackup['SCRIPT_NAME'],\n ];\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/NativeRequestHandlerTest.php", "language": "php", "file_size": 8126, "cut_index": 716, "middle_length": 229}} {"prefix": "unt = $count;\n }\n\n public function count(): int\n {\n return $this->count;\n }\n}\n\nclass SimpleFormTest_Traversable implements \\IteratorAggregate\n{\n private \\ArrayIterator $iterator;\n\n public function __construct($count)\n {\n $this->iterator = new \\ArrayIterator($count > 0 ? array_fill(0, $count, 'Foo') : []);\n }\n\n public function getIterator(): \\Traversable\n {\n return $this->iterator;\n }\n}\n\nclass SimpleFormTest extends TestCase\n{\n private Form $form;\n\n ", "suffix": "gBuilder($name, null, new EventDispatcher());\n $form = new Form($config);\n\n $this->assertEquals($propertyPath, $form->getPropertyPath());\n }\n\n public static function provideFormNames(): iterable\n {\n yield [null, null];\n ", "middle": " protected function setUp(): void\n {\n $this->form = $this->createForm();\n }\n\n #[DataProvider('provideFormNames')]\n public function testGetPropertyPath($name, $propertyPath)\n {\n $config = new FormConfi", "meta": {"filepath": "src/Symfony/Component/Form/Tests/SimpleFormTest.php", "language": "php", "file_size": 35575, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Flow;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\InMemoryDataStorage;\nuse Symfony\\Component\\Form\\Flow\\FormFlowBuilder;\nuse Symfony\\C", "suffix": "s\\PropertyPath;\n\nclass FormFlowBuilderTest extends TestCase\n{\n private FormFactoryInterface $factory;\n private InMemoryDataStorage $dataStorage;\n private PropertyPathStepAccessor $stepAccessor;\n\n protected function setUp(): void\n {\n $", "middle": "omponent\\Form\\Flow\\StepAccessor\\PropertyPathStepAccessor;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\Form\\Forms;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAcces", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Flow/FormFlowBuilderTest.php", "language": "php", "file_size": 3358, "cut_index": 614, "middle_length": 229}} {"prefix": "adataFactory(new AttributeLoader()))\n ->getValidator();\n\n $this->factory = Forms::createFormFactoryBuilder()\n ->addExtensions([new ValidatorExtension($validator)])\n ->getFormFactory();\n }\n\n public function testFlowConfig()\n {\n $flow = $this->factory->create(UserSignUpType::class, new UserSignUp());\n $config = $flow->getConfig();\n\n self::assertInstanceOf(UserSignUp::class, $data = $config->getData());\n self::assertEquals(['data' => ", "suffix": "e($config->hasStep('account'));\n }\n\n public function testFlowCursor()\n {\n $flow = $this->factory->create(UserSignUpType::class, new UserSignUp());\n $cursor = $flow->getCursor();\n\n self::assertSame('personal', $cursor->getCurre", "middle": "$data], $config->getInitialOptions());\n self::assertCount(3, $config->getSteps());\n self::assertTrue($config->hasStep('personal'));\n self::assertTrue($config->hasStep('professional'));\n self::assertTru", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Flow/FormFlowTest.php", "language": "php", "file_size": 36804, "cut_index": 2151, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\DataCollectorExtension;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\FormDataCollector;\nuse Symfony\\Component\\Form\\Extension\\DataCol", "suffix": "tion setUp(): void\n {\n $this->extension = new DataCollectorExtension(new FormDataCollector(new FormDataExtractor()));\n }\n\n public function testLoadTypeExtensions()\n {\n $typeExtensions = $this->extension->getTypeExtensions('Symfony", "middle": "lector\\FormDataExtractor;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\Type\\DataCollectorTypeExtension;\n\nclass DataCollectorExtensionTest extends TestCase\n{\n private DataCollectorExtension $extension;\n\n protected func", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/DataCollector/DataCollectorExtensionTest.php", "language": "php", "file_size": 1259, "cut_index": 524, "middle_length": 229}} {"prefix": "nt\\Form\\CallbackTransformer;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\DataMapper;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\HiddenType;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\FormDataExtractor;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormFactory;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\For", "suffix": "aintViolation;\nuse Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormDataExtractorTest extends TestCase\n{\n use VarDumperTestTrait;\n\n private FormDataExtractor $dataExtractor;\n\n ", "middle": "m\\ResolvedFormType;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\FixedDataTransformer;\nuse Symfony\\Component\\Validator\\Constraints\\WordCount;\nuse Symfony\\Component\\Validator\\Constr", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataExtractorTest.php", "language": "php", "file_size": 13272, "cut_index": 921, "middle_length": 229}} {"prefix": "ent\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Csrf\\CsrfExtension;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\Test\\TypeTestCase;\nuse Symfony\\Component\\Security\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Component\\Translation\\IdentityTra", "suffix": "tion by\n // default\n $builder->add('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType');\n }\n}\n\nclass FormTypeCsrfExtensionTest extends TypeTestCase\n{\n protected MockObject&CsrfTokenManagerInterface $tokenManager;\n\n protecte", "middle": "nslator;\n\nclass FormTypeCsrfExtensionTest_ChildType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n // The form needs a child in order to trigger CSRF protec", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php", "language": "php", "file_size": 13623, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType;\nuse Symfony\\Component\\Form\\Extension\\C", "suffix": "Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\Email;\nuse Symfony\\Component\\Validator\\Constraints\\File;\nuse Symfony\\Component\\Validator\\Constraints\\IsTrue;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Compone", "middle": "ore\\Type\\TextType;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ValidatorTypeGuesser;\nuse Symfony\\Component\\Form\\Guess\\Guess;\nuse Symfony\\Component\\Form\\Guess\\TypeGuess;\nuse Symfony\\Component\\Form\\Guess\\ValueGuess;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorTypeGuesserTest.php", "language": "php", "file_size": 8493, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ValidatorExtension;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\Test\\FormInterface;\nuse Symfony\\Component\\Form\\Test\\TypeTestCase;\nuse Sy", "suffix": "\n{\n protected function setUp(): void\n {\n $this->dispatcher = new EventDispatcher();\n\n parent::setUp();\n }\n\n public function testValidationGroupNullByDefault()\n {\n $form = $this->createForm();\n\n $this->assertNull($", "middle": "mfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\ValidatorBuilder;\n\n/**\n * @author Bernhard Schussek \n */\nabstract class BaseValidatorExtensionTestCase extends TypeTestCase", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/BaseValidatorExtensionTestCase.php", "language": "php", "file_size": 3134, "cut_index": 614, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType;\n\nclass CheckboxTypeValidatorExtensionTest extends BaseValidatorExtensionTestCase\n{\n protected function createForm(array $options = [])\n {\n ", "suffix": "factory->create(CheckboxType::class, null, $options);\n }\n\n public function testInvalidMessage()\n {\n $form = $this->createForm();\n\n $this->assertSame('The checkbox has an invalid value.', $form->getConfig()->getOption('invalid_message", "middle": "return $this->", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Validator/Type/CheckboxTypeValidatorExtensionTest.php", "language": "php", "file_size": 800, "cut_index": 517, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\FormTypeGuesserChain;\nuse Symfony\\Component\\Form\\PreloadedExtension;\nuse Symfony\\Component\\Form\\ResolvedFormType;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\FooSubType;\nu", "suffix": "eParentType;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\NullFormTypeGuesser;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\RecursiveFormTypeBar;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\RecursiveFormTypeBaz;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\RecursiveF", "middle": "se Symfony\\Component\\Form\\Tests\\Fixtures\\FooType;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\FooTypeBarExtension;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\FooTypeBazExtension;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\FormWithSam", "meta": {"filepath": "src/Symfony/Component/Form/Tests/FormRegistryTest.php", "language": "php", "file_size": 7057, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormFactory;\nuse Symfony\\Component\\Form", "suffix": "res\\ConfigurableFormType;\nuse Symfony\\Component\\OptionsResolver\\Exception\\MissingOptionsException;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Bernhard Schussek \n */\nclass ResolvedFormTypeTest extends TestCas", "middle": "\\FormInterface;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\ResolvedFormType;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\nuse Symfony\\Component\\Form\\Tests\\Fixtu", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php", "language": "php", "file_size": 8479, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Flow\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Flow\\Type\\NavigatorFlowType;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\Form\\Forms;\n\nclass NavigatorFlowTypeTest extends TestCase\n{\n private Form", "suffix": "form = $this->factory->create(NavigatorFlowType::class);\n\n self::assertTrue($form->has('previous'));\n self::assertTrue($form->has('next'));\n self::assertTrue($form->has('finish'));\n self::assertFalse($form->has('reset'));\n }\n", "middle": "FactoryInterface $factory;\n\n protected function setUp(): void\n {\n $this->factory = Forms::createFormFactoryBuilder()->getFormFactory();\n }\n\n public function testDefaultOptionsDoNotIncludeReset()\n {\n $", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Flow/Type/NavigatorFlowTypeTest.php", "language": "php", "file_size": 1392, "cut_index": 524, "middle_length": 229}} {"prefix": "nterface;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\n\nclass FormDataCollectorTest extends TestCase\n{\n private FormDataCollector $dataCollector;\n private FormFactory $factory;\n private FormInterface $form;\n private FormInterface $childForm;\n private FormView $view;\n private FormView $childView;\n\n protected function setUp(): void\n {\n $this->dataCollector = new FormDataCollector(new FormDataExt", "suffix": "d');\n $this->view = new FormView();\n $this->childView = new FormView();\n }\n\n public function testBuildPreliminaryFormTree()\n {\n $this->form->add($this->childForm);\n\n $this->dataCollector->collectConfiguration($this->for", "middle": "ractor());\n $this->factory = new FormFactory(new FormRegistry([new CoreExtension()], new ResolvedFormTypeFactory()));\n $this->form = $this->createForm('name');\n $this->childForm = $this->createChildForm('chil", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php", "language": "php", "file_size": 21326, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\PasswordHasher\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\RepeatedType;\nuse Symfony\\Component\\Form\\Extension\\PasswordHasher\\EventL", "suffix": "\\TypeTestCase;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\RepeatedPasswordField;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\User;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\MessageDigestPasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHas", "middle": "istener\\PasswordHasherListener;\nuse Symfony\\Component\\Form\\Extension\\PasswordHasher\\PasswordHasherExtension;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\Test", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/PasswordHasher/Type/PasswordTypePasswordHasherExtensionTest.php", "language": "php", "file_size": 8133, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormErrorIterator;\nuse Symfony\\Component\\Form", "suffix": "indByCodesProvider')]\n public function testFindByCodes($code, $violationsCount)\n {\n $formBuilder = new FormBuilder(\n 'form',\n null,\n new EventDispatcher(),\n new FormFactory(new FormRegistry([], new R", "middle": "\\FormFactory;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\n\nclass FormErrorIteratorTest extends TestCase\n{\n #[DataProvider('f", "meta": {"filepath": "src/Symfony/Component/Form/Tests/FormErrorIteratorTest.php", "language": "php", "file_size": 2105, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\DataMapper;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormFactory;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\MissingDataHandler;\nuse Symfony\\Com", "suffix": "parent', ['false_values' => [false]])\n ->setCompound(true)\n ->setDataMapper(new DataMapper())\n ->add($this->createBuilder('child', ['false_values' => [null]]))\n ->getForm();\n\n $this->assertSame(['child' =>", "middle": "ponent\\Form\\ResolvedFormTypeFactory;\n\nclass MissingDataHandlerTest extends TestCase\n{\n public function testFalseValuesMatchIsStrict()\n {\n $handler = new MissingDataHandler();\n\n $parent = $this->createBuilder('", "meta": {"filepath": "src/Symfony/Component/Form/Tests/MissingDataHandlerTest.php", "language": "php", "file_size": 3553, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Flow\\DataStorage;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\SessionDataStorage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionSt", "suffix": "torage());\n $request = new Request();\n $request->setSession($this->session);\n\n $requestStack = new RequestStack();\n $requestStack->push($request);\n\n $this->storage = new SessionDataStorage('test_key', $requestStack);\n ", "middle": "orage;\n\nclass SessionDataStorageTest extends TestCase\n{\n private SessionDataStorage $storage;\n private Session $session;\n\n protected function setUp(): void\n {\n $this->session = new Session(new MockArraySessionS", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Flow/DataStorage/SessionDataStorageTest.php", "language": "php", "file_size": 3184, "cut_index": 614, "middle_length": 229}} {"prefix": "\\FormFactoryBuilder;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\SubmitButtonBuilder;\nuse Symfony\\Component\\Translation\\IdentityTranslator;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Cons", "suffix": "mail.com>\n */\nclass FormValidatorTest extends ConstraintValidatorTestCase\n{\n private EventDispatcher $dispatcher;\n private FormFactoryInterface $factory;\n\n protected function setUp(): void\n {\n $this->dispatcher = new EventDispatcher();\n ", "middle": "traints\\Valid;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContext;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Validation;\n\n/**\n * @author Bernhard Schussek assertSame(self::$steps, $curso", "suffix": "xpectExceptionMessage('Step \"invalid\" does not exist. Available steps are: \"personal\", \"professional\", \"account\".');\n\n new FormFlowCursor(self::$steps, 'invalid');\n }\n\n public function testGetSteps()\n {\n $cursor = new FormFlowCursor(", "middle": "r->getSteps());\n $this->assertSame('personal', $cursor->getCurrentStep());\n }\n\n public function testConstructorWithInvalidStep()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->e", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Flow/FormFlowCursorTest.php", "language": "php", "file_size": 6736, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\FormFactory;\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\FooType;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\NullFormTypeGuesser;\n\nclass FormFactoryBuilder", "suffix": "tory->getProperty('registry');\n\n $this->type = new FooType();\n }\n\n public function testAddType()\n {\n $factoryBuilder = new FormFactoryBuilder();\n $factoryBuilder->addType($this->type);\n\n $factory = $factoryBuilder->getF", "middle": "Test extends TestCase\n{\n private \\ReflectionProperty $registry;\n private FooType $type;\n\n protected function setUp(): void\n {\n $factory = new \\ReflectionClass(FormFactory::class);\n $this->registry = $fac", "meta": {"filepath": "src/Symfony/Component/Form/Tests/FormFactoryBuilderTest.php", "language": "php", "file_size": 1774, "cut_index": 537, "middle_length": 229}} {"prefix": ";\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormInterface;\n\nclass DateIntervalTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = DateIntervalType::class;\n\n public function testSubmitDateInterval()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'dateinterval']);\n\n $form->submit([\n 'years' => '7',\n 'months' => '6',\n 'days' => '5',\n ]);\n\n $this->assertDateIntervalEquals(new \\Date", "suffix": " '7',\n 'months' => '6',\n 'days' => '5',\n ]);\n\n $this->assertSame('P7Y6M5D', $form->getData());\n }\n\n public function testSubmitArray()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, ['input'", "middle": "Interval('P7Y6M5D'), $form->getData());\n }\n\n public function testSubmitString()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'string']);\n\n $form->submit([\n 'years' =>", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/DateIntervalTypeTest.php", "language": "php", "file_size": 15646, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\UrlType;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException;\n\nclass UrlTypeTest extends TextTypeTest\n{\n public const TESTED_TYPE = UrlType::class;\n\n public function testSubmitAddsNoDefaultPr", "suffix": "'ftp://www.domain.com', $form->getData());\n $this->assertSame('ftp://www.domain.com', $form->getViewData());\n }\n\n public function testSubmitAddsNoDefaultProtocolIfEmpty()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, ", "middle": "otocolIfAlreadyIncluded()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'default_protocol' => 'http',\n ]);\n\n $form->submit('ftp://www.domain.com');\n\n $this->assertSame(", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php", "language": "php", "file_size": 2815, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\RepeatedType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\NotMappedType;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException;\n\nclass RepeatedTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = Repeate", "suffix": "YPE,\n ]);\n }\n\n public function testSetData()\n {\n $this->form->setData('foobar');\n\n $this->assertSame('foobar', $this->form['first']->getData());\n $this->assertSame('foobar', $this->form['second']->getData());\n }\n\n ", "middle": "dType::class;\n\n protected Form $form;\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->form = $this->factory->create(static::TESTED_TYPE, null, [\n 'type' => TextTypeTest::TESTED_T", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/RepeatedTypeTest.php", "language": "php", "file_size": 8849, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\UuidType;\nuse Symfony\\Component\\Uid\\Uuid;\n\nfinal class UuidTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = UuidType::class;\n\n public function testPass", "suffix": "()->vars['value']);\n }\n\n public function testSubmitNullUsesDefaultEmptyData($emptyData = '', $expectedData = null)\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'empty_data' => $emptyData,\n ]);\n $", "middle": "UuidToView()\n {\n $uuid = '123e4567-e89b-12d3-a456-426655440000';\n\n $form = $this->factory->create(static::TESTED_TYPE);\n $form->setData(new Uuid($uuid));\n\n $this->assertSame($uuid, $form->createView", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/UuidTypeTest.php", "language": "php", "file_size": 1220, "cut_index": 518, "middle_length": 229}} {"prefix": "mfony\\Component\\Form\\FormError;\n\nclass WeekTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = WeekType::class;\n\n public function testSubmitArray()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'widget' => 'choice',\n 'input' => 'array',\n ]);\n\n $form->submit([\n 'year' => '2019',\n 'week' => '1',\n ]);\n\n $this->assertSame(['year' => 2019, 'week' => 1], $form->getData());\n }\n\n public funct", "suffix": "([\n 'year' => '2019',\n 'week' => '1',\n ]);\n\n $this->assertEquals('2019-W01', $form->getData());\n }\n\n public function testSubmitStringSingleText()\n {\n $form = $this->factory->create(static::TESTED_TYPE, nu", "middle": "ion testSubmitString()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'years' => [2019],\n 'input' => 'string',\n 'widget' => 'choice',\n ]);\n\n $form->submit", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/WeekTypeTest.php", "language": "php", "file_size": 9941, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Core\\EventListener\\FixUrlProtocolListener;\nuse Symfony\\Component\\Form\\Form;\nuse Symf", "suffix": "ew Form(new FormConfigBuilder('name', null, new EventDispatcher()));\n $event = new FormEvent($form, $data);\n\n $filter = new FixUrlProtocolListener('http');\n $filter->onSubmit($event);\n\n $this->assertSame('http://'.$data, $event-", "middle": "ony\\Component\\Form\\FormConfigBuilder;\nuse Symfony\\Component\\Form\\FormEvent;\n\nclass FixUrlProtocolListenerTest extends TestCase\n{\n #[DataProvider('provideUrlToFix')]\n public function testFixUrl($data)\n {\n $form = n", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php", "language": "php", "file_size": 2200, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\n\nclass MergeCollectionListenerArrayObjectTest ex", "suffix": "d function getData(array $data)\n {\n return new \\ArrayObject($data);\n }\n\n protected function getBuilder($name = 'name'): FormBuilderInterface\n {\n return new FormBuilder($name, \\ArrayObject::class, new EventDispatcher(), (new FormFa", "middle": "tends MergeCollectionListenerTestCase\n{\n protecte", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerArrayObjectTest.php", "language": "php", "file_size": 899, "cut_index": 547, "middle_length": 52}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\n\nclass MergeCollectionListener", "suffix": " protected function getData(array $data)\n {\n return $data;\n }\n\n protected function getBuilder($name = 'name'): FormBuilderInterface\n {\n return new FormBuilder($name, null, new EventDispatcher(), (new FormFactoryBuilder())->getF", "middle": "ArrayTest extends MergeCollectionListenerTestCase\n{\n", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerArrayTest.php", "language": "php", "file_size": 860, "cut_index": 529, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\nuse Symfony\\C", "suffix": "$data);\n }\n\n protected function getBuilder($name = 'name'): FormBuilderInterface\n {\n return new FormBuilder($name, 'Symfony\\Component\\Form\\Tests\\Fixtures\\CustomArrayObject', new EventDispatcher(), (new FormFactoryBuilder())->getFormFactory(", "middle": "omponent\\Form\\Tests\\Fixtures\\CustomArrayObject;\n\nclass MergeCollectionListenerCustomArrayObjectTest extends MergeCollectionListenerTestCase\n{\n protected function getData(array $data)\n {\n return new CustomArrayObject(", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerCustomArrayObjectTest.php", "language": "php", "file_size": 1009, "cut_index": 512, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\Extension\\Core\\EventListener\\MergeCollectionListener;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormInterface;\n\nabstract class MergeCollectionListenerTestCase extends T", "suffix": "protected function getForm($name = 'name', $propertyPath = null)\n {\n $propertyPath ??= $name;\n\n return $this->getBuilder($name)->setAttribute('property_path', $propertyPath)->getForm();\n }\n\n public static function getBooleanMatrix1()", "middle": "estCase\n{\n protected FormInterface $form;\n\n protected function setUp(): void\n {\n $this->form = $this->getForm('axes');\n }\n\n abstract protected function getBuilder($name = 'name'): FormBuilderInterface;\n\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTestCase.php", "language": "php", "file_size": 7217, "cut_index": 716, "middle_length": 229}} {"prefix": "t\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Event\\PostSetDataEvent;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\DataMapper;\nuse Symfony\\Component\\Form\\Extension\\Core\\EventListener\\ResizeFormListener;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvent", "suffix": "er;\n\n protected function setUp(): void\n {\n $this->factory = (new FormFactoryBuilder())->getFormFactory();\n $this->builder = $this->getBuilder()\n ->setCompound(true)\n ->setDataMapper(new DataMapper());\n }\n\n pr", "middle": ";\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\n\nclass ResizeFormListenerTest extends TestCase\n{\n private FormFactoryInterface $factory;\n private FormBuilderInterface $build", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php", "language": "php", "file_size": 11016, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Core\\EventListener\\TrimListener;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Form", "suffix": "EventDispatcher()));\n $event = new FormEvent($form, $data);\n\n $filter = new TrimListener();\n $filter->preSubmit($event);\n\n $this->assertEquals('Foo!', $event->getData());\n }\n\n public function testTrimSkipNonStrings()\n {", "middle": "\\FormConfigBuilder;\nuse Symfony\\Component\\Form\\FormEvent;\n\nclass TrimListenerTest extends TestCase\n{\n public function testTrim()\n {\n $data = ' Foo! ';\n $form = new Form(new FormConfigBuilder('name', null, new ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php", "language": "php", "file_size": 1300, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\ArrayToPartsTransformer;\n\nclass ArrayToPartsTransformerTest extends TestCase\n{\n private ArrayToPartsTransformer $transformer;\n\n protected fu", "suffix": " $input = [\n 'a' => '1',\n 'b' => '2',\n 'c' => '3',\n 'd' => '4',\n 'e' => '5',\n 'f' => '6',\n ];\n\n $output = [\n 'first' => [\n 'a' => '1',\n ", "middle": "nction setUp(): void\n {\n $this->transformer = new ArrayToPartsTransformer([\n 'first' => ['a', 'b', 'c'],\n 'second' => ['d', 'e', 'f'],\n ]);\n }\n\n public function testTransform()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ArrayToPartsTransformerTest.php", "language": "php", "file_size": 3408, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\BaseDateTimeTransformer;\n\nabstract class BaseDateTimeTransfor", "suffix": "exist');\n $this->createDateTimeTransformer('this_timezone_does_not_exist');\n }\n\n public function testConstructFailsIfOutputTimezoneIsInvalid()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptio", "middle": "merTestCase extends TestCase\n{\n public function testConstructFailsIfInputTimezoneIsInvalid()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('this_timezone_does_not_", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BaseDateTimeTransformerTestCase.php", "language": "php", "file_size": 1287, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\BooleanToStringTransformer;\n\ncla", "suffix": "ToStringTransformer(self::TRUE_VALUE);\n }\n\n public function testTransform()\n {\n $this->assertEquals(self::TRUE_VALUE, $this->transformer->transform(true));\n $this->assertNull($this->transformer->transform(false));\n }\n\n // https", "middle": "ss BooleanToStringTransformerTest extends TestCase\n{\n private const TRUE_VALUE = '1';\n\n protected BooleanToStringTransformer $transformer;\n\n protected function setUp(): void\n {\n $this->transformer = new Boolean", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php", "language": "php", "file_size": 2757, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ChoiceList\\ArrayChoiceList;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTrans", "suffix": "Up(): void\n {\n $list = new ArrayChoiceList(['', false, 'X', true]);\n $listWithNull = new ArrayChoiceList(['', false, 'X', null]);\n\n $this->transformer = new ChoiceToValueTransformer($list);\n $this->transformerWithNull = new C", "middle": "former\\ChoiceToValueTransformer;\n\nclass ChoiceToValueTransformerTest extends TestCase\n{\n protected ChoiceToValueTransformer $transformer;\n protected ChoiceToValueTransformer $transformerWithNull;\n\n protected function set", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoiceToValueTransformerTest.php", "language": "php", "file_size": 2798, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ChoiceList\\ArrayChoiceList;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\ChoicesToValuesTransformer;\n\nclass Choic", "suffix": "rayChoiceList(['', false, 'X']);\n $listWithNull = new ArrayChoiceList(['', false, 'X', null]);\n\n $this->transformer = new ChoicesToValuesTransformer($list);\n $this->transformerWithNull = new ChoicesToValuesTransformer($listWithNull);\n ", "middle": "esToValuesTransformerTest extends TestCase\n{\n protected ChoicesToValuesTransformer $transformer;\n protected ChoicesToValuesTransformer $transformerWithNull;\n\n protected function setUp(): void\n {\n $list = new Ar", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoicesToValuesTransformerTest.php", "language": "php", "file_size": 2598, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DataTransformerChain;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\FixedDataTransformer;\n\nclass DataTransformerChainTe", "suffix": ");\n\n $this->assertEquals('baz', $chain->transform('foo'));\n }\n\n public function testReverseTransform()\n {\n $chain = new DataTransformerChain([\n new FixedDataTransformer(['baz' => 'bar']),\n new FixedDataTransform", "middle": "st extends TestCase\n{\n public function testTransform()\n {\n $chain = new DataTransformerChain([\n new FixedDataTransformer(['foo' => 'bar']),\n new FixedDataTransformer(['bar' => 'baz']),\n ]", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DataTransformerChainTest.php", "language": "php", "file_size": 1112, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateIntervalToArrayTransformer;\n\n/**\n * @author Steffen Roßkamp \n */\nclass DateIntervalToArrayTransformerTest extends DateIntervalTestCase\n{\n public function testTransform()\n {\n ", "suffix": " 'hours' => '4',\n 'minutes' => '5',\n 'seconds' => '6',\n 'invert' => false,\n ];\n $this->assertSame($output, $transformer->transform($input));\n }\n\n public function testTransformEmpty()\n {\n $trans", "middle": " $transformer = new DateIntervalToArrayTransformer();\n $input = new \\DateInterval('P1Y2M3DT4H5M6S');\n $output = [\n 'years' => '1',\n 'months' => '2',\n 'days' => '3',\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateIntervalToArrayTransformerTest.php", "language": "php", "file_size": 9138, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateIntervalToStringTransformer;\n\n/**\n * @author Steffen Roßkamp \n */\nclass DateIntervalToStringTransformerTest extends DateIntervalTestCase\n{\n public static function dataProviderISO(): array\n {\n return [\n ['P%YY%MM%DDT%HH%IM%SS', 'P00Y00M0", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateIntervalToStringTransformerTest.php", "language": "php", "file_size": 4231, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeImmutableToDateTimeTransformer;\n\nclass D", "suffix": "leToDateTimeTransformer();\n\n $actualOutput = $transformer->transform($input);\n\n $this->assertEquals($expectedOutput, $actualOutput);\n $this->assertEquals($expectedOutput->getTimezone(), $actualOutput->getTimezone());\n }\n\n public ", "middle": "ateTimeImmutableToDateTimeTransformerTest extends TestCase\n{\n #[DataProvider('provider')]\n public function testTransform(\\DateTime $expectedOutput, \\DateTimeImmutable $input)\n {\n $transformer = new DateTimeImmutab", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeImmutableToDateTimeTransformerTest.php", "language": "php", "file_size": 2971, "cut_index": 563, "middle_length": 229}} {"prefix": "nsion\\Core\\DataTransformer\\BaseDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToArrayTransformer;\n\nclass DateTimeToArrayTransformerTest extends BaseDateTimeTransformerTestCase\n{\n public function testTransform()\n {\n $transformer = new DateTimeToArrayTransformer('UTC', 'UTC');\n\n $input = new \\DateTime('2010-02-03 04:05:06 UTC');\n\n $output = [\n 'year' => '2010',\n 'month' => '2',\n 'day' => '3',\n 'hour'", "suffix": "DateTimeToArrayTransformer();\n\n $output = [\n 'year' => '',\n 'month' => '',\n 'day' => '',\n 'hour' => '',\n 'minute' => '',\n 'second' => '',\n ];\n\n $this->assertSame($output", "middle": " => '4',\n 'minute' => '5',\n 'second' => '6',\n ];\n\n $this->assertSame($output, $transformer->transform($input));\n }\n\n public function testTransformEmpty()\n {\n $transformer = new ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToArrayTransformerTest.php", "language": "php", "file_size": 16470, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\BaseDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToHtml5LocalDateTimeTransformer;\nuse Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer\\Traits\\DateTimeEqualsTrait;\n\nclass DateTimeTo", "suffix": "6 UTC', '2010-02-03T04:05:06', true],\n ['UTC', 'UTC', null, '', true],\n ['America/New_York', 'Asia/Hong_Kong', '2010-02-03 04:05:06 America/New_York', '2010-02-03T17:05:06', true],\n ['America/New_York', 'Asia/Hong_Kong', nu", "middle": "Html5LocalDateTimeTransformerTest extends BaseDateTimeTransformerTestCase\n{\n use DateTimeEqualsTrait;\n\n public static function transformProvider(): array\n {\n return [\n ['UTC', 'UTC', '2010-02-03 04:05:0", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToHtml5LocalDateTimeTransformerTest.php", "language": "php", "file_size": 5645, "cut_index": 716, "middle_length": 229}} {"prefix": "aTransformer\\Traits\\DateTimeEqualsTrait;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass DateTimeToLocalizedStringTransformerTest extends BaseDateTimeTransformerTestCase\n{\n use DateTimeEqualsTrait;\n\n protected \\DateTime $dateTime;\n protected \\DateTime $dateTimeWithoutSeconds;\n private string $defaultLocale;\n\n private $initialTestCaseUseException;\n private $initialTestCaseErrorLevel;\n\n protected function setUp(): void\n {\n // Normalize intl. configuration settings.\n ", "suffix": "equireFullIntl($this, '57.1');\n\n $this->defaultLocale = \\Locale::getDefault();\n \\Locale::setDefault('de_AT');\n\n $this->dateTime = new \\DateTime('2010-02-03 04:05:06 UTC');\n $this->dateTimeWithoutSeconds = new \\DateTime('2010-02-", "middle": " if (\\extension_loaded('intl')) {\n $this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0);\n }\n\n // Since we test against \"de_AT\", we need the full implementation\n IntlTestHelper::r", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php", "language": "php", "file_size": 18623, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\BaseDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToRfc3339Transformer;\nuse Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer\\Traits\\DateTimeEqualsTrait;\n\nclass DateTimeToRfc3339Tran", "suffix": "teTime = new \\DateTime('2010-02-03 04:05:06 UTC');\n $this->dateTimeWithoutSeconds = new \\DateTime('2010-02-03 04:05:00 UTC');\n }\n\n public static function allProvider(): array\n {\n return [\n ['UTC', 'UTC', '2010-02-03 04:05:", "middle": "sformerTest extends BaseDateTimeTransformerTestCase\n{\n use DateTimeEqualsTrait;\n\n protected \\DateTime $dateTime;\n protected \\DateTime $dateTimeWithoutSeconds;\n\n protected function setUp(): void\n {\n $this->da", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php", "language": "php", "file_size": 5173, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\BaseDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToStringTransformer;\n\nclass DateTimeToStringTransformerTest extends BaseDateTimeTransformerTestCase\n{\n public static function dataProvider(", "suffix": "16:05', '2010-02-03 16:05:00 UTC'],\n ['Y-m-d H', '2010-02-03 16', '2010-02-03 16:00:00 UTC'],\n ['Y-m-d', '2010-02-03', '2010-02-03 00:00:00 UTC'],\n ['Y-m', '2010-12', '2010-12-01 00:00:00 UTC'],\n ['Y', '2010', '2", "middle": "): array\n {\n return [\n ['Y-m-d H:i:s', '2010-02-03 16:05:06', '2010-02-03 16:05:06 UTC'],\n ['Y-m-d H:i:00', '2010-02-03 16:05:00', '2010-02-03 16:05:00 UTC'],\n ['Y-m-d H:i', '2010-02-03 ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToStringTransformerTest.php", "language": "php", "file_size": 6929, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\BaseDateTimeTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToTimestampTransformer;\n\nclass DateTimeToTimestampTransformerTest extends BaseDateTimeT", "suffix": "'U');\n\n $this->assertEquals($output, $transformer->transform($input));\n }\n\n public function testTransformEmpty()\n {\n $transformer = new DateTimeToTimestampTransformer();\n\n $this->assertNull($transformer->transform(null));\n ", "middle": "ransformerTestCase\n{\n public function testTransform()\n {\n $transformer = new DateTimeToTimestampTransformer('UTC', 'UTC');\n\n $input = new \\DateTime('2010-02-03 04:05:06 UTC');\n $output = $input->format(", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToTimestampTransformerTest.php", "language": "php", "file_size": 4110, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeZoneToStringTransformer;\n\nclass DateTimeZoneToStringTransform", "suffix": "erseTransform(null));\n\n $this->assertSame('Europe/Amsterdam', $transformer->transform(new \\DateTimeZone('Europe/Amsterdam')));\n $this->assertEquals(new \\DateTimeZone('Europe/Amsterdam'), $transformer->reverseTransform('Europe/Amsterdam'));\n ", "middle": "erTest extends TestCase\n{\n public function testSingle()\n {\n $transformer = new DateTimeZoneToStringTransformer();\n\n $this->assertNull($transformer->transform(null));\n $this->assertNull($transformer->rev", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeZoneToStringTransformerTest.php", "language": "php", "file_size": 1903, "cut_index": 537, "middle_length": 229}} {"prefix": "t\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\IntegerToLocalizedStringTransformer;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass IntegerToLocalizedStringTransformerTest extends TestCase\n{\n private string $defaultLocale;\n\n protected function setUp(): void\n {\n $this->defaultLocale = \\Locale::getDefault();\n \\Locale::setDefault('en');\n }\n\n protected function tearDown(): void\n {\n \\Locale::setDefault($this-", "suffix": "G],\n [1234.4, '1235', \\NumberFormatter::ROUND_CEILING],\n [-1234.5, '-1234', \\NumberFormatter::ROUND_CEILING],\n [-1234.4, '-1234', \\NumberFormatter::ROUND_CEILING],\n // towards negative infinity (1.6 -> 1, -1.6 ->", "middle": ">defaultLocale);\n }\n\n public static function transformWithRoundingProvider()\n {\n return [\n // towards positive infinity (1.6 -> 2, -1.6 -> -1)\n [1234.5, '1235', \\NumberFormatter::ROUND_CEILIN", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformerTest.php", "language": "php", "file_size": 10668, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\IntlTimeZoneToStringTransformer;\n\n#[Requ", "suffix": "transform(null));\n $this->assertNull($transformer->reverseTransform(null));\n\n $this->assertSame('Europe/Amsterdam', $transformer->transform(\\IntlTimeZone::createTimeZone('Europe/Amsterdam')));\n $this->assertEquals(\\IntlTimeZone::create", "middle": "iresPhpExtension('intl')]\nclass IntlTimeZoneToStringTransformerTest extends TestCase\n{\n public function testSingle()\n {\n $transformer = new IntlTimeZoneToStringTransformer();\n\n $this->assertNull($transformer->", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/IntlTimeZoneToStringTransformerTest.php", "language": "php", "file_size": 2038, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\MoneyToLocalizedStringTransformer;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass MoneyToLocalizedStringTransformerTest extends TestCase\n{", "suffix": "();\n }\n\n protected function tearDown(): void\n {\n setlocale(\\LC_ALL, $this->previousLocale);\n \\Locale::setDefault($this->defaultLocale);\n }\n\n public function testTransform()\n {\n // Since we test against \"de_AT\", we nee", "middle": "\n private string|false $previousLocale;\n private string $defaultLocale;\n\n protected function setUp(): void\n {\n $this->previousLocale = setlocale(\\LC_ALL, '0');\n $this->defaultLocale = \\Locale::getDefault", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformerTest.php", "language": "php", "file_size": 4314, "cut_index": 614, "middle_length": 229}} {"prefix": "alTestCaseUseException;\n\n protected function setUp(): void\n {\n // Normalize intl. configuration settings.\n if (\\extension_loaded('intl')) {\n $this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0);\n }\n\n $this->defaultLocale = \\Locale::getDefault();\n \\Locale::setDefault('en');\n }\n\n protected function tearDown(): void\n {\n \\Locale::setDefault($this->defaultLocale);\n\n if (\\extension_loaded('intl')) {\n ini_set('i", "suffix": " '1', 'de_AT'],\n [1.5, '1,5', 'de_AT'],\n [1234.5, '1234,5', 'de_AT'],\n [12345.912, '12345,912', 'de_AT'],\n [1234.5, '1234,5', 'ru'],\n [1234.5, '1234,5', 'fi'],\n ];\n }\n\n #[DataProvider('pro", "middle": "ntl.use_exceptions', $this->initialTestCaseUseException);\n }\n }\n\n public static function provideTransformations()\n {\n return [\n [null, '', 'de_AT'],\n ['', '', 'de_AT'],\n [1,", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php", "language": "php", "file_size": 30394, "cut_index": 1331, "middle_length": 229}} {"prefix": "tialTestCaseUseException;\n\n protected function setUp(): void\n {\n // Normalize intl. configuration settings.\n if (\\extension_loaded('intl')) {\n $this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0);\n }\n\n $this->defaultLocale = \\Locale::getDefault();\n \\Locale::setDefault('en');\n }\n\n protected function tearDown(): void\n {\n \\Locale::setDefault($this->defaultLocale);\n\n if (\\extension_loaded('intl')) {\n ini_set(", "suffix": " $this->assertEquals('10', $transformer->transform(0.1));\n $this->assertEquals('15', $transformer->transform(0.15));\n $this->assertEquals('12', $transformer->transform(0.1234));\n $this->assertEquals('200', $transformer->transform", "middle": "'intl.use_exceptions', $this->initialTestCaseUseException);\n }\n }\n\n public function testTransform()\n {\n $transformer = new PercentToLocalizedStringTransformer(null, null, \\NumberFormatter::ROUND_HALFUP);\n\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php", "language": "php", "file_size": 25207, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\StringToFloatTransformer;\n\nclass StringToFloatTr", "suffix": "23', 1.23],\n ];\n }\n\n #[DataProvider('provideTransformations')]\n public function testTransform($from, $to)\n {\n $transformer = new StringToFloatTransformer();\n\n $this->assertSame($to, $transformer->transform($from));\n }\n\n ", "middle": "ansformerTest extends TestCase\n{\n public static function provideTransformations(): array\n {\n return [\n [null, null],\n ['1', 1.],\n ['1.', 1.],\n ['1.0', 1.],\n ['1.", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/StringToFloatTransformerTest.php", "language": "php", "file_size": 2435, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\UlidToStringTransformer;\nuse Symfony\\Component\\U", "suffix": " }\n\n #[DataProvider('provideValidUlid')]\n public function testTransform($output, $input)\n {\n $transformer = new UlidToStringTransformer();\n\n $input = new Ulid($input);\n\n $this->assertEquals($output, $transformer->transform($i", "middle": "id\\Ulid;\n\nclass UlidToStringTransformerTest extends TestCase\n{\n public static function provideValidUlid()\n {\n return [\n ['01D85PP1982GF6KTVFHQ7W78FB', new Ulid('01d85pp1982gf6ktvfhq7w78fb')],\n ];\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/UlidToStringTransformerTest.php", "language": "php", "file_size": 2468, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\UuidToStringTransformer;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Uid\\UuidV1;\n\ncla", "suffix": "transform(new UuidV1('123e4567-e89b-12d3-a456-426655440000')));\n }\n\n public function testTransformEmpty()\n {\n $transformer = new UuidToStringTransformer();\n\n $this->assertNull($transformer->transform(null));\n }\n\n public functio", "middle": "ss UuidToStringTransformerTest extends TestCase\n{\n public function testTransform()\n {\n $transformer = new UuidToStringTransformer();\n\n $this->assertEquals('123e4567-e89b-12d3-a456-426655440000', $transformer->", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/UuidToStringTransformerTest.php", "language": "php", "file_size": 2300, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\n\nclass TextTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = TextType::class;\n\n public function testSubmitNull($ex", "suffix": "c::TESTED_TYPE, 'name', array_merge($this->getTestOptions(), [\n 'empty_data' => '',\n ]));\n\n $form->submit(null);\n $this->assertSame('', $form->getData());\n $this->assertSame('', $form->getNormData());\n $this->a", "middle": "pected = null, $norm = null, $view = null)\n {\n parent::testSubmitNull($expected, $norm, '');\n }\n\n public function testSubmitNullReturnsNullWithEmptyDataAsString()\n {\n $form = $this->factory->create(stati", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/TextTypeTest.php", "language": "php", "file_size": 1790, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TimezoneType;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass TimezoneTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = TimezoneType::class;\n\n public function testTimezonesAreSelec", "suffix": "a'), $choices);\n $this->assertContainsEquals(new ChoiceView('America/New_York', 'America/New_York', 'America / New York'), $choices);\n }\n\n public function testSubmitNull($expected = null, $norm = null, $view = null)\n {\n parent::testS", "middle": "table()\n {\n $choices = $this->factory->create(static::TESTED_TYPE)\n ->createView()->vars['choices'];\n\n $this->assertContainsEquals(new ChoiceView('Africa/Kinshasa', 'Africa/Kinshasa', 'Africa / Kinshas", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/TimezoneTypeTest.php", "language": "php", "file_size": 7206, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\UlidType;\nuse Symfony\\Component\\Uid\\Ulid;\n\nfinal class UlidTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = UlidType::class;\n\n public function testPass", "suffix": "value']);\n }\n\n public function testSubmitNullUsesDefaultEmptyData($emptyData = '', $expectedData = null)\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'empty_data' => $emptyData,\n ]);\n $form->subm", "middle": "UlidToView()\n {\n $ulid = '01D85PP1982GF6KTVFHQ7W78FB';\n\n $form = $this->factory->create(static::TESTED_TYPE);\n $form->setData(new Ulid($ulid));\n\n $this->assertSame($ulid, $form->createView()->vars['", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/UlidTypeTest.php", "language": "php", "file_size": 1210, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\BirthdayType;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException;\n\n/**\n * @author Stepan Anchugov \n */\nclass BirthdayTypeTest extends DateTypeTest\n{\n public const TESTED_TYPE ", "suffix": " value',\n 'widget' => 'choice',\n ]);\n }\n\n public function testWidgetSingleTextHasDefaultAttrMinMax()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'widget' => 'single_text',\n ]);\n ", "middle": "= BirthdayType::class;\n\n public function testSetInvalidYearsOption()\n {\n $this->expectException(InvalidOptionsException::class);\n $this->factory->create(static::TESTED_TYPE, null, [\n 'years' => 'bad", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/BirthdayTypeTest.php", "language": "php", "file_size": 2421, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Form\\CallbackTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException;\n\nclass CheckboxTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = CheckboxType::class;\n\n public function testDataIsFalseByDefault()\n {\n $form = $this->factory-", "suffix": "{\n $view = $this->factory->create(static::TESTED_TYPE, null, ['value' => 'foobar'])\n ->createView();\n\n $this->assertEquals('foobar', $view->vars['value']);\n }\n\n public function testCheckedIfDataTrue()\n {\n $view = $t", "middle": ">create(static::TESTED_TYPE);\n\n $this->assertFalse($form->getData());\n $this->assertFalse($form->getNormData());\n $this->assertNull($form->getViewData());\n }\n\n public function testPassValueToView()\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/CheckboxTypeTest.php", "language": "php", "file_size": 6637, "cut_index": 716, "middle_length": 229}} {"prefix": "'expanded' => true,\n 'choices' => $this->choices,\n ]);\n\n $this->assertCount(\\count($this->choices), $form, 'Each choice should become a new field');\n }\n\n public function testChoiceListWithScalarValues()\n {\n $view = $this->factory->create(static::TESTED_TYPE, null, [\n 'choices' => $this->scalarChoices,\n ])->createView();\n\n $this->assertSame('1', $view->vars['choices'][0]->value);\n $this->assertSame('0', $view->vars['choices'][1]->value)", "suffix": "ssertFalse($view->vars['is_selected']($view->vars['choices'][1], $view->vars['value']), 'False value should not be pre selected');\n $this->assertFalse($view->vars['is_selected']($view->vars['choices'][2], $view->vars['value']), 'Empty value should n", "middle": ";\n $this->assertSame('', $view->vars['choices'][2]->value);\n $this->assertFalse($view->vars['is_selected']($view->vars['choices'][0], $view->vars['value']), 'True value should not be pre selected');\n $this->a", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php", "language": "php", "file_size": 90196, "cut_index": 3790, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Core\\CoreExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\Test\\TypeTestCase;\nuse Symfony\\Contracts\\Translation\\TranslatorInt", "suffix": "'Jon' => 'd',\n 'Roman' => 'e',\n ];\n\n protected function setUp(): void\n {\n $this->dispatcher = new EventDispatcher();\n\n parent::setUp();\n }\n\n protected function getExtensions(): array\n {\n $translator = $this->cr", "middle": "erface;\n\nclass ChoiceTypeTranslationTest extends TypeTestCase\n{\n public const TESTED_TYPE = ChoiceType::class;\n\n private array $choices = [\n 'Bernhard' => 'a',\n 'Fabien' => 'b',\n 'Kris' => 'c',\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTranslationTest.php", "language": "php", "file_size": 2500, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CountryType;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass CountryTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = CountryType::cla", "suffix": ":TESTED_TYPE)\n ->createView()->vars['choices'];\n\n // Don't check objects for identity\n $this->assertContainsEquals(new ChoiceView('DE', 'DE', 'Germany'), $choices);\n $this->assertContainsEquals(new ChoiceView('GB', 'GB', 'Un", "middle": "ss;\n\n protected function setUp(): void\n {\n IntlTestHelper::requireIntl($this);\n\n parent::setUp();\n }\n\n public function testCountriesAreSelectable()\n {\n $choices = $this->factory->create(static:", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/CountryTypeTest.php", "language": "php", "file_size": 4579, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CurrencyType;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException;\n\nclass CurrencyTypeTest", "suffix": "enciesAreSelectable()\n {\n $choices = $this->factory->create(static::TESTED_TYPE)\n ->createView()->vars['choices'];\n\n $this->assertContainsEquals(new ChoiceView('EUR', 'EUR', 'Euro'), $choices);\n $this->assertContainsEqual", "middle": " extends BaseTypeTestCase\n{\n public const TESTED_TYPE = CurrencyType::class;\n\n protected function setUp(): void\n {\n IntlTestHelper::requireIntl($this);\n\n parent::setUp();\n }\n\n public function testCurr", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/CurrencyTypeTest.php", "language": "php", "file_size": 4333, "cut_index": 614, "middle_length": 229}} {"prefix": "ception::class);\n $this->factory->create(static::TESTED_TYPE, null, [\n 'input' => 'fake_input',\n 'widget' => 'choice',\n ]);\n }\n\n public function testSubmitFromSingleTextDateTimeWithDefaultFormat()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'model_timezone' => 'UTC',\n 'view_timezone' => 'UTC',\n 'widget' => 'single_text',\n 'input' => 'datetime',\n ]);\n\n $form->submit('2010-06-02')", "suffix": " {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'model_timezone' => 'UTC',\n 'view_timezone' => 'UTC',\n 'widget' => 'single_text',\n 'input' => 'datetime',\n 'format' => 'yyyy',\n ", "middle": ";\n\n $this->assertEquals(new \\DateTime('2010-06-02 UTC'), $form->getData());\n $this->assertEquals('2010-06-02', $form->getViewData());\n }\n\n public function testSubmitFromSingleTextDateTimeWithCustomFormat()\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php", "language": "php", "file_size": 40890, "cut_index": 2151, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Forms;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\ChoiceTypeExtension;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\LazyChoiceTypeExtension;\n\nclass ExtendedChoice", "suffix": "r()\n ->addTypeExtension(new ChoiceTypeExtension())\n ->getFormFactory()\n ;\n\n $choices = $factory->create($type, null, ['choice_loader' => null])->createView()->vars['choices'];\n\n $this->assertCount(2, $choices);\n ", "middle": "TypeTest extends TestCase\n{\n #[DataProvider('provideTestedTypes')]\n public function testChoicesAreOverridden($type)\n {\n ChoiceTypeExtension::$extendedType = $type;\n $factory = Forms::createFormFactoryBuilde", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/ExtendedChoiceTypeTest.php", "language": "php", "file_size": 2234, "cut_index": 563, "middle_length": 229}} {"prefix": ";\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\Forms;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\Author;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\FixedDataTransformer;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\Validator\\Validation;\n\nclass FormTest_AuthorWithoutRefSetter\n{\n protected $reference;\n\n pr", "suffix": "t having\n // to provide a setReference() method\n public function getReference()\n {\n return $this->reference;\n }\n\n // The returned object is a copy, so setReferenceCopy() must be used\n // to update it\n public function getReferenc", "middle": "otected $referenceCopy;\n\n public function __construct($reference)\n {\n $this->reference = $reference;\n $this->referenceCopy = $reference;\n }\n\n // The returned object should be modified by reference withou", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php", "language": "php", "file_size": 30396, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\LanguageType;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass LanguageTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = LanguageType::class;\n\n protected function setUp(): void\n ", "suffix": "['choices'];\n\n $this->assertContainsEquals(new ChoiceView('en', 'en', 'English'), $choices);\n $this->assertContainsEquals(new ChoiceView('fr', 'fr', 'French'), $choices);\n $this->assertContainsEquals(new ChoiceView('my', 'my', 'Burmese", "middle": "{\n IntlTestHelper::requireIntl($this);\n\n parent::setUp();\n }\n\n public function testCountriesAreSelectable()\n {\n $choices = $this->factory->create(static::TESTED_TYPE)\n ->createView()->vars", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/LanguageTypeTest.php", "language": "php", "file_size": 5632, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass MoneyTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = MoneyType::class;\n\n private string $defaultLocale;\n\n protected function setUp(): void\n {\n // we test against different locales, so we need the full\n", "suffix": "is->defaultLocale)) {\n \\Locale::setDefault($this->defaultLocale);\n }\n }\n\n public function testPassMoneyPatternToView()\n {\n \\Locale::setDefault('de_DE');\n\n $view = $this->factory->create(static::TESTED_TYPE)\n ", "middle": " // implementation\n IntlTestHelper::requireFullIntl($this);\n\n parent::setUp();\n\n $this->defaultLocale = \\Locale::getDefault();\n }\n\n protected function tearDown(): void\n {\n if (isset($th", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/MoneyTypeTest.php", "language": "php", "file_size": 7885, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\n\nclass PasswordTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = PasswordType::class;\n\n public function testEmptyIfNotSubmitted()\n {\n $form = $this", "suffix": "y->create(static::TESTED_TYPE);\n $form->submit('pAs5w0rd');\n\n $this->assertSame('', $form->createView()->vars['value']);\n }\n\n public function testNotEmptyIfSubmittedAndNotAlwaysEmpty()\n {\n $form = $this->factory->create(static", "middle": "->factory->create(static::TESTED_TYPE);\n $form->setData('pAs5w0rd');\n\n $this->assertSame('', $form->createView()->vars['value']);\n }\n\n public function testEmptyIfSubmitted()\n {\n $form = $this->factor", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/PasswordTypeTest.php", "language": "php", "file_size": 1552, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType;\nuse Symfony\\Component\\Form\\SubmitButton;\n\n/**\n * @author Bernhard Schussek \n */\nclass SubmitTypeTest extends ButtonTypeTest\n{\n public const TESTED_TYPE = S", "suffix": ")\n {\n $button = $this->factory->create(static::TESTED_TYPE);\n\n $this->assertFalse($button->isClicked());\n }\n\n public function testNotClickedIfSubmittedWithNull()\n {\n $button = $this->factory->create(static::TESTED_TYPE);\n ", "middle": "ubmitType::class;\n\n public function testCreateSubmitButtonInstances()\n {\n $this->assertInstanceOf(SubmitButton::class, $this->factory->create(static::TESTED_TYPE));\n }\n\n public function testNotClickedByDefault(", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/SubmitTypeTest.php", "language": "php", "file_size": 2018, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\CallbackTransformer;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextareaType;\n\nclass TextareaTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = TextareaType::class;\n\n public function testSubmitNull($expected = null, $norm = null, $view = null)\n {\n parent:", "suffix": "ssertSame(\"Line 1\\nLine 2\\nLine 3\", $form->getData());\n }\n\n public function testSubmitNormalizeCr()\n {\n $form = $this->factory->create(static::TESTED_TYPE);\n $form->submit(\"Line 1\\rLine 2\\rLine 3\");\n\n $this->assertSame(\"Line 1", "middle": ":testSubmitNull($expected, $norm, '');\n }\n\n public function testSubmitNormalizeCrlf()\n {\n $form = $this->factory->create(static::TESTED_TYPE);\n $form->submit(\"Line 1\\r\\nLine 2\\r\\nLine 3\");\n\n $this->a", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/TextareaTypeTest.php", "language": "php", "file_size": 3573, "cut_index": 614, "middle_length": 229}} {"prefix": "author Bernhard Schussek \n */\nabstract class BaseTypeTestCase extends TypeTestCase\n{\n public const TESTED_TYPE = '';\n\n protected function setUp(): void\n {\n $this->dispatcher = new EventDispatcher();\n\n parent::setUp();\n }\n\n public function testPassDisabledAsOption()\n {\n $form = $this->factory->create($this->getTestedType(), null, array_merge($this->getTestOptions(), ['disabled' => true]));\n\n $this->assertTrue($form->isDisabled());\n }\n\n ", "suffix": "rs['id']);\n $this->assertEquals('name', $view->vars['name']);\n $this->assertEquals('name', $view->vars['full_name']);\n }\n\n public function testPassIdAndNameToViewWithParent()\n {\n $view = $this->factory->createNamedBuilder('par", "middle": "public function testPassIdAndNameToView()\n {\n $view = $this->factory->createNamed('name', $this->getTestedType(), null, $this->getTestOptions())\n ->createView();\n\n $this->assertEquals('name', $view->va", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php", "language": "php", "file_size": 10234, "cut_index": 921, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Form\\Test\\FormPerformanceTestCase;\n\n/**\n * @author Bernhard Schussek \n */\nclass ChoiceTypePerformanceTest extends FormPerformanceTe", "suffix": " $this->setMaxRunningTime(1);\n $choices = range(1, 300);\n\n for ($i = 0; $i < 100; ++$i) {\n $this->factory->create('Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType', random_int(1, 400), [\n 'choices' => $ch", "middle": "stCase\n{\n /**\n * This test case is realistic in collection forms where each\n * row contains the same choice field.\n */\n #[Group('benchmark')]\n public function testSameChoiceFieldCreatedMultipleTimes()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypePerformanceTest.php", "language": "php", "file_size": 1039, "cut_index": 513, "middle_length": 229}} {"prefix": ";\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\CollectionWithRecursiveSetDataType;\n\nclass CollectionTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = CollectionType::class;\n\n public function testContainsNoChildByDefault()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'entry_type' => TextTypeTest::TESTED_TYPE,\n ]);\n\n $this->assertCount(0, $form);\n }\n\n public function testSetDataAdjustsSize()\n {\n $form = $this->factory->cre", "suffix": "om', 'foo@bar.com']);\n\n $this->assertInstanceOf(Form::class, $form[0]);\n $this->assertInstanceOf(Form::class, $form[1]);\n $this->assertCount(2, $form);\n $this->assertEquals('foo@foo.com', $form[0]->getData());\n $this->ass", "middle": "ate(static::TESTED_TYPE, null, [\n 'entry_type' => TextTypeTest::TESTED_TYPE,\n 'entry_options' => [\n 'attr' => ['maxlength' => 20],\n ],\n ]);\n $form->setData(['foo@foo.c", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php", "language": "php", "file_size": 21392, "cut_index": 1331, "middle_length": 229}} {"prefix": "eList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\EnumType;\nuse Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type\\BaseTypeTestCase;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\Answer;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\Number;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\Suit;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\TranslatableTextAlign;\nuse Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException;\nuse Symfony\\Component\\OptionsResolver\\Exception\\MissingOptionsException;\nus", "suffix": "ClassOptionIsRequired()\n {\n $this->expectException(MissingOptionsException::class);\n $this->factory->createNamed('name', $this->getTestedType());\n }\n\n public function testInvalidClassOption()\n {\n $this->expectException(Inva", "middle": "e Symfony\\Component\\Translation\\IdentityTranslator;\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\n\nclass EnumTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = EnumType::class;\n\n public function test", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/EnumTypeTest.php", "language": "php", "file_size": 14204, "cut_index": 921, "middle_length": 229}} {"prefix": "mfony\\Component\\Form\\Extension\\Core\\Type\\FileType;\nuse Symfony\\Component\\Form\\Extension\\HttpFoundation\\HttpFoundationRequestHandler;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\NativeRequestHandler;\nuse Symfony\\Component\\Form\\RequestHandlerInterface;\nuse Symfony\\Component\\HttpFoundation\\File\\File;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\Translation\\IdentityTranslator;\n\nclass FileTypeTest extends Bas", "suffix": "er), [new CoreExtension(null, null, new IdentityTranslator())]);\n }\n\n // https://github.com/symfony/symfony/pull/5028\n public function testSetData()\n {\n $form = $this->factory->createBuilder(static::TESTED_TYPE)->getForm();\n $data", "middle": "eTypeTestCase\n{\n public const TESTED_TYPE = FileType::class;\n\n protected function getExtensions(?ViolationMapperInterface $violationMapper = null): array\n {\n return array_merge(parent::getExtensions($violationMapp", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/FileTypeTest.php", "language": "php", "file_size": 12470, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\LocaleType;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass LocaleTypeTest extends BaseTypeTestCase\n", "suffix": " $choices = $this->factory->create(static::TESTED_TYPE)\n ->createView()->vars['choices'];\n\n $this->assertContainsEquals(new ChoiceView('en', 'en', 'English'), $choices);\n $this->assertContainsEquals(new ChoiceView('en_GB', 'en_", "middle": "{\n public const TESTED_TYPE = LocaleType::class;\n\n protected function setUp(): void\n {\n IntlTestHelper::requireIntl($this);\n\n parent::setUp();\n }\n\n public function testLocalesAreSelectable()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/LocaleTypeTest.php", "language": "php", "file_size": 2309, "cut_index": 563, "middle_length": 229}} {"prefix": "\n 'widget' => 'choice',\n 'input' => 'date_point',\n ]);\n\n $input = [\n 'hour' => '3',\n 'minute' => '4',\n ];\n\n $form->submit($input);\n\n $this->assertInstanceOf(DatePoint::class, $form->getData());\n $datePoint = DatePoint::createFromMutable(new \\DateTime('1970-01-01 03:04:00 UTC'));\n $this->assertEquals($datePoint, $form->getData());\n $this->assertEquals($input, $form->getViewData());\n }\n\n public function t", "suffix": " 'widget' => 'choice',\n ]);\n\n $input = [\n 'hour' => '3',\n 'minute' => '4',\n ];\n\n $form->submit($input);\n\n $dateTime = new \\DateTimeImmutable('1970-01-01 03:04:00 UTC');\n\n $this->assertI", "middle": "estSubmitDateTimeImmutable()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'model_timezone' => 'UTC',\n 'view_timezone' => 'UTC',\n 'input' => 'datetime_immutable',\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php", "language": "php", "file_size": 40098, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Button;\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ButtonType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\n\n/**\n * @author Bernhard Schussek expectException(Bad", "middle": ".com>\n */\nclass ButtonTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = ButtonType::class;\n\n public function testCreateButtonInstances()\n {\n $this->assertInstanceOf(Button::class, $this->factory->cre", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/ButtonTypeTest.php", "language": "php", "file_size": 3621, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass IntegerTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = IntegerType::class;\n\n private string $previousLocale;\n\n protected", "suffix": "s->defaultLocale)) {\n \\Locale::setDefault($this->defaultLocale);\n }\n }\n\n #[RequiresPhpExtension('intl')]\n public function testArabicLocale()\n {\n \\Locale::setDefault('ar');\n\n $form = $this->factory->create(static:", "middle": " function setUp(): void\n {\n IntlTestHelper::requireIntl($this);\n $this->previousLocale = \\Locale::getDefault();\n parent::setUp();\n }\n\n protected function tearDown(): void\n {\n if (isset($thi", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/IntegerTypeTest.php", "language": "php", "file_size": 3665, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\Form\\Exception\\LogicException;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass NumberTypeTest extends BaseTypeTestCase\n{\n public const TESTED_TYPE = NumberType::class;\n\n private string $defaultLocale;\n\n protected function setUp(): void\n {\n pa", "suffix": " }\n\n protected function tearDown(): void\n {\n if (isset($this->defaultLocale)) {\n \\Locale::setDefault($this->defaultLocale);\n }\n }\n\n public function testDefaultFormatting()\n {\n $form = $this->factory->create(", "middle": "rent::setUp();\n\n // we test against \"de_DE\", so we need the full implementation\n IntlTestHelper::requireFullIntl($this);\n\n $this->defaultLocale = \\Locale::getDefault();\n \\Locale::setDefault('de_DE');\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/NumberTypeTest.php", "language": "php", "file_size": 7614, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\ChoiceList;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\n\n/**\n * @author Bernhard Schussek \n */\nabstract class AbstractChoiceListTestCase extends TestCase\n{\n protected ChoiceListInterface $list;\n protected array $choices;\n protected array $values;\n protecte", "suffix": "ue2;\n protected string $value3;\n protected string $value4;\n protected string $key1;\n protected string $key2;\n protected string $key3;\n protected string $key4;\n\n protected function setUp(): void\n {\n $this->list = $this->create", "middle": "d array $structuredValues;\n protected array $keys;\n protected mixed $choice1;\n protected mixed $choice2;\n protected mixed $choice3;\n protected mixed $choice4;\n protected string $value1;\n protected string $val", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/AbstractChoiceListTestCase.php", "language": "php", "file_size": 4990, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nclass EnumFormTypeGuesserCase\n{\n public string $string;\n public UndefinedEnum $undefinedEnum;\n public EnumFormTypeGuesserCaseEnum $enum;\n public ?EnumFormTypeGuesserCaseEnum $nullableEnum;\n public BackedEnumFormTypeGuesserCaseEnum $backedEnum;\n public ?BackedEnumFormTypeGuess", "suffix": "ypeGuesserCaseEnum|BackedEnumFormTypeGuesserCaseEnum $enumUnion;\n public EnumFormTypeGuesserCaseEnum&BackedEnumFormTypeGuesserCaseEnum $enumIntersection;\n}\n\nenum EnumFormTypeGuesserCaseEnum\n{\n case Foo;\n case Bar;\n}\n\nenum BackedEnumFormTypeGuesser", "middle": "erCaseEnum $nullableBackedEnum;\n public EnumFormT", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/EnumFormTypeGuesserCase.php", "language": "php", "file_size": 955, "cut_index": 582, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\nclass FixedDataTransformer implements DataTransformerInterface\n{\n private array $mapping;\n\n public fun", "suffix": "ow new TransformationFailedException(\\sprintf('No mapping for value \"%s\"', $value));\n }\n\n return $this->mapping[$value];\n }\n\n public function reverseTransform($value): mixed\n {\n $result = array_search($value, $this->mapping, t", "middle": "ction __construct(array $mapping)\n {\n $this->mapping = $mapping;\n }\n\n public function transform($value): mixed\n {\n $value ??= '';\n if (!\\array_key_exists($value, $this->mapping)) {\n thr", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/FixedDataTransformer.php", "language": "php", "file_size": 1194, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\n\nclass FixedFilterListener implements EventSubscriberInterface\n{\n private $mapping;\n\n public function ", "suffix": "Event $event)\n {\n $data = $event->getData();\n\n if (isset($this->mapping['preSubmit'][$data])) {\n $event->setData($this->mapping['preSubmit'][$data]);\n }\n }\n\n public function onSubmit(FormEvent $event)\n {\n ", "middle": "__construct(array $mapping)\n {\n $this->mapping = array_merge([\n 'preSubmit' => [],\n 'onSubmit' => [],\n 'preSetData' => [],\n ], $mapping);\n }\n\n public function preSubmit(Form", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/FixedFilterListener.php", "language": "php", "file_size": 1680, "cut_index": 537, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass FixedTranslator implements TranslatorInterface\n{\n private array $translations;\n\n public function __construct(array $translations)\n {\n $this->translatio", "suffix": "ions;\n }\n\n public function trans(string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string\n {\n return $this->translations[$id] ?? $id;\n }\n\n public function getLocale(): string\n {\n return 'en", "middle": "ns = $translat", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/FixedTranslator.php", "language": "php", "file_size": 798, "cut_index": 517, "middle_length": 14}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n\nclass FooTypeBarExtension extends AbstractTypeExtension\n{\n public function buildForm(FormBuilderInterface $builder, array $options)", "suffix": " $builder->setAttribute('bar', 'x');\n }\n\n public function getAllowedOptionValues(): array\n {\n return [\n 'a_or_b' => ['c'],\n ];\n }\n\n public static function getExtendedTypes(): iterable\n {\n return [FooT", "middle": ": void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/FooTypeBarExtension.php", "language": "php", "file_size": 813, "cut_index": 522, "middle_length": 14}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceList;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass LazyChoiceTypeExtension extends AbstractTypeExtension\n{\n public static $extendedType;\n\n pub", "suffix": "ver): void\n {\n $resolver->setDefault('choice_loader', ChoiceList::lazy($this, fn () => [\n 'Lazy A' => 'lazy_a',\n 'Lazy B' => 'lazy_b',\n ]));\n }\n\n public static function getExtendedTypes(): iterable\n {\n ", "middle": "lic function configureOptions(OptionsResolver $resol", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/LazyChoiceTypeExtension.php", "language": "php", "file_size": 894, "cut_index": 547, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\FormTypeGuesserInterface;\nuse Symfony\\Component\\Form\\Guess\\TypeGuess;\nuse Symfony\\Component\\Form\\Guess\\ValueGuess;\n\nclass NullFormTypeGuesser implements FormTypeGuesserInterface\n{\n public function guessType($class, $property): ?T", "suffix": "c function guessRequired($class, $property): ?ValueGuess\n {\n return null;\n }\n\n public function guessMaxLength($class, $property): ?ValueGuess\n {\n return null;\n }\n\n public function guessPattern($class, $property): ?ValueGuess", "middle": "ypeGuess\n {\n return null;\n }\n\n publi", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/NullFormTypeGuesser.php", "language": "php", "file_size": 891, "cut_index": 547, "middle_length": 52}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nclass Organization\n{\n public $authors = [];\n\n public function __construct(array $authors = [])\n {\n $this->authors = $authors;\n }\n\n public function getAuthors(): array\n {\n return $this->authors;\n }\n\n public function addAuthor(Author $", "suffix": "or;\n\n return $this;\n }\n\n public function removeAuthor(Author $author): self\n {\n if (false !== $key = array_search($author, $this->authors, true)) {\n array_splice($this->authors, $key, 1);\n }\n\n return $this;\n ", "middle": "author): self\n {\n $this->authors[] = $auth", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Organization.php", "language": "php", "file_size": 874, "cut_index": 559, "middle_length": 52}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\RepeatedType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass RepeatedPasswordField extends AbstractType\n{\n public function getP", "suffix": "class;\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'mapped' => false,\n 'type' => PasswordType::class,\n 'first_options' => [\n 'hash_prop", "middle": "arent(): ?string\n {\n return RepeatedType::", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/RepeatedPasswordField.php", "language": "php", "file_size": 951, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\FormExtensionInterface;\nuse Symfony\\Component\\Form\\FormTypeExtensionInterface;\nuse Symfony\\Component\\Form\\FormTypeGuesserInterface;\nuse Symfony\\Component\\Form\\FormTypeInterface;\n\nclass TestExtension implements FormExtensio", "suffix": "esser;\n }\n\n public function addType(FormTypeInterface $type)\n {\n $this->types[$type::class] = $type;\n }\n\n public function getType($name): FormTypeInterface\n {\n return $this->types[$name];\n }\n\n public function hasType($", "middle": "nInterface\n{\n private array $types = [];\n private array $extensions = [];\n private FormTypeGuesserInterface $guesser;\n\n public function __construct(FormTypeGuesserInterface $guesser)\n {\n $this->guesser = $gu", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/TestExtension.php", "language": "php", "file_size": 1749, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures\\Flow;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\Flow\\AbstractFlowType;\nuse Symfony\\Component\\Form\\Flow\\FormFlowBuilderInterface;\nuse", "suffix": ", array $options): void\n {\n $builder->addStep('step1', TextType::class);\n $builder->addStep('step2', FormType::class, [], static fn () => true);\n\n $builder->add('navigator', NavigatorFlowType::class, [\n 'with_reset' => tr", "middle": " Symfony\\Component\\Form\\Flow\\Type\\NavigatorFlowType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass LastStepSkippedType extends AbstractFlowType\n{\n public function buildFormFlow(FormFlowBuilderInterface $builder", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Flow/LastStepSkippedType.php", "language": "php", "file_size": 1242, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures\\Flow;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Flow\\Type\\NavigatorFlowType;\nuse Symfony\\Component\\Form\\Flow\\Type\\NextFlowType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Opt", "suffix": " 'clear_submission' => true,\n 'include_if' => ['professional'],\n ]);\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'with_reset' => true,\n ]);", "middle": "ionsResolver\\OptionsResolver;\n\nclass UserSignUpNavigatorType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->add('skip', NextFlowType::class, [\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Flow/UserSignUpNavigatorType.php", "language": "php", "file_size": 1103, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures\\Flow;\n\nuse Symfony\\Component\\Form\\Flow\\AbstractFlowType;\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\InMemoryDataStorage;\nuse Symfony\\Component\\Form\\Flow\\FormFlowBuilderInterface;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\Flow\\Data\\UserSignUp;\nuse Sym", "suffix": "ymfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass UserSignUpType extends AbstractFlowType\n{\n public function buildFormFlow(FormFlowBuilderInterface $builder, array $options): void\n {\n $skip = $options['data_class']\n ? static ", "middle": "fony\\Component\\Form\\Tests\\Fixtures\\Flow\\Step\\UserSignUpAccountType;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\Flow\\Step\\UserSignUpPersonalType;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\Flow\\Step\\UserSignUpProfessionalType;\nuse S", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Flow/UserSignUpType.php", "language": "php", "file_size": 1723, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures\\Flow\\Step;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass UserSignUpAcc", "suffix": "buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->add('email', EmailType::class);\n $builder->add('password', PasswordType::class);\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n ", "middle": "ountType extends AbstractType\n{\n public function ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Flow/Step/UserSignUpAccountType.php", "language": "php", "file_size": 981, "cut_index": 582, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures\\Flow\\Step;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Sym", "suffix": "Type::class);\n $builder->add('lastName', TextType::class);\n $builder->add('worker', CheckboxType::class, ['required' => false]);\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults", "middle": "fony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass UserSignUpPersonalType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->add('firstName', Text", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Flow/Step/UserSignUpPersonalType.php", "language": "php", "file_size": 1057, "cut_index": 513, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures\\Flow\\Step;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass UserSi", "suffix": " 'choices' => [\n 'Product Manager' => 'ROLE_MANAGER',\n 'Developer' => 'ROLE_DEVELOPER',\n 'Designer' => 'ROLE_DESIGNER',\n ],\n ]);\n }\n\n public function configureOptions(OptionsResolver $res", "middle": "gnUpProfessionalType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->add('company');\n $builder->add('role', ChoiceType::class, [\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Flow/Step/UserSignUpProfessionalType.php", "language": "php", "file_size": 1108, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures\\Flow\\Extension;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Flow\\FormFlowBuilderInterface;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nu", "suffix": "uilder instanceof FormFlowBuilderInterface) {\n throw new \\InvalidArgumentException(\\sprintf('The \"%s\" can only be used with FormFlowType.', self::class));\n }\n\n $builder->addStep('first', FormType::class, ['mapped' => false], null, ", "middle": "se Symfony\\Component\\Form\\Tests\\Fixtures\\Flow\\UserSignUpType;\n\nclass UserSignUpTypeExtension extends AbstractTypeExtension\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n if (!$b", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Flow/Extension/UserSignUpTypeExtension.php", "language": "php", "file_size": 1197, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures\\Flow\\Data;\n\nuse Symfony\\Component\\Validator\\Constraints as Assert;\n\nfinal class UserSignUp\n{\n // personal step\n #[Assert\\NotBlank(groups: ['personal'])]\n #[Assert\\Length(min: 3, groups: ['personal'])]\n public ?string ", "suffix": " ?string $company = null;\n public ?string $role = null;\n\n // account step\n #[Assert\\NotBlank(groups: ['account'])]\n #[Assert\\Email(groups: ['account'])]\n public ?string $email = null;\n #[Assert\\NotBlank(groups: ['account'])]\n #[Assert\\", "middle": "$firstName = null;\n public ?string $lastName = null;\n public bool $worker = false;\n\n // professional step\n #[Assert\\NotBlank(groups: ['professional'])]\n #[Assert\\Length(min: 3, groups: ['professional'])]\n public", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Flow/Data/UserSignUp.php", "language": "php", "file_size": 1116, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Resources;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Util\\XliffUtils;\n\nclass TranslationFilesTest extends TestCase\n{\n #[DataProvider('provideTranslationFiles')]\n public function test", "suffix": "rrors, \\sprintf('\"%s\" is invalid:%s', $filePath, \\PHP_EOL.implode(\\PHP_EOL, array_column($errors, 'message'))));\n }\n\n #[DataProvider('provideTranslationFiles')]\n public function testTranslationFileIsValidWithoutEntityLoader($filePath)\n {\n ", "middle": "TranslationFileIsValid($filePath)\n {\n $document = new \\DOMDocument();\n $document->loadXML(file_get_contents($filePath));\n\n $errors = XliffUtils::validateSchema($document);\n\n $this->assertCount(0, $e", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Resources/TranslationFilesTest.php", "language": "php", "file_size": 1903, "cut_index": 537, "middle_length": 229}} {"prefix": "use Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Command\\DebugCommand;\nuse Symfony\\Component\\Form\\Extension\\Core\\CoreExtension;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormRegistry;\nuse Symfony\\Component\\Form\\FormTypeInterface;\nuse Symfony\\Component\\Form\\ResolvedFormTy", "suffix": "eateCommandTester();\n $ret = $tester->execute([], ['decorated' => false]);\n\n $this->assertEquals(0, $ret, 'Returns 0 in case of success');\n $this->assertStringContainsString('Built-in form types', $tester->getDisplay());\n }\n\n pub", "middle": "peFactory;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass DebugCommandTest extends TestCase\n{\n public function testDebugDefaults()\n {\n $tester = $this->cr", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Command/DebugCommandTest.php", "language": "php", "file_size": 11004, "cut_index": 921, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Guess;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Guess\\Guess;\n\nclass TestGuess extends Guess\n{\n}\n\nclass GuessTest extends TestCase\n{\n public function testGetBestGuessReturnsGuessWithHighestConfidence()\n {\n $guess1 = new TestGuess(Guess::MEDIUM_CONFIDENCE);\n $guess2 = new TestGuess(Guess::LO", "suffix": "::HIGH_CONFIDENCE);\n\n $this->assertSame($guess3, Guess::getBestGuess([$guess1, $guess2, $guess3]));\n }\n\n public function testGuessExpectsValidConfidence()\n {\n $this->expectException(\\InvalidArgumentException::class);\n new Test", "middle": "W_CONFIDENCE);\n $guess3 = new TestGuess(Guess", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Guess/GuessTest.php", "language": "php", "file_size": 932, "cut_index": 606, "middle_length": 52}} {"prefix": "yInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Command\\DebugCommand;\nuse Symfony\\Component\\Form\\DependencyInjection\\FormPass;\nuse Symfony\\Compon", "suffix": "mExtensionNotLoaded()\n {\n $container = $this->createContainerBuilder();\n\n $container->compile();\n\n $this->assertFalse($container->hasDefinition('form.extension'));\n }\n\n public function testDoNothingIfDebugCommandNotLoaded()\n ", "middle": "ent\\Form\\Extension\\Csrf\\Type\\FormTypeCsrfExtension;\nuse Symfony\\Component\\Form\\FormRegistry;\n\n/**\n * @author Bernhard Schussek \n */\nclass FormPassTest extends TestCase\n{\n public function testDoNothingIfFor", "meta": {"filepath": "src/Symfony/Component/Form/Tests/DependencyInjection/FormPassTest.php", "language": "php", "file_size": 15144, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Guess;\n\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\n\n/**\n * Base class for guesses made by FormTypeGuesserInterface implementation.\n *\n * Each instance contains a confidence value about the correctness of the guess.\n * Thus an instance with confidence HIGH_CONFIDENCE is mo", "suffix": "o be correct.\n */\n public const VERY_HIGH_CONFIDENCE = 3;\n\n /**\n * Marks an instance with a value that is very likely to be correct.\n */\n public const HIGH_CONFIDENCE = 2;\n\n /**\n * Marks an instance with a value that is likely t", "middle": "re likely to be\n * correct than an instance with confidence LOW_CONFIDENCE.\n *\n * @author Bernhard Schussek \n */\nabstract class Guess\n{\n /**\n * Marks an instance with a value that is extremely likely t", "meta": {"filepath": "src/Symfony/Component/Form/Guess/Guess.php", "language": "php", "file_size": 2913, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Guess;\n\n/**\n * Contains a guessed class name and a list of options for creating an instance\n * of that class.\n *\n * @author Bernhard Schussek \n */\nclass TypeGuess extends Guess\n{\n /**\n * @param string $type The guessed ", "suffix": " is correct\n */\n public function __construct(\n private string $type,\n private array $options,\n int $confidence,\n ) {\n parent::__construct($confidence);\n }\n\n /**\n * Returns the guessed field type.\n", "middle": "field type\n * @param array $options The options for creating instances of the\n * guessed class\n * @param int $confidence The confidence that the guessed class name\n * ", "meta": {"filepath": "src/Symfony/Component/Form/Guess/TypeGuess.php", "language": "php", "file_size": 1276, "cut_index": 524, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Guess;\n\n/**\n * Contains a guessed value.\n *\n * @author Bernhard Schussek \n */\nclass ValueGuess extends Guess\n{\n /**\n * @param int $confidence The confidence that the guessed class name is correct\n */\n public function __construct(\n", "suffix": "e string|int|bool|null $value,\n int $confidence,\n ) {\n parent::__construct($confidence);\n }\n\n /**\n * Returns the guessed value.\n */\n public function getValue(): string|int|bool|null\n {\n return $this->value;\n }", "middle": " privat", "meta": {"filepath": "src/Symfony/Component/Form/Guess/ValueGuess.php", "language": "php", "file_size": 809, "cut_index": 536, "middle_length": 14}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Event;\n\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Form\\FormEvent;\n\n/**\n * This event is dispatched at the end of the Form::setData() method.\n *\n * It can be used to modify a form depending on the populate", "suffix": "*/\nfinal class PostSetDataEvent extends FormEvent\n{\n public function setData(mixed $data): never\n {\n throw new BadMethodCallException('Form data cannot be changed during \"form.post_set_data\", you should use \"form.pre_set_data\" instead.');\n ", "middle": "d data (adding or\n * removing fields dynamically).\n ", "meta": {"filepath": "src/Symfony/Component/Form/Event/PostSetDataEvent.php", "language": "php", "file_size": 828, "cut_index": 516, "middle_length": 52}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Event;\n\nuse Symfony\\Component\\Form\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Form\\FormEvent;\n\n/**\n * This event is dispatched after the Form::submit()\n * once the model and view data have been denormalized.\n *\n * It can be used t", "suffix": "PostSubmitEvent extends FormEvent\n{\n public function setData(mixed $data): never\n {\n throw new BadMethodCallException('Form data cannot be changed during \"form.post_submit\", you should use \"form.pre_submit\" or \"form.submit\" instead.');\n }\n}", "middle": "o fetch data after denormalization.\n */\nfinal class ", "meta": {"filepath": "src/Symfony/Component/Form/Event/PostSubmitEvent.php", "language": "php", "file_size": 823, "cut_index": 514, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Test;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\FormExtensionInterface;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\Form\\Forms;\nuse Symfony\\Component\\Form\\FormTypeExtensionInterface;\nuse Symfony\\Component\\Form\\FormTypeGue", "suffix": "protected function setUp(): void\n {\n $this->factory = Forms::createFormFactoryBuilder()\n ->addExtensions($this->getExtensions())\n ->addTypeExtensions($this->getTypeExtensions())\n ->addTypes($this->getTypes())\n ", "middle": "sserInterface;\nuse Symfony\\Component\\Form\\FormTypeInterface;\n\n/**\n * @author Bernhard Schussek \n */\nabstract class FormIntegrationTestCase extends TestCase\n{\n protected FormFactoryInterface $factory;\n\n ", "meta": {"filepath": "src/Symfony/Component/Form/Test/FormIntegrationTestCase.php", "language": "php", "file_size": 1652, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Test;\n\n/**\n * Base class for performance tests.\n *\n * Copied from Doctrine 2's OrmPerformanceTestCase.\n *\n * @author robo\n * @author Bernhard Schussek \n */\nabstract class FormPerformanceTestCase extends FormIntegrationTestCase\n{\n ", "suffix": "s(): void\n {\n parent::assertPostConditions();\n\n $time = microtime(true) - $this->startTime;\n\n if (0 != $this->maxRunningTime && $time > $this->maxRunningTime) {\n $this->fail(\\sprintf('expected running time: <= %s but was:", "middle": " private float $startTime;\n protected int $maxRunningTime = 0;\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->startTime = microtime(true);\n }\n\n protected function assertPostCondition", "meta": {"filepath": "src/Symfony/Component/Form/Test/FormPerformanceTestCase.php", "language": "php", "file_size": 1490, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Test;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symfony\\Component\\Form\\FormExtensionInterface;\nuse Symfony\\Com", "suffix": "(): void\n {\n parent::setUp();\n\n if (!isset($this->dispatcher)) {\n $this->dispatcher = $this->createMock(EventDispatcherInterface::class);\n }\n $this->builder = new FormBuilder('', null, $this->dispatcher, $this->fac", "middle": "ponent\\Form\\Test\\Traits\\ValidatorExtensionTrait;\n\nabstract class TypeTestCase extends FormIntegrationTestCase\n{\n protected FormBuilder $builder;\n protected EventDispatcherInterface $dispatcher;\n\n protected function setUp", "meta": {"filepath": "src/Symfony/Component/Form/Test/TypeTestCase.php", "language": "php", "file_size": 1985, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Test\\Traits;\n\nuse Symfony\\Component\\Form\\Extension\\Validator\\ValidatorExtension;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\Test\\TypeTestCase;\nuse Symfony\\Component\\Validator\\ConstraintViolatio", "suffix": "ationMapperInterface|null $violationMapper\n */\n protected function getValidatorExtension(/* ?ViolationMapperInterface $violationMapper = null */): ValidatorExtension\n {\n $violationMapper = \\func_num_args() ? func_get_arg(0) : null;\n ", "middle": "nList;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\ntrait ValidatorExtensionTrait\n{\n protected ValidatorInterface $validator;\n\n /**\n * @param Viol", "meta": {"filepath": "src/Symfony/Component/Form/Test/Traits/ValidatorExtensionTrait.php", "language": "php", "file_size": 1939, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ArgumentInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PriorityTaggedServiceTrait;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilde", "suffix": "esser\" as arguments of the \"form.extension\" service.\n *\n * @author Bernhard Schussek \n */\nclass FormPass implements CompilerPassInterface\n{\n use PriorityTaggedServiceTrait;\n\n public function process(ContainerBuilder $container): ", "middle": "r;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Adds all services with the tags \"form.type\", \"form.type_extension\" and\n * \"form.type_gu", "meta": {"filepath": "src/Symfony/Component/Form/DependencyInjection/FormPass.php", "language": "php", "file_size": 5907, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\ChoiceList;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ChoiceList\\LazyChoiceList;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\ArrayChoiceLoader;\n\n/**\n * @author Bernhard Schussek \n */\nclass LazyChoiceListTest extends TestCase\n{\n public function testGetChoiceLoadersLoadsLoadedListOnFirstCall()\n ", "suffix": "choice, $choices);\n });\n\n $this->assertSame(['RESULT'], $list->getChoices());\n $this->assertSame(['RESULT'], $list->getChoices());\n $this->assertSame(2, $calls);\n }\n\n public function testGetValuesLoadsLoadedListOnFirstCall", "middle": "{\n $choices = ['RESULT'];\n $calls = 0;\n $list = new LazyChoiceList(new ArrayChoiceLoader($choices), static function ($choice) use ($choices, &$calls) {\n ++$calls;\n\n return array_search($", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/LazyChoiceListTest.php", "language": "php", "file_size": 4236, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\ChoiceList\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\LazyChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\CallbackChoiceLoader;\n\n/**\n * @author Jules Pietri \n */\n", "suffix": "oice_two'];\n private static LazyChoiceList $lazyChoiceList;\n\n public static function setUpBeforeClass(): void\n {\n self::$loader = new CallbackChoiceLoader(static fn () => self::$choices);\n self::$value = static fn ($choice) => $choic", "middle": "class CallbackChoiceLoaderTest extends TestCase\n{\n private static CallbackChoiceLoader $loader;\n private static \\Closure $value;\n private static array $choices;\n private static array $choiceValues = ['choice_one', 'ch", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/Loader/CallbackChoiceLoaderTest.php", "language": "php", "file_size": 2826, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\ChoiceList\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\nuse Symfony\\Component\\Form\\ChoiceList\\LazyChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\IntlCallbackChoiceLoader;\n\n/**\n * @author Jules Pietri \n", "suffix": "\n private static array $choiceValues = ['choice_one', 'choice_two'];\n private static LazyChoiceList $lazyChoiceList;\n\n public static function setUpBeforeClass(): void\n {\n self::$loader = new IntlCallbackChoiceLoader(static fn () => self:", "middle": " * @author Yonel Ceruto \n */\nclass IntlCallbackChoiceLoaderTest extends TestCase\n{\n private static IntlCallbackChoiceLoader $loader;\n private static \\Closure $value;\n private static array $choices;", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/Loader/IntlCallbackChoiceLoaderTest.php", "language": "php", "file_size": 2759, "cut_index": 563, "middle_length": 229}} {"prefix": "se Symfony\\Component\\Form\\Tests\\ChoiceList\\ChoiceListAssertionTrait;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\ArrayChoiceLoader;\nuse Symfony\\Component\\Translation\\TranslatableMessage;\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass DefaultChoiceListFactoryTest extends TestCase\n{\n use ChoiceListAssertionTrait;\n\n private \\stdClass $obj1;\n private \\stdClass $obj2;\n private \\stdClass $obj3;\n private \\stdClass $obj4;\n priva", "suffix": ") {\n case 'a': return 'a';\n case 'b': return 'b';\n case 'c': return '1';\n case 'd': return '2';\n }\n }\n\n public function getLabel($object)\n {\n return $object->label;\n }\n\n public functi", "middle": "te ArrayChoiceList $list;\n private DefaultChoiceListFactory $factory;\n\n public function getValue($object)\n {\n return $object->value;\n }\n\n public function getScalarValue($choice)\n {\n switch ($choice", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php", "language": "php", "file_size": 31281, "cut_index": 1331, "middle_length": 229}} {"prefix": "rm\\ChoiceList\\Factory\\DefaultChoiceListFactory;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\PropertyAccessDecorator;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceGroupView;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\ArrayChoiceLoader;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\n\n/**\n * @author Bernhard Schussek \n */\nclass PropertyAccessDecoratorTest extends TestCase\n{\n private PropertyAccessDecorator $factory;\n\n pr", "suffix": "' => 'value'];\n\n $this->assertSame(['value' => $object], $this->factory->createListFromChoices([$object], 'property')->getChoices());\n }\n\n public function testCreateFromChoicesPropertyPathInstance()\n {\n $object = (object) ['property'", "middle": "otected function setUp(): void\n {\n $this->factory = new PropertyAccessDecorator(new DefaultChoiceListFactory());\n }\n\n public function testCreateFromChoicesPropertyPath()\n {\n $object = (object) ['property", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/Factory/PropertyAccessDecoratorTest.php", "language": "php", "file_size": 10068, "cut_index": 921, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\n\nclass AlternatingRowType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): ", "suffix": "ents::PRE_SET_DATA, function (FormEvent $event) {\n $form = $event->getForm();\n $type = 0 === $form->getName() % 2\n ? 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType'\n : 'Symfony\\Component\\Form\\Extens", "middle": "void\n {\n $builder->addEventListener(FormEv", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/AlternatingRowType.php", "language": "php", "file_size": 979, "cut_index": 582, "middle_length": 52}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass AuthorType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $bui", "suffix": " ->add('firstName')\n ->add('lastName')\n ;\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'data_class' => 'Symfony\\Component\\Form\\Tests\\Fixtures\\Aut", "middle": "lder, array $options): void\n {\n $builder\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/AuthorType.php", "language": "php", "file_size": 863, "cut_index": 529, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextareaType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symf", "suffix": "builder, array $options): void\n {\n $builder->addEventListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event): void {\n $event->getForm()\n ->add('0', TextareaType::class)\n ->add('foo', TextType", "middle": "ony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\n\nclass CollectionWithPreSetDataType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/CollectionWithPreSetDataType.php", "language": "php", "file_size": 1138, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form", "suffix": "ntListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event): void {\n $event->getForm()->add('foo', TextType::class);\n });\n\n $builder->addEventListener(FormEvents::POST_SET_DATA, static function (FormEvent $event): void ", "middle": "\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\n\nclass CollectionWithRecursiveSetDataType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->addEve", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/CollectionWithRecursiveSetDataType.php", "language": "php", "file_size": 1417, "cut_index": 524, "middle_length": 229}} {"prefix": " \\Locale::setDefault('en');\n parent::setUp();\n }\n\n protected function tearDown(): void\n {\n \\Locale::setDefault($this->defaultLocale);\n }\n\n public function testSubmitDateTime()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'model_timezone' => 'UTC',\n 'view_timezone' => 'UTC',\n 'date_widget' => 'choice',\n 'years' => [2010],\n 'time_widget' => 'choice',\n 'input' => 'datetime',\n ", "suffix": " 'minute' => '4',\n ],\n ]);\n\n $dateTime = new \\DateTime('2010-06-02 03:04:00 UTC');\n\n $this->assertEquals($dateTime, $form->getData());\n }\n\n public function testSubmitDatePoint()\n {\n $form = $this->factor", "middle": "]);\n\n $form->submit([\n 'date' => [\n 'day' => '2',\n 'month' => '6',\n 'year' => '2010',\n ],\n 'time' => [\n 'hour' => '3',\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php", "language": "php", "file_size": 28623, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ColorType;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormErrorIterator;\n\nfinal class ColorTypeTest extends BaseTypeTestCase\n{\n public const TEST", "suffix": " null, [\n 'html5' => $html5,\n 'trim' => true,\n ]);\n\n $form->submit($submittedValue);\n\n $this->assertInstanceOf(FormErrorIterator::class, $form->getErrors());\n $this->assertCount(0, $form->getErrors());\n ", "middle": "ED_TYPE = ColorType::class;\n\n #[DataProvider('validationShouldPassProvider')]\n public function testValidationShouldPass(bool $html5, ?string $submittedValue)\n {\n $form = $this->factory->create(static::TESTED_TYPE,", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/ColorTypeTest.php", "language": "php", "file_size": 2637, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\WeekToArrayTransformer;\n\nclass WeekToArrayTransformerTest extends TestCase\n{\n public function te", "suffix": " $transformer = new WeekToArrayTransformer();\n\n $this->assertSame(['year' => null, 'week' => null], $transformer->transform(null));\n }\n\n #[DataProvider('transformationFailuresProvider')]\n public function testTransformationFailures($input, ", "middle": "stTransform()\n {\n $transformer = new WeekToArrayTransformer();\n\n $this->assertSame(['year' => 2019, 'week' => 1], $transformer->transform('2019-W01'));\n }\n\n public function testTransformEmpty()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/WeekToArrayTransformerTest.php", "language": "php", "file_size": 4161, "cut_index": 614, "middle_length": 229}} {"prefix": "ntDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataAccessor\\PropertyPathAccessor;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataMapper\\DataMapper;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Form\\FormConfigBuilder;\nuse Symfony\\Component\\Form\\FormFactoryBuilder;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\T", "suffix": "$dispatcher;\n\n protected function setUp(): void\n {\n $this->mapper = new DataMapper();\n $this->dispatcher = new EventDispatcher();\n }\n\n public function testMapDataToFormsPassesObjectRefIfByReference()\n {\n $car = new \\stdC", "middle": "ypehintedPropertiesCar;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\n\nclass DataMapperTest extends TestCase\n{\n private DataMapper $mapper;\n private EventDispatcher ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataMapper/DataMapperTest.php", "language": "php", "file_size": 15110, "cut_index": 921, "middle_length": 229}} {"prefix": "gmail.com>\n */\nclass OrderedHashMapTest extends TestCase\n{\n public function testGet()\n {\n $map = new OrderedHashMap();\n $map['first'] = 1;\n\n $this->assertSame(1, $map['first']);\n }\n\n public function testGetNonExistingFails()\n {\n $this->expectException(\\OutOfBoundsException::class);\n $map = new OrderedHashMap();\n\n $map['first'];\n }\n\n public function testInsertStringKeys()\n {\n $map = new OrderedHashMap();\n $map['first'] = 1;\n ", "suffix": "p['foo'] = 2;\n $map[] = 3;\n\n $this->assertSame(['0' => 1, 'foo' => 2, '1' => 3], iterator_to_array($map));\n }\n\n public function testInsertLooselyEqualKeys()\n {\n $map = new OrderedHashMap();\n $map['1 as a string'] = '1 a", "middle": " $map['second'] = 2;\n\n $this->assertSame(['first' => 1, 'second' => 2], iterator_to_array($map));\n }\n\n public function testInsertNullKeys()\n {\n $map = new OrderedHashMap();\n $map[] = 1;\n $ma", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Util/OrderedHashMapTest.php", "language": "php", "file_size": 15878, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Util\\StringUtil;\n\nclass StringUtilTest extends TestCase\n{\n public static function trimProvider(): array\n {\n return [\n [' Foo! ', 'Foo!'],\n [\"\\u{1F92E}\", \"\\u{1F92E}\"], // unassigned characte", "suffix": "vider('spaceProvider')]\n public function testTrimUtf8Separators($hex)\n {\n // Convert hexadecimal representation into binary\n // H: hex string, high nibble first (UCS-2BE)\n // *: repeat until end of string\n $binary = pack('", "middle": "r in PCRE versions of assertSame($expectedData, StringUtil::trim($data));\n }\n\n #[DataPro", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Util/StringUtilTest.php", "language": "php", "file_size": 3685, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Console\\Descriptor;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Exte", "suffix": "e Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManager;\n\nabstract class AbstractDescriptorTestCase extends TestCase\n{\n private string|false $colSize;\n\n protected function setUp(): void\n {\n ", "middle": "nsion\\Csrf\\Type\\FormTypeCsrfExtension;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\ResolvedFormType;\nuse Symfony\\Component\\Form\\ResolvedFormTypeInterface;\nuse Symfony\\Component\\OptionsResolver\\Options;\nus", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Console/Descriptor/AbstractDescriptorTestCase.php", "language": "php", "file_size": 7979, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\ChoiceList\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ChoiceList\\ArrayChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\FilterChoiceLoaderDecorator;\nuse Symfony\\Component\\Form\\Tests\\ChoiceList\\ChoiceListAssertionTrait;\nuse Symfony\\Component\\Form\\Tests\\Fi", "suffix": " $loader = new FilterChoiceLoaderDecorator(new ArrayChoiceLoader(range(1, 4)), $filter);\n\n $this->assertEqualsArrayChoiceList(new ArrayChoiceList([1 => 2, 3 => 4]), $loader->loadChoiceList());\n }\n\n public function testLoadChoiceListWithGr", "middle": "xtures\\ArrayChoiceLoader;\n\nclass FilterChoiceLoaderDecoratorTest extends TestCase\n{\n use ChoiceListAssertionTrait;\n\n public function testLoadChoiceList()\n {\n $filter = static fn ($choice) => 0 === $choice % 2;\n\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/Loader/FilterChoiceLoaderDecoratorTest.php", "language": "php", "file_size": 2927, "cut_index": 563, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceListView;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Tests\\ChoiceList\\ChoiceListAssertionTrait;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\ArrayChoiceLoader;\n\n/**\n * @author Bernhard Schussek \n */\nclass CachingFactoryDecoratorTest extends TestCase\n{\n use ChoiceListAssertionTrait;\n\n private CachingFactoryDecorator $factory;\n\n protected function setUp(): void\n {\n $this->factory = n", "suffix": "Choices([]);\n\n $this->assertSame($list1, $list2);\n self::assertEqualsArrayChoiceList(new ArrayChoiceList([]), $list1);\n self::assertEqualsArrayChoiceList(new ArrayChoiceList([]), $list2);\n }\n\n public function testCreateFromChoice", "middle": "ew CachingFactoryDecorator(new DefaultChoiceListFactory());\n }\n\n public function testCreateFromChoicesEmpty()\n {\n $list1 = $this->factory->createListFromChoices([]);\n $list2 = $this->factory->createListFrom", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/Factory/CachingFactoryDecoratorTest.php", "language": "php", "file_size": 24965, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nclass Author\n{\n public $firstName;\n private $lastName;\n private $australian;\n public $child;\n private $readPermissions;\n\n private $privateProperty;\n\n public function __construct($firstName = null, $lastName = null)\n", "suffix": " return $this->lastName;\n }\n\n private function getPrivateGetter()\n {\n return 'foobar';\n }\n\n public function setAustralian($australian)\n {\n $this->australian = $australian;\n }\n\n public function isAustralian()\n {\n ", "middle": " {\n $this->firstName = $firstName;\n $this->lastName = $lastName;\n }\n\n public function setLastName($lastName)\n {\n $this->lastName = $lastName;\n }\n\n public function getLastName()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/Author.php", "language": "php", "file_size": 1421, "cut_index": 524, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Paráda József \n */\nclass ChoiceSubType extends AbstractType\n{\n public function configureOptions(OptionsResolver $resolve", "suffix": "nded' => true]);\n $resolver->setNormalizer('choices', fn () => [\n 'attr1' => 'Attribute 1',\n 'attr2' => 'Attribute 2',\n ]);\n }\n\n public function getParent(): ?string\n {\n return ChoiceType::class;\n }\n}\n", "middle": "r): void\n {\n $resolver->setDefaults(['expa", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/ChoiceSubType.php", "language": "php", "file_size": 916, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\n/**\n * This class is a hand written simplified version of PHP native `ArrayObject`\n * class, to show that it behaves differently than the PHP native implementation.\n */\nclass CustomArrayObject implements \\ArrayAccess, \\IteratorAggregate, \\Countable\n", "suffix": "$this->array);\n }\n\n public function offsetGet($offset): mixed\n {\n return $this->array[$offset];\n }\n\n public function offsetSet($offset, $value): void\n {\n if (null === $offset) {\n $this->array[] = $value;\n }", "middle": "{\n private array $array;\n\n public function __construct(?array $array = null)\n {\n $this->array = $array ?: [];\n }\n\n public function offsetExists($offset): bool\n {\n return \\array_key_exists($offset, ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Fixtures/CustomArrayObject.php", "language": "php", "file_size": 1562, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\DataTransformer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\ValueToDuplicatesTransformer;\n\nclass ValueToDuplicatesTransformerTest extends TestCase\n{\n private ValueToDuplicatesTransformer $transformer;\n\n ", "suffix": "'b' => 'Foo',\n 'c' => 'Foo',\n ];\n\n $this->assertSame($output, $this->transformer->transform('Foo'));\n }\n\n public function testTransformEmpty()\n {\n $output = [\n 'a' => null,\n 'b' => null,\n ", "middle": " protected function setUp(): void\n {\n $this->transformer = new ValueToDuplicatesTransformer(['a', 'b', 'c']);\n }\n\n public function testTransform()\n {\n $output = [\n 'a' => 'Foo',\n ", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ValueToDuplicatesTransformerTest.php", "language": "php", "file_size": 3234, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\HtmlSanitizer\\Type;\n\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\E", "suffix": "erInterface;\n\nclass TextTypeHtmlSanitizerExtensionTest extends TypeTestCase\n{\n protected function setUp(): void\n {\n $this->dispatcher = new EventDispatcher();\n\n parent::setUp();\n }\n\n protected function getExtensions(?ViolationMapp", "middle": "xtension\\HtmlSanitizer\\HtmlSanitizerExtension;\nuse Symfony\\Component\\Form\\Extension\\Validator\\ViolationMapper\\ViolationMapperInterface;\nuse Symfony\\Component\\Form\\Test\\TypeTestCase;\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitiz", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/HtmlSanitizer/Type/TextTypeHtmlSanitizerExtensionTest.php", "language": "php", "file_size": 2478, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\ChoiceList;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ArrayChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface;\n\n/**\n * @author Bernhard Schussek \n */\nclass ArrayChoiceListTest extends AbstractChoiceListTestCase\n{\n private \\stdClass $object;\n\n protected function setUp(): void\n {\n $this->object = new \\stdClass();\n\n parent::setUp();\n }\n\n protected function createChoiceList(", "suffix": "unction getValues()\n {\n return ['0', '1', '2', '3', '4', '5', '6', '7', '8'];\n }\n\n public function testCreateChoiceListWithValueCallback()\n {\n $callback = static fn ($choice) => ':'.$choice;\n\n $choiceList = new ArrayChoiceL", "middle": "): ChoiceListInterface\n {\n return new ArrayChoiceList($this->getChoices());\n }\n\n protected function getChoices()\n {\n return [0, 1, 1.5, '1', 'a', false, true, $this->object, null];\n }\n\n protected f", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/ArrayChoiceListTest.php", "language": "php", "file_size": 6990, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\ChoiceList;\n\nuse Symfony\\Component\\Form\\ChoiceList\\ArrayChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\LazyChoiceList;\n\ntrait ChoiceListAssertionTrait\n{\n private function assertEqualsArrayChoiceList(ArrayChoiceList $expected, $actual)\n {\n", "suffix": "lues());\n $this->assertEquals($expected->getOriginalKeys(), $actual->getOriginalKeys());\n }\n\n private function assertEqualsLazyChoiceList(LazyChoiceList $expected, $actual)\n {\n $this->assertInstanceOf(LazyChoiceList::class, $actual);", "middle": " $this->assertInstanceOf(ArrayChoiceList::class, $actual);\n $this->assertEquals($expected->getChoices(), $actual->getChoices());\n $this->assertEquals($expected->getStructuredValues(), $actual->getStructuredVa", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/ChoiceListAssertionTrait.php", "language": "php", "file_size": 1257, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\ChoiceList\\Factory\\Cache;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ChoiceList\\ArrayChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\Cache\\ChoiceLoader;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\CallbackChoiceLoader;\nuse Symfony\\C", "suffix": "iceListAssertionTrait;\n\n public function testSameFormTypeUseCachedLoader()\n {\n $choices = ['f' => 'foo', 'b' => 'bar', 'z' => 'baz'];\n $choiceList = new ArrayChoiceList($choices);\n\n $type = new FormType();\n $decorated = ne", "middle": "omponent\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Tests\\ChoiceList\\ChoiceListAssertionTrait;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\ArrayChoiceLoader;\n\nclass ChoiceLoaderTest extends TestCase\n{\n use Cho", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/Factory/Cache/ChoiceLoaderTest.php", "language": "php", "file_size": 1694, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PercentType;\nuse Symfony\\Component\\Form\\Test\\TypeTestCase;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\nclass PercentTypeTest extends TypeTestCase\n{\n publi", "suffix": "d the full\n // implementation\n IntlTestHelper::requireFullIntl($this);\n\n parent::setUp();\n\n $this->defaultLocale = \\Locale::getDefault();\n }\n\n protected function tearDown(): void\n {\n if (isset($this->defaultLocal", "middle": "c const TESTED_TYPE = PercentType::class;\n\n private string $defaultLocale;\n\n protected function setUp(): void\n {\n $this->dispatcher = new EventDispatcher();\n\n // we test against different locales, so we nee", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/Core/Type/PercentTypeTest.php", "language": "php", "file_size": 2728, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Extension\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Form\\Extension\\DependencyInjection\\DependencyInjectionExtension;\nuse Symfony\\C", "suffix": "tTypeExtension();\n $typeExtension3 = new OtherTypeExtension();\n $typeExtension4 = new MultipleTypesTypeExtension();\n\n $extensions = [\n 'test' => new \\ArrayIterator([$typeExtension1, $typeExtension2, $typeExtension4]),\n ", "middle": "omponent\\Form\\FormTypeGuesserChain;\n\nclass DependencyInjectionExtensionTest extends TestCase\n{\n public function testGetTypeExtensions()\n {\n $typeExtension1 = new TestTypeExtension();\n $typeExtension2 = new Tes", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Extension/DependencyInjection/DependencyInjectionExtensionTest.php", "language": "php", "file_size": 3322, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\ChoiceList\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\LazyChoiceLoader;\nuse Symfony\\Component\\Form\\Tests\\Fixtures\\ArrayChoiceLoader;\n\nclass LazyChoiceLoaderTest extends TestCase\n{\n private LazyChoiceLoader $loader;", "suffix": " $this->loader->loadChoiceList()->getChoices());\n }\n\n public function testOnDemandChoiceListAfterLoadingValuesForChoices()\n {\n $this->loader->loadValuesForChoices(['A']);\n $this->assertSame(['A' => 'A'], $this->loader->loadChoiceList", "middle": "\n\n protected function setUp(): void\n {\n $this->loader = new LazyChoiceLoader(new ArrayChoiceLoader(['A', 'B', 'C']));\n }\n\n public function testInitialEmptyChoiceListLoading()\n {\n $this->assertSame([],", "meta": {"filepath": "src/Symfony/Component/Form/Tests/ChoiceList/Loader/LazyChoiceLoaderTest.php", "language": "php", "file_size": 1525, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Form\\Tests\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Util\\ServerParams;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\n\nclass ServerParamsTest extends TestCase\n{\n public fun", "suffix": "(1024, $serverParams->getContentLength());\n\n unset($_SERVER['CONTENT_LENGTH']);\n }\n\n public function testGetContentLengthFromRequest()\n {\n $request = Request::create('http://foo', 'GET', [], [], [], ['CONTENT_LENGTH' => 1024]);\n ", "middle": "ction testGetContentLengthFromSuperglobals()\n {\n $serverParams = new ServerParams();\n $this->assertNull($serverParams->getContentLength());\n\n $_SERVER['CONTENT_LENGTH'] = 1024;\n\n $this->assertEquals", "meta": {"filepath": "src/Symfony/Component/Form/Tests/Util/ServerParamsTest.php", "language": "php", "file_size": 2323, "cut_index": 563, "middle_length": 229}} {"prefix": "enameFilterIterator;\nuse Symfony\\Component\\Finder\\Iterator\\LazyIterator;\nuse Symfony\\Component\\Finder\\Iterator\\SizeRangeFilterIterator;\nuse Symfony\\Component\\Finder\\Iterator\\SortableIterator;\n\n/**\n * Finder allows to build rules to find files and directories.\n *\n * It is a thin wrapper around several specialized iterator classes.\n *\n * All rules may be invoked several times.\n *\n * All methods return the current Finder object to allow chaining:\n *\n * $finder = Finder::create()->files()->name('*.php')->in", "suffix": ";\n public const IGNORE_DOT_FILES = 2;\n public const IGNORE_VCS_IGNORED_FILES = 4;\n\n private int $mode = 0;\n private array $names = [];\n private array $notNames = [];\n private array $exclude = [];\n private array $filters = [];\n priva", "middle": "(__DIR__);\n *\n * @author Fabien Potencier \n *\n * @implements \\IteratorAggregate\n */\nclass Finder implements \\IteratorAggregate, \\Countable\n{\n public const IGNORE_VCS_FILES = 1", "meta": {"filepath": "src/Symfony/Component/Finder/Finder.php", "language": "php", "file_size": 24685, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests\\Iterator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Finder\\Iterator\\MultiplePcreFilterIterator;\n\nclass MultiplePcreFilterIteratorTest extends TestCase\n{\n #[DataProvider('getIsRegexFixtures')]\n public function testIsReg", "suffix": "tures()\n {\n yield ['foo', false, 'string'];\n yield [' foo ', false, '\" \" is not a valid delimiter'];\n yield ['\\\\foo\\\\', false, '\"\\\\\" is not a valid delimiter'];\n yield ['afooa', false, '\"a\" is not a valid delimiter'];\n ", "middle": "ex($string, $isRegex, $message)\n {\n $testIterator = new TestMultiplePcreFilterIterator();\n $this->assertEquals($isRegex, $testIterator->isRegex($string), $message);\n }\n\n public static function getIsRegexFix", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/Iterator/MultiplePcreFilterIteratorTest.php", "language": "php", "file_size": 2380, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder;\n\n/**\n * Glob matches globbing patterns against text.\n *\n * if match_glob(\"foo.*\", \"foo.bar\") echo \"matched\\n\";\n *\n * // prints foo.bar and foo.baz\n * $regex = glob_to_regex(\"foo.*\");\n * for (['foo.bar', 'foo.baz', 'foo', 'bar'] as $t)\n * {\n * if (/$regex/) echo \"matched: $car\\n\";\n * }\n *\n * Glob implements ", "suffix": " Richard Clamp Perl version\n * @copyright 2004-2005 Fabien Potencier \n * @copyright 2002 Richard Clamp \n */\nclass Glob\n{\n /**\n * Returns a regexp which is the equivalent of the ", "middle": "glob(3) style matching that can be used to match\n * against text, rather than fetching names from a filesystem.\n *\n * Based on the Perl Text::Glob module.\n *\n * @author Fabien Potencier PHP port\n * @author ", "meta": {"filepath": "src/Symfony/Component/Finder/Glob.php", "language": "php", "file_size": 3865, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\n/**\n * CustomFilterIterator filters files by applying anonymous functions.\n *\n * The anonymous function receives a \\SplFileInfo and must return false\n * to remove files.\n *\n * @author Fabien Potencier \n *\n * @extends \\FilterIterator<", "suffix": " $filters An array of PHP callbacks\n *\n * @throws \\InvalidArgumentException\n */\n public function __construct(\\Iterator $iterator, array $filters)\n {\n foreach ($filters as $filter) {\n if (!\\is_callable($f", "middle": "string, \\SplFileInfo>\n */\nclass CustomFilterIterator extends \\FilterIterator\n{\n private array $filters = [];\n\n /**\n * @param \\Iterator $iterator The Iterator to filter\n * @param callable[] ", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/CustomFilterIterator.php", "language": "php", "file_size": 1527, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\nuse Symfony\\Component\\Finder\\Comparator\\DateComparator;\n\n/**\n * DateRangeFilterIterator filters out files that are not in the given date range (last modified dates).\n *\n * @author Fabien Potencier \n *\n * @extends \\Filter", "suffix": " $comparators\n */\n public function __construct(\\Iterator $iterator, array $comparators)\n {\n $this->comparators = $comparators;\n\n parent::__construct($iterator);\n }\n\n /**\n * Filters the iterator values.\n */\n ", "middle": "Iterator\n */\nclass DateRangeFilterIterator extends \\FilterIterator\n{\n private array $comparators = [];\n\n /**\n * @param \\Iterator $iterator\n * @param DateComparator[] ", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php", "language": "php", "file_size": 1401, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\n/**\n * ExcludeDirectoryFilterIterator filters out directories.\n *\n * @author Fabien Potencier \n *\n * @extends \\FilterIterator\n *\n * @implements \\RecursiveIterator\n */\nclass ExcludeDirectoryFilterIterator extends \\FilterIterat", "suffix": "te ?string $excludedPattern = null;\n /** @var list */\n private array $pruneFilters = [];\n\n /**\n * @param \\Iterator $iterator The Iterator to filter\n * @param list */\n private \\Iterator $iterator;\n private bool $isRecursive;\n /** @var array */\n private array $excludedDirs = [];\n priva", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php", "language": "php", "file_size": 3382, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\nuse Symfony\\Component\\Finder\\Glob;\n\n/**\n * FilenameFilterIterator filters files by patterns (a regexp, a glob, or a string).\n *\n * @author Fabien Potencier \n *\n * @extends MultiplePcreFilterIterator\n */\nclass FilenameFilterIterator extends MultiplePcreFilterIterator\n{\n /**\n * Filters the iterator values.\n */\n public function accept(): bool\n {\n return $this->isAccepted($this->current()->getFi", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/FilenameFilterIterator.php", "language": "php", "file_size": 1105, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\n/**\n * PathFilterIterator filters files by path patterns (e.g. some/special/dir).\n *\n * @author Fabien Potencier \n * @author Włodzimierz Gajda \n *\n * @extends", "suffix": "this->current()->getRelativePathname();\n\n if ('\\\\' === \\DIRECTORY_SEPARATOR) {\n $filename = str_replace('\\\\', '/', $filename);\n }\n\n return $this->isAccepted($filename);\n }\n\n /**\n * Converts strings to regexp.\n ", "middle": " MultiplePcreFilterIterator\n */\nclass PathFilterIterator extends MultiplePcreFilterIterator\n{\n /**\n * Filters the iterator values.\n */\n public function accept(): bool\n {\n $filename = $", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/PathFilterIterator.php", "language": "php", "file_size": 1423, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\nuse Symfony\\Component\\Finder\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\n/**\n * Extends the \\RecursiveDirectoryIterator to support relative paths.\n *\n * @author Victor Berchet \n *\n * @extends \\RecursiveDirectoryIterator\n */\nclass RecursiveDirectoryIterator e", "suffix": "terations\n private string $rootPath;\n private string $subPath;\n private string $directorySeparator = '/';\n\n /**\n * @throws \\RuntimeException\n */\n public function __construct(string $path, int $flags, bool $ignoreUnreadableDirs = fals", "middle": "xtends \\RecursiveDirectoryIterator\n{\n private bool $ignoreUnreadableDirs;\n private bool $ignoreFirstRewind = true;\n\n // these 3 properties take part of the performance optimization to avoid redoing the same work in all i", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php", "language": "php", "file_size": 4136, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\nuse Symfony\\Component\\Finder\\Gitignore;\n\n/**\n * @extends \\FilterIterator\n */\nfinal class VcsIgnoredFilterIterator extends \\FilterIterator\n{\n private string $baseDir;\n\n /**\n * @var array\n */\n private array $gitignoreFilesCache = [];\n\n /**\n * @", "suffix": " $this->baseDir = $this->normalizePath($baseDir);\n\n foreach ([$this->baseDir, ...$this->parentDirectoriesUpwards($this->baseDir)] as $directory) {\n if (@is_dir(\"{$directory}/.git\")) {\n $this->baseDir = $directory;\n ", "middle": "var array\n */\n private array $ignoredPathsCache = [];\n\n /**\n * @param \\Iterator $iterator\n */\n public function __construct(\\Iterator $iterator, string $baseDir)\n {\n ", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/VcsIgnoredFilterIterator.php", "language": "php", "file_size": 4718, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\RunInSeparateProcess;\nuse Symfony\\Component\\Finder\\Finder;\n\nclass FinderOpenBasedirTest extends Iterator\\RealIteratorTestCase\n{\n #[RunInSeparateProcess]\n public function testIgnoreVCSIgnoredWithOpenBasedir()\n {\n ", "suffix": " $finder = $this->buildFinder();\n $this->assertSame(\n $finder,\n $finder\n ->ignoreVCS(true)\n ->ignoreDotFiles(true)\n ->ignoreVCSIgnored(true)\n );\n\n $openBaseDir = \\dirn", "middle": " $this->markTestIncomplete('Test case needs to be refactored so that PHPUnit can run it');\n\n if (\\ini_get('open_basedir')) {\n $this->markTestSkipped('Cannot test when open_basedir is set');\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/FinderOpenBasedirTest.php", "language": "php", "file_size": 1907, "cut_index": 537, "middle_length": 229}} {"prefix": "ore::toRegex(implode(\"\\r\\n\", $gitignoreLines)));\n $this->assertSame($regex, Gitignore::toRegex(implode(\"\\r\", $gitignoreLines)));\n\n foreach ($matchingCases as $matchingCase) {\n $this->assertMatchesRegularExpression(\n $regex,\n $matchingCase,\n \\sprintf(\n \"Failed asserting path:\\n%s\\nmatches gitignore patterns:\\n%s\",\n preg_replace('~^~m', ' ', $matchingCase),\n preg_replace('~^~m', ' ", "suffix": "se,\n \\sprintf(\"Failed asserting path:\\n%s\\nNOT matching gitignore patterns:\\n%s\",\n preg_replace('~^~m', ' ', $nonMatchingCase),\n preg_replace('~^~m', ' ', $patterns)\n )\n )", "middle": " ', $patterns)\n )\n );\n }\n\n foreach ($nonMatchingCases as $nonMatchingCase) {\n $this->assertDoesNotMatchRegularExpression(\n $regex,\n $nonMatchingCa", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/GitignoreTest.php", "language": "php", "file_size": 26613, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests\\Iterator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Finder\\Comparator\\DateComparator;\nuse Symfony\\Component\\Finder\\Iterator\\DateRangeFilterIterator;\n\nclass DateRangeFilterIteratorTest extends RealIteratorTestCase\n{\n #[DataProvider('getAcceptData')]\n ", "suffix": "er, $size);\n\n $this->assertIterator($expected, $iterator);\n }\n\n public static function getAcceptData()\n {\n $since20YearsAgo = [\n '.git',\n 'test.py',\n 'foo',\n 'foo/bar.tmp',\n 'tes", "middle": "public function testAccept($size, $expected)\n {\n $files = self::$files;\n $files[] = static::toAbsolute('doesnotexist');\n $inner = new Iterator($files);\n\n $iterator = new DateRangeFilterIterator($inn", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/Iterator/DateRangeFilterIteratorTest.php", "language": "php", "file_size": 2507, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests\\Iterator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Finder\\Iterator\\ExcludeDirectoryFilterIterator;\nuse Symfony\\Component\\Finder\\Iterator\\RecursiveDirectoryIterator;\n\nclass ExcludeDirectoryFilterIteratorTest extends RealIteratorTestCase\n{\n #[DataProvide", "suffix": "atorIterator::SELF_FIRST);\n\n $iterator = new ExcludeDirectoryFilterIterator($inner, $directories);\n\n $this->assertIterator($expected, $iterator);\n }\n\n public static function getAcceptData()\n {\n $foo = [\n '.bar',\n ", "middle": "r('getAcceptData')]\n public function testAccept($directories, $expected)\n {\n $inner = new \\RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->toAbsolute(), \\FilesystemIterator::SKIP_DOTS), \\RecursiveIter", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/Iterator/ExcludeDirectoryFilterIteratorTest.php", "language": "php", "file_size": 2907, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests\\Iterator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Finder\\Iterator\\FileTypeFilterIterator;\n\nclass FileTypeFilterIteratorTest extends RealIteratorTestCase\n{\n #[DataProvider('getAcceptData')]\n public function testAccept($mode", "suffix": "cceptData()\n {\n $onlyFiles = [\n 'test.py',\n 'foo/bar.tmp',\n 'test.php',\n '.bar',\n '.foo/.bar',\n '.foo/bar',\n 'foo bar',\n 'qux/baz_100_1.py',\n 'zebu", "middle": ", $expected)\n {\n $inner = new InnerTypeIterator(self::$files);\n\n $iterator = new FileTypeFilterIterator($inner, $mode);\n\n $this->assertIterator($expected, $iterator);\n }\n\n public static function getA", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/Iterator/FileTypeFilterIteratorTest.php", "language": "php", "file_size": 1983, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests\\Iterator;\n\nclass Iterator implements \\Iterator\n{\n protected array $values = [];\n\n public function __construct(array $values = [])\n {\n foreach ($values as $value) {\n $this->attach(new \\SplFileInfo($value));\n ", "suffix": "ublic function valid(): bool\n {\n return false !== $this->current();\n }\n\n public function next(): void\n {\n next($this->values);\n }\n\n public function current(): mixed\n {\n return current($this->values);\n }\n\n pub", "middle": " }\n $this->rewind();\n }\n\n public function attach(\\SplFileInfo $fileinfo): void\n {\n $this->values[] = $fileinfo;\n }\n\n public function rewind(): void\n {\n reset($this->values);\n }\n\n p", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/Iterator/Iterator.php", "language": "php", "file_size": 1075, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests\\Iterator;\n\nuse PHPUnit\\Framework\\TestCase;\n\nabstract class IteratorTestCase extends TestCase\n{\n protected function assertIterator($expected, \\Traversable $iterator)\n {\n // set iterator_to_array $use_key to false to avoid values merge\n // this made FinderTest::testAppendWithAnArray() fail with GnuFinderAdapter\n ", "suffix": "('/', \\DIRECTORY_SEPARATOR, $path), $expected);\n\n sort($values);\n sort($expected);\n\n $this->assertEquals($expected, array_values($values));\n }\n\n protected function assertOrderedIterator($expected, \\Traversable $iterator)\n {\n ", "middle": " $values = array_map(static fn (\\SplFileInfo $fileinfo) => str_replace('/', \\DIRECTORY_SEPARATOR, $fileinfo->getPathname()), iterator_to_array($iterator, false));\n\n $expected = array_map(static fn ($path) => str_replace", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/Iterator/IteratorTestCase.php", "language": "php", "file_size": 3425, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder;\n\n/**\n * Gitignore matches against text.\n *\n * @author Michael Voříšek \n * @author Ahmed Abdou \n */\nclass Gitignore\n{\n /**\n * Returns a regexp which is the equivalent of the gitignore pattern.\n *\n * Format specification: https://git-scm.co", "suffix": "ingNegatedPatterns(string $gitignoreFileContent): string\n {\n return self::buildRegex($gitignoreFileContent, true);\n }\n\n private static function buildRegex(string $gitignoreFileContent, bool $inverted): string\n {\n $gitignoreFileCon", "middle": "m/docs/gitignore#_pattern_format\n */\n public static function toRegex(string $gitignoreFileContent): string\n {\n return self::buildRegex($gitignoreFileContent, false);\n }\n\n public static function toRegexMatch", "meta": {"filepath": "src/Symfony/Component/Finder/Gitignore.php", "language": "php", "file_size": 3019, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder;\n\n/**\n * Extends \\SplFileInfo to support relative paths.\n *\n * @author Fabien Potencier \n */\nclass SplFileInfo extends \\SplFileInfo\n{\n /**\n * @param string $file The file name\n * @param string $relativePath The relati", "suffix": "parent::__construct($file);\n }\n\n /**\n * Returns the relative path.\n *\n * This path does not contain the file name.\n */\n public function getRelativePath(): string\n {\n return $this->relativePath;\n }\n\n /**\n * Retur", "middle": "ve path\n * @param string $relativePathname The relative path name\n */\n public function __construct(\n string $file,\n private string $relativePath,\n private string $relativePathname,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Finder/SplFileInfo.php", "language": "php", "file_size": 1886, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\n/**\n * DepthRangeFilterIterator limits the directory depth.\n *\n * @author Fabien Potencier \n *\n * @template-covariant TKey\n * @template-covariant TValue\n *\n * @extends \\FilterIterator\n */\nclass DepthRangeFi", "suffix": " $minDepth The min depth\n * @param int $maxDepth The max depth\n */\n public function __construct(\\RecursiveIteratorIterator $iterator, int $minDepth = 0, int", "middle": "lterIterator extends \\FilterIterator\n{\n private int $minDepth = 0;\n\n /**\n * @param \\RecursiveIteratorIterator<\\RecursiveIterator> $iterator The Iterator to filter\n * @param int ", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.php", "language": "php", "file_size": 1378, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\n/**\n * FilecontentFilterIterator filters files by their contents using patterns (regexps or strings).\n *\n * @author Fabien Potencier \n * @author Włodzimierz Gajda matchRegexps && !$this->noMatchRegexps) {\n return true;\n }\n\n $fileinfo = $this->current();\n\n if ($fileinfo->isDir() || !$fileinfo->isReadable()) {\n return false;\n }\n\n $conte", "middle": "w.pl>\n *\n * @extends MultiplePcreFilterIterator\n */\nclass FilecontentFilterIterator extends MultiplePcreFilterIterator\n{\n /**\n * Filters the iterator values.\n */\n public function accept(): bool\n", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/FilecontentFilterIterator.php", "language": "php", "file_size": 1418, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\nuse Symfony\\Component\\Finder\\Comparator\\NumberComparator;\n\n/**\n * SizeRangeFilterIterator filters out files that are not in the given size range.\n *\n * @author Fabien Potencier \n *\n * @extends \\FilterIteratorcomparators = $comparators;\n\n parent::__construct($iterator);\n }\n\n /**\n * Filters the iterator values.\n */\n public function acc", "middle": "lFileInfo>\n */\nclass SizeRangeFilterIterator extends \\FilterIterator\n{\n private array $comparators = [];\n\n /**\n * @param \\Iterator $iterator\n * @param NumberComparator[] $comparato", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/SizeRangeFilterIterator.php", "language": "php", "file_size": 1360, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Iterator;\n\n/**\n * SortableIterator applies a sort on a given Iterator.\n *\n * @author Fabien Potencier \n *\n * @implements \\IteratorAggregate\n */\nclass SortableIterator implements \\IteratorAggregate\n{\n public const SORT_BY_NONE = 0;\n public const SORT_BY_NAME = 1;\n public const SORT_BY_TYPE ", "suffix": ";\n public const SORT_BY_NAME_NATURAL_CASE_INSENSITIVE = 8;\n public const SORT_BY_EXTENSION = 9;\n public const SORT_BY_SIZE = 10;\n\n /** @var \\Traversable */\n private \\Traversable $iterator;\n private \\Closure|int $sort", "middle": "= 2;\n public const SORT_BY_ACCESSED_TIME = 3;\n public const SORT_BY_CHANGED_TIME = 4;\n public const SORT_BY_MODIFIED_TIME = 5;\n public const SORT_BY_NAME_NATURAL = 6;\n public const SORT_BY_NAME_CASE_INSENSITIVE = 7", "meta": {"filepath": "src/Symfony/Component/Finder/Iterator/SortableIterator.php", "language": "php", "file_size": 4894, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests\\Iterator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Finder\\Iterator\\CustomFilterIterator;\n\nclass CustomFilterIteratorTest extends IteratorTestCase\n{\n public function testWithInvalidFilter()\n {\n $thi", "suffix": " = new Iterator(['test.php', 'test.py', 'foo.php']);\n\n $iterator = new CustomFilterIterator($inner, $filters);\n\n $this->assertIterator($expected, $iterator);\n }\n\n public static function getAcceptData()\n {\n return [\n ", "middle": "s->expectException(\\InvalidArgumentException::class);\n new CustomFilterIterator(new Iterator(), ['foo']);\n }\n\n #[DataProvider('getAcceptData')]\n public function testAccept($filters, $expected)\n {\n $inner", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/Iterator/CustomFilterIteratorTest.php", "language": "php", "file_size": 1221, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests\\Iterator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Finder\\Iterator\\FilecontentFilterIterator;\n\nclass FilecontentFilterIteratorTest extends IteratorTestCase\n{\n public function testAccept()\n {\n $inner = new MockFileListIterator(['test.txt']);\n ", "suffix": " $iterator = new FilecontentFilterIterator($inner, ['directory'], []);\n $this->assertIterator([], $iterator);\n }\n\n public function testUnreadableFile()\n {\n $inner = new MockFileListIterator(['file r-']);\n $iterator = ne", "middle": " $iterator = new FilecontentFilterIterator($inner, [], []);\n $this->assertIterator(['test.txt'], $iterator);\n }\n\n public function testDirectory()\n {\n $inner = new MockFileListIterator(['directory']);\n", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/Iterator/FilecontentFilterIteratorTest.php", "language": "php", "file_size": 2566, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Finder\\Tests\\Iterator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Finder\\Iterator\\LazyIterator;\n\nclass LazyIteratorTest extends TestCase\n{\n public function testLazy()\n {\n new LazyIterator(function () {\n $this->markTe", "suffix": "'bar']));\n\n $this->assertCount(2, iterator_to_array($iterator));\n }\n\n public function testInnerDestructedAtTheEnd()\n {\n $count = 0;\n $iterator = new LazyIterator(static function () use (&$count) {\n ++$count;\n\n ", "middle": "stFailed('lazyIterator should not be called');\n });\n\n $this->expectNotToPerformAssertions();\n }\n\n public function testDelegate()\n {\n $iterator = new LazyIterator(static fn () => new Iterator(['foo', ", "meta": {"filepath": "src/Symfony/Component/Finder/Tests/Iterator/LazyIteratorTest.php", "language": "php", "file_size": 1235, "cut_index": 518, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ErrorHandler\\Error;\n\nclass ClassNotFoundError extends \\Error\n{\n public function __construct(string $message, \\Throwable $previous)\n {\n parent::__construct($message, $previous->getCode(), $previous->getPrevious());\n\n foreach ([\n ", "suffix": "previous->getFile(),\n 'line' => $previous->getLine(),\n 'trace' => $previous->getTrace(),\n ] as $property => $value) {\n $refl = new \\ReflectionProperty(\\Error::class, $property);\n $refl->setValue($this, $va", "middle": " 'file' => $", "meta": {"filepath": "src/Symfony/Component/ErrorHandler/Error/ClassNotFoundError.php", "language": "php", "file_size": 816, "cut_index": 522, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ErrorHandler\\Error;\n\nclass FatalError extends \\Error\n{\n /**\n * @param array $error An array as returned by error_get_last()\n */\n public function __construct(\n string $message,\n int $code,\n private array $error,\n ?int $traceOffset = null,\n bool $tra", "suffix": "nset($frame['args'], $frame['this'], $frame);\n }\n }\n } elseif (null !== $traceOffset) {\n if (\\function_exists('xdebug_get_function_stack') && \\in_array(\\ini_get('xdebug.mode'), ['develop', false], true) && $trace", "middle": "ceArgs = true,\n ?array $trace = null,\n ) {\n parent::__construct($message, $code);\n\n if (null !== $trace) {\n if (!$traceArgs) {\n foreach ($trace as &$frame) {\n u", "meta": {"filepath": "src/Symfony/Component/ErrorHandler/Error/FatalError.php", "language": "php", "file_size": 2792, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ErrorHandler\\Error;\n\nclass UndefinedFunctionError extends \\Error\n{\n public function __construct(string $message, \\Throwable $previous)\n {\n parent::__construct($message, $previous->getCode(), $previous->getPrevious());\n\n foreac", "suffix": " 'line' => $previous->getLine(),\n 'trace' => $previous->getTrace(),\n ] as $property => $value) {\n $refl = new \\ReflectionProperty(\\Error::class, $property);\n $refl->setValue($this, $value);\n }\n }\n}\n", "middle": "h ([\n 'file' => $previous->getFile(),\n ", "meta": {"filepath": "src/Symfony/Component/ErrorHandler/Error/UndefinedFunctionError.php", "language": "php", "file_size": 820, "cut_index": 512, "middle_length": 52}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ErrorHandler\\Error;\n\nclass UndefinedMethodError extends \\Error\n{\n public function __construct(string $message, \\Throwable $previous)\n {\n parent::__construct($message, $previous->getCode(), $previous->getPrevious());\n\n foreach ([\n ", "suffix": " $previous->getFile(),\n 'line' => $previous->getLine(),\n 'trace' => $previous->getTrace(),\n ] as $property => $value) {\n $refl = new \\ReflectionProperty(\\Error::class, $property);\n $refl->setValue($this, $", "middle": " 'file' =>", "meta": {"filepath": "src/Symfony/Component/ErrorHandler/Error/UndefinedMethodError.php", "language": "php", "file_size": 818, "cut_index": 522, "middle_length": 14}} {"prefix": "html>\n\n\n charset; ?>\" />\n \n An Error Occurred: <?= $statusText; ?>\n \" />\n \n\n\n
\n

Oops! An Error Occurred \".

\n\n

\n Something is broken. Please let us know what you were doing when this error occurred.\n We will fix it as soon as possible. Sorry for any inconvenience caused.\n \n

The ", "meta": {"filepath": "src/Symfony/Component/ErrorHandler/Resources/views/error.html.php", "language": "php", "file_size": 819, "cut_index": 522, "middle_length": 14}} {"prefix": " class=\"exception-metadata\">\n
\n

\n getAllPrevious(), true) as $index => $previousException) { ?>\n \">abbrClass($previousException->getClass()); ?>\n include('assets/images/chevron-right.svg'); ?>\n \n \n
\n \n <", "meta": {"filepath": "src/Symfony/Component/ErrorHandler/Resources/views/exception.html.php", "language": "php", "file_size": 4529, "cut_index": 614, "middle_length": 229}} {"prefix": "ionMessage, $statusCode, $statusText); ?> -->\n\n\n \n charset; ?>\" />\n \n \n <?= $_message; ?>\n include('assets/images/favicon.png.base64'); ?>\" />\n \n \n\n \n ", "middle": "tyle>include('assets/css/exception_full.css'); ?>\n \n \n ';\n protected string $dumpId;\n protected bool $co", "middle": "lor:#262626',\n 'meta' => 'color:#B729D9',\n 'key' => 'color:#789339',\n 'index' => 'color:#1299DA',\n 'ellipsis' => 'color:#CC7832',\n 'ns' => 'user-select:none;',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php", "language": "php", "file_size": 43240, "cut_index": 2151, "middle_length": 229}} {"prefix": "ework\\TestCase;\nuse Symfony\\Component\\VarDumper\\Caster\\FFICaster;\nuse Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait;\n\n/**\n * @author Kirill Nesmeyanov \n */\n#[RequiresPhpExtension('ffi')]\nclass FFICasterTest extends TestCase\n{\n use VarDumperTestTrait;\n\n /**\n * @see FFICaster::MAX_STRING_LENGTH\n */\n private const MAX_STRING_LENGTH = 255;\n\n protected function setUp(): void\n {\n if (\\in_array(\\PHP_SAPI, ['cli', 'phpdbg'], true) && 'preload' === \\ini_get('ffi.ena", "suffix": "nymousStruct()\n {\n $this->assertDumpEquals(<<<'PHP'\n FFI\\CData> size 4 align 4 {\n uint32_t x: 0\n }\n PHP,\n \\FFI::cdef()->new('struct { uint32_t x; }')\n );\n }\n\n ", "middle": "ble')) {\n return;\n }\n if (!filter_var(\\ini_get('ffi.enable'), \\FILTER_VALIDATE_BOOL)) {\n $this->markTestSkipped('FFI not enabled for CLI SAPI');\n }\n }\n\n public function testCastAno", "meta": {"filepath": "src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", "language": "php", "file_size": 14971, "cut_index": 921, "middle_length": 229}} {"prefix": "\n\n/**\n * @author Nicolas Grekas \n */\nclass Data implements \\ArrayAccess, \\Countable, \\IteratorAggregate, \\Stringable\n{\n private array $data;\n private int $position = 0;\n private int|string $key = 0;\n private int $maxDepth = 20;\n private int $maxItemsPerDepth = -1;\n private int $useRefHandles = -1;\n private array $context = [];\n\n /**\n * @param array $data An array as returned by ClonerInterface::cloneVar()\n */\n public function __construct(array $data)\n {\n ", "suffix": "\n $item = $item->value;\n }\n if (!$item instanceof Stub) {\n return \\gettype($item);\n }\n if (Stub::TYPE_STRING === $item->type) {\n return 'string';\n }\n if (Stub::TYPE_ARRAY === $item-", "middle": " $this->data = $data;\n }\n\n public function getType(): ?string\n {\n $item = $this->data[$this->position][$this->key];\n\n if ($item instanceof Stub && Stub::TYPE_REF === $item->type && !$item->position) {", "meta": {"filepath": "src/Symfony/Component/VarDumper/Cloner/Data.php", "language": "php", "file_size": 13658, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Store;\n\nuse AsyncAws\\DynamoDb\\DynamoDbClient;\nuse Doctrine\\DBAL\\Connection;\nuse Relay\\Relay;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Lock\\Bridge\\DynamoDb\\Store\\DynamoDbStore;\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\n\n/**\n * StoreFactory create stores and connections.\n *\n * @author Jérémy Derussé \n */\nclass StoreFa", "suffix": "::requireBridgeClass(DynamoDbStore::class, 'symfony/amazon-dynamo-db-lock');\n\n return new DynamoDbStore($connection);\n\n case $connection instanceof \\Redis:\n case $connection instanceof Relay:\n case $connectio", "middle": "ctory\n{\n public static function createStore(#[\\SensitiveParameter] object|string $connection): PersistingStoreInterface\n {\n switch (true) {\n case $connection instanceof DynamoDbClient:\n self", "meta": {"filepath": "src/Symfony/Component/Lock/Store/StoreFactory.php", "language": "php", "file_size": 5871, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\n\n#[Group('integration')]\nclass PredisStoreWithExceptionsTest extends AbstractRedisStoreTestCase\n{\n public static function setUpBeforeClass(): void\n {\n $redis = new \\Predis\\Client(array_combine(['host', 'port'], explode(':', getenv('REDIS_HOST')", "suffix": ">connect();\n } catch (\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n protected function getRedisConnection(): \\Predis\\Client\n {\n $redis = new \\Predis\\Client(array_combine(['host', 'port'], explod", "middle": ") + [1 => null]));\n try {\n $redis-", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/PredisStoreWithExceptionsTest.php", "language": "php", "file_size": 995, "cut_index": 582, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\n\n/**\n * @author Jérémy Derussé \n */\n#[Group('integration')]\nclass PredisStoreWithoutExceptionsTest extends AbstractRedisStoreTestCase\n{\n public static function setUpBefor", "suffix": "edis->connect();\n } catch (\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n protected function getRedisConnection(): \\Predis\\Client\n {\n $redis = new \\Predis\\Client(\n array_combine(['host", "middle": "eClass(): void\n {\n $redis = new \\Predis\\Client(\n array_combine(['host', 'port'], explode(':', getenv('REDIS_HOST')) + [1 => null]),\n ['exceptions' => false],\n );\n try {\n $r", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/PredisStoreWithoutExceptionsTest.php", "language": "php", "file_size": 1176, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\n\n/**\n * @author Jérémy Derussé \n */\n#[RequiresPhpExtension('redis')]\n#[Group('integration')]\nclass RedisArrayStoreT", "suffix": "\n try {\n (new \\Redis())->connect(...explode(':', getenv('REDIS_HOST')));\n } catch (\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n protected function getRedisConnection(): \\RedisArray\n ", "middle": "est extends AbstractRedisStoreTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!class_exists(\\RedisArray::class)) {\n self::markTestSkipped('The RedisArray class is required.');\n }", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/RedisArrayStoreTest.php", "language": "php", "file_size": 1095, "cut_index": 515, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\n\n/**\n * @author Jérémy Derussé \n */\n#[RequiresPhpExtension('redis')]\n#[Group('integration')]\nclass RedisClusterSt", "suffix": " }\n if (!getenv('REDIS_CLUSTER_HOSTS')) {\n self::markTestSkipped('REDIS_CLUSTER_HOSTS env var is not defined.');\n }\n }\n\n protected function getRedisConnection(): \\RedisCluster\n {\n return new \\RedisCluster(null", "middle": "oreTest extends AbstractRedisStoreTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!class_exists(\\RedisCluster::class)) {\n self::markTestSkipped('The RedisCluster class is required.');\n ", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/RedisClusterStoreTest.php", "language": "php", "file_size": 1057, "cut_index": 513, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Traits\\RedisProxy;\nuse Symfony\\Component\\Lock\\Store\\RedisStore;\nuse Symfony\\Component\\Lock\\Store\\StoreFactory;\n\n#[RequiresPhpExtension('redis')]\ncl", "suffix": " public function testCreateStore()\n {\n if (!class_exists(RedisProxy::class)) {\n $this->markTestSkipped();\n }\n\n $store = StoreFactory::createStore($this->createStub(RedisProxy::class));\n\n $this->assertInstanceOf(Re", "middle": "ass RedisProxyStoreFactoryTest extends TestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/RedisProxyStoreFactoryTest.php", "language": "php", "file_size": 889, "cut_index": 547, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Lock\\Exception\\InvalidTtlException;\nuse Symfony\\Component\\Lock\\Store\\RedisStore;\n\n/**\n * @author Jérémy Derussé connect(...explode(':', getenv('REDIS_HOST')));\n } catch (\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n protected function getRedisConnection(): \\Redis\n {\n $r", "middle": "russe.com>\n */\n#[RequiresPhpExtension('redis')]\n#[Group('integration')]\nclass RedisStoreTest extends AbstractRedisStoreTestCase\n{\n use SharedLockStoreTestTrait;\n\n public static function setUpBeforeClass(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/RedisStoreTest.php", "language": "php", "file_size": 1296, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Relay\\Cluster as RelayCluster;\nuse Symfony\\Component\\Lock\\Tests\\Store\\AbstractRedisStoreTestCase;\n\n#[RequiresPhpExtension('relay')]\n#[Group('integration')]\nclass RelayCl", "suffix": "Cluster->flushdb($hostAndPort);\n }\n }\n\n public static function setUpBeforeClass(): void\n {\n if (!class_exists(RelayCluster::class)) {\n self::markTestSkipped('The Relay\\Cluster class is required.');\n }\n\n if (f", "middle": "usterStoreTest extends AbstractRedisStoreTestCase\n{\n protected function setUp(): void\n {\n $relayCluster = $this->getRedisConnection();\n\n foreach ($relayCluster->_masters() as $hostAndPort) {\n $relay", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/RelayClusterStoreTest.php", "language": "php", "file_size": 1306, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Relay\\Relay;\nuse Symfony\\Component\\Lock\\Tests\\Store\\AbstractRedisStoreTestCase;\nuse Symfony\\Component\\Lock\\Tests\\Store\\SharedLockStoreTestTrait;\n\n#[RequiresP", "suffix": "lay(...explode(':', getenv('REDIS_HOST')));\n } catch (\\Relay\\Exception $e) {\n self::markTestSkipped($e->getMessage());\n }\n }\n\n protected function getRedisConnection(): Relay\n {\n return new Relay(...explode(':', gete", "middle": "hpExtension('relay')]\n#[Group('integration')]\nclass RelayStoreTest extends AbstractRedisStoreTestCase\n{\n use SharedLockStoreTestTrait;\n\n public static function setUpBeforeClass(): void\n {\n try {\n new Re", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/RelayStoreTest.php", "language": "php", "file_size": 1025, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\SemaphoreStore;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy ", "suffix": "sistingStoreInterface\n {\n return new SemaphoreStore();\n }\n\n public function testResourceRemoval()\n {\n $initialCount = $this->getOpenedSemaphores();\n $store = new SemaphoreStore();\n $key = new Key(__METHOD__);\n ", "middle": "Derussé \n */\n#[RequiresPhpExtension('sysvsem')]\nclass SemaphoreStoreTest extends AbstractStoreTestCase\n{\n use BlockingStoreTestTrait;\n use UnserializableTestTrait;\n\n protected function getStore(): Per", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php", "language": "php", "file_size": 3570, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy Derussé \n */\ntrait SharedLockStoreTestTrait\n{\n /**\n * @see AbstractStoreTestCase::getStore()\n */\n abstract protected function getStore(): PersistingStoreInterface;\n\n pub", "suffix": " $this->assertTrue($store->exists($key1));\n $this->assertFalse($store->exists($key2));\n $this->assertFalse($store->exists($key3));\n\n // assert we can store multiple keys in read mode\n $store->saveRead($key2);\n $this-", "middle": "lic function testSharedLockReadFirst()\n {\n $store = $this->getStore();\n\n $key1 = new Key(__METHOD__);\n $key2 = new Key(__METHOD__);\n $key3 = new Key(__METHOD__);\n\n $store->saveRead($key1);\n ", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/SharedLockStoreTestTrait.php", "language": "php", "file_size": 5179, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse AsyncAws\\DynamoDb\\DynamoDbClient;\nuse Doctrine\\DBAL\\Connection;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\MemcachedAdapter;\nuse Symfony\\Componen", "suffix": "\\Store\\InMemoryStore;\nuse Symfony\\Component\\Lock\\Store\\MemcachedStore;\nuse Symfony\\Component\\Lock\\Store\\NullStore;\nuse Symfony\\Component\\Lock\\Store\\PdoStore;\nuse Symfony\\Component\\Lock\\Store\\PostgreSqlStore;\nuse Symfony\\Component\\Lock\\Store\\RedisStore;\nuse", "middle": "t\\Lock\\Bridge\\DynamoDb\\Store\\DynamoDbStore;\nuse Symfony\\Component\\Lock\\Store\\DoctrineDbalPostgreSqlStore;\nuse Symfony\\Component\\Lock\\Store\\DoctrineDbalStore;\nuse Symfony\\Component\\Lock\\Store\\FlockStore;\nuse Symfony\\Component\\Lock", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/StoreFactoryTest.php", "language": "php", "file_size": 5084, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse Symfony\\Component\\Lock\\Exception\\UnserializableKeyException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy", "suffix": "alizableKey()\n {\n $store = $this->getStore();\n\n $key = new Key(__METHOD__);\n\n $store->save($key);\n $this->assertTrue($store->exists($key));\n\n $this->expectException(UnserializableKeyException::class);\n serialize", "middle": " Derussé \n */\ntrait UnserializableTestTrait\n{\n /**\n * @see AbstractStoreTestCase::getStore()\n */\n abstract protected function getStore(): PersistingStoreInterface;\n\n public function testUnseri", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/UnserializableTestTrait.php", "language": "php", "file_size": 1016, "cut_index": 512, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\Store\\StoreFactory;\nuse Symfony\\Component\\Lock\\Store\\ZookeeperStore;\n\n/**\n * @author Alexandre Daubois assertInstanceOf(ZookeeperStore::class, $store);\n }\n\n public function testCreateZooKeeperStoreAsDsn()\n {\n $store = StoreFactory::createStore('zookeeper://localhost:2181');\n\n $this->assertInstanceOf(ZookeeperStore::cl", "middle": "m>\n */\n#[RequiresPhpExtension('zookeeper')]\nclass ZookeeperStoreFactoryTest extends TestCase\n{\n public function testCreateZooKeeperStore()\n {\n $store = StoreFactory::createStore($this->createStub(\\Zookeeper::class));", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/ZookeeperStoreFactoryTest.php", "language": "php", "file_size": 1261, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\Store\\StoreFactory;\nuse Symfony\\Component\\Lock\\Store\\ZookeeperStore;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**", "suffix": "c function getStore(): ZookeeperStore\n {\n $zookeeper_server = getenv('ZOOKEEPER_HOST').':2181';\n\n $zookeeper = new \\Zookeeper($zookeeper_server);\n\n return StoreFactory::createStore($zookeeper);\n }\n\n #[DataProvider('provideVali", "middle": "\n * @author Ganesh Chandrasekaran \n */\n#[RequiresPhpExtension('zookeeper')]\n#[Group('integration')]\nclass ZookeeperStoreTest extends AbstractStoreTestCase\n{\n use UnserializableTestTrait;\n\n publi", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/ZookeeperStoreTest.php", "language": "php", "file_size": 3571, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace MongoDB;\n\nuse MongoDB\\Driver\\Manager;\n\n/*\n * Stubs for the mongodb/mongodb library version ~1.16\n */\nif (!class_exists(Client::class)) {\n abstract class Client\n {\n abstract public function getManager(): Manager;\n }\n}\n\nif (!class_exists(Database::class)) {\n abstract class Database\n {\n abstract public function getManager(): Manag", "suffix": "e(): string;\n }\n}\n\nif (!class_exists(Collection::class)) {\n abstract class Collection\n {\n abstract public function getManager(): Manager;\n\n abstract public function getCollectionName(): string;\n\n abstract public function getDa", "middle": "er;\n\n abstract public function getDatabaseNam", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/stubs/mongodb.php", "language": "php", "file_size": 944, "cut_index": 606, "middle_length": 52}} {"prefix": "s\\DynamoDb\\Exception\\ResourceNotFoundException;\nuse AsyncAws\\DynamoDb\\Input\\CreateTableInput;\nuse AsyncAws\\DynamoDb\\Input\\DeleteItemInput;\nuse AsyncAws\\DynamoDb\\Input\\DescribeTableInput;\nuse AsyncAws\\DynamoDb\\Input\\GetItemInput;\nuse AsyncAws\\DynamoDb\\Input\\PutItemInput;\nuse AsyncAws\\DynamoDb\\ValueObject\\AttributeDefinition;\nuse AsyncAws\\DynamoDb\\ValueObject\\AttributeValue;\nuse AsyncAws\\DynamoDb\\ValueObject\\KeySchemaElement;\nuse AsyncAws\\DynamoDb\\ValueObject\\ProvisionedThroughput;\nuse Symfony\\Component\\Lock\\", "suffix": "Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\ExpiringStoreTrait;\n\nclass DynamoDbStore implements PersistingStoreInterface\n{\n use ExpiringStoreTrait;\n\n private const DEFAULT_OPTIONS = [\n ", "middle": "Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\InvalidTtlException;\nuse Symfony\\Component\\Lock\\Exception\\LockAcquiringException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/Lock/Bridge/DynamoDb/Store/DynamoDbStore.php", "language": "php", "file_size": 11452, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Bridge\\DynamoDb\\Tests\\Functional\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Lock\\Bridge\\DynamoDb\\Store\\DynamoDbStore;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Test\\AbstractSto", "suffix": "'DynamoDB server not found.');\n }\n\n $store = new DynamoDbStore(getenv('LOCK_DYNAMODB_DSN'));\n $store->createTable();\n }\n\n protected function getStore(): PersistingStoreInterface\n {\n return new DynamoDbStore(getenv('LOCK", "middle": "reTestCase;\n\n#[Group('integration')]\nclass DynamoDbStoreTest extends AbstractStoreTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!getenv('LOCK_DYNAMODB_DSN')) {\n self::markTestSkipped(", "meta": {"filepath": "src/Symfony/Component/Lock/Bridge/DynamoDb/Tests/Functional/Store/DynamoDbStoreTest.php", "language": "php", "file_size": 1023, "cut_index": 512, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Bridge\\DynamoDb\\Tests\\Store;\n\nuse AsyncAws\\DynamoDb\\DynamoDbClient;\nuse PHPUnit\\Framework\\Attributes\\Before;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Lock\\Bridge\\DynamoDb\\Store\\DynamoDbStore;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass DynamoDbStoreTest extends TestCase\n{\n private HttpClientInterface $httpClient;\n\n #[Before]\n public function createMockHtt", "suffix": "lt/lock_keys', [\n 'extra_key',\n ]);\n }\n\n public function testExtraParamsInQuery()\n {\n $this->expectException(\\InvalidArgumentException::class);\n new DynamoDbStore('dynamodb://default/lock_keys?extra_param=some_value", "middle": "pClient()\n {\n $this->httpClient = new MockHttpClient([]);\n }\n\n public function testExtraOptions()\n {\n $this->expectException(\\InvalidArgumentException::class);\n new DynamoDbStore('dynamodb://defau", "meta": {"filepath": "src/Symfony/Component/Lock/Bridge/DynamoDb/Tests/Store/DynamoDbStoreTest.php", "language": "php", "file_size": 6710, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Test;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\n\n/**\n * @author Jérémy Derussé \n */\nabstract class AbstractStoreTestCase extends TestCase\n{\n abstract protected function getStore(): P", "suffix": " $this->assertTrue($store->exists($key));\n $store->delete($key);\n $this->assertFalse($store->exists($key));\n }\n\n public function testSaveWithDifferentResources()\n {\n $store = $this->getStore();\n\n $key1 = new Key(", "middle": "ersistingStoreInterface;\n\n public function testSave()\n {\n $store = $this->getStore();\n\n $key = new Key(static::class.__METHOD__);\n\n $this->assertFalse($store->exists($key));\n $store->save($key);\n", "meta": {"filepath": "src/Symfony/Component/Lock/Test/AbstractStoreTestCase.php", "language": "php", "file_size": 3613, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml;\n\nuse Symfony\\Component\\Yaml\\Tag\\TaggedValue;\n\n/**\n * Dumper dumps PHP variables to YAML strings.\n *\n * @author Fabien Potencier \n *\n * @final\n */\nclass Dumper\n{\n /**\n * @param int $indentation The amount of spaces to use for indentation of nested nodes\n */\n public function __construct(private int $indentation = 4)\n {\n if ($indentation < 1) {\n throw new \\InvalidArgumentException('The ind", "suffix": "e you switch to inline YAML\n * @param int $indent The level of indentation (used internally)\n * @param int-mask-of $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string\n */\n pub", "middle": "entation must be greater than zero.');\n }\n }\n\n /**\n * Dumps a PHP value to YAML.\n *\n * @param mixed $input The PHP value\n * @param int $inline The level wher", "meta": {"filepath": "src/Symfony/Component/Yaml/Dumper.php", "language": "php", "file_size": 8413, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml;\n\n/**\n * Escaper encapsulates escaping rules for single and double-quoted\n * YAML strings.\n *\n * @author Matthew Lewinski \n *\n * @internal\n */\nclass Escaper\n{\n // Characters that would cause a dumped string to require double quoting.\n public const REGEX_CHARACTER_TO_ESCAPE = \"[\\\\x00-\\\\x1f]|\\x7f|\\xc2\\x85|\\xc2\\xa0|\\", "suffix": "the characters avoids the use of strtr,\n // which performs more slowly.\n private const ESCAPEES = [\n '\\\\', '\\\\\\\\', '\\\\\"', '\"',\n \"\\x00\", \"\\x01\", \"\\x02\", \"\\x03\", \"\\x04\", \"\\x05\", \"\\x06\", \"\\x07\",\n \"\\x08\", \"\\x09\", \"\\x0a\", \"\\", "middle": "xe2\\x80\\xa8|\\xe2\\x80\\xa9\";\n\n // Mapping arrays for escaping a double quoted string. The backslash is\n // first to ensure proper escaping because str_replace operates iteratively\n // on the input arrays. This ordering of ", "meta": {"filepath": "src/Symfony/Component/Yaml/Escaper.php", "language": "php", "file_size": 3432, "cut_index": 614, "middle_length": 229}} {"prefix": "ng to a PHP value.\n *\n * @param int $flags A bit field of Yaml::PARSE_* constants to customize the YAML parser behavior\n * @param array $references Mapping of variable names to values\n *\n * @throws ParseException\n */\n public static function parse(string $value, int $flags = 0, array &$references = [], ?ParserState $state = null): mixed\n {\n self::initialize($flags);\n $state ??= new ParserState();\n\n $value = trim($value);\n\n if ('' === $value) {\n", "suffix": "te, $value, $flags, $i, $references);\n ++$i;\n break;\n case '{':\n $result = self::parseMapping($state, $value, $flags, $i, $references);\n ++$i;\n break;\n default", "middle": " return '';\n }\n\n $i = 0;\n $isQuoted = null;\n $tag = self::parseTag($value, $i, $flags);\n switch ($value[$i]) {\n case '[':\n $result = self::parseSequence($sta", "meta": {"filepath": "src/Symfony/Component/Yaml/Inline.php", "language": "php", "file_size": 42914, "cut_index": 2151, "middle_length": 229}} {"prefix": "ting depth must be greater than 0.');\n }\n\n if ($maxAliasesForCollections < 0) {\n throw new \\InvalidArgumentException('The maximum number of collection aliases must be greater than or equal to 0.');\n }\n\n $this->getState()->maxNestingLevel = $maxNestingLevel;\n $this->getState()->maxAliasesForCollections = $maxAliasesForCollections;\n }\n\n /**\n * Parses a YAML file into a PHP value.\n *\n * @param string $filename The path to the Y", "suffix": "is not valid\n */\n public function parseFile(string $filename, int $flags = 0): mixed\n {\n if (!is_file($filename)) {\n throw new ParseException(\\sprintf('File \"%s\" does not exist.', $filename));\n }\n\n if (!is_readable", "middle": "AML file to be parsed\n * @param int-mask-of $flags A bit field of Yaml::PARSE_* constants to customize the YAML parser behavior\n *\n * @throws ParseException If the file could not be read or the YAML ", "meta": {"filepath": "src/Symfony/Component/Yaml/Parser.php", "language": "php", "file_size": 54299, "cut_index": 2151, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml;\n\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Component\\Yaml\\Tag\\TaggedValue;\n\n/**\n * @internal\n */\nfinal class ParserState\n{\n public int $maxNestingLevel = Parser::DEFAULT_MAX_NESTING_LEVEL;\n public int $currentNestingLevel = 0;\n public int $maxAliasesForCollec", "suffix": "->collectionAliasCount = 0;\n $this->aliasesEnabled = true;\n }\n\n public function enterNestingLevel(int $line, ?string $snippet, ?string $filename): void\n {\n if (++$this->currentNestingLevel > $this->maxNestingLevel) {\n --$t", "middle": "tions = Parser::DEFAULT_MAX_ALIASES_FOR_COLLECTIONS;\n public int $collectionAliasCount = 0;\n public bool $aliasesEnabled = true;\n\n public function reset(): void\n {\n $this->currentNestingLevel = 0;\n $this", "meta": {"filepath": "src/Symfony/Component/Yaml/ParserState.php", "language": "php", "file_size": 2164, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml;\n\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\n\n/**\n * Unescaper encapsulates unescaping rules for single and double-quoted\n * YAML strings.\n *\n * @author Matthew Lewinski \n *\n * @internal\n */\nclass Unescaper\n{\n /**\n * Regex fragment that matches an escaped character in a double quoted string.\n */\n ", "suffix": "ction unescapeSingleQuotedString(string $value): string\n {\n return str_replace('\\'\\'', '\\'', $value);\n }\n\n /**\n * Unescapes a double quoted string.\n *\n * @param string $value A double quoted string\n */\n public function un", "middle": " public const REGEX_ESCAPED_CHARACTER = '\\\\\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)';\n\n /**\n * Unescapes a single quoted string.\n *\n * @param string $value A single quoted string\n */\n public fun", "meta": {"filepath": "src/Symfony/Component/Yaml/Unescaper.php", "language": "php", "file_size": 3125, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml;\n\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\n\n/**\n * Yaml offers convenience methods to load and dump YAML.\n *\n * @author Fabien Potencier \n *\n * @final\n */\nclass Yaml\n{\n public const DUMP_OBJECT = 1;\n public const PARSE_EXCEPTION_ON_INVALID_TYPE = 2;\n public const PARSE_OBJECT = 4;\n public const PAR", "suffix": "ARSE_CONSTANT = 256;\n public const PARSE_CUSTOM_TAGS = 512;\n public const DUMP_EMPTY_ARRAY_AS_SEQUENCE = 1024;\n public const DUMP_NULL_AS_TILDE = 2048;\n public const DUMP_NUMERIC_KEY_AS_STRING = 4096;\n public const DUMP_NULL_AS_EMPTY = 8192;", "middle": "SE_OBJECT_FOR_MAP = 8;\n public const DUMP_EXCEPTION_ON_INVALID_TYPE = 16;\n public const PARSE_DATETIME = 32;\n public const DUMP_OBJECT_AS_MAP = 64;\n public const DUMP_MULTI_LINE_LITERAL_BLOCK = 128;\n public const P", "meta": {"filepath": "src/Symfony/Component/Yaml/Yaml.php", "language": "php", "file_size": 4211, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml\\Exception;\n\n/**\n * Exception class thrown when an error occurs during parsing.\n *\n * @author Fabien Potencier \n */\nclass ParseException extends RuntimeException\n{\n /**\n * @param string $rawMessage The error message\n * @param int $parsedLine The lin", "suffix": "rivate string $rawMessage,\n private int $parsedLine = -1,\n private ?string $snippet = null,\n private ?string $parsedFile = null,\n ?\\Throwable $previous = null,\n ) {\n $this->updateRepr();\n\n parent::__construct($t", "middle": "e where the error occurred\n * @param string|null $snippet The snippet of code near the problem\n * @param string|null $parsedFile The file name where the error occurred\n */\n public function __construct(\n p", "meta": {"filepath": "src/Symfony/Component/Yaml/Exception/ParseException.php", "language": "php", "file_size": 2969, "cut_index": 563, "middle_length": 229}} {"prefix": "Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style", "suffix": "neau \n * @author Robin Chalas \n */\n#[AsCommand(name: 'lint:yaml', description: 'Lint a YAML file and outputs encountered errors')]\nclass LintCommand extends Command\n{\n private Parser $parser;\n private ?stri", "middle": "\\SymfonyStyle;\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Component\\Yaml\\Parser;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * Validates YAML files syntax and outputs encountered errors.\n *\n * @author Grégoire Pi", "meta": {"filepath": "src/Symfony/Component/Yaml/Command/LintCommand.php", "language": "php", "file_size": 10354, "cut_index": 921, "middle_length": 229}} {"prefix": " - foo\n - a: A\n foobar:\n foo: bar\n bar:\n - 1\n - foo\n foobar:\n foo: bar\n bar:\n - 1\n - foo\n\n EOF;\n $this->assertSame($expected, $dumper->dump($this->array, 4, 0));\n $this->assertSameData($this->array, $this->parser->parse($expec", "suffix": "th.'/'.$file.'.yml');\n\n // split YAMLs documents\n foreach (preg_split('/^---( %YAML\\:1\\.0)?/m', $yamls) as $yaml) {\n if (!$yaml) {\n continue;\n }\n\n $test = $this->parser->", "middle": "ted));\n }\n\n public function testSpecifications()\n {\n $files = $this->parser->parse(file_get_contents($this->path.'/index.yml'));\n foreach ($files as $file) {\n $yamls = file_get_contents($this->pa", "meta": {"filepath": "src/Symfony/Component/Yaml/Tests/DumperTest.php", "language": "php", "file_size": 44018, "cut_index": 2151, "middle_length": 229}} {"prefix": "mponent\\Yaml\\Yaml::PARSE_CONSTANT', Yaml::PARSE_CONSTANT],\n ['!php/const PHP_INT_MAX', \\PHP_INT_MAX],\n ['[!php/const PHP_INT_MAX]', [\\PHP_INT_MAX]],\n ['{ foo: !php/const PHP_INT_MAX }', ['foo' => \\PHP_INT_MAX]],\n ['{ !php/const PHP_INT_MAX: foo }', [\\PHP_INT_MAX => 'foo']],\n ['!php/const NULL', null],\n ['{ !php/const Symfony\\Component\\Yaml\\Yaml::PARSE_CONSTANT: foo }', [Yaml::PARSE_CONSTANT => 'foo']],\n ];\n }\n\n public function te", "suffix": "t WRONG_CONSTANT', Yaml::PARSE_CONSTANT);\n }\n\n public function testParsePhpEnumThrowsExceptionWhenUndefined()\n {\n $this->expectException(ParseException::class);\n $this->expectExceptionMessage('The enum \"SomeEnum\" is not defined');\n ", "middle": "stParsePhpConstantThrowsExceptionWhenUndefined()\n {\n $this->expectException(ParseException::class);\n $this->expectExceptionMessage('The constant \"WRONG_CONSTANT\" is not defined');\n Inline::parse('!php/cons", "meta": {"filepath": "src/Symfony/Component/Yaml/Tests/InlineTest.php", "language": "php", "file_size": 47450, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\n\nclass ParseExceptionTest extends TestCase\n{\n public function testGetMessage()\n {\n $exception = new ParseException('Error message', 42,", "suffix": "estGetMessageWithUnicodeInFilename()\n {\n $exception = new ParseException('Error message', 42, 'foo: bar', 'äöü.yml');\n $message = 'Error message in \"äöü.yml\" at line 42 (near \"foo: bar\")';\n\n $this->assertEquals($message, $exception-", "middle": " 'foo: bar', '/var/www/app/config.yml');\n $message = 'Error message in \"/var/www/app/config.yml\" at line 42 (near \"foo: bar\")';\n\n $this->assertEquals($message, $exception->getMessage());\n }\n\n public function t", "meta": {"filepath": "src/Symfony/Component/Yaml/Tests/ParseExceptionTest.php", "language": "php", "file_size": 1027, "cut_index": 512, "middle_length": 229}} {"prefix": "'barbara']);\n $this->assertSameData($expected, $data);\n }\n\n public function testTaggedValueTopLevelList()\n {\n $yml = <<<'YAML'\n !users\n - barbara\n YAML;\n $data = $this->parser->parse($yml, Yaml::PARSE_CUSTOM_TAGS);\n $expected = new TaggedValue('users', ['barbara']);\n $this->assertSameData($expected, $data);\n }\n\n public function testTaggedTextAsListItem()\n {\n $yml = <<<'YAML'\n - !text |\n first", "suffix": " $this->parser->parse($yml, Yaml::PARSE_CUSTOM_TAGS);\n }\n\n #[DataProvider('getDataFormSpecifications')]\n public function testSpecifications($expected, $yaml, $comment)\n {\n $this->assertEquals($expected, var_export($this->parser->parse(", "middle": " line\n YAML;\n // @todo Fix the parser, eliminate this exception.\n $this->expectException(ParseException::class);\n $this->expectExceptionMessage('Unable to parse at line 2 (near \"!text |\").');\n ", "meta": {"filepath": "src/Symfony/Component/Yaml/Tests/ParserTest.php", "language": "php", "file_size": 94671, "cut_index": 3790, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\n\n/**\n * @author Jérémy Derussé \n */\nclass LockFactoryTest extends TestCase\n{\n pu", "suffix": "ly(2))\n ->method('save')\n ->with($this->callback(static function ($key) use (&$keys) {\n $keys[] = $key;\n\n return true;\n }));\n\n $factory = new LockFactory($store);\n $factory->setLo", "middle": "blic function testCreateLock()\n {\n $store = $this->createMock(PersistingStoreInterface::class);\n $store->method('exists')->willReturn(false);\n\n $keys = [];\n $store\n ->expects($this->exact", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/LockFactoryTest.php", "language": "php", "file_size": 2166, "cut_index": 563, "middle_length": 229}} {"prefix": "\\Component\\Lock\\SharedLockStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\ExpiringStoreTrait;\nuse Symfony\\Component\\Lock\\Store\\InMemoryStore;\n\n/**\n * @author Jérémy Derussé \n */\nclass LockTest extends TestCase\n{\n public function testAcquireNoBlocking()\n {\n $key = new Key(__METHOD__);\n $store = $this->createMock(PersistingStoreInterface::class);\n $lock = new Lock($key, $store);\n\n $store\n ->expects($this->once())\n ->method('save');\n ", "suffix": "key = new Key(__METHOD__);\n $store = $this->createMock(PersistingStoreInterface::class);\n $lock = new Lock($key, $store);\n\n $store\n ->expects($this->once())\n ->method('save');\n $store\n ->method('", "middle": " $store\n ->method('exists')\n ->willReturn(true, false);\n\n $this->assertTrue($lock->acquire(false));\n }\n\n public function testAcquireNoBlockingWithPersistingStoreInterface()\n {\n $", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/LockTest.php", "language": "php", "file_size": 17568, "cut_index": 1331, "middle_length": 229}} {"prefix": "LException;\nuse Doctrine\\DBAL\\Exception\\TableNotFoundException;\nuse Doctrine\\DBAL\\ParameterType;\nuse Doctrine\\DBAL\\Platforms\\AbstractMySQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\OraclePlatform;\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\SQLitePlatform;\nuse Doctrine\\DBAL\\Platforms\\SQLServerPlatform;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Schema\\Name\\Identifier;\nuse Doctrine\\DBAL\\Schema\\Name\\UnqualifiedName;\nuse Doctrine\\DBAL\\Schema\\PrimaryKeyCon", "suffix": "\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\n\n/**\n * DbalStore is a PersistingStoreInterface implementation using a Doctrine DBAL connection.\n *\n * Lock ", "middle": "straint;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Doctrine\\DBAL\\Tools\\DsnParser;\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\InvalidTtlException;", "meta": {"filepath": "src/Symfony/Component/Lock/Store/DoctrineDbalStore.php", "language": "php", "file_size": 12722, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Store;\n\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\InvalidTtlException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\n\n/**\n * MemcachedStore is a PersistingStoreInterface implementation", "suffix": "ic function isSupported(): bool\n {\n return \\extension_loaded('memcached');\n }\n\n /**\n * @param int $initialTtl the expiration delay of locks in seconds\n */\n public function __construct(\n private \\Memcached $memcached,\n ", "middle": " using Memcached as store engine.\n *\n * @author Jérémy Derussé \n */\nclass MemcachedStore implements PersistingStoreInterface\n{\n use ExpiringStoreTrait;\n\n private bool $useExtendedReturn;\n\n public stat", "meta": {"filepath": "src/Symfony/Component/Lock/Store/MemcachedStore.php", "language": "php", "file_size": 4819, "cut_index": 614, "middle_length": 229}} {"prefix": "MongoDB\\Driver\\Command;\nuse MongoDB\\Driver\\Exception\\BulkWriteException;\nuse MongoDB\\Driver\\Manager;\nuse MongoDB\\Driver\\Query;\nuse MongoDB\\Driver\\ReadPreference;\nuse MongoDB\\Driver\\WriteConcern;\nuse MongoDB\\Exception\\DriverRuntimeException;\nuse MongoDB\\Exception\\InvalidArgumentException as MongoInvalidArgumentException;\nuse MongoDB\\Exception\\UnsupportedException;\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\InvalidTtlException;\nuse Symfony\\Component\\Loc", "suffix": "omponent\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\n\n/**\n * MongoDbStore is a StoreInterface implementation using MongoDB as a storage\n * engine. Support for MongoDB server >=2.2 due to use of TTL indexes.\n *\n * CAUTION: TTL Indexes are", "middle": "k\\Exception\\LockAcquiringException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Exception\\LockExpiredException;\nuse Symfony\\Component\\Lock\\Exception\\LockStorageException;\nuse Symfony\\C", "meta": {"filepath": "src/Symfony/Component/Lock/Store/MongoDbStore.php", "language": "php", "file_size": 14606, "cut_index": 921, "middle_length": 229}} {"prefix": "ent\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\SharedLockStoreInterface;\n\n/**\n * PostgreSqlStore is a PersistingStoreInterface implementation using\n * PostgreSql advisory locks.\n *\n * @author Jérémy Derussé \n */\nclass PostgreSqlStore implements BlockingSharedLockStoreInterface, BlockingStoreInterface\n{\n private \\PDO $conn;\n private string $dsn;\n private ?string ", "suffix": "zy-connect to the database when the\n * lock is actually used.\n *\n * List of available options:\n * * db_username: The username when lazy-connect [default: '']\n * * db_password: The password when lazy-connect [default: '']\n * * db_", "middle": "$username = null;\n private ?string $password = null;\n private array $connectionOptions = [];\n\n /**\n * You can either pass an existing database connection as PDO instance or\n * a DSN string that will be used to la", "meta": {"filepath": "src/Symfony/Component/Lock/Store/PostgreSqlStore.php", "language": "php", "file_size": 9571, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Store;\n\nuse Symfony\\Component\\Lock\\BlockingStoreInterface;\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\n\n/**\n * SemaphoreStore is a PersistingStoreInterface implementation using Se", "suffix": "\n public static function isSupported(): bool\n {\n return \\extension_loaded('sysvsem');\n }\n\n /**\n * @param string $projectId A scoping prefix folded into the System V key derivation to isolate one\n * applic", "middle": "maphore as store engine.\n *\n * @author Jérémy Derussé \n */\nclass SemaphoreStore implements BlockingStoreInterface\n{\n /**\n * Returns whether or not the store is supported.\n *\n * @internal\n */", "meta": {"filepath": "src/Symfony/Component/Lock/Store/SemaphoreStore.php", "language": "php", "file_size": 2721, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Strategy;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\Strategy\\UnanimousStrategy;\n\n/**\n * @author Jérémy Derussé \n */\nclass UnanimousStrategyTest extends TestCase\n{\n private UnanimousStrategy $strateg", "suffix": ";\n yield [2, 1, 3, false];\n yield [2, 0, 3, false];\n yield [1, 2, 3, false];\n yield [1, 1, 3, false];\n yield [1, 0, 3, false];\n yield [0, 3, 3, false];\n yield [0, 2, 3, false];\n yield [0, 1, 3, false]", "middle": "y;\n\n protected function setUp(): void\n {\n $this->strategy = new UnanimousStrategy();\n }\n\n public static function provideMetResults()\n {\n // success, failure, total, isMet\n yield [3, 0, 3, true]", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Strategy/UnanimousStrategyTest.php", "language": "php", "file_size": 2300, "cut_index": 563, "middle_length": 229}} {"prefix": "ion\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\SharedLockStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\CombinedStore;\nuse Symfony\\Component\\Lock\\Store\\RedisStore;\nuse Symfony\\Component\\Lock\\Strategy\\StrategyInterface;\nuse Symfony\\Component\\Lock\\Strategy\\UnanimousStrategy;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy Derussé \n */\n#[Group('integration')]\nclass C", "suffix": "ersistingStoreInterface\n {\n $redis = new \\Predis\\Client(\n array_combine(['host', 'port'], explode(':', getenv('REDIS_HOST')) + [1 => 6379]),\n ['exceptions' => false],\n );\n\n try {\n $redis->connect();\n", "middle": "ombinedStoreTest extends AbstractStoreTestCase\n{\n use ExpiringStoreTestTrait;\n use SharedLockStoreTestTrait;\n\n protected function getClockDelay(): int\n {\n return 250000;\n }\n\n public function getStore(): P", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/CombinedStoreTest.php", "language": "php", "file_size": 13004, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Exception as DBALException;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Tools\\DsnParser;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentExcept", "suffix": "ponent\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy Derussé \n */\n#[RequiresPhpExtension('pdo_pgsql')]\n#[Group('integration')]\nclass DoctrineDbalPostgreSqlStoreTest extends AbstractStoreTestCase\n{\n use BlockingStoreTestTrai", "middle": "ion;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\DoctrineDbalPostgreSqlStore;\nuse Symfony\\Com", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/DoctrineDbalPostgreSqlStoreTest.php", "language": "php", "file_size": 6076, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\FlockStore;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy Derussé", "suffix": "Interface\n {\n return new FlockStore();\n }\n\n public function testConstructWhenRepositoryCannotBeCreated()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('The FlockStore directory ", "middle": " \n */\nclass FlockStoreTest extends AbstractStoreTestCase\n{\n use BlockingStoreTestTrait;\n use SharedLockStoreTestTrait;\n use UnserializableTestTrait;\n\n protected function getStore(): PersistingStore", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/FlockStoreTest.php", "language": "php", "file_size": 3037, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Lock\\Exception\\InvalidTtlException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\Memcach", "suffix": "stCase\n{\n use ExpiringStoreTestTrait;\n\n public static function setUpBeforeClass(): void\n {\n if (version_compare(phpversion('memcached'), '3.1.6', '<')) {\n self::markTestSkipped('Extension memcached > 3.1.5 required.');\n }\n", "middle": "edStore;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy Derussé \n */\n#[RequiresPhpExtension('memcached')]\n#[Group('integration')]\nclass MemcachedStoreTest extends AbstractStoreTe", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/MemcachedStoreTest.php", "language": "php", "file_size": 2096, "cut_index": 563, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\Store\\NullStore;\n\nclass NullStoreTest extends TestCase\n{\n public function testExistsAlwaysReturnsFalse()\n {\n $store = new NullStore()", "suffix": " = new Key('foo');\n\n $this->assertFalse($store->exists($key));\n }\n\n public function testSaveDoesNothing()\n {\n $store = new NullStore();\n $key = new Key('foo');\n\n $store->save($key);\n\n $this->assertFalse($store->e", "middle": ";\n $key", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/NullStoreTest.php", "language": "php", "file_size": 814, "cut_index": 522, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\PostgreSqlStore;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérém", "suffix": "ic function getPostgresHost(): string\n {\n if (!$host = getenv('POSTGRES_HOST')) {\n $this->markTestSkipped('Missing POSTGRES_HOST env variable');\n }\n\n return $host;\n }\n\n public function getStore(): PersistingStoreInt", "middle": "y Derussé \n */\n#[RequiresPhpExtension('pdo_pgsql')]\n#[Group('integration')]\nclass PostgreSqlStoreTest extends AbstractStoreTestCase\n{\n use BlockingStoreTestTrait;\n use SharedLockStoreTestTrait;\n\n publ", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/PostgreSqlStoreTest.php", "language": "php", "file_size": 5388, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Store;\n\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\LockAcquiringException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Exception\\LockReleasingException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\n\n/*", "suffix": " use ExpiringStoreTrait;\n\n public function __construct(\n private \\Zookeeper $zookeeper,\n ) {\n }\n\n public static function createConnection(#[\\SensitiveParameter] string $dsn): \\Zookeeper\n {\n if (!str_starts_with($dsn, 'zookeepe", "middle": "*\n * ZookeeperStore is a PersistingStoreInterface implementation using Zookeeper as store engine.\n *\n * @author Ganesh Chandrasekaran \n */\nclass ZookeeperStore implements PersistingStoreInterface\n{\n ", "meta": {"filepath": "src/Symfony/Component/Lock/Store/ZookeeperStore.php", "language": "php", "file_size": 4729, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Serializer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\Exception\\UnserializableKeyException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\Serializer\\LockKeyNormalizer;\n\nclass LockKeyNormalizerTest extends TestCase\n{\n", "suffix": "ormalizer->denormalize($normalizer->normalize($key), Key::class);\n $this->assertSame($key->getState('foo'), $copy->getState('foo'));\n $this->assertEqualsWithDelta($key->getRemainingLifetime(), $copy->getRemainingLifetime(), 0.001);\n }\n\n ", "middle": " public function testNormalizeAndDenormalize()\n {\n $key = new Key(__METHOD__);\n $key->reduceLifetime(1);\n $key->setState('foo', 'bar');\n $normalizer = new LockKeyNormalizer();\n\n $copy = $n", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Serializer/LockKeyNormalizerTest.php", "language": "php", "file_size": 1307, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Store;\n\nuse Symfony\\Component\\Lock\\BlockingStoreInterface;\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Exception\\LockStorageException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\SharedLockStoreInterface;\n\n/**\n * FlockSt", "suffix": " \n * @author Romain Neutron \n * @author Nicolas Grekas \n */\nclass FlockStore implements BlockingStoreInterface, SharedLockStoreInterface\n{\n private readonly string $lockPath;\n\n /**\n * @param st", "middle": "ore is a PersistingStoreInterface implementation using the FileSystem flock.\n *\n * Original implementation in \\Symfony\\Component\\Filesystem\\LockHandler.\n *\n * @author Jérémy Derussé \n * @author Grégoire Pineau", "meta": {"filepath": "src/Symfony/Component/Lock/Store/FlockStore.php", "language": "php", "file_size": 4735, "cut_index": 614, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Store;\n\nuse Symfony\\Component\\Lock\\BlockingSharedLockStoreInterface;\nuse Symfony\\Component\\Lock\\Key;\n\nclass NullStore implements BlockingSharedLockStoreInterface\n{\n public function save(Key $key): void\n {\n }\n\n public function delete(K", "suffix": "ts(Key $key): bool\n {\n return false;\n }\n\n public function putOffExpiration(Key $key, float $ttl): void\n {\n }\n\n public function saveRead(Key $key): void\n {\n }\n\n public function waitAndSaveRead(Key $key): void\n {\n }\n}\n", "middle": "ey $key): void\n {\n }\n\n public function exis", "meta": {"filepath": "src/Symfony/Component/Lock/Store/NullStore.php", "language": "php", "file_size": 825, "cut_index": 517, "middle_length": 52}} {"prefix": "mponent\\Lock\\Exception\\InvalidTtlException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Exception\\LockStorageException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\SharedLockStoreInterface;\n\n/**\n * RedisStore is a PersistingStoreInterface implementation using Redis as store engine.\n *\n * @author Jérémy Derussé \n * @author Grégoire Pineau \n */\nclass RedisStore implements SharedLockStoreInterface\n{\n use Expi", "suffix": "ruct(\n private \\Redis|Relay|RelayCluster|\\RedisArray|\\RedisCluster|\\Predis\\ClientInterface $redis,\n private float $initialTtl = 300.0,\n ) {\n if ($initialTtl <= 0) {\n throw new InvalidTtlException(\\sprintf('\"%s()\" expects ", "middle": "ringStoreTrait;\n\n private const NO_SCRIPT_ERROR_MESSAGE_PREFIX = 'NOSCRIPT';\n\n private bool $supportTime;\n\n /**\n * @param float $initialTtl The expiration delay of locks in seconds\n */\n public function __const", "meta": {"filepath": "src/Symfony/Component/Lock/Store/RedisStore.php", "language": "php", "file_size": 12830, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresFunction;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Test\\Abst", "suffix": "terface;\n\n /**\n * Tests blocking locks thanks to pcntl.\n *\n * This test is time sensible: the $clockDelay could be adjust.\n *\n * It also fails when run with the global ./phpunit test suite.\n */\n #[Group('transient')]\n #[Req", "middle": "ractStoreTestCase;\n\n/**\n * @author Jérémy Derussé \n */\ntrait BlockingStoreTestTrait\n{\n /**\n * @see AbstractStoreTestCase::getStore()\n */\n abstract protected function getStore(): PersistingStoreIn", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/BlockingStoreTestTrait.php", "language": "php", "file_size": 3237, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse Symfony\\Component\\Lock\\Exception\\LockExpiredException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy Derussé \n */\ntrait ExpiringStoreTestTrait\n{\n /**\n * Amount of microseconds used ", "suffix": "**\n * @see AbstractStoreTestCase::getStore()\n */\n abstract protected function getStore();\n\n /**\n * Tests the store automatically delete the key when it expire.\n *\n * This test is time-sensitive: the $clockDelay could be adjusted.\n", "middle": "as a delay to test expiration. Should be\n * small enough not to slow the test suite too much, and high enough not to\n * fail because of race conditions.\n */\n abstract protected function getClockDelay(): int;\n\n /", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/ExpiringStoreTestTrait.php", "language": "php", "file_size": 3692, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse MongoDB\\Collection;\nuse MongoDB\\Driver\\Manager;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\Store\\MongoDbStore;\nuse Symfony\\Component\\Lock\\Store\\StoreFactory;\n\nrequire_once __DIR", "suffix": " {\n $collection = $this->createMock(Collection::class);\n $collection->expects($this->once())\n ->method('getManager')\n ->willReturn(new Manager());\n $collection->expects($this->once())\n ->method('getCol", "middle": "__.'/stubs/mongodb.php';\n\n/**\n * @author Alexandre Daubois \n */\n#[RequiresPhpExtension('mongodb')]\nclass MongoDbStoreFactoryTest extends TestCase\n{\n public function testCreateMongoDbCollectionStore()\n ", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/MongoDbStoreFactoryTest.php", "language": "php", "file_size": 1541, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\Exception\\UnserializableKeyException;\nuse Symfony\\Component\\Lock\\Key;\n\n/**\n * @author Jérémy Derussé \n */\nclass KeyTest extends TestCase\n{\n public function testSerialize()\n ", "suffix": "\n $this->assertEqualsWithDelta($key->getRemainingLifetime(), $copy->getRemainingLifetime(), 0.001);\n }\n\n public function testLegacyPayloadCanBeUnserialized()\n {\n $serialized = base64_decode('TzoyNjoiU3ltZm9ueVxDb21wb25lbnRcTG9ja1xLZX", "middle": "{\n $key = new Key(__METHOD__);\n $key->reduceLifetime(1);\n $key->setState('foo', 'bar');\n\n $copy = unserialize(serialize($key));\n $this->assertSame($key->getState('foo'), $copy->getState('foo'));", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/KeyTest.php", "language": "php", "file_size": 1713, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Strategy;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\Strategy\\ConsensusStrategy;\n\n/**\n * @author Jérémy Derussé \n */\nclass ConsensusStrategyTest extends TestCase\n{\n private ConsensusStrategy $strateg", "suffix": ";\n yield [2, 1, 3, true];\n yield [2, 0, 3, true];\n yield [1, 2, 3, false];\n yield [1, 1, 3, false];\n yield [1, 0, 3, false];\n yield [0, 3, 3, false];\n yield [0, 2, 3, false];\n yield [0, 1, 3, false];\n", "middle": "y;\n\n protected function setUp(): void\n {\n $this->strategy = new ConsensusStrategy();\n }\n\n public static function provideMetResults()\n {\n // success, failure, total, isMet\n yield [3, 0, 3, true]", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Strategy/ConsensusStrategyTest.php", "language": "php", "file_size": 2295, "cut_index": 563, "middle_length": 229}} {"prefix": "ny\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\n\n/**\n * PdoStore is a PersistingStoreInterface implementation using a PDO connection.\n *\n * Lock metadata are stored in a table. You can use createTable() to initialize\n * a correctly defined table.\n *\n * CAUTION: This store relies on all client and server nodes to have\n * synchronized clocks for lock expiry to occur at the correct time.\n * To ensure locks don't expire pr", "suffix": "TableTrait;\n use ExpiringStoreTrait;\n\n private \\PDO $conn;\n private string $dsn;\n private string $driver;\n private ?string $username = null;\n private ?string $password = null;\n private array $connectionOptions = [];\n\n /**\n * You", "middle": "ematurely; the TTLs should be set with enough\n * extra time to account for any clock drift between nodes.\n *\n * @author Jérémy Derussé \n */\nclass PdoStore implements PersistingStoreInterface\n{\n use Database", "meta": {"filepath": "src/Symfony/Component/Lock/Store/PdoStore.php", "language": "php", "file_size": 12958, "cut_index": 921, "middle_length": 229}} {"prefix": "TableNotFoundException;\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\SQLitePlatform;\nuse Doctrine\\DBAL\\Platforms\\SQLServerPlatform;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\", "suffix": "m>\n */\n#[RequiresPhpExtension('pdo_sqlite')]\nclass DoctrineDbalStoreTest extends AbstractStoreTestCase\n{\n use ExpiringStoreTestTrait;\n\n protected static string $dbFile;\n\n public static function setUpBeforeClass(): void\n {\n self::$dbFile ", "middle": "Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\DoctrineDbalStore;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy Derussé createTable();\n }\n\n public static function tear", "middle": "toreTestCase;\n\n/**\n * @author Jérémy Derussé \n */\n#[RequiresPhpExtension('pdo_sqlite')]\nclass PdoStoreTest extends AbstractStoreTestCase\n{\n use ExpiringStoreTestTrait;\n\n protected static string $dbFile;\n", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/PdoStoreTest.php", "language": "php", "file_size": 5678, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse Relay\\Cluster as RelayCluster;\nuse Relay\\Relay;\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\RedisStore;\nuse Symfony\\Component\\", "suffix": "lay(): int\n {\n return 250000;\n }\n\n abstract protected function getRedisConnection(): \\Redis|Relay|RelayCluster|\\RedisArray|\\RedisCluster|\\Predis\\ClientInterface;\n\n public function getStore(): PersistingStoreInterface\n {\n return", "middle": "Lock\\Test\\AbstractStoreTestCase;\n\n/**\n * @author Jérémy Derussé \n */\nabstract class AbstractRedisStoreTestCase extends AbstractStoreTestCase\n{\n use ExpiringStoreTestTrait;\n\n protected function getClockDe", "meta": {"filepath": "src/Symfony/Component/Lock/Tests/Store/AbstractRedisStoreTestCase.php", "language": "php", "file_size": 3657, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Store;\n\nuse Symfony\\Component\\Lock\\Exception\\LockConflictedException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Lock\\SharedLockStoreInterface;\n\n/**\n * InMemoryStore is a PersistingStoreInterface implementation using\n * php-array to manage locks.\n *\n * @author Jérémy Derussé \n */\nclass InMemoryStore implements ", "suffix": "if (isset($this->locks[$hashKey])) {\n // already acquired\n if ($this->locks[$hashKey] === $token) {\n return;\n }\n\n throw new LockConflictedException();\n }\n\n // check for promotion\n ", "middle": "SharedLockStoreInterface\n{\n private array $locks = [];\n private array $readLocks = [];\n\n public function save(Key $key): void\n {\n $hashKey = (string) $key;\n $token = $this->getUniqueToken($key);\n ", "meta": {"filepath": "src/Symfony/Component/Lock/Store/InMemoryStore.php", "language": "php", "file_size": 3054, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Lock\\Tests\\Store;\n\nuse MongoDB\\Client;\nuse MongoDB\\Collection;\nuse MongoDB\\Database;\nuse MongoDB\\Driver\\Command;\nuse MongoDB\\Driver\\Exception\\ConnectionTimeoutException;\nuse MongoDB\\Driver\\Manager;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Lock\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Com", "suffix": "m>\n */\n#[RequiresPhpExtension('mongodb')]\n#[Group('integration')]\nclass MongoDbStoreTest extends AbstractStoreTestCase\n{\n use ExpiringStoreTestTrait;\n\n public static function setUpBeforeClass(): void\n {\n $manager = self::getMongoManager();\n", "middle": "ponent\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\MongoDbStore;\nuse Symfony\\Component\\Lock\\Test\\AbstractStoreTestCase;\n\nrequire_once __DIR__.'/stubs/mongodb.php';\n\n/**\n * @author Joe Bennett \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Component\\Yaml\\Parser;\nuse Symfony\\Component\\Yaml\\Yaml;\n\nclass YamlTest extends TestCase\n{\n public function testParseAndDump()\n {\n $data = ['lorem' => 'ipsum', 'dolor' => 'si", "suffix": "dArgumentException::class);\n $this->expectExceptionMessage('The indentation must be greater than zero');\n Yaml::dump(['lorem' => 'ipsum', 'dolor' => 'sit'], 2, 0);\n }\n\n public function testNegativeIndentationThrowsException()\n {\n ", "middle": "t'];\n $yml = Yaml::dump($data);\n $parsed = Yaml::parse($yml);\n $this->assertEquals($data, $parsed);\n }\n\n public function testZeroIndentationThrowsException()\n {\n $this->expectException(\\Invali", "meta": {"filepath": "src/Symfony/Component/Yaml/Tests/YamlTest.php", "language": "php", "file_size": 2195, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Comp", "suffix": "rBuilder();\n\n $tag = 'property_info.constructor_extractor';\n $definition = $container->register('property_info.constructor_extractor')->setArguments([null, null]);\n $container->register('n2')->addTag($tag, ['priority' => 100]);\n ", "middle": "onent\\PropertyInfo\\DependencyInjection\\PropertyInfoConstructorPass;\n\nclass PropertyInfoConstructorPassTest extends TestCase\n{\n public function testServicesAreOrderedAccordingToPriority()\n {\n $container = new Containe", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/DependencyInjection/PropertyInfoConstructorPassTest.php", "language": "php", "file_size": 1904, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Refere", "suffix": " $tag)\n {\n $container = new ContainerBuilder();\n\n $definition = $container->register('property_info')->setArguments([null, null, null, null, null]);\n $container->register('n2')->addTag($tag, ['priority' => 100]);\n $container-", "middle": "nce;\nuse Symfony\\Component\\PropertyInfo\\DependencyInjection\\PropertyInfoPass;\n\nclass PropertyInfoPassTest extends TestCase\n{\n #[DataProvider('provideTags')]\n public function testServicesAreOrderedAccordingToPriority($index,", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/DependencyInjection/PropertyInfoPassTest.php", "language": "php", "file_size": 2708, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Extractor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\ConstructorExtractor;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyExtrac", "suffix": " void\n {\n $this->extractor = new ConstructorExtractor([new DummyExtractor()]);\n }\n\n public function testInstanceOf()\n {\n $this->assertInstanceOf(PropertyTypeExtractorInterface::class, $this->extractor);\n }\n\n public function ", "middle": "tor;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * @author Dmitrii Poddubnyi \n */\nclass ConstructorExtractorTest extends TestCase\n{\n private ConstructorExtractor $extractor;\n\n protected function setUp():", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Extractor/ConstructorExtractorTest.php", "language": "php", "file_size": 1305, "cut_index": 524, "middle_length": 229}} {"prefix": "ck;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyCollection;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyGeneric;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\ChildOfParentUsingTrait;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\ChildOfParentWithPromotedSelfDocBlock;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\ChildWithConstructorOverride;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtu", "suffix": "onent\\PropertyInfo\\Tests\\Fixtures\\Extractor\\ClassUsingTraitWithSelfDocBlock;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\ParentUsingTraitWithSelfDocBlock;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\ParentWithPromotedPropert", "middle": "res\\Extractor\\ChildWithoutConstructorOverride;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\ChildWithSelfDocBlock;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\ClassUsingNestedTrait;\nuse Symfony\\Comp", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php", "language": "php", "file_size": 27174, "cut_index": 1331, "middle_length": 229}} {"prefix": "ropertyInfo\\Tests\\Fixtures\\DefaultValue;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DockBlockFallback;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyCollection;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyGeneric;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyNamespace;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyPropertyAndGetterWithDifferentTypes;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyU", "suffix": "ummyWithStaticGetterInDifferentNs;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\DummyWithTemplateAndParentInDifferentNs;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\PromotedPropertiesWithDocBlock;\nuse Symfony\\Component\\Proper", "middle": "nionType;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyWithTemplateAndParent;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\DummyInDifferentNs;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor\\D", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php", "language": "php", "file_size": 24905, "cut_index": 1331, "middle_length": 229}} {"prefix": "opertyInfo\\Tests\\Fixtures\\Php81Dummy;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Php82Dummy;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\SnakeCaseDummy;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\UnderscoreDummy;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\VirtualProperties;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\VoidNeverReturnTypeDummy;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * @author Kévin Dunglas \n */\nclass ReflectionExtractorTest extends TestC", "suffix": " [\n 'bal',\n 'parent',\n 'collection',\n 'collectionAsObject',\n 'nestedCollection',\n 'mixedCollection',\n 'B',\n 'Guid',\n ", "middle": "ase\n{\n private ReflectionExtractor $extractor;\n\n protected function setUp(): void\n {\n $this->extractor = new ReflectionExtractor();\n }\n\n public function testGetProperties()\n {\n $this->assertSame(\n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php", "language": "php", "file_size": 39225, "cut_index": 2151, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Extractor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\SerializerExtractor;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\AdderRemoverDummy;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Comp", "suffix": "@gmail.com>\n */\nclass SerializerExtractorTest extends TestCase\n{\n private SerializerExtractor $extractor;\n\n protected function setUp(): void\n {\n $classMetadataFactory = new ClassMetadataFactory(new AttributeLoader());\n $this->extract", "middle": "onent\\PropertyInfo\\Tests\\Fixtures\\IgnorePropertyDummy;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Kévin Dunglas \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PriorityTaggedServiceTrait;\nu", "suffix": "ass implements CompilerPassInterface\n{\n use PriorityTaggedServiceTrait;\n\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('property_info.constructor_extractor')) {\n return;\n }\n", "middle": "se Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Adds extractors to the property_info.constructor_extractor service.\n *\n * @author Dmitrii Poddubnyi \n */\nfinal class PropertyInfoConstructorP", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/DependencyInjection/PropertyInfoConstructorPass.php", "language": "php", "file_size": 1297, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PriorityTaggedServiceTrait;\nuse Symfony\\Co", "suffix": "gedServiceTrait;\n\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('property_info')) {\n return;\n }\n\n $definition = $container->getDefinition('property_info');\n\n $lis", "middle": "mponent\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Adds extractors to the property_info service.\n *\n * @author Kévin Dunglas \n */\nclass PropertyInfoPass implements CompilerPassInterface\n{\n use PriorityTag", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/DependencyInjection/PropertyInfoPass.php", "language": "php", "file_size": 1993, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Extractor;\n\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Extracts the constructor argument type using ConstructorArgumentTypeExtractorInterface implementations.\n *\n * @auth", "suffix": "blic function __construct(\n private readonly iterable $extractors = [],\n ) {\n }\n\n public function getType(string $class, string $property, array $context = []): ?Type\n {\n foreach ($this->extractors as $extractor) {\n if ", "middle": "or Dmitrii Poddubnyi \n */\nfinal class ConstructorExtractor implements PropertyTypeExtractorInterface\n{\n /**\n * @param iterable $extractors\n */\n pu", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Extractor/ConstructorExtractor.php", "language": "php", "file_size": 1164, "cut_index": 518, "middle_length": 229}} {"prefix": "tion\\DocBlockFactory;\nuse phpDocumentor\\Reflection\\DocBlockFactoryInterface;\nuse phpDocumentor\\Reflection\\Types\\Context;\nuse phpDocumentor\\Reflection\\Types\\ContextFactory;\nuse Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyDocBlockExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\Util\\PhpDocTypeHelper;\nuse Symfony\\Component\\TypeInfo\\Exception\\LogicException;\nuse Symfony\\C", "suffix": "*\n * @final\n */\nclass PhpDocExtractor implements PropertyDescriptionExtractorInterface, PropertyTypeExtractorInterface, ConstructorArgumentTypeExtractorInterface, PropertyDocBlockExtractorInterface\n{\n public const PROPERTY = 0;\n public const ACCESSOR", "middle": "omponent\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\n\n/**\n * Extracts data using a PHPDoc parser.\n *\n * @author Kévin Dunglas \n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php", "language": "php", "file_size": 16912, "cut_index": 921, "middle_length": 229}} {"prefix": "er\\Parser\\PhpDocParser;\nuse PHPStan\\PhpDocParser\\Parser\\TokenIterator;\nuse PHPStan\\PhpDocParser\\Parser\\TypeParser;\nuse PHPStan\\PhpDocParser\\ParserConfig;\nuse Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory", "suffix": "ExtractorInterface, PropertyTypeExtractorInterface, ConstructorArgumentTypeExtractorInterface\n{\n private const PROPERTY = 0;\n private const ACCESSOR = 1;\n private const MUTATOR = 2;\n\n private PhpDocParser $phpDocParser;\n private Lexer $lexer", "middle": ";\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\StringTypeResolver;\n\n/**\n * Extracts data using PHPStan parser.\n *\n * @author Baptiste Leduc \n */\nfinal class PhpStanExtractor implements PropertyDescription", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php", "language": "php", "file_size": 17616, "cut_index": 1331, "middle_length": 229}} {"prefix": " using the reflection API.\n *\n * @author Kévin Dunglas \n *\n * @final\n */\nclass ReflectionExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface, PropertyInitializableExtractorInterface, PropertyReadInfoExtractorInterface, PropertyWriteInfoExtractorInterface, ConstructorArgumentTypeExtractorInterface\n{\n /**\n * @internal\n */\n public static array $defaultMutatorPrefixes = ['add', 'remove', 'set'];\n\n /**\n * @i", "suffix": "RIVATE = 1;\n public const ALLOW_PROTECTED = 2;\n public const ALLOW_PUBLIC = 4;\n\n /** @var int Allow none of the magic methods */\n public const DISALLOW_MAGIC_METHODS = 0;\n /** @var int Allow magic __get methods */\n public const ALLOW_MAGI", "middle": "nternal\n */\n public static array $defaultAccessorPrefixes = ['get', 'is', 'has', 'can'];\n\n /**\n * @internal\n */\n public static array $defaultArrayMutatorPrefixes = ['add', 'remove'];\n\n public const ALLOW_P", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php", "language": "php", "file_size": 34005, "cut_index": 2151, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Extractor;\n\nuse Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactoryInterface;\n\n/**\n * Lists available properties using Symfony Serializer Component metadata.\n *\n * @author Kévin", "suffix": " ) {\n }\n\n public function getProperties(string $class, array $context = []): ?array\n {\n if (!\\array_key_exists('serializer_groups', $context) || (null !== $context['serializer_groups'] && !\\is_array($context['serializer_groups']))) {\n ", "middle": " Dunglas \n *\n * @final\n */\nclass SerializerExtractor implements PropertyListExtractorInterface\n{\n public function __construct(\n private readonly ClassMetadataFactoryInterface $classMetadataFactory,\n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Extractor/SerializerExtractor.php", "language": "php", "file_size": 1763, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap;\n\n/**\n * @author Charles Sarrazin \n * @author Karl Shea \n */\nclass Entry\n{\n /**\n * @var array\n */\n private array $attributes = [];\n\n /**\n * @var array\n */\n private array $lowerMap = [];\n\n /**\n", "suffix": "setAttribute($key, $attribute);\n }\n }\n\n /**\n * Returns the entry's DN.\n */\n public function getDn(): string\n {\n return $this->dn;\n }\n\n /**\n * Returns whether an attribute exists.\n *\n * @param string $name", "middle": " * @param array $attributes\n */\n public function __construct(\n private string $dn,\n array $attributes = [],\n ) {\n foreach ($attributes as $key => $attribute) {\n $this->", "meta": {"filepath": "src/Symfony/Component/Ldap/Entry.php", "language": "php", "file_size": 2923, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap;\n\nuse Symfony\\Component\\Ldap\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\EntryManagerInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\Adapter;\nuse Symfony\\Component\\Ldap\\Adapter\\QueryInterface;\nuse Symfony\\Component\\Ldap\\Exception\\DriverNotFoundException;\n\n/**\n * @autho", "suffix": "sitiveParameter] ?string $password = null): void\n {\n $this->adapter->getConnection()->bind($dn, $password);\n }\n\n public function saslBind(?string $dn = null, #[\\SensitiveParameter] ?string $password = null, ?string $mech = null, ?string $re", "middle": "r Charles Sarrazin \n */\nfinal class Ldap implements LdapInterface\n{\n public function __construct(\n private AdapterInterface $adapter,\n ) {\n }\n\n public function bind(?string $dn = null, #[\\Sen", "meta": {"filepath": "src/Symfony/Component/Ldap/Ldap.php", "language": "php", "file_size": 2472, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap;\n\nuse Symfony\\Component\\Ldap\\Adapter\\EntryManagerInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\QueryInterface;\nuse Symfony\\Component\\Ldap\\Exception\\ConnectionException;\n\n/**\n * @author Charles Sarrazin \n */\ninterface LdapInterface\n{\n public con", "suffix": "tring $dn = null, #[\\SensitiveParameter] ?string $password = null): void;\n\n /**\n * Returns a connection bound to the ldap using SASL.\n *\n * @throws ConnectionException if dn / password could not be bound\n */\n public function saslBind(", "middle": "st ESCAPE_FILTER = 0x01;\n public const ESCAPE_DN = 0x02;\n\n /**\n * Returns a connection bound to the ldap.\n *\n * @throws ConnectionException if dn / password could not be bound\n */\n public function bind(?s", "meta": {"filepath": "src/Symfony/Component/Ldap/LdapInterface.php", "language": "php", "file_size": 1736, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter;\n\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Charles Sarrazin \n */\nabstract class AbstractConnection implements ConnectionInterface\n{\n protected array $config;\n\n", "suffix": " configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'host' => 'localhost',\n 'version' => 3,\n 'connection_string' => null,\n 'encryption' => 'none',\n 'options' => [", "middle": " public function __construct(array $config = [])\n {\n $resolver = new OptionsResolver();\n\n $this->configureOptions($resolver);\n\n $this->config = $resolver->resolve($config);\n }\n\n protected function", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/AbstractConnection.php", "language": "php", "file_size": 1723, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter;\n\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Charles Sarrazin \n */\nabstract class AbstractQuery implements QueryInterface\n{\n protected array $option", "suffix": ";\n $resolver->setDefaults([\n 'filter' => '*',\n 'maxItems' => 0,\n 'timeout' => 0,\n 'deref' => static::DEREF_NEVER,\n 'attrsOnly' => 0,\n 'scope' => static::SCOPE_SUB,\n 'pageSi", "middle": "s;\n\n public function __construct(\n protected ConnectionInterface $connection,\n protected string $dn,\n protected string $query,\n array $options = [],\n ) {\n $resolver = new OptionsResolver()", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/AbstractQuery.php", "language": "php", "file_size": 1464, "cut_index": 524, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter;\n\n/**\n * @author Charles Sarrazin \n */\ninterface AdapterInterface\n{\n /**\n * Returns the current connection.\n */\n public function getConnection(): ConnectionInterface;\n\n /**\n * Creates a new Query.\n */\n public function cre", "suffix": " []): QueryInterface;\n\n /**\n * Fetches the entry manager instance.\n */\n public function getEntryManager(): EntryManagerInterface;\n\n /**\n * Escape a string for use in an LDAP filter or DN.\n */\n public function escape(string $subj", "middle": "ateQuery(string $dn, string $query, array $options =", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/AdapterInterface.php", "language": "php", "file_size": 908, "cut_index": 547, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter;\n\nuse Symfony\\Component\\Ldap\\Exception\\AlreadyExistsException;\nuse Symfony\\Component\\Ldap\\Exception\\ConnectionTimeoutException;\nuse Symfony\\Component\\Ldap\\Exception\\InvalidCredentialsException;\n\n/**\n * @author Charles Sarrazin \n */\ninterface ConnectionInterface\n{\n ", "suffix": "n When the connection can't be created because of an LDAP_ALREADY_EXISTS error\n * @throws ConnectionTimeoutException When the connection can't be created because of an LDAP_TIMEOUT error\n * @throws InvalidCredentialsException When the connect", "middle": " /**\n * Checks whether the connection was already bound or not.\n */\n public function isBound(): bool;\n\n /**\n * Binds the connection against a user's DN and password.\n *\n * @throws AlreadyExistsExceptio", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/ConnectionInterface.php", "language": "php", "file_size": 2092, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter;\n\nuse Symfony\\Component\\Ldap\\Entry;\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\nuse Symfony\\Component\\Ldap\\Exception\\NotBoundException;\n\n/**\n * @author Charles Sarrazin \n * @author Bob van de Vijver \n * ", "suffix": "ws LdapException\n */\n public function add(Entry $entry): static;\n\n /**\n * Updates an entry from the Ldap server.\n *\n * @return $this\n *\n * @throws NotBoundException\n * @throws LdapException\n */\n public function upda", "middle": "@author Kevin Schuurmans \n */\ninterface EntryManagerInterface\n{\n /**\n * Adds a new entry in the Ldap server.\n *\n * @return $this\n *\n * @throws NotBoundException\n * @thro", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php", "language": "php", "file_size": 1734, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter;\n\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\nuse Symfony\\Component\\Ldap\\Exception\\NotBoundException;\n\n/**\n * @author Charles Sarrazin \n * @author Bob van de Vijver \n */\ninterfac", "suffix": " SCOPE_ONE = 'one';\n public const SCOPE_SUB = 'sub';\n\n /**\n * Executes a query and returns the list of Ldap entries.\n *\n * @throws NotBoundException\n * @throws LdapException\n */\n public function execute(): CollectionInterface;\n", "middle": "e QueryInterface\n{\n public const DEREF_NEVER = 0x00;\n public const DEREF_SEARCHING = 0x01;\n public const DEREF_FINDING = 0x02;\n public const DEREF_ALWAYS = 0x03;\n\n public const SCOPE_BASE = 'base';\n public const", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/QueryInterface.php", "language": "php", "file_size": 999, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter\\ExtLdap;\n\nuse Symfony\\Component\\Ldap\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\ConnectionInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\EntryManagerInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\QueryInterface;\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\n\n/**", "suffix": " private array $config = [],\n ) {\n if (!\\extension_loaded('ldap')) {\n throw new LdapException('The LDAP PHP extension is not enabled.');\n }\n }\n\n public function getConnection(): ConnectionInterface\n {\n return ", "middle": "\n * @author Charles Sarrazin \n */\nclass Adapter implements AdapterInterface\n{\n private ConnectionInterface $connection;\n private EntryManagerInterface $entryManager;\n\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/ExtLdap/Adapter.php", "language": "php", "file_size": 2187, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter\\ExtLdap;\n\nuse Symfony\\Component\\Ldap\\Adapter\\CollectionInterface;\nuse Symfony\\Component\\Ldap\\Entry;\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\n\n/**\n * @author Charles Sarrazin \n */\nclass Collection implements CollectionInterface\n{\n /** @var list */\n private array $entries;\n\n public function", "suffix": "}\n\n public function count(): int\n {\n $con = $this->connection->getResource();\n $searches = $this->search->getResources();\n $count = 0;\n foreach ($searches as $search) {\n $searchCount = ldap_count_entries($con, $", "middle": " __construct(\n private Connection $connection,\n private Query $search,\n ) {\n }\n\n public function toArray(): array\n {\n return $this->entries ??= iterator_to_array($this->getIterator(), false);\n ", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/ExtLdap/Collection.php", "language": "php", "file_size": 3489, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter\\ExtLdap;\n\nuse LDAP\\Connection as LDAPConnection;\nuse Symfony\\Component\\Ldap\\Adapter\\AbstractConnection;\nuse Symfony\\Component\\Ldap\\Exception\\AlreadyExistsException;\nuse Symfony\\Component\\Ldap\\Exception\\ConnectionException;\nuse Symfony\\Component\\Ldap\\Exception\\ConnectionTimeoutException;\nuse Symfony\\Component\\Ldap\\Exception\\InvalidCredentialsException;\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\nuse Symfony\\Component\\Ldap\\Exce", "suffix": "\n private const LDAP_INVALID_CREDENTIALS = 0x31;\n private const LDAP_TIMEOUT = 0x55;\n private const LDAP_ALREADY_EXISTS = 0x44;\n private const PRECONNECT_OPTIONS = [\n ConnectionOptions::DEBUG_LEVEL,\n ConnectionOptions::X_TLS_CACER", "middle": "ption\\NotBoundException;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Charles Sarrazin \n */\nclass Connection extends AbstractConnection\n{", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/ExtLdap/Connection.php", "language": "php", "file_size": 7997, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter\\ExtLdap;\n\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\n\n/**\n * A class representing the Ldap extension's options, which can be used with\n * ldap_set_option or ldap_get_option.\n *\n * @author Charles Sarrazin \n *\n * @internal\n */\nfinal class ConnectionOptions\n", "suffix": "L_VERSION = 0x11;\n public const SERVER_CONTROLS = 0x12;\n public const CLIENT_CONTROLS = 0x13;\n public const API_FEATURE_INFO = 0x15;\n public const HOST_NAME = 0x30;\n public const ERROR_NUMBER = 0x31;\n public const ERROR_STRING = 0x32;\n ", "middle": "{\n public const API_INFO = 0x00;\n public const DEREF = 0x02;\n public const SIZELIMIT = 0x03;\n public const TIMELIMIT = 0x04;\n public const REFERRALS = 0x08;\n public const RESTART = 0x09;\n public const PROTOCO", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/ExtLdap/ConnectionOptions.php", "language": "php", "file_size": 2903, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter\\ExtLdap;\n\nuse LDAP\\Connection as LDAPConnection;\nuse Symfony\\Component\\Ldap\\Adapter\\EntryManagerInterface;\nuse Symfony\\Component\\Ldap\\Entry;\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\nuse Symfony\\Component\\Ldap\\Exception\\NotBoundException;\nuse Symfony\\Component\\Ldap\\Exception\\UpdateOperationException;\n\n/**\n * @author Charles Sarrazin \n * @author Bob van de Vijver \n */\nclass Entr", "suffix": "$con = $this->getConnectionResource();\n\n if (!@ldap_add($con, $entry->getDn(), $entry->getAttributes())) {\n throw new LdapException(\\sprintf('Could not add entry \"%s\": ', $entry->getDn()).ldap_error($con), ldap_errno($con));\n }\n\n ", "middle": "yManager implements EntryManagerInterface\n{\n public function __construct(\n private Connection $connection,\n ) {\n }\n\n /**\n * @return $this\n */\n public function add(Entry $entry): static\n {\n ", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php", "language": "php", "file_size": 6044, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter\\ExtLdap;\n\nuse LDAP\\Result;\nuse Symfony\\Component\\Ldap\\Adapter\\AbstractQuery;\nuse Symfony\\Component\\Ldap\\Adapter\\CollectionInterface;\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\nuse Symfony\\Component\\Ldap\\Exception\\NotBoundException;\n\n/**\n * @author Charles Sarrazin \n * @author Bob van de Vijver \n */\nclass Query extends AbstractQuery\n{\n public const PAGINATION_OID = \\LDAP_CONTR", "suffix": ";\n }\n\n public function __unserialize(array $data): void\n {\n throw new \\BadMethodCallException('Cannot unserialize '.__CLASS__);\n }\n\n public function __destruct()\n {\n $con = $this->connection->getResource();\n\n if (!iss", "middle": "OL_PAGEDRESULTS;\n\n /** @var Result[] */\n private array $results;\n\n private array $serverctrls = [];\n\n public function __serialize(): array\n {\n throw new \\BadMethodCallException('Cannot serialize '.__CLASS__)", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php", "language": "php", "file_size": 7132, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Adapter\\ExtLdap;\n\nuse Symfony\\Component\\Ldap\\Exception\\UpdateOperationException;\n\nclass UpdateOperation\n{\n private const VALID_OPERATION_TYPES = [\n \\LDAP_MODIFY_BATCH_ADD,\n \\LDAP_MODIFY_BATCH_REMOVE,\n \\LDAP_MODIFY_BATCH_REMOVE_ALL,\n \\L", "suffix": "consistency errors during construction\n */\n public function __construct(\n private int $operationType,\n private string $attribute,\n private ?array $values,\n ) {\n if (!\\in_array($operationType, self::VALID_OPERATION_TYPE", "middle": "DAP_MODIFY_BATCH_REPLACE,\n ];\n\n /**\n * @param int $operationType An LDAP_MODIFY_BATCH_* constant\n * @param string $attribute The attribute to batch modify on\n *\n * @throws UpdateOperationException on ", "meta": {"filepath": "src/Symfony/Component/Ldap/Adapter/ExtLdap/UpdateOperation.php", "language": "php", "file_size": 1736, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Ldap\\Entry;\n\nclass EntryTest extends TestCase\n{\n public function testCaseSensitiveAttributeAccessors()\n {\n $mail = 'fabpot@symfony.com';\n $givenName = 'Fabien Potenc", "suffix": ">assertTrue($entry->hasAttribute('givenname', false));\n\n $this->assertNull($entry->getAttribute('givenname'));\n $this->assertSame($givenName, $entry->getAttribute('givenname', false)[0]);\n\n $firstName = 'Fabien';\n\n $entry->setAt", "middle": "ier';\n\n $entry = new Entry('cn=fabpot,dc=symfony,dc=com', [\n 'mail' => [$mail],\n 'givenName' => [$givenName],\n ]);\n\n $this->assertFalse($entry->hasAttribute('givenname'));\n $this-", "meta": {"filepath": "src/Symfony/Component/Ldap/Tests/EntryTest.php", "language": "php", "file_size": 1247, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Ldap\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\ConnectionInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\QueryInterface;\nuse Symfony\\Component\\Ldap\\Exception\\DriverNotFoundException;\nuse Symfony\\Component\\Ldap", "suffix": "('bind')\n ->with('foo', 'bar')\n ;\n $adapter = $this->createMock(AdapterInterface::class);\n $adapter\n ->expects($this->once())\n ->method('getConnection')\n ->willReturn($connection)\n ;\n ", "middle": "\\Ldap;\n\nclass LdapTest extends TestCase\n{\n public function testLdapBind()\n {\n $connection = $this->createMock(ConnectionInterface::class);\n $connection\n ->expects($this->once())\n ->method", "meta": {"filepath": "src/Symfony/Component/Ldap/Tests/LdapTest.php", "language": "php", "file_size": 3609, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Yaml\\Command\\LintCommand;\n\n/**\n * Tests the YamlLintCommand.\n *\n * @au", "suffix": "= $this->createFile('foo: bar');\n\n $ret = $tester->execute(['filename' => $filename], ['verbosity' => OutputInterface::VERBOSITY_VERBOSE, 'decorated' => false]);\n\n $this->assertEquals(0, $ret, 'Returns 0 in case of success');\n $this->a", "middle": "thor Robin Chalas \n */\nclass LintCommandTest extends TestCase\n{\n private array $files;\n\n public function testLintCorrectFile()\n {\n $tester = $this->createCommandTester();\n $filename ", "meta": {"filepath": "src/Symfony/Component/Yaml/Tests/Command/LintCommandTest.php", "language": "php", "file_size": 7230, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo;\n\nuse phpDocumentor\\Reflection\\DocBlock;\n\n/**\n * Extract a property's doc block.\n *\n * A property's doc block may be located on a constructor promoted argument, on\n * the property or on a mutator for that property.\n *\n * @author Tobias Nyholm \n */\ninterface PropertyDocBlockExtr", "suffix": "able doc block for a property. It finds the doc block\n * by the following priority:\n * - constructor promoted argument,\n * - the class property,\n * - a mutator method for that property.\n *\n * If no doc block is found, it will ret", "middle": "actorInterface\n{\n /**\n * Gets the first avail", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/PropertyDocBlockExtractorInterface.php", "language": "php", "file_size": 987, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Adds a PSR-6 cache layer on top of an extractor.\n *\n * @author Kévin Dunglas \n *\n * @final\n */\nclass PropertyInfoCacheExtractor implements PropertyInfoExtractorInterface, PropertyInitializableExtractorInterface\n{\n private array ", "suffix": "n isReadable(string $class, string $property, array $context = []): ?bool\n {\n return $this->extract('isReadable', [$class, $property, $context]);\n }\n\n public function isWritable(string $class, string $property, array $context = []): ?bool\n ", "middle": "$arrayCache = [];\n\n public function __construct(\n private readonly PropertyInfoExtractorInterface $propertyInfoExtractor,\n private readonly CacheItemPoolInterface $cacheItemPool,\n ) {\n }\n\n public functio", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/PropertyInfoCacheExtractor.php", "language": "php", "file_size": 4003, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo;\n\n/**\n * The property read info tells how a property can be read.\n *\n * @author Joel Wurtz \n */\nfinal class PropertyReadInfo\n{\n public const TYPE_METHOD = 'method';\n public const TYPE_PROPERTY = 'property';\n\n public const VISIBI", "suffix": "g $name,\n private readonly string $visibility,\n private readonly bool $static,\n private readonly bool $byRef,\n ) {\n }\n\n /**\n * Get type of access.\n */\n public function getType(): string\n {\n return $this->t", "middle": "LITY_PUBLIC = 'public';\n public const VISIBILITY_PROTECTED = 'protected';\n public const VISIBILITY_PRIVATE = 'private';\n\n public function __construct(\n private readonly string $type,\n private readonly strin", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/PropertyReadInfo.php", "language": "php", "file_size": 1562, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor;\nuse Symfony\\Component\\PropertyInfo\\Property", "suffix": "or;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\NullExtractor;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * @author Kévin Dunglas \n */\nclass AbstractPropertyInfoExtractorTest extends TestCase\n{\n protected PropertyInfoExtractorIn", "middle": "InfoExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyInitializableExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyExtract", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/AbstractPropertyInfoExtractorTest.php", "language": "php", "file_size": 2821, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests;\n\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\PropertyInfo\\PropertyInfoCacheExtractor;\n\n/**\n * @author Kévin Dunglas \n */\nclass PropertyInfoCacheExtractorTest extends AbstractPropertyInfoExtractorTest\n{\n ", "suffix": " parent::testGetShortDescription();\n parent::testGetShortDescription();\n }\n\n public function testGetLongDescription()\n {\n parent::testGetLongDescription();\n parent::testGetLongDescription();\n }\n\n public function t", "middle": " protected function setUp(): void\n {\n parent::setUp();\n\n $this->propertyInfo = new PropertyInfoCacheExtractor($this->propertyInfo, new ArrayAdapter());\n }\n\n public function testGetShortDescription()\n {\n", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php", "language": "php", "file_size": 1608, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\n/**\n * @author Dmitrii Poddubnyi \n */\nclass ConstructorDummy\n{\n /** @var string */\n private $timezone;\n\n /** @var \\DateTimeInterface */\n private $date;\n\n /** @var int */\n privat", "suffix": "ion __construct(\\DateTimeZone $timezone, $date, $dateObject, \\DateTimeImmutable $dateTime, $mixed)\n {\n $this->timezone = $timezone->getName();\n $this->date = \\DateTimeImmutable::createFromFormat('U', $date);\n $this->dateTime = $date", "middle": "e $dateTime;\n\n /**\n * @param \\DateTimeZone $timezone\n * @param int $date Timestamp\n * @param \\DateTimeInterface $dateObject\n * @param mixed $mixed\n */\n public funct", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/ConstructorDummy.php", "language": "php", "file_size": 1027, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Groups;\n\n/**\n * @author Kévin Dunglas \n */\nclass Dummy extends ParentDummy\n{\n /**\n * @var string This is bar\n */\n private $bar;\n\n /**\n * Should be used.\n *\n * @var int Should be ignored\n */\n protected $baz;\n\n /**\n ", "suffix": " */\n public $parent;\n\n /**\n * @var \\DateTimeImmutable[]\n */\n #[Groups(['a', 'b'])]\n public $collection;\n\n /**\n * @var DummyCollection\n */\n public $collectionAsObject;\n\n /**\n * @var string[][]\n *", "middle": " * #@+\n * A short description ignoring template.\n *\n *\n * A long description...\n *\n * ...over several lines.\n *\n * @var \\DateTimeImmutable\n */\n public $bal;\n\n /**\n * @var ParentDummy\n", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/Dummy.php", "language": "php", "file_size": 4396, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\TraitUsage\\DummyUsedInTrait;\n\ntrait DummyTraitExternal\n{\n /**\n * @var string\n */\n private $propertyInExternalTraitPrimitiveType;\n\n /**\n * @var Dummy\n ", "suffix": " getMethodInExternalTraitPrimitiveType()\n {\n return 'value';\n }\n\n /**\n * @return Dummy\n */\n public function getMethodInExternalTraitObjectSameNamespace()\n {\n return new Dummy();\n }\n\n /**\n * @return DummyUsedIn", "middle": " */\n private $propertyInExternalTraitObjectSameNamespace;\n\n /**\n * @var DummyUsedInTrait\n */\n private $propertyInExternalTraitObjectDifferentNamespace;\n\n /**\n * @return string\n */\n public function", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/DummyTraitExternal.php", "language": "php", "file_size": 1141, "cut_index": 518, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\n/**\n * @author Baptiste Leduc \n */\nclass DummyUnionType\n{\n private const TYPE_A = 'a';\n private const TYPE_B = 'b';\n\n /**\n * @var string|int\n */\n public $a;\n\n /**\n * @var (string|int)[]\n */\n public $b;\n\n /**\n * @var arr", "suffix": "* @var array>\n */\n public $d;\n\n /**\n * @var (Dummy, (int | (\\Traversable)[])> | ParentDummy | null)\n */\n public $e;\n\n /**\n * @var self::TYPE_*|null\n */\n public $f;\n\n ", "middle": "ay\n */\n public $c;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/DummyUnionType.php", "language": "php", "file_size": 961, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\RootDummy\\RootDummyItem;\n\n/**\n * @author Kévin Dunglas \n */\nclass ParentDummy\n{\n /**\n * Short description.\n *\n * Long description.\n */\n public $foo;\n\n", "suffix": "@var \\SplFileInfo[]|resource\n */\n public $files;\n\n /**\n * @var static\n */\n public $propertyTypeStatic;\n\n /**\n * @var parent\n */\n public $parentAnnotationNoParent;\n\n /**\n * @var RootDummyItem[]\n */\n public $r", "middle": " /**\n * @var float\n */\n public $foo2;\n\n /**\n * @var callable\n */\n public $foo3;\n\n /**\n * @var void\n */\n public $foo4;\n\n /**\n * @var mixed\n */\n public $foo5;\n\n /**\n * ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/ParentDummy.php", "language": "php", "file_size": 1978, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\n/**\n * @author Teoh Han Hui \n */\nclass Php71Dummy\n{\n public function __construct(string $string, int $intPrivate)\n {\n }\n\n public function getFoo(): ?array\n {\n }\n\n public function getBuz(): void\n {\n }\n\n public function setBar(?int $bar)\n {\n }\n\n publi", "suffix": "ic function removeBaz(string $baz)\n {\n }\n}\n\nclass Php71DummyExtended extends Php71Dummy\n{\n}\n\nclass Php71DummyExtended2 extends Php71Dummy\n{\n public function __construct(int $intWithAccessor)\n {\n }\n\n public function getIntWithAccessor()\n ", "middle": "c function addBaz(string $baz)\n {\n }\n\n publ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/Php71Dummy.php", "language": "php", "file_size": 926, "cut_index": 606, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\n/**\n * @author Emil Masiakowski \n */\nclass PhpStanPseudoTypesDummy extends PseudoTypesDummy\n{\n /** @var negative-int */\n public $negativeInt;\n\n /** @var non-positive-int */\n publi", "suffix": " public $nonEmptyList;\n\n /** @var interface-string */\n public $interfaceString;\n\n /** @var scalar */\n public $scalar;\n\n /** @var array-key */\n public $arrayKey;\n\n /** @var number */\n public $number;\n\n /** @var numeric */\n pub", "middle": "c $nonPositiveInt;\n\n /** @var non-negative-int */\n public $nonNegativeInt;\n\n /** @var non-zero-int */\n public $nonZeroInt;\n\n /** @var non-empty-array */\n public $nonEmptyArray;\n\n /** @var non-empty-list */\n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/PhpStanPseudoTypesDummy.php", "language": "php", "file_size": 1060, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\n/**\n * @author Emil Masiakowski \n */\nclass PseudoTypesDummy\n{\n public const STRINGS = ['A' => 'A', 'B' => 'B'];\n public const INTEGERS = [1, 2];\n\n /** @var class-string */\n public $classString;\n\n /** @var class-string<\\stdCl", "suffix": "nEmptyLowercaseString;\n\n /** @var non-empty-string */\n public $nonEmptyString;\n\n /** @var numeric-string */\n public $numericString;\n\n /** @var trait-string */\n public $traitString;\n\n /** @var positive-int */\n public $positiveInt;\n\n ", "middle": "ass> */\n public $classStringGeneric;\n\n /** @var html-escaped-string */\n public $htmlEscapedString;\n\n /** @var lowercase-string */\n public $lowercaseString;\n\n /** @var non-empty-lowercase-string */\n public $no", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/PseudoTypesDummy.php", "language": "php", "file_size": 2063, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\nclass VoidNeverReturnTypeDummy\n{\n public string $normalProperty = 'value';\n\n /**\n * @return string\n */\n public function getNormalProperty(): string\n {\n return $this->normalProperty;\n }\n\n pu", "suffix": " should be ignored\n throw new \\Exception('Never returns');\n }\n\n public function setValue(): void\n {\n // This looks like a setter but has no parameters, should be ignored as accessor\n }\n\n public function setNeverValue(): never\n ", "middle": "blic function getVoidProperty(): void\n {\n // This looks like a getter but returns void, should be ignored\n }\n\n public function getNeverProperty(): never\n {\n // This looks like a getter but returns never,", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/VoidNeverReturnTypeDummy.php", "language": "php", "file_size": 1171, "cut_index": 518, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor;\n\nclass PromotedPropertiesWithDocBlock\n{\n /**\n * @param string $foo Just a foo property\n * @param string $qux A qux property\n */\n public function __construct(\n public string $foo,\n public int $", "suffix": " public string $baz,\n /** @var int $qux An overridden qux property */\n public string $qux = '',\n /**\n * A corge property.\n *\n * A detailed explanation of corge.\n */\n public string $corge = ", "middle": "bar,\n /** @var string $baz A baz property */\n", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/Extractor/PromotedPropertiesWithDocBlock.php", "language": "php", "file_size": 857, "cut_index": 529, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Yaml\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Component\\Yaml\\Yaml;\n\nclass YamlTestSuiteTest extends TestCase\n{\n private const SKIP = [\n // Test cases that are known to fail or are not supported\n '26DV',\n '27NA',\n '2AUY',\n '2G84-00',\n '2G84-01',\n '2JQS',\n '2LFX',\n '2SXE',\n ", "suffix": " '5WE3',\n '6BFJ',\n '6CA3',\n '6CK3',\n '6JWB',\n '6LVF',\n '6M2F',\n '6VJK',\n '6WLZ',\n '6XDY',\n '6ZKB',\n '735Y',\n '74H7',\n '7FWL',\n '7T8X',\n '7W2P',\n ", "middle": " '2XXW',\n '33X3',\n '35KP',\n '36F6',\n '4ABK',\n '4FJ6',\n '4JVG',\n '4RWC',\n '565N',\n '57H4',\n '5LLU',\n '5TRB',\n '5TYM',\n '5U3A',\n ", "meta": {"filepath": "src/Symfony/Component/Yaml/Tests/YamlTestSuiteTest.php", "language": "php", "file_size": 7173, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo;\n\n/**\n * Guesses the property's human readable description.\n *\n * @author Kévin Dunglas \n */\ninterface PropertyDescriptionExtractorInterface\n{\n /**\n * Gets the short description of the property.\n */\n ", "suffix": "n getShortDescription(string $class, string $property, array $context = []): ?string;\n\n /**\n * Gets the long description of the property.\n */\n public function getLongDescription(string $class, string $property, array $context = []): ?string;\n", "middle": "public functio", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/PropertyDescriptionExtractorInterface.php", "language": "php", "file_size": 785, "cut_index": 512, "middle_length": 14}} {"prefix": "tion\\PseudoTypes\\Generic;\nuse phpDocumentor\\Reflection\\PseudoTypes\\List_;\nuse phpDocumentor\\Reflection\\PseudoTypes\\Scalar;\nuse phpDocumentor\\Reflection\\Type as DocType;\nuse phpDocumentor\\Reflection\\Types\\Array_;\nuse phpDocumentor\\Reflection\\Types\\Collection;\nuse phpDocumentor\\Reflection\\Types\\Compound;\nuse phpDocumentor\\Reflection\\Types\\Integer;\nuse phpDocumentor\\Reflection\\Types\\Null_;\nuse phpDocumentor\\Reflection\\Types\\Nullable;\nuse phpDocumentor\\Reflection\\Types\\Scalar as LegacyScalar;\nuse phpDocumentor\\", "suffix": " autoloader here, so we don't need to trigger it inside the loop later.\nclass_exists(List_::class);\n\n/**\n * Transforms a php doc type to a {@link Type} instance.\n *\n * @author Kévin Dunglas \n * @author Guilhem N. \n */\n", "middle": "Reflection\\Types\\String_;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n// Workaround for phpdocumentor/type-resolver < 1.6\n// We trigger the", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Util/PhpDocTypeHelper.php", "language": "php", "file_size": 9733, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\nuse Symfony\\Component\\PropertyInfo\\Extractor\\ConstructorArgumentTypeExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\P", "suffix": "vin Dunglas \n */\nclass DummyExtractor implements PropertyListExtractorInterface, PropertyDescriptionExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface, PropertyInitializableExtractorInterface, Constructo", "middle": "ropertyInitializableExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * @author Ké", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/DummyExtractor.php", "language": "php", "file_size": 2043, "cut_index": 563, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\n/**\n * @author Martin Rademacher \n */\nclass InvalidDummy\n{\n /**\n * @var\n */\n public $pub;\n\n /**\n * @return\n */\n public static function getStat()\n {\n return 'stat';\n }", "suffix": " * Foo.\n *\n * @param\n */\n public function setFoo($foo)\n {\n }\n\n /**\n * Bar.\n *\n * @return\n */\n public function getBar()\n {\n return 'bar';\n }\n\n /**\n * @param $baz\n */\n public function setB", "middle": "\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/InvalidDummy.php", "language": "php", "file_size": 815, "cut_index": 522, "middle_length": 14}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\n/**\n * @author Kévin Dunglas \n */\nclass Php74Dummy\n{\n public Dummy $dummy;\n private ?bool $nullableBoolProp;\n /** @var string[] */\n private array $stringCollection;\n private ?int $nullableWithDefault = 1;\n public a", "suffix": "/\n public ?array $nullableTypedCollection = null;\n\n public function addStringCollection(string $string): void\n {\n }\n\n public function removeStringCollection(string $string): void\n {\n }\n\n public function addNullableTypedCollection(Du", "middle": "rray $collection = [];\n\n /** @var Dummy[]|null *", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/Php74Dummy.php", "language": "php", "file_size": 888, "cut_index": 547, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\nclass Php80Dummy\n{\n public mixed $mixedProperty;\n\n /**\n * @param string $promotedAndMutated\n * @param string $promotedWithDocComment\n * @param string $promotedWithDocCommentAndType\n * @param array $", "suffix": "t,\n /**\n * @var int\n */\n private mixed $promotedWithDocCommentAndType,\n private array $collection,\n )\n {\n }\n\n public function getFoo(): array|null\n {\n }\n\n public function setBar(int|null $bar)\n {", "middle": "collection\n */\n public function __construct(\n private mixed $promoted,\n private mixed $promotedAndMutated,\n /**\n * Comment without @var.\n */\n private mixed $promotedWithDocCommen", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/Php80Dummy.php", "language": "php", "file_size": 1326, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\TraitUsage;\n\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\DummyTraitExternal;\n\ntrait DummyTrait\n{\n use DummyTraitExternal;\n\n /**\n * @var string\n */\n", "suffix": " /**\n * @return string\n */\n public function getMethodInTraitPrimitiveType()\n {\n return 'value';\n }\n\n /**\n * @return DummyUsedInTrait\n */\n public function getMethodInTraitObjectSameNamespace()\n {\n return new", "middle": " private $propertyInTraitPrimitiveType;\n\n /**\n * @var DummyUsedInTrait\n */\n private $propertyInTraitObjectSameNamespace;\n\n /**\n * @var Dummy\n */\n private $propertyInTraitObjectDifferentNamespace;\n\n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/TraitUsage/DummyTrait.php", "language": "php", "file_size": 1173, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Extractor;\n\nclass ParentWithSelfDocBlock\n{\n /**\n * @var self\n */\n public $selfProp;\n\n /**\n * @return self\n */\n public function getSelfAccessor()\n {\n return $this;\n }\n\n /**\n * @param self $value\n ", "suffix": " * @return self\n */\n public function getSelfTraitAccessor()\n {\n return $this;\n }\n\n /**\n * @param self $value\n */\n public function setSelfTraitMutator($value)\n {\n }\n}\n\nclass ClassUsingTraitWithSelfDocBlock\n{\n us", "middle": " */\n public function setSelfMutator($value)\n {\n }\n}\n\nclass ChildWithSelfDocBlock extends ParentWithSelfDocBlock\n{\n}\n\ntrait TraitWithSelfDocBlock\n{\n /**\n * @var self\n */\n public $selfTraitProp;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/Extractor/ParentWithSelfDocBlock.php", "language": "php", "file_size": 1664, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo;\n\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Default {@see PropertyInfoExtractorInterface} implementation.\n *\n * @author Kévin Dunglas \n *\n * @final\n */\nclass PropertyInfoExtractor implements PropertyInfoExtractorInterface, PropertyInitializableExtractorInterface\n{\n /**\n * @param iterable $accessExtractors\n * @param iterable $initializableExtractors\n */\n public function __construct(\n private readonly iterab", "middle": "stExtractorInterface> $listExtractors\n * @param iterable $typeExtractors\n * @param iterable $descriptionExtractors\n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/PropertyInfoExtractor.php", "language": "php", "file_size": 3482, "cut_index": 614, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\ninterface IFace {}\n\nclass Clazz {}\n\nclass DummyGeneric\n{\n\n /**\n * @var Clazz\n */\n public $basicClass;\n\n /**\n * @var ?Clazz\n */\n public $nullableClass;\n\n /**\n * @var IFac", "suffix": "*/\n public $basicInterface;\n\n /**\n * @var ?IFace\n */\n public $nullableInterface;\n\n /**\n * @var Clazz\n */\n public $twoGenerics;\n\n /**\n * @var Clazz\n */\n public $threeGeneric", "middle": "e\n ", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/DummyGeneric.php", "language": "php", "file_size": 789, "cut_index": 514, "middle_length": 14}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\nclass SnakeCaseDummy\n{\n private string $snake_property;\n private string $snake_readOnly;\n private string $snake_method;\n\n public function getSnakeProperty()\n {\n return $this->snake_property;\n }\n\n pub", "suffix": " $this->snake_readOnly;\n }\n\n public function setSnakeProperty($snake_property)\n {\n $this->snake_property = $snake_property;\n }\n\n public function setSnake_method($snake_method)\n {\n $this->snake_method = $snake_method;\n }\n}", "middle": "lic function getSnakeReadOnly()\n {\n return", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/SnakeCaseDummy.php", "language": "php", "file_size": 832, "cut_index": 523, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo;\n\n/**\n * The write mutator defines how a property can be written.\n *\n * @author Joel Wurtz \n */\nfinal class PropertyWriteInfo\n{\n public const TYPE_NONE = 'none';\n public const TYPE_METHOD = 'method';\n public const TYPE_PROPERTY = 'property';\n public const TYPE_ADDER_AND_REMOVER = 'adder_and_remover';\n", "suffix": "o = null;\n private ?self $removerInfo = null;\n private array $errors = [];\n\n public function __construct(\n private readonly string $type = self::TYPE_NONE,\n private readonly ?string $name = null,\n private readonly ?string $vis", "middle": " public const TYPE_CONSTRUCTOR = 'constructor';\n\n public const VISIBILITY_PUBLIC = 'public';\n public const VISIBILITY_PROTECTED = 'protected';\n public const VISIBILITY_PRIVATE = 'private';\n\n private ?self $adderInf", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/PropertyWriteInfo.php", "language": "php", "file_size": 3068, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\nuse Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyInitializableExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyListE", "suffix": "r implements PropertyListExtractorInterface, PropertyDescriptionExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface, PropertyInitializableExtractorInterface\n{\n public function getShortDescription($class, $property, array", "middle": "xtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Not able to guess anything.\n *\n * @author Kévin Dunglas \n */\nclass NullExtracto", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/NullExtractor.php", "language": "php", "file_size": 2678, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyInfo\\Tests\\Fixtures;\n\n/**\n * PhpDocExtractor should fallback from property -> accessor -> mutator when looking up docblocks.\n *\n * @author Martin Rademacher \n */\nclass DockBlockFallback\n{\n /** @var string $pub */\n publi", "suffix": "n int\n */\n public function getProtAcc(): int\n {\n return $this->protAcc;\n }\n\n public function setProt($protAcc)\n {\n $this->protAcc = $protAcc;\n }\n\n public function getProtMut()\n {\n return $this->protMut;\n ", "middle": "c $pub = 'pub';\n\n protected $protAcc;\n protected $protMut;\n\n public function getPub()\n {\n return $this->pub;\n }\n\n public function setPub($pub)\n {\n $this->pub = $pub;\n }\n\n /**\n * @retur", "meta": {"filepath": "src/Symfony/Component/PropertyInfo/Tests/Fixtures/DockBlockFallback.php", "language": "php", "file_size": 1140, "cut_index": 518, "middle_length": 229}} {"prefix": "nt\\Ldap\\Adapter\\ExtLdap\\Adapter;\nuse Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\Collection;\nuse Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\Query;\nuse Symfony\\Component\\Ldap\\Entry;\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\nuse Symfony\\Component\\Ldap\\Exception\\NotBoundException;\nuse Symfony\\Component\\Ldap\\LdapInterface;\nuse Symfony\\Component\\Ldap\\Tests\\LdapTestCase;\n\n#[RequiresPhpExtension('ldap')]\n#[Group('integration')]\nclass AdapterTest extends LdapTestCase\n{\n public function testLdapEscape()\n {\n ", "suffix": " $h = @ldap_connect('ldap://'.getenv('LDAP_HOST').':'.getenv('LDAP_PORT'));\n @ldap_set_option($h, \\LDAP_OPT_PROTOCOL_VERSION, 3);\n\n if (!$h || !@ldap_bind($h)) {\n $this->markTestSkipped('No server is listening on LDAP_HOST:LD", "middle": " $ldap = new Adapter();\n\n $this->assertEquals('\\20foo\\3dbar\\0d(baz)*\\20', $ldap->escape(\" foo=bar\\r(baz)* \", '', LdapInterface::ESCAPE_DN));\n }\n\n #[Group('functional')]\n public function testSaslBind()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/AdapterTest.php", "language": "php", "file_size": 9773, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter\\Internal;\n\nuse Symfony\\Component\\VarExporter\\Exception\\ClassNotFoundException;\nuse Symfony\\Component\\VarExporter\\Exception\\NotInstantiableTypeException;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nclass Registry\n{\n public static array $reflectors = [];\n public static array $prototypes = [];\n public static array $factories = [];\n public static array $cloneable = [];\n public static array $instantiab", "suffix": "serialize_callback_func', __CLASS__.'::getClassReflector');\n\n try {\n foreach ($serializables as $k => $v) {\n $objects[$k] = unserialize($v);\n }\n } finally {\n ini_set('unserialize_callback_func',", "middle": "leWithoutConstructor = [];\n\n public function __construct(\n public readonly array $classes,\n ) {\n }\n\n public static function unserialize($objects, $serializables)\n {\n $unserializeCallback = ini_set('un", "meta": {"filepath": "src/Symfony/Component/VarExporter/Internal/Registry.php", "language": "php", "file_size": 5403, "cut_index": 716, "middle_length": 229}} {"prefix": "= FooUnitEnum::Bar;\n $this->assertSame($enum, DeepCloner::deepClone($enum));\n }\n\n public function testSimpleObject()\n {\n $obj = new \\stdClass();\n $obj->foo = 'bar';\n $obj->baz = 123;\n\n $clone = DeepCloner::deepClone($obj);\n\n $this->assertNotSame($obj, $clone);\n $this->assertEquals($obj, $clone);\n $this->assertSame('bar', $clone->foo);\n $this->assertSame(123, $clone->baz);\n }\n\n public function testNestedObjects()\n {\n $inn", "suffix": "ame($outer, $clone);\n $this->assertNotSame($inner, $clone->child);\n $this->assertSame('inner', $clone->child->value);\n $this->assertSame('outer', $clone->name);\n\n // Mutating original doesn't affect clone\n $inner->value =", "middle": "er = new \\stdClass();\n $inner->value = 'inner';\n\n $outer = new \\stdClass();\n $outer->child = $inner;\n $outer->name = 'outer';\n\n $clone = DeepCloner::deepClone($outer);\n\n $this->assertNotS", "meta": {"filepath": "src/Symfony/Component/VarExporter/Tests/DeepCloneTest.php", "language": "php", "file_size": 35494, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\VarExporter\\Hydrator;\nuse Symfony\\Component\\VarExporter\\Instantiator;\n\n#[Group('legacy')]\n#[IgnoreDeprecations]\nclass HydratorTest extends TestCase\n{\n public function testHydrate", "suffix": "is->assertSame(123, $object->getValue());\n $this->assertSame('hydrated', $object->status);\n }\n\n public function testHydrateInitializedReadonlyPropertyDifferentValueThrows()\n {\n $object = new HydratorTestClass(123);\n\n $this->ex", "middle": "InitializedReadonlyPropertySameValueIsIdempotent()\n {\n $object = new HydratorTestClass(123);\n\n Hydrator::hydrate($object, [\n 'value' => 123,\n 'status' => 'hydrated',\n ]);\n\n $th", "meta": {"filepath": "src/Symfony/Component/VarExporter/Tests/HydratorTest.php", "language": "php", "file_size": 3235, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\VarExporter\\Exception\\ClassNotFoundException;\nuse Symfony\\Component\\VarExporter\\Exception\\NotInstantiableTypeException;\nuse Symfony\\Co", "suffix": " $this->expectExceptionMessage('Class \"SomeNotExistingClass\" not found.');\n Instantiator::instantiate('SomeNotExistingClass');\n }\n\n #[DataProvider('provideFailingInstantiation')]\n public function testFailingInstantiation(string $class)", "middle": "mponent\\VarExporter\\Instantiator;\n\n#[Group('legacy')]\n#[IgnoreDeprecations]\nclass InstantiatorTest extends TestCase\n{\n public function testNotFoundClass()\n {\n $this->expectException(ClassNotFoundException::class);\n ", "meta": {"filepath": "src/Symfony/Component/VarExporter/Tests/InstantiatorTest.php", "language": "php", "file_size": 3207, "cut_index": 614, "middle_length": 229}} {"prefix": "t\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\VarExporter\\Exception\\LogicException;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\AbstractHooked;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\AsymmetricVisibility;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\ConcreteReadOnlyClass;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\F", "suffix": ";\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\StringMagicGetClass;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\TestClass;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\TestOverwritePropClass;\nuse Symfony\\Component", "middle": "inalPublicClass;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\Hooked;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\ReadOnlyClass;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\RegularClass", "meta": {"filepath": "src/Symfony/Component/VarExporter/Tests/LazyProxyTraitTest.php", "language": "php", "file_size": 14232, "cut_index": 921, "middle_length": 229}} {"prefix": "r;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\Hooked;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\LazyProxy\\Php82NullStandaloneReturnType;\n\nclass ProxyHelperTest extends TestCase\n{\n #[DataProvider('provideExportSignature')]\n public function testExportSignature(string $expected, \\ReflectionMethod $method)\n {\n $this->assertSame($expected, ProxyHelper::exportSignature($method));\n }\n\n public static function provideExportSignature()\n {\n $methods = (new \\Reflec", "suffix": "-(1 + $method->isAbstract()));\n $expected = str_replace(['.', ' . . . ', '\\'$a\\', \\'$a\\n\\', \"\\$a\\n\"'], [' . ', '...', '\\'$a\\', \"\\$a\\\\\\n\", \"\\$a\\n\"'], $expected);\n $expected = str_replace('Bar', '\\\\'.Bar::class, $expected);\n ", "middle": "tionClass(TestForProxyHelper::class))->getMethods();\n $source = file(__FILE__);\n\n foreach ($methods as $method) {\n $expected = substr($source[$method->getStartLine() - 1], $method->isAbstract() ? 13 : 4, ", "meta": {"filepath": "src/Symfony/Component/VarExporter/Tests/ProxyHelperTest.php", "language": "php", "file_size": 13451, "cut_index": 921, "middle_length": 229}} {"prefix": "erTestTrait;\nuse Symfony\\Component\\VarExporter\\Exception\\ClassNotFoundException;\nuse Symfony\\Component\\VarExporter\\Exception\\NotInstantiableTypeException;\nuse Symfony\\Component\\VarExporter\\Internal\\Registry;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\BackedProperty;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\FooReadonly;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\FooSerializable;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\FooUnitEnum;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\", "suffix": "xporter\\Tests\\Fixtures\\PrivateFCC;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\SleepUninitialized;\nuse Symfony\\Component\\VarExporter\\VarExporter;\n\n$errorHandler = set_error_handler(static function (int $errno, string $errstr) use (&$errorHandler) {\n ", "middle": "GoodNight;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\MySerializable;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\MyWakeup;\nuse Symfony\\Component\\VarExporter\\Tests\\Fixtures\\Php74Serializable;\nuse Symfony\\Component\\VarE", "meta": {"filepath": "src/Symfony/Component/VarExporter/Tests/VarExporterTest.php", "language": "php", "file_size": 13209, "cut_index": 921, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter\\Tests\\Fixtures;\n\nclass Php74Serializable implements \\Serializable\n{\n public $foo;\n\n public function __serialize(): array\n {\n return [$this->foo = new \\stdClass()];\n }\n\n public function __unserialize(array $data): void\n {\n [$this->foo] = $data;\n }\n\n public function __sleep(): array\n {\n ", "suffix": " public function __wakeup(): void\n {\n throw new \\BadMethodCallException();\n }\n\n public function serialize(): string\n {\n throw new \\BadMethodCallException();\n }\n\n public function unserialize($ser)\n {\n throw new \\Ba", "middle": " throw new \\BadMethodCallException();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/VarExporter/Tests/Fixtures/Php74Serializable.php", "language": "php", "file_size": 946, "cut_index": 606, "middle_length": 52}} {"prefix": "from_array([\n 'classes' => ['DateTime', 'DateTimeImmutable', 'DateTimeZone', 'DateInterval', 'DatePeriod'],\n 'objectMeta' => [\n [0, -1],\n [1, -2],\n [2, -3],\n [3, -4],\n [4, -7],\n [1, -5],\n [3, -6],\n ],\n 'prepared' => [0, 1, 2, 3, 4],\n 'mask' => [true, true, true, true, true],\n 'states' => [\n 1 => [\n 0,\n ['date' => '1970-01-01 00:00:00.000000', 'timezone_type' => 1, 'timezone' => '+00:00'],\n ],\n [\n ", "suffix": " [\n 3,\n ['y' => 0, 'm' => 0, 'd' => 7, 'h' => 0, 'i' => 0, 's' => 0, 'f' => 0.0, 'invert' => 0, 'days' => 7, 'from_string' => false],\n ],\n [\n 5,\n ['date' => '2009-10-11 00:00:00.000000', 'timezon", "middle": " 1,\n ['date' => '1970-01-01 00:00:00.000000', 'timezone_type' => 1, 'timezone' => '+00:00'],\n ],\n [\n 2,\n ['timezone_type' => 3, 'timezone' => 'Europe/Paris'],\n ],\n ", "meta": {"filepath": "src/Symfony/Component/VarExporter/Tests/Fixtures/datetime.php", "language": "php", "file_size": 1508, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess;\n\n/**\n * Entry point of the PropertyAccess component.\n *\n * @author Bernhard Schussek \n */\nfinal class PropertyAccess\n{\n /**\n * Creates a property accessor with the default configuration.\n */\n public static function createPropertyAccessor(): PropertyAccessor\n {\n return self::crea", "suffix": " }\n\n public static function createPropertyAccessorBuilder(): PropertyAccessorBuilder\n {\n return new PropertyAccessorBuilder();\n }\n\n /**\n * This class cannot be instantiated.\n */\n private function __construct()\n {\n }\n}", "middle": "tePropertyAccessorBuilder()->getPropertyAccessor();\n", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/PropertyAccess.php", "language": "php", "file_size": 915, "cut_index": 606, "middle_length": 52}} {"prefix": "nt\\PropertyAccess\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\UninitializedPropertyException;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor;\nuse Symfony\\Component\\PropertyInfo\\PropertyReadInfo;\nuse Symfony\\Component\\PropertyInfo\\PropertyReadInfoExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyWriteInfo;\nuse Symfony\\Component\\PropertyInfo\\PropertyWriteInfoExtractorInterface;\n\n/**\n * Default implementation of {@link PropertyAccessorInterfa", "suffix": "Allow none of the magic methods */\n public const DISALLOW_MAGIC_METHODS = ReflectionExtractor::DISALLOW_MAGIC_METHODS;\n /** @var int Allow magic __get methods */\n public const MAGIC_GET = ReflectionExtractor::ALLOW_MAGIC_GET;\n /** @var int Allo", "middle": "ce}.\n *\n * @author Bernhard Schussek \n * @author Kévin Dunglas \n * @author Nicolas Grekas \n */\nclass PropertyAccessor implements PropertyAccessorInterface\n{\n /** @var int ", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/PropertyAccessor.php", "language": "php", "file_size": 30847, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyReadInfoExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyWriteInfoExtractorInterface;\n\n/**\n * A configurable builder to create a PropertyAccessor.\n *\n * @author Jérémie Augustin \n */\nclass PropertyAccessorBuilder\n{\n private int $magicMethods = PropertyAccessor::MAGIC_GET | PropertyAccessor::MAGIC_S", "suffix": "$readInfoExtractor = null;\n private ?PropertyWriteInfoExtractorInterface $writeInfoExtractor = null;\n\n /**\n * Enables the use of all magic methods by the PropertyAccessor.\n *\n * @return $this\n */\n public function enableMagicMethods", "middle": "ET;\n private bool $throwExceptionOnInvalidIndex = false;\n private bool $throwExceptionOnInvalidPropertyPath = true;\n private ?CacheItemPoolInterface $cacheItemPool = null;\n private ?PropertyReadInfoExtractorInterface ", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php", "language": "php", "file_size": 7618, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess;\n\n/**\n * Writes and reads values to/from an object/array graph.\n *\n * @author Bernhard Schussek \n */\ninterface PropertyAccessorInterface\n{\n /**\n * Sets the value at the end of the property path of the object graph.\n *\n * Example:\n *\n * use Symfony\\Component\\PropertyAccess\\PropertyAcce", "suffix": "en');\n *\n * This method first tries to find a public setter for each property in the\n * path. The name of the setter must be the camel-cased property name\n * prefixed with \"set\".\n *\n * If the setter does not exist, this method tries", "middle": "ss;\n *\n * $propertyAccessor = PropertyAccess::createPropertyAccessor();\n *\n * echo $propertyAccessor->setValue($object, 'child.name', 'Fabien');\n * // equals echo $object->getChild()->setName('Fabi", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php", "language": "php", "file_size": 3980, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess;\n\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidPropertyPathException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\OutOfBoundsException;\n\n/**\n * Default implementation of {@link PropertyPathInterface}.\n *\n * @author Bernhard Schussek \n *\n * @implements \\IteratorAggregate\n */\nclass PropertyPath implements \\IteratorAg", "suffix": "\n * @var list\n */\n private array $elements = [];\n\n /**\n * The number of elements in the property path.\n */\n private int $length;\n\n /**\n * Contains a Boolean for each property in $elements denoting whether this\n *", "middle": "gregate, PropertyPathInterface\n{\n /**\n * Character used for separating between plural and singular of an element.\n */\n public const SINGULAR_SEPARATOR = '|';\n\n /**\n * The elements of the property path.\n *", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/PropertyPath.php", "language": "php", "file_size": 7226, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess;\n\nuse Symfony\\Component\\PropertyAccess\\Exception\\OutOfBoundsException;\n\n/**\n * @author Bernhard Schussek \n */\nclass PropertyPathBuilder\n{\n private array $elements = [];\n private array $isIndex = [];\n\n public function __construct(PropertyPathInterface|string|null $path = null)\n {\n if (null !== $path) {\n $this->append($path);\n }\n }\n\n /**\n * Appends a (sub-) path to t", "suffix": "PropertyPathInterface|string $path, int $offset = 0, int $length = 0): void\n {\n if (\\is_string($path)) {\n $path = new PropertyPath($path);\n }\n\n if (0 === $length) {\n $end = $path->getLength();\n } else {\n", "middle": "he current path.\n *\n * @param int $offset The offset where the appended piece starts in $path\n * @param int $length The length of the appended piece; if 0, the full path is appended\n */\n public function append(", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/PropertyPathBuilder.php", "language": "php", "file_size": 8432, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess;\n\n/**\n * A sequence of property names or array indices.\n *\n * @author Bernhard Schussek \n *\n * @extends \\Traversable\n */\ninterface PropertyPathInterface extends \\Traversable, \\Stringable\n{\n /**\n * Returns the string representation of the pro", "suffix": "property path.\n *\n * The parent property path is the one that contains the same items as\n * this one except for the last one.\n *\n * If this property path only contains one item, null is returned.\n */\n public function getParent():", "middle": "perty path.\n */\n public function __toString(): string;\n\n /**\n * Returns the length of the property path, i.e. the number of elements.\n */\n public function getLength(): int;\n\n /**\n * Returns the parent ", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/PropertyPathInterface.php", "language": "php", "file_size": 2162, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess;\n\n/**\n * Traverses a property path and provides additional methods to find out\n * information about the current element.\n *\n * @author Bernhard Schussek \n *\n * @extends \\ArrayIterator\n */\nclass PropertyPathIterator extends \\ArrayIterator implements PropertyPathIterat", "suffix": " protected PropertyPathInterface $path,\n ) {\n parent::__construct($path->getElements());\n }\n\n public function isIndex(): bool\n {\n return $this->path->isIndex($this->key());\n }\n\n public function isProperty(): bool\n {\n ", "middle": "orInterface\n{\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/PropertyPathIterator.php", "language": "php", "file_size": 949, "cut_index": 582, "middle_length": 52}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Exception;\n\n/**\n * Thrown when a type of given value does not match an expected type.\n *\n * @author Farhad Safarov \n */\nclass InvalidTypeException extends InvalidArgumentException\n{\n public function __construct(\n public readonly string $expectedType,\n public", "suffix": "y string $propertyPath,\n ?\\Throwable $previous = null,\n ) {\n parent::__construct(\n \\sprintf('Expected argument of type \"%s\", \"%s\" given at property path \"%s\".', $expectedType, 'NULL' === $actualType ? 'null' : $actualType, $prop", "middle": " readonly string $actualType,\n public readonl", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Exception/InvalidTypeException.php", "language": "php", "file_size": 953, "cut_index": 582, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Exception;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyPathInterface;\n\n/**\n * Thrown when a value does not match an expected type.\n *\n * @author Bernhard Schussek \n */\nclass UnexpectedTypeException extends RuntimeE", "suffix": "construct(mixed $value, PropertyPathInterface $path, int $pathIndex)\n {\n $message = \\sprintf(\n 'PropertyAccessor requires a graph of objects or arrays to operate on, '.\n 'but it found type \"%s\" while trying to traverse path ", "middle": "xception\n{\n /**\n * @param mixed $value The unexpected value found while traversing property path\n * @param int $pathIndex The property path index when the unexpected value was found\n */\n public function __", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.php", "language": "php", "file_size": 1187, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchIndexException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessor;\n\nabstract class Pr", "suffix": "ected static function getContainer(array $array);\n\n public static function getValidPropertyPaths(): array\n {\n return [\n [static::getContainer(['firstName' => 'Bernhard']), '[firstName]', 'Bernhard'],\n [static::getContaine", "middle": "opertyAccessorArrayAccessTestCase extends TestCase\n{\n protected PropertyAccessor $propertyAccessor;\n\n protected function setUp(): void\n {\n $this->propertyAccessor = new PropertyAccessor();\n }\n\n abstract prot", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorArrayAccessTestCase.php", "language": "php", "file_size": 3042, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessor;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorBuilder;\nuse Symfony\\Component\\PropertyInfo\\PropertyReadInfoExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyWriteInfoExt", "suffix": " public function testEnableMagicGet()\n {\n $this->assertSame($this->builder, $this->builder->enableMagicGet());\n $this->assertTrue($this->builder->isMagicGetEnabled());\n }\n\n public function testDisableMagicGet()\n {\n $this->a", "middle": "ractorInterface;\n\nclass PropertyAccessorBuilderTest extends TestCase\n{\n protected PropertyAccessorBuilder $builder;\n\n protected function setUp(): void\n {\n $this->builder = new PropertyAccessorBuilder();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorBuilderTest.php", "language": "php", "file_size": 4343, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests;\n\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException;\n\nclass PropertyAccessorCollectionTestCase_Car\n{\n private $axes;\n\n public function __construct($axes = null)\n {\n $this->axes = $axes;\n }\n\n // In the test, use a name that StringUtil can't uniquely singularify\n public function addAxis($axis)\n {\n $this->axes[] = $axis;\n }\n\n public function removeAxis($axis)\n {\n ", "suffix": "urn $this->axes;\n }\n}\n\nclass PropertyAccessorCollectionTestCase_CarOnlyAdder\n{\n public function addAxis($axis)\n {\n }\n\n public function getAxes()\n {\n }\n}\n\nclass PropertyAccessorCollectionTestCase_CarOnlyRemover\n{\n public function rem", "middle": " foreach ($this->axes as $key => $value) {\n if ($value === $axis) {\n unset($this->axes[$key]);\n\n return;\n }\n }\n }\n\n public function getAxes()\n {\n ret", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTestCase.php", "language": "php", "file_size": 6016, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Filesystem\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass FilesystemTestCase extends TestCase\n{\n protected array $longPathNamesWindows = [];\n protected Filesystem $filesystem;\n protected string $workspace;\n\n private int $umask;\n\n private static ?bool $linkOnWindows = null;\n private static ?bool $symlinkOnWindows = null;\n\n public static function setUpBeforeClass(): void\n {\n ", "suffix": "ink($originFile, $targetFile)) {\n $report = error_get_last();\n if (\\is_array($report) && str_contains($report['message'], 'error code(1314)')) {\n self::$linkOnWindows = false;\n }\n }", "middle": " if ('\\\\' === \\DIRECTORY_SEPARATOR) {\n self::$linkOnWindows = true;\n $originFile = tempnam(sys_get_temp_dir(), 'li');\n $targetFile = tempnam(sys_get_temp_dir(), 'li');\n if (true !== @l", "meta": {"filepath": "src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php", "language": "php", "file_size": 5109, "cut_index": 716, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter;\n\ninterface LazyObjectInterface\n{\n /**\n * Returns whether the object is initialized.\n *\n * @param bool $partial Whether partially initialized objects should be considered as initialized\n */\n public function isLazyObjectInitialize", "suffix": "es initialization of a lazy object and returns it.\n */\n public function initializeLazyObject(): object;\n\n /**\n * @return bool Returns false when the object cannot be reset, ie when it's not a lazy object\n */\n public function resetLazyO", "middle": "d(bool $partial = false): bool;\n\n /**\n * Forc", "meta": {"filepath": "src/Symfony/Component/VarExporter/LazyObjectInterface.php", "language": "php", "file_size": 854, "cut_index": 529, "middle_length": 52}} {"prefix": "ny\\Component\\PropertyAccess\\Tests\\Fixtures\\TestClassTypedProperty;\nuse Symfony\\Component\\PropertyAccess\\Tests\\Fixtures\\TestClassTypeErrorInsideCall;\nuse Symfony\\Component\\PropertyAccess\\Tests\\Fixtures\\TestIgnoreVoidAccessor;\nuse Symfony\\Component\\PropertyAccess\\Tests\\Fixtures\\TestPublicPropertyDynamicallyCreated;\nuse Symfony\\Component\\PropertyAccess\\Tests\\Fixtures\\TestPublicPropertyGetterOnObject;\nuse Symfony\\Component\\PropertyAccess\\Tests\\Fixtures\\TestPublicPropertyGetterOnObjectMagicGet;\nuse Symfony\\Compo", "suffix": "cess\\Tests\\Fixtures\\UninitializedObjectProperty;\nuse Symfony\\Component\\PropertyAccess\\Tests\\Fixtures\\UninitializedPrivateProperty;\nuse Symfony\\Component\\PropertyAccess\\Tests\\Fixtures\\UninitializedProperty;\n\nclass PropertyAccessorTest extends TestCase\n{\n ", "middle": "nent\\PropertyAccess\\Tests\\Fixtures\\TestSingularAndPluralProps;\nuse Symfony\\Component\\PropertyAccess\\Tests\\Fixtures\\Ticket5775Object;\nuse Symfony\\Component\\PropertyAccess\\Tests\\Fixtures\\TypeHinted;\nuse Symfony\\Component\\PropertyAc", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php", "language": "php", "file_size": 47066, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\nuse Symfony\\Component\\PropertyAccess\\PropertyPathBuilder;\n\n/**\n * @author Bernhard Schussek \n */\nclass PropertyPathBuilderTest extends TestCase\n{\n private const PREFIX = 'old1[old2].old3[old4][old5].old6';\n\n private PropertyPathBuilder $builder;\n\n protected function ", "suffix": "ilder->getPropertyPath());\n }\n\n public function testCreateCopyPath()\n {\n $this->assertEquals(new PropertyPath(self::PREFIX), $this->builder->getPropertyPath());\n }\n\n public function testAppendIndex()\n {\n $this->builder->appe", "middle": "setUp(): void\n {\n $this->builder = new PropertyPathBuilder(new PropertyPath(self::PREFIX));\n }\n\n public function testCreateEmpty()\n {\n $builder = new PropertyPathBuilder();\n\n $this->assertNull($bu", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/PropertyPathBuilderTest.php", "language": "php", "file_size": 8574, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidPropertyPathException;\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\n\nclass PropertyPathTest extends TestCase\n{\n public function testToString()\n {\n $path = new PropertyPath('reference.traversable[index].property');\n\n $this->assertEquals('reference.traversable[index].pr", "suffix": " function testDotCannotBePresentAtTheBeginning()\n {\n $this->expectException(InvalidPropertyPathException::class);\n new PropertyPath('.property');\n }\n\n public static function providePathsContainingUnexpectedCharacters()\n {\n ", "middle": "operty', $path->__toString());\n }\n\n public function testDotIsRequiredBeforeProperty()\n {\n $this->expectException(InvalidPropertyPathException::class);\n new PropertyPath('[index]property');\n }\n\n public", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/PropertyPathTest.php", "language": "php", "file_size": 7222, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests;\n\nclass TestPluralAdderRemoverAndSetterSameSingularAndPlural\n{\n private array $aircraft = [];\n\n public function getAircraft()\n {\n return $this->aircraft;\n }\n\n public function setAircraft(array $aircraft)\n", "suffix": "$this->aircraft = ['plane'];\n }\n\n public function addAircraft($aircraft)\n {\n $this->aircraft[] = $aircraft;\n }\n\n public function removeAircraft($aircraft)\n {\n $this->aircraft = array_diff($this->aircraft, [$aircraft]);\n }", "middle": " {\n ", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/TestPluralAdderRemoverAndSetterSameSingularAndPlural.php", "language": "php", "file_size": 786, "cut_index": 513, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests\\Fixtures;\n\n/**\n * This class is a hand written simplified version of PHP native `ArrayObject`\n * class, to show that it behaves differently than the PHP native implementation.\n */\nclass NonTraversableArrayObject implements \\ArrayAccess, ", "suffix": "set, $this->array);\n }\n\n public function offsetGet($offset): mixed\n {\n return $this->array[$offset];\n }\n\n public function offsetSet($offset, $value): void\n {\n if (null === $offset) {\n $this->array[] = $value;\n ", "middle": "\\Countable\n{\n private $array;\n\n public function __construct(?array $array = null)\n {\n $this->array = $array ?: [];\n }\n\n public function offsetExists($offset): bool\n {\n return \\array_key_exists($off", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/Fixtures/NonTraversableArrayObject.php", "language": "php", "file_size": 1444, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests\\Fixtures;\n\nclass TestClass\n{\n public $publicProperty;\n protected $protectedProperty;\n private $privateProperty;\n\n private $publicAccessor;\n private $publicMethodAccessor;\n private $publicGetSetter;\n private $publicAccessorWithDefaultValue;\n private $publicAccessorWithRequiredAndDefaultValue;\n privat", "suffix": " {\n $this->publicProperty = $value;\n $this->publicAccessor = $value;\n $this->publicMethodAccessor = $value;\n $this->publicGetSetter = $value;\n $this->publicAccessorWithDefaultValue = $value;\n $this->publicAccessor", "middle": "e $publicAccessorWithMoreRequiredParameters;\n private $publicIsAccessor;\n private $publicHasAccessor;\n private $publicCanAccessor;\n private $publicGetter;\n private $date;\n\n public function __construct($value)\n ", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/Fixtures/TestClass.php", "language": "php", "file_size": 4609, "cut_index": 614, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests\\Fixtures;\n\nclass TestClassMagicCall\n{\n private $magicCallProperty;\n\n public function __construct($value)\n {\n $this->magicCallProperty = $value;\n }\n\n public function __call(string $method, array $args)\n {\n if ('getMagicCallProperty' === $met", "suffix": " }\n\n if ('getConstantMagicCallProperty' === $method) {\n return 'constant value';\n }\n\n if ('setMagicCallProperty' === $method) {\n $this->magicCallProperty = reset($args);\n }\n\n return null;\n ", "middle": "hod) {\n return $this->magicCallProperty;\n", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/Fixtures/TestClassMagicCall.php", "language": "php", "file_size": 871, "cut_index": 559, "middle_length": 52}} {"prefix": "\\CollectionInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\QueryInterface;\nuse Symfony\\Component\\Ldap\\Entry;\nuse Symfony\\Component\\Ldap\\Exception\\ConnectionException;\nuse Symfony\\Component\\Ldap\\LdapInterface;\nuse Symfony\\Component\\Ldap\\Security\\LdapUser;\nuse Symfony\\Component\\Ldap\\Security\\LdapUserProvider;\nuse Symfony\\Component\\Ldap\\Security\\MemberOfRoles;\nuse Symfony\\Component\\Ldap\\Security\\RoleFetcherInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Se", "suffix": "on(ConnectionException::class);\n\n $ldap = $this->createMock(LdapInterface::class);\n $ldap\n ->expects($this->once())\n ->method('bind')\n ->willThrowException(new ConnectionException())\n ;\n\n $provid", "middle": "curity\\Core\\Exception\\UserNotFoundException;\n\n#[RequiresPhpExtension('ldap')]\nclass LdapUserProviderTest extends TestCase\n{\n public function testLoadUserByIdentifierFailsIfCantConnectToLdap()\n {\n $this->expectExcepti", "meta": {"filepath": "src/Symfony/Component/Ldap/Tests/Security/LdapUserProviderTest.php", "language": "php", "file_size": 14926, "cut_index": 921, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests\\Fixtures;\n\nclass TestIgnoreVoidAccessor\n{\n public bool $setValue = false;\n public bool $setterValue = false;\n public bool $neverValue = false;\n public bool $normalValue = false;\n\n public function setValue(): void\n {\n $this->setValue = true;\n }\n\n public function se", "suffix": "e = true;\n }\n\n public function setNeverValue(): never\n {\n // Simulate a setter that does not return anything and exits\n $this->neverValue = true;\n exit;\n }\n\n public function setUndefinedValue(): void\n {\n // Thi", "middle": "tSetterValue(): void\n {\n $this->setterValu", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/Fixtures/TestIgnoreVoidAccessor.php", "language": "php", "file_size": 964, "cut_index": 582, "middle_length": 52}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests\\Fixtures;\n\n/**\n * Notice we don't have getter/setter for emails\n * because we count on adder/remover.\n */\nclass TestSingularAndPluralProps\n{\n /** @var string|null */\n private $email;\n\n /** @var array */\n private $emails = [];\n\n public function getEmail(): ?string\n {\n re", "suffix": "il(?string $email)\n {\n $this->email = $email;\n }\n\n public function getEmails(): array\n {\n return $this->emails;\n }\n\n public function addEmail(string $email)\n {\n $this->emails[] = $email;\n }\n\n public function ", "middle": "turn $this->email;\n }\n\n public function setEma", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/Fixtures/TestSingularAndPluralProps.php", "language": "php", "file_size": 992, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Security;\n\nuse Symfony\\Component\\Ldap\\Entry;\nuse Symfony\\Component\\Security\\Core\\User\\EquatableInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * @author Robin Chalas ", "suffix": "sitiveParameter] private ?string $password,\n private array $roles = [],\n private array $extraFields = [],\n ) {\n if (!$identifier) {\n throw new \\InvalidArgumentException('The username cannot be empty.');\n }\n }\n\n ", "middle": "\n *\n * @final\n */\nclass LdapUser implements UserInterface, PasswordAuthenticatedUserInterface, EquatableInterface\n{\n public function __construct(\n private Entry $entry,\n private string $identifier,\n #[\\Sen", "meta": {"filepath": "src/Symfony/Component/Ldap/Security/LdapUser.php", "language": "php", "file_size": 2355, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Security;\n\nuse Symfony\\Component\\Ldap\\Entry;\n\nfinal class MemberOfRoles implements RoleFetcherInterface\n{\n /**\n * @param array $mapping\n */\n public function __construct(\n private readonly array $mapping,\n priv", "suffix": "try): array\n {\n if (!$entry->hasAttribute($this->attributeName)) {\n return [];\n }\n\n $roles = [];\n foreach ($entry->getAttribute($this->attributeName) as $group) {\n $groupName = $this->getGroupName($group", "middle": "ate readonly string $attributeName = 'ismemberof',\n private readonly string $groupNameRegex = '/^CN=(?P[^,]+),ou.*$/i',\n ) {\n }\n\n /**\n * @return string[]\n */\n public function fetchRoles(Entry $en", "meta": {"filepath": "src/Symfony/Component/Ldap/Security/MemberOfRoles.php", "language": "php", "file_size": 1411, "cut_index": 524, "middle_length": 229}} {"prefix": "written only when the\n * $overwriteNewerFiles option is set to true.\n *\n * @throws FileNotFoundException When originFile doesn't exist\n * @throws IOException When copy fails\n */\n public function copy(string $originFile, string $targetFile, bool $overwriteNewerFiles = false): void\n {\n $originIsLocal = stream_is_local($originFile) || 0 === stripos($originFile, 'file://');\n if ($originIsLocal && !is_file($originFile)) {\n throw new FileNotFoundExcepti", "suffix": "($originFile, \\PHP_URL_HOST) && is_file($targetFile)) {\n $doCopy = filemtime($originFile) > filemtime($targetFile);\n }\n\n if ($doCopy) {\n // https://bugs.php.net/64634\n if (!$source = self::box('fopen', $origin", "middle": "on(\\sprintf('Failed to copy \"%s\" because file does not exist.', $originFile), 0, null, $originFile);\n }\n\n $this->mkdir(\\dirname($targetFile));\n\n $doCopy = true;\n if (!$overwriteNewerFiles && !parse_url", "meta": {"filepath": "src/Symfony/Component/Filesystem/Filesystem.php", "language": "php", "file_size": 30520, "cut_index": 1331, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Filesystem\\Exception;\n\n/**\n * Exception class thrown when a file couldn't be found.\n *\n * @author Fabien Potencier \n * @author Christian Gärtner \n */\nclass FileNotFoundException extends IOException\n{\n public function __construct(?string $message = null, ", "suffix": " $path = null)\n {\n if (null === $message) {\n if (null === $path) {\n $message = 'File could not be found.';\n } else {\n $message = \\sprintf('File \"%s\" could not be found.', $path);\n }\n ", "middle": "int $code = 0, ?\\Throwable $previous = null, ?string", "meta": {"filepath": "src/Symfony/Component/Filesystem/Exception/FileNotFoundException.php", "language": "php", "file_size": 973, "cut_index": 582, "middle_length": 52}} {"prefix": "th = $this->workspace.\\DIRECTORY_SEPARATOR.'copy_target_file';\n\n file_put_contents($sourceFilePath, 'SOURCE FILE');\n file_put_contents($targetFilePath, 'TARGET FILE');\n\n // make sure both files have the same modification time\n $modificationTime = time() - 1000;\n touch($sourceFilePath, $modificationTime);\n touch($targetFilePath, $modificationTime);\n\n $this->filesystem->copy($sourceFilePath, $targetFilePath);\n\n $this->assertFileExists($targetFilePath);\n ", "suffix": " $targetFilePath = $this->workspace.\\DIRECTORY_SEPARATOR.'copy_target_file';\n\n file_put_contents($sourceFilePath, 'SOURCE FILE');\n file_put_contents($targetFilePath, 'TARGET FILE');\n\n // make sure both files have the same modifica", "middle": " $this->assertStringEqualsFile($targetFilePath, 'TARGET FILE');\n }\n\n public function testCopyOverridesExistingFileIfForced()\n {\n $sourceFilePath = $this->workspace.\\DIRECTORY_SEPARATOR.'copy_source_file';\n ", "meta": {"filepath": "src/Symfony/Component/Filesystem/Tests/FilesystemTest.php", "language": "php", "file_size": 68214, "cut_index": 3790, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Filesystem\\Tests\\Fixtures\\MockStream;\n\n/**\n * Mock stream class to be used with stream_wrapper_register.\n * stream_wrapper_register('mock', 'Symfony\\Component\\Filesystem\\Tests\\Fixtures\\MockStream\\MockStream').\n */\nclass MockStream\n{\n public $context;\n\n ", "suffix": ")\n * @param int $options Holds additional flags set by the streams API\n * @param string|null $opened_path If the path is opened successfully, and STREAM_USE_PATH is set in options,\n * opened_path shou", "middle": " /**\n * Opens file or URL.\n *\n * @param string $path Specifies the URL that was passed to the original function\n * @param string $mode The mode used to open the file, as detailed for fopen(", "meta": {"filepath": "src/Symfony/Component/Filesystem/Tests/Fixtures/MockStream/MockStream.php", "language": "php", "file_size": 1476, "cut_index": 524, "middle_length": 229}} {"prefix": "se Symfony\\Component\\VarExporter\\Exception\\NotInstantiableTypeException;\n\n/**\n * Deep-clones PHP values while preserving copy-on-write benefits for strings and arrays.\n *\n * Unlike unserialize(serialize()), this approach does not reallocate strings and scalar-only\n * arrays, allowing PHP's copy-on-write mechanism to share memory for these values.\n *\n * DeepCloner instances are serializable: the serialized form is a pure array; it contains\n * only scalars and nested arrays, no objects. This makes it suitable", "suffix": "than serialize($value) itself.\n *\n * The heavy lifting is delegated to deepclone_to_array() / deepclone_from_array(), which\n * come from either the native `deepclone` PHP extension (for a 4-5x speedup) or the\n * `symfony/polyfill-deepclone` package when th", "middle": " for encoding with\n * json_encode(), var_export(), or any serializer that handles plain PHP arrays.\n * The format uses a compact representation that deduplicates class and property names,\n * typically producing a payload smaller ", "meta": {"filepath": "src/Symfony/Component/VarExporter/DeepCloner.php", "language": "php", "file_size": 10422, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter;\n\nuse Symfony\\Component\\VarExporter\\Exception\\ClassNotFoundException;\nuse Symfony\\Component\\VarExporter\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\VarExporter\\Exception\\NotInstantiableTypeException;\n\ntrigger_deprecation('symfony/var-exporter', '8.1', 'The \"%s\" class is deprecated, use \"deepclone_hydrate()\" from the deepclone ", "suffix": "m the deepclone extension instead\n */\nfinal class Instantiator\n{\n /**\n * Creates an object and sets its properties without calling its constructor nor any other methods.\n *\n * @see Hydrator::hydrate() for examples\n *\n * @template T o", "middle": "extension instead.', Instantiator::class);\n\n/**\n * A utility class to create objects without calling their constructor.\n *\n * @author Nicolas Grekas \n *\n * @deprecated since Symfony 8.1, use deepclone_hydrate() fro", "meta": {"filepath": "src/Symfony/Component/VarExporter/Instantiator.php", "language": "php", "file_size": 3138, "cut_index": 614, "middle_length": 229}} {"prefix": "rray $interfaces = []): string\n {\n if (!class_exists($class?->name ?? \\stdClass::class, false)) {\n throw new LogicException(\\sprintf('Cannot generate lazy proxy: \"%s\" is not a class.', $class->name));\n }\n if ($class?->isFinal()) {\n throw new LogicException(\\sprintf('Cannot generate lazy proxy: class \"%s\" is final.', $class->name));\n }\n\n if ($class && !$class->isAbstract()) {\n $parent = $class;\n do {\n $extendsInt", "suffix": "e lazy proxy: leverage native lazy objects instead for class \"%s\".', $class->name));\n }\n }\n\n $propertyScopes = $class ? LazyObjectRegistry::$propertyScopes[$class->name] ??= LazyObjectRegistry::getPropertyScopes($class->name) : [];", "middle": "ernalClass = $parent->isInternal();\n } while (!$extendsInternalClass && $parent = $parent->getParentClass());\n\n if (!$extendsInternalClass) {\n throw new LogicException(\\sprintf('Cannot generat", "meta": {"filepath": "src/Symfony/Component/VarExporter/ProxyHelper.php", "language": "php", "file_size": 19477, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter\\Internal;\n\nuse Symfony\\Component\\Serializer\\Attribute\\Ignore;\nuse Symfony\\Component\\VarExporter\\Internal\\LazyObjectRegistry as Registry;\n\n/**\n * @internal\n */\ntrait LazyDecoratorTrait\n{\n #[Ignore]\n private readonly LazyObjectState $lazyObjectState;\n\n /**\n * Creates a lazy-loading decorator.\n *\n * @param \\Closure()", "suffix": "e ? $instance::class : static::class;\n\n if (self::class === $class && \\defined($class.'::LAZY_OBJECT_PROPERTY_SCOPES')) {\n Registry::$propertyScopes[$class] ??= $class::LAZY_OBJECT_PROPERTY_SCOPES;\n }\n\n $instance ??= (Regist", "middle": ":object $initializer Returns the proxied object\n * @param static|null $instance\n */\n public static function createLazyProxy(\\Closure $initializer, ?object $instance = null): static\n {\n $class = $instanc", "meta": {"filepath": "src/Symfony/Component/VarExporter/Internal/LazyDecoratorTrait.php", "language": "php", "file_size": 4701, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter\\Internal;\n\n/**\n * Keeps the state of lazy objects.\n *\n * As a micro-optimization, this class uses no type declarations.\n *\n * @internal\n */\nclass LazyObjectState\n{\n public ?\\Closure $initializer = null;\n public object $realInstance;\n ", "suffix": " unset($this->cloneInstance);\n }\n } elseif (isset($this->realInstance)) {\n $this->realInstance = clone $this->realInstance;\n }\n }\n\n public function __get($name)\n {\n if ('realInstance' !== $name) {\n ", "middle": " public object $cloneInstance;\n\n public function __clone()\n {\n if (isset($this->cloneInstance)) {\n try {\n $this->realInstance = $this->cloneInstance;\n } finally {\n ", "meta": {"filepath": "src/Symfony/Component/VarExporter/Internal/LazyObjectState.php", "language": "php", "file_size": 1184, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Tests\\Adapter\\ExtLdap;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\Connection;\nuse Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\EntryManager;\nuse Symfony\\Component\\Ldap\\Entry;\nuse Symfony\\Component\\Ldap\\Exception\\LdapEx", "suffix": "Message('Entry \"$$$$$$\" malformed, could not parse RDN.');\n\n $entry = new Entry('$$$$$$');\n $entryManager = new EntryManager(new Connection());\n $entryManager->move($entry, 'a');\n }\n\n public function testGetResources()\n {\n ", "middle": "ception;\nuse Symfony\\Component\\Ldap\\Exception\\NotBoundException;\n\nclass EntryManagerTest extends TestCase\n{\n public function testMove()\n {\n $this->expectException(LdapException::class);\n $this->expectException", "meta": {"filepath": "src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/EntryManagerTest.php", "language": "php", "file_size": 2473, "cut_index": 563, "middle_length": 229}} {"prefix": "nt\\Ldap\\Adapter\\CollectionInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\Adapter;\nuse Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\UpdateOperation;\nuse Symfony\\Component\\Ldap\\Entry;\nuse Symfony\\Component\\Ldap\\Exception\\LdapException;\nuse Symfony\\Component\\Ldap\\Exception\\NotBoundException;\nuse Symfony\\Component\\Ldap\\Exception\\UpdateOperationException;\nuse Symfony\\Component\\Ldap\\Tests\\LdapTestCase;\n\n#[RequiresPhpExtension('ldap')]\n#[Group('integration')]\nclass LdapManagerTest extends LdapTestCase\n{\n priva", "suffix": "roup('functional')]\n public function testLdapAddAndRemove()\n {\n $this->executeSearchQuery(1);\n\n $entry = new Entry('cn=Charles Sarrazin,dc=symfony,dc=com', [\n 'sn' => ['csarrazi'],\n 'objectclass' => [\n ", "middle": "te Adapter $adapter;\n\n protected function setUp(): void\n {\n $this->adapter = new Adapter($this->getLdapConfig());\n $this->adapter->getConnection()->bind('cn=admin,dc=symfony,dc=com', 'symfony');\n }\n\n #[G", "meta": {"filepath": "src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/LdapManagerTest.php", "language": "php", "file_size": 12110, "cut_index": 921, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests\\Fixtures;\n\nclass TestClassMagicGet\n{\n private $magicProperty;\n\n public $publicProperty;\n\n public function __construct($value)\n {\n $this->magicProperty = $value;\n }\n\n public function __set(string $prope", "suffix": " return $this->magicProperty;\n }\n\n if ('constantMagicProperty' === $property) {\n return 'constant value';\n }\n }\n\n public function __isset(string $property): bool\n {\n return \\in_array($property, ['magic", "middle": "rty, $value): void\n {\n if ('magicProperty' === $property) {\n $this->magicProperty = $value;\n }\n }\n\n public function __get(string $property)\n {\n if ('magicProperty' === $property) {\n ", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/Fixtures/TestClassMagicGet.php", "language": "php", "file_size": 1050, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Security;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Ldap\\Exception\\InvalidCredentialsException;\nuse Symfony\\Component\\Ldap\\Exception\\InvalidSearchCredentialsException;\nuse Symfony\\Component\\Ldap\\LdapInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadC", "suffix": "tEvent;\n\n/**\n * Verifies password credentials using an LDAP service whenever the\n * LdapBadge is attached to the Security passport.\n *\n * @author Wouter de Jong \n */\nclass CheckLdapCredentialsListener implements EventSubscriberInterface\n", "middle": "redentialsException;\nuse Symfony\\Component\\Security\\Core\\Exception\\LogicException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\PasswordCredentials;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPasspor", "meta": {"filepath": "src/Symfony/Component/Ldap/Security/CheckLdapCredentialsListener.php", "language": "php", "file_size": 4711, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Security;\n\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\BadgeInterface;\n\n/**\n * A badge indicating that the credentials should be checked using LDAP.\n *\n * This badge must be used together with PasswordCredentials.\n *\n * @author Wouter de Jong queryString = $queryString ?? '';\n }\n\n public function get", "middle": "outer@wouterj.nl>\n *\n * @final\n */\nclass LdapBadge implements BadgeInterface\n{\n private bool $resolved = false;\n private string $queryString;\n\n public function __construct(\n private string $ldapServiceId,\n ", "meta": {"filepath": "src/Symfony/Component/Ldap/Security/LdapBadge.php", "language": "php", "file_size": 1633, "cut_index": 537, "middle_length": 229}} {"prefix": " \n * @author Thomas Schulz \n * @author Théo Fidry \n */\nfinal class Path\n{\n /**\n * The number of buffer entries that triggers a cleanup operation.\n */\n private const CLEANUP_THRESHOLD = 1250;\n\n /**\n * The buffer size after the cleanup operation.\n */\n private const CLEANUP_SIZE = 1000;\n\n /**\n * Buffers input/output of {@link canonicalize()}.\n *\n * @var array\n */\n private static array", "suffix": "ning of relative paths are not removed.\n * On Windows, backward slashes are replaced by forward slashes (\"/\").\n *\n * ```php\n * echo Path::canonicalize(\"../css/./style.css\");\n * // => ../css/style.css\n * ```\n *\n * This method", "middle": " $buffer = [];\n\n private static int $bufferSize = 0;\n\n /**\n * Canonicalizes the given path.\n *\n * During normalization, all \".\" and \"..\" segments are removed as far as\n * possible. \"..\" segments at the begin", "meta": {"filepath": "src/Symfony/Component/Filesystem/Path.php", "language": "php", "file_size": 26306, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Filesystem\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Filesystem\\Exception\\FileNotFoundException;\nuse Symfony\\Component\\Filesystem\\Exception\\IOException;\n\n/**\n * Test class for Filesystem.\n */\nclass ExceptionTest extends TestCase\n{\n pub", "suffix": " $e = new FileNotFoundException(null, 0, null, '/foo');\n $this->assertEquals('/foo', $e->getPath());\n $this->assertEquals('File \"/foo\" could not be found.', $e->getMessage(), 'A message should be generated.');\n }\n\n public function tes", "middle": "lic function testGetPath()\n {\n $e = new IOException('', 0, null, '/foo');\n $this->assertEquals('/foo', $e->getPath(), 'The pass should be returned.');\n }\n\n public function testGeneratedMessage()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Filesystem/Tests/ExceptionTest.php", "language": "php", "file_size": 1422, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter;\n\ntrigger_deprecation('symfony/var-exporter', '8.1', 'The \"%s\" class is deprecated, use \"deepclone_hydrate()\" from the deepclone extension instead.', Hydrator::class);\n\n/**\n * Utility class to hydrate the properties of an object.\n *\n * @author Nicolas Grekas \n *\n * @deprecated since Symfony 8.1, use deepclone_hydrate() ", "suffix": "object->propertyName property\n * Hydrator::hydrate($object, ['propertyName' => $propertyValue]);\n *\n * // Sets a private property defined on its parent Bar class:\n * Hydrator::hydrate($object, [\"\\0Bar\\0privateBarProperty\" => $pr", "middle": "from the deepclone extension instead\n */\nfinal class Hydrator\n{\n /**\n * Sets the properties of an object, including private and protected ones.\n *\n * For example:\n *\n * // Sets the public or protected $", "meta": {"filepath": "src/Symfony/Component/VarExporter/Hydrator.php", "language": "php", "file_size": 3562, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter;\n\nuse Symfony\\Component\\VarExporter\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\VarExporter\\Exception\\NotInstantiableTypeException;\nuse Symfony\\Component\\VarExporter\\Internal\\Exporter;\n\n/**\n * Exports serializable PHP values to PHP code.\n *\n * VarExporter allows serializing PH", "suffix": "th unserialize().\n *\n * @author Nicolas Grekas \n */\nfinal class VarExporter\n{\n /**\n * Exports a serializable PHP value to PHP code.\n *\n * @param bool &$isStaticValue Set to true after execution if ", "middle": "P data structures to plain PHP code (like var_export())\n * while preserving all the semantics associated with serialize() (unlike var_export()).\n *\n * By leveraging OPcache, the generated PHP code is faster than doing the same wi", "meta": {"filepath": "src/Symfony/Component/VarExporter/VarExporter.php", "language": "php", "file_size": 2482, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter\\Internal;\n\n/**\n * Stores the state of lazy objects and caches related reflection information.\n *\n * As a micro-optimization, this class uses no type declarations.\n *\n * @internal\n */\nclass LazyObjectRegistry\n{\n public const PROPERTY_HAS_HOOKS = 1;\n public const PROPERTY_NOT_BY_REF = 2;\n\n /**\n * @var array\n */\n public static array $classReflectors = [];\n\n /**\n * @var array\n */\n public static array $classAccessors = [];\n\n /**\n * @var array\n */\n public static array $parentGet = [];\n\n public static array", "middle": "s-string, array>\n */\n public static array $defaultProperties = [];\n\n /**\n * @var array>\n */\n public static array $classResetters = [];\n\n /**\n * @var array\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Tests\\Security;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Ldap\\Security\\LdapAuthenticator;\nuse Symfony\\Component\\Ldap\\Security\\LdapBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterf", "suffix": "rt\\Passport;\n\nclass LdapAuthenticatorTest extends TestCase\n{\n public function testAuthenticate()\n {\n $decorated = $this->createMock(AuthenticatorInterface::class);\n $passport = new Passport(new UserBadge('test'), new PasswordCredentials", "middle": "ace;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\PasswordCredentials;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passpo", "meta": {"filepath": "src/Symfony/Component/Ldap/Tests/Security/LdapAuthenticatorTest.php", "language": "php", "file_size": 1539, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Security;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component", "suffix": "mponent\\Security\\Http\\EntryPoint\\Exception\\NotAnEntryPointException;\n\n/**\n * This class decorates internal authenticators to add the LDAP integration.\n *\n * In your own authenticators, it is recommended to directly use the\n * LdapBadge in the authenticate(", "middle": "\\Security\\Http\\Authenticator\\InteractiveAuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\EntryPoint\\AuthenticationEntryPointInterface;\nuse Symfony\\Co", "meta": {"filepath": "src/Symfony/Component/Ldap/Security/LdapAuthenticator.php", "language": "php", "file_size": 3438, "cut_index": 614, "middle_length": 229}} {"prefix": "tyle.css'];\n yield ['./../css/style.css', '../css/style.css'];\n yield ['.././css/style.css', '../css/style.css'];\n yield ['../../css/style.css', '../../css/style.css'];\n yield ['', ''];\n yield ['.', ''];\n yield ['..', '..'];\n yield ['./..', '..'];\n yield ['../.', '..'];\n yield ['../..', '../..'];\n\n // absolute paths (forward slash, UNIX)\n yield ['/css/style.css', '/css/style.css'];\n yield ['/css/./style.css', '/css/style.css", "suffix": "['/../css/style.css', '/css/style.css'];\n yield ['/./../css/style.css', '/css/style.css'];\n yield ['/.././css/style.css', '/css/style.css'];\n yield ['/../../css/style.css', '/css/style.css'];\n\n // absolute paths (stream, UNIX)\n ", "middle": "'];\n yield ['/css/../style.css', '/style.css'];\n yield ['/css/./../style.css', '/style.css'];\n yield ['/css/.././style.css', '/style.css'];\n yield ['/./css/style.css', '/css/style.css'];\n yield ", "meta": {"filepath": "src/Symfony/Component/Filesystem/Tests/PathTest.php", "language": "php", "file_size": 51750, "cut_index": 2151, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass LdapTestCase extends TestCase\n{\n protected function getLdapConfig()\n {\n $h = @ldap_connect('ldap://'.getenv('LDAP_HOST').':'.getenv('LDAP_PORT'));\n @ldap_set_option($h, \\LDAP_O", "suffix": "bind($h)) {\n $this->markTestSkipped('No server is listening on LDAP_HOST:LDAP_PORT');\n }\n\n ldap_unbind($h);\n\n return [\n 'host' => getenv('LDAP_HOST'),\n 'port' => getenv('LDAP_PORT'),\n ];\n }\n}\n", "middle": "PT_PROTOCOL_VERSION, 3);\n\n if (!$h || !@ldap_", "meta": {"filepath": "src/Symfony/Component/Ldap/Tests/LdapTestCase.php", "language": "php", "file_size": 822, "cut_index": 514, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Ldap\\Security;\n\nuse Symfony\\Component\\Ldap\\Entry;\nuse Symfony\\Component\\Ldap\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Ldap\\Exception\\InvalidCredentialsException;\nuse Symfony\\Component\\Ldap\\Exception\\InvalidSearchCredentialsException;\nuse Symfony\\Component\\Ldap\\LdapInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UnsupportedUserException;\nuse Symfony\\Compone", "suffix": "e\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\n\n/**\n * LdapUserProvider is a simple user provider on top of LDAP.\n *\n * @author Grégoire Pineau \n * @author Charles Sarrazin \n * @", "middle": "nt\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordUpgraderInterface;\nuse Symfony\\Component\\Security\\Cor", "meta": {"filepath": "src/Symfony/Component/Ldap/Security/LdapUserProvider.php", "language": "php", "file_size": 6048, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\VarExporter\\Internal;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nclass Exporter\n{\n public static function export($value, $indent = '')\n {\n switch (true) {\n case \\is_int($value) || \\is_float($value): return var_export($value, true);\n case [] === $value: return '[]';\n case false ", "suffix": "ltrim(var_export($value, true), '\\\\');\n }\n\n $subIndent = $indent.' ';\n\n if (\\is_string($value)) {\n $code = \\sprintf(\"'%s'\", addcslashes($value, \"'\\\\\"));\n\n $code = preg_replace_callback(\"/((?:[\\\\0\\\\r\\\\n]|\\u{202A", "middle": "=== $value: return 'false';\n case true === $value: return 'true';\n case null === $value: return 'null';\n case '' === $value: return \"''\";\n case $value instanceof \\UnitEnum: return '\\\\'.", "meta": {"filepath": "src/Symfony/Component/VarExporter/Internal/Exporter.php", "language": "php", "file_size": 4627, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Filesystem\\Exception;\n\n/**\n * Exception class thrown when a filesystem operation failure happens.\n *\n * @author Romain Neutron \n * @author Christian Gärtner \n * @author Fabien Potencier \n */\nclass IOException extends \\RuntimeException implements IOExceptionInterf", "suffix": "g $message,\n int $code = 0,\n ?\\Throwable $previous = null,\n private ?string $path = null,\n ) {\n parent::__construct($message, $code, $previous);\n }\n\n public function getPath(): ?string\n {\n return $this->path;\n", "middle": "ace\n{\n public function __construct(\n strin", "meta": {"filepath": "src/Symfony/Component/Filesystem/Exception/IOException.php", "language": "php", "file_size": 923, "cut_index": 606, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests\\Fixtures;\n\n/**\n * @author Kévin Dunglas \n */\nclass TypeHinted\n{\n private $date;\n\n /**\n * @var \\Countable\n */\n private $countable;\n\n public function setDate(\\DateTimeImmutable $date)\n {\n $this->date = $date;\n }\n\n public function setDateMutable(\\DateTime $date)\n ", "suffix": "ction getDate()\n {\n return $this->date;\n }\n\n public function getCountable(): \\Countable\n {\n return $this->countable;\n }\n\n public function setCountable(\\Countable $countable)\n {\n $this->countable = $countable;\n }", "middle": "{\n $this->date = $date;\n }\n\n public fun", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/Fixtures/TypeHinted.php", "language": "php", "file_size": 918, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n", "suffix": "f (!stream_is_local($resource)) {\n throw new InvalidResourceException(\\sprintf('This is not a local file \"%s\".', $resource));\n }\n\n if (!file_exists($resource)) {\n throw new NotFoundResourceException(\\sprintf('File \"%s\" n", "middle": " * @author Abdellatif Ait boudad \n */\nabstract class FileLoader extends ArrayLoader\n{\n public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue\n {\n i", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/FileLoader.php", "language": "php", "file_size": 1728, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n", "suffix": "MessageCatalogue\n {\n if (!stream_is_local($resource.'.dat')) {\n throw new InvalidResourceException(\\sprintf('This is not a local file \"%s\".', $resource));\n }\n\n if (!file_exists($resource.'.dat')) {\n throw new N", "middle": " * IcuResFileLoader loads translations from a resource bundle.\n *\n * @author stealth35\n */\nclass IcuDatFileLoader extends IcuResFileLoader\n{\n public function load(mixed $resource, string $locale, string $domain = 'messages'): ", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/IcuDatFileLoader.php", "language": "php", "file_size": 1831, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Config\\Resource\\DirectoryResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * IcuResFileLoader l", "suffix": " {\n if (!stream_is_local($resource)) {\n throw new InvalidResourceException(\\sprintf('This is not a local file \"%s\".', $resource));\n }\n\n if (!is_dir($resource)) {\n throw new NotFoundResourceException(\\sprintf('Fil", "middle": "oads translations from a resource bundle.\n *\n * @author stealth35\n */\nclass IcuResFileLoader implements LoaderInterface\n{\n public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/IcuResFileLoader.php", "language": "php", "file_size": 2793, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\n\n/**\n * JsonFileLoader loads translations from an json file.\n *\n * @author singles\n */\nclass JsonFileLoader extends FileLoader\n{\n protected function loadResource(string $resourc", "suffix": "dResourceException('Error parsing JSON: '.$this->getJSONErrorMessage($errorCode));\n }\n }\n\n return $messages;\n }\n\n /**\n * Translates JSON_ERROR_* constant into meaningful message.\n */\n private function getJSONErrorM", "middle": "e): array\n {\n $messages = [];\n if ($data = file_get_contents($resource)) {\n $messages = json_decode($data, true);\n\n if (0 < $errorCode = json_last_error()) {\n throw new Invali", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/JsonFileLoader.php", "language": "php", "file_size": 1529, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * LoaderInterface is the interface implemented by all translation loaders.\n *\n * @author Fabien ", "suffix": "nterface\n{\n /**\n * Loads a locale.\n *\n * @throws NotFoundResourceException when the resource cannot be found\n * @throws InvalidResourceException when the resource cannot be loaded\n */\n public function load(mixed $resource, string", "middle": "Potencier \n */\ninterface LoaderI", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/LoaderInterface.php", "language": "php", "file_size": 950, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\n\n/**\n * @copyright Copyright (c) 2010, Union of RAD http://union-of-rad.org (http://lithify.me/)\n */\nclass MoFileLoader extends FileLoader\n{\n /**\n * Magic used for validating the format of an MO file as well as\n * detecting if the machine used to", "suffix": "file was big endian.\n */\n public const MO_BIG_ENDIAN_MAGIC = 0xDE120495;\n\n /**\n * The size of the header of an MO file in bytes.\n */\n public const MO_HEADER_SIZE = 28;\n\n /**\n * Parses machine object (MO) format, independent of t", "middle": " create that file was little endian.\n */\n public const MO_LITTLE_ENDIAN_MAGIC = 0x950412DE;\n\n /**\n * Magic used for validating the format of an MO file as well as\n * detecting if the machine used to create that ", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/MoFileLoader.php", "language": "php", "file_size": 4267, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\n/**\n * PhpFileLoader loads translations from PHP files returning an array of translations.\n *\n * @author Fabien Potencier \n */\nclass PhpFileLoader extends FileLoader\n{\n private static ?array $cache = [];", "suffix": "API, ['cli', 'phpdbg', 'embed'], true) || filter_var(\\ini_get('opcache.enable_cli'), \\FILTER_VALIDATE_BOOL))) {\n self::$cache = null;\n }\n\n if (null === self::$cache) {\n return require $resource;\n }\n\n return", "middle": "\n\n protected function loadResource(string $resource): array\n {\n if ([] === self::$cache && \\function_exists('opcache_invalidate') && filter_var(\\ini_get('opcache.enable'), \\FILTER_VALIDATE_BOOL) && (!\\in_array(\\PHP_S", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/PhpFileLoader.php", "language": "php", "file_size": 1054, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\n/**\n * @copyright Copyright (c) 2010, Union of RAD https://github.com/UnionOfRAD/lithium\n * @copyright Copyright (c) 2012, Clemens Tolboom\n */\nclass PoFileLoader extends FileLoader\n{\n /**\n * Parses portable object (PO) format.\n *\n * From https://www.gnu.org/software/gettext/manual/gettext.html#PO-Files\n * we should be able to parse files having:\n *\n * white-space\n * # translator-comments\n *", "suffix": " * #| msgctxt previous-context\n * #| msgid previous-untranslated-string\n * msgctxt context\n *\n * #| msgid previous-untranslated-string-singular\n * #| msgid_plural previous-untranslated-string-plural\n * msgid untranslated-string-sing", "middle": " #. extracted-comments\n * #: reference...\n * #, flag...\n * #| msgid previous-untranslated-string\n * msgid untranslated-string\n * msgstr translated-string\n *\n * extra or different lines are:\n *\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/PoFileLoader.php", "language": "php", "file_size": 5114, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Config\\Util\\XmlUtils;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\Excep", "suffix": "ents LoaderInterface\n{\n public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue\n {\n if (!class_exists(XmlUtils::class)) {\n throw new RuntimeException('Loading translations from the QT for", "middle": "tion\\RuntimeException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * QtFileLoader loads translations from QT Translations XML files.\n *\n * @author Benjamin Eberlei \n */\nclass QtFileLoader implem", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/QtFileLoader.php", "language": "php", "file_size": 2769, "cut_index": 563, "middle_length": 229}} {"prefix": "ymfony\\Component\\Config\\Util\\Exception\\XmlParsingException;\nuse Symfony\\Component\\Config\\Util\\XmlUtils;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\Exception\\RuntimeException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\nuse Symfony\\Component\\Translation\\Util\\XliffUtils;\n\n/**\n * XliffFileLoader loads translation", "suffix": "ue\n {\n if (!class_exists(XmlUtils::class)) {\n throw new RuntimeException('Loading translations from the Xliff format requires the Symfony Config component.');\n }\n\n if (!$this->isXmlString($resource)) {\n if (!st", "middle": "s from XLIFF files.\n *\n * @author Fabien Potencier \n */\nclass XliffFileLoader implements LoaderInterface\n{\n public function load(mixed $resource, string $locale, string $domain = 'messages'): MessageCatalog", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/XliffFileLoader.php", "language": "php", "file_size": 15863, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\LogicException;\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Component\\Yaml\\Parser as YamlParser;\nuse Symfony\\Compon", "suffix": "on loadResource(string $resource): array\n {\n if (!isset($this->yamlParser)) {\n if (!class_exists(YamlParser::class)) {\n throw new LogicException('Loading translations from the YAML format requires the Symfony Yaml compon", "middle": "ent\\Yaml\\Yaml;\n\n/**\n * YamlFileLoader loads translations from Yaml files.\n *\n * @author Fabien Potencier \n */\nclass YamlFileLoader extends FileLoader\n{\n private YamlParser $yamlParser;\n\n protected functi", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/YamlFileLoader.php", "language": "php", "file_size": 1604, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Reader;\n\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * TranslationReader reads translation messages from translation files.\n *\n * @author Michel Salib", "suffix": " /**\n * Adds a loader to the translation extractor.\n *\n * @param string $format The format of the loader\n */\n public function addLoader(string $format, LoaderInterface $loader): void\n {\n $this->loaders[$format] = $loader;\n ", "middle": " \n */\nclass TranslationReader implements TranslationReaderInterface\n{\n /**\n * Loaders used for import.\n *\n * @var array\n */\n private array $loaders = [];\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Reader/TranslationReader.php", "language": "php", "file_size": 1734, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Catalogue;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Exception\\LogicException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\n\n/**\n * Base catalogues binary operation class.\n *\n * A catalogue binary operation performs operation on\n * source (the left argument) and target (the right argument) catalogues.\n *\n ", "suffix": "= 'all';\n\n protected MessageCatalogue $result;\n\n /**\n * This array stores 'all', 'new' and 'obsolete' messages for all valid domains.\n *\n * The data structure of this array is as follows:\n *\n * [\n * 'domain 1' => [", "middle": "* @author Jean-François Simon \n */\nabstract class AbstractOperation implements OperationInterface\n{\n public const OBSOLETE_BATCH = 'obsolete';\n public const NEW_BATCH = 'new';\n public const ALL_BATCH ", "meta": {"filepath": "src/Symfony/Component/Translation/Catalogue/AbstractOperation.php", "language": "php", "file_size": 5944, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Catalogue;\n\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\n\n/**\n * Merge operation between two catalogues as follows:\n * all = source ∪ target = {x: x ∈ source ∨ x ∈ target}\n * new = all ∖ source = {x: x ∈ target ∧ x ∉ source}\n * obsolete = source ∖ all = {x: x ∈ source ", "suffix": "ocessDomain(string $domain): void\n {\n $this->messages[$domain] = [\n 'all' => [],\n 'new' => [],\n 'obsolete' => [],\n ];\n $intlDomain = $domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX;\n\n fo", "middle": "∧ x ∉ source ∧ x ∉ target} = ∅\n * Basically, the result contains messages from both catalogues.\n *\n * @author Jean-François Simon \n */\nclass MergeOperation extends AbstractOperation\n{\n protected function pr", "meta": {"filepath": "src/Symfony/Component/Translation/Catalogue/MergeOperation.php", "language": "php", "file_size": 2664, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Catalogue;\n\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\n\n/**\n * Represents an operation on catalogue(s).\n *\n * An instance of this interface performs an operation on one or more catalogues and\n * stores intermediate and final results of the o", "suffix": "ration is performed.\n *\n * New Messages: also called 'new' (new = all ∖ source = {x: x ∈ all ∧ x ∉ source}).\n *\n * Obsolete Messages: also called 'obsolete' (obsolete = source ∖ all = {x: x ∈ source ∧ x ∉ all}).\n *\n * Result: also called 'result', is the r", "middle": "peration.\n *\n * The first catalogue in its argument(s) is called the 'source catalogue' or 'source' and\n * the following results are stored:\n *\n * Messages: also called 'all', are valid messages for the given domain after the ope", "meta": {"filepath": "src/Symfony/Component/Translation/Catalogue/OperationInterface.php", "language": "php", "file_size": 1857, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Catalogue;\n\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\n\n/**\n * Target operation between two catalogues:\n * intersection = source ∩ target = {x: x ∈ source ∧ x ∈ target}\n * all = intersection ∪ (target ∖ intersection) = target\n * new = all ∖ source = {x: x ∈ target ∧ x ∉ source}\n * obsolete = source ∖ all = source ∖ t", "suffix": "function processDomain(string $domain): void\n {\n $this->messages[$domain] = [\n 'all' => [],\n 'new' => [],\n 'obsolete' => [],\n ];\n $intlDomain = $domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX;\n", "middle": "arget = {x: x ∈ source ∧ x ∉ target}\n * Basically, the result contains messages from the target catalogue.\n *\n * @author Michael Lee \n */\nclass TargetOperation extends AbstractOperation\n{\n protected ", "meta": {"filepath": "src/Symfony/Component/Translation/Catalogue/TargetOperation.php", "language": "php", "file_size": 3709, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nreturn [\n 'az_Cyrl' => 'root',\n 'bs_Cyrl' => 'root',\n 'en_150' => 'en_001',\n 'en_AG' => 'en_001',\n 'en_AI' => 'en_001',\n 'en_AT' => 'en_150',\n 'en_AU' => 'en_001',\n 'en_BB' => 'en_001',\n 'en_BE' => 'en_150',\n 'en_BM' => 'en_001',\n 'en_BS' => 'en_001',\n 'en_BW' => 'en_001',\n 'en_BZ' => 'en_001',\n 'en_CC' => 'en_001',\n 'en_CH' => '", "suffix": "01',\n 'en_EE' => 'en_150',\n 'en_ER' => 'en_001',\n 'en_ES' => 'en_150',\n 'en_FI' => 'en_150',\n 'en_FJ' => 'en_001',\n 'en_FK' => 'en_001',\n 'en_FM' => 'en_001',\n 'en_FR' => 'en_150',\n 'en_GB' => 'en_001',\n 'en_GD' => 'en_001',\n ", "middle": "en_150',\n 'en_CK' => 'en_001',\n 'en_CM' => 'en_001',\n 'en_CX' => 'en_001',\n 'en_CY' => 'en_001',\n 'en_CZ' => 'en_150',\n 'en_DE' => 'en_150',\n 'en_DG' => 'en_001',\n 'en_DK' => 'en_150',\n 'en_DM' => 'en_0", "meta": {"filepath": "src/Symfony/Component/Translation/Resources/data/parents.php", "language": "php", "file_size": 4162, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nif ('cli' !== \\PHP_SAPI) {\n throw new Exception('This script must be run from the command line.');\n}\n\n$usageInstructions = <<\n */\n#[AsCommand(name: 'lint:translations', description: 'Lint translations files syntax and o", "middle": "ymfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Translation\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\nuse Symf", "meta": {"filepath": "src/Symfony/Component/Translation/Command/TranslationLintCommand.php", "language": "php", "file_size": 4484, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nus", "suffix": "tion;\nuse Symfony\\Component\\Translation\\Reader\\TranslationReaderInterface;\nuse Symfony\\Component\\Translation\\Writer\\TranslationWriterInterface;\n\n/**\n * @author Mathieu Santostefano \n */\n#[AsCommand(name: 'translation:pull', de", "middle": "e Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Translation\\Catalogue\\TargetOperation;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\Provider\\TranslationProviderCollec", "meta": {"filepath": "src/Symfony/Component/Translation/Command/TranslationPullCommand.php", "language": "php", "file_size": 7745, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\Inp", "suffix": "nProviderCollection;\nuse Symfony\\Component\\Translation\\Reader\\TranslationReaderInterface;\nuse Symfony\\Component\\Translation\\TranslatorBag;\n\n/**\n * @author Mathieu Santostefano \n */\n#[AsCommand(name: 'translation:push', descrip", "middle": "utOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Translation\\Provider\\FilteringProvider;\nuse Symfony\\Component\\Translation\\Provider\\Translatio", "meta": {"filepath": "src/Symfony/Component/Translation/Command/TranslationPushCommand.php", "language": "php", "file_size": 7670, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Command;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\nuse Symfony\\Component\\Translation\\TranslatorBag;\n\n/**\n * @internal\n */\ntrait TranslationTrait\n{\n private function readLocalTranslations(array $locales, array $", "suffix": " $this->reader->read($path, $catalogue);\n }\n\n if ($domains) {\n foreach ($domains as $domain) {\n $bag->addCatalogue($this->filterCatalogue($catalogue, $domain));\n }\n ", "middle": "domains, array $transPaths): TranslatorBag\n {\n $bag = new TranslatorBag();\n\n foreach ($locales as $locale) {\n $catalogue = new MessageCatalogue($locale);\n foreach ($transPaths as $path) {\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Command/TranslationTrait.php", "language": "php", "file_size": 2389, "cut_index": 563, "middle_length": 229}} {"prefix": "ponent\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Translation\\Exception\\", "suffix": "halas@gmail.com>\n * @author Javier Eguiluz \n */\n#[AsCommand(name: 'lint:xliff', description: 'Lint an XLIFF file and outputs encountered errors')]\nclass XliffLintCommand extends Command\n{\n private string $format;\n private bo", "middle": "InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Util\\XliffUtils;\n\n/**\n * Validates XLIFF files syntax and outputs encountered errors.\n *\n * @author Grégoire Pineau \n * @author Robin Chalas 0]);\n $collector->trans('bar_ru');\n $collector->trans('bar_ru', ['foo' => 'bar']);\n\n $expectedMessages = [];\n $expectedMessages[] = [\n 'id' => 'foo',\n 'translation' => 'foo (en)',\n 'lo", "middle": "ectMessages()\n {\n $collector = $this->createCollector();\n $collector->setFallbackLocales(['fr', 'ru']);\n\n $collector->trans('foo');\n $collector->trans('bar');\n $collector->trans('choice', ['%", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/DataCollectorTranslatorTest.php", "language": "php", "file_size": 3791, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests;\n\nuse Symfony\\Component\\Translation\\IdentityTranslator;\nuse Symfony\\Contracts\\Translation\\Test\\TranslatorTest;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass IdentityTranslatorTest extends TranslatorTest\n{\n private string $defaultLocale;\n\n protected function setUp(): void\n ", "suffix": "cale = \\Locale::getDefault();\n \\Locale::setDefault('en');\n }\n\n protected function tearDown(): void\n {\n parent::tearDown();\n\n \\Locale::setDefault($this->defaultLocale);\n }\n\n public function getTranslator(): TranslatorInte", "middle": "{\n parent::setUp();\n\n $this->defaultLo", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/IdentityTranslatorTest.php", "language": "php", "file_size": 951, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\LocaleFallbackProvider;\n\nclass LocaleFallbackProviderTest extends TestCase\n{\n public function testConstructorValidatesLocales()\n {\n ", "suffix": "InvalidArgumentException::class);\n\n (new LocaleFallbackProvider())->computeFallbackLocales('invalid locale!');\n }\n\n public function testComputeFallbackLocalesShortensSubTags()\n {\n $provider = new LocaleFallbackProvider();\n\n $t", "middle": "$this->expectException(InvalidArgumentException::class);\n\n new LocaleFallbackProvider(['en', 'invalid locale!']);\n }\n\n public function testComputeFallbackLocalesValidatesLocale()\n {\n $this->expectException(", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/LocaleFallbackProviderTest.php", "language": "php", "file_size": 4034, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Translation\\LocaleSwitcher;\nuse Symfony\\Contracts\\Translation\\LocaleAwareInterface;\n\n#[RequiresPhpExtension('intl')]\nclass LocaleSwitcherTest extends TestCase\n{\n private ", "suffix": "blic function testCanSwitchLocale()\n {\n \\Locale::setDefault('en');\n\n $service = new DummyLocaleAware('en');\n $switcher = new LocaleSwitcher('en', [$service]);\n\n $this->assertSame('en', \\Locale::getDefault());\n $this->a", "middle": "string $intlLocale;\n\n protected function setUp(): void\n {\n $this->intlLocale = \\Locale::getDefault();\n }\n\n protected function tearDown(): void\n {\n \\Locale::setDefault($this->intlLocale);\n }\n\n pu", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/LocaleSwitcherTest.php", "language": "php", "file_size": 3129, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Translation\\LoggingTranslator;\nuse Symfony\\Component\\Translation\\Translator;\n\nclass LoggingTranslatorTest extends TestCase\n{\n public function testTransWithNoTranslationIsLogged()\n {\n $logger = $this->createMock(LoggerInterfa", "suffix": "1))\n ->method('warning')\n ->with('Translation not found.')\n ;\n\n $translator = new Translator('ar');\n $loggableTranslator = new LoggingTranslator($translator, $logger);\n $loggableTranslator->trans('bar');\n ", "middle": "ce::class);\n $logger->expects($this->exactly(", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/LoggingTranslatorTest.php", "language": "php", "file_size": 920, "cut_index": 606, "middle_length": 52}} {"prefix": "Exception\\LogicException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass MessageCatalogueTest extends TestCase\n{\n public function testGetLocale()\n {\n $catalogue = new MessageCatalogue('en');\n\n $this->assertEquals('en', $catalogue->getLocale());\n }\n\n public function testGetDomains()\n {\n $catalogue = new MessageCatalogue('en', ['domain1' => [], 'domain2' => [], 'domain2+intl-icu' => [], 'domain3+intl-icu' => []]);\n\n $this->assertEquals(['domain1', 'domain", "suffix": "sertEquals(['foo' => 'foo'], $catalogue->all('domain1'));\n $this->assertEquals([], $catalogue->all('domain88'));\n $this->assertEquals($messages, $catalogue->all());\n\n $messages = ['domain1+intl-icu' => ['foo' => 'bar']] + $messages + [", "middle": "2', 'domain3'], $catalogue->getDomains());\n }\n\n public function testAll()\n {\n $catalogue = new MessageCatalogue('en', $messages = ['domain1' => ['foo' => 'foo'], 'domain2' => ['bar' => 'bar']]);\n\n $this->as", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php", "language": "php", "file_size": 10469, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\IdentityTranslator;\nuse Symfony\\Component\\Translation\\PseudoLocalizationTranslator;\n\nfinal class PseudoLocalizationTranslatorTest extends TestCase\n{\n #[DataProvider('provideTrans')]\n public function testTrans(string $expected, string $input, array $options = [])\n {\n mt_srand(987);\n $this->asse", "suffix": "AR

'], // Test defaults\n ['before after', 'before after', self::getIsolatedOptions([", "middle": "rtSame($expected, (new PseudoLocalizationTranslator(new IdentityTranslator(), $options))->trans($input));\n }\n\n public static function provideTrans(): array\n {\n return [\n ['[ƒöö⭐ ≤þ≥ƁÅŔ≤⁄þ≥]', 'foo⭐

B", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/PseudoLocalizationTranslatorTest.php", "language": "php", "file_size": 6112, "cut_index": 716, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\StaticMessage;\nuse Symfony\\Component\\Translation\\Translator;\n\nclass StaticMessageTest extends TestCase\n{\n public function testTrans()\n {\n $translator = new Translator('en');\n $tran", "suffix": " $translator->addResource('array', [\n 'Symfony is great!' => 'Symfony est super !',\n ], 'fr', '');\n\n $translatable = new StaticMessage('Symfony is great!');\n\n $this->assertSame('Symfony is great!', $translatable->trans($tr", "middle": "slator->addLoader('array', new ArrayLoader());\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/StaticMessageTest.php", "language": "php", "file_size": 940, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\TranslatableMessage;\nuse Symfony\\Component\\Translation\\Translator;\n\nclass TranslatableTest extends TestCase\n{\n", "suffix": "dLoader('array', new ArrayLoader());\n $translator->addResource('array', $translation, $locale, $translatable->getDomain());\n\n $this->assertSame($expected, $translatable->trans($translator, $locale));\n }\n\n #[DataProvider('getFlattenedTra", "middle": " #[DataProvider('getTransTests')]\n public function testTrans(string $expected, TranslatableMessage $translatable, array $translation, string $locale)\n {\n $translator = new Translator('en');\n $translator->ad", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/TranslatableTest.php", "language": "php", "file_size": 2833, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\WarmableInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\nuse Symfony\\Contracts\\Translation\\LocaleAwareInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * @author Abdellatif Ait boudad \n */\nfinal class DataCollectorTranslator implements ", "suffix": " private array $messages = [];\n\n public function __construct(\n private TranslatorInterface&TranslatorBagInterface&LocaleAwareInterface $translator,\n ) {\n }\n\n public function reset(): void\n {\n $this->messages = [];\n }\n\n pu", "middle": "TranslatorInterface, TranslatorBagInterface, LocaleAwareInterface, WarmableInterface, ResetInterface\n{\n public const MESSAGE_DEFINED = 0;\n public const MESSAGE_MISSING = 1;\n public const MESSAGE_EQUALS_FALLBACK = 2;\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/DataCollectorTranslator.php", "language": "php", "file_size": 4305, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Contracts\\Translation\\LocaleAwareInterface;\n\n/**\n * @author Kevin Bond \n */\nclass LocaleSwitcher implements LocaleAwareInterface\n{\n private string $defaultLocale;\n\n /**\n * @param LocaleAwareInte", "suffix": "efaultLocale = $locale;\n }\n\n public function setLocale(string $locale): void\n {\n // Silently ignore if the intl extension is not loaded\n try {\n if (class_exists(\\Locale::class, false)) {\n \\Locale::setDefault", "middle": "rface[] $localeAwareServices\n */\n public function __construct(\n private string $locale,\n private iterable $localeAwareServices,\n private ?RequestContext $requestContext = null,\n ) {\n $this->d", "meta": {"filepath": "src/Symfony/Component/Translation/LocaleSwitcher.php", "language": "php", "file_size": 2071, "cut_index": 563, "middle_length": 229}} {"prefix": "hor Fabien Potencier \n */\nclass MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterface, CatalogueMetadataAwareInterface\n{\n private array $metadata = [];\n private array $catalogueMetadata = [];\n private array $resources = [];\n private ?MessageCatalogueInterface $fallbackCatalogue = null;\n private ?self $parent = null;\n\n /**\n * @param array $messages An array of messages classified by domain\n */\n public function __construct(\n priva", "suffix": " foreach ($this->messages as $domain => $messages) {\n if (str_ends_with($domain, self::INTL_DOMAIN_SUFFIX)) {\n $domain = substr($domain, 0, -\\strlen(self::INTL_DOMAIN_SUFFIX));\n }\n $domains[$domain] = $dom", "middle": "te string $locale,\n private array $messages = [],\n ) {\n }\n\n public function getLocale(): string\n {\n return $this->locale;\n }\n\n public function getDomains(): array\n {\n $domains = [];\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/MessageCatalogue.php", "language": "php", "file_size": 10028, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\nuse Symfony\\Component\\Config\\Resource\\ResourceInterface;\n\n/**\n * MessageCatalogueInterface.\n *\n * @author Fabien Potencier \n */\ninterface MessageCatalogueInterface\n{\n public const INTL_DOMAIN_SUFFIX = '+intl-icu';\n\n /**\n * Gets the catalogue locale.\n */\n public function getLocale(): string;\n\n ", "suffix": "ring $domain = null): array;\n\n /**\n * Sets a message translation.\n *\n * @param string $id The message id\n * @param string $translation The messages translation\n * @param string $domain The domain name\n */\n public", "middle": "/**\n * Gets the domains.\n */\n public function getDomains(): array;\n\n /**\n * Gets the messages within a given domain.\n *\n * If $domain is null, it returns all messages.\n */\n public function all(?st", "meta": {"filepath": "src/Symfony/Component/Translation/MessageCatalogueInterface.php", "language": "php", "file_size": 3352, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * @author Nate Wiebe \n */\nclass TranslatableMessage implements TranslatableInterface\n{\n public function _", "suffix": "public function getParameters(): array\n {\n return $this->parameters;\n }\n\n public function getDomain(): ?string\n {\n return $this->domain;\n }\n\n public function trans(TranslatorInterface $translator, ?string $locale = null): st", "middle": "_construct(\n private string $message,\n private array $parameters = [],\n private ?string $domain = null,\n ) {\n }\n\n public function getMessage(): string\n {\n return $this->message;\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/TranslatableMessage.php", "language": "php", "file_size": 1363, "cut_index": 524, "middle_length": 229}} {"prefix": "ranslator should only be used in a development environment.\n */\nfinal class PseudoLocalizationTranslator implements TranslatorInterface, TranslatorBagInterface\n{\n private const EXPANSION_CHARACTER = '~';\n\n private bool $accents;\n private float $expansionFactor;\n private bool $brackets;\n private bool $parseHTML;\n\n /**\n * @var string[]\n */\n private array $localizableHTMLAttributes;\n\n /**\n * Available options:\n * * accents:\n * type: boolean\n * default:", "suffix": "t\n * default: 1\n * validation: it must be greater than or equal to 1\n * description: expand the translated string by the given factor with spaces and tildes\n * example: if 2, \"foo\" => \"~foo ~\"\n *\n * * brackets:\n", "middle": " true\n * description: replace ASCII characters of the translated string with accented versions or similar characters\n * example: if true, \"foo\" => \"ƒöö\".\n *\n * * expansion_factor:\n * type: floa", "meta": {"filepath": "src/Symfony/Component/Translation/PseudoLocalizationTranslator.php", "language": "php", "file_size": 12097, "cut_index": 921, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Exception;\n\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Fabien Potencier \n */\nclass ProviderException extends RuntimeException implements ProviderExceptionInterface\n{\n private string $debug;\n\n public function __construct(\n string $message,\n ", "suffix": "ode = 0,\n ?\\Exception $previous = null,\n ) {\n $this->debug = $response->getInfo('debug') ?? '';\n\n parent::__construct($message, $code, $previous);\n }\n\n public function getResponse(): ResponseInterface\n {\n return $thi", "middle": " private ResponseInterface $response,\n int $c", "meta": {"filepath": "src/Symfony/Component/Translation/Exception/ProviderException.php", "language": "php", "file_size": 992, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Exception;\n\nuse Symfony\\Component\\Translation\\Bridge;\nuse Symfony\\Component\\Translation\\Provider\\Dsn;\n\nclass UnsupportedSchemeException extends LogicException\n{\n private const SCHEME_TO_PACKAGE_MAP = [\n 'crowdin' => [\n 'class' => Bridge\\Crowdin\\CrowdinProviderFact", "suffix": "r',\n ],\n 'lokalise' => [\n 'class' => Bridge\\Lokalise\\LokaliseProviderFactory::class,\n 'package' => 'symfony/lokalise-translation-provider',\n ],\n 'phrase' => [\n 'class' => Bridge\\Phrase\\PhraseProv", "middle": "ory::class,\n 'package' => 'symfony/crowdin-translation-provider',\n ],\n 'loco' => [\n 'class' => Bridge\\Loco\\LocoProviderFactory::class,\n 'package' => 'symfony/loco-translation-provide", "meta": {"filepath": "src/Symfony/Component/Translation/Exception/UnsupportedSchemeException.php", "language": "php", "file_size": 2064, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Provider;\n\nuse Symfony\\Component\\Translation\\TranslatorBag;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\n\n/**\n * Filters domains and locales between the Translator config values and those specific to each provider.\n *\n * @author Mathieu Santostef", "suffix": "mains = [],\n ) {\n $this->locales = array_filter($locales);\n }\n\n public function __toString(): string\n {\n return (string) $this->provider;\n }\n\n public function write(TranslatorBagInterface $translatorBag): void\n {\n ", "middle": "ano \n */\nclass FilteringProvider implements ProviderInterface\n{\n public function __construct(\n private ProviderInterface $provider,\n private array $locales,\n private array $do", "meta": {"filepath": "src/Symfony/Component/Translation/Provider/FilteringProvider.php", "language": "php", "file_size": 1585, "cut_index": 537, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Provider;\n\nuse Symfony\\Component\\Translation\\Exception\\UnsupportedSchemeException;\n\n/**\n * @author Mathieu Santostefano \n */\nfinal class NullProviderFactory extends AbstractProviderFactory\n{\n public function create(Dsn $dsn)", "suffix": "n->getScheme()) {\n return new NullProvider();\n }\n\n throw new UnsupportedSchemeException($dsn, 'null', $this->getSupportedSchemes());\n }\n\n protected function getSupportedSchemes(): array\n {\n return ['null'];\n }\n}\n", "middle": ": ProviderInterface\n {\n if ('null' === $ds", "meta": {"filepath": "src/Symfony/Component/Translation/Provider/NullProviderFactory.php", "language": "php", "file_size": 843, "cut_index": 535, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Provider;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\n\n/**\n * @author Mathieu Santostefano \n */\nfinal class TranslationProviderCollection\n{\n /**\n * @var arrayproviders)).']';\n }\n\n public function has(string $name): bool\n {\n return isset($this->provider", "middle": "ce>\n */\n private array $providers;\n\n /**\n * @param array $providers\n */\n public function __construct(iterable $providers)\n {\n $this->providers = \\is_array($providers) ? $p", "meta": {"filepath": "src/Symfony/Component/Translation/Provider/TranslationProviderCollection.php", "language": "php", "file_size": 1401, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Writer;\n\nuse Symfony\\Component\\Translation\\Dumper\\DumperInterface;\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Exception\\RuntimeException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * TranslationWriter writes t", "suffix": " [];\n\n /**\n * Adds a dumper to the writer.\n */\n public function addDumper(string $format, DumperInterface $dumper): void\n {\n $this->dumpers[$format] = $dumper;\n }\n\n /**\n * Obtains the list of supported formats.\n */\n ", "middle": "ranslation messages.\n *\n * @author Michel Salib \n */\nclass TranslationWriter implements TranslationWriterInterface\n{\n /**\n * @var array\n */\n private array $dumpers =", "meta": {"filepath": "src/Symfony/Component/Translation/Writer/TranslationWriter.php", "language": "php", "file_size": 2131, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface;\nuse Symfony\\Component\\Translation\\DataCollectorTranslator;\nuse Symfony\\Component\\VarDumper", "suffix": "ivate DataCollectorTranslator $translator,\n ) {\n }\n\n public function lateCollect(): void\n {\n $messages = $this->sanitizeCollectedMessages($this->translator->getCollectedMessages());\n\n $this->data += $this->computeCount($messages);", "middle": "\\Cloner\\Data;\n\n/**\n * @author Abdellatif Ait boudad \n *\n * @final\n */\nclass TranslationDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n public function __construct(\n pr", "meta": {"filepath": "src/Symfony/Component/Translation/DataCollector/TranslationDataCollector.php", "language": "php", "file_size": 4551, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Util;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\n\n/**\n * Provides some utility methods for XLIFF translation files, such as validating\n * their contents according to the XSD schema.\n *\n * @author Fabien Potencier \n */\nclass XliffUtils\n{\n /**\n * Gets xliff file version based on the root \"version\" attribute.\n ", "suffix": "('xliff') as $xliff) {\n $version = $xliff->attributes->getNamedItem('version');\n if ($version) {\n return $version->nodeValue;\n }\n\n $namespace = $xliff->attributes->getNamedItem('xmlns');\n ", "middle": "*\n * Defaults to 1.2 for backwards compatibility.\n *\n * @throws InvalidArgumentException\n */\n public static function getVersionNumber(\\DOMDocument $dom): string\n {\n foreach ($dom->getElementsByTagName", "meta": {"filepath": "src/Symfony/Component/Translation/Util/XliffUtils.php", "language": "php", "file_size": 6060, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * ArrayLoader loads translations from a PHP array.\n *\n * @author Fabien Potencier \n */\nclass ArrayLoader implements LoaderInterface\n{\n public function load(", "suffix": "\n\n return $catalogue;\n }\n\n /**\n * Flattens an nested array of translations.\n *\n * The scheme used is:\n * 'key' => ['key2' => ['key3' => 'value']]\n * Becomes:\n * 'key.key2.key3' => 'value'\n */\n private functio", "middle": "mixed $resource, string $locale, string $domain = 'messages'): MessageCatalogue\n {\n $resource = $this->flatten($resource);\n $catalogue = new MessageCatalogue($locale);\n $catalogue->add($resource, $domain);", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/ArrayLoader.php", "language": "php", "file_size": 1487, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PropertyAccess\\Tests\\Fixtures;\n\n/**\n * This class is a hand written simplified version of PHP native `ArrayObject`\n * class, to show that it behaves differently than the PHP native implementation.\n */\nclass TraversableArrayObject implements \\ArrayAccess, \\IteratorAggrega", "suffix": "$offset, $this->array);\n }\n\n public function offsetGet($offset): mixed\n {\n return $this->array[$offset];\n }\n\n public function offsetSet($offset, $value): void\n {\n if (null === $offset) {\n $this->array[] = $value;\n", "middle": "te, \\Countable\n{\n private $array;\n\n public function __construct(?array $array = null)\n {\n $this->array = $array ?: [];\n }\n\n public function offsetExists($offset): bool\n {\n return \\array_key_exists(", "meta": {"filepath": "src/Symfony/Component/PropertyAccess/Tests/Fixtures/TraversableArrayObject.php", "language": "php", "file_size": 1571, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\n\n/**\n * Derives fallback locales based on ICU parent locale information, by shortening locale\n * sub tags and ultimately by going through a list of configured fallback locales.\n *\n * Also provides locale string va", "suffix": " *\n * @throws InvalidArgumentException If a locale contains invalid characters\n */\n public function __construct(\n private array $localeFallbacks = [],\n ) {\n foreach ($localeFallbacks as $locale) {\n self::validateLoc", "middle": "lidation.\n *\n * @author Matthias Pigulla \n */\nfinal class LocaleFallbackProvider\n{\n /**\n * @param string[] $localeFallbacks List of fallback locales to add _after_ the ones derived from ICU information\n ", "meta": {"filepath": "src/Symfony/Component/Translation/LocaleFallbackProvider.php", "language": "php", "file_size": 2833, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\nuse Symfony\\Component\\Translation\\Catalogue\\AbstractOperation;\nuse Symfony\\Component\\Translation\\Catalogue\\TargetOperation;\n\nfinal class TranslatorBag implements TranslatorBagInterface\n{\n /** @var MessageCatalogue[] */\n private array $catalogues = [];\n\n public function addCatalogue(MessageCatalogue $catalogue): void\n {\n ", "suffix": "\n public function addBag(TranslatorBagInterface $bag): void\n {\n foreach ($bag->getCatalogues() as $catalogue) {\n $this->addCatalogue($catalogue);\n }\n }\n\n public function getCatalogue(?string $locale = null): MessageCata", "middle": " if (null !== $existingCatalogue = $this->getCatalogue($catalogue->getLocale())) {\n $catalogue->addCatalogue($existingCatalogue);\n }\n\n $this->catalogues[$catalogue->getLocale()] = $catalogue;\n }\n", "meta": {"filepath": "src/Symfony/Component/Translation/TranslatorBag.php", "language": "php", "file_size": 3127, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\n\n/**\n * @author Abdellatif Ait boudad \n */\ninterface TranslatorBagInterface\n{\n /**\n * Gets the catalogue by locale.\n *\n * @param string|null $locale The locale or null to use the default\n *\n * @throws InvalidAr", "suffix": "cters\n */\n public function getCatalogue(?string $locale = null): MessageCatalogueInterface;\n\n /**\n * Returns all catalogues of the instance.\n *\n * @return MessageCatalogueInterface[]\n */\n public function getCatalogues(): array;", "middle": "gumentException If the locale contains invalid chara", "meta": {"filepath": "src/Symfony/Component/Translation/TranslatorBagInterface.php", "language": "php", "file_size": 917, "cut_index": 606, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Provider;\n\nuse Symfony\\Component\\Translation\\TranslatorBag;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\n\n/**\n * @author Mathieu Santostefano \n */\nclass NullProvider implements ProviderInterface\n{\n public function __toStrin", "suffix": "public function write(TranslatorBagInterface $translatorBag, bool $override = false): void\n {\n }\n\n public function read(array $domains, array $locales): TranslatorBag\n {\n return new TranslatorBag();\n }\n\n public function delete(Tran", "middle": "g(): string\n {\n return 'null';\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Provider/NullProvider.php", "language": "php", "file_size": 910, "cut_index": 547, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Provider;\n\nuse Symfony\\Component\\Translation\\TranslatorBag;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\n\ninterface ProviderInterface extends \\Stringable\n{\n /**\n * Translations available in the TranslatorBag only must be created.\n * Translations available in both the TranslatorBag and on the provider\n ", "suffix": "ble on the provider only must be kept.\n */\n public function write(TranslatorBagInterface $translatorBag): void;\n\n public function read(array $domains, array $locales): TranslatorBag;\n\n public function delete(TranslatorBagInterface $translatorB", "middle": " * must be overwritten.\n * Translations availa", "meta": {"filepath": "src/Symfony/Component/Translation/Provider/ProviderInterface.php", "language": "php", "file_size": 927, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Util;\n\n/**\n * ArrayConverter generates tree like structure from a message catalogue.\n * e.g. this\n * 'foo.bar1' => 'test1',\n * 'foo.bar2' => 'test2'\n * converts to follows:\n * foo:\n * bar1: test1\n * bar2: test2.\n *\n * @author Gennady Telegin \n */\nclass ArrayConverter\n{\n /**\n * Converts linear m", "suffix": "ToTree(array $messages): array\n {\n $tree = [];\n\n foreach ($messages as $id => $value) {\n $referenceToElement = &self::getElementByPath($tree, self::getKeyParts($id));\n\n $referenceToElement = $value;\n\n unset", "middle": "essages array to tree-like array.\n * For example: ['foo.bar' => 'value'] will be converted to ['foo' => ['bar' => 'value']].\n *\n * @param array $messages Linear messages array\n */\n public static function expand", "meta": {"filepath": "src/Symfony/Component/Translation/Util/ArrayConverter.php", "language": "php", "file_size": 3760, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\n/**\n * This interface is used to get, set, and delete metadata about the Catalogue.\n *\n * @author Hugo Alliaume \n */\ninterface CatalogueMetadataAwareInterface\n{\n /**\n * Gets catalogue metadata for the given domain and key", "suffix": "\n *\n * @return mixed The value that was set or an array with the domains/keys or null\n */\n public function getCatalogueMetadata(string $key = '', string $domain = 'messages'): mixed;\n\n /**\n * Adds catalogue metadata to a message domai", "middle": ".\n *\n * Passing an empty domain will return an array with all catalogue metadata indexed by\n * domain and then by key. Passing an empty key will return an array with all\n * catalogue metadata for the given domain.", "meta": {"filepath": "src/Symfony/Component/Translation/CatalogueMetadataAwareInterface.php", "language": "php", "file_size": 1454, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\n/**\n * This interface is used to get, set, and delete metadata about the translation messages.\n *\n * @author Fabien Potencier \n */\ninterface MetadataAwareInterface\n{\n /**\n * Gets metadata for the given domain and key.", "suffix": "n mixed The value that was set or an array with the domains/keys or null\n */\n public function getMetadata(string $key = '', string $domain = 'messages'): mixed;\n\n /**\n * Adds metadata to a message domain.\n */\n public function setMetada", "middle": "\n *\n * Passing an empty domain will return an array with all metadata indexed by\n * domain and then by key. Passing an empty key will return an array with all\n * metadata for the given domain.\n *\n * @retur", "meta": {"filepath": "src/Symfony/Component/Translation/MetadataAwareInterface.php", "language": "php", "file_size": 1376, "cut_index": 524, "middle_length": 229}} {"prefix": "Config\\ConfigCacheInterface;\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\Exception\\RuntimeException;\nuse Symfony\\Component\\Translation\\Formatter\\IntlFormatterInterface;\nuse Symfony\\Component\\Translation\\Formatter\\MessageFormatter;\nuse Symfony\\Component\\Translation\\Formatter\\MessageFormatterInterface;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Contracts", "suffix": "gue::class);\n\n/**\n * @author Fabien Potencier \n */\nclass Translator implements TranslatorInterface, TranslatorBagInterface, LocaleAwareInterface\n{\n /**\n * @var MessageCatalogueInterface[]\n */\n protected array $catalogues =", "middle": "\\Translation\\LocaleAwareInterface;\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(MessageCatalo", "meta": {"filepath": "src/Symfony/Component/Translation/Translator.php", "language": "php", "file_size": 14064, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Provider;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Exception\\MissingRequiredOptionException;\n\n/**\n * @author Fabien Potencier \n * @author Oskar Stark \n */\nfinal class Dsn\n{\n ", "suffix": "\n\n public function __construct(#[\\SensitiveParameter] string $dsn)\n {\n $this->originalDsn = $dsn;\n\n if (false === $params = parse_url($dsn)) {\n throw new InvalidArgumentException('The translation provider DSN is invalid.');\n ", "middle": " private ?string $scheme;\n private ?string $host;\n private ?string $user;\n private ?string $password;\n private ?int $port;\n private ?string $path;\n private array $options = [];\n private string $originalDsn;", "meta": {"filepath": "src/Symfony/Component/Translation/Provider/Dsn.php", "language": "php", "file_size": 2927, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Provider;\n\nuse Symfony\\Component\\Translation\\Exception\\UnsupportedSchemeException;\n\n/**\n * @author Mathieu Santostefano \n */\nclass TranslationProviderCollectionFactory\n{\n /**\n * @param iterable $currentConfig) {\n $providers[$name] = $this->fromDsnObject(\n new Dsn($currentConfig['dsn']),\n !$currentConfig['locales'] ? $this->enabledLocales : $cu", "middle": "ace> $factories\n */\n public function __construct(\n private iterable $factories,\n private array $enabledLocales,\n ) {\n }\n\n public function fromConfig(array $config): TranslationProviderCollection\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Provider/TranslationProviderCollectionFactory.php", "language": "php", "file_size": 1591, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Loader;\n\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\n\n/**\n * CsvFileLoader loads translations from CSV files.\n *\n * @author Saša Stamenković \n */\nclass CsvFileLoader extends FileLoader\n{\n private string $delim", "suffix": "(\\RuntimeException $e) {\n throw new NotFoundResourceException(\\sprintf('Error opening file \"%s\".', $resource), 0, $e);\n }\n\n $file->setFlags(\\SplFileObject::READ_CSV | \\SplFileObject::SKIP_EMPTY | \\SplFileObject::DROP_NEW_LINE);\n ", "middle": "iter = ';';\n private string $enclosure = '\"';\n\n protected function loadResource(string $resource): array\n {\n $messages = [];\n\n try {\n $file = new \\SplFileObject($resource, 'rb');\n } catch ", "meta": {"filepath": "src/Symfony/Component/Translation/Loader/CsvFileLoader.php", "language": "php", "file_size": 1659, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Provider;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Exception\\MissingRequiredOptionException;\nuse Symfony\\Component\\Translation\\Provider\\Dsn;\n\nfinal class DsnTest extends TestCase\n{\n #[DataProvider('constructProvider')]\n public function testConstruct(string $dsnString, string $scheme", "suffix": ";\n\n $this->assertSame($scheme, $dsn->getScheme());\n $this->assertSame($host, $dsn->getHost());\n $this->assertSame($user, $dsn->getUser());\n $this->assertSame($password, $dsn->getPassword());\n $this->assertSame($port, $dsn", "middle": ", string $host, ?string $user = null, ?string $password = null, ?int $port = null, array $options = [], ?string $path = null)\n {\n $dsn = new Dsn($dsnString);\n $this->assertSame($dsnString, $dsn->getOriginalDsn())", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Provider/DsnTest.php", "language": "php", "file_size": 7272, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Sy", "suffix": " $catalogue = $loader->load($resource, 'en', 'domain1');\n\n $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1'));\n $this->assertEquals('en', $catalogue->getLocale());\n $this->assertEquals([new FileResource($resource)]", "middle": "mfony\\Component\\Translation\\Loader\\PhpFileLoader;\n\nclass PhpFileLoaderTest extends TestCase\n{\n public function testLoad()\n {\n $loader = new PhpFileLoader();\n $resource = __DIR__.'/../Fixtures/resources.php';\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/PhpFileLoaderTest.php", "language": "php", "file_size": 1504, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\Loader\\PoFileLoader;\n\nclass PoFileLoaderTest extends TestCase\n{\n public function testLoad()\n {\n $loader = new PoFileLoa", "suffix": "this->assertEquals('en', $catalogue->getLocale());\n $this->assertEquals([new FileResource($resource)], $catalogue->getResources());\n }\n\n public function testLoadPlurals()\n {\n $loader = new PoFileLoader();\n $resource = __DIR__.", "middle": "der();\n $resource = __DIR__.'/../Fixtures/resources.po';\n $catalogue = $loader->load($resource, 'en', 'domain1');\n\n $this->assertEquals(['foo' => 'bar', 'bar' => 'foo'], $catalogue->all('domain1'));\n $", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/PoFileLoaderTest.php", "language": "php", "file_size": 4319, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\Loader\\QtFi", "suffix": ", 'en', 'resources');\n\n $this->assertEquals([\n 'foo' => 'bar',\n 'foo_bar' => 'foobar',\n 'bar_foo' => 'barfoo',\n ], $catalogue->all('resources'));\n $this->assertEquals('en', $catalogue->getLocale());\n ", "middle": "leLoader;\n\nclass QtFileLoaderTest extends TestCase\n{\n public function testLoad()\n {\n $loader = new QtFileLoader();\n $resource = __DIR__.'/../Fixtures/resources.ts';\n $catalogue = $loader->load($resource", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/QtFileLoaderTest.php", "language": "php", "file_size": 2132, "cut_index": 563, "middle_length": 229}} {"prefix": " $resource = __DIR__.'/../Fixtures/resources.xlf';\n $catalogue = $loader->load($resource, 'en', 'domain1');\n\n $this->assertEquals('en', $catalogue->getLocale());\n $this->assertEquals([new FileResource($resource)], $catalogue->getResources());\n $this->assertSame([], libxml_get_errors());\n $this->assertContainsOnlyString($catalogue->all('domain1'));\n }\n\n public function testLoadRawXliff()\n {\n $loader = new XliffFileLoader();\n $resource = <<\n \n foo\n bar\n \n \n extra\n \n \n \n \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\Loader\\Yaml", "suffix": "esource, 'en', 'domain1');\n\n $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1'));\n $this->assertEquals('en', $catalogue->getLocale());\n $this->assertEquals([new FileResource($resource)], $catalogue->getResources());\n }", "middle": "FileLoader;\n\nclass YamlFileLoaderTest extends TestCase\n{\n public function testLoad()\n {\n $loader = new YamlFileLoader();\n $resource = __DIR__.'/../Fixtures/resources.yml';\n $catalogue = $loader->load($r", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/YamlFileLoaderTest.php", "language": "php", "file_size": 2664, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Catalogue;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Exception\\LogicException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\n\nabstract class AbstractOperationTestCase extends TestCase\n{\n ", "suffix": ">getDomains()\n );\n }\n\n public function testGetMergedDomains()\n {\n $this->assertEquals(\n ['a', 'b', 'c'],\n $this->createOperation(\n new MessageCatalogue('en', ['a' => [], 'b' => []]),\n ", "middle": " public function testGetEmptyDomains()\n {\n $this->assertEquals(\n [],\n $this->createOperation(\n new MessageCatalogue('en'),\n new MessageCatalogue('en')\n )-", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Catalogue/AbstractOperationTestCase.php", "language": "php", "file_size": 2458, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Catalogue;\n\nuse Symfony\\Component\\Translation\\Catalogue\\MergeOperation;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\n\nclass MergeOperationTest extends AbstractOperationTestCase\n{\n public function testGetMessagesFromSingleDomain()\n {\n $operation = $t", "suffix": "ssertEquals(\n ['a' => 'old_a', 'b' => 'old_b', 'c' => 'new_c'],\n $operation->getMessages('messages')\n );\n\n $this->assertEquals(\n ['c' => 'new_c'],\n $operation->getNewMessages('messages')\n );\n", "middle": "his->createOperation(\n new MessageCatalogue('en', ['messages' => ['a' => 'old_a', 'b' => 'old_b']]),\n new MessageCatalogue('en', ['messages' => ['a' => 'new_a', 'c' => 'new_c']])\n );\n\n $this->a", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Catalogue/MergeOperationTest.php", "language": "php", "file_size": 4634, "cut_index": 614, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Catalogue;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass MessageCatalogueTest extends TestCase\n{\n public function testIcuMetadataKept()\n {\n $mc = new MessageCatalogue('en', [", "suffix": "= ['metadata' => 'value'];\n $mc->setMetadata('a', $metadata, 'messages+intl-icu');\n $this->assertEquals($metadata, $mc->getMetadata('a', 'messages'));\n $this->assertEquals($metadata, $mc->getMetadata('a', 'messages+intl-icu'));\n }\n}", "middle": "'messages' => ['a' => 'new_a']]);\n $metadata ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Catalogue/MessageCatalogueTest.php", "language": "php", "file_size": 826, "cut_index": 517, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Catalogue;\n\nuse Symfony\\Component\\Translation\\Catalogue\\TargetOperation;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\n\nclass TargetOperationTest extends AbstractOperationTestCase\n{\n public function testGetMessagesFromSingleDomain()\n {\n $operation = $this->createOperation(\n new MessageCatalogue('en', ['messages' => ['a' => 'old_a', 'b' => ", "suffix": "ages')\n );\n\n $this->assertEquals(\n ['c' => 'new_c'],\n $operation->getNewMessages('messages')\n );\n\n $this->assertEquals(\n ['b' => 'old_b'],\n $operation->getObsoleteMessages('messages')\n", "middle": "'old_b']]),\n new MessageCatalogue('en', ['messages' => ['a' => 'new_a', 'c' => 'new_c']])\n );\n\n $this->assertEquals(\n ['a' => 'old_a', 'c' => 'new_c'],\n $operation->getMessages('mess", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Catalogue/TargetOperationTest.php", "language": "php", "file_size": 6092, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Translation\\Command\\TranslationLintCommand;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\Translator;\n\nfinal class TranslationLin", "suffix": " $translator->addResource('array', ['hello' => 'Hello!'], 'en', 'messages');\n $translator->addResource('array', [\n 'hello_name' => 'Hello {name}!',\n 'num_of_apples' => <<addLoader('array', new ArrayLoader());\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Command/TranslationLintCommandTest.php", "language": "php", "file_size": 6837, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Translation\\Provider\\FilteringProvider;\nuse Symfony\\Component\\Translation\\Provider\\ProviderInterface;\nuse Symfony\\Component\\Translation\\Provider\\TranslationProviderCollection;\n\n/**\n * @author Mathieu Santostefano defaultLocale = \\Locale::getDefault();\n \\Locale::setDefault('en');\n $this->fs = new Filesystem();\n $this->translationAppDir = tempnam(sys_get_temp_dir(), 'sf_translation_');\n ", "middle": "tefano@protonmail.com>\n */\nabstract class TranslationProviderTestCase extends TestCase\n{\n protected Filesystem $fs;\n protected string $translationAppDir;\n protected array $files;\n protected string $defaultLocale;\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Command/TranslationProviderTestCase.php", "language": "php", "file_size": 4477, "cut_index": 614, "middle_length": 229}} {"prefix": "on\\Loader\\XliffFileLoader;\nuse Symfony\\Component\\Translation\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\Translation\\Provider\\ProviderInterface;\nuse Symfony\\Component\\Translation\\Reader\\TranslationReader;\nuse Symfony\\Component\\Translation\\TranslatorBag;\nuse Symfony\\Component\\Translation\\Writer\\TranslationWriter;\n\n/**\n * @author Mathieu Santostefano \n */\nclass TranslationPullCommandTest extends TranslationProviderTestCase\n{\n private string|false $colSize;\n\n protected func", "suffix": " putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');\n }\n\n public function testPullNewXlf12Messages()\n {\n $arrayLoader = new ArrayLoader();\n $filenameEn = $this->createFile();\n $filenameEnIcu = $this->createF", "middle": "tion setUp(): void\n {\n $this->colSize = getenv('COLUMNS');\n putenv('COLUMNS='.(119 + \\strlen(\\PHP_EOL)));\n parent::setUp();\n }\n\n protected function tearDown(): void\n {\n parent::tearDown();\n", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Command/TranslationPullCommandTest.php", "language": "php", "file_size": 32608, "cut_index": 1331, "middle_length": 229}} {"prefix": "nt\\Translation\\Provider\\TranslationProviderCollection;\nuse Symfony\\Component\\Translation\\Reader\\TranslationReader;\nuse Symfony\\Component\\Translation\\TranslatorBag;\n\n/**\n * @author Mathieu Santostefano \n */\nclass TranslationPushCommandTest extends TranslationProviderTestCase\n{\n private string|false $colSize;\n\n protected function setUp(): void\n {\n $this->colSize = getenv('COLUMNS');\n putenv('COLUMNS='.(119 + \\strlen(\\PHP_EOL)));\n parent::setUp();\n ", "suffix": "ew ArrayLoader();\n $xliffLoader = new XliffFileLoader();\n $locales = ['en', 'fr'];\n $domains = ['messages'];\n\n // Simulate existing messages on Provider\n $providerReadTranslatorBag = new TranslatorBag();\n $provider", "middle": " }\n\n protected function tearDown(): void\n {\n parent::tearDown();\n putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');\n }\n\n public function testPushNewMessages()\n {\n $arrayLoader = n", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Command/TranslationPushCommandTest.php", "language": "php", "file_size": 17758, "cut_index": 1331, "middle_length": 229}} {"prefix": "ation;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Translation\\Command\\XliffLintCommand;\n\n/**\n * Tests the XliffLintCommand.\n *\n * @author Javier Eguiluz \n */\nclass XliffLintCommandTest extends TestCase\n{\n private array $files;\n\n public function testLintCorrectFile()\n {\n $test", "suffix": " );\n\n $tester->assertCommandIsSuccessful('Returns 0 in case of success');\n $this->assertStringContainsString('OK', trim($tester->getDisplay()));\n }\n\n public function testLintCorrectFiles()\n {\n $tester = $this->createComm", "middle": "er = $this->createCommandTester();\n $filename = $this->createFile();\n\n $tester->execute(\n ['filename' => $filename],\n ['verbosity' => OutputInterface::VERBOSITY_VERBOSE, 'decorated' => false]\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Command/XliffLintCommandTest.php", "language": "php", "file_size": 11583, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Formatter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Formatter\\IntlFormatter;\nuse Symfony\\Component\\Translation\\Formatter\\IntlFormatt", "suffix": "s($expected, trim((new IntlFormatter())->formatIntl($message, 'en', $arguments)));\n }\n\n public function testInvalidFormat()\n {\n $this->expectException(InvalidArgumentException::class);\n (new IntlFormatter())->formatIntl('{foo', 'en',", "middle": "erInterface;\n\n#[RequiresPhpExtension('intl')]\nclass IntlFormatterTest extends TestCase\n{\n #[DataProvider('provideDataForFormat')]\n public function testFormat($expected, $message, $arguments)\n {\n $this->assertEqual", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Formatter/IntlFormatterTest.php", "language": "php", "file_size": 4091, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Formatter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Formatter\\MessageFormatter;\n\nclass MessageFormatterTest extends TestCase\n{\n #[DataProvider('getTransMessages')]\n", "suffix": "ages()\n {\n return [\n [\n 'There is one apple',\n 'There is one apple',\n ],\n [\n 'There are 5 apples',\n 'There are %count% apples',\n ['%count%", "middle": " public function testFormat($expected, $message, $parameters = [])\n {\n $this->assertEquals($expected, $this->getMessageFormatter()->format($message, 'en', $parameters));\n }\n\n public static function getTransMess", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Formatter/MessageFormatterTest.php", "language": "php", "file_size": 1296, "cut_index": 524, "middle_length": 229}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\CsvFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass CsvFileDumperTest extends TestCase\n{\n public function testFormatCatalogue", "suffix": "en');\n $catalogue->add(['foo' => 'bar', 'bar' => 'foo\nfoo', 'foo;foo' => 'bar']);\n\n $dumper = new CsvFileDumper();\n\n $this->assertStringEqualsFile(__DIR__.'/../Fixtures/valid.csv', $dumper->formatCatalogue($catalogue, 'messages'));\n ", "middle": "()\n {\n $catalogue = new MessageCatalogue('", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php", "language": "php", "file_size": 829, "cut_index": 516, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\FileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass FileDumperTest extends TestCase\n{\n public function testDump()\n {\n $tempDir = sys_get_temp_dir();\n\n $catalo", "suffix": "es.en.concrete');\n\n @unlink($tempDir.'/messages.en.concrete');\n }\n\n public function testDumpIntl()\n {\n $tempDir = sys_get_temp_dir();\n\n $catalogue = new MessageCatalogue('en');\n $catalogue->add(['foo' => 'bar'], 'd1');\n", "middle": "gue = new MessageCatalogue('en');\n $catalogue->add(['foo' => 'bar']);\n\n $dumper = new ConcreteFileDumper();\n $dumper->dump($catalogue, ['path' => $tempDir]);\n\n $this->assertFileExists($tempDir.'/messag", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/FileDumperTest.php", "language": "php", "file_size": 2728, "cut_index": 563, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\IcuResFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass IcuResFileDumperTest extends TestCase\n{\n public function testFormatCatalogue", "suffix": " $catalogue = new MessageCatalogue('en');\n $catalogue->add(['foo' => 'bar']);\n\n $dumper = new IcuResFileDumper();\n\n $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resourcebundle/res/en.res', $dumper->formatCatalogue($catalogue, ", "middle": "()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php", "language": "php", "file_size": 814, "cut_index": 522, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\IniFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass IniFileDumperTest extends TestCase\n{\n public function testFormatCatalog", "suffix": " $catalogue = new MessageCatalogue('en');\n $catalogue->add(['foo' => 'bar']);\n\n $dumper = new IniFileDumper();\n\n $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.ini', $dumper->formatCatalogue($catalogue, 'messages'));", "middle": "ue()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php", "language": "php", "file_size": 793, "cut_index": 514, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\Loader\\IniFileLoader;\n\nclass IniFileLoaderTest extends ", "suffix": "rtEquals(['foo' => 'bar'], $catalogue->all('domain1'));\n $this->assertEquals('en', $catalogue->getLocale());\n $this->assertEquals([new FileResource($resource)], $catalogue->getResources());\n }\n\n public function testLoadDoesNothingIfEmpt", "middle": "TestCase\n{\n public function testLoad()\n {\n $loader = new IniFileLoader();\n $resource = __DIR__.'/../Fixtures/resources.ini';\n $catalogue = $loader->load($resource, 'en', 'domain1');\n\n $this->asse", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/IniFileLoaderTest.php", "language": "php", "file_size": 1632, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Contracts\\Translation\\LocaleAwareInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * @author Abdellatif Ait boudad \n */\nclass LoggingTranslator implements TranslatorInterface, TranslatorBagInterfac", "suffix": "rans(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string\n {\n $trans = $this->translator->trans($id = (string) $id, $parameters, $domain, $locale);\n $this->log($id, $domain, $locale);\n\n return", "middle": "e, LocaleAwareInterface\n{\n public function __construct(\n private TranslatorInterface&TranslatorBagInterface&LocaleAwareInterface $translator,\n private LoggerInterface $logger,\n ) {\n }\n\n public function t", "meta": {"filepath": "src/Symfony/Component/Translation/LoggingTranslator.php", "language": "php", "file_size": 2837, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Writer;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * TranslationWriter writes translation messages.\n *\n * @author Michel Salib \n */\ninterface TranslationWriterInterface\n{\n /**\n * Writes ", "suffix": "cted format.\n *\n * @param string $format The format to use to dump the messages\n * @param array $options Options that are passed to the dumper\n *\n * @throws InvalidArgumentException\n */\n public function write(MessageCatalogue $", "middle": "translation from the catalogue according to the sele", "meta": {"filepath": "src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php", "language": "php", "file_size": 947, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\TranslatorBag;\n\nclass TranslatorBagTest extends TestCase\n{\n public function testAll()\n {\n $catalogue = new MessageCatalogue('en', $messages = ['domain1' => ['foo' => 'foo'], 'domain2' => ['bar' => ", "suffix": "'foo' => 'bar']] + $messages + [\n 'domain2+intl-icu' => ['bar' => 'foo'],\n 'domain3+intl-icu' => ['biz' => 'biz'],\n ];\n $catalogue = new MessageCatalogue('en', $messages);\n\n $bag = new TranslatorBag();\n $ba", "middle": "'bar']]);\n\n $bag = new TranslatorBag();\n $bag->addCatalogue($catalogue);\n\n $this->assertEquals(['en' => $messages], $this->getAllMessagesFromTranslatorBag($bag));\n\n $messages = ['domain1+intl-icu' => [", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/TranslatorBagTest.php", "language": "php", "file_size": 4088, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Exception\\ProviderException;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nclass ProviderExceptionTest extends TestCase\n{\n public function testExc", "suffix": " $this->assertSame('debug', $exception->getDebug());\n }\n\n public function testExceptionWithNullAsDebugMessage()\n {\n $mock = $this->createStub(ResponseInterface::class);\n $mock->method('getInfo')->willReturn(null);\n\n $except", "middle": "eptionWithDebugMessage()\n {\n $mock = $this->createStub(ResponseInterface::class);\n $mock->method('getInfo')->willReturn('debug');\n\n $exception = new ProviderException('Exception message', $mock, 503);\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Exception/ProviderExceptionTest.php", "language": "php", "file_size": 1128, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClassExistsMock;\nuse Symfony\\Component\\Translation\\Bridge\\Crowdin\\CrowdinProviderFactory;\nuse Symfony\\Component\\Translation\\Bridge\\Loco\\LocoProviderFa", "suffix": "Symfony\\Component\\Translation\\Provider\\Dsn;\n\n#[RunTestsInSeparateProcesses]\nfinal class UnsupportedSchemeExceptionTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n ClassExistsMock::register(__CLASS__);\n ClassE", "middle": "ctory;\nuse Symfony\\Component\\Translation\\Bridge\\Lokalise\\LokaliseProviderFactory;\nuse Symfony\\Component\\Translation\\Bridge\\Phrase\\PhraseProviderFactory;\nuse Symfony\\Component\\Translation\\Exception\\UnsupportedSchemeException;\nuse ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Exception/UnsupportedSchemeExceptionTest.php", "language": "php", "file_size": 3314, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Provider;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Provider\\FilteringProvider;\nuse Symfony\\Component\\Translation\\Provider\\ProviderInterface;\nuse Symfony\\Component\\Translation\\TranslatorBag;\n\nclass FilteringPr", "suffix": "er->expects($this->once())\n ->method('read')\n ->with(['messages'], ['en', 'fr'])\n ->willReturn($expectedBag);\n\n $filteringProvider = new FilteringProvider(\n $innerProvider,\n ['en', 'fr', null, '", "middle": "oviderTest extends TestCase\n{\n public function testReadDelegatesWithFilteredLocales()\n {\n $innerProvider = $this->createMock(ProviderInterface::class);\n $expectedBag = new TranslatorBag();\n $innerProvid", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Provider/FilteringProviderTest.php", "language": "php", "file_size": 1209, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Writer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\DumperInterface;\nuse Symfony\\Component\\Translation\\Dumper\\XliffFileDumper;\nuse Symfony\\Component\\Translation\\Dumper\\YamlFileDumper;\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentExcept", "suffix": " public function testWrite()\n {\n $dumper = $this->createMock(DumperInterface::class);\n $dumper\n ->expects($this->once())\n ->method('dump');\n\n $writer = new TranslationWriter();\n $writer->addDumper('test", "middle": "ion;\nuse Symfony\\Component\\Translation\\Exception\\RuntimeException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\Writer\\TranslationWriter;\n\nclass TranslationWriterTest extends TestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Writer/TranslationWriterTest.php", "language": "php", "file_size": 2226, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Util\\ArrayConverter;\n\nclass ArrayConverterTest extends TestCase\n{\n #[DataProvider('messagesData')]\n public function testDump($input, $expectedOutput)\n ", "suffix": " 'foo1' => 'bar',\n 'foo.bar' => 'value',\n ],\n // expected output\n [\n 'foo1' => 'bar',\n 'foo' => ['bar' => 'value'],\n ],\n ]", "middle": " {\n $this->assertEquals($expectedOutput, ArrayConverter::expandToTree($input));\n }\n\n public static function messagesData()\n {\n return [\n [\n // input\n [\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Util/ArrayConverterTest.php", "language": "php", "file_size": 2858, "cut_index": 563, "middle_length": 229}} {"prefix": "ction tests\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ntrans('double-quoted key'); ?>\ntrans(<<\ntrans(<<<'EOF'\nnowdoc key\nEOF\n); ?>\ntrans(\n \"double-quoted key with whitespace and escaped \\$\\n\\\" sequences\"\n); ?>\ntrans(\n 'single-quoted key with whitespace and nonescaped \\$\\n\\' sequences'\n); ?>\ntrans(<<\n\ntrans('concatenated'.' message'.<<\n\ntrans('other-domain-test-no-params-short-array', [], 'not_messages'); ?>", "middle": "th whitespace and escaped \\$\\n sequences\nEOF\n); ?>\ntrans(<<<'EOF'\nnowdoc key with whitespace and nonescaped \\$\\n sequences\nEOF\n); ?>\n\ntrans('single-quoted key with \"", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Fixtures/extractor-ast/translation.html.php", "language": "php", "file_size": 3247, "cut_index": 614, "middle_length": 229}} {"prefix": " translation message extraction tests\n 'isbn10',\n 'message' => 'custom Isbn message from attribute with options as array',\n ])]\n public string $isbn2;\n}\n\nclass Foo2\n{\n public function index()\n {\n $constraint1 = new Assert\\Isbn('isbn10', 'custom Isbn message'); ", "middle": "2')]\n public string $bar3;\n\n #[Assert\\Isbn('isbn10', 'custom Isbn message from attribute')] // no way to handle those arguments (not named, not in associative array).\n public string $isbn;\n\n #[Assert\\Isbn([\n 't", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Fixtures/extractor-ast/validator-constraints.php", "language": "php", "file_size": 1635, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Config\\Resource\\DirectoryResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceEx", "suffix": "enrb command\n $loader = new IcuResFileLoader();\n $resource = __DIR__.'/../Fixtures/resourcebundle/res';\n $catalogue = $loader->load($resource, 'en', 'domain1');\n\n $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1'))", "middle": "ception;\nuse Symfony\\Component\\Translation\\Loader\\IcuResFileLoader;\n\n#[RequiresPhpExtension('intl')]\nclass IcuResFileLoaderTest extends LocalizedTestCase\n{\n public function testLoad()\n {\n // resource is build using g", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/IcuResFileLoaderTest.php", "language": "php", "file_size": 1644, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\Translation\\Loader\\MoFi", "suffix": ", 'en', 'domain1');\n\n $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1'));\n $this->assertEquals('en', $catalogue->getLocale());\n $this->assertEquals([new FileResource($resource)], $catalogue->getResources());\n }\n\n p", "middle": "leLoader;\n\nclass MoFileLoaderTest extends TestCase\n{\n public function testLoad()\n {\n $loader = new MoFileLoader();\n $resource = __DIR__.'/../Fixtures/resources.mo';\n $catalogue = $loader->load($resource", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/MoFileLoaderTest.php", "language": "php", "file_size": 2466, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Provider;\n\nuse Symfony\\Component\\Translation\\Exception\\IncompleteDsnException;\n\nabstract class AbstractProviderFactory implements ProviderFactoryInterface\n{\n public function supports(Dsn $dsn): bool\n {\n return \\in_array($d", "suffix": "turn $dsn->getUser() ?? throw new IncompleteDsnException('User is not set.', $dsn->getScheme().'://'.$dsn->getHost());\n }\n\n protected function getPassword(Dsn $dsn): string\n {\n return $dsn->getPassword() ?? throw new IncompleteDsnException(", "middle": "sn->getScheme(), $this->getSupportedSchemes(), true);\n }\n\n /**\n * @return string[]\n */\n abstract protected function getSupportedSchemes(): array;\n\n protected function getUser(Dsn $dsn): string\n {\n re", "meta": {"filepath": "src/Symfony/Component/Translation/Provider/AbstractProviderFactory.php", "language": "php", "file_size": 1055, "cut_index": 513, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Provider;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Translation\\Provider\\Dsn;\nuse Symfony\\Component\\Translation\\Provider\\NullProvider;\nuse Symfony", "suffix": "ception()\n {\n $this->expectException(UnsupportedSchemeException::class);\n\n (new NullProviderFactory())->create(new Dsn('foo://localhost'));\n }\n\n public function testCreate()\n {\n $this->assertInstanceOf(NullProvider::class, ", "middle": "\\Component\\Translation\\Provider\\NullProviderFactory;\n\n/**\n * @author Mathieu Santostefano \n */\nclass NullProviderFactoryTest extends TestCase\n{\n public function testCreateThrowsUnsupportedSchemeEx", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Provider/NullProviderFactoryTest.php", "language": "php", "file_size": 1070, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Translation\\DataCollector\\TranslationDataCollector;\nuse Symfony\\Component\\Translation\\DataCollectorTranslator;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nus", "suffix": "ator(new Translator('en')));\n $dataCollector->lateCollect();\n\n $this->assertEquals(0, $dataCollector->getCountMissings());\n $this->assertEquals(0, $dataCollector->getCountFallbacks());\n $this->assertEquals(0, $dataCollector->get", "middle": "e Symfony\\Component\\Translation\\Translator;\n\nclass TranslationDataCollectorTest extends TestCase\n{\n public function testCollectEmptyMessages()\n {\n $dataCollector = new TranslationDataCollector(new DataCollectorTransl", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/DataCollector/TranslationDataCollectorTest.php", "language": "php", "file_size": 4626, "cut_index": 614, "middle_length": 229}} {"prefix": " translation message extraction tests\n\n\n\n\n\n\n\n\n\n\n\ntrans('single-quoted key'); ?>\ntrans('double-quoted key'); ?>\ntrans(<<\ntrans(<<<'EOF'\nnowdoc key\nEOF\n); ?>\ntrans(\n \"double-quoted key with whitespace and escaped \\$\\n\\\" sequences\"\n); ?>\ntrans(\n 'single-quoted key with whitespace and nonescaped \\$\\n\\'", "suffix": "es\nEOF\n); ?>\n\ntrans('single-quoted key with \"quote mark at the end\"'); ?>\n\ntrans('concatenated'.' message'.<<\n\n\ntrans(<<\ntrans(<<<'EOF'\nnowdoc key with whitespace and nonescaped \\$\\n sequenc", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Fixtures/extractor/translation.html.php", "language": "php", "file_size": 1603, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Compone", "suffix": "ogue = $loader->load($resource, 'en', 'domain1');\n\n $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1'));\n $this->assertEquals('en', $catalogue->getLocale());\n $this->assertEquals([new FileResource($resource)], $catalogue-", "middle": "nt\\Translation\\Loader\\CsvFileLoader;\n\nclass CsvFileLoaderTest extends TestCase\n{\n public function testLoad()\n {\n $loader = new CsvFileLoader();\n $resource = __DIR__.'/../Fixtures/resources.csv';\n $catal", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php", "language": "php", "file_size": 1916, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Compone", "suffix": "atalogue = $loader->load($resource, 'en', 'domain1');\n\n $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1'));\n $this->assertEquals('en', $catalogue->getLocale());\n $this->assertEquals([new FileResource($resource)], $catalo", "middle": "nt\\Translation\\Loader\\JsonFileLoader;\n\nclass JsonFileLoaderTest extends TestCase\n{\n public function testLoad()\n {\n $loader = new JsonFileLoader();\n $resource = __DIR__.'/../Fixtures/resources.json';\n $c", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/JsonFileLoaderTest.php", "language": "php", "file_size": 2015, "cut_index": 537, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\Config\\Resource\\SelfCheckingResourceInterface;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\Translator;\n\nclass TranslatorCacheTest extends TestCase\n{\n protected string $tmpDir;\n\n protected function setUp(): void\n {\n $this->tmpDir = sys_get_temp_dir().'/sf_translation';\n $this->deleteTmpDir();\n }\n\n protecte", "suffix": "veIteratorIterator(new \\RecursiveDirectoryIterator($this->tmpDir), \\RecursiveIteratorIterator::CHILD_FIRST);\n foreach ($iterator as $path) {\n if (preg_match('#[/\\\\\\\\]\\.\\.?$#', $path->__toString())) {\n continue;\n ", "middle": "d function tearDown(): void\n {\n $this->deleteTmpDir();\n }\n\n protected function deleteTmpDir()\n {\n if (!file_exists($dir = $this->tmpDir)) {\n return;\n }\n\n $iterator = new \\Recursi", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/TranslatorCacheTest.php", "language": "php", "file_size": 12882, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Provider;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Provider\\NullProvider;\nuse Symfony\\Component\\Translation\\Provider\\TranslationProviderCollection;\n\nclass TranslationProviderCollectionTest extends TestCase\n{\n public function", "suffix": "llection(\n (static function () {\n yield 'foo' => new NullProvider();\n\n yield 'baz' => new NullProvider();\n })()\n ))->keys());\n }\n\n public function testToString()\n {\n $this->assertSa", "middle": " testKeys()\n {\n $this->assertSame(['foo', 'baz'], $this->createProviderCollection()->keys());\n }\n\n public function testKeysWithGenerator()\n {\n $this->assertSame(['foo', 'baz'], (new TranslationProviderCo", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Provider/TranslationProviderCollectionTest.php", "language": "php", "file_size": 1982, "cut_index": 537, "middle_length": 229}} {"prefix": "e is used for translation message extraction tests\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException;\nuse Symfony\\Component\\", "suffix": "ion::class);\n\n (new IcuDatFileLoader())->load(__DIR__.'/../Fixtures/resourcebundle/corrupted/resources', 'es', 'domain2');\n }\n\n public function testDatEnglishLoad()\n {\n // bundled resource is build using pkgdata command which at leas", "middle": "Translation\\Loader\\IcuDatFileLoader;\n\n#[RequiresPhpExtension('intl')]\nclass IcuDatFileLoaderTest extends LocalizedTestCase\n{\n public function testLoadInvalidResource()\n {\n $this->expectException(InvalidResourceExcept", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Loader/IcuDatFileLoaderTest.php", "language": "php", "file_size": 2440, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Util\\XliffUtils;\n\nclass XliffUtilsTest extends TestCase\n{\n #[DataProvider('providePaths')]\n public function testGetFileUrlEncodesPathSegments(string $path, string $expected)\n {\n $method = new \\ReflectionMethod(XliffUtils::class, 'getFileUrl');\n\n $this->assertSame($expected, $method->invok", "suffix": "s may contain spaces. Without rawurlencode, the\n // resulting `file:///` URL is syntactically invalid and triggers a\n // libxml \"Invalid Schema\" warning when fed to schemaValidateSource().\n yield 'POSIX path with spaces' => [\n ", "middle": "e(null, $path));\n }\n\n public static function providePaths(): iterable\n {\n yield 'plain POSIX path' => [\n '/tmp/symfony123',\n 'file:////tmp/symfony123',\n ];\n\n // Windows username", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Util/XliffUtilsTest.php", "language": "php", "file_size": 5912, "cut_index": 716, "middle_length": 229}} {"prefix": " translation message extraction tests\n\n\n\n\n\n\n\n\n\n\n\ndefaultLocale = \\Locale::getDefault();\n \\Locale::setDefault('en');\n }\n\n protected function tearDown(): void\n {\n \\Locale::setDefault($this->defaultLocale);\n ", "suffix": "taProvider('getValidLocalesTests')]\n public function testConstructorValidLocale($locale)\n {\n $translator = new Translator($locale);\n\n $this->assertSame($locale ?: (class_exists(\\Locale::class) ? \\Locale::getDefault() : 'en'), $translato", "middle": " }\n\n #[DataProvider('getInvalidLocalesTests')]\n public function testConstructorInvalidLocale($locale)\n {\n $this->expectException(InvalidArgumentException::class);\n new Translator($locale);\n }\n\n #[Da", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/TranslatorTest.php", "language": "php", "file_size": 24240, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\JsonFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass JsonFileDumperTest extends TestCase\n{\n public function testFormatCatalogue", "suffix": "formatCatalogue($catalogue, 'messages'));\n }\n\n public function testDumpWithCustomEncoding()\n {\n $catalogue = new MessageCatalogue('en');\n $catalogue->add(['foo' => '\"bar\"']);\n\n $dumper = new JsonFileDumper();\n\n $this->a", "middle": "()\n {\n $catalogue = new MessageCatalogue('en');\n $catalogue->add(['foo' => 'bar']);\n\n $dumper = new JsonFileDumper();\n\n $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.json', $dumper->", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php", "language": "php", "file_size": 1165, "cut_index": 518, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\PhpFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass PhpFileDumperTest extends TestCase\n{\n public function testFormatCatalog", "suffix": " $catalogue = new MessageCatalogue('en');\n $catalogue->add(['foo' => 'bar']);\n\n $dumper = new PhpFileDumper();\n\n $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.php', $dumper->formatCatalogue($catalogue, 'messages'));", "middle": "ue()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php", "language": "php", "file_size": 793, "cut_index": 514, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\QtFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass QtFileDumperTest extends TestCase\n{\n public function testFormatCatalogue()\n {\n ", "suffix": " 'Comment 1',\n 'Comment 2',\n ],\n 'flags' => [\n 'fuzzy',\n 'another',\n ],\n 'sources' => [\n 'src/file_1',\n 'src/file_2:50',\n ", "middle": " $catalogue = new MessageCatalogue('en');\n $catalogue->add(['foo' => 'bar', 'foo_bar' => 'foobar', 'bar_foo' => 'barfoo'], 'resources');\n $catalogue->setMetadata('foo_bar', [\n 'comments' => [\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php", "language": "php", "file_size": 1395, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Translation\\DataCollector\\TranslationDataCollector;\nuse Symfony\\Component\\Translation\\DataColl", "suffix": "orPassTest extends TestCase\n{\n private ContainerBuilder $container;\n private DataCollectorTranslatorPass $dataCollectorTranslatorPass;\n\n protected function setUp(): void\n {\n $this->container = new ContainerBuilder();\n $this->dataC", "middle": "ectorTranslator;\nuse Symfony\\Component\\Translation\\DependencyInjection\\DataCollectorTranslatorPass;\nuse Symfony\\Component\\Translation\\Translator;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass DataCollectorTranslat", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/DependencyInjection/DataCollectorTranslatorPassTest.php", "language": "php", "file_size": 4324, "cut_index": 614, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\MoFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass MoFileDumperTest extends TestCase\n{\n public function testFormatCatalogue", "suffix": " $catalogue = new MessageCatalogue('en');\n $catalogue->add(['foo' => 'bar']);\n\n $dumper = new MoFileDumper();\n\n $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.mo', $dumper->formatCatalogue($catalogue, 'messages'));\n ", "middle": "()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php", "language": "php", "file_size": 789, "cut_index": 514, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\XliffFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass XliffFileDumperTest extends TestCase\n{\n public function testFormatCatalogue()\n {\n $catalogue = new MessageCatalogue('en_US');\n $catalogue->add([\n 'foo' => 'bar',\n 'key' => '',\n 'key.with.cdata' => ' & ',\n ", "suffix": " $dumper = new XliffFileDumper();\n\n $this->assertStringEqualsFile(\n __DIR__.'/../Fixtures/resources-clean.xlf',\n $dumper->formatCatalogue($catalogue, 'messages', ['default_locale' => 'fr_FR'])\n );\n }\n\n public funct", "middle": " ]);\n $catalogue->setMetadata('foo', ['notes' => [['priority' => 1, 'from' => 'bar', 'content' => 'baz']]]);\n $catalogue->setMetadata('key', ['notes' => [['content' => 'baz'], ['content' => 'qux']]]);\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php", "language": "php", "file_size": 6777, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\YamlFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass YamlFileDumperTest extends TestCase\n{\n public function testTreeFormatCatalogue()", "suffix": "StringEqualsFile(__DIR__.'/../Fixtures/messages.yml', $dumper->formatCatalogue($catalogue, 'messages', ['as_tree' => true, 'inline' => 999]));\n }\n\n public function testLinearFormatCatalogue()\n {\n $catalogue = new MessageCatalogue('en');\n ", "middle": "\n {\n $catalogue = new MessageCatalogue('en');\n $catalogue->add([\n 'foo.bar1' => 'value1',\n 'foo.bar2' => 'value2',\n ]);\n\n $dumper = new YamlFileDumper();\n\n $this->assert", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php", "language": "php", "file_size": 1299, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Dumper\\PoFileDumper;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\nclass PoFileDumperTest extends TestCase\n{\n public function testFormatCatalogue()\n {\n $catal", "suffix": "'Comment 1',\n 'Comment 2',\n ],\n 'flags' => [\n 'fuzzy',\n 'another',\n ],\n 'sources' => [\n 'src/file_1',\n 'src/file_2:50',\n ],\n ", "middle": "ogue = new MessageCatalogue('en');\n $catalogue->add(['foo' => 'bar', 'bar' => 'foo', 'foo_bar' => 'foobar', 'bar_foo' => 'barfoo']);\n $catalogue->setMetadata('foo_bar', [\n 'comments' => [\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php", "language": "php", "file_size": 1797, "cut_index": 537, "middle_length": 229}} {"prefix": "ng=\"utf-8\"?>\n \n \n

\n \n
\n \n \n a\n trans_en_a\n \n ", "suffix": "xliff:document:1.2\" version=\"1.2\">\n \n
\n \n
\n ", "middle": " \n
\n \n\n XLIFF;\n\n $expectedValidatorsFileContent = <<<'XLIFF'\n \n \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * IcuResDumper generates an ICU ResourceBundle formatted string representation of a message catalogue.\n *\n * @author Stealth35\n */\nclass IcuResFileDumper extends FileDumper\n{\n protected string $relativePathTemplate ", "suffix": "domain) as $source => $target) {\n $indexes .= pack('v', \\strlen($data) + 28);\n $data .= $source.\"\\0\";\n }\n\n $data .= $this->writePadding($data);\n\n $keyTop = $this->getPosition($data);\n\n foreach ($messages->a", "middle": "= '%domain%/%locale%.%extension%';\n\n public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string\n {\n $data = $indexes = $resources = '';\n\n foreach ($messages->all($", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/IcuResFileDumper.php", "language": "php", "file_size": 2909, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * IniFileDumper generates an ini formatted string representation of a message catalogue.\n *\n * @author Stealth35\n */\nclass IniFileDumper extends FileDumper\n{\n public function formatCatalogue(MessageCatalogue $messages, string $domain,", "suffix": "= '';\n\n foreach ($messages->all($domain) as $source => $target) {\n $escapeTarget = str_replace('\"', '\\\"', $target);\n $output .= $source.'=\"'.$escapeTarget.\"\\\"\\n\";\n }\n\n return $output;\n }\n\n protected function", "middle": " array $options = []): string\n {\n $output ", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/IniFileDumper.php", "language": "php", "file_size": 950, "cut_index": 582, "middle_length": 52}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * JsonFileDumper generates an json formatted string representation of a message catalogue.\n *\n * @author singles\n */\nclass JsonFileDumper extends FileDumper\n{\n public funct", "suffix": "ng $domain, array $options = []): string\n {\n $flags = $options['json_encoding'] ?? \\JSON_PRETTY_PRINT;\n\n return json_encode($messages->all($domain), $flags);\n }\n\n protected function getExtension(): string\n {\n return 'json';", "middle": "ion formatCatalogue(MessageCatalogue $messages, stri", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/JsonFileDumper.php", "language": "php", "file_size": 837, "cut_index": 520, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\Loader\\MoFileLoader;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * MoFileDumper generates a gettext formatted string representation of a message catalogue.\n *\n * @author Stealth35\n */\nclass MoFileDumper extends FileDumper\n{\n ", "suffix": " foreach ($messages->all($domain) as $source => $target) {\n $offsets[] = array_map('strlen', [$sources, $source, $targets, $target]);\n $sources .= \"\\0\".$source;\n $targets .= \"\\0\".$target;\n ++$size;\n }\n\n ", "middle": "public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string\n {\n $sources = $targets = $sourceOffsets = $targetOffsets = '';\n $offsets = [];\n $size = 0;\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/MoFileDumper.php", "language": "php", "file_size": 2243, "cut_index": 563, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * PhpFileDumper generates PHP files from a message catalogue.\n *\n * @author Michel Salib \n */\nclass PhpFileDumper extends FileDumper\n{\n publi", "suffix": "matCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string\n {\n return \"all($domain), true).\";\\n\";\n }\n\n protected function getExtension(): string\n {\n return 'php';\n", "middle": "c function for", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/PhpFileDumper.php", "language": "php", "file_size": 792, "cut_index": 514, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * PoFileDumper generates a gettext formatted string representation of a message catalogue.\n *\n * @author Stealth35\n */\nclass PoFileDumper extends FileDumper\n{\n public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string\n ", "suffix": " '\"Language: '.$messages->getLocale().'\\n\"'.\"\\n\";\n $output .= \"\\n\";\n\n $newLine = false;\n foreach ($messages->all($domain) as $source => $target) {\n if ($newLine) {\n $output .= \"\\n\";\n } else {\n ", "middle": " {\n $output = 'msgid \"\"'.\"\\n\";\n $output .= 'msgstr \"\"'.\"\\n\";\n $output .= '\"Content-Type: text/plain; charset=UTF-8\\n\"'.\"\\n\";\n $output .= '\"Content-Transfer-Encoding: 8bit\\n\"'.\"\\n\";\n $output .=", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/PoFileDumper.php", "language": "php", "file_size": 4137, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * QtFileDumper generates ts files from a message catalogue.\n *\n * @author Benjamin Eberlei \n */\nclass QtFileDumper extends FileDumper\n{\n public function formatCatalogue", "suffix": " $context = $ts->appendChild($dom->createElement('context'));\n $context->appendChild($dom->createElement('name', $domain));\n\n foreach ($messages->all($domain) as $source => $target) {\n $message = $context->appendChild($dom->creat", "middle": "(MessageCatalogue $messages, string $domain, array $options = []): string\n {\n $dom = new \\DOMDocument('1.0', 'utf-8');\n $dom->formatOutput = true;\n $ts = $dom->appendChild($dom->createElement('TS'));\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/QtFileDumper.php", "language": "php", "file_size": 1884, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/**\n * XliffFileDumper generates xliff files from a message catalogue.\n *\n * @author Michel Salib \n */\nclass XliffFileDumper extends FileDumper\n{\n public function __construct(\n private string $extension = 'xlf',\n ) {\n }\n\n public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string\n {\n $xliffVersion = '1.2';\n if (\\array_key_exists('xliff_version', $options)) {\n $xliffVersion = $options['xliff", "suffix": "if ('1.2' === $xliffVersion) {\n return $this->dumpXliff1($defaultLocale, $messages, $domain, $options);\n }\n if ('2.0' === $xliffVersion) {\n return $this->dumpXliff2($defaultLocale, $messages, $domain);\n }\n\n ", "middle": "_version'];\n }\n\n if (\\array_key_exists('default_locale', $options)) {\n $defaultLocale = $options['default_locale'];\n } else {\n $defaultLocale = \\Locale::getDefault();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/XliffFileDumper.php", "language": "php", "file_size": 9480, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\Exception\\LogicException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\Util\\ArrayConverter;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * YamlFileDumper generates yaml", "suffix": "blic function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string\n {\n if (!class_exists(Yaml::class)) {\n throw new LogicException('Dumping translations in the YAML format requires the Symfony Yaml c", "middle": " files from a message catalogue.\n *\n * @author Michel Salib \n */\nclass YamlFileDumper extends FileDumper\n{\n public function __construct(\n private string $extension = 'yml',\n ) {\n }\n\n pu", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/YamlFileDumper.php", "language": "php", "file_size": 1485, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\n\n/**\n * @author Christian ", "suffix": ")) {\n return;\n }\n\n $translatorClass = $container->getParameterBag()->resolveValue($container->findDefinition('translator')->getClass());\n\n if (!is_subclass_of($translatorClass, TranslatorBagInterface::class)) {\n $", "middle": "Flothmann \n */\nclass DataCollectorTranslatorPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->has('translator'", "meta": {"filepath": "src/Symfony/Component/Translation/DependencyInjection/DataCollectorTranslatorPass.php", "language": "php", "file_size": 1151, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\TranslatorBagInte", "suffix": "uilder $container): void\n {\n if (!$container->hasAlias('logger') || !$container->hasAlias('translator')) {\n return;\n }\n\n if (!$container->hasParameter('translator.logging') || !$container->getParameter('translator.logging", "middle": "rface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * @author Abdellatif Ait boudad \n */\nclass LoggingTranslatorPass implements CompilerPassInterface\n{\n public function process(ContainerB", "meta": {"filepath": "src/Symfony/Component/Translation/DependencyInjection/LoggingTranslatorPass.php", "language": "php", "file_size": 2357, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Adds tagged translat", "suffix": "tion.writer')) {\n return;\n }\n\n $definition = $container->getDefinition('translation.writer');\n\n foreach ($container->findTaggedServiceIds('translation.dumper', true) as $id => $attributes) {\n $definition->addMetho", "middle": "ion.formatter services to translation writer.\n */\nclass TranslationDumperPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('transla", "meta": {"filepath": "src/Symfony/Component/Translation/DependencyInjection/TranslationDumperPass.php", "language": "php", "file_size": 1085, "cut_index": 515, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Adds tagged translat", "suffix": "ranslation.extractor')) {\n return;\n }\n\n $definition = $container->getDefinition('translation.extractor');\n\n foreach ($container->findTaggedServiceIds('translation.extractor', true) as $id => $attributes) {\n $defin", "middle": "ion.extractor services to translation extractor.\n */\nclass TranslationExtractorPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('t", "meta": {"filepath": "src/Symfony/Component/Translation/DependencyInjection/TranslationExtractorPass.php", "language": "php", "file_size": 1110, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass TranslatorPass implements CompilerPassInterfac", "suffix": "ach ($container->findTaggedServiceIds('translation.loader', true) as $id => $attributes) {\n $loaderRefs[$id] = new Reference($id);\n $loaders[$id][] = $attributes[0]['alias'];\n if (isset($attributes[0]['legacy-alias'])) {\n ", "middle": "e\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('translator.default')) {\n return;\n }\n\n $loaders = [];\n $loaderRefs = [];\n fore", "meta": {"filepath": "src/Symfony/Component/Translation/DependencyInjection/TranslatorPass.php", "language": "php", "file_size": 3769, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AbstractRecursivePass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Com", "suffix": " private int $level = 0;\n\n /**\n * @var array\n */\n private array $paths = [];\n\n /**\n * @var array\n */\n private array $definitions = [];\n\n /**\n * @var array>\n *", "middle": "ponent\\HttpKernel\\Controller\\ArgumentResolver\\TraceableValueResolver;\n\n/**\n * @author Yonel Ceruto \n */\nclass TranslatorPathsPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n ", "meta": {"filepath": "src/Symfony/Component/Translation/DependencyInjection/TranslatorPathsPass.php", "language": "php", "file_size": 4812, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Extractor;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\n\n/**\n * Base class used by classes that extract translation messages from files.\n *\n * @author Marcos D. Sánchez \n */\nabstract class AbstractFileExtrac", "suffix": "ted($file)) {\n $files[] = $this->toSplFileInfo($file);\n }\n }\n } elseif (is_file($resource)) {\n $files = $this->canBeExtracted($resource) ? [$this->toSplFileInfo($resource)] : [];\n } else", "middle": "tor\n{\n protected function extractFiles(string|iterable $resource): iterable\n {\n if (is_iterable($resource)) {\n $files = [];\n foreach ($resource as $file) {\n if ($this->canBeExtrac", "meta": {"filepath": "src/Symfony/Component/Translation/Extractor/AbstractFileExtractor.php", "language": "php", "file_size": 1683, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Extractor;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * ChainExtractor extracts translation messages from template files.\n *\n * @author Michel Salib \n */\nclass ChainExtractor implements ExtractorInterface\n", "suffix": "mat, ExtractorInterface $extractor): void\n {\n $this->extractors[$format] = $extractor;\n }\n\n public function setPrefix(string $prefix): void\n {\n foreach ($this->extractors as $extractor) {\n $extractor->setPrefix($prefix)", "middle": "{\n /**\n * The extractors.\n *\n * @var ExtractorInterface[]\n */\n private array $extractors = [];\n\n /**\n * Adds a loader to the translation extractor.\n */\n public function addExtractor(string $for", "meta": {"filepath": "src/Symfony/Component/Translation/Extractor/ChainExtractor.php", "language": "php", "file_size": 1252, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Extractor;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * Extracts translation messages from a directory or files to the catalogue.\n * New found messages are injected to the catalogue using the prefix.\n *\n * @author Mich", "suffix": "a file or a directory\n */\n public function extract(string|iterable $resource, MessageCatalogue $catalogue): void;\n\n /**\n * Sets the prefix that should be used for new found messages.\n */\n public function setPrefix(string $prefix): void", "middle": "el Salib \n */\ninterface ExtractorInterface\n{\n /**\n * Extracts translation messages from files, a file or a directory to the catalogue.\n *\n * @param string|iterable $resource Files, ", "meta": {"filepath": "src/Symfony/Component/Translation/Extractor/ExtractorInterface.php", "language": "php", "file_size": 1001, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Extractor;\n\nuse PhpParser\\NodeTraverser;\nuse PhpParser\\NodeVisitor;\nuse PhpParser\\Parser;\nuse PhpParser\\ParserFactory;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Translation\\Extractor\\Visitor\\AbstractVisitor;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * ", "suffix": "vate Parser $parser;\n\n public function __construct(\n /**\n * @param iterable $visitors\n */\n private readonly iterable $visitors,\n private string $prefix = '',\n ) {\n if (!class_ex", "middle": "PhpAstExtractor extracts translation messages from a PHP AST.\n *\n * @author Mathieu Santostefano \n */\nfinal class PhpAstExtractor extends AbstractFileExtractor implements ExtractorInterface\n{\n pri", "meta": {"filepath": "src/Symfony/Component/Translation/Extractor/PhpAstExtractor.php", "language": "php", "file_size": 2886, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Extractor\\Visitor;\n\nuse PhpParser\\Node;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * @author Mathieu Santostefano \n */\nabstract class AbstractVisitor\n{\n private MessageCatalogue $catalogue;\n private \\SplFileInfo $file;\n private string $messagePrefix;\n\n public function initialize", "suffix": " addMessageToCatalogue(string $message, ?string $domain, int $line): void\n {\n $domain ??= 'messages';\n $this->catalogue->set($message, $this->messagePrefix.$message, $domain);\n $metadata = $this->catalogue->getMetadata($message, $do", "middle": "(MessageCatalogue $catalogue, \\SplFileInfo $file, string $messagePrefix): void\n {\n $this->catalogue = $catalogue;\n $this->file = $file;\n $this->messagePrefix = $messagePrefix;\n }\n\n protected function", "meta": {"filepath": "src/Symfony/Component/Translation/Extractor/Visitor/AbstractVisitor.php", "language": "php", "file_size": 4526, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Extractor\\Visitor;\n\nuse PhpParser\\Node;\nuse PhpParser\\NodeVisitor;\n\n/**\n * @author Mathieu Santostefano \n *\n * Code mostly comes from https://github.com/php-translation/extractor/blob/master/src/Visitor/Php/Symfony/Constraint.php\n */\nfinal class Constrain", "suffix": " return null;\n }\n\n public function enterNode(Node $node): ?Node\n {\n return null;\n }\n\n public function leaveNode(Node $node): ?Node\n {\n if (!$node instanceof Node\\Expr\\New_ && !$node instanceof Node\\Attribute) {\n ", "middle": "tVisitor extends AbstractVisitor implements NodeVisitor\n{\n public function __construct(\n private readonly array $constraintClassNames = [],\n ) {\n }\n\n public function beforeTraverse(array $nodes): ?Node\n {\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Extractor/Visitor/ConstraintVisitor.php", "language": "php", "file_size": 2879, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Extractor\\Visitor;\n\nuse PhpParser\\Node;\nuse PhpParser\\NodeVisitor;\n\n/**\n * @author Mathieu Santostefano \n */\nfinal class TransMethodVisitor extends AbstractVisitor implements NodeVisitor\n{\n public function beforeTraverse(array", "suffix": "ethodCall && !$node instanceof Node\\Expr\\FuncCall) {\n return null;\n }\n\n if (!\\is_string($node->name) && !$node->name instanceof Node\\Identifier && !$node->name instanceof Node\\Name) {\n return null;\n }\n\n $na", "middle": " $nodes): ?Node\n {\n return null;\n }\n\n public function enterNode(Node $node): ?Node\n {\n return null;\n }\n\n public function leaveNode(Node $node): ?Node\n {\n if (!$node instanceof Node\\Expr\\M", "meta": {"filepath": "src/Symfony/Component/Translation/Extractor/Visitor/TransMethodVisitor.php", "language": "php", "file_size": 1783, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Extractor\\Visitor;\n\nuse PhpParser\\Node;\nuse PhpParser\\NodeVisitor;\n\n/**\n * @author Mathieu Santostefano \n */\nfinal class TranslatableMessageVisitor extends AbstractVisitor implements NodeVisitor\n{\n public function beforeTraver", "suffix": "e\\Expr\\New_) {\n return null;\n }\n\n if (!($className = $node->class) instanceof Node\\Name) {\n return null;\n }\n\n if (!\\in_array('TranslatableMessage', $className->getParts(), true)) {\n return null;\n", "middle": "se(array $nodes): ?Node\n {\n return null;\n }\n\n public function enterNode(Node $node): ?Node\n {\n return null;\n }\n\n public function leaveNode(Node $node): ?Node\n {\n if (!$node instanceof Nod", "meta": {"filepath": "src/Symfony/Component/Translation/Extractor/Visitor/TranslatableMessageVisitor.php", "language": "php", "file_size": 1619, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset;\n\nuse Symfony\\Component\\Asset\\Context\\ContextInterface;\nuse Symfony\\Component\\Asset\\Context\\NullContext;\nuse Symfony\\Component\\Asset\\VersionStrategy\\VersionStrategyInterface;\n\n/**\n * Basic package that adds a version to asset URLs.\n *\n * @author Kris Wallsmith context = $context ?? new NullContext();\n }\n\n public function getVersion(string $path): string\n {\n return $this->versionStrategy->getVersion($path);\n }\n\n ", "middle": "s@symfony.com>\n * @author Fabien Potencier \n */\nclass Package implements PackageInterface\n{\n private ContextInterface $context;\n\n public function __construct(\n private VersionStrategyInterface $ve", "meta": {"filepath": "src/Symfony/Component/Asset/Package.php", "language": "php", "file_size": 1584, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset;\n\nuse Symfony\\Component\\Asset\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Asset\\Exception\\LogicException;\n\n/**\n * Helps manage asset URLs.\n *\n * @author Fabien Potencier \n * @author Kris Wallsmith \n */\nclass Packages\n{\n private array $p", "suffix": " [],\n ) {\n foreach ($packages as $name => $package) {\n $this->addPackage($name, $package);\n }\n }\n\n public function setDefaultPackage(PackageInterface $defaultPackage): void\n {\n $this->defaultPackage = $defaultPac", "middle": "ackages = [];\n\n /**\n * @param PackageInterface[] $packages Additional packages indexed by name\n */\n public function __construct(\n private ?PackageInterface $defaultPackage = null,\n iterable $packages =", "meta": {"filepath": "src/Symfony/Component/Asset/Packages.php", "language": "php", "file_size": 2868, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset;\n\nuse Symfony\\Component\\Asset\\Context\\ContextInterface;\nuse Symfony\\Component\\Asset\\VersionStrategy\\VersionStrategyInterface;\n\n/**\n * Package that adds a base path to asset URLs in addition to a version.\n *\n * In addition to the provided base path, this package als", "suffix": "fony.com>\n */\nclass PathPackage extends Package\n{\n private string $basePath;\n\n /**\n * @param string $basePath The base path to be prepended to relative paths\n */\n public function __construct(string $basePath, VersionStrategyInterface $vers", "middle": "o automatically\n * prepends the current request base path if a Context is available to\n * allow a website to be hosted easily under any given path under the Web\n * Server root directory.\n *\n * @author Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Exception;\n\n/**\n * Represents an asset not found in a manifest.\n */\nclass AssetNotFoundException extends RuntimeException\n{\n /**\n * @param string $message Exception message to throw\n * @param array $alternatives Lis", "suffix": "essage,\n private array $alternatives = [],\n int $code = 0,\n ?\\Throwable $previous = null,\n ) {\n parent::__construct($message, $code, $previous);\n }\n\n public function getAlternatives(): array\n {\n return $this->", "middle": "t of similar defined names\n * @param int $code Exception code\n * @param \\Throwable $previous Previous exception used for the exception chaining\n */\n public function __construct(\n string $m", "meta": {"filepath": "src/Symfony/Component/Asset/Exception/AssetNotFoundException.php", "language": "php", "file_size": 1019, "cut_index": 512, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Context;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\n\n/**\n * Uses a RequestStack to populate the context.\n *\n * @author Fabien Potencier \n */\nclass RequestStackContext implements ContextInterface\n{\n public functi", "suffix": "->requestStack->getMainRequest()) {\n return $this->basePath;\n }\n\n return $request->getBasePath();\n }\n\n public function isSecure(): bool\n {\n if (!$request = $this->requestStack->getMainRequest()) {\n return", "middle": "on __construct(\n private RequestStack $requestStack,\n private string $basePath = '',\n private bool $secure = false,\n ) {\n }\n\n public function getBasePath(): string\n {\n if (!$request = $this", "meta": {"filepath": "src/Symfony/Component/Asset/Context/RequestStackContext.php", "language": "php", "file_size": 1072, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\VersionStrategy;\n\nuse Symfony\\Component\\Asset\\Exception\\AssetNotFoundException;\nuse Symfony\\Component\\Asset\\Exception\\LogicException;\nuse Symfony\\Component\\Asset\\Exception\\RuntimeException;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * Reads the versioned path of an asset from a JSON man", "suffix": "in.js\" or \"css/styles.css\".\n */\nclass JsonManifestVersionStrategy implements VersionStrategyInterface\n{\n private array $manifestData;\n\n /**\n * @param string $manifestPath Absolute path to the manifest file\n * @param bool $strictMode Throw", "middle": "ifest file.\n *\n * For example, the manifest file might look like this:\n * {\n * \"main.js\": \"main.abc123.js\",\n * \"css/styles.css\": \"css/styles.555abc.css\"\n * }\n *\n * You could then ask for the version of \"ma", "meta": {"filepath": "src/Symfony/Component/Asset/VersionStrategy/JsonManifestVersionStrategy.php", "language": "php", "file_size": 5405, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\VersionStrategy;\n\n/**\n * Returns the same version for all assets.\n *\n * @author Fabien Potencier \n */\nclass StaticVersionStrategy implements VersionStrategyInterface\n{\n private string $format;\n\n /**\n * @param string ", "suffix": "\n public function getVersion(string $path): string\n {\n return $this->version;\n }\n\n public function applyVersion(string $path): string\n {\n $versionized = \\sprintf($this->format, ltrim($path, '/'), $this->getVersion($path));\n\n ", "middle": "$version Version number\n * @param string $format Url format\n */\n public function __construct(\n private string $version,\n ?string $format = null,\n ) {\n $this->format = $format ?: '%s?%s';\n }\n", "meta": {"filepath": "src/Symfony/Component/Asset/VersionStrategy/StaticVersionStrategy.php", "language": "php", "file_size": 1126, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\Package;\nuse Symfony\\Component\\Asset\\VersionStrategy\\EmptyVersionStrategy;\nuse Symfony\\Component\\Asset\\VersionStrategy\\StaticVersionStrategy;\n\nclass P", "suffix": "w EmptyVersionStrategy());\n $this->assertSame($expected, $package->getUrl($path));\n }\n\n public static function getConfigs()\n {\n return [\n ['v1', '', 'http://example.com/foo', 'http://example.com/foo'],\n ['v1', '", "middle": "ackageTest extends TestCase\n{\n #[DataProvider('getConfigs')]\n public function testGetUrl($version, $format, $path, $expected)\n {\n $package = new Package($version ? new StaticVersionStrategy($version, $format) : ne", "meta": {"filepath": "src/Symfony/Component/Asset/Tests/PackageTest.php", "language": "php", "file_size": 1780, "cut_index": 537, "middle_length": 229}} {"prefix": "\\Translation\\Exception\\ProviderException;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\Provider\\ProviderInterface;\nuse Symfony\\Component\\Translation\\TranslatorBag;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Mathieu Santostefano \n *\n * In Loco:\n * * Tags refers to Symfony's translation domains\n * ", "suffix": "rface $client,\n private LoaderInterface $loader,\n private LoggerInterface $logger,\n private string $defaultLocale,\n private string $endpoint,\n private ?TranslatorBagInterface $translatorBag = null,\n private ?string", "middle": " * Assets refers to Symfony's translation keys\n * * Translations refers to Symfony's translated messages\n */\nfinal class LocoProvider implements ProviderInterface\n{\n public function __construct(\n private HttpClientInte", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Loco/LocoProvider.php", "language": "php", "file_size": 16664, "cut_index": 921, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Loco\\Tests;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Translation\\Bridge\\Loco\\LocoProviderFactory;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translati", "suffix": "viderFactoryWithoutTranslatorBagTest extends LocoProviderFactoryTest\n{\n public function createFactory(): ProviderFactoryInterface\n {\n return new LocoProviderFactory(new MockHttpClient(), new NullLogger(), 'en', new ArrayLoader(), null);\n }\n", "middle": "on\\Provider\\ProviderFactoryInterface;\n\nclass LocoPro", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderFactoryWithoutTranslatorBagTest.php", "language": "php", "file_size": 833, "cut_index": 523, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Loco\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Translation\\Bridge\\Loco\\LocoProvider;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\Loader\\XliffFileLoader;\nuse Symfony\\Component\\Translation\\Provider\\ProviderInterface;", "suffix": "iderWithoutTranslatorBagTest extends LocoProviderTest\n{\n public static function createProvider(HttpClientInterface $client, LoaderInterface $loader, LoggerInterface $logger, string $defaultLocale, string $endpoint, ?TranslatorBagInterface $translatorBag", "middle": "\nuse Symfony\\Component\\Translation\\TranslatorBag;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nclass LocoProv", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderWithoutTranslatorBagTest.php", "language": "php", "file_size": 5208, "cut_index": 716, "middle_length": 229}} {"prefix": "tostefano \n *\n * In Lokalise:\n * * Filenames refers to Symfony's translation domains;\n * * Keys refers to Symfony's translation keys;\n * * Translations refers to Symfony's translated messages\n */\nfinal class LokaliseProvider implements ProviderInterface\n{\n private const LOKALISE_GET_KEYS_LIMIT = 5000;\n private const PROJECT_TOO_BIG_STATUS_CODE = 413;\n private const FAILED_PROCESS_STATUS = ['cancelled', 'failed'];\n private const SUCESS_PROCESS_STATUS = 'finished';", "suffix": "oint,\n ) {\n }\n\n public function __toString(): string\n {\n return \\sprintf('lokalise://%s', $this->endpoint);\n }\n\n /**\n * Lokalise API recommends sending payload in chunks of up to 500 keys per request.\n *\n * @see https:/", "middle": "\n\n public function __construct(\n private HttpClientInterface $client,\n private LoaderInterface $loader,\n private LoggerInterface $logger,\n private string $defaultLocale,\n private string $endp", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Lokalise/LokaliseProvider.php", "language": "php", "file_size": 17852, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Lokalise\\Tests;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Translation\\Bridge\\Lokalise\\LokaliseProviderFactory;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;", "suffix": "IncompleteDsnTestTrait;\n\nclass LokaliseProviderFactoryTest extends AbstractProviderFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'lokalise://PROJECT_ID:API_KEY@default'", "middle": "\nuse Symfony\\Component\\Translation\\Provider\\Dsn;\nuse Symfony\\Component\\Translation\\Provider\\ProviderFactoryInterface;\nuse Symfony\\Component\\Translation\\Test\\AbstractProviderFactoryTestCase;\nuse Symfony\\Component\\Translation\\Test\\", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderFactoryTest.php", "language": "php", "file_size": 2331, "cut_index": 563, "middle_length": 229}} {"prefix": "mfony\\Component\\Mime\\Part\\Multipart\\FormDataPart;\nuse Symfony\\Component\\Translation\\Dumper\\XliffFileDumper;\nuse Symfony\\Component\\Translation\\Exception\\ProviderException;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\Provider\\ProviderInterface;\nuse Symfony\\Component\\Translation\\TranslatorBag;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * ", "suffix": " private readonly LoggerInterface $logger,\n private readonly LoaderInterface $loader,\n private readonly XliffFileDumper $xliffFileDumper,\n private readonly CacheItemPoolInterface $cache,\n private readonly string $defaultLocal", "middle": "@author wicliff \n */\nclass PhraseProvider implements ProviderInterface\n{\n private array $phraseLocales = [];\n\n public function __construct(\n private readonly HttpClientInterface $client,\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Phrase/PhraseProvider.php", "language": "php", "file_size": 9916, "cut_index": 921, "middle_length": 229}} {"prefix": "$readConfig;\n private array $writeConfig;\n\n #[DataProvider('toStringProvider')]\n public function testToString(?string $endpoint, string $expected)\n {\n $provider = $this->createProvider(endpoint: $endpoint);\n\n self::assertSame($expected, (string) $provider);\n }\n\n #[DataProvider('readProvider')]\n public function testRead(string $locale, string $localeId, string $domain, string $responseContent, TranslatorBag $expectedTranslatorBag)\n {\n $item = $this->createMock(Cac", "suffix": "use ($responseContent) {\n $this->assertSame('W/\"625d11cf081b1697cbc216edf6ebb13c\"', $item['etag']);\n $this->assertSame('Wed, 28 Dec 2022 13:16:45 GMT', $item['modified']);\n $this->assertSame($responseContent, $i", "middle": "heItemInterface::class);\n $item->expects(self::once())->method('isHit')->willReturn(false);\n\n $item\n ->expects(self::once())\n ->method('set')\n ->with(self::callback(function ($item) ", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php", "language": "php", "file_size": 45290, "cut_index": 2151, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Translation\\Exception\\IncompleteDsnException;\nuse Symfony\\Component\\Translation\\Provider\\Dsn;\n\ntrait IncompleteDsnTestTrait\n{\n /**\n * @return iterablecreateFactory();\n\n $dsn = new Dsn($dsn);\n\n $this->expectException(IncompleteDsnException::class);\n if (null !== $message) {\n ", "middle": "ay{0: string, 1?: string|null}>\n */\n abstract public static function incompleteDsnProvider(): iterable;\n\n /**\n * @dataProvider incompleteDsnProvider\n */\n #[DataProvider('incompleteDsnProvider')]\n public fu", "meta": {"filepath": "src/Symfony/Component/Translation/Test/IncompleteDsnTestTrait.php", "language": "php", "file_size": 1097, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Formatter;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Exception\\LogicException;\n\n/**\n * @author Guilherme Blanco \n * @author Abdellatif Ait boudad \n */\nclass IntlFormatter", "suffix": "ormatter constructor throws an exception if the message is empty\n if ('' === $message) {\n return '';\n }\n\n if (!$formatter = $this->cache[$locale][$message] ?? null) {\n if (!$this->hasMessageFormatter ??= class_exi", "middle": " implements IntlFormatterInterface\n{\n private bool $hasMessageFormatter;\n private array $cache = [];\n\n public function formatIntl(string $message, string $locale, array $parameters = []): string\n {\n // MessageF", "meta": {"filepath": "src/Symfony/Component/Translation/Formatter/IntlFormatter.php", "language": "php", "file_size": 2127, "cut_index": 563, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Formatter;\n\n/**\n * @author Guilherme Blanco \n * @author Abdellatif Ait boudad \n */\ninterface MessageFormatterInterface\n{\n /**\n * Formats a localized message pattern with given arguments.\n ", "suffix": "also be an object that can be cast to string)\n * @param string $locale The message locale\n * @param array $parameters An array of parameters for the message\n */\n public function format(string $message, string $locale, array $parameters ", "middle": "*\n * @param string $message The message (may ", "meta": {"filepath": "src/Symfony/Component/Translation/Formatter/MessageFormatterInterface.php", "language": "php", "file_size": 854, "cut_index": 529, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * CsvFileDumper generates a csv formatted string representation of a message catalogue.\n *\n * @author Stealth35\n */\nclass CsvFileDumper extends FileDumper\n{\n private string $de", "suffix": "ch ($messages->all($domain) as $source => $target) {\n fputcsv($handle, [$source, $target], $this->delimiter, $this->enclosure, '\\\\');\n }\n\n rewind($handle);\n $output = stream_get_contents($handle);\n fclose($handle);\n\n ", "middle": "limiter = ';';\n private string $enclosure = '\"';\n\n public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string\n {\n $handle = fopen('php://memory', 'r+');\n\n forea", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/CsvFileDumper.php", "language": "php", "file_size": 1374, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Translation\\DependencyInjection\\TranslationExtractorPass;\n\nclass TranslationExtractorPassT", "suffix": " ->addTag('translation.extractor', ['alias' => 'bar.alias']);\n\n $translationDumperPass = new TranslationExtractorPass();\n $translationDumperPass->process($container);\n\n $this->assertEquals([['addExtractor', ['bar.alias', new Ref", "middle": "est extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $extractorDefinition = $container->register('translation.extractor');\n $container->register('foo.id')\n ", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/DependencyInjection/TranslationExtractorPassTest.php", "language": "php", "file_size": 2215, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyIn", "suffix": "DependencyInjection\\Fixtures\\ServiceArguments;\nuse Symfony\\Component\\Translation\\Tests\\DependencyInjection\\Fixtures\\ServiceMethodCalls;\nuse Symfony\\Component\\Translation\\Tests\\DependencyInjection\\Fixtures\\ServiceProperties;\nuse Symfony\\Component\\Translatio", "middle": "jection\\ServiceLocator;\nuse Symfony\\Component\\Translation\\DependencyInjection\\TranslatorPathsPass;\nuse Symfony\\Component\\Translation\\Tests\\DependencyInjection\\Fixtures\\ControllerArguments;\nuse Symfony\\Component\\Translation\\Tests\\", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/DependencyInjection/TranslationPathsPassTest.php", "language": "php", "file_size": 4313, "cut_index": 614, "middle_length": 229}} {"prefix": "ataProvider('resourcesProvider')]\n public function testExtraction(iterable|string $resource)\n {\n $extractor = new PhpAstExtractor([\n new TransMethodVisitor(),\n new TranslatableMessageVisitor(),\n new ConstraintVisitor([\n 'NotBlank',\n 'Isbn',\n 'Length',\n ], new TranslatableMessageVisitor()),\n ]);\n $extractor->setPrefix('prefix');\n $catalogue = new MessageCatalogue('en');\n\n $extract", "suffix": "and nonescaped \\$\\n sequences\n EOF;\n $expectedCatalogue = [\n 'messages' => [\n 'translatable single-quoted key' => 'prefixtranslatable single-quoted key',\n 'translatable double-quoted key' => 'prefi", "middle": "or->extract($resource, $catalogue);\n\n $expectedHeredoc = <<\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Crowdin;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpClient\\Retry\\GenericRetryStrategy;\nuse Symfony\\Component\\HttpClient\\RetryableHttpClient;\nuse Symfony\\Component\\HttpClient\\ScopingHttpClient;\nuse Symfony\\Component\\Translation\\Dumper\\XliffFileDumper;\nuse Symfony\\Co", "suffix": "n;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Andrii Bodnar \n */\nfinal class CrowdinProviderFactory extends AbstractProviderFactory\n{\n private const HOST = 'api.crowdin.com';\n\n public function __c", "middle": "mponent\\Translation\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\Provider\\AbstractProviderFactory;\nuse Symfony\\Component\\Translation\\Provider\\Ds", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Crowdin/CrowdinProviderFactory.php", "language": "php", "file_size": 2294, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Loco;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpClient\\Retry\\GenericRetryStrategy;\nuse Symfony\\Component\\HttpClient\\RetryableHttpClient;\nuse Symfony\\Component\\HttpClient\\ScopingHttpClient;\nuse Symfony\\Component\\Translation\\Exception\\UnsupportedSchemeException;\nuse", "suffix": "use Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Mathieu Santostefano \n */\nfinal class LocoProviderFactory extends AbstractProviderFactory\n{\n private const HOST = 'localise.biz';\n\n public function __", "middle": " Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\Provider\\AbstractProviderFactory;\nuse Symfony\\Component\\Translation\\Provider\\Dsn;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\n", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Loco/LocoProviderFactory.php", "language": "php", "file_size": 2269, "cut_index": 563, "middle_length": 229}} {"prefix": "us);\n }\n\n public static function toStringProvider(): iterable\n {\n yield [\n self::createProvider((new MockHttpClient())->withOptions([\n 'base_uri' => 'https://localise.biz/api/',\n 'headers' => [\n 'Authorization' => 'Loco API_KEY',\n ],\n ]), new ArrayLoader(), new NullLogger(), 'en', 'localise.biz/api/'),\n 'loco://localise.biz/api/',\n ];\n\n yield [\n self::createProvider((new ", "suffix": " NullLogger(), 'en', 'example.com'),\n 'loco://example.com',\n ];\n\n yield [\n self::createProvider((new MockHttpClient())->withOptions([\n 'base_uri' => 'https://example.com:99',\n 'headers' => [", "middle": "MockHttpClient())->withOptions([\n 'base_uri' => 'https://example.com',\n 'headers' => [\n 'Authorization' => 'Loco API_KEY',\n ],\n ]), new ArrayLoader(), new", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php", "language": "php", "file_size": 61941, "cut_index": 2151, "middle_length": 229}} {"prefix": ", $loader, $logger, $defaultLocale, $endpoint);\n }\n\n public static function toStringProvider(): iterable\n {\n yield [\n self::createProvider((new MockHttpClient())->withOptions([\n 'base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/',\n 'headers' => ['X-Api-Token' => 'API_KEY'],\n ]), new ArrayLoader(), new NullLogger(), 'en', 'api.lokalise.com'),\n 'lokalise://api.lokalise.com',\n ];\n\n yield [\n se", "suffix": "example.com'),\n 'lokalise://example.com',\n ];\n\n yield [\n self::createProvider((new MockHttpClient())->withOptions([\n 'base_uri' => 'https://example.com:99',\n 'headers' => ['X-Api-Token' => '", "middle": "lf::createProvider((new MockHttpClient())->withOptions([\n 'base_uri' => 'https://example.com',\n 'headers' => ['X-Api-Token' => 'API_KEY'],\n ]), new ArrayLoader(), new NullLogger(), 'en', '", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php", "language": "php", "file_size": 49642, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Phrase;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Translation\\Dumper\\XliffFileDumper;\nuse Symfony\\Component\\Translation\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\Provider\\AbstractProviderFactor", "suffix": "raseProviderFactory extends AbstractProviderFactory\n{\n private const HOST = 'api.phrase.com';\n private const READ_CONFIG_DEFAULT = [\n 'file_format' => 'symfony_xliff',\n 'include_empty_translations' => '1',\n 'tags' => [],\n ", "middle": "y;\nuse Symfony\\Component\\Translation\\Provider\\Dsn;\nuse Symfony\\Component\\Translation\\Provider\\ProviderInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author wicliff \n */\nclass Ph", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Phrase/PhraseProviderFactory.php", "language": "php", "file_size": 3988, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Translation\\Provider\\Dsn;\nuse Symfony\\Component\\Translation\\Provider\\ProviderFactoryInterface;\n\nabstract ", "suffix": "ion supportsProvider(): iterable;\n\n /**\n * @return iterable\n */\n abstract public static function createProvider(): iterable;\n\n /**\n * @return iterable\n */\n abstract", "middle": "class AbstractProviderFactoryTestCase extends TestCase\n{\n abstract public function createFactory(): ProviderFactoryInterface;\n\n /**\n * @return iterable\n */\n abstract public static funct", "meta": {"filepath": "src/Symfony/Component/Translation/Test/AbstractProviderFactoryTestCase.php", "language": "php", "file_size": 2204, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Dumper;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Exception\\RuntimeException;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\n\n/**\n * FileDumper is an implementation of DumperInterface that dump a message catalogue to file(s).\n *\n * Options:\n * - path (mandatory): the ", "suffix": "ected string $relativePathTemplate = '%domain%.%locale%.%extension%';\n\n /**\n * Sets the template for the relative paths to files.\n */\n public function setRelativePathTemplate(string $relativePathTemplate): void\n {\n $this->relativePa", "middle": "directory where the files should be saved\n *\n * @author Michel Salib \n */\nabstract class FileDumper implements DumperInterface\n{\n /**\n * A template for the relative paths to files.\n */\n prot", "meta": {"filepath": "src/Symfony/Component/Translation/Dumper/FileDumper.php", "language": "php", "file_size": 3481, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Translation\\DependencyInjection\\LoggingTranslatorPass;\nuse Symfony\\Component\\Translation\\Translator;\n\nclass LoggingTranslatorPassTest extends", "suffix": ");\n $container->register('monolog.logger');\n $container->setAlias('logger', 'monolog.logger');\n $container->register('translator.default', '%translator.class%');\n $container->register('translator.logging', '%translator.class%');", "middle": " TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $container->setParameter('translator.logging', true);\n $container->setParameter('translator.class', Translator::class", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/DependencyInjection/LoggingTranslatorPassTest.php", "language": "php", "file_size": 3181, "cut_index": 614, "middle_length": 229}} {"prefix": "Interface;\n\n/**\n * @author Andrii Bodnar \n *\n * In Crowdin:\n * * Filenames refer to Symfony's translation domains;\n * * Identifiers refer to Symfony's translation keys;\n * * Translations refer to Symfony's translated messages\n */\nfinal class CrowdinProvider implements ProviderInterface\n{\n private const IMPORT_POLL_TIMEOUT_SECONDS = 300;\n\n public function __construct(\n private readonly HttpClientInterface $client,\n private readonly LoaderInterface $loader,\n ", "suffix": "ion __toString(): string\n {\n return \\sprintf('crowdin://%s', $this->endpoint);\n }\n\n public function write(TranslatorBagInterface $translatorBag): void\n {\n $fileList = $this->getFileList();\n $languageMapping = $this->getLang", "middle": " private readonly LoggerInterface $logger,\n private readonly XliffFileDumper $xliffFileDumper,\n private readonly string $defaultLocale,\n private readonly string $endpoint,\n ) {\n }\n\n public funct", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Crowdin/CrowdinProvider.php", "language": "php", "file_size": 17627, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Loco\\Tests;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Translation\\Bridge\\Loco\\LocoProviderFactory;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\Provider\\Pr", "suffix": "ctoryTest extends AbstractProviderFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'loco://API_KEY@default'];\n yield [false, 'somethingElse://API_KEY@default'];\n ", "middle": "oviderFactoryInterface;\nuse Symfony\\Component\\Translation\\Test\\AbstractProviderFactoryTestCase;\nuse Symfony\\Component\\Translation\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Component\\Translation\\TranslatorBag;\n\nclass LocoProviderFa", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderFactoryTest.php", "language": "php", "file_size": 1793, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Phrase\\Tests;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\Cache\\Adapter\\NullAdapter;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Translation\\Bridge\\Phrase\\PhraseProviderFactory;\nuse Symfony\\Component\\Translation\\Dumper\\XliffFileDump", "suffix": "vider\\Dsn;\nuse Symfony\\Component\\Translation\\Test\\AbstractProviderFactoryTestCase;\nuse Symfony\\Component\\Translation\\Test\\IncompleteDsnTestTrait;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author wicliff \n */\ncl", "middle": "er;\nuse Symfony\\Component\\Translation\\Exception\\MissingRequiredOptionException;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\Pro", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderFactoryTest.php", "language": "php", "file_size": 4715, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Translation\\Dumper\\XliffFileDu", "suffix": "use Symfony\\Component\\Translation\\TranslatorBagInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * A test case to ease testing a translation provider.\n *\n * @author Mathieu Santostefano \n */\nabstract class", "middle": "mper;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\Provider\\ProviderInterface;\nuse Symfony\\Component\\Translation\\TranslatorBag;\n", "meta": {"filepath": "src/Symfony/Component/Translation/Test/ProviderTestCase.php", "language": "php", "file_size": 2714, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Translation\\DependencyInjection\\TranslatorPass;\nuse Symfony\\Component\\Translation\\Extractor\\Visitor\\ConstraintVisi", "suffix": "ts\\TimeValidator;\n\nclass TranslatorPassTest extends TestCase\n{\n public function testValidCollector()\n {\n $loader = (new Definition())\n ->addTag('translation.loader', ['alias' => 'xliff', 'legacy-alias' => 'xlf']);\n\n $reader =", "middle": "tor;\nuse Symfony\\Component\\Validator\\Constraints\\IsbnValidator;\nuse Symfony\\Component\\Validator\\Constraints\\LengthValidator;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlankValidator;\nuse Symfony\\Component\\Validator\\Constrain", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/DependencyInjection/TranslatorPassTest.php", "language": "php", "file_size": 6352, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Formatter;\n\nuse Symfony\\Component\\Translation\\IdentityTranslator;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(IntlFormatter::class);\n\n/**\n * @author Abdellatif Ait boudad translator = $", "middle": "udad@gmail.com>\n */\nclass MessageFormatter implements MessageFormatterInterface, IntlFormatterInterface\n{\n private TranslatorInterface $translator;\n private IntlFormatterInterface $intlFormatter;\n\n /**\n * @param Tran", "meta": {"filepath": "src/Symfony/Component/Translation/Formatter/MessageFormatter.php", "language": "php", "file_size": 1514, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Lokalise;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Translation\\Exception\\UnsupportedSchemeException;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\Provider\\AbstractProviderFactory;\nuse Symfony\\Co", "suffix": "\n private const HOST = 'api.lokalise.com';\n\n public function __construct(\n private HttpClientInterface $client,\n private LoggerInterface $logger,\n private string $defaultLocale,\n private LoaderInterface $loader,\n ) {\n ", "middle": "mponent\\Translation\\Provider\\Dsn;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Mathieu Santostefano \n */\nfinal class LokaliseProviderFactory extends AbstractProviderFactory\n{", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Lokalise/LokaliseProviderFactory.php", "language": "php", "file_size": 1856, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Translation\\DependencyInjection\\TranslationDumperPass;\n\nclass Tr", "suffix": "'foo.id')\n ->addTag('translation.dumper', ['alias' => 'bar.alias']);\n\n $translationDumperPass = new TranslationDumperPass();\n $translationDumperPass->process($container);\n\n $this->assertEquals([['addDumper', ['bar.alias', ne", "middle": "anslationDumperPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $writerDefinition = $container->register('translation.writer');\n $container->register(", "meta": {"filepath": "src/Symfony/Component/Translation/Tests/DependencyInjection/TranslationDumperPassTest.php", "language": "php", "file_size": 1670, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Translation\\Bridge\\Crowdin\\Tests;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Translation\\Bridge\\Crowdin\\CrowdinProviderFactory;\nuse Symfony\\Component\\Translation\\Dumper\\XliffFileDumper;\nuse Symfony\\Component\\Translatio", "suffix": "ass CrowdinProviderFactoryTest extends AbstractProviderFactoryTestCase\n{\n use IncompleteDsnTestTrait;\n\n public static function supportsProvider(): iterable\n {\n yield [true, 'crowdin://PROJECT_ID:API_TOKEN@default'];\n yield [false, 's", "middle": "n\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\Provider\\ProviderFactoryInterface;\nuse Symfony\\Component\\Translation\\Test\\AbstractProviderFactoryTestCase;\nuse Symfony\\Component\\Translation\\Test\\IncompleteDsnTestTrait;\n\ncl", "meta": {"filepath": "src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderFactoryTest.php", "language": "php", "file_size": 1877, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * RedirectResponse represents an HTTP response doing a redirect.\n *\n * @author Fabien Potencier \n */\nclass RedirectResponse extends Response\n{\n protected string $targetUrl;\n\n /**\n * Creates a redirect response so that it conforms to the rules de", "suffix": " well\n * @param int $status The HTTP status code (302 \"Found\" by default)\n * @param array $headers The headers (Location is always set to the given URL)\n *\n * @throws \\InvalidArgumentException\n *\n * @see https://tools.ietf.org/", "middle": "fined for a redirect status code.\n *\n * @param string $url The URL to redirect to. The URL should be a full URL, with schema etc.,\n * but practically every browser redirects on paths only as", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RedirectResponse.php", "language": "php", "file_size": 2629, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RateLimiter;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\nuse Symfony\\Component\\RateLimiter\\Policy\\NoLimiter;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\n\n/**\n * An implementation of PeekableRequestRateLimiterInterface that\n * ", "suffix": " return $this->doConsume($request, 1);\n }\n\n public function peek(Request $request): RateLimit\n {\n return $this->doConsume($request, 0);\n }\n\n private function doConsume(Request $request, int $tokens): RateLimit\n {\n $lim", "middle": "fits most use-cases.\n *\n * @author Wouter de Jong \n */\nabstract class AbstractRequestRateLimiter implements PeekableRequestRateLimiterInterface\n{\n public function consume(Request $request): RateLimit\n {\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RateLimiter/AbstractRequestRateLimiter.php", "language": "php", "file_size": 2443, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RateLimiter;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\n\n/**\n * A request limiter which allows peeking ahead.\n *\n * This is valuable to reduce the cache backend load in scenarios\n * lik", "suffix": "gh, and\n * only consume if the request failed (1 backend op). This is compared\n * to always consuming and then resetting the limit if the request\n * is successful (2 backend ops).\n *\n * @author Jordi Boggiano \n */\ninterface PeekableRequ", "middle": "e a login when we only want to consume a token on login failure,\n * and where the majority of requests will be successful and thus not\n * need to consume a token.\n *\n * This way we can peek ahead before allowing the request throu", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RateLimiter/PeekableRequestRateLimiterInterface.php", "language": "php", "file_size": 1119, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RequestMatcher;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**\n * Checks the Request attributes matches all regular expressions.\n *\n * @author Fabien Potencier regexps as $key => $regexp) {\n $attribute = $request->attributes->get($key);\n if (!\\is_string($attribute)) {\n return false;\n }\n if ", "middle": "mfony.com>\n */\nclass AttributesRequestMatcher implements RequestMatcherInterface\n{\n /**\n * @param array $regexps\n */\n public function __construct(private array $regexps)\n {\n }\n\n public funct", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestMatcher/AttributesRequestMatcher.php", "language": "php", "file_size": 1132, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RequestMatcher;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**", "suffix": " private ExpressionLanguage $language,\n private Expression|string $expression,\n ) {\n }\n\n public function matches(Request $request): bool\n {\n return $this->language->evaluate($this->expression, [\n 'request' => $reques", "middle": "\n * ExpressionRequestMatcher uses an expression to match a Request.\n *\n * @author Fabien Potencier \n */\nclass ExpressionRequestMatcher implements RequestMatcherInterface\n{\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestMatcher/ExpressionRequestMatcher.php", "language": "php", "file_size": 1285, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RequestMatcher;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**\n * Checks the presence of HTTP headers in a Request.\n *\n * @author Alexandre Daubois \n */", "suffix": " Strings can contain a comma-delimited list of headers\n */\n public function __construct(array|string $headers)\n {\n $this->headers = array_reduce((array) $headers, static fn (array $headers, string $header) => array_merge($", "middle": "\nclass HeaderRequestMatcher implements RequestMatcherInterface\n{\n /**\n * @var string[]\n */\n private array $headers;\n\n /**\n * @param string[]|string $headers A header or a list of headers\n * ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestMatcher/HeaderRequestMatcher.php", "language": "php", "file_size": 1372, "cut_index": 524, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RequestMatcher;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**\n * Checks the Request URL host name matches a regular expression.\n *\n * @author Fabien Potencier regexp.'}i', $request->getHo", "middle": "ymfony.com>\n *", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestMatcher/HostRequestMatcher.php", "language": "php", "file_size": 802, "cut_index": 517, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RequestMatcher;\n\nuse Symfony\\Component\\HttpFoundation\\IpUtils;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**\n * Checks the client IP of a Request.\n *\n * @author Fabien Potencie", "suffix": "1.0/24\n * Strings can contain a comma-delimited list of IPs/ranges\n */\n public function __construct(array|string $ips)\n {\n $this->ips = array_reduce((array) $ips, static fn (array $ips, string $ip) => array_", "middle": "r \n */\nclass IpsRequestMatcher implements RequestMatcherInterface\n{\n private array $ips;\n\n /**\n * @param string[]|string $ips A specific IP address or a range specified using IP/netmask like 192.168.", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestMatcher/IpsRequestMatcher.php", "language": "php", "file_size": 1269, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RequestMatcher;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**\n * Checks the HTTP method of a Request.\n *\n * @author Fabien Potencier \n */\nclass MethodReque", "suffix": " Strings can contain a comma-delimited list of methods\n */\n public function __construct(array|string $methods)\n {\n $this->methods = array_reduce(array_map('strtoupper', (array) $methods), static fn (array $methods, string ", "middle": "stMatcher implements RequestMatcherInterface\n{\n /**\n * @var string[]\n */\n private array $methods = [];\n\n /**\n * @param string[]|string $methods An HTTP method or an array of HTTP methods\n * ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestMatcher/MethodRequestMatcher.php", "language": "php", "file_size": 1294, "cut_index": 524, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RequestMatcher;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**\n * Checks the Request URL path info matches a regular expression.\n *\n * @author Fabien Potencier regexp.'}', rawurldecode($request", "middle": "y.com>\n */\ncla", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestMatcher/PathRequestMatcher.php", "language": "php", "file_size": 819, "cut_index": 522, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RequestMatcher;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**\n * Checks the presence of HTTP query parameters of a Request.\n *\n * @author Alexandre Daubois parameters = array_reduce(array_map(strtolower(...), (ar", "middle": ".com>\n */\nclass QueryParameterRequestMatcher implements RequestMatcherInterface\n{\n /**\n * @var string[]\n */\n private array $parameters;\n\n /**\n * @param string[]|string $parameters A parameter or a list of par", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestMatcher/QueryParameterRequestMatcher.php", "language": "php", "file_size": 1382, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\RequestMatcher;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**\n * Checks the HTTP scheme of a Request.\n *\n * @author Fabien Potencier \n */\nclass SchemeReque", "suffix": "Strings can contain a comma-delimited list of schemes\n */\n public function __construct(array|string $schemes)\n {\n $this->schemes = array_reduce(array_map('strtolower', (array) $schemes), static fn (array $schemes, string $scheme) => array_", "middle": "stMatcher implements RequestMatcherInterface\n{\n /**\n * @var string[]\n */\n private array $schemes;\n\n /**\n * @param string[]|string $schemes A scheme or a list of schemes\n * ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestMatcher/SchemeRequestMatcher.php", "language": "php", "file_size": 1276, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBagInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage;\nuse Sy", "suffix": ");\n\n/**\n * @author Fabien Potencier \n * @author Drak \n *\n * @implements \\IteratorAggregate\n */\nclass Session implements FlashBagAwareSessionInterface, \\IteratorAggregate, \\Countable\n{\n protected Sessio", "middle": "mfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(AttributeBag::class);\nclass_exists(FlashBag::class);\nclass_exists(SessionBagProxy::class", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Session.php", "language": "php", "file_size": 5805, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session;\n\n/**\n * Session Bag store.\n *\n * @author Drak \n */\ninterface SessionBagInterface\n{\n /**\n * Gets this bag's name.\n */\n public function getName(): string;\n\n /**\n * Initializes the Bag.\n ", "suffix": ": void;\n\n /**\n * Gets the storage key for this bag.\n */\n public function getStorageKey(): string;\n\n /**\n * Clears out data from bag.\n *\n * @return mixed Whatever data was contained\n */\n public function clear(): mixed;\n}\n", "middle": " */\n public function initialize(array &$array)", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/SessionBagInterface.php", "language": "php", "file_size": 820, "cut_index": 512, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nfinal class SessionBagProxy implements SessionBagInterface\n{\n private array $data;\n private ?int $usageIndex;\n private ?\\Closure $usageReporter;\n\n public function __construct(\n private Se", "suffix": "usageReporter = null === $usageReporter ? null : $usageReporter(...);\n }\n\n public function getBag(): SessionBagInterface\n {\n ++$this->usageIndex;\n if ($this->usageReporter && 0 <= $this->usageIndex) {\n ($this->usageReporte", "middle": "ssionBagInterface $bag,\n array &$data,\n ?int &$usageIndex,\n ?callable $usageReporter,\n ) {\n $this->bag = $bag;\n $this->data = &$data;\n $this->usageIndex = &$usageIndex;\n $this->", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/SessionBagProxy.php", "language": "php", "file_size": 2032, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageFactoryInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(Session::class);\n\n/**\n", "suffix": " private SessionStorageFactoryInterface $storageFactory,\n ?callable $usageReporter = null,\n ) {\n $this->usageReporter = null === $usageReporter ? null : $usageReporter(...);\n }\n\n public function createSession(): SessionInterface\n ", "middle": " * @author Jérémy Derussé \n */\nclass SessionFactory implements SessionFactoryInterface\n{\n private ?\\Closure $usageReporter;\n\n public function __construct(\n private RequestStack $requestStack,\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/SessionFactory.php", "language": "php", "file_size": 1158, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag;\n\n/**\n * Interface for the session.\n *\n * @author Drak \n */\ninterface SessionInterface\n{\n /**\n * Starts the session storage.\n *\n * @throws \\RuntimeException if session fails to start\n */\n public function start(): bool;\n", "suffix": "public function getName(): string;\n\n /**\n * Sets the session name.\n */\n public function setName(string $name): void;\n\n /**\n * Invalidates the current session.\n *\n * Clears all session attributes and flashes and regenerates the\n", "middle": "\n /**\n * Returns the session ID.\n */\n public function getId(): string;\n\n /**\n * Sets the session ID.\n */\n public function setId(string $id): void;\n\n /**\n * Returns the session name.\n */\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/SessionInterface.php", "language": "php", "file_size": 3671, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session;\n\n/**\n * Session utility functions.\n *\n * @author Nicolas Grekas \n * @author Rémon van de Kamp \n *\n * @internal\n */\nfinal class SessionUtils\n{\n /**\n * Finds the session header amongst the headers that are to ", "suffix": "okie = null;\n $sessionCookiePrefix = \\sprintf(' %s=', urlencode($sessionName));\n $sessionCookieWithId = \\sprintf('%s%s;', $sessionCookiePrefix, urlencode($sessionId));\n $otherCookies = [];\n foreach (headers_list() as $h) {\n ", "middle": "be sent, removes it, and returns\n * it so the caller can process it further.\n */\n public static function popSessionCookie(string $sessionName, #[\\SensitiveParameter] string $sessionId): ?string\n {\n $sessionCo", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/SessionUtils.php", "language": "php", "file_size": 1654, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Attribute;\n\n/**\n * This class relates to session attribute storage.\n *\n * @implements \\IteratorAggregate\n */\nclass AttributeBag implements AttributeBagInterface, \\IteratorAggregate, \\Countable\n{\n protected array $attributes = [];\n\n private string $name ", "suffix": "function getName(): string\n {\n return $this->name;\n }\n\n public function setName(string $name): void\n {\n $this->name = $name;\n }\n\n public function initialize(array &$attributes): void\n {\n $this->attributes = &$attri", "middle": "= 'attributes';\n\n /**\n * @param string $storageKey The key used to store attributes in the session\n */\n public function __construct(\n private string $storageKey = '_sf2_attributes',\n ) {\n }\n\n public ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php", "language": "php", "file_size": 2627, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Attribute;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface;\n\n/**\n * Attributes store.\n *\n * @author Drak \n */\ninterface AttributeBagInterface extends SessionBagInterface\n{\n /**\n * Checks ", "suffix": ".\n */\n public function set(string $name, mixed $value): void;\n\n /**\n * Returns attributes.\n *\n * @return array\n */\n public function all(): array;\n\n public function replace(array $attributes): void;\n\n /**\n ", "middle": "if an attribute is defined.\n */\n public function has(string $name): bool;\n\n /**\n * Returns an attribute.\n */\n public function get(string $name, mixed $default = null): mixed;\n\n /**\n * Sets an attribute", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBagInterface.php", "language": "php", "file_size": 1166, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Flash;\n\n/**\n * AutoExpireFlashBag flash message container.\n *\n * @author Drak \n */\nclass AutoExpireFlashBag implements FlashBagInterface\n{\n private string $name = 'flashes';\n private array $flashes = ['display' => [], 'new' => []];\n\n /**\n * @param string $storageKey The key used to store flashe", "suffix": "setName(string $name): void\n {\n $this->name = $name;\n }\n\n public function initialize(array &$flashes): void\n {\n $this->flashes = &$flashes;\n\n // The logic: messages from the last request will be stored in new, so we move th", "middle": "s in the session\n */\n public function __construct(\n private string $storageKey = '_symfony_flashes',\n ) {\n }\n\n public function getName(): string\n {\n return $this->name;\n }\n\n public function ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Flash/AutoExpireFlashBag.php", "language": "php", "file_size": 3059, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Flash;\n\n/**\n * FlashBag flash message container.\n *\n * @author Drak \n */\nclass FlashBag implements FlashBagInterface\n{\n private string $name = 'flashes';\n private array $flashes = [];\n\n /**\n * @param string $storageKey The key used to store fla", "suffix": "on setName(string $name): void\n {\n $this->name = $name;\n }\n\n public function initialize(array &$flashes): void\n {\n $this->flashes = &$flashes;\n }\n\n public function add(string $type, mixed $message): void\n {\n $this-", "middle": "shes in the session\n */\n public function __construct(\n private string $storageKey = '_symfony_flashes',\n ) {\n }\n\n public function getName(): string\n {\n return $this->name;\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php", "language": "php", "file_size": 2338, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Flash;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface;\n\n/**\n * FlashBagInterface.\n *\n * @author Drak \n */\ninterface FlashBagInterface extends SessionBagInterface\n{\n /**\n * Adds a flash message for the give", "suffix": " * Gets flash messages for a given type.\n *\n * @param string $type Message category type\n * @param array $default Default value if $type does not exist\n */\n public function peek(string $type, array $default = []): array;\n\n /**\n", "middle": "n type.\n */\n public function add(string $type, mixed $message): void;\n\n /**\n * Registers one or more messages for a given type.\n */\n public function set(string $type, string|array $messages): void;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Flash/FlashBagInterface.php", "language": "php", "file_size": 1705, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface;\n\n/**\n * Metadata container.\n *\n * Adds metadata to the session.\n *\n * @author Drak \n */\nclass MetadataBag implements SessionBagInterface\n{\n public const CREATED = 'c';\n public const UPDATED = 'u';\n public const LIFETIME = '", "suffix": " store bag in the session\n * @param int $updateThreshold The time to wait between two UPDATED updates\n * @param int|null $cookieLifetime The configured cookie lifetime; null to read from php.ini\n */\n public function __construct(\n ", "middle": "l';\n\n protected array $meta = [self::CREATED => 0, self::UPDATED => 0, self::LIFETIME => 0];\n\n private string $name = '__metadata';\n private int $lastUsed;\n\n /**\n * @param string $storageKey The key used to", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php", "language": "php", "file_size": 3456, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface;\n\n/**\n * MockArraySessionStorage mocks the session for unit tests.\n *\n * No PHP session is actually started since a session can be initialized\n * and shutdown only once per PHP execution cycle.\n *\n * When doing functional testing, you should use Mock", "suffix": "erface\n{\n protected string $id = '';\n protected bool $started = false;\n protected bool $closed = false;\n protected array $data = [];\n protected MetadataBag $metadataBag;\n\n /**\n * @var SessionBagInterface[]\n */\n protected array ", "middle": "FileSessionStorage instead.\n *\n * @author Fabien Potencier \n * @author Bulat Shakirzyanov \n * @author Drak \n */\nclass MockArraySessionStorage implements SessionStorageInt", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php", "language": "php", "file_size": 4450, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage;\n\n/**\n * MockFileSessionStorage is used to mock sessions for\n * functional testing where you may need to persist session data\n * across separate PHP processes.\n *\n * No PHP session is actually started since a session can be initialized\n * and shutdown only once per PHP execution cycle and this class does\n * not poll", "suffix": "Path;\n\n /**\n * @param string|null $savePath Path of directory to save session files\n */\n public function __construct(?string $savePath = null, string $name = 'MOCKSESSID', ?MetadataBag $metaBag = null)\n {\n $savePath ??= sys_get_temp", "middle": "ute any session related globals, including session_*() functions\n * or session.* PHP ini directives.\n *\n * @author Drak \n */\nclass MockFileSessionStorage extends MockArraySessionStorage\n{\n private string $save", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php", "language": "php", "file_size": 3924, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(MockFileSessionStorage::class);\n\n/**\n * @author Jérémy Derussé \n */\nclass Mock", "suffix": "ng $name = 'MOCKSESSID',\n private ?MetadataBag $metaBag = null,\n ) {\n }\n\n public function createStorage(?Request $request): SessionStorageInterface\n {\n return new MockFileSessionStorage($this->savePath, $this->name, $this->metaBag", "middle": "FileSessionStorageFactory implements SessionStorageFactoryInterface\n{\n /**\n * @see MockFileSessionStorage constructor.\n */\n public function __construct(\n private ?string $savePath = null,\n private stri", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorageFactory.php", "language": "php", "file_size": 1011, "cut_index": 512, "middle_length": 229}} {"prefix": "\\Storage\\Handler\\StrictSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\AbstractProxy;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\SessionHandlerProxy;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(MetadataBag::class);\nclass_exists(StrictSessionHandler::class);\nclass_exists(SessionHandlerProxy::class);\n\n/**\n * This provides a base class for session attribute storage.\n *\n * @author Drak \n */\nclass NativeSessionStorage implements", "suffix": "rface $saveHandler;\n protected MetadataBag $metadataBag;\n\n /**\n * Depending on how you want the storage driver to behave you probably\n * want to override this constructor entirely.\n *\n * List of options for $options array with their d", "middle": " SessionStorageInterface\n{\n /**\n * @var SessionBagInterface[]\n */\n protected array $bags = [];\n protected bool $started = false;\n protected bool $closed = false;\n protected AbstractProxy|\\SessionHandlerInte", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php", "language": "php", "file_size": 13043, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\AbstractProxy;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(NativeSessionStorage::class);\n\n/**\n ", "suffix": " private array $options = [],\n private AbstractProxy|\\SessionHandlerInterface|null $handler = null,\n private ?MetadataBag $metaBag = null,\n private bool $secure = false,\n ) {\n }\n\n public function createStorage(?Request $reque", "middle": "* @author Jérémy Derussé \n */\nclass NativeSessionStorageFactory implements SessionStorageFactoryInterface\n{\n /**\n * @see NativeSessionStorage constructor.\n */\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorageFactory.php", "language": "php", "file_size": 1299, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\AbstractProxy;\n\n/**\n * Allows session to be started by PHP and managed by Symfony.\n *\n * @author Drak \n */\nclass PhpBridgeSessionStorage extends Nati", "suffix": "n('PHP extension \"session\" is required.');\n }\n\n $this->setMetadataBag($metaBag);\n $this->setSaveHandler($handler);\n }\n\n public function start(): bool\n {\n if ($this->started) {\n return true;\n }\n\n ", "middle": "veSessionStorage\n{\n public function __construct(AbstractProxy|\\SessionHandlerInterface|null $handler = null, ?MetadataBag $metaBag = null)\n {\n if (!\\extension_loaded('session')) {\n throw new \\LogicExceptio", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorage.php", "language": "php", "file_size": 1391, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\AbstractProxy;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(PhpBridgeSessionStorage::class", "suffix": "ull $handler = null,\n private ?MetadataBag $metaBag = null,\n private bool $secure = false,\n ) {\n }\n\n public function createStorage(?Request $request): SessionStorageInterface\n {\n $storage = new PhpBridgeSessionStorage($this", "middle": ");\n\n/**\n * @author Jérémy Derussé \n */\nclass PhpBridgeSessionStorageFactory implements SessionStorageFactoryInterface\n{\n public function __construct(\n private AbstractProxy|\\SessionHandlerInterface|n", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorageFactory.php", "language": "php", "file_size": 1193, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface;\n\n/**\n * StorageInterface.\n *\n * @author Fabien Potencier \n * @author Drak \n */\ninterface SessionStorageInterface\n{\n /**\n * Starts the session.\n *\n * @throws \\RuntimeException if something goes wron", "suffix": "n getId(): string;\n\n /**\n * Sets the session ID.\n */\n public function setId(string $id): void;\n\n /**\n * Returns the session name.\n */\n public function getName(): string;\n\n /**\n * Sets the session name.\n */\n public ", "middle": "g starting the session\n */\n public function start(): bool;\n\n /**\n * Checks if the session is started.\n */\n public function isStarted(): bool;\n\n /**\n * Returns the session ID.\n */\n public functio", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php", "language": "php", "file_size": 3757, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy;\n\n/**\n * @author Drak \n */\nabstract class AbstractProxy\n{\n protected bool $wrapper = false;\n\n protected ?string $saveHandlerName = null;\n\n /**\n * Gets the session.save_handler name.\n */\n public function getSaveHandlerName()", "suffix": " instanceof \\SessionHandlerInterface;\n }\n\n /**\n * Returns true if this handler wraps an internal PHP session save handler using \\SessionHandler.\n */\n public function isWrapper(): bool\n {\n return $this->wrapper;\n }\n\n /**\n ", "middle": ": ?string\n {\n return $this->saveHandlerName;\n }\n\n /**\n * Is this proxy handler and instance of \\SessionHandlerInterface.\n */\n public function isSessionHandlerInterface(): bool\n {\n return $this", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/AbstractProxy.php", "language": "php", "file_size": 2039, "cut_index": 563, "middle_length": 229}} {"prefix": "st HTTP_UNAUTHORIZED = 401;\n public const HTTP_PAYMENT_REQUIRED = 402;\n public const HTTP_FORBIDDEN = 403;\n public const HTTP_NOT_FOUND = 404;\n public const HTTP_METHOD_NOT_ALLOWED = 405;\n public const HTTP_NOT_ACCEPTABLE = 406;\n public const HTTP_PROXY_AUTHENTICATION_REQUIRED = 407;\n public const HTTP_REQUEST_TIMEOUT = 408;\n public const HTTP_CONFLICT = 409;\n public const HTTP_GONE = 410;\n public const HTTP_LENGTH_REQUIRED = 411;\n public const HTTP_PRECONDITION_FAILED = 412", "suffix": " const HTTP_EXPECTATION_FAILED = 417;\n public const HTTP_I_AM_A_TEAPOT = 418; // RFC2324\n public const HTTP_MISDIRECTED_REQUEST = 421; // RFC7540\n public const H", "middle": ";\n public const HTTP_REQUEST_ENTITY_TOO_LARGE = 413;\n public const HTTP_REQUEST_URI_TOO_LONG = 414;\n public const HTTP_UNSUPPORTED_MEDIA_TYPE = 415;\n public const HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416;\n public", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Response.php", "language": "php", "file_size": 40791, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * ServerBag is a container for HTTP headers from the $_SERVER variable.\n *\n * @author Fabien Potencier \n * @author Bulat Shakirzyanov \n * @author Robert Kiss \n */\nclass ServerBag extends ParameterBag\n{\n /**\n * Gets the HTTP headers.\n */\n public functio", "suffix": " (\\in_array($key, ['CONTENT_TYPE', 'CONTENT_LENGTH', 'CONTENT_MD5'], true) && '' !== $value) {\n $headers[$key] = $value;\n }\n }\n\n if (isset($this->parameters['PHP_AUTH_USER'])) {\n $headers['PHP_AUTH_USER'] ", "middle": "n getHeaders(): array\n {\n $headers = [];\n foreach ($this->parameters as $key => $value) {\n if (str_starts_with($key, 'HTTP_')) {\n $headers[substr($key, 5)] = $value;\n } elseif", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/ServerBag.php", "language": "php", "file_size": 4010, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * StreamedJsonResponse represents a streamed HTTP response for JSON.\n *\n * A StreamedJsonResponse uses a structure and generics to create an\n * efficient resource-saving JSON response.\n *\n * It is recommended to use flush() function after a specific number of items to directly stream the data.\n *\n * @see flush()\n *\n * @author Alexander Schranz \n *\n * Example usage:\n *\n * function loadArticles(): \\Gener", "suffix": "ic number of items\n * }),\n *\n * $response = new StreamedJsonResponse(\n * // json structure with generators in which will be streamed\n * [\n * '_embedded' => [\n * 'articles' => loadArticles(), // any genera", "middle": "ator\n * // some streamed loading\n * yield ['title' => 'Article 1'];\n * yield ['title' => 'Article 2'];\n * yield ['title' => 'Article 3'];\n * // recommended to use flush() after every specif", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/StreamedJsonResponse.php", "language": "php", "file_size": 5782, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Component\\HttpFoundation\\Exception\\ExpiredSignedUriException;\nuse Symfony\\Component\\HttpFoundation\\Exception\\LogicException;\nuse Symfony\\Component\\HttpFoundation\\Exception\\SignedUriException;\nuse Symfony\\Component\\HttpFoundation\\Exception\\UnsignedUriException;\nuse Symfony\\Component\\HttpFoundation\\Exception\\UnverifiedSignedUriException;\n\n/**\n * @author Fabien Potencier ", "suffix": " string parameter to use\n * @param string $expirationParameter Query string parameter to use for expiration\n */\n public function __construct(\n #[\\SensitiveParameter] private string $secret,\n private string $hashParameter = '_hash',", "middle": "\n */\nclass UriSigner\n{\n private const STATUS_VALID = 1;\n private const STATUS_INVALID = 2;\n private const STATUS_MISSING = 3;\n private const STATUS_EXPIRED = 4;\n\n /**\n * @param string $hashParameter Query", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/UriSigner.php", "language": "php", "file_size": 7192, "cut_index": 716, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Exception;\n\n/**\n * Raised when a session does not exist. This happens in the following cases:\n * - the session is not enabled\n * - attempt to read a session outside a request context (ie. cli script).\n *\n * @author Jérémy Derussé \n */\nclass SessionNotFoundException exten", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Exception/SessionNotFoundException.php", "language": "php", "file_size": 843, "cut_index": 520, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\Context\\ContextInterface;\nuse Symfony\\Component\\Asset\\PathPackage;\nuse Symfony\\Component\\Asset\\VersionStrategy\\StaticVersionStrategy;\nuse Symfony\\Component\\Asset\\VersionStrategy\\VersionStrategyInterface;\n\nclass PathPackageTest ", "suffix": "s->assertSame($expected, $package->getUrl($path));\n }\n\n public static function getConfigs()\n {\n return [\n ['/foo', '', 'http://example.com/foo', 'http://example.com/foo'],\n ['/foo', '', 'https://example.com/foo', 'http", "middle": "extends TestCase\n{\n #[DataProvider('getConfigs')]\n public function testGetUrl($basePath, $format, $path, $expected)\n {\n $package = new PathPackage($basePath, new StaticVersionStrategy('v1', $format));\n $thi", "meta": {"filepath": "src/Symfony/Component/Asset/Tests/PathPackageTest.php", "language": "php", "file_size": 3428, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Tests\\Context;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\Context\\RequestStackContext;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\n\nclass RequestStackContextTest extends TestCase\n{\n public function testGetBasePathEmpt", "suffix": "h = 'test-path';\n\n $request = $this->createStub(Request::class);\n $request->method('getBasePath')\n ->willReturn($testBasePath);\n $requestStack = new RequestStack();\n $requestStack->push($request);\n\n $requestSta", "middle": "y()\n {\n $requestStackContext = new RequestStackContext(new RequestStack());\n\n $this->assertSame('', $requestStackContext->getBasePath());\n }\n\n public function testGetBasePathSet()\n {\n $testBasePat", "meta": {"filepath": "src/Symfony/Component/Asset/Tests/Context/RequestStackContextTest.php", "language": "php", "file_size": 2066, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Tests\\VersionStrategy;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\Exception\\AssetNotFoundException;\nuse Symfony\\Component\\Asset\\Exception\\RuntimeException;\nuse Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;", "suffix": "tegy)\n {\n $this->assertSame('main.123abc.js', $strategy->getVersion('main.js'));\n }\n\n #[DataProvider('provideValidStrategies')]\n public function testApplyVersion(JsonManifestVersionStrategy $strategy)\n {\n $this->assertSame('css", "middle": "\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\n\nclass JsonManifestVersionStrategyTest extends TestCase\n{\n #[DataProvider('provideValidStrategies')]\n public function testGetVersion(JsonManifestVersionStrategy $stra", "meta": {"filepath": "src/Symfony/Component/Asset/Tests/VersionStrategy/JsonManifestVersionStrategyTest.php", "language": "php", "file_size": 4997, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Tests\\VersionStrategy;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\VersionStrategy\\StaticVersionStrategy;\n\nclass StaticVersionStrategyTest extends TestCase\n{\n public function testGetVer", "suffix": "[DataProvider('getConfigs')]\n public function testApplyVersion($path, $version, $format)\n {\n $staticVersionStrategy = new StaticVersionStrategy($version, $format);\n $formatted = \\sprintf($format ?: '%s?%s', $path, $version);\n $th", "middle": "sion()\n {\n $version = 'v1';\n $path = 'test-path';\n $staticVersionStrategy = new StaticVersionStrategy($version);\n $this->assertSame($version, $staticVersionStrategy->getVersion($path));\n }\n\n #", "meta": {"filepath": "src/Symfony/Component/Asset/Tests/VersionStrategy/StaticVersionStrategyTest.php", "language": "php", "file_size": 1256, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * Represents an Accept-* header item.\n *\n * @author Jean-François Simon \n */\nclass AcceptHeaderItem\n{\n private float $quality = 1.0;\n private int $index = 0;\n private array $attributes = [];\n\n public function __construct(\n private string $value,\n array $attributes = [],\n ) {\n ", "suffix": "g(?string $itemValue): self\n {\n $parts = HeaderUtils::split($itemValue ?? '', ';=');\n\n $part = array_shift($parts);\n $attributes = HeaderUtils::combine($parts);\n\n return new self($part[0], $attributes);\n }\n\n /**\n * ", "middle": " foreach ($attributes as $name => $value) {\n $this->setAttribute($name, $value);\n }\n }\n\n /**\n * Builds an AcceptHeaderInstance instance from a string.\n */\n public static function fromStrin", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/AcceptHeaderItem.php", "language": "php", "file_size": 3234, "cut_index": 614, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * ChainRequestMatcher verifies that all checks match against a Request instance.\n *\n * @author Fabien Potencier \n */\nclass ChainRequestMatcher implements RequestMatcherInterface\n{\n /**\n * @param iterable $matchers\n ", "suffix": "$matchers)\n {\n }\n\n public function matches(Request $request): bool\n {\n foreach ($this->matchers as $matcher) {\n if (!$matcher->matches($request)) {\n return false;\n }\n }\n\n return true;\n ", "middle": "*/\n public function __construct(private iterable ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/ChainRequestMatcher.php", "language": "php", "file_size": 873, "cut_index": 559, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\n\n/**\n * FileBag is a container for uploaded files.\n *\n * @author Fabien Potencier \n * @author Bulat Shakirzyanov \n */\nclass FileBag extends ParameterBag\n{\n private const FILE_KEYS = ['error', 'full_path', 'name', 'size', 'tmp_name", "suffix": "ace(array $files = []): void\n {\n $this->parameters = [];\n $this->add($files);\n }\n\n public function set(string $key, mixed $value): void\n {\n if (!\\is_array($value) && !$value instanceof UploadedFile) {\n throw new ", "middle": "', 'type'];\n\n /**\n * @param array|UploadedFile[] $parameters An array of HTTP files\n */\n public function __construct(array $parameters = [])\n {\n $this->replace($parameters);\n }\n\n public function repl", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/FileBag.php", "language": "php", "file_size": 3857, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * HeaderBag is a container for HTTP headers.\n *\n * @author Fabien Potencier \n *\n * @implements \\IteratorAggregate>\n */\nclass HeaderBag implements \\IteratorAggregate, \\Countable, \\Stringable\n{\n protected const UPPER = '_ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n protected const LOWER = '-abcdefghijklmnopqrstuvwxyz';\n\n /**\n * @var array>\n */\n protec", "suffix": " /**\n * Returns the headers as a string.\n */\n public function __toString(): string\n {\n if (!$headers = $this->all()) {\n return '';\n }\n\n ksort($headers);\n $max = max(array_map('strlen', array_keys($hea", "middle": "ted array $headers = [];\n protected array $cacheControl = [];\n\n public function __construct(array $headers = [])\n {\n foreach ($headers as $key => $values) {\n $this->set($key, $values);\n }\n }\n\n", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/HeaderBag.php", "language": "php", "file_size": 7103, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\nuse Symfony\\Component\\HttpFoundation\\Exception\\BadRequestException;\nuse Symfony\\Component\\HttpFoundation\\Exception\\UnexpectedValueException;\n\n/**\n * InputBag is a container for user input values such as $_GET, $_POST, $_REQUEST, and $_COOKIE.\n *\n * @template TInput of string|int|float|bool|null\n *\n * @author Saif Eddin Gmati \n */\nfinal class InputBag extends ParameterBag\n{\n /**\n * Returns a scalar in", "suffix": "s BadRequestException if the input contains a non-scalar value\n */\n public function get(string $key, mixed $default = null): string|int|float|bool|null\n {\n if (null !== $default && !\\is_scalar($default) && !$default instanceof \\Stringable)", "middle": "put value by name.\n *\n * @template TDefault of string|int|float|bool|null\n *\n * @param TDefault $default The default value if the input key does not exist\n *\n * @return TDefault|TInput\n *\n * @throw", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/InputBag.php", "language": "php", "file_size": 6313, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\nuse Symfony\\Component\\HttpFoundation\\Exception\\BadRequestException;\nuse Symfony\\Component\\HttpFoundation\\Exception\\UnexpectedValueException;\n\n/**\n * ParameterBag is a container for key/value pairs.\n *\n * @author Fabien Potencier \n *\n * @implements \\IteratorAggregate\n */\nclass ParameterBag implements \\IteratorAggregate, \\Countable\n{\n /**\n * @param array $parameters\n */\n ", "suffix": "to return or null to get them all\n *\n * @return (TKey is null ? array : array)\n *\n * @throws BadRequestException if the value is not an array\n */\n public function all(?string $key = null): array\n {\n if", "middle": " public function __construct(\n protected array $parameters = [],\n ) {\n }\n\n /**\n * Returns the parameters.\n *\n * @template TKey of string|null\n *\n * @param TKey $key The name of the parameter ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/ParameterBag.php", "language": "php", "file_size": 8475, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\nuse Symfony\\Component\\HttpFoundation\\Exception\\SessionNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\n\n/**\n * Request stack that controls the lifecycle of requests.\n *\n * @author Benjamin Eberlei \n */\nclass RequestStack\n{\n /**\n * @var Request[]\n */\n private arra", "suffix": "*\n * Pushes a Request on the stack.\n *\n * This method should generally not be called directly as the stack\n * management should be taken care of by the application itself.\n */\n public function push(Request $request): void\n {\n ", "middle": "y $requests = [];\n\n /**\n * @param Request[] $requests\n */\n public function __construct(array $requests = [])\n {\n foreach ($requests as $request) {\n $this->push($request);\n }\n }\n\n /*", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/RequestStack.php", "language": "php", "file_size": 3124, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * ResponseHeaderBag is a container for Response HTTP headers.\n *\n * @author Fabien Potencier \n */\nclass ResponseHeaderBag extends HeaderBag\n{\n public const COOKIES_FLAT = 'flat';\n public const COOKIES_ARRAY = 'array';\n\n public const DISPOSITION_ATTACHMENT = 'attachment';\n public const DISPOSITION_INLINE = 'inline';\n\n protected array $computedCacheControl = [];\n protected array $cookies =", "suffix": "Control', '');\n }\n\n /* RFC2616 - 14.18 says all Responses need to have a Date */\n if (!isset($this->headers['date'])) {\n $this->initDate();\n }\n }\n\n /**\n * Returns the headers, with original capitalizations.\n", "middle": " [];\n protected array $headerNames = [];\n\n public function __construct(array $headers = [])\n {\n parent::__construct($headers);\n\n if (!isset($this->headers['cache-control'])) {\n $this->set('Cache-", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php", "language": "php", "file_size": 7858, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * StreamedResponse represents a streamed HTTP response.\n *\n * A StreamedResponse uses a callback or an iterable of strings for its content.\n *\n * The callback should use the standard PHP functions like echo\n * to stream the response back to the client. The flush() function\n * can also be used if needed.\n *\n * @see flush()\n *", "suffix": " * @param callable|iterable|null $callbackOrChunks\n * @param int $status The HTTP status code (200 \"OK\" by default)\n */\n public function __construct(callable|iterable|null $callbackOrChunks = null, in", "middle": "\n * @author Fabien Potencier \n */\nclass StreamedResponse extends Response\n{\n protected ?\\Closure $callback = null;\n protected bool $streamed = false;\n\n private bool $headersSent = false;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/StreamedResponse.php", "language": "php", "file_size": 3654, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\RequestContextAwareInterface;\n\n/**\n * A helper service for manipulating URLs within and outside the request scope.\n *\n * @author Valentin Udaltsov \n */\nfinal class UrlHelper\n{\n public function __construct(\n private R", "suffix": "/') || str_starts_with($path, '//')) {\n return $path;\n }\n\n if (null === $request = $this->requestStack->getMainRequest()) {\n return $this->getAbsoluteUrlFromContext($path);\n }\n\n if ('#' === $path[0]) {\n ", "middle": "equestStack $requestStack,\n private RequestContextAwareInterface|RequestContext|null $requestContext = null,\n ) {\n }\n\n public function getAbsoluteUrl(string $path): string\n {\n if (str_contains($path, ':/", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/UrlHelper.php", "language": "php", "file_size": 3124, "cut_index": 614, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Tests\\VersionStrategy;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\VersionStrategy\\EmptyVersionStrategy;\n\nclass EmptyVersionStrategyTest extends TestCase\n{\n public function testGetVersion()\n {\n $emptyVersionStrategy = new EmptyVersionStrategy();\n $pa", "suffix": "ptyVersionStrategy->getVersion($path));\n }\n\n public function testApplyVersion()\n {\n $emptyVersionStrategy = new EmptyVersionStrategy();\n $path = 'test-path';\n\n $this->assertSame($path, $emptyVersionStrategy->applyVersion($path", "middle": "th = 'test-path';\n\n $this->assertSame('', $em", "meta": {"filepath": "src/Symfony/Component/Asset/Tests/VersionStrategy/EmptyVersionStrategyTest.php", "language": "php", "file_size": 879, "cut_index": 559, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(AcceptHeaderItem::class);\n\n/**\n * Represents an Accept-* header.\n *\n * An accept header is compound with a list of items,\n * sorted by descending quality.\n *\n * @author Jean-François Simon \n */\nclass AcceptHeader\n{\n /**\n * @var array\n */\n private array $items = [];\n\n private bool $sorted = true;\n\n ", "suffix": "tance from a string.\n */\n public static function fromString(?string $headerValue): self\n {\n $items = [];\n foreach (HeaderUtils::split($headerValue ?? '', ',;=') as $i => $parts) {\n $part = array_shift($parts);\n ", "middle": "/**\n * @param AcceptHeaderItem[] $items\n */\n public function __construct(array $items)\n {\n foreach ($items as $item) {\n $this->add($item);\n }\n }\n\n /**\n * Builds an AcceptHeader ins", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/AcceptHeader.php", "language": "php", "file_size": 9022, "cut_index": 716, "middle_length": 229}} {"prefix": "ITE_NONE = 'none';\n public const SAMESITE_LAX = 'lax';\n public const SAMESITE_STRICT = 'strict';\n\n protected int $expire;\n protected string $path;\n\n private ?string $sameSite = null;\n private bool $secureDefault = false;\n\n private const RESERVED_CHARS_LIST = \"=,; \\t\\r\\n\\v\\f\";\n private const RESERVED_CHARS_FROM = ['=', ',', ';', ' ', \"\\t\", \"\\r\", \"\\n\", \"\\v\", \"\\f\"];\n private const RESERVED_CHARS_TO = ['%3D', '%2C', '%3B', '%20', '%09', '%0D', '%0A', '%0B', '%0C'];\n\n /**\n * Cre", "suffix": "> null,\n 'secure' => false,\n 'httponly' => false,\n 'raw' => !$decode,\n 'samesite' => null,\n 'partitioned' => false,\n ];\n\n $parts = HeaderUtils::split($cookie, ';=');\n $part = array", "middle": "ates cookie from raw header string.\n */\n public static function fromString(string $cookie, bool $decode = false): static\n {\n $data = [\n 'expires' => 0,\n 'path' => '/',\n 'domain' =", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Cookie.php", "language": "php", "file_size": 11807, "cut_index": 921, "middle_length": 229}} {"prefix": "t DISPOSITION_ATTACHMENT = 'attachment';\n public const DISPOSITION_INLINE = 'inline';\n\n /**\n * This class should not be instantiated.\n */\n private function __construct()\n {\n }\n\n /**\n * Splits an HTTP header by one or more separators.\n *\n * Example:\n *\n * HeaderUtils::split('da, en-gb;q=0.8', ',;')\n * # returns [['da'], ['en-gb', 'q=0.8']]\n *\n * @param string $separators List of characters to split on, ordered by\n * ", "suffix": "arators): array\n {\n if ('' === $separators) {\n throw new \\InvalidArgumentException('At least one separator must be specified.');\n }\n\n $quotedSeparators = preg_quote($separators, '/');\n\n preg_match_all('\n ", "middle": " precedence, e.g. ',', ';=', or ',;='\n *\n * @return array Nested array with as many levels as there are characters in\n * $separators\n */\n public static function split(string $header, string $sep", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/HeaderUtils.php", "language": "php", "file_size": 9291, "cut_index": 921, "middle_length": 229}} {"prefix": "en no exact MIME match is found in $formats.\n *\n * It enables mappings like application/soap+xml -> xml.\n *\n * @see https://datatracker.ietf.org/doc/html/rfc6839\n * @see https://datatracker.ietf.org/doc/html/rfc7303\n * @see https://www.iana.org/assignments/media-types/media-types.xhtml\n */\n private const STRUCTURED_SUFFIX_FORMATS = [\n 'json' => 'json',\n 'xml' => 'xml',\n 'xhtml' => 'html',\n 'cbor' => 'cbor',\n 'zip' => 'zip',\n 'ber' => '", "suffix": "_deprecation('symfony/http-foundation', '8.1', 'Directly setting property \"attributes\" of \"%s\" is deprecated; pass attributes as a constructor argument or call \"initialize()\" instead.', static::class);\n\n $this->attributes = $value;\n }\n ", "middle": "asn1',\n 'der' => 'asn1',\n 'tlv' => 'tlv',\n 'wbxml' => 'xml',\n 'yaml' => 'yaml',\n ];\n\n /**\n * Custom parameters.\n */\n public ParameterBag $attributes {\n set {\n trigger", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Request.php", "language": "php", "file_size": 78219, "cut_index": 3790, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Asset\\Exception\\LogicException;\nuse Symfony\\Component\\Asset\\Package;\nuse Symfony\\Component\\Asset\\PackageInterface;\nuse Symfony\\Component\\Asset\\Packages;\nuse Symfony\\", "suffix": "->createStub(PackageInterface::class));\n $packages->addPackage('a', $a = $this->createStub(PackageInterface::class));\n\n $this->assertSame($default, $packages->getPackage());\n $this->assertSame($a, $packages->getPackage('a'));\n\n ", "middle": "Component\\Asset\\VersionStrategy\\StaticVersionStrategy;\n\nclass PackagesTest extends TestCase\n{\n public function testGetterSetters()\n {\n $packages = new Packages();\n $packages->setDefaultPackage($default = $this", "meta": {"filepath": "src/Symfony/Component/Asset/Tests/PackagesTest.php", "language": "php", "file_size": 2282, "cut_index": 563, "middle_length": 229}} {"prefix": "FoundException;\nuse Symfony\\Component\\HttpFoundation\\File\\File;\n\n/**\n * BinaryFileResponse represents an HTTP response delivering a file.\n *\n * @author Niklas Fiekas \n * @author stealth35 \n * @author Igor Wiedler \n * @author Jordan Alliot \n * @author Sergey Linnik \n */\nclass BinaryFileResponse extends Response\n{\n protected static bool $trustXSendfileTypeHeader = false;\n\n protected File $", "suffix": " * @param \\SplFileInfo|string $file The file to stream\n * @param int $status The response status code (200 \"OK\" by default)\n * @param array $headers An array of response headers\n ", "middle": "file;\n protected ?\\SplTempFileObject $tempFileObject = null;\n protected int $offset = 0;\n protected int $maxlen = -1;\n protected bool $deleteFileAfterSend = false;\n protected int $chunkSize = 16 * 1024;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/BinaryFileResponse.php", "language": "php", "file_size": 14032, "cut_index": 921, "middle_length": 229}} {"prefix": "E_SUBNETS = [\n '127.0.0.0/8', // RFC1700 (Loopback)\n '10.0.0.0/8', // RFC1918\n '192.168.0.0/16', // RFC1918\n '172.16.0.0/12', // RFC1918\n '169.254.0.0/16', // RFC3927\n '0.0.0.0/8', // RFC5735\n '240.0.0.0/4', // RFC1112\n '::1/128', // Loopback\n 'fc00::/7', // Unique Local Address\n 'fe80::/10', // Link Local Address\n '::ffff:0:0/96', // IPv4-mapped IPv6 addresses (RFC 4291 section 2.5.5.2)\n '", "suffix": " '64:ff9b::/96', // NAT64 well-known prefix (RFC 6052)\n '64:ff9b:1::/48', // NAT64 local-use prefix (RFC 8215)\n ];\n\n private static array $checkedIps = [];\n\n /**\n * This class should not be instantiated.\n */\n private fun", "middle": "::/128', // Unspecified address\n '::/96', // IPv4-compatible IPv6 addresses (RFC 4291 section 2.5.5.1)\n '2002::/16', // 6to4 (RFC 3056)\n '2001::/32', // Teredo tunneling (RFC 4380)\n", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/IpUtils.php", "language": "php", "file_size": 9427, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * An event generated on the server intended for streaming to the client\n * as part of the SSE streaming technique.\n *\n * @implements \\IteratorAggregate\n *\n * @author Yonel Ceruto \n */\nclass ServerEvent implements \\IteratorAggregate\n{\n /**\n * @param string|iterable $data The event d", "suffix": " before reconnecting in case of network failure\n * @param string|null $id The event ID to set the EventSource object's last event ID value\n * @param string|null $comment The event comment\n */\n public function _", "middle": "ata field for the message\n * @param string|null $type The event type\n * @param int|null $retry The number of milliseconds the client should wait\n * ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/ServerEvent.php", "language": "php", "file_size": 3378, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Asset\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\Context\\ContextInterface;\nuse Symfony\\Component\\Asset\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Asset\\Exception\\LogicException;\nuse Symfony\\Component\\Asset\\UrlPackage;\nuse Symfony\\Component\\Asset\\VersionStrategy\\EmptyVersionStrategy;\nuse Symfony\\Component\\Asset\\VersionStrategy\\StaticVersionStrategy;\nuse Symfony\\", "suffix": " $package = new UrlPackage($baseUrls, new StaticVersionStrategy('v1', $format));\n $this->assertSame($expected, $package->getUrl($path));\n }\n\n public static function getConfigs(): array\n {\n return [\n ['http://example", "middle": "Component\\Asset\\VersionStrategy\\VersionStrategyInterface;\n\nclass UrlPackageTest extends TestCase\n{\n #[DataProvider('getConfigs')]\n public function testGetUrl($baseUrls, string $format, string $path, string $expected)\n {\n", "meta": {"filepath": "src/Symfony/Component/Asset/Tests/UrlPackageTest.php", "language": "php", "file_size": 5918, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * Response represents an HTTP response in JSON format.\n *\n * Note that this class does not force the returned JSON content to be an\n * object. It is however recommended that you do return an object as it\n * protects yourself against XSSI and JSON-JavaScript Hijacking.\n *\n * @see https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/AJAX_Security_Cheat_Sheet.md#always-return-json-with-an-object-on-the-outside\n *\n ", "suffix": " be embedded into HTML.\n // 15 === JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT\n public const DEFAULT_ENCODING_OPTIONS = 15;\n\n protected int $encodingOptions = self::DEFAULT_ENCODING_OPTIONS;\n\n /**\n * @param bool $json If the", "middle": "* @author Igor Wiedler \n */\nclass JsonResponse extends Response\n{\n protected mixed $data;\n protected ?string $callback = null;\n\n // Encode <, >, ', &, and \" characters in the JSON, making it also safe to", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/JsonResponse.php", "language": "php", "file_size": 6601, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation;\n\n/**\n * Represents a streaming HTTP response for sending server events\n * as part of the Server-Sent Events (SSE) streaming technique.\n *\n * To broadcast events to multiple users at once, for long-running\n * connections and for high-traffic websites, prefer using the Mercure\n * Sy", "suffix": "w EventStreamResponse(function () {\n * yield new ServerEvent(time());\n *\n * sleep(1);\n *\n * yield new ServerEvent(time());\n * });\n */\nclass EventStreamResponse extends StreamedResponse\n{\n /**\n * @param int|null $retry The", "middle": "mfony Component, which relies on Software designed for these use\n * cases: https://symfony.com/doc/current/mercure.html\n *\n * @see ServerEvent\n *\n * @author Yonel Ceruto \n *\n * Example usage:\n *\n * return ne", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/EventStreamResponse.php", "language": "php", "file_size": 2945, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\AcceptHeader;\nuse Symfony\\Component\\HttpFoundation\\AcceptHeaderItem;\n\nclass AcceptHeaderTest extends TestCase\n{\n public function testFirst()\n {\n $header = AcceptHeader::fromString('text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c');\n $this->assertSame('text/html', $header->first()-", "suffix": ";\n // reset index since the fixtures don't have them set\n foreach ($parsed as $item) {\n $item->setIndex(0);\n }\n $this->assertEquals($items, $parsed);\n }\n\n public static function provideFromStringData()\n {\n ", "middle": ">getValue());\n }\n\n #[DataProvider('provideFromStringData')]\n public function testFromString($string, array $items)\n {\n $header = AcceptHeader::fromString($string);\n $parsed = array_values($header->all())", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php", "language": "php", "file_size": 8728, "cut_index": 716, "middle_length": 229}} {"prefix": " Symfony\\Component\\HttpFoundation\\ResponseHeaderBag;\n\n#[Group('time-sensitive')]\nclass ResponseHeaderBagTest extends TestCase\n{\n public function testAllPreserveCase()\n {\n $headers = [\n 'fOo' => 'BAR',\n 'ETag' => 'xyzzy',\n 'Content-MD5' => 'Q2hlY2sgSW50ZWdyaXR5IQ==',\n 'P3P' => 'CP=\"CAO PSA OUR\"',\n 'WWW-Authenticate' => 'Basic realm=\"WallyWorld\"',\n 'X-UA-Compatible' => 'IE=edge,chrome=1',\n 'X-XSS-Protection' => '1; mode=", "suffix": "allPreservedCase, '->allPreserveCase() gets all input keys in original case');\n }\n }\n\n public function testCacheControlHeader()\n {\n $bag = new ResponseHeaderBag([]);\n $this->assertEquals('no-cache, private', $bag->get('Cache-C", "middle": "block',\n ];\n\n $bag = new ResponseHeaderBag($headers);\n $allPreservedCase = $bag->allPreserveCase();\n\n foreach (array_keys($headers) as $headerName) {\n $this->assertArrayHasKey($headerName, $", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/ResponseHeaderBagTest.php", "language": "php", "file_size": 12782, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\EventStreamResponse;\nuse Symfony\\Component\\HttpFoundation\\ServerEvent;\n\nclass EventStreamResponseTest extends TestCase\n{\n public function testInitializationWithDefaultValues()\n {\n $response = new EventStreamResponse();\n\n $this->assertSa", "suffix": "ve', $response->headers->get('connection'));\n\n $this->assertSame(200, $response->getStatusCode());\n $this->assertNull($response->getRetry());\n }\n\n public function testPresentOfExpiresHeader()\n {\n $response = new EventStreamRes", "middle": "me('text/event-stream', $response->headers->get('content-type'));\n $this->assertSame('max-age=0, must-revalidate, no-cache, no-store, private', $response->headers->get('cache-control'));\n $this->assertSame('keep-ali", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/EventStreamResponseTest.php", "language": "php", "file_size": 4189, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\HeaderBag;\n\nclass HeaderBagTest extends TestCase\n{\n public function testConstructor()\n {\n $bag = new HeaderBag(['foo' => 'bar']);\n $this->assertTrue($bag->has('foo'));\n }\n\n public function testToStringNull()\n {\n $bag = new HeaderBag();\n $this->assertEquals('', $bag->__toString());\n }\n\n public function testTo", "suffix": " $keys = $bag->keys();\n $this->assertEquals('foo', $keys[0]);\n }\n\n public function testGetDate()\n {\n $bag = new HeaderBag(['foo' => 'Tue, 4 Sep 2012 20:00:00 +0200']);\n $headerDate = $bag->getDate('foo');\n $this->a", "middle": "StringNotNull()\n {\n $bag = new HeaderBag(['foo' => 'bar']);\n $this->assertEquals(\"Foo: bar\\r\\n\", $bag->__toString());\n }\n\n public function testKeys()\n {\n $bag = new HeaderBag(['foo' => 'bar']);\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/HeaderBagTest.php", "language": "php", "file_size": 7731, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\HeaderUtils;\n\nclass HeaderUtilsTest extends TestCase\n{\n #[DataProvider('provideHeaderToSplit')]\n public function testSplit(array $expected, string $header, string $separator)\n {\n $this->assertSame($expected, HeaderUtils::split($header, $separator));\n }\n\n public static function provideHead", "suffix": "123'], ['bar']], 'foo=123, bar', ',;'],\n [['foo', '123, bar'], 'foo=123, bar', '='],\n [['foo', '123, bar'], ' foo = 123, bar ', '='],\n [[['foo', '123'], ['bar']], 'foo=123, bar', ',='],\n [[[['foo', '123']], [['ba", "middle": "erToSplit(): array\n {\n return [\n [['foo=123', 'bar'], 'foo=123,bar', ','],\n [['foo=123', 'bar'], 'foo=123, bar', ','],\n [[['foo=123', 'bar']], 'foo=123; bar', ',;'],\n [[['foo=", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/HeaderUtilsTest.php", "language": "php", "file_size": 7959, "cut_index": 716, "middle_length": 229}} {"prefix": "ork\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\IpUtils;\n\nclass IpUtilsTest extends TestCase\n{\n public function testSeparateCachesPerProtocol()\n {\n $ip = '192.168.52.1';\n $subnet = '192.168.0.0/16';\n\n $this->assertFalse(IpUtils::checkIp6($ip, $subnet));\n $this->assertTrue(IpUtils::checkIp4($ip, $subnet));\n\n $ip = '2a01:198:603:0:396e:4789:8e99:890f';\n $subnet = '2a01:198:603:0::/65';\n\n $this->assertFalse(IpUtils::checkIp4($ip, $subnet));\n $thi", "suffix": "\n }\n\n public static function getIpv4Data()\n {\n return [\n [true, '192.168.1.1', '192.168.1.1'],\n [true, '192.168.1.1', '192.168.1.1/1'],\n [true, '192.168.1.1', '192.168.1.0/24'],\n [false, '192.168.", "middle": "s->assertTrue(IpUtils::checkIp6($ip, $subnet));\n }\n\n #[DataProvider('getIpv4Data')]\n public function testIpv4($matches, $remoteAddr, $cidr)\n {\n $this->assertSame($matches, IpUtils::checkIp($remoteAddr, $cidr));", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php", "language": "php", "file_size": 10223, "cut_index": 921, "middle_length": 229}} {"prefix": "t\\HttpFoundation\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Symfony\\Component\\HttpFoundation\\Tests\\Fixtures\\FooEnum;\n\nclass ParameterBagTest extends TestCase\n{\n public function testConstructor()\n {\n $this->testAll();\n }\n\n public function testAll()\n {\n $bag = new ParameterBag(['foo' => 'bar']);\n $this->assertEquals(['foo' => 'bar'], $bag->all(), '->all() gets all the input');\n }\n\n public function testAllWithInputKey()\n ", "suffix": "unknown'), '->all() returns an empty array if a parameter is not defined');\n }\n\n public function testAllThrowsForNonArrayValues()\n {\n $this->expectException(BadRequestException::class);\n $bag = new ParameterBag(['foo' => 'bar', 'null", "middle": " {\n $bag = new ParameterBag(['foo' => ['bar', 'baz'], 'null' => null]);\n\n $this->assertEquals(['bar', 'baz'], $bag->all('foo'), '->all() gets the value of a parameter');\n $this->assertEquals([], $bag->all('", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/ParameterBagTest.php", "language": "php", "file_size": 15963, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\n\nclass RequestStackTest extends TestCase\n{\n public function testConstruct()\n {\n $request = Request::create('/foo');\n $request", "suffix": "sertNull($requestStack->getCurrentRequest());\n\n $request = Request::create('/foo');\n\n $requestStack->push($request);\n $this->assertSame($request, $requestStack->getCurrentRequest());\n\n $this->assertSame($request, $requestStack->", "middle": "Stack = new RequestStack([$request]);\n $this->assertSame($request, $requestStack->getCurrentRequest());\n }\n\n public function testGetCurrentRequest()\n {\n $requestStack = new RequestStack();\n $this->as", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestStackTest.php", "language": "php", "file_size": 2664, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\ExecutableFinder;\nuse Symfony\\Component\\Process\\Process;\n\nclass ResponseFunctionalTest extends TestCase\n{\n /** @var resour", "suffix": "(!self::$server = @proc_open('exec '.\\PHP_BINARY.' -S localhost:8054', $spec, $pipes, __DIR__.'/Fixtures/response-functional')) {\n self::markTestSkipped('PHP server unable to start.');\n }\n sleep(1);\n }\n\n public static functio", "middle": "ce|false */\n private static $server;\n\n public static function setUpBeforeClass(): void\n {\n $spec = [\n 1 => ['file', '/dev/null', 'w'],\n 2 => ['file', '/dev/null', 'w'],\n ];\n if ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php", "language": "php", "file_size": 2679, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\StrictSessionHandler;\n\n/**\n * @author Drak \n */\nclass SessionHandlerProxy extends AbstractProxy implements \\SessionHandlerInterface, \\SessionUpdateTimestampHandlerInterface\n{\n p", "suffix": "SessionHandler && $handler->isWrapper()) ? \\ini_get('session.save_handler') : 'user';\n }\n\n public function getHandler(): \\SessionHandlerInterface\n {\n return $this->handler;\n }\n\n // \\SessionHandlerInterface\n\n public function open(st", "middle": "ublic function __construct(\n protected \\SessionHandlerInterface $handler,\n ) {\n $this->wrapper = $handler instanceof \\SessionHandler;\n $this->saveHandlerName = $this->wrapper || ($handler instanceof Strict", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php", "language": "php", "file_size": 2307, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\n\n/**\n * @author Ahmed TAILOULOUTE \n */\nclass MarshallingSessionHandler implements \\SessionHandlerInterface, \\SessionUpdateTimestampHandlerInt", "suffix": " return $this->handler->open($savePath, $name);\n }\n\n public function close(): bool\n {\n return $this->handler->close();\n }\n\n public function destroy(#[\\SensitiveParameter] string $sessionId): bool\n {\n return $this->handler-", "middle": "erface\n{\n public function __construct(\n private AbstractSessionHandler $handler,\n private MarshallerInterface $marshaller,\n ) {\n }\n\n public function open(string $savePath, string $name): bool\n {\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MarshallingSessionHandler.php", "language": "php", "file_size": 2016, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\n/**\n * Memcached based session storage handler based on the Memcached class\n * provided by the PHP memcached extension.\n *\n * @see https://php.net/memcached\n *\n * @author Drak \n */\nclass MemcachedSessionHandler extends AbstractSessionHandler\n{\n /**\n * Time to live in seconds.\n *", "suffix": "se for the memcached keys in order to avoid collision\n * * ttl: The time to live in seconds.\n *\n * @throws \\InvalidArgumentException When unsupported options are passed\n */\n public function __construct(\n private \\Memcached $memca", "middle": "/\n private int|\\Closure|null $ttl;\n\n /**\n * Key prefix for shared environments.\n */\n private string $prefix;\n\n /**\n * Constructor.\n *\n * List of available options:\n * * prefix: The prefix to u", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcachedSessionHandler.php", "language": "php", "file_size": 3237, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\nuse MongoDB\\BSON\\Binary;\nuse MongoDB\\BSON\\UTCDateTime;\nuse MongoDB\\Client;\nuse MongoDB\\Driver\\BulkWrite;\nuse MongoDB\\Driver\\Manager;\nuse MongoDB\\Driver\\Query;\n\n/**\n * Session handler using the MongoDB driver extension.\n *\n * @author Markus Bachmann \n * @author Jérôme Tamarelle \n *\n * @see https://php.net/mongodb\n */\nclass MongoDbSessionHandler extends Abstra", "suffix": "ase: The name of the database [required]\n * * collection: The name of the collection [required]\n * * id_field: The field name for storing the session id [default: _id]\n * * data_field: The field name for storing the session data [default: da", "middle": "ctSessionHandler\n{\n private Manager $manager;\n private string $namespace;\n private array $options;\n private int|\\Closure|null $ttl;\n\n /**\n * Constructor.\n *\n * List of available options:\n * * datab", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php", "language": "php", "file_size": 6096, "cut_index": 716, "middle_length": 229}} {"prefix": "atabase like BLOB in MySQL.\n * Saving it in a character column could corrupt the data. You can use createTable()\n * to initialize a correctly defined table.\n *\n * @see https://php.net/sessionhandlerinterface\n *\n * @author Fabien Potencier \n * @author Michael Williams \n * @author Tobias Schultze \n */\nclass PdoSessionHandler extends AbstractSessionHandler\n{\n /**\n * No locking is done. This means sessions are prone to loss of data d", "suffix": "ch.\n */\n public const LOCK_NONE = 0;\n\n /**\n * Creates an application-level lock on a session. The disadvantage is that the\n * lock is not enforced by the database and thus other, unaware parts of the\n * application could still concurr", "middle": "ue to\n * race conditions of concurrent requests to the same session. The last session\n * write will win in this case. It might be useful when you implement your own\n * logic to deal with this like an optimistic approa", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php", "language": "php", "file_size": 40634, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Tools\\DsnParser;\nuse Relay\\Relay;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\n\n/**\n * @author Nicolas Grekas \n */\nclass SessionHandlerFactory\n{\n ", "suffix": "query'] ?? '', $query);\n\n if (($options['ttl'] ?? null) instanceof \\Closure) {\n $query['ttl'] = $options['ttl'];\n }\n }\n $options = ($query ?: []) + $options;\n\n switch (true) {\n case $conn", "middle": " public static function createHandler(object|string $connection, array $options = []): AbstractSessionHandler\n {\n if ($query = \\is_string($connection) ? parse_url($connection) : false) {\n parse_str($query['", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/SessionHandlerFactory.php", "language": "php", "file_size": 4351, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\File;\n\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundException;\nuse Symfony\\Component\\Mime\\MimeTypes;\n\n/**\n * A file in the file system.\n *\n * @author Bernhard Schussek \n */\nclass File extends \\SplFileInfo\n{\n /**\n * Cons", "suffix": "not a file\n */\n public function __construct(string $path, bool $checkPath = true)\n {\n if ($checkPath && !is_file($path)) {\n throw new FileNotFoundException($path);\n }\n\n parent::__construct($path);\n }\n\n /**\n ", "middle": "tructs a new file from the given path.\n *\n * @param string $path The path to the file\n * @param bool $checkPath Whether to check the path or not\n *\n * @throws FileNotFoundException If the given path is ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/File/File.php", "language": "php", "file_size": 4566, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\AcceptHeaderItem;\n\nclass AcceptHeaderItemTest extends TestCase\n{\n #[DataProvider('provideFromStringData')]\n public function testFromString($string, $value, array $attributes)\n {\n $item = Accept", "suffix": "turn [\n [\n 'text/html',\n 'text/html', [],\n ],\n [\n '\"this;should,not=matter\"',\n 'this;should,not=matter', [],\n ],\n [\n \"text/pla", "middle": "HeaderItem::fromString($string);\n $this->assertEquals($value, $item->getValue());\n $this->assertEquals($attributes, $item->getAttributes());\n }\n\n public static function provideFromStringData()\n {\n re", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderItemTest.php", "language": "php", "file_size": 3524, "cut_index": 614, "middle_length": 229}} {"prefix": "xception\\ExtensionFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FormSizeFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\IniSizeFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\NoFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\NoTmpDirFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Ex", "suffix": "or Fabien Potencier \n */\nclass UploadedFile extends File\n{\n private string $originalName;\n private string $mimeType;\n private int $error;\n private string $originalPath;\n\n /**\n * Accepts the information of the uploaded", "middle": "ception\\PartialFileException;\nuse Symfony\\Component\\Mime\\MimeTypes;\n\n/**\n * A file uploaded through a form.\n *\n * @author Bernhard Schussek \n * @author Florian Eckerstorfer \n * @auth", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/File/UploadedFile.php", "language": "php", "file_size": 10895, "cut_index": 921, "middle_length": 229}} {"prefix": "inaryFileResponse($file, 404, ['X-Header' => 'Foo'], true, null, true, true);\n $this->assertEquals(404, $response->getStatusCode());\n $this->assertEquals('Foo', $response->headers->get('X-Header'));\n $this->assertTrue($response->headers->has('ETag'));\n $this->assertTrue($response->headers->has('Last-Modified'));\n $this->assertFalse($response->headers->has('Content-Disposition'));\n\n $response = new BinaryFileResponse($file, 404, [], true, ResponseHeaderBag::DISPOSITI", "suffix": "position'));\n }\n\n public function testConstructWithNonAsciiFilename()\n {\n touch(sys_get_temp_dir().'/fööö.html');\n\n $response = new BinaryFileResponse(sys_get_temp_dir().'/fööö.html', 200, [], true, 'attachment');\n\n @unlink(sy", "middle": "ON_INLINE);\n $this->assertEquals(404, $response->getStatusCode());\n $this->assertFalse($response->headers->has('ETag'));\n $this->assertEquals('inline; filename=README.md', $response->headers->get('Content-Dis", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/BinaryFileResponseTest.php", "language": "php", "file_size": 18495, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Exception\\BadRequestException;\nuse Symfony\\Component\\HttpFoundation\\InputBag;\nuse Symfony\\Component\\HttpFoundation\\Tests\\Fixtures\\FooEnum;\n\nclass InputBagTest extends TestCase\n{\n public function testGet()\n {\n $bag = new InputBag(['foo' => 'bar', 'null' => null, 'int' => 1, 'float' => 1.0, 'bool' => false, 'stringable' => new class implements \\", "suffix": "eter');\n $this->assertSame('default', $bag->get('unknown', 'default'), '->get() returns second argument as default if a parameter is not defined');\n $this->assertNull($bag->get('null', 'default'), '->get() returns null if null is set');\n ", "middle": "Stringable {\n public function __toString(): string\n {\n return 'strval';\n }\n }]);\n\n $this->assertSame('bar', $bag->get('foo'), '->get() gets the value of a string param", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/InputBagTest.php", "language": "php", "file_size": 8423, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\n\nclass RedirectResponseTest extends TestCase\n{\n public function testGenerateMetaRedirect()\n {\n $response = new RedirectResponse('foo.bar');\n\n $this->assertMatchesRegul", "suffix": "Exception(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('Cannot redirect to an empty URL.');\n new RedirectResponse('');\n }\n\n public function testRedirectResponseConstructorWrongStatusCode()\n {\n $this->expec", "middle": "arExpression('##', preg_replace('/\\s+/', ' ', $response->getContent()));\n }\n\n public function testRedirectResponseConstructorEmptyUrl()\n {\n $this->expect", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RedirectResponseTest.php", "language": "php", "file_size": 2886, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\n\nclass RequestFunctionalTest extends TestCase\n{\n /** @var resource|false */\n private static $server;\n\n public static function setUpBeforeClass(): void\n {\n $spec = [\n 1 => ['file', '/dev/null', 'w'],\n 2 => ", "suffix": "le to start.');\n }\n sleep(1);\n }\n\n public static function tearDownAfterClass(): void\n {\n if (self::$server) {\n proc_terminate(self::$server);\n proc_close(self::$server);\n }\n }\n\n public static", "middle": "['file', '/dev/null', 'w'],\n ];\n if (!self::$server = @proc_open('exec '.\\PHP_BINARY.' -S localhost:8054', $spec, $pipes, __DIR__.'/Fixtures/request-functional')) {\n self::markTestSkipped('PHP server unab", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestFunctionalTest.php", "language": "php", "file_size": 3051, "cut_index": 614, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\n\n/**\n * @author Ahmed TAILOULOUTE \n */\nclass IdentityMarshaller implements MarshallerInterface\n{\n public function marshall(array $values, ?array &$f", "suffix": " => $value) {\n if (!\\is_string($value)) {\n throw new \\LogicException(\\sprintf('%s accepts only string as data.', __METHOD__));\n }\n }\n\n return $values;\n }\n\n public function unmarshall(string $value): ", "middle": "ailed): array\n {\n foreach ($values as $key", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/IdentityMarshaller.php", "language": "php", "file_size": 899, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\n/**\n * Native session handler using PHP's built in file storage.\n *\n * @author Drak \n */\nclass NativeFileSessionHandler extends \\SessionHandler\n{\n /**\n * @param string|null $savePath Path of directory to sa", "suffix": "figuration#ini.session.save-path for further details.\n *\n * @throws \\InvalidArgumentException On invalid $savePath\n * @throws \\RuntimeException When failing to create the save directory\n */\n public function __construct(?string $s", "middle": "ve session files\n * Default null will leave setting as defined by PHP.\n * '/path', 'N;/path', or 'N;octal-mode;/path\n *\n * @see https://php.net/session.con", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php", "language": "php", "file_size": 1928, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\n/**\n * Can be used in unit testing or in a situations where persisted sessions are not desired.\n *\n * @author Drak \n */\nclass NullSessionHandler extends AbstractSessionHandler\n{\n public function cl", "suffix": "): string\n {\n return '';\n }\n\n public function updateTimestamp(#[\\SensitiveParameter] string $sessionId, string $data): bool\n {\n return true;\n }\n\n protected function doWrite(#[\\SensitiveParameter] string $sessionId, string $d", "middle": "ose(): bool\n {\n return true;\n }\n\n public function validateId(#[\\SensitiveParameter] string $sessionId): bool\n {\n return true;\n }\n\n protected function doRead(#[\\SensitiveParameter] string $sessionId", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NullSessionHandler.php", "language": "php", "file_size": 1253, "cut_index": 524, "middle_length": 229}} {"prefix": " [\"\\rMyName\"],\n [\"\\nMyName\"],\n [\"\\013MyName\"],\n [\"\\014MyName\"],\n ];\n }\n\n #[DataProvider('namesWithSpecialCharacters')]\n public function testInstantiationThrowsExceptionIfRawCookieNameContainsSpecialCharacters($name)\n {\n $this->expectException(\\InvalidArgumentException::class);\n Cookie::create($name, null, 0, null, null, null, false, true);\n }\n\n #[DataProvider('namesWithSpecialCharacters')]\n public function testWithRawThrowsExceptio", "suffix": "unction testInstantiationSucceedNonRawCookieNameContainsSpecialCharacters($name)\n {\n $this->assertInstanceOf(Cookie::class, Cookie::create($name));\n }\n\n public function testInstantiationThrowsExceptionIfCookieNameIsEmpty()\n {\n $th", "middle": "nIfCookieNameContainsSpecialCharacters($name)\n {\n $this->expectException(\\InvalidArgumentException::class);\n Cookie::create($name)->withRaw();\n }\n\n #[DataProvider('namesWithSpecialCharacters')]\n public f", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/CookieTest.php", "language": "php", "file_size": 17677, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\n\nclass JsonResponseTest extends TestCase\n{\n public function testConstructorEmptyCreatesJsonObject()\n {\n $response = new JsonResponse();\n $this->assertSame('{}', $response->getContent());\n }\n\n public function testConstructorWithArrayCreatesJsonArray()\n {\n $response = new JsonResponse([0, 1, 2, 3]);\n $", "suffix": "bar\"}', $response->getContent());\n }\n\n public function testConstructorWithSimpleTypes()\n {\n $response = new JsonResponse('foo');\n $this->assertSame('\"foo\"', $response->getContent());\n\n $response = new JsonResponse(0);\n ", "middle": "this->assertSame('[0,1,2,3]', $response->getContent());\n }\n\n public function testConstructorWithAssocArrayCreatesJsonObject()\n {\n $response = new JsonResponse(['foo' => 'bar']);\n $this->assertSame('{\"foo\":\"", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/JsonResponseTest.php", "language": "php", "file_size": 6560, "cut_index": 716, "middle_length": 229}} {"prefix": " $this->assertFalse($isNoCache);\n }\n\n public function testGetContentTypeFormat()\n {\n $request = new Request();\n $this->assertNull($request->getContentTypeFormat());\n\n $server = ['HTTP_CONTENT_TYPE' => 'application/json'];\n $request = new Request([], [], [], [], [], $server);\n $this->assertEquals('json', $request->getContentTypeFormat());\n\n $server = ['HTTP_CONTENT_TYPE' => 'text/html'];\n $request = new Request([], [], [], [], [], $server);\n ", "suffix": "ale();\n\n $this->assertEquals('pl', $locale);\n }\n\n public function testCreate()\n {\n $request = Request::create('http://test.com/foo?bar=baz');\n $this->assertEquals('http://test.com/foo?bar=baz', $request->getUri());\n $th", "middle": "$this->assertEquals('html', $request->getContentTypeFormat());\n }\n\n public function testSetDefaultLocale()\n {\n $request = new Request();\n $request->setDefaultLocale('pl');\n $locale = $request->getLoc", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestTest.php", "language": "php", "file_size": 127382, "cut_index": 3790, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionUtils;\n\n/**\n * This abstract session handler provides a generic implementation\n * of the PHP 7.0 SessionUpdateTimestampHandlerInterface,\n * enabling strict and lazy session handling.\n *\n * @author Nicolas Grekas \n */\nabstract class Abstract", "suffix": "null;\n private string $igbinaryEmptyData;\n\n public function open(string $savePath, string $sessionName): bool\n {\n $this->sessionName = $sessionName;\n if (!headers_sent() && !\\ini_get('session.cache_limiter') && '0' !== \\ini_get('sess", "middle": "SessionHandler implements \\SessionHandlerInterface, \\SessionUpdateTimestampHandlerInterface\n{\n private string $sessionName;\n private string $prefetchId;\n private string $prefetchData;\n private ?string $newSessionId = ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/AbstractSessionHandler.php", "language": "php", "file_size": 4460, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\n/**\n * Adds basic `SessionUpdateTimestampHandlerInterface` behaviors to another `SessionHandlerInterface`.\n *\n * @author Nicolas Grekas \n */\nclass StrictSessionHandler extends AbstractSessionHandler\n{\n private bool $doDestroy;\n\n public", "suffix": "nce of \"SessionUpdateTimestampHandlerInterface\", you cannot wrap it with \"%s\".', get_debug_type($handler), self::class));\n }\n }\n\n /**\n * Returns true if this handler wraps an internal PHP session save handler using \\SessionHandler.\n *\n", "middle": " function __construct(\n private \\SessionHandlerInterface $handler,\n ) {\n if ($handler instanceof \\SessionUpdateTimestampHandlerInterface) {\n throw new \\LogicException(\\sprintf('\"%s\" is already an insta", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php", "language": "php", "file_size": 2472, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\FileBag;\n\n/**\n * FileBagTest.\n *\n * @author Fabien Potencier \n * @author Bulat Shakirzyanov \n */\nclass FileBagTest extends TestCase\n{\n public function testFileMustBeAnArrayOrUploadedFile()\n {\n $this->expectException(\\InvalidArgumentException::clas", "suffix": "File, $name, 'text/plain');\n\n $bag = new FileBag(['file' => [\n 'name' => $name,\n 'type' => 'text/plain',\n 'tmp_name' => $tmpFile,\n 'error' => 0,\n 'size' => null,\n ]]);\n\n $this->ass", "middle": "s);\n new FileBag(['file' => 'foo']);\n }\n\n public function testShouldConvertsUploadedFiles()\n {\n $tmpFile = $this->createTempFile();\n $name = basename($tmpFile);\n\n $file = new UploadedFile($tmp", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/FileBagTest.php", "language": "php", "file_size": 6307, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\nuse Predis\\Response\\ErrorInterface;\nuse Relay\\Relay;\n\n/**\n * Redis based session storage handler based on the Redis class\n * provided by the PHP redis extension.\n *\n * @author Dalibor Karlović \n */\nclass RedisSessionHandler extends Ab", "suffix": "options:\n * * prefix: The prefix to use for the keys in order to avoid collision on the Redis server\n * * ttl: The time to live in seconds.\n *\n * @throws \\InvalidArgumentException When unsupported client or options are passed\n */\n ", "middle": "stractSessionHandler\n{\n /**\n * Key prefix for shared environments.\n */\n private string $prefix;\n\n /**\n * Time to live in seconds.\n */\n private int|\\Closure|null $ttl;\n\n /**\n * List of available ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.php", "language": "php", "file_size": 2996, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler;\n\n/**\n * Migrating session handler for migrating from one handler to another. It reads\n * from the current handler and writes both the current and new ones.\n *\n * It ignores errors from the new handler.\n *\n * @author Ross Motley \n * @author Oliver Radwell \n */", "suffix": "erInterface&\\SessionUpdateTimestampHandlerInterface $writeOnlyHandler;\n\n public function __construct(\\SessionHandlerInterface $currentHandler, \\SessionHandlerInterface $writeOnlyHandler)\n {\n if (!$currentHandler instanceof \\SessionUpdateTimest", "middle": "\nclass MigratingSessionHandler implements \\SessionHandlerInterface, \\SessionUpdateTimestampHandlerInterface\n{\n private \\SessionHandlerInterface&\\SessionUpdateTimestampHandlerInterface $currentHandler;\n private \\SessionHandl", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MigratingSessionHandler.php", "language": "php", "file_size": 3314, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\n\nclass StreamedResponseTest extends TestCase\n{\n public function testConstructor()\n {\n $response = new StreamedResponse(static function () { echo 'foo'; }, 404, ['Content-Type' => ", "suffix": " $chunks = ['foo', 'bar', 'baz'];\n $callback = (new StreamedResponse($chunks))->getCallback();\n\n $buffer = '';\n ob_start(static function (string $chunk) use (&$buffer) {\n return $buffer .= $chunk;\n });\n $call", "middle": "'text/plain']);\n\n $this->assertEquals(404, $response->getStatusCode());\n $this->assertEquals('text/plain', $response->headers->get('Content-Type'));\n }\n\n public function testConstructorWithChunks()\n {\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php", "language": "php", "file_size": 5040, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Proxy;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\PreserveGlobalState;\nuse PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\StrictSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage", "suffix": "ublic function testOpenTrue()\n {\n $handler = $this->createMock(\\SessionHandlerInterface::class);\n $proxy = new SessionHandlerProxy($handler);\n $handler->expects($this->once())\n ->method('open')\n ->willReturn(tr", "middle": "\\Proxy\\SessionHandlerProxy;\n\n/**\n * Tests for SessionHandlerProxy class.\n *\n * @author Drak \n */\n#[PreserveGlobalState(false)]\n#[RunTestsInSeparateProcesses]\nclass SessionHandlerProxyTest extends TestCase\n{\n p", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php", "language": "php", "file_size": 6196, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Relay\\Relay;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\RedisSessionHandler;\n\n#[Group('time-sensitive')]\nabstract class AbstractRedisSessionHandlerTestCase extends TestCase\n{\n protected const PREFIX = 'prefix_';\n\n protected RedisSessionHandler $storage;\n ", "suffix": "p(): void\n {\n if (!\\extension_loaded('redis')) {\n self::markTestSkipped('Extension redis required.');\n }\n try {\n (new \\Redis())->connect(...explode(':', getenv('REDIS_HOST')));\n } catch (\\Exception $e) {", "middle": " protected \\Redis|Relay|\\RedisArray|\\RedisCluster|\\Predis\\Client $redisClient;\n\n abstract protected function createRedisClient(string $host): \\Redis|Relay|\\RedisArray|\\RedisCluster|\\Predis\\Client;\n\n protected function setU", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php", "language": "php", "file_size": 5153, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\n\nclass AbstractSessionHandlerTest extends TestCase\n{\n /** @var resource|false */\n private static $server;\n\n public static function setUp", "suffix": "pec, $pipes, __DIR__.'/Fixtures')) {\n self::markTestSkipped('PHP server unable to start.');\n }\n sleep(1);\n }\n\n public static function tearDownAfterClass(): void\n {\n if (self::$server) {\n proc_terminate(se", "middle": "BeforeClass(): void\n {\n $spec = [\n 1 => ['file', '/dev/null', 'w'],\n 2 => ['file', '/dev/null', 'w'],\n ];\n if (!self::$server = @proc_open('exec '.\\PHP_BINARY.' -S localhost:8053', $s", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractSessionHandlerTest.php", "language": "php", "file_size": 1978, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\IdentityMarshaller;\n\n/**\n * @author Ahmed TAILOULOUTE \n", "suffix": "tSame($values, $marshaller->marshall($values, $failed));\n }\n\n #[DataProvider('invalidMarshallDataProvider')]\n public function testMarshallInvalidData($values)\n {\n $marshaller = new IdentityMarshaller();\n $failed = [];\n\n $th", "middle": " */\nclass IdentityMarshallerTest extends TestCase\n{\n public function testMarshall()\n {\n $marshaller = new IdentityMarshaller();\n $values = ['data' => 'string_data'];\n $failed = [];\n\n $this->asser", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/IdentityMarshallerTest.php", "language": "php", "file_size": 1637, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\AbstractSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\MarshallingSession", "suffix": "\n {\n $this->handler = $this->createMock(AbstractSessionHandler::class);\n }\n\n public function testOpen()\n {\n $marshallingSessionHandler = new MarshallingSessionHandler($this->handler, $this->createStub(MarshallerInterface::class));", "middle": "Handler;\n\n/**\n * @author Ahmed TAILOULOUTE \n */\nclass MarshallingSessionHandlerTest extends TestCase\n{\n protected MockObject&\\SessionHandlerInterface $handler;\n\n protected function setUp(): void", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MarshallingSessionHandlerTest.php", "language": "php", "file_size": 4212, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\MemcachedSessionHandler;\n\n#[RequiresPhpExtension('memcached')]\n#[Group('time-sensitive')]\nclass MemcachedSessionHandlerTest", "suffix": "('memcached'), '3.0.0b1', '<')) {\n $this->markTestSkipped('Tests can only be run with memcached extension 2.1.0 or lower, or 3.0.0b1 or higher');\n }\n }\n\n public function testOpenSession()\n {\n $this->assertTrue($this->getSe", "middle": " extends TestCase\n{\n private const PREFIX = 'prefix_';\n private const TTL = 1000;\n\n protected function setUp(): void\n {\n if (version_compare(phpversion('memcached'), '2.2.0', '>=') && version_compare(phpversion", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php", "language": "php", "file_size": 5185, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\MigratingSessionHandler;\n\nclass MigratingSessionHandlerTest extends TestCase\n{\n public function testInstanceOf()\n {\n $dualHandler = new MigratingSessionHandler($this->createStub(\\SessionHandlerInterface::class), $this->createStub(\\SessionHandlerInterface::class));\n\n $this->assertInstanceOf", "suffix": "ock(\\SessionHandlerInterface::class);\n $currentHandler->expects($this->once())\n ->method('close')\n ->willReturn(true);\n\n $writeOnlyHandler = $this->createMock(\\SessionHandlerInterface::class);\n $writeOnlyHandler->", "middle": "(\\SessionHandlerInterface::class, $dualHandler);\n $this->assertInstanceOf(\\SessionUpdateTimestampHandlerInterface::class, $dualHandler);\n }\n\n public function testClose()\n {\n $currentHandler = $this->createM", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MigratingSessionHandlerTest.php", "language": "php", "file_size": 6556, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse MongoDB\\BSON\\Binary;\nuse MongoDB\\BSON\\UTCDateTime;\nuse MongoDB\\Client;\nuse MongoDB\\Driver\\BulkWrite;\nuse MongoDB\\Driver\\Command;\nuse MongoDB\\Driver\\Exception\\CommandException;\nuse MongoDB\\Driver\\Exception\\ConnectionException;\nuse MongoDB\\Driver\\Manager;\nuse MongoDB\\Driver\\Query;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes", "suffix": "nn@bachi.biz>\n */\n#[RequiresPhpExtension('mongodb')]\n#[Group('integration')]\n#[Group('time-sensitive')]\nclass MongoDbSessionHandlerTest extends TestCase\n{\n private const DABASE_NAME = 'sf-test';\n private const COLLECTION_NAME = 'session-test';\n\n p", "middle": "\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\MongoDbSessionHandler;\n\nrequire_once __DIR__.'/stubs/mongodb.php';\n\n/**\n * @author Markus Bachmann \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\PreserveGlobalState;\nuse PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Ha", "suffix": "RunTestsInSeparateProcesses]\nclass NativeFileSessionHandlerTest extends TestCase\n{\n public function testConstruct()\n {\n new NativeSessionStorage(['name' => 'TESTING'], new NativeFileSessionHandler(sys_get_temp_dir()));\n\n $this->assertEq", "middle": "ndler\\NativeFileSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage;\n\n/**\n * Test class for NativeFileSessionHandler.\n *\n * @author Drak \n */\n#[PreserveGlobalState(false)]\n#[", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php", "language": "php", "file_size": 2360, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\PreserveGlobalState;\nuse PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\", "suffix": "lobalState(false)]\n#[RunTestsInSeparateProcesses]\nclass NullSessionHandlerTest extends TestCase\n{\n public function testSaveHandlers()\n {\n $this->getStorage();\n $this->assertEquals('user', \\ini_get('session.save_handler'));\n }\n\n pu", "middle": "HttpFoundation\\Session\\Storage\\Handler\\NullSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage;\n\n/**\n * Test class for NullSessionHandler.\n *\n * @author Drak \n */\n#[PreserveG", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NullSessionHandlerTest.php", "language": "php", "file_size": 1807, "cut_index": 537, "middle_length": 229}} {"prefix": "function tearDown(): void\n {\n // make sure the temporary database file is deleted when it has been created (even when a test fails)\n if ($this->dbFile) {\n @unlink($this->dbFile);\n }\n }\n\n protected function getPersistentSqliteDsn()\n {\n $this->dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_sessions');\n\n return 'sqlite:'.$this->dbFile;\n }\n\n protected function getMemorySqlitePdo()\n {\n $pdo = new \\PDO('sqlite::memory:');\n $pdo->set", "suffix": "expectException(\\InvalidArgumentException::class);\n $pdo = $this->getMemorySqlitePdo();\n $pdo->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_SILENT);\n\n new PdoSessionHandler($pdo);\n }\n\n public function testInexistentTable()\n ", "middle": "Attribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n $storage = new PdoSessionHandler($pdo);\n $storage->createTable();\n\n return $pdo;\n }\n\n public function testWrongPdoErrMode()\n {\n $this->", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php", "language": "php", "file_size": 17844, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Predis\\Client;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\RedisSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\SessionHandlerFactory;", "suffix": " explode(':', getenv('REDIS_HOST')) + [1 => 6379]));\n }\n\n public function testNoDuplicatePrefixWhenUsingDsn()\n {\n $host = getenv('REDIS_HOST') ?: 'localhost';\n $dsn = 'redis://'.$host.'?prefix=my_session_prefix_&class='.urlencode(Cli", "middle": "\n\n#[Group('integration')]\nclass PredisSessionHandlerTest extends AbstractRedisSessionHandlerTestCase\n{\n protected function createRedisClient(string $host): Client\n {\n return new Client(array_combine(['host', 'port'],", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PredisSessionHandlerTest.php", "language": "php", "file_size": 1602, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\n\n#[Group('integration')]\nclass RedisClusterSessionHandlerTest extends AbstractRedisSessionHandlerTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!class_exists(\\RedisCluster::class)) {\n ", "suffix": "uired.');\n }\n\n if (!$hosts = getenv('REDIS_CLUSTER_HOSTS')) {\n self::markTestSkipped('REDIS_CLUSTER_HOSTS env var is not defined.');\n }\n }\n\n protected function createRedisClient(string $host): \\RedisCluster\n {\n ", "middle": "self::markTestSkipped('The RedisCluster class is req", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/RedisClusterSessionHandlerTest.php", "language": "php", "file_size": 978, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\PreserveGlobalState;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storag", "suffix": "andlerFactory.\n *\n * @author Simon \n */\n#[PreserveGlobalState(false)]\n#[RunTestsInSeparateProcesses]\nclass SessionHandlerFactoryTest extends TestCase\n{\n #[DataProvider('provideConnectionDSN')]\n public function testCreat", "middle": "e\\Handler\\RedisSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\SessionHandlerFactory;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\StrictSessionHandler;\n\n/**\n * Test class for SessionH", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/SessionHandlerFactoryTest.php", "language": "php", "file_size": 3088, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Handler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\AbstractSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\StrictSessionHandler;\n\nclass StrictSessionHandlerTest extends TestCase\n{\n public function testOpen()\n {\n $handler = $this->createMock(\\SessionHandlerInterface::class);\n $handler->expects($this->once())->me", "suffix": "rtInstanceOf(AbstractSessionHandler::class, $proxy);\n $this->assertTrue($proxy->open('path', 'name'));\n }\n\n public function testCloseSession()\n {\n $handler = $this->createMock(\\SessionHandlerInterface::class);\n $handler->expec", "middle": "thod('open')\n ->with('path', 'name')->willReturn(true);\n $proxy = new StrictSessionHandler($handler);\n\n $this->assertInstanceOf(\\SessionUpdateTimestampHandlerInterface::class, $proxy);\n $this->asse", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/StrictSessionHandlerTest.php", "language": "php", "file_size": 7250, "cut_index": 716, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\File;\n\nuse Symfony\\Component\\HttpFoundation\\File\\File as OrigFile;\n\nclass FakeFile extends OrigFile\n{\n private string $realpath;\n\n public function __construct(string $realpath, string $path)\n {\n $this->realpath = $realpath;\n parent::__construct($pat", "suffix": "bool\n {\n return true;\n }\n\n public function getRealpath(): string\n {\n return $this->realpath;\n }\n\n public function getSize(): int\n {\n return 42;\n }\n\n public function getMTime(): int\n {\n return time()", "middle": "h, false);\n }\n\n public function isReadable(): ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/File/FakeFile.php", "language": "php", "file_size": 877, "cut_index": 559, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\File;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\File\\File;\n\n#[RequiresPhpExtension('fileinfo')]\nclass FileTest extends Tes", "suffix": "xtensionWithoutGuesser()\n {\n $file = new File(__DIR__.'/Fixtures/directory/.empty');\n $this->assertNull($file->guessExtension());\n }\n\n public function testGuessExtensionIsBasedOnMimeType()\n {\n $file = new File(__DIR__.'/Fix", "middle": "tCase\n{\n public function testGetMimeTypeUsesMimeTypeGuessers()\n {\n $file = new File(__DIR__.'/Fixtures/test.gif');\n $this->assertEquals('image/gif', $file->getMimeType());\n }\n\n public function testGuessE", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/File/FileTest.php", "language": "php", "file_size": 4679, "cut_index": 614, "middle_length": 229}} {"prefix": "\\File\\Exception\\CannotWriteFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\ExtensionFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FormSizeFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\IniSizeFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\NoFileException;\nuse Symfony\\Component\\HttpFoundati", "suffix": "unction setUp(): void\n {\n if (!\\ini_get('file_uploads')) {\n $this->markTestSkipped('file_uploads is disabled in php.ini');\n }\n }\n\n public function testConstructWhenFileNotExists()\n {\n $this->expectException(FileN", "middle": "on\\File\\Exception\\NoTmpDirFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\PartialFileException;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\n\nclass UploadedFileTest extends TestCase\n{\n protected f", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/File/UploadedFileTest.php", "language": "php", "file_size": 10377, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\RequestAttributeValueSame;\n\nclas", "suffix": "'foo', 'bar');\n $this->assertTrue($constraint->evaluate($request, '', true));\n $constraint = new RequestAttributeValueSame('bar', 'foo');\n $this->assertFalse($constraint->evaluate($request, '', true));\n\n $this->expectException(E", "middle": "s RequestAttributeValueSameTest extends TestCase\n{\n public function testConstraint()\n {\n $request = new Request();\n $request->attributes->set('foo', 'bar');\n $constraint = new RequestAttributeValueSame(", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php", "language": "php", "file_size": 1202, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\Respo", "suffix": "'));\n $constraint = new ResponseCookieValueSame('foo', 'bar', '/path');\n $this->assertTrue($constraint->evaluate($response, '', true));\n $constraint = new ResponseCookieValueSame('foo', 'bar', '/path');\n $this->assertTrue($const", "middle": "nseCookieValueSame;\n\nclass ResponseCookieValueSameTest extends TestCase\n{\n public function testConstraint()\n {\n $response = new Response();\n $response->headers->setCookie(Cookie::create('foo', 'bar', 0, '/path", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php", "language": "php", "file_size": 1768, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\ResponseFormatSame;\n\n/**\n * @a", "suffix": "mat']);\n\n $constraint = new ResponseFormatSame($request, 'custom');\n $this->assertTrue($constraint->evaluate(new Response('', 200, ['Content-Type' => 'application/vnd.myformat']), '', true));\n $this->assertFalse($constraint->evaluate(n", "middle": "uthor Kévin Dunglas \n */\nclass ResponseFormatSameTest extends TestCase\n{\n public function testConstraint()\n {\n $request = new Request();\n $request->setFormat('custom', ['application/vnd.myfor", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseFormatSameTest.php", "language": "php", "file_size": 2260, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Te", "suffix": " $constraint = new ResponseHasCookie('foo');\n $this->assertTrue($constraint->evaluate($response, '', true));\n $constraint = new ResponseHasCookie('bar');\n $this->assertFalse($constraint->evaluate($response, '', true));\n\n ", "middle": "st\\Constraint\\ResponseHasCookie;\n\nclass ResponseHasCookieTest extends TestCase\n{\n public function testConstraint()\n {\n $response = new Response();\n $response->headers->setCookie(Cookie::create('foo', 'bar'));\n", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php", "language": "php", "file_size": 1208, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\ResponseHasHeader;\n\nclass Re", "suffix": "t = new ResponseHasHeader('X-Date');\n $this->assertFalse($constraint->evaluate(new Response(), '', true));\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptionMessage('Failed asserting that the Response ", "middle": "sponseHasHeaderTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new ResponseHasHeader('Date');\n $this->assertTrue($constraint->evaluate(new Response(), '', true));\n $constrain", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php", "language": "php", "file_size": 1080, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\ResponseHeaderLocationSame;\n\nclass ResponseHeaderLocationSameTest extends TestCase\n{\n #[DataProvider('provideSuccessCases')]\n publ", "suffix": " $response->headers->set('Location', $location);\n }\n\n $constraint = new ResponseHeaderLocationSame($request, $expectedLocation);\n\n self::assertTrue($constraint->evaluate($response, '', true));\n }\n\n public static function p", "middle": "ic function testConstraintSuccess(string $requestUrl, ?string $location, string $expectedLocation)\n {\n $request = Request::create($requestUrl);\n\n $response = new Response();\n if (null !== $location) {\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderLocationSameTest.php", "language": "php", "file_size": 6480, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\ResponseHeaderSame;\n\nclass Resp", "suffix": "'', true));\n $constraint = new ResponseHeaderSame('Cache-Control', 'public');\n $this->assertFalse($constraint->evaluate(new Response(), '', true));\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExcep", "middle": "onseHeaderSameTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new ResponseHeaderSame('Cache-Control', 'no-cache, private');\n $this->assertTrue($constraint->evaluate(new Response(), ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php", "language": "php", "file_size": 1158, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\ResponseIsRedirected;\n\nclass ResponseIsRedirectedT", "suffix": "onstraint->evaluate(new Response(), '', true));\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptionMessageMatches('/Failed asserting that the Response is redirected.\\nHTTP\\/1.0 200 OK.+Body content/s');\n\n ", "middle": "est extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new ResponseIsRedirected();\n\n $this->assertTrue($constraint->evaluate(new Response('', 301), '', true));\n $this->assertFalse($c", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php", "language": "php", "file_size": 1600, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\ResponseIsSuccessful;\n\nclass ResponseIsSuccessfulT", "suffix": "nt->evaluate(new Response('', 404), '', true));\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptionMessageMatches('/Failed asserting that the Response is successful.\\nHTTP\\/1.0 404 Not Found.+Response body/s')", "middle": "est extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new ResponseIsSuccessful();\n\n $this->assertTrue($constraint->evaluate(new Response(), '', true));\n $this->assertFalse($constrai", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php", "language": "php", "file_size": 1629, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\ResponseIsUnprocessable;\n\nclass ResponseIsUnproces", "suffix": "tFalse($constraint->evaluate(new Response(), '', true));\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptionMessageMatches('/Failed asserting that the Response is unprocessable.\\nHTTP\\/1.0 200 OK.+Response bod", "middle": "sableTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new ResponseIsUnprocessable();\n\n $this->assertTrue($constraint->evaluate(new Response('', 422), '', true));\n $this->asser", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsUnprocessableTest.php", "language": "php", "file_size": 1623, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\ResponseStatusCodeSame;\n\nclass ResponseStatusCodeS", "suffix": "constraint->evaluate(new Response('', 404), '', true));\n $constraint = new ResponseStatusCodeSame(404);\n $this->assertTrue($constraint->evaluate(new Response('', 404), '', true));\n\n $constraint = new ResponseStatusCodeSame(200);\n\n ", "middle": "ameTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new ResponseStatusCodeSame(200);\n $this->assertTrue($constraint->evaluate(new Response(), '', true));\n $this->assertFalse($", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php", "language": "php", "file_size": 1857, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Compo", "suffix": "\n public function testSuccessfulCase(string|array $flashMessages)\n {\n $request = new Request();\n $session = new Session(new MockArraySessionStorage());\n $request->setSession($session);\n\n $session->getFlashBag()->set('foo',", "middle": "nent\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint\\SessionHasFlashMessage;\n\nclass SessionHasFlashMessageTest extends TestCase\n{\n #[DataProvider('provideMessages')]", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/SessionHasFlashMessageTest.php", "language": "php", "file_size": 3405, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nfinal class RequestAttributeValueSame extends Constraint\n{\n public function __construct(\n private string $name,\n", "suffix": " */\n protected function matches($request): bool\n {\n return $this->value === $request->attributes->get($this->name);\n }\n\n /**\n * @param Request $request\n */\n protected function failureDescription($request): string\n {\n ", "middle": " private string $value,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('has attribute \"%s\" with value \"%s\"', $this->name, $this->value);\n }\n\n /**\n * @param Request $request\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/RequestAttributeValueSame.php", "language": "php", "file_size": 1050, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nfinal class ResponseCookieValueSame extends Constraint\n{\n public function __construct(\n pr", "suffix": " $this->name);\n if ('/' !== $this->path) {\n $str .= \\sprintf(' with path \"%s\"', $this->path);\n }\n if ($this->domain) {\n $str .= \\sprintf(' for domain \"%s\"', $this->domain);\n }\n\n return $str.\\sprintf(", "middle": "ivate string $name,\n private string $value,\n private string $path = '/',\n private ?string $domain = null,\n ) {\n }\n\n public function toString(): string\n {\n $str = \\sprintf('has cookie \"%s\"',", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseCookieValueSame.php", "language": "php", "file_size": 1886, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\UrlHelper;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\RequestContextAwareInterface;\n\nclass UrlHelperTest extends TestCase\n{\n #[DataProvider('getGenerateAbsoluteUrlData')]\n pub", "suffix": "$expected, $helper->getAbsoluteUrl($path));\n }\n\n public static function getGenerateAbsoluteUrlData()\n {\n return [\n ['http://localhost/foo.png', '/foo.png', '/foo/bar.html'],\n ['http://localhost/foo/foo.png', 'foo.png',", "middle": "lic function testGenerateAbsoluteUrl($expected, $path, $pathinfo)\n {\n $stack = new RequestStack();\n $stack->push(Request::create($pathinfo));\n $helper = new UrlHelper($stack);\n\n $this->assertEquals(", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/UrlHelperTest.php", "language": "php", "file_size": 6722, "cut_index": 716, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RateLimiter;\n\nuse Symfony\\Component\\HttpFoundation\\RateLimiter\\AbstractRequestRateLimiter;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\n\nclass MockAbstractRequestRateLimiter extends A", "suffix": "terInterface[]\n */\n private array $limiters;\n\n public function __construct(array $limiters)\n {\n $this->limiters = $limiters;\n }\n\n protected function getLimiters(Request $request): array\n {\n return $this->limiters;\n }\n", "middle": "bstractRequestRateLimiter\n{\n /**\n * @var Limi", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RateLimiter/MockAbstractRequestRateLimiter.php", "language": "php", "file_size": 833, "cut_index": 523, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMat", "suffix": " = Request::create('/foo');\n $expressionRequestMatcher = new ExpressionRequestMatcher(new ExpressionLanguage(), $expression);\n $this->assertSame($expected, $expressionRequestMatcher->matches($request));\n }\n\n public static function provi", "middle": "cher\\ExpressionRequestMatcher;\n\nclass ExpressionRequestMatcherTest extends TestCase\n{\n #[DataProvider('provideExpressions')]\n public function testMatchesWhenParentMatchesIsTrue($expression, $expected)\n {\n $request", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/ExpressionRequestMatcherTest.php", "language": "php", "file_size": 1781, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\HostRequestMatcher;\n\nclass HostRequestMatch", "suffix": "T' => 'foo.example.com']);\n $this->assertSame($isMatch, $matcher->matches($request));\n }\n\n public static function getData()\n {\n return [\n ['.*\\.example\\.com', true],\n ['\\.example\\.com$', true],\n ['^.*", "middle": "erTest extends TestCase\n{\n #[DataProvider('getData')]\n public function test($pattern, $isMatch)\n {\n $matcher = new HostRequestMatcher($pattern);\n $request = Request::create('', 'get', [], [], [], ['HTTP_HOS", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/HostRequestMatcherTest.php", "language": "php", "file_size": 1254, "cut_index": 524, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\IsJsonRequestMatcher;\n\nclass IsJ", "suffix": " [], $json);\n $this->assertSame($isValid, $matcher->matches($request));\n }\n\n public static function getData()\n {\n return [\n ['not json', false],\n ['\"json_string\"', true],\n ['11', true],\n ['", "middle": "sonRequestMatcherTest extends TestCase\n{\n #[DataProvider('getData')]\n public function test($json, bool $isValid)\n {\n $matcher = new IsJsonRequestMatcher();\n $request = Request::create('', 'GET', [], [], [],", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/IsJsonRequestMatcherTest.php", "language": "php", "file_size": 1044, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\PathRequestMatcher;\n\nclass PathRequestMatcherTest extend", "suffix": "tSame($expected, $matcher->matches($request));\n }\n\n public static function getData()\n {\n return [\n ['/admin/.*', true],\n ['/admin', true],\n ['^/admin/.*$', true],\n ['/blog/.*', false],\n ];\n", "middle": "s TestCase\n{\n #[DataProvider('getData')]\n public function test(string $regexp, bool $expected)\n {\n $matcher = new PathRequestMatcher($regexp);\n $request = Request::create('/admin/foo');\n $this->asser", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/PathRequestMatcherTest.php", "language": "php", "file_size": 1531, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\QueryParameterRequestMatcher;\n\nclass QueryParameterRequestMatcherTest extends Test", "suffix": "$this->assertSame($matches, $matcher->matches($request));\n }\n\n #[DataProvider('getDataForArray')]\n public function testCommaSeparatedString(string $uri, bool $matches)\n {\n $matcher = new QueryParameterRequestMatcher('foo, bar');\n ", "middle": "Case\n{\n #[DataProvider('getDataForArray')]\n public function testArray(string $uri, bool $matches)\n {\n $matcher = new QueryParameterRequestMatcher(['foo', 'bar']);\n $request = Request::create($uri);\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/QueryParameterRequestMatcherTest.php", "language": "php", "file_size": 2151, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n$parent = __DIR__;\nwhile (!@file_exists($parent.'/vendor/autoload.php')) {\n if (!@file_exists($parent)) {\n // open_basedir restriction in effect\n break;\n }\n if ($parent === dirname($parent)) {\n echo \"vendor/autoload.php not found\\n\";\n exit(1);\n }\n\n $parent = dirname($parent);\n}\n\nrequire $parent.'/vendor/autolo", "suffix": "\n\n$r = new JsonResponse([\n 'request' => $request->request->all(),\n 'files' => array_map(\n static fn (UploadedFile $file) => [\n 'clientOriginalName' => $file->getClientOriginalName(),\n 'clientMimeType' => $file->getClientM", "middle": "ad.php';\n\nerror_reporting(-1);\nini_set('html_errors', 0);\nini_set('display_errors', 1);\n\nif (filter_var(ini_get('xdebug.default_enable'), \\FILTER_VALIDATE_BOOL)) {\n xdebug_disable();\n}\n\n$request = Request::createFromGlobals();", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Fixtures/request-functional/index.php", "language": "php", "file_size": 1123, "cut_index": 515, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionFactory;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorageFactory;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\SessionListener;\nuse Symfony\\Compone", "suffix": "d;\n\n$request = new Request();\n$request->cookies->set($sessionName, $sessionId);\n\n$requestStack = new RequestStack();\n$requestStack->push($request);\n\n$sessionFactory = new SessionFactory($requestStack, new NativeSessionStorageFactory());\n\n$container = new C", "middle": "nt\\HttpKernel\\HttpKernelInterface;\n\n/** @var Response $r */\n$r = require __DIR__.'/common.inc';\n\n$sessionId = 'vqd4dpbtst3af0k4sdl18nebkn';\nsession_id($sessionId);\n$sessionName = session_name();\n$_COOKIE[$sessionName] = $sessionI", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Fixtures/response-functional/deleted_cookie.php", "language": "php", "file_size": 1845, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Attribute;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag;\n\n/**\n * Tests AttributeBag.\n *\n * @author Drak \n */\nclass AttributeBagTest extends TestCase\n{\n private array $array = [];\n\n private ?Att", "suffix": " 'a' => '1234',\n 'b' => '4321',\n ],\n 'category' => [\n 'fishing' => [\n 'first' => 'cod',\n 'second' => 'sole',\n ],\n ],\n ];\n", "middle": "ributeBag $bag = null;\n\n protected function setUp(): void\n {\n $this->array = [\n 'hello' => 'world',\n 'always' => 'be happy',\n 'user.login' => 'drak',\n 'csrf.token' => [\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Attribute/AttributeBagTest.php", "language": "php", "file_size": 5001, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag;\n\n/**\n * Test class for MetadataBag.\n */\n#[Group('time-sensitive')]\nclass MetadataBagTest extends TestCase\n{\n protected MetadataBag $bag;\n protected array $array = []", "suffix": "tialize($this->array);\n }\n\n public function testInitialize()\n {\n $sessionMetadata = [];\n\n $bag1 = new MetadataBag();\n $bag1->initialize($sessionMetadata);\n $this->assertGreaterThanOrEqual(time(), $bag1->getCreated());\n ", "middle": ";\n\n protected function setUp(): void\n {\n $this->bag = new MetadataBag();\n $this->array = [MetadataBag::CREATED => 1234567, MetadataBag::UPDATED => 12345678, MetadataBag::LIFETIME => 0];\n $this->bag->ini", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php", "language": "php", "file_size": 4298, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockFileSessionStorage;\n\n/**\n * Test class for MockFileSessionStorage.\n *\n * @author Drak storage = $this->getStorage();\n }\n\n protected function tearDown(): void\n {\n array_map('unlink', glob($this->sessionDir.'/*'));\n if (is_dir($this->sessionDir)) {\n @rmdir($this->sessionD", "middle": "k@zikula.org>\n */\nclass MockFileSessionStorageTest extends TestCase\n{\n protected MockFileSessionStorage $storage;\n\n private string $sessionDir;\n\n protected function setUp(): void\n {\n $this->sessionDir = sys_get", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php", "language": "php", "file_size": 3771, "cut_index": 614, "middle_length": 229}} {"prefix": "eProcesses;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeFileSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NullSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\SessionHandlerProxy;\n\n/**\n * Test cl", "suffix": " private string $savePath;\n\n private $initialSessionSaveHandler;\n private $initialSessionSavePath;\n\n protected function setUp(): void\n {\n $this->initialSessionSaveHandler = ini_set('session.save_handler', 'files');\n $this->initi", "middle": "ass for NativeSessionStorage.\n *\n * @author Drak \n *\n * These tests require separate processes.\n */\n#[RunTestsInSeparateProcesses]\n#[PreserveGlobalState(false)]\nclass NativeSessionStorageTest extends TestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php", "language": "php", "file_size": 11222, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\ServerBag;\n\n/**\n * ServerBagTest.\n *\n * @author Bulat Shakirzyanov \n */\nclass ServerBagTest extends TestCase\n{\n public function testShouldExtractHeadersFromServerArray()\n {\n $server = [\n 'SOME_SERVER_VARIABLE' => 'value',\n 'SOME_SERVER_VARIABLE2' => 'value',\n 'ROOT' => 'value',\n ", "suffix": "$server);\n\n $this->assertEquals([\n 'CONTENT_TYPE' => 'text/html',\n 'CONTENT_LENGTH' => '0',\n 'ETAG' => 'asdf',\n 'AUTHORIZATION' => 'Basic '.base64_encode('foo:bar'),\n 'PHP_AUTH_USER' => 'foo',\n ", "middle": " 'HTTP_CONTENT_TYPE' => 'text/html',\n 'HTTP_CONTENT_LENGTH' => '0',\n 'HTTP_ETAG' => 'asdf',\n 'PHP_AUTH_USER' => 'foo',\n 'PHP_AUTH_PW' => 'bar',\n ];\n\n $bag = new ServerBag(", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/ServerBagTest.php", "language": "php", "file_size": 6413, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage;\n\nuse PHPUnit\\Framework\\Attributes\\PreserveGlobalState;\nuse PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\PhpBridgeSessionStorage;\n\n/**\n * Test c", "suffix": " private string $savePath;\n\n private $initialSessionSaveHandler;\n private $initialSessionSavePath;\n\n protected function setUp(): void\n {\n $this->initialSessionSaveHandler = ini_set('session.save_handler', 'files');\n $this->init", "middle": "lass for PhpSessionStorage.\n *\n * @author Drak \n *\n * These tests require separate processes.\n */\n#[PreserveGlobalState(false)]\n#[RunTestsInSeparateProcesses]\nclass PhpBridgeSessionStorageTest extends TestCase\n{\n", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/PhpBridgeSessionStorageTest.php", "language": "php", "file_size": 3127, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage\\Proxy;\n\nuse PHPUnit\\Framework\\Attributes\\PreserveGlobalState;\nuse PHPUnit\\Framework\\Attributes\\RunInSeparateProcess;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\AbstractProxy;\nuse Symfony\\Component\\HttpFoundation\\", "suffix": "p(): void\n {\n $this->proxy = new class extends AbstractProxy {};\n }\n\n public function testGetSaveHandlerName()\n {\n $this->assertNull($this->proxy->getSaveHandlerName());\n }\n\n public function testIsSessionHandlerInterface()\n ", "middle": "Session\\Storage\\Proxy\\SessionHandlerProxy;\n\n/**\n * Test class for AbstractProxy.\n *\n * @author Drak \n */\nclass AbstractProxyTest extends TestCase\n{\n protected AbstractProxy $proxy;\n\n protected function setU", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php", "language": "php", "file_size": 2741, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RateLimiter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\nuse Symfony\\Component\\RateLimiter\\RateLimit;\n\nclass AbstractRequestRateLimiterTest extends TestCase\n{\n #[DataProvider('provideRateLim", "suffix": "LimiterInterface::class);\n $limiter->method('consume')->willReturn($rateLimit);\n\n return $limiter;\n }, $rateLimits));\n\n $this->assertSame($expected, $rateLimiter->consume(new Request()));\n }\n\n public function testC", "middle": "its')]\n public function testConsume(array $rateLimits, ?RateLimit $expected)\n {\n $rateLimiter = new MockAbstractRequestRateLimiter(array_map(function (RateLimit $rateLimit) {\n $limiter = $this->createStub(", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RateLimiter/AbstractRequestRateLimiterTest.php", "language": "php", "file_size": 3053, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\AttributesRequestMatcher;\nuse Symfony\\Compo", "suffix": "estMatcher([$key => $regexp]);\n $request = Request::create('/admin/foo');\n $request->attributes->set('foo', 'foo_bar');\n $request->attributes->set('_controller', static fn () => new Response('foo'));\n $this->assertSame($expected", "middle": "nent\\HttpFoundation\\Response;\n\nclass AttributesRequestMatcherTest extends TestCase\n{\n #[DataProvider('getData')]\n public function test(string $key, string $regexp, bool $expected)\n {\n $matcher = new AttributesRequ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/AttributesRequestMatcherTest.php", "language": "php", "file_size": 1345, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\MethodRequestMatcher;\n\nclass MethodRequestMatcherTest ex", "suffix": "uest::create('', $requestMethod);\n $this->assertSame($isMatch, $matcher->matches($request));\n }\n\n public function testAlwaysMatchesOnEmptyMethod()\n {\n $matcher = new MethodRequestMatcher([]);\n $request = Request::create('https", "middle": "tends TestCase\n{\n #[DataProvider('getData')]\n public function test(string $requestMethod, array|string $matcherMethod, bool $isMatch)\n {\n $matcher = new MethodRequestMatcher($matcherMethod);\n $request = Req", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/MethodRequestMatcherTest.php", "language": "php", "file_size": 1536, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\PortRequestMatcher;\n\nclass Port", "suffix": ", [], ['HTTP_HOST' => null, 'SERVER_PORT' => 8000]);\n $this->assertSame($expected, $matcher->matches($request));\n }\n\n public static function getData()\n {\n return [\n [8000, true],\n [9000, false],\n ];\n }", "middle": "RequestMatcherTest extends TestCase\n{\n #[DataProvider('getData')]\n public function test(int $port, bool $expected)\n {\n $matcher = new PortRequestMatcher($port);\n $request = Request::create('', 'get', [], []", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/PortRequestMatcherTest.php", "language": "php", "file_size": 1000, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Flash;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\AutoExpireFlashBag as FlashBag;\n\n/**\n * AutoExpireFlashBagTest.\n *\n * @author Drak \n */\nclass AutoExpireFlashBagTest extends TestCase\n{\n protected array $array = [];\n\n private FlashBag $bag;\n\n protected", "suffix": "(): void\n {\n unset($this->bag);\n }\n\n public function testInitialize()\n {\n $bag = new FlashBag();\n $array = ['new' => ['notice' => ['A previous flash message']]];\n $bag->initialize($array);\n $this->assertEquals", "middle": " function setUp(): void\n {\n $this->bag = new FlashBag();\n $this->array = ['new' => ['notice' => ['A previous flash message']]];\n $this->bag->initialize($this->array);\n }\n\n protected function tearDown", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php", "language": "php", "file_size": 4457, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Storage;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\n\n/**\n * Test class for MockArraySessionStorage.\n *\n * @author Drak attributes = new AttributeBag();\n $this->flashes = new FlashBag();\n\n $this->data = [\n $this->attributes->getStorageKey() => ['foo' => 'bar'],\n $this->flashes->getStorageKey() =>", "middle": "rak@zikula.org>\n */\nclass MockArraySessionStorageTest extends TestCase\n{\n private MockArraySessionStorage $storage;\n private AttributeBag $attributes;\n private FlashBag $flashes;\n private array $data;\n\n protected f", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php", "language": "php", "file_size": 3342, "cut_index": 614, "middle_length": 229}} {"prefix": " public function testSend()\n {\n $response = new Response();\n $responseSend = $response->send();\n $this->assertSame($response, $responseSend);\n }\n\n public function testGetCharset()\n {\n $response = new Response();\n $charsetOrigin = 'utf-8';\n $response->setCharset($charsetOrigin);\n $charset = $response->getCharset();\n $this->assertEquals($charsetOrigin, $charset);\n }\n\n public function testIsCacheable()\n {\n $response = new Resp", "suffix": "\n public function testIsCacheableWithNoStoreDirective()\n {\n $response = new Response();\n $response->headers->set('cache-control', 'private');\n $this->assertFalse($response->isCacheable());\n }\n\n public function testIsCacheab", "middle": "onse();\n $this->assertFalse($response->isCacheable());\n }\n\n public function testIsCacheableWithErrorCode()\n {\n $response = new Response('', 500);\n $this->assertFalse($response->isCacheable());\n }\n", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php", "language": "php", "file_size": 42293, "cut_index": 2151, "middle_length": 229}} {"prefix": "st extends TestCase\n{\n public function testResponseSimpleList()\n {\n $content = $this->createSendResponse(\n [\n '_embedded' => [\n 'articles' => $this->generatorSimple('Article'),\n 'news' => $this->generatorSimple('News'),\n ],\n ],\n );\n\n $this->assertSame('{\"_embedded\":{\"articles\":[\"Article 1\",\"Article 2\",\"Article 3\"],\"news\":[\"News 1\",\"News 2\",\"News 3\"]}}', $content);\n }\n\n public function t", "suffix": "ponseNestedGenerator()\n {\n $content = $this->createSendResponse((function (): iterable {\n yield 'articles' => $this->generatorSimple('Article');\n yield 'news' => $this->generatorSimple('News');\n })());\n\n $this-", "middle": "estResponseSimpleGenerator()\n {\n $content = $this->createSendResponse($this->generatorSimple('Article'));\n\n $this->assertSame('[\"Article 1\",\"Article 2\",\"Article 3\"]', $content);\n }\n\n public function testRes", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/StreamedJsonResponseTest.php", "language": "php", "file_size": 9343, "cut_index": 921, "middle_length": 229}} {"prefix": "ny\\Component\\HttpFoundation\\Exception\\ExpiredSignedUriException;\nuse Symfony\\Component\\HttpFoundation\\Exception\\LogicException;\nuse Symfony\\Component\\HttpFoundation\\Exception\\UnsignedUriException;\nuse Symfony\\Component\\HttpFoundation\\Exception\\UnverifiedSignedUriException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\n\n#[Group('time-sensitive')]\nclass UriSignerTest extends TestCase\n{\n public function testSign()\n {\n $signer = new UriSigner('foobar'", "suffix": "ContainsString('&foo=', $signer->sign('http://example.com/foo?foo=bar'));\n\n $this->assertStringContainsString('?_expiration=', $signer->sign('http://example.com/foo', 1));\n $this->assertStringContainsString('&_hash=', $signer->sign('http://ex", "middle": ");\n\n $this->assertStringContainsString('?_hash=', $signer->sign('http://example.com/foo'));\n $this->assertStringContainsString('?_hash=', $signer->sign('http://example.com/foo?foo=bar'));\n $this->assertString", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/UriSignerTest.php", "language": "php", "file_size": 12807, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\HeaderRequestMatcher;\n\nclass HeaderRequestMatcherTest extends TestCase\n{\n #[Dat", "suffix": "oreach ($headers as $k => $v) {\n $request->headers->set($k, $v);\n }\n\n $this->assertSame($matches, $matcher->matches($request));\n }\n\n #[DataProvider('getDataForArray')]\n public function testCommaSeparatedString(array $heade", "middle": "aProvider('getDataForArray')]\n public function testArray(array $headers, bool $matches)\n {\n $matcher = new HeaderRequestMatcher(['x-foo', 'bar']);\n\n $request = Request::create('https://example.com');\n f", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/HeaderRequestMatcherTest.php", "language": "php", "file_size": 2741, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\IpsRequestMatcher;\n\nclass IpsRequestMatcher", "suffix": "=> '127.0.0.1']);\n $this->assertSame($expected, $matcher->matches($request));\n }\n\n public static function getData()\n {\n return [\n [[], true],\n ['127.0.0.1', true],\n ['192.168.0.1', false],\n ", "middle": "Test extends TestCase\n{\n #[DataProvider('getData')]\n public function test($ips, bool $expected)\n {\n $matcher = new IpsRequestMatcher($ips);\n $request = Request::create('', 'GET', [], [], [], ['REMOTE_ADDR' ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/IpsRequestMatcherTest.php", "language": "php", "file_size": 1422, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session\\Flash;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBag;\n\n/**\n * FlashBagTest.\n *\n * @author Drak \n */\nclass FlashBagTest extends TestCase\n{\n protected array $array = [];\n\n private FlashBag $bag;\n\n protected function setUp(): void\n {\n $thi", "suffix": "public function testInitialize()\n {\n $bag = new FlashBag();\n $bag->initialize($this->array);\n $this->assertEquals($this->array, $bag->peekAll());\n $array = ['should' => ['change']];\n $bag->initialize($array);\n $", "middle": "s->bag = new FlashBag();\n $this->array = ['notice' => ['A previous flash message']];\n $this->bag->initialize($this->array);\n }\n\n protected function tearDown(): void\n {\n unset($this->bag);\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php", "language": "php", "file_size": 4623, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nabstract class ResponseTestCase extends TestCase\n{\n public function testNoCacheControlHeaderOnAttachmentUsingHTTPSAndMSIE()\n {\n // Check for HTTPS and IE 8\n $request = new Request();\n $request->server->set('HTTPS', true", "suffix": "ment; filename=\"fname.ext\"');\n $response->prepare($request);\n\n $this->assertFalse($response->headers->has('Cache-Control'));\n\n // Check for IE 10 and HTTPS\n $request->server->set('HTTP_USER_AGENT', 'Mozilla/5.0 (compatible; MSIE", "middle": ");\n $request->server->set('HTTP_USER_AGENT', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)');\n\n $response = $this->provideResponse();\n $response->headers->set('Content-Disposition', 'attach", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/ResponseTestCase.php", "language": "php", "file_size": 3409, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\RequestMatcher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\SchemeRequestMatcher;\n\nclass SchemeRequestMatcherTest extends TestCase\n{\n #[Dat", "suffix": "HTTPS' => 'on']);\n\n $matcher = new SchemeRequestMatcher($matcherScheme);\n if ($isMatch) {\n if ('https' === $requestScheme) {\n $this->assertFalse($matcher->matches($httpRequest));\n $this->assertTrue($ma", "middle": "aProvider('getData')]\n public function test(string $requestScheme, array|string $matcherScheme, bool $isMatch)\n {\n $httpRequest = Request::create('');\n $httpsRequest = Request::create('', 'get', [], [], [], ['", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/RequestMatcher/SchemeRequestMatcherTest.php", "language": "php", "file_size": 2043, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Tests\\Session;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionBagProxy;\nuse Symfony\\Component\\Ht", "suffix": "torage\\SessionStorageInterface;\n\n/**\n * SessionTest.\n *\n * @author Fabien Potencier \n * @author Robert Schönthal \n * @author Drak \n */\nclass SessionTest extends TestCase\n{\n protected SessionS", "middle": "tpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\HttpFoundation\\Session\\S", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Tests/Session/SessionTest.php", "language": "php", "file_size": 7982, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nfinal class ResponseHeaderLocationSame extends Constraint\n{\n public function __construct(private", "suffix": "es($other): bool\n {\n if (!$other instanceof Response) {\n return false;\n }\n\n $location = $other->headers->get('Location');\n\n if (null === $location) {\n return false;\n }\n\n return $this->toFul", "middle": " Request $request, private string $expectedValue)\n {\n }\n\n public function toString(): string\n {\n return \\sprintf('has header \"Location\" matching \"%s\"', $this->expectedValue);\n }\n\n protected function match", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseHeaderLocationSame.php", "language": "php", "file_size": 1632, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\n\n/**\n * Interface for the user password hasher service.\n *\n * @author Ariel Ferrandini \n */\ninterface UserPasswordHasherI", "suffix": "cks if the plaintext password matches the user's password.\n */\n public function isPasswordValid(PasswordAuthenticatedUserInterface $user, #[\\SensitiveParameter] string $plainPassword): bool;\n\n /**\n * Checks if an encoded password would benefi", "middle": "nterface\n{\n /**\n * Hashes the plain password for the given user.\n */\n public function hashPassword(PasswordAuthenticatedUserInterface $user, #[\\SensitiveParameter] string $plainPassword): string;\n\n /**\n * Che", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/UserPasswordHasherInterface.php", "language": "php", "file_size": 1109, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidOptionsException;\n\n/**\n * Contains the properties of a constraint definition.\n *\n * A constraint can be defined on a class, a property or a getter method.\n * The Constraint class encapsulates all the configuration required for\n * validating this class, property or getter result successfully.\n *\n * Constraint instances a", "suffix": "EFAULT_GROUP = 'Default';\n\n /**\n * Marks a constraint that can be put onto classes.\n */\n public const CLASS_CONSTRAINT = 'class';\n\n /**\n * Marks a constraint that can be put onto properties.\n */\n public const PROPERTY_CONSTRAINT", "middle": "re immutable and serializable.\n *\n * @author Bernhard Schussek \n */\nabstract class Constraint\n{\n /**\n * The name of the group given to all constraints with no explicit group.\n */\n public const D", "meta": {"filepath": "src/Symfony/Component/Validator/Constraint.php", "language": "php", "file_size": 5935, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\n\n/**\n * Base class for constraint validators.\n *\n * @author Bernhard Schussek \n */\nabstract class ConstraintValidator implements ConstraintValidatorInterface\n{\n /**\n * Whether to format {@link \\DateTime} objects, either with the {@link \\IntlDateFormatter}\n * (if it is available) or as RFC-3339 dates (\"Y-m-d H:i:s\").\n */\n public co", "suffix": "array $initializeOverrideCache = [];\n\n protected ExecutionContextInterface $context;\n\n public function validateInContext(mixed $value, Constraint $constraint, ExecutionContextInterface $context): void\n {\n $oldContext = $this->context ?? nul", "middle": "nst PRETTY_DATE = 1;\n\n /**\n * Whether to cast objects with a \"__toString()\" method to strings.\n */\n public const OBJECT_TO_STRING = 2;\n\n /**\n * @var array, bool>\n */\n private static ", "meta": {"filepath": "src/Symfony/Component/Validator/ConstraintValidator.php", "language": "php", "file_size": 6367, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\nuse Symfony\\Component\\Validator\\Constraints\\ExpressionValidator;\n\n/**\n * Default implementation of the ConstraintValidatorFactoryInterface.\n *\n * This enforces the convention that the validatedBy() method on any\n * Constraint will return th", "suffix": "c function __construct(\n protected array $validators = [],\n ) {\n }\n\n public function getInstance(Constraint $constraint): ConstraintValidatorInterface\n {\n if ('validator.expression' === $name = $class = $constraint->validatedBy())", "middle": "e class name of the ConstraintValidator that\n * should validate the Constraint.\n *\n * @author Bernhard Schussek \n */\nclass ConstraintValidatorFactory implements ConstraintValidatorFactoryInterface\n{\n publi", "meta": {"filepath": "src/Symfony/Component/Validator/ConstraintValidatorFactory.php", "language": "php", "file_size": 1132, "cut_index": 518, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\n\n/**\n * @author Bernhard Schussek \n *\n * @method void validateInContext(mixed $value, Constraint $constraint, ExecutionContextInterface $context)\n */\ninterface ConstraintValidatorInterface\n{\n /**\n * Initialize", "suffix": "d since Symfony 8.1, use \"validateInContext()\" instead\n */\n public function initialize(ExecutionContextInterface $context): void;\n\n /**\n * Checks if the passed value is valid.\n *\n * @deprecated since Symfony 8.1, use \"validateInContex", "middle": "s the constraint validator.\n *\n * @deprecate", "meta": {"filepath": "src/Symfony/Component/Validator/ConstraintValidatorInterface.php", "language": "php", "file_size": 987, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\n/**\n * Default implementation of {@ConstraintViolationInterface}.\n *\n * @author Bernhard Schussek \n */\nclass ConstraintViolation implements ConstraintViolationInterface\n{\n /**\n * Creates a new constraint violation.\n *\n * @param string|\\Stringable $message The violation message as a string or", "suffix": " raw violation message\n * @param mixed $root The value originally passed to the\n * validator\n * @param string|null $propertyPath The property path from the root\n ", "middle": " a stringable object\n * @param string|null $messageTemplate The raw violation message\n * @param array $parameters The parameters to substitute in the\n * ", "meta": {"filepath": "src/Symfony/Component/Validator/ConstraintViolation.php", "language": "php", "file_size": 3954, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\n/**\n * A violation of a constraint that happened during validation.\n *\n * For each constraint that fails during validation one or more violations are\n * created. The violations store the violation message, the path to the failing\n * element in the validation graph and the root element that was originally\n * passed to the validator. Fo", "suffix": "e\" property, the generated violation has the Person\n * instance as root and the property path \"firstName\". If validation fails\n * for the \"street\" property of the related Address instance, the root\n * element is still the person, but the ", "middle": "r example, take the following graph:\n *\n * (Person)---(firstName: string)\n * \\\n * (address: Address)---(street: string)\n *\n * If the Person object is validated and validation fails for the\n * \"firstNam", "meta": {"filepath": "src/Symfony/Component/Validator/ConstraintViolationInterface.php", "language": "php", "file_size": 4393, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\nuse Symfony\\Component\\Validator\\Exception\\OutOfBoundsException;\n\n/**\n * Default implementation of {@ConstraintViolationListInterface}.\n *\n * @author Bernhard Schussek \n *\n * @implements \\IteratorAggregate\n */\nclass ConstraintViolationList implements \\IteratorAggregate, Constraint", "suffix": "iolationInterface> $violations The constraint violations to add to the list\n */\n public function __construct(iterable $violations = [])\n {\n foreach ($violations as $violation) {\n $this->add($violation);\n }\n }\n\n publ", "middle": "ViolationListInterface\n{\n /**\n * @var list\n */\n private array $violations = [];\n\n /**\n * Creates a new constraint violation list.\n *\n * @param iterable\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\nuse Symfony\\Component\\Validator\\Exception\\OutOfBoundsException;\n\n/**\n * A list of constraint violations.\n *\n * @author Bernhard Schussek \n *\n * @extends \\ArrayAccess\n * @extends \\Traversable\n *\n", "suffix": "nds \\Traversable, \\Countable, \\ArrayAccess\n{\n /**\n * Adds a constraint violation to this list.\n */\n public function add(ConstraintViolationInterface $violation): void;\n\n /**\n * Merges an existing violation list into this list.\n */\n", "middle": " * @method static findByCodes(string|string[] $codes) Returns a new instance with violations matching the given error codes. Not implementing it is deprecated since Symfony 8.1.\n */\ninterface ConstraintViolationListInterface exte", "meta": {"filepath": "src/Symfony/Component/Validator/ConstraintViolationListInterface.php", "language": "php", "file_size": 2020, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\ValidatorException;\n\n/**\n * Uses a service container to create constraint validators.\n *\n * @author Kris Wallsmi", "suffix": " ) {\n $this->validators = [];\n }\n\n /**\n * @throws ValidatorException When the validator class does not exist\n * @throws UnexpectedTypeException When the validator is not an instance of ConstraintValidatorInterface\n */\n p", "middle": "th \n */\nclass ContainerConstraintValidatorFactory implements ConstraintValidatorFactoryInterface\n{\n private array $validators;\n\n public function __construct(\n private ContainerInterface $container,\n", "meta": {"filepath": "src/Symfony/Component/Validator/ContainerConstraintValidatorFactory.php", "language": "php", "file_size": 1960, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator;\n\nuse Symfony\\Component\\Validator\\Exception\\ValidationFailedException;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\n/**\n * Entry point for the Validator component.\n *\n * @author Bernhard Schussek \n */\nfinal class Validation\n{\n /**\n * Creates", "suffix": "ValidCallable($constraintOrValidator, ...$constraints);\n\n return static function ($value) use ($validator) {\n if (!$validator($value, $violations)) {\n throw new ValidationFailedException($value, $violations);\n }\n", "middle": " a callable chain of constraints.\n */\n public static function createCallable(Constraint|ValidatorInterface|null $constraintOrValidator = null, Constraint ...$constraints): callable\n {\n $validator = self::createIs", "meta": {"filepath": "src/Symfony/Component/Validator/Validation.php", "language": "php", "file_size": 2588, "cut_index": 563, "middle_length": 229}} {"prefix": "tFactory;\nuse Symfony\\Component\\Validator\\Exception\\ValidatorException;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\LazyLoadingMetadataFactory;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\MetadataFactoryInterface;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderChain;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\StaticMethodLoader;\nuse Symfony\\Component\\Validator\\Map", "suffix": "tracts\\Translation\\LocaleAwareInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorTrait;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(TranslatorInterface::class);\nclass_exist", "middle": "ping\\Loader\\XmlFileLoader;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\Validator\\Validator\\RecursiveValidator;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Con", "meta": {"filepath": "src/Symfony/Component/Validator/ValidatorBuilder.php", "language": "php", "file_size": 12924, "cut_index": 921, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Exception;\n\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\n\n/**\n * @author Jan Vernieuwe \n */\nclass ValidationFailedException extends RuntimeException\n{\n public function __construct(\n private mixed $v", "suffix": "ce $violations,\n ) {\n parent::__construct($violations);\n }\n\n public function getValue(): mixed\n {\n return $this->value;\n }\n\n public function getViolations(): ConstraintViolationListInterface\n {\n return $this->viola", "middle": "alue,\n private ConstraintViolationListInterfa", "meta": {"filepath": "src/Symfony/Component/Validator/Exception/ValidationFailedException.php", "language": "php", "file_size": 852, "cut_index": 529, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Context;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadataInterface;\nuse Symfony\\Component\\Validator\\Mapping\\MemberMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;\nuse Symfony\\Component\\Validator", "suffix": "lidator\\Violation\\ConstraintViolationBuilder;\nuse Symfony\\Component\\Validator\\Violation\\ConstraintViolationBuilderInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * The context used and created by {@link ExecutionContextFactory}.\n *\n", "middle": "\\Mapping\\PropertyMetadataInterface;\nuse Symfony\\Component\\Validator\\Util\\PropertyPath;\nuse Symfony\\Component\\Validator\\Validator\\LazyProperty;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Component\\Va", "meta": {"filepath": "src/Symfony/Component/Validator/Context/ExecutionContext.php", "language": "php", "file_size": 7563, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Context;\n\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * Creates new {@link ExecutionContext} instances.\n *\n * @author Bernhard Schussek \n", "suffix": "n = null,\n ) {\n }\n\n public function createContext(ValidatorInterface $validator, mixed $root): ExecutionContextInterface\n {\n return new ExecutionContext(\n $validator,\n $root,\n $this->translator,\n ", "middle": " *\n * @internal\n */\nclass ExecutionContextFactory implements ExecutionContextFactoryInterface\n{\n public function __construct(\n private TranslatorInterface $translator,\n private string|false|null $translationDomai", "meta": {"filepath": "src/Symfony/Component/Validator/Context/ExecutionContextFactory.php", "language": "php", "file_size": 1045, "cut_index": 513, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Context;\n\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\n/**\n * Creates instances of {@link ExecutionContextInterface}.\n *\n * You can use a custom factory if you want to customize the execution context\n * that is passed through the validation run.\n *\n * @", "suffix": "nterface ExecutionContextFactoryInterface\n{\n /**\n * Creates a new execution context.\n *\n * @param mixed $root The root value of the validated\n * object graph\n */\n public function createContext(ValidatorInterface", "middle": "author Bernhard Schussek \n */\ni", "meta": {"filepath": "src/Symfony/Component/Validator/Context/ExecutionContextFactoryInterface.php", "language": "php", "file_size": 911, "cut_index": 547, "middle_length": 52}} {"prefix": "omponent\\Validator\\Mapping;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Component\\Validator\\Violation\\ConstraintViolationBuilderInterface;\n\n/**\n * The context of a validation run.\n *\n * The context collects all violations generated during the validation. By\n * default, validators execute all validations in a new context:\n *\n * $violations = $validator->validate($object);\n *\n * When you make another call to the valid", "suffix": "idator();\n *\n * // The violations are not added to $this->context\n * $violations = $validator->validate($value);\n * }\n *\n * However, if you want to add the violations to the current context, use the\n * {@link ValidatorInterface::inConte", "middle": "ator, while the validation is in\n * progress, the violations will be isolated from each other:\n *\n * public function validate(mixed $value, Constraint $constraint): void\n * {\n * $validator = $this->context->getVal", "meta": {"filepath": "src/Symfony/Component/Validator/Context/ExecutionContextInterface.php", "language": "php", "file_size": 10799, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Attribute;\n\n/**\n * Declares that constraints listed on the current class should be added to the given class.\n *\n * Classes that use this attribute should contain only properties and methods that\n * exist on the target class (not necessa", "suffix": "em).\n *\n * @author Nicolas Grekas \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS)]\nfinal class ExtendsValidationFor\n{\n /**\n * @param class-string $class\n */\n public function __construct(\n public string $class,\n ) {\n }\n", "middle": "rily all of th", "meta": {"filepath": "src/Symfony/Component/Validator/Attribute/ExtendsValidationFor.php", "language": "php", "file_size": 784, "cut_index": 512, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\DataCollector;\n\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface;", "suffix": "rDumper\\Cloner\\Stub;\n\n/**\n * @author Maxime Steinhausser \n *\n * @final\n */\nclass ValidatorDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n public function __construct(\n private TraceableV", "middle": "\nuse Symfony\\Component\\Validator\\Validator\\TraceableValidator;\nuse Symfony\\Component\\VarDumper\\Caster\\Caster;\nuse Symfony\\Component\\VarDumper\\Caster\\ClassStub;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\Va", "meta": {"filepath": "src/Symfony/Component/Validator/DataCollector/ValidatorDataCollector.php", "language": "php", "file_size": 2856, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Util;\n\n/**\n * Contains utility methods for dealing with property paths.\n *\n * For more extensive functionality, use Symfony's PropertyAccess component.\n *\n * This helper is kept for back compatibility and to avoid requiring\n * symfony/property-access at runtime", "suffix": " property path.\n *\n * If the base path is empty, the appended path will be returned unchanged.\n * If the base path is not empty, and the appended path starts with a\n * squared opening bracket (\"[\"), the concatenation of the two paths is\n ", "middle": ". The same behavior is also available via\n * {@see \\Symfony\\Component\\PropertyAccess\\PropertyPath::append()}.\n *\n * @author Bernhard Schussek \n */\nclass PropertyPath\n{\n /**\n * Appends a path to a given", "meta": {"filepath": "src/Symfony/Component/Validator/Util/PropertyPath.php", "language": "php", "file_size": 1687, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\n\n/**\n * Used for th", "suffix": "xed $value = null;\n public ?string $propertyPath = null;\n\n public function __construct(mixed $value = null, ?string $propertyPath = null, ?string $message = null, ?array $groups = null, mixed $payload = null)\n {\n parent::__construct(null, $", "middle": "e comparison of values.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\nabstract class AbstractComparison extends Constraint\n{\n public string $message;\n public mi", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/AbstractComparison.php", "language": "php", "file_size": 2002, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Clock\\DatePoint;\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\UninitializedPropertyException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\", "suffix": "Exception\\UnexpectedTypeException;\n\n/**\n * Provides a base class for the validation of property comparisons.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\nabstract class AbstractComparisonValid", "middle": "PropertyAccessorInterface;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php", "language": "php", "file_size": 4309, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * When applied to an array (or Traversable object), this constraint allows you to apply\n * a collection of constraint", "suffix": " array|Constraint $constraints = [];\n\n /**\n * @param array|Constraint|null $constraints\n * @param string[]|null $groups\n */\n public function __construct(array|Constraint|null $constraints = null, ?array $gr", "middle": "s to each element of the array.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass All extends Composite\n{\n public", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/All.php", "language": "php", "file_size": 1472, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/", "suffix": " throw new UnexpectedTypeException($constraint, All::class);\n }\n\n if (null === $value) {\n return;\n }\n\n if (!\\is_array($value) && !$value instanceof \\Traversable) {\n throw new UnexpectedValueExcep", "middle": "**\n * @author Bernhard Schussek \n */\nclass AllValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof All) {\n", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/AllValidator.php", "language": "php", "file_size": 1308, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Checks that at least one of the given constraint is satisfied.\n *\n * @author Przemysław Bogusz \n */\n#[\\Attribute(\\Attribute:", "suffix": " [\n self::AT_LEAST_ONE_OF_ERROR => 'AT_LEAST_ONE_OF_ERROR',\n ];\n\n public array|Constraint $constraints = [];\n public string $message = 'This value should satisfy at least one of the following constraints:';\n public string $messageCollect", "middle": ":TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass AtLeastOneOf extends Composite\n{\n public const AT_LEAST_ONE_OF_ERROR = 'f27e6d6c-261a-4056-b391-6673a623531c';\n\n protected const ERROR_NAMES =", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/AtLeastOneOf.php", "language": "php", "file_size": 2623, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Przemysław Bogusz \n */\nclass AtLeastOneOfValidator extends Cons", "suffix": "\n }\n\n $validator = $this->context->getValidator();\n\n // Build a first violation to have the base message of the constraint translated\n $baseMessageContext = clone $this->context;\n $baseMessageContext->buildViolation($cons", "middle": "traintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof AtLeastOneOf) {\n throw new UnexpectedTypeException($constraint, AtLeastOneOf::class);", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/AtLeastOneOfValidator.php", "language": "php", "file_size": 2574, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Countries;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicE", "suffix": "| \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Bic extends Constraint\n{\n public const VALIDATION_MODE_STRICT = 'strict';\n public const VALIDATION_MODE_CASE_INSENSITIVE = 'case-insensitive';\n\n public const VALIDATION_MODES = [\n ", "middle": "xception;\n\n/**\n * Ensures that the value is valid against the BIC format.\n *\n * @see https://en.wikipedia.org/wiki/ISO_9362\n *\n * @author Michael Hirschler \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Bic.php", "language": "php", "file_size": 4537, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Countries;\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\UninitializedPropertyException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessor;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\", "suffix": "ion;\n\n/**\n * @author Michael Hirschler \n *\n * @see https://en.wikipedia.org/wiki/ISO_9362#Structure\n */\nclass BicValidator extends ConstraintValidator\n{\n // Reference: https://www.iban.com/structure\n private const BIC_COUNT", "middle": "Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueExcept", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/BicValidator.php", "language": "php", "file_size": 6368, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is blank, i.e. an empty string or null.\n *\n * @author Bernhard Schussek 'NOT_BLANK_ERROR',\n ];\n\n public string $message = 'This value should be blank.';\n\n /**\n * @param string[]|null $groups\n */\n public function __construct(?array $options = null, ?stri", "middle": "m>\n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Blank extends Constraint\n{\n public const NOT_BLANK_ERROR = '183ad2de-533d-4796-a439-6d3c3852b549';\n\n protected ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Blank.php", "language": "php", "file_size": 1402, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n */\nc", "suffix": "nt, Blank::class);\n }\n\n if ('' !== $value && null !== $value) {\n $this->context->buildViolation($constraint->message)\n ->setParameter('{{ value }}', $this->formatValue($value))\n ->setCode(Blank::NOT_BL", "middle": "lass BlankValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Blank) {\n throw new UnexpectedTypeException($constrai", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/BlankValidator.php", "language": "php", "file_size": 1063, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * Defines custom validation rules through arbitrary callback methods.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute", "suffix": "ck The callback definition\n * @param string[]|null $groups\n */\n public function __construct(string|callable|null $callback = null, ?array $groups = null, mixed $payload = null)\n {\n parent::__construct(null, $groups, $payload);\n\n", "middle": "::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Callback extends Constraint\n{\n /**\n * @var string|callable\n */\n public $callback;\n\n /**\n * @param string|callable|null $callba", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Callback.php", "language": "php", "file_size": 1176, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * Validator for Callback const", "suffix": "t $constraint): void\n {\n if (!$constraint instanceof Callback) {\n throw new UnexpectedTypeException($constraint, Callback::class);\n }\n\n $method = $constraint->callback;\n if ($method instanceof \\Closure) {\n ", "middle": "raint.\n *\n * @author Bernhard Schussek \n */\nclass CallbackValidator extends ConstraintValidator\n{\n /**\n * @psalm-suppress ParamNameMismatch\n */\n public function validate(mixed $object, Constrain", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CallbackValidator.php", "language": "php", "file_size": 2169, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nfinal class ResponseIsSuccessful extends Constraint\n{\n /**\n * @param bool $verbose If true, the entire response is printed on", "suffix": " /**\n * @param Response $response\n */\n protected function matches($response): bool\n {\n return $response->isSuccessful();\n }\n\n /**\n * @param Response $response\n */\n protected function failureDescription($response): stri", "middle": " failure. If false, the response body is omitted.\n */\n public function __construct(private readonly bool $verbose = true)\n {\n }\n\n public function toString(): string\n {\n return 'is successful';\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseIsSuccessful.php", "language": "php", "file_size": 1306, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nfinal class ResponseStatusCodeSame extends Constraint\n{\n public function __construct(\n private int $statusCode,\n pr", "suffix": "atches($response): bool\n {\n return $this->statusCode === $response->getStatusCode();\n }\n\n /**\n * @param Response $response\n */\n protected function failureDescription($response): string\n {\n return 'the Response '.$this->", "middle": "ivate readonly bool $verbose = true,\n ) {\n }\n\n public function toString(): string\n {\n return 'status code is '.$this->statusCode;\n }\n\n /**\n * @param Response $response\n */\n protected function m", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseStatusCodeSame.php", "language": "php", "file_size": 1259, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher;\n\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\n\n/**\n * Provides password hashing and verification capabilities for \"legacy\" hashers that require external salts.\n *\n * @author Fabien Potencier \n * @author Nicolas Grekas \n * @author Robin Chalas \n */\ninterface LegacyPasswordHasherInterface extends PasswordHasherInterface\n{\n /**\n * Hashes a plain password.\n *\n * @t", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/LegacyPasswordHasherInterface.php", "language": "php", "file_size": 1159, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher;\n\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\n\n/**\n * Provides password hashing capabilities.\n *\n * @author Robin Chalas \n * @author Fabien Potencier \n * @author Ni", "suffix": "invalid, e.g. excessively long\n */\n public function hash(#[\\SensitiveParameter] string $plainPassword): string;\n\n /**\n * Verifies a plain password against a hash.\n */\n public function verify(string $hashedPassword, #[\\SensitiveParamete", "middle": "colas Grekas \n */\ninterface PasswordHasherInterface\n{\n public const MAX_PASSWORD_LENGTH = 4096;\n\n /**\n * Hashes a plain password.\n *\n * @throws InvalidPasswordException When the plain password is ", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/PasswordHasherInterface.php", "language": "php", "file_size": 1181, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\nnamespace Symfony\\Component\\PasswordHasher\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Security\\Core\\User\\LegacyPasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nfinal class TestLegacyPasswordAuthenticatedUser implements LegacyPasswordAuthenticatedUserInterface, UserInterface\n{\n private string $username;\n private ?string $password;\n private ?string $salt;\n private array $roles;\n\n public function __construct(string $username, ?string $password = null, ", "suffix": " {\n return $this->salt;\n }\n\n public function getPassword(): ?string\n {\n return $this->password;\n }\n\n public function getRoles(): array\n {\n return $this->roles;\n }\n\n #[\\Deprecated]\n public function eraseCrede", "middle": "?string $salt = null, array $roles = [])\n {\n $this->roles = $roles;\n $this->salt = $salt;\n $this->password = $password;\n $this->username = $username;\n }\n\n public function getSalt(): ?string\n ", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Fixtures/TestLegacyPasswordAuthenticatedUser.php", "language": "php", "file_size": 1122, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Tests\\Hasher;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\MessageDigestPasswordHasher;\n\nclass MessageDigestPasswordHasherTest extends TestCase\n{\n public function testVerify(", "suffix": " new MessageDigestPasswordHasher('sha256', false, 1);\n $this->assertSame(hash('sha256', 'password'), $hasher->hash('password', ''));\n\n $hasher = new MessageDigestPasswordHasher('sha256', true, 1);\n $this->assertSame(base64_encode(hash(", "middle": ")\n {\n $hasher = new MessageDigestPasswordHasher('sha256', false, 1);\n\n $this->assertTrue($hasher->verify(hash('sha256', 'password'), 'password', ''));\n }\n\n public function testHash()\n {\n $hasher =", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Hasher/MessageDigestPasswordHasherTest.php", "language": "php", "file_size": 2188, "cut_index": 563, "middle_length": 229}} {"prefix": "ony\\Component\\PasswordHasher\\Hasher\\MigratingPasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\NativePasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherAwareInterface;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactory;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\SodiumPasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticate", "suffix": " 'class' => MessageDigestPasswordHasher::class,\n 'arguments' => ['sha512', true, 5],\n ]]);\n\n $hasher = $factory->getPasswordHasher($this->createStub(PasswordAuthenticatedUserInterface::class));\n $expectedHasher = new", "middle": "dUserInterface;\n\nclass PasswordHasherFactoryTest extends TestCase\n{\n public function testGetHasherWithMessageDigestHasher()\n {\n $factory = new PasswordHasherFactory([PasswordAuthenticatedUserInterface::class => [\n ", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Hasher/PasswordHasherFactoryTest.php", "language": "php", "file_size": 10284, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Tests\\Hasher;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PlaintextPasswordHasher;\n\nclass PlaintextPasswordHasherTest extends TestCase\n{\n public fu", "suffix": "hasher->verify('FOO', 'foo', ''));\n\n $hasher = new PlaintextPasswordHasher(true);\n\n $this->assertTrue($hasher->verify('foo', 'foo', ''));\n $this->assertFalse($hasher->verify('bar', 'foo', ''));\n $this->assertTrue($hasher->verify", "middle": "nction testVerify()\n {\n $hasher = new PlaintextPasswordHasher();\n\n $this->assertTrue($hasher->verify('foo', 'foo', ''));\n $this->assertFalse($hasher->verify('bar', 'foo', ''));\n $this->assertFalse($", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Hasher/PlaintextPasswordHasherTest.php", "language": "php", "file_size": 1830, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Tests\\Hasher;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\NativePasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactory;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactoryInterface;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\UserPasswordHasher;\nuse Symfony\\C", "suffix": "ony\\Component\\Security\\Core\\User\\InMemoryUser;\n\nclass UserPasswordHasherTest extends TestCase\n{\n public function testHashWithLegacyUser()\n {\n $user = new TestLegacyPasswordAuthenticatedUser('name', null, 'userSalt');\n\n $passwordHasher =", "middle": "omponent\\PasswordHasher\\PasswordHasherInterface;\nuse Symfony\\Component\\PasswordHasher\\Tests\\Fixtures\\TestLegacyPasswordAuthenticatedUser;\nuse Symfony\\Component\\PasswordHasher\\Tests\\Fixtures\\TestPasswordAuthenticatedUser;\nuse Symf", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Hasher/UserPasswordHasherTest.php", "language": "php", "file_size": 4802, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\Exception\\LogicException;\nuse Symfony\\Component\\PasswordHasher\\LegacyPasswordHasherInterface;\n\n/**\n * MessageDigestPasswordHasher uses a message digest algorithm.\n *\n * @author Fabien Potencier ", "suffix": " * @param bool $encodeHashAsBase64 Whether to base64 encode the password hash\n * @param int $iterations The number of iterations to use to stretch the password hash\n */\n public function __construct(\n private string $algor", "middle": "\n */\nclass MessageDigestPasswordHasher implements LegacyPasswordHasherInterface\n{\n use CheckPasswordLengthTrait;\n\n private int $hashLength = -1;\n\n /**\n * @param string $algorithm The digest algorithm to use\n", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/MessageDigestPasswordHasher.php", "language": "php", "file_size": 3066, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\PasswordHasher\\Exception\\LogicException;\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\n\n/**\n * A generic hasher factory implementation.\n *\n * @author Nicolas Grekas \n * @author Robin Chalas \n */\nclass PasswordHasherFactory implements PasswordHasherFactoryInterface\n{\n /", "suffix": "uthenticatedUserInterface|PasswordHasherAwareInterface $user): PasswordHasherInterface\n {\n $hasherKey = null;\n\n if ($user instanceof PasswordHasherAwareInterface && null !== $hasherName = $user->getPasswordHasherName()) {\n if (!", "middle": "**\n * @param array $passwordHashers\n */\n public function __construct(\n private array $passwordHashers,\n ) {\n }\n\n public function getPasswordHasher(string|PasswordA", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/PasswordHasherFactory.php", "language": "php", "file_size": 9045, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\Exception\\LogicException;\nuse Symfony\\Component\\PasswordHasher\\LegacyPasswordHasherInterface;\n\n/**\n * Pbkdf2PasswordHasher uses the PBKDF2 (Password-Based Key Deri", "suffix": "er of iterations) slows down the process.\n * PBKDF2 should be used with caution and care.\n *\n * @author Sebastiaan Stok \n * @author Andrew Johnson\n * @author Fabien Potencier \n */\nfinal class Pbkdf2PasswordHashe", "middle": "vation Function 2).\n *\n * Providing a high level of Cryptographic security,\n * PBKDF2 is recommended by the National Institute of Standards and Technology (NIST).\n *\n * But also warrants a warning, using PBKDF2 (with a high numb", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/Pbkdf2PasswordHasher.php", "language": "php", "file_size": 3019, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\Exception\\LogicException;\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\n\n/**\n * Hashes passwords using libsodium.\n *\n * @author Robin Chalas \n * @author Zan Baldwin \n * @author Dominik Müller \n */\nfinal class SodiumPasswordHasher implements PasswordHasherInterface\n{\n use CheckPasswordLengthTrait;\n\n private int $opsLimit;\n private int $memLimit;", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/SodiumPasswordHasher.php", "language": "php", "file_size": 4253, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Asserts that the response is in the given format.\n *\n * @author Kévin Dunglas <", "suffix": "\n }\n\n public function toString(): string\n {\n return 'format is '.($this->format ?? 'null');\n }\n\n /**\n * @param Response $response\n */\n protected function matches($response): bool\n {\n return $this->format === $this", "middle": "dunglas@gmail.com>\n */\nfinal class ResponseFormatSame extends Constraint\n{\n public function __construct(\n private Request $request,\n private ?string $format,\n private readonly bool $verbose = true,\n ) {", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseFormatSame.php", "language": "php", "file_size": 1484, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nfinal class ResponseHasCookie extends Constraint\n{\n public function __construct(\n private ", "suffix": "his->path) {\n $str .= \\sprintf(' with path \"%s\"', $this->path);\n }\n if ($this->domain) {\n $str .= \\sprintf(' for domain \"%s\"', $this->domain);\n }\n\n return $str;\n }\n\n /**\n * @param Response $respon", "middle": "string $name,\n private string $path = '/',\n private ?string $domain = null,\n ) {\n }\n\n public function toString(): string\n {\n $str = \\sprintf('has cookie \"%s\"', $this->name);\n if ('/' !== $t", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseHasCookie.php", "language": "php", "file_size": 1687, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nfinal class ResponseHeaderSame extends Constraint\n{\n public function __construct(\n private string $headerName,\n ", "suffix": "sponse $response\n */\n protected function matches($response): bool\n {\n return $this->expectedValue === $response->headers->get($this->headerName, null);\n }\n\n /**\n * @param Response $response\n */\n protected function failureD", "middle": " private string $expectedValue,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('has header \"%s\" with value \"%s\"', $this->headerName, $this->expectedValue);\n }\n\n /**\n * @param Re", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseHeaderSame.php", "language": "php", "file_size": 1094, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nfinal class ResponseIsRedirected extends Constraint\n{\n /**\n * @param bool $verbose If true, the entire response is printed on", "suffix": " /**\n * @param Response $response\n */\n protected function matches($response): bool\n {\n return $response->isRedirect();\n }\n\n /**\n * @param Response $response\n */\n protected function failureDescription($response): string", "middle": " failure. If false, the response body is omitted.\n */\n public function __construct(private readonly bool $verbose = true)\n {\n }\n\n public function toString(): string\n {\n return 'is redirected';\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseIsRedirected.php", "language": "php", "file_size": 1304, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\FlashBagAwareSessionInterface;\n\nfinal class SessionHasFlashMessage extends Constraint\n{\n public function __construct(\n ", "suffix": "messageType, implode(', ', $this->getExpectedMessages()));\n }\n\n protected function getExpectedMessages(): array\n {\n return \\is_array($this->messages) ? $this->messages : [(string) $this->messages];\n }\n\n protected function matches(mixe", "middle": " private readonly string $messageType,\n private readonly mixed $messages,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('session has flash message of type \"%s\" containing: %s', $this->", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/SessionHasFlashMessage.php", "language": "php", "file_size": 2261, "cut_index": 563, "middle_length": 229}} {"prefix": "sher;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\nclass UserPasswordHashCommandTest extends TestCase\n{\n private ?CommandTester $passwordHasherCommandTester = null;\n private string|false $colSize;\n\n public function testEncodePasswordEmptySalt()\n {\n $this->passwordHasherCommandTester->execute([\n 'password' => 'password',\n 'user-class' => 'Symfony\\Component\\Security\\Core\\User\\InMemoryUser',\n '--empty-salt' => true,\n ], ['decorated' => false", "suffix": "wordHasherCommandTester->execute([\n ], ['interactive' => false]);\n\n $this->assertStringContainsString('[ERROR] The password must not be empty.', $this->passwordHasherCommandTester->getDisplay());\n $this->assertEquals(1, $statusCode);\n ", "middle": "]);\n\n $this->assertStringContainsString(' Password hash password', $this->passwordHasherCommandTester->getDisplay());\n }\n\n public function testEncodeNoPasswordNoInteraction()\n {\n $statusCode = $this->pass", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Command/UserPasswordHashCommandTest.php", "language": "php", "file_size": 18874, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Tests\\Hasher;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\TestWithJson;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\NativePasswordHasher;\n\n/**\n * @author Elnur Abdurrakhimov \n */\nclass NativePasswordHasherTest extends TestCase\n{\n public function testCostBelowRange()\n {\n", "suffix": "ass);\n new NativePasswordHasher(null, null, 32);\n }\n\n #[DataProvider('validRangeData')]\n public function testCostInRange($cost)\n {\n $this->assertInstanceOf(NativePasswordHasher::class, new NativePasswordHasher(null, null, $cost));", "middle": " $this->expectException(\\InvalidArgumentException::class);\n new NativePasswordHasher(null, null, 3);\n }\n\n public function testCostAboveRange()\n {\n $this->expectException(\\InvalidArgumentException::cl", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Hasher/NativePasswordHasherTest.php", "language": "php", "file_size": 5423, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Tests\\Hasher;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\MigratingPasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\NativePasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\n\nclass MigratingPasswordHasherTest ext", "suffix": "s->never())->method('hash');\n $extraHasher->expects($this->never())->method('verify');\n $extraHasher->expects($this->never())->method('needsRehash');\n\n $hasher = new MigratingPasswordHasher($bestHasher, $extraHasher);\n\n $this->a", "middle": "ends TestCase\n{\n public function testValidation()\n {\n $bestHasher = new NativePasswordHasher(4, 12000, 4);\n\n $extraHasher = $this->createMock(PasswordHasherInterface::class);\n $extraHasher->expects($thi", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Hasher/MigratingPasswordHasherTest.php", "language": "php", "file_size": 2296, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\n\n/**\n * Hashes passwords using password_hash().\n *\n * @author Elnur Abdurrakhimov \n * @author Terje Bråten \n * @author Nicolas Grekas \n */\nf", "suffix": "n algorithm supported by password_hash() or null to use the best available algorithm\n */\n public function __construct(?int $opsLimit = null, ?int $memLimit = null, ?int $cost = null, ?string $algorithm = null)\n {\n $cost ??= 13;\n $op", "middle": "inal class NativePasswordHasher implements PasswordHasherInterface\n{\n use CheckPasswordLengthTrait;\n\n private string $algorithm = \\PASSWORD_BCRYPT;\n private array $options;\n\n /**\n * @param string|null $algorithm A", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/NativePasswordHasher.php", "language": "php", "file_size": 4249, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\LegacyPasswordHasherInterface;\n\n/**\n * PlaintextPasswordHasher does not do any hashing but is useful in testing environments.\n *\n * As this hasher is not cryptogra", "suffix": "rait;\n\n /**\n * @param bool $ignorePasswordCase Compare password case-insensitive\n */\n public function __construct(\n private bool $ignorePasswordCase = false,\n ) {\n }\n\n public function hash(#[\\SensitiveParameter] string $plainP", "middle": "phically secure, usage of it in production environments is discouraged.\n *\n * @author Fabien Potencier \n */\nclass PlaintextPasswordHasher implements LegacyPasswordHasherInterface\n{\n use CheckPasswordLengthT", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/PlaintextPasswordHasher.php", "language": "php", "file_size": 2260, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nfinal class ResponseHasHeader extends Constraint\n{\n public function __construct(\n private string $headerName,\n ) {\n }\n\n public function toString(): string\n {\n re", "suffix": "\n }\n\n /**\n * @param Response $response\n */\n protected function matches($response): bool\n {\n return $response->headers->has($this->headerName);\n }\n\n /**\n * @param Response $response\n */\n protected function failure", "middle": "turn \\sprintf('has header \"%s\"', $this->headerName);", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseHasHeader.php", "language": "php", "file_size": 985, "cut_index": 582, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\", "suffix": "t\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\Question;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactoryInterface;\nuse Symfony\\Component\\PasswordHasher\\LegacyPasswordHasherInter", "middle": "Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Input\\StreamableInputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Outpu", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Command/UserPasswordHashCommand.php", "language": "php", "file_size": 9088, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Tests\\Hasher;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\NativePasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\SodiumPasswordHasher;\n\nclass SodiumPasswordHasherTest extends TestCase\n{\n protected function setUp()", "suffix": "asher();\n $result = $hasher->hash('password');\n $this->assertTrue($hasher->verify($result, 'password'));\n $this->assertFalse($hasher->verify($result, 'anotherPassword'));\n $this->assertFalse($hasher->verify($result, ''));\n }\n", "middle": ": void\n {\n if (!SodiumPasswordHasher::isSupported()) {\n $this->markTestSkipped('Libsodium is not available.');\n }\n }\n\n public function testValidation()\n {\n $hasher = new SodiumPasswordH", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Hasher/SodiumPasswordHasherTest.php", "language": "php", "file_size": 3764, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\n\n/**\n * Hashes passwords using the best available hasher.\n * Verifies them using a chain of hashers.\n *\n * /!\\ Don't put a PlaintextPasswordHasher in the list as that'd mean a leaked ha", "suffix": "$extraHashers;\n\n public function __construct(\n private PasswordHasherInterface $bestHasher,\n PasswordHasherInterface ...$extraHashers,\n ) {\n $this->extraHashers = $extraHashers;\n }\n\n public function hash(#[\\SensitiveParamet", "middle": "sh\n * could be used to authenticate successfully without knowing the cleartext password.\n *\n * @author Nicolas Grekas \n */\nfinal class MigratingPasswordHasher implements PasswordHasherInterface\n{\n private array ", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/MigratingPasswordHasher.php", "language": "php", "file_size": 1853, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpFoundation\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nfinal class ResponseIsUnprocessable extends Constraint\n{\n /**\n * @param bool $verbose If true, the entire response is printed", "suffix": "}\n\n /**\n * @param Response $other\n */\n protected function matches($other): bool\n {\n return Response::HTTP_UNPROCESSABLE_ENTITY === $other->getStatusCode();\n }\n\n /**\n * @param Response $other\n */\n protected function ", "middle": " on failure. If false, the response body is omitted.\n */\n public function __construct(private readonly bool $verbose = true)\n {\n }\n\n public function toString(): string\n {\n return 'is unprocessable';\n ", "meta": {"filepath": "src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseIsUnprocessable.php", "language": "php", "file_size": 1338, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Tests\\Hasher;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PasswordHasher\\Exception\\InvalidPasswordException;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\Pbkdf2PasswordHasher;\n\nclass Pbkdf2PasswordHasherTest extends TestCase\n{\n public function testVerify()\n {\n ", "suffix": "tion testHash()\n {\n $hasher = new Pbkdf2PasswordHasher('sha256', false, 1, 40);\n $this->assertSame('c1232f10f62715fda06ae7c0a2037ca19b33cf103b727ba56d870c11f290a2ab106974c75607c8a3', $hasher->hash('password', ''));\n\n $hasher = new P", "middle": " $hasher = new Pbkdf2PasswordHasher('sha256', false, 1, 40);\n\n $this->assertTrue($hasher->verify('c1232f10f62715fda06ae7c0a2037ca19b33cf103b727ba56d870c11f290a2ab106974c75607c8a3', 'password', ''));\n }\n\n public func", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Tests/Hasher/Pbkdf2PasswordHasherTest.php", "language": "php", "file_size": 2071, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\Security\\Core\\User\\LegacyPasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\n\n/**\n * Hashes passwords based on the user and the PasswordHasherFactory.\n *\n * @author", "suffix": ") {\n }\n\n public function hashPassword(PasswordAuthenticatedUserInterface $user, #[\\SensitiveParameter] string $plainPassword): string\n {\n $salt = null;\n if ($user instanceof LegacyPasswordAuthenticatedUserInterface) {\n $sa", "middle": " Ariel Ferrandini \n *\n * @final\n */\nclass UserPasswordHasher implements UserPasswordHasherInterface\n{\n public function __construct(\n private PasswordHasherFactoryInterface $hasherFactory,\n ", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/UserPasswordHasher.php", "language": "php", "file_size": 1998, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\PasswordHasher\\Hasher;\n\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\n\n/**\n * PasswordHasherFactoryInterface to support different password hashers for di", "suffix": " the given user.\n *\n * @throws \\RuntimeException When no password hasher could be found for the user\n */\n public function getPasswordHasher(string|PasswordAuthenticatedUserInterface|PasswordHasherAwareInterface $user): PasswordHasherInterfac", "middle": "fferent user accounts.\n *\n * @author Robin Chalas \n * @author Johannes M. Schmitt \n */\ninterface PasswordHasherFactoryInterface\n{\n /**\n * Returns the password hasher to use for", "meta": {"filepath": "src/Symfony/Component/PasswordHasher/Hasher/PasswordHasherFactoryInterface.php", "language": "php", "file_size": 1002, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Validates a credit card number for a given credit card company.\n *\n * @author Tim Nagel \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass CardScheme extends Constraint\n{\n public const AMEX = 'AMEX';\n public const CHINA_UNIONPAY = 'CHINA_UNIO", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CardScheme.php", "language": "php", "file_size": 2297, "cut_index": 563, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates that a value is equal to another value.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\A", "suffix": "ractComparison\n{\n public const NOT_EQUAL_ERROR = '478618a7-95ba-473d-9101-cabd45e49115';\n\n protected const ERROR_NAMES = [\n self::NOT_EQUAL_ERROR => 'NOT_EQUAL_ERROR',\n ];\n\n public string $message = 'This value should be equal to {{ comp", "middle": "ttribute::IS_REPEATABLE)]\nclass EqualTo extends Abst", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/EqualTo.php", "language": "php", "file_size": 856, "cut_index": 529, "middle_length": 52}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * @author Bernhard Schussek \n */\nabstract class Existence extends Composite\n{\n public array|Constraint $constraints = [];\n\n public function __construct(array|Constraint ", "suffix": " [], ?array $groups = null, mixed $payload = null)\n {\n $this->constraints = $constraints;\n\n parent::__construct(null, $groups, $payload);\n }\n\n protected function getCompositeOption(): string\n {\n return 'constraints';\n }\n", "middle": "$constraints =", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Existence.php", "language": "php", "file_size": 808, "cut_index": 536, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression as ExpressionObject;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Componen", "suffix": "ien Potencier \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::TARGET_CLASS | \\Attribute::IS_REPEATABLE)]\nclass Expression extends Constraint\n{\n ", "middle": "t\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Validates a value using an expression from the Expression Language component.\n *\n * @see https://symfony.com/doc/current/components/expression_language.html\n *\n * @author Fab", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Expression.php", "language": "php", "file_size": 3322, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunction;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface;\n\nclass ExpressionLanguageProvider implements ExpressionFunctionProviderInterface\n{\n ", "suffix": "%s)->getViolations()->count()',\n implode(', ', $arguments)\n ), static fn (array $variables, ...$arguments): bool => 0 === $variables['context']->getValidator()->inContext($variables['context'])->validate(...$arguments)->getViolati", "middle": " public function getFunctions(): array\n {\n return [\n new ExpressionFunction('is_valid', static fn (...$arguments) => \\sprintf(\n '0 === $context->getValidator()->inContext($context)->validate(", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/ExpressionLanguageProvider.php", "language": "php", "file_size": 1034, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is valid as an ExpressionLanguage expression.\n *\n * @author Andrey Sevastianov \n */\n#[\\Attribute(\\Attribute::T", "suffix": "MES = [\n self::EXPRESSION_SYNTAX_ERROR => 'EXPRESSION_SYNTAX_ERROR',\n ];\n\n public string $message = 'This value should be a valid expression.';\n public ?string $service = null;\n public ?array $allowedVariables = null;\n\n /**\n * @pa", "middle": "ARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass ExpressionSyntax extends Constraint\n{\n public const EXPRESSION_SYNTAX_ERROR = 'e219aa22-8b11-48ec-81a0-fc07cdb0e13f';\n\n protected const ERROR_NA", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/ExpressionSyntax.php", "language": "php", "file_size": 2095, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\ExpressionLanguage\\Parser;\nuse Symfony\\Component\\ExpressionLanguage\\SyntaxError;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\", "suffix": "aintValidator\n{\n public function __construct(\n private ?ExpressionLanguage $expressionLanguage = null,\n ) {\n }\n\n /**\n * @psalm-suppress ParamNameMismatch\n */\n public function validate(mixed $expression, Constraint $constraint)", "middle": "Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Andrey Sevastianov \n */\nclass ExpressionSyntaxValidator extends Constr", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/ExpressionSyntaxValidator.php", "language": "php", "file_size": 2212, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Fabien Potencier expressionLanguage = $expressionLanguage;\n }\n }\n\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof", "middle": ".com>\n * @author Bernhard Schussek \n */\nclass ExpressionValidator extends ConstraintValidator\n{\n private ExpressionLanguage $expressionLanguage;\n\n public function __construct(?ExpressionLanguage $expr", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/ExpressionValidator.php", "language": "php", "file_size": 2072, "cut_index": 563, "middle_length": 229}} {"prefix": "nt\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid \"file\".\n *\n * A file can be one of the following:\n * - A string (or object with a __toString() method) path to an existing file;\n * - A valid {@see \\Symfony\\Component\\HttpFoundation\\File\\File} object (including objects of {@see UploadedFile} class).\n *\n * @property int $maxSize\n *\n * @author Bernhard Schussek \n */\n#[\\Attr", "suffix": "ROR = 'd2a3fb6e-7ddc-4210-8fbf-2ab345ce1998';\n public const NOT_READABLE_ERROR = 'c20c92a4-5bfa-4202-9477-28e800e0f6ff';\n public const EMPTY_ERROR = '5d743385-9775-4aa5-8ff5-495fb1e60137';\n public const TOO_LARGE_ERROR = 'df8637af-d466-48c6-a59d-e", "middle": "ibute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass File extends Constraint\n{\n // Check the Image constraint for clashes if adding new constants here\n\n public const NOT_FOUND_ER", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/File.php", "language": "php", "file_size": 12241, "cut_index": 921, "middle_length": 229}} {"prefix": "se Symfony\\Component\\Mime\\MimeTypes;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Bernhard Schussek \n */\nclass FileValidator extends ConstraintValidator\n{\n public const KB_BYTES = 1000;\n public const MB_BYTES = 1000000;\n ", "suffix": "self::MIB_BYTES => 'MiB',\n ];\n\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof File) {\n throw new UnexpectedTypeException($constraint, File::class);\n }\n\n if (nul", "middle": "public const KIB_BYTES = 1024;\n public const MIB_BYTES = 1048576;\n\n private const SUFFICES = [\n 1 => 'bytes',\n self::KB_BYTES => 'kB',\n self::MB_BYTES => 'MB',\n self::KIB_BYTES => 'KiB',\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/FileValidator.php", "language": "php", "file_size": 13456, "cut_index": 921, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates that a value is greater than another value.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD ", "suffix": "nds AbstractComparison\n{\n public const TOO_LOW_ERROR = '778b7ae0-84d3-481a-9dec-35fdb64b1d78';\n\n protected const ERROR_NAMES = [\n self::TOO_LOW_ERROR => 'TOO_LOW_ERROR',\n ];\n\n public string $message = 'This value should be greater than {", "middle": "| \\Attribute::IS_REPEATABLE)]\nclass GreaterThan exte", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/GreaterThan.php", "language": "php", "file_size": 862, "cut_index": 529, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates that a value is greater than or equal to another value.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Att", "suffix": "ends AbstractComparison\n{\n public const TOO_LOW_ERROR = 'ea4e51d1-3342-48bd-87f1-9e672cd90cad';\n\n protected const ERROR_NAMES = [\n self::TOO_LOW_ERROR => 'TOO_LOW_ERROR',\n ];\n\n public string $message = 'This value should be greater than ", "middle": "ribute::IS_REPEATABLE)]\nclass GreaterThanOrEqual ext", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/GreaterThanOrEqual.php", "language": "php", "file_size": 893, "cut_index": 547, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates values are greater than or equal to the previous (>=).\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\nclass GreaterThanOrEqualValidator extends AbstractCom", "suffix": "or\n{\n protected function compareValues(mixed $value1, mixed $value2): bool\n {\n return null === $value2 || $value1 >= $value2;\n }\n\n protected function getErrorCode(): ?string\n {\n return GreaterThanOrEqual::TOO_LOW_ERROR;\n }\n}", "middle": "parisonValidat", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/GreaterThanOrEqualValidator.php", "language": "php", "file_size": 795, "cut_index": 524, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * A sequence of validation groups.\n *\n * When validating a group sequence, each group will only be validated if all\n * of the previous groups in the sequence succeeded. For example:\n *\n * $validator->validate($address, null, new GroupSequence(['Basic', 'Strict']))", "suffix": ", if \"Strict\"\n * contains expensive checks that require a lot of CPU or slow, external\n * services. You usually don't want to run expensive checks if any of the cheap\n * checks fail.\n *\n * When adding metadata to a class, you can override the \"Default\" gro", "middle": ";\n *\n * In the first step, all constraints that belong to the group \"Basic\" will be\n * validated. If none of the constraints fail, the validator will then validate\n * the constraints in group \"Strict\". This is useful, for example", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/GroupSequence.php", "language": "php", "file_size": 2597, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid host name.\n *\n * @author Dmitrii Poddubnyi \n */\n#[\\Attribute(\\Attribute:", "suffix": "\n self::INVALID_HOSTNAME_ERROR => 'INVALID_HOSTNAME_ERROR',\n ];\n\n public string $message = 'This value is not a valid hostname.';\n public bool $requireTld = true;\n\n /**\n * @param bool|null $requireTld Whether to require the hostn", "middle": ":TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Hostname extends Constraint\n{\n public const INVALID_HOSTNAME_ERROR = '7057ffdb-0af4-4f7e-bd5e-e9acfa6d7a2d';\n\n protected const ERROR_NAMES = [", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Hostname.php", "language": "php", "file_size": 1706, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Dmitrii Poddubnyi \n */\nclass HostnameValidator extends ConstraintValidator\n{\n /**\n * https://tools.ietf.org/html/rfc2606.\n */\n private const RESERVED_TLDS = [\n 'example',\n 'invalid',\n 'localhost',\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/HostnameValidator.php", "language": "php", "file_size": 2052, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid bank account number according to the IBAN format.\n *\n * @see https://en.wikipedia.org/wiki/International_Bank_Account_N", "suffix": "BLE)]\nclass Iban extends Constraint\n{\n public const INVALID_COUNTRY_CODE_ERROR = 'de78ee2c-bd50-44e2-aec8-3d8228aeadb9';\n public const INVALID_CHARACTERS_ERROR = '8d3d85e4-784f-4719-a5bc-d9e40d45a3a5';\n public const CHECKSUM_FAILED_ERROR = 'b94013", "middle": "umber\n *\n * @author Manuel Reinhard \n * @author Michael Schummel\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATA", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Iban.php", "language": "php", "file_size": 2255, "cut_index": 563, "middle_length": 229}} {"prefix": "Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Manuel Reinhard \n * @author Michael Schummel\n * @author Bernhard Schussek \n */\nclass IbanValidator extends ConstraintValidator\n{\n /**\n * IBAN country specific formats.\n *\n * The first 2 characters from an IBAN format are the two-character ISO country code.\n * The following 2 characters represent the check digits calculated fr", "suffix": "h a fixed position and a fixed length per country\n *\n * @see Resources/bin/sync-iban-formats.php\n * @see https://www.swift.com/swift-resource/11971/download?language=en\n * @see https://en.wikipedia.org/wiki/International_Bank_Account_Number", "middle": "om the rest of the IBAN characters.\n * The rest are up to thirty alphanumeric characters for\n * a BBAN (Basic Bank Account Number) which has a fixed length per country and,\n * included within it, a bank identifier wit", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IbanValidator.php", "language": "php", "file_size": 13286, "cut_index": 921, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates that a value is identical to another value.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_R", "suffix": "ison\n{\n public const NOT_IDENTICAL_ERROR = '2a8cc50f-58a2-4536-875e-060a2ce69ed5';\n\n protected const ERROR_NAMES = [\n self::NOT_IDENTICAL_ERROR => 'NOT_IDENTICAL_ERROR',\n ];\n\n public string $message = 'This value should be identical to {", "middle": "EPEATABLE)]\nclass IdenticalTo extends AbstractCompar", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IdenticalTo.php", "language": "php", "file_size": 906, "cut_index": 547, "middle_length": 52}} {"prefix": " is a valid image.\n *\n * @author Benjamin Dulau \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Image extends File\n{\n public const SIZE_NOT_DETECTED_ERROR = '6d55c3f4-e58e-4fe3-91ee-74b492199956';\n public const TOO_WIDE_ERROR = '7f87163d-878f-47f5-99ba-a8eb723a1ab2';\n public const TOO_NARROW_ERROR = '9afbd561-4f90-4a27-be62-1780fc43604a';\n public const TOO_HI", "suffix": "PIXEL_ERROR = 'ee0804e8-44db-4eac-9775-be91aaf72ce1';\n public const RATIO_TOO_BIG_ERROR = '70cafca6-168f-41c9-8c8c-4e47a52be643';\n public const RATIO_TOO_SMALL_ERROR = '59b8c6ef-bcf2-4ceb-afff-4642ed92f12e';\n public const SQUARE_NOT_ALLOWED_ERROR ", "middle": "GH_ERROR = '7efae81c-4877-47ba-aa65-d01ccb0d4645';\n public const TOO_LOW_ERROR = 'aef0cb6a-c07f-4894-bc08-1781420d7b4c';\n public const TOO_FEW_PIXEL_ERROR = '1b06b97d-ae48-474e-978f-038a74854c43';\n public const TOO_MANY_", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Image.php", "language": "php", "file_size": 13547, "cut_index": 921, "middle_length": 229}} {"prefix": "onstraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * Validates whether a value is a valid image file and is valid\n * against minWidth, maxWidth, minHeight and maxHeight constraints.\n *\n * @author Benjamin Dulau \n * @author Bernhard Schussek \n */\nclass ImageValidator extends FileValidator\n{\n public", "suffix": "this->context->getViolations());\n\n parent::validate($value, $constraint);\n\n $failed = \\count($this->context->getViolations()) !== $violations;\n\n if ($failed || null === $value || '' === $value) {\n return;\n }\n\n ", "middle": " function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Image) {\n throw new UnexpectedTypeException($constraint, Image::class);\n }\n\n $violations = \\count($", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/ImageValidator.php", "language": "php", "file_size": 11303, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid IP address.\n *\n * @author Bernhard Schussek \n * @author Joseph Bielawski \n * @author Ninos Ego \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Ip extends Constraint\n{\n public const V4 = '4';\n public cons", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Ip.php", "language": "php", "file_size": 4839, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validates whether a value is a valid IP address.\n *\n * @author Bernhard Schussek \\FILTER_FLAG_IPV4,\n Ip::V6, Ip::V6_NO_P", "middle": "chussek@gmail.com>\n * @author Joseph Bielawski \n * @author Ninos Ego \n */\nclass IpValidator extends ConstraintValidator\n{\n /**\n * Checks whether an IP address is valid.\n *\n * @inte", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IpValidator.php", "language": "php", "file_size": 3507, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is false.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute", "suffix": " self::NOT_FALSE_ERROR => 'NOT_FALSE_ERROR',\n ];\n\n public string $message = 'This value should be false.';\n\n /**\n * @param string[]|null $groups\n */\n public function __construct(?array $options = null, ?string $message = null, ?array $", "middle": "::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass IsFalse extends Constraint\n{\n public const NOT_FALSE_ERROR = 'd53a91b0-def3-426a-83d7-269da7ab4200';\n\n protected const ERROR_NAMES = [\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IsFalse.php", "language": "php", "file_size": 1374, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n */\nc", "suffix": "traint, IsFalse::class);\n }\n\n if (null === $value || false === $value || 0 === $value || '0' === $value) {\n return;\n }\n\n $this->context->buildViolation($constraint->message)\n ->setParameter('{{ value }}', $", "middle": "lass IsFalseValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof IsFalse) {\n throw new UnexpectedTypeException($cons", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IsFalseValidator.php", "language": "php", "file_size": 1113, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is exactly equal to null.\n *\n * @author Bernhard Schussek \n */\n#[\\Attr", "suffix": "MES = [\n self::NOT_NULL_ERROR => 'NOT_NULL_ERROR',\n ];\n\n public string $message = 'This value should be null.';\n\n /**\n * @param string[]|null $groups\n */\n public function __construct(?array $options = null, ?string $message = nul", "middle": "ibute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass IsNull extends Constraint\n{\n public const NOT_NULL_ERROR = '60d2f30b-8cfa-4372-b155-9656634de120';\n\n protected const ERROR_NA", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IsNull.php", "language": "php", "file_size": 1385, "cut_index": 524, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n */", "suffix": "traint, IsNull::class);\n }\n\n if (null !== $value) {\n $this->context->buildViolation($constraint->message)\n ->setParameter('{{ value }}', $this->formatValue($value))\n ->setCode(IsNull::NOT_NULL_ERROR)\n ", "middle": "\nclass IsNullValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof IsNull) {\n throw new UnexpectedTypeException($cons", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IsNullValidator.php", "language": "php", "file_size": 1049, "cut_index": 513, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is true.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute:", "suffix": "elf::NOT_TRUE_ERROR => 'NOT_TRUE_ERROR',\n ];\n\n public string $message = 'This value should be true.';\n\n /**\n * @param string[]|null $groups\n */\n public function __construct(?array $options = null, ?string $message = null, ?array $groups", "middle": ":TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass IsTrue extends Constraint\n{\n public const NOT_TRUE_ERROR = '2beabf1c-54c0-4882-a928-05249b26e23b';\n\n protected const ERROR_NAMES = [\n s", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IsTrue.php", "language": "php", "file_size": 1368, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n */\nc", "suffix": "aint, IsTrue::class);\n }\n\n if (null === $value || true === $value || 1 === $value || '1' === $value) {\n return;\n }\n\n $this->context->buildViolation($constraint->message)\n ->setParameter('{{ value }}', $this", "middle": "lass IsTrueValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof IsTrue) {\n throw new UnexpectedTypeException($constr", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IsTrueValidator.php", "language": "php", "file_size": 1107, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * Validates that a value is a valid ISBN according to ISBN-10 or ISBN-13 formats.\n *\n * @see https://en.wikipedia.org/wiki/ISBN\n *\n * @author The Whole Life To Learn \n * @author Manuel Reinhar", "suffix": " = 'isbn10';\n public const ISBN_13 = 'isbn13';\n\n public const TOO_SHORT_ERROR = '949acbb0-8ef5-43ed-a0e9-032dfd08ae45';\n public const TOO_LONG_ERROR = '3171387d-f80a-47b3-bd6e-60598545316a';\n public const INVALID_CHARACTERS_ERROR = '23d21cea-da", "middle": "d \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Isbn extends Constraint\n{\n public const ISBN_10", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Isbn.php", "language": "php", "file_size": 2853, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validates whether the value is a valid ISBN-10 or ISBN-13.\n *\n * @author The Whole Life To Learn \n * @author Manuel Reinhard \n * @author Be", "suffix": "!$constraint instanceof Isbn) {\n throw new UnexpectedTypeException($constraint, Isbn::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n if (!\\is_scalar($value) && !$value instanceof \\String", "middle": "rnhard Schussek \n *\n * @see https://en.wikipedia.org/wiki/Isbn\n */\nclass IsbnValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IsbnValidator.php", "language": "php", "file_size": 5561, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid International Securities Identification Number (ISIN).\n *\n * @see https://en.wikipedia.org/wi", "suffix": "straint\n{\n public const VALIDATION_LENGTH = 12;\n public const VALIDATION_PATTERN = '/[A-Z]{2}[A-Z0-9]{9}[0-9]{1}/';\n\n public const INVALID_LENGTH_ERROR = '88738dfc-9ed5-ba1e-aebe-402a2a9bf58e';\n public const INVALID_PATTERN_ERROR = '3d08ce0-ded", "middle": "ki/International_Securities_Identification_Number\n *\n * @author Laurent Masforné \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Isin extends Con", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Isin.php", "language": "php", "file_size": 1990, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Laurent Masforné \n *\n * @see https://en.wikipedia.org/wiki/International_Securities_Identification_Number\n */\nclass IsinValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IsinValidator.php", "language": "php", "file_size": 2485, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\n\n/**\n * @author Alexandre Daubois \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute:", "suffix": "RROR => 'BAD_ENCODING_ERROR',\n ];\n\n public function __construct(\n public array|string $encodings = [],\n public string $message = 'The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.',\n ", "middle": ":TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class Charset extends Constraint\n{\n public const BAD_ENCODING_ERROR = '94c5e58b-f892-4e25-8fd6-9d89c80bfe81';\n\n protected const ERROR_NAMES = [\n self::BAD_ENCODING_E", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Charset.php", "language": "php", "file_size": 1320, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author", "suffix": ") {\n throw new UnexpectedTypeException($constraint, Charset::class);\n }\n\n if (null === $value) {\n return;\n }\n\n if (!\\is_string($value) && !$value instanceof \\Stringable) {\n throw new UnexpectedVa", "middle": " Alexandre Daubois \n */\nfinal class CharsetValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Charset", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CharsetValidator.php", "language": "php", "file_size": 1547, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\RuntimeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Valid", "suffix": "g>\n * @author Bernhard Schussek \n */\nclass ChoiceValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Choice) {\n throw new", "middle": "ator\\Exception\\UnexpectedValueException;\n\n/**\n * ChoiceValidator validates that the value is one of the expected values.\n *\n * @author Fabien Potencier \n * @author Florian Eckerstorfer \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validates whether a value is a CI", "suffix": "value, Constraint $constraint): void\n {\n if (!$constraint instanceof Cidr) {\n throw new UnexpectedTypeException($constraint, Cidr::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n ", "middle": "DR notation.\n *\n * @author Sorin Pop \n * @author Calin Bolea \n * @author Ninos Ego \n */\nclass CidrValidator extends ConstraintValidator\n{\n public function validate($", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CidrValidator.php", "language": "php", "file_size": 2654, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * A constraint that is composed of other constraints.\n *\n * You should never use the nested constraint instances anywhere else, because\n * their groups are adapted when passed to the constructor of this class.\n *\n * If you want to crea", "suffix": "act class Composite extends Constraint\n{\n /**\n * The groups of the composite and its nested constraints are made\n * consistent using the following strategy:\n *\n * - If groups are passed explicitly to the composite constraint, but\n ", "middle": "te your own composite constraint, extend this class and\n * let {@link getCompositeOption()} return the name of the property which\n * contains the nested constraints.\n *\n * @author Bernhard Schussek \n */\nabstr", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Composite.php", "language": "php", "file_size": 6185, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Extend this class to create a reusable set of constraints.\n *\n * @author Maxime Steinhausser \n */\nabstract class Compound extends Composite\n{\n /** @var Constraint[] */\n ", "suffix": "f('Passing an array of options to configure the \"%s\" constraint is no longer supported.', static::class));\n }\n\n $this->constraints = $this->getConstraints([]);\n\n if (null !== $groups) {\n // reset nested groups so that Compos", "middle": " public array $constraints = [];\n\n public function __construct(mixed $options = null, ?array $groups = null, mixed $payload = null)\n {\n if (null !== $options) {\n throw new InvalidArgumentException(\\sprint", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Compound.php", "language": "php", "file_size": 3069, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Validates a collection's element count.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Co", "suffix": "ece-a0e1-473fc02dadbc';\n public const NOT_DIVISIBLE_BY_ERROR = DivisibleBy::NOT_DIVISIBLE_BY;\n\n protected const ERROR_NAMES = [\n self::TOO_FEW_ERROR => 'TOO_FEW_ERROR',\n self::TOO_MANY_ERROR => 'TOO_MANY_ERROR',\n self::NOT_EQUAL_", "middle": "unt extends Constraint\n{\n public const TOO_FEW_ERROR = 'bef8e338-6ae5-4caf-b8e2-50e7b0579e69';\n public const TOO_MANY_ERROR = '756b1212-697c-468d-a9ad-50dd783bb169';\n public const NOT_EQUAL_COUNT_ERROR = '9fe5d43f-3784-4", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Count.php", "language": "php", "file_size": 3517, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Countries;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\n\n/**\n * Validates a value is a valid ISO 3166-1 alpha-2 country c", "suffix": "lass Country extends Constraint\n{\n public const NO_SUCH_COUNTRY_ERROR = '8f900c12-61bd-455d-9398-996cd040f7f0';\n\n protected const ERROR_NAMES = [\n self::NO_SUCH_COUNTRY_ERROR => 'NO_SUCH_COUNTRY_ERROR',\n ];\n\n public string $message = 'Th", "middle": "ode.\n *\n * @see https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nc", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Country.php", "language": "php", "file_size": 2136, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Mathieu Santostefano \n */\nclass CssColorValidator extends ConstraintValidator\n{\n private const PATTERN_HEX_LONG = '/^#[0-9a-f]{6}$/iD';\n priva", "suffix": ".org/wiki/CSS/Properties/color/keywords#Basic_Colors\n private const PATTERN_BASIC_NAMED_COLORS = '/^(black|silver|gray|white|maroon|red|purple|fuchsia|green|lime|olive|yellow|navy|blue|teal|aqua)$/iD';\n // List comes from https://www.w3.org/wiki/CSS/", "middle": "te const PATTERN_HEX_LONG_WITH_ALPHA = '/^#[0-9a-f]{8}$/iD';\n private const PATTERN_HEX_SHORT = '/^#[0-9a-f]{3}$/iD';\n private const PATTERN_HEX_SHORT_WITH_ALPHA = '/^#[0-9a-f]{4}$/iD';\n // List comes from https://www.w3", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CssColorValidator.php", "language": "php", "file_size": 5528, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Currencies;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\n\n/**\n * Validates that a value is a va", "suffix": "ROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Currency extends Constraint\n{\n public const NO_SUCH_CURRENCY_ERROR = '69945ac1-2db4-405f-bec7-d2772f73df52';\n\n protected const ERROR_NAMES = [\n self::NO_SUCH_CURRENCY_ERRO", "middle": "lid 3-letter ISO 4217 currency name.\n *\n * @see https://en.wikipedia.org/wiki/ISO_4217\n *\n * @author Miha Vrhovnik \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_P", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Currency.php", "language": "php", "file_size": 1844, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * Validates that a value is a valid \"datetime\" according to a given format.\n *\n * @see https://www.php.net/manual/en/datetime.format.php\n *\n * @author Bernhard Schussek \n */\n#[", "suffix": " INVALID_DATE_ERROR = 'd52afa47-620d-4d99-9f08-f4d85b36e33c';\n public const INVALID_TIME_ERROR = '5e797c9d-74f7-4098-baa3-94390c447b27';\n\n protected const ERROR_NAMES = [\n self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',\n self::INV", "middle": "\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass DateTime extends Constraint\n{\n public const INVALID_FORMAT_ERROR = '1a9da513-2640-4f84-9b6a-4d99dcddc628';\n public const", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/DateTime.php", "language": "php", "file_size": 1701, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Disables auto mapping.\n *\n * Using the attribute on a property has higher precedence than using it on a class,\n * ", "suffix": "RGET_CLASS)]\nclass DisableAutoMapping extends Constraint\n{\n public function __construct(?array $options = null, mixed $payload = null)\n {\n if (null !== $options) {\n throw new InvalidArgumentException(\\sprintf('Passing an array of op", "middle": "which has higher precedence than any configuration that might be defined outside the class.\n *\n * @author Kévin Dunglas \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::TA", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/DisableAutoMapping.php", "language": "php", "file_size": 1290, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Bernhard Schussek \n * @author Diego Saint Esteben \n */\nclass DateTimeValidator extend", "suffix": " }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n if (!\\is_scalar($value) && !$value instanceof \\Stringable) {\n throw new UnexpectedValueException($value, 'string');\n }\n\n $value = (string) $", "middle": "s DateValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof DateTime) {\n throw new UnexpectedTypeException($constraint, DateTime::class);\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/DateTimeValidator.php", "language": "php", "file_size": 3111, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validates that values are a multiple of the given number.\n *\n * @author Colin O'Dell \n */\nclass DivisibleByValidator extends AbstractComparisonValida", "suffix": "e2)) {\n throw new UnexpectedValueException($value2, 'numeric');\n }\n\n if (!$value2 = abs($value2)) {\n return false;\n }\n if (\\is_int($value1 = abs($value1)) && \\is_int($value2)) {\n return 0 === ($v", "middle": "tor\n{\n protected function compareValues(mixed $value1, mixed $value2): bool\n {\n if (!is_numeric($value1)) {\n throw new UnexpectedValueException($value1, 'numeric');\n }\n\n if (!is_numeric($valu", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/DivisibleByValidator.php", "language": "php", "file_size": 1559, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Enables auto mapping.\n *\n * Using the attribute on a property has higher precedence than using it on a class,\n * w", "suffix": "GET_CLASS)]\nclass EnableAutoMapping extends Constraint\n{\n public function __construct(?array $options = null, mixed $payload = null)\n {\n if (null !== $options) {\n throw new InvalidArgumentException(\\sprintf('Passing an array of opti", "middle": "hich has higher precedence than any configuration that might be defined outside the class.\n *\n * @author Kévin Dunglas \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::TAR", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/EnableAutoMapping.php", "language": "php", "file_size": 1288, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * Validates that a card number belongs to a specified scheme.\n *\n * @author Tim Nagel \n * @author Bernhard Schussek \n *\n * @see https://en.wikipedia.org/wiki/Payment_card_number\n * @see https://www.regular-expr", "suffix": "> [\n '/^3[47][0-9]{13}$/D',\n ],\n // China UnionPay cards start with 62 and have between 16 and 19 digits.\n // Please note that these cards do not follow Luhn Algorithm as a checksum.\n CardScheme::CHINA_UNIONPAY => [\n ", "middle": "essions.info/creditcard.html\n */\nclass CardSchemeValidator extends ConstraintValidator\n{\n protected array $schemes = [\n // American Express card numbers start with 34 or 37 and have 15 digits.\n CardScheme::AMEX =", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php", "language": "php", "file_size": 5120, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is one of a given set of valid choices.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::", "suffix": "ERROR = '9bd98e49-211c-433f-8630-fd1c2d0f08c3';\n\n protected const ERROR_NAMES = [\n self::NO_SUCH_CHOICE_ERROR => 'NO_SUCH_CHOICE_ERROR',\n self::TOO_FEW_ERROR => 'TOO_FEW_ERROR',\n self::TOO_MANY_ERROR => 'TOO_MANY_ERROR',\n ];\n\n ", "middle": "IS_REPEATABLE)]\nclass Choice extends Constraint\n{\n public const NO_SUCH_CHOICE_ERROR = '8e179f1b-97aa-4560-a02f-2a8b42e49df7';\n public const TOO_FEW_ERROR = '11edd7eb-5872-4b6e-9f12-89923999fd0e';\n public const TOO_MANY_", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Choice.php", "language": "php", "file_size": 3908, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Validates a collection with constraints defined for specific keys.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribut", "suffix": "const ERROR_NAMES = [\n self::MISSING_FIELD_ERROR => 'MISSING_FIELD_ERROR',\n self::NO_SUCH_FIELD_ERROR => 'NO_SUCH_FIELD_ERROR',\n ];\n\n public array $fields = [];\n public bool $allowExtraFields = false;\n public bool $allowMissingFie", "middle": "e::IS_REPEATABLE)]\nclass Collection extends Composite\n{\n public const MISSING_FIELD_ERROR = '2fa2158c-2a7f-484b-98aa-975522539ff8';\n public const NO_SUCH_FIELD_ERROR = '7703c766-b5d5-4cef-ace7-ae0dd82304e9';\n\n protected ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Collection.php", "language": "php", "file_size": 3456, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Bernhard Schussek \n */\nclass CollectionValidator extend", "suffix": ");\n }\n\n if (null === $value) {\n return;\n }\n\n if (!\\is_array($value) && !($value instanceof \\Traversable && $value instanceof \\ArrayAccess)) {\n throw new UnexpectedValueException($value, 'array|(Traversable&", "middle": "s ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Collection) {\n throw new UnexpectedTypeException($constraint, Collection::class", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CollectionValidator.php", "language": "php", "file_size": 3419, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Countries;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\Une", "suffix": "value, Constraint $constraint): void\n {\n if (!$constraint instanceof Country) {\n throw new UnexpectedTypeException($constraint, Country::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n", "middle": "xpectedValueException;\n\n/**\n * Validates whether a value is a valid country code.\n *\n * @author Bernhard Schussek \n */\nclass CountryValidator extends ConstraintValidator\n{\n public function validate(mixed $", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CountryValidator.php", "language": "php", "file_size": 1555, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Currencies;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\Un", "suffix": "tValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Currency) {\n throw new UnexpectedTypeException($constraint, Currency::class);\n }\n\n if (null === $value ", "middle": "expectedValueException;\n\n/**\n * Validates whether a value is a valid currency.\n *\n * @author Miha Vrhovnik \n * @author Bernhard Schussek \n */\nclass CurrencyValidator extends Constrain", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CurrencyValidator.php", "language": "php", "file_size": 1548, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Bernhard Schussek \n */\nclass DateValidator extends ConstraintValidator\n{\n public const PATTERN = '/^(?\\d{4})-(?\\d{2})-(?\\d{2})$/D';\n\n /**\n * Checks whether a date is valid.\n *\n * @internal\n */\n", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/DateValidator.php", "language": "php", "file_size": 2136, "cut_index": 563, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates that a value is divisible by another value.\n *\n * @author Colin O'Dell \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass DivisibleBy ", "suffix": "ctComparison\n{\n public const NOT_DIVISIBLE_BY = '6d99d6c3-1464-4ccf-bdc7-14d083cf455c';\n\n protected const ERROR_NAMES = [\n self::NOT_DIVISIBLE_BY => 'NOT_DIVISIBLE_BY',\n ];\n\n public string $message = 'This value should be a multiple of {", "middle": "extends Abstra", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/DivisibleBy.php", "language": "php", "file_size": 817, "cut_index": 522, "middle_length": 14}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * Validates a whole class, including nested objects in properties.\n *\n * @author Jules Pietri \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS)]\nclass Cascade extends Constraint\n{\n public array $exclude = [];\n\n /**\n * ", "suffix": "lude Properties excluded from validation\n */\n public function __construct(array|string|null $exclude = null)\n {\n parent::__construct();\n\n $this->exclude = array_flip((array) $exclude);\n }\n\n public function getTargets(): string", "middle": "@param non-empty-string[]|non-empty-string|null $exc", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Cascade.php", "language": "php", "file_size": 950, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid CIDR notation.\n *\n * @see https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing\n *\n * @aut", "suffix": "s Cidr extends Constraint\n{\n public const INVALID_CIDR_ERROR = '5649e53a-5afb-47c5-a360-ffbab3be8567';\n public const OUT_OF_RANGE_ERROR = 'b9f14a51-acbd-401a-a078-8c6b204ab32f';\n\n protected const ERROR_NAMES = [\n self::INVALID_CIDR_ERROR =>", "middle": "hor Sorin Pop \n * @author Calin Bolea \n * @author Ninos Ego \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclas", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Cidr.php", "language": "php", "file_size": 3905, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Maxime Steinhausser \n */\nclass CompoundValidator extends ConstraintValidator\n{\n ", "suffix": "$constraint): void\n {\n if (!$constraint instanceof Compound) {\n throw new UnexpectedTypeException($constraint, Compound::class);\n }\n\n $context = $this->context;\n\n $validator = $context->getValidator()->inContext($c", "middle": " public function validate(mixed $value, Constraint ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CompoundValidator.php", "language": "php", "file_size": 972, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid date, i.e. its string representation follows the Y-m-d format.\n *\n * @see https://www.php.net", "suffix": "c const INVALID_FORMAT_ERROR = '69819696-02ac-4a99-9ff0-14e127c4d1bc';\n public const INVALID_DATE_ERROR = '3c184ce5-b31d-4de7-8b76-326da7b2be93';\n\n protected const ERROR_NAMES = [\n self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',\n ", "middle": "/manual/en/datetime.format.php\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Date extends Constraint\n{\n publi", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Date.php", "language": "php", "file_size": 1651, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Egulias\\EmailValidator\\EmailValidator as EguliasEmailValidator;\nuse Egulias\\EmailValidator\\Validation\\EmailValidation;\nuse Egulias\\EmailValidator\\Validation\\NoRFCWarningsValidation;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception", "suffix": "author Bernhard Schussek \n */\nclass EmailValidator extends ConstraintValidator\n{\n private const PATTERN_HTML5_ALLOW_NO_TLD = '/^[a-zA-Z0-9.!#$%&\\'*+\\\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-z", "middle": "\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/EmailValidator.php", "language": "php", "file_size": 4398, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Bernhard Schussek \n */\nclass CountValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Count) {\n throw new UnexpectedTyp", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CountValidator.php", "language": "php", "file_size": 2812, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Egulias\\EmailValidator\\EmailValidator as StrictEmailValidator;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\n\n/**\n * Validates that a value is a valid email address.\n *\n * @author Bernhard Schusse", "suffix": "-tld';\n public const VALIDATION_MODE_HTML5 = 'html5';\n public const VALIDATION_MODE_STRICT = 'strict';\n\n public const INVALID_FORMAT_ERROR = 'bd79c0ab-ddba-46cc-a703-a7a4b08de310';\n\n public const VALIDATION_MODES = [\n self::VALIDATION_MO", "middle": "k \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Email extends Constraint\n{\n public const VALIDATION_MODE_HTML5_ALLOW_NO_TLD = 'html5-allow-no", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Email.php", "language": "php", "file_size": 3095, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid CSS color.\n *\n * @author Mathieu Santostefano \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REP", "suffix": " 'hex_short_with_alpha';\n public const BASIC_NAMED_COLORS = 'basic_named_colors';\n public const EXTENDED_NAMED_COLORS = 'extended_named_colors';\n public const SYSTEM_COLORS = 'system_colors';\n public const KEYWORDS = 'keywords';\n public cons", "middle": "EATABLE)]\nclass CssColor extends Constraint\n{\n public const HEX_LONG = 'hex_long';\n public const HEX_LONG_WITH_ALPHA = 'hex_long_with_alpha';\n public const HEX_SHORT = 'hex_short';\n public const HEX_SHORT_WITH_ALPHA =", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/CssColor.php", "language": "php", "file_size": 3447, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid International Standard Serial Number (ISSN).\n *\n * @see https://en.wikipedia.org/wiki/ISSN\n *\n * @author Antonio J. Gar", "suffix": "nst TOO_SHORT_ERROR = '6a20dd3d-f463-4460-8e7b-18a1b98abbfb';\n public const TOO_LONG_ERROR = '37cef893-5871-464e-8b12-7fb79324833c';\n public const MISSING_HYPHEN_ERROR = '2983286f-8134-4693-957a-1ec4ef887b15';\n public const INVALID_CHARACTERS_ERRO", "middle": "cía Lagar \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Issn extends Constraint\n{\n public co", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Issn.php", "language": "php", "file_size": 2785, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validat", "suffix": " validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Regex) {\n throw new UnexpectedTypeException($constraint, Regex::class);\n }\n\n if (null === $value || '' === $value) {\n return", "middle": "es whether a value match or not given regexp pattern.\n *\n * @author Bernhard Schussek \n * @author Joseph Bielawski \n */\nclass RegexValidator extends ConstraintValidator\n{\n public function", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/RegexValidator.php", "language": "php", "file_size": 1776, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Languages;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\n\n/**\n * Validates that a value is a valid language Unicode langua", "suffix": "IS_REPEATABLE)]\nclass Language extends Constraint\n{\n public const NO_SUCH_LANGUAGE_ERROR = 'ee65fec4-9a20-4202-9f39-ca558cd7bdf7';\n\n protected const ERROR_NAMES = [\n self::NO_SUCH_LANGUAGE_ERROR => 'NO_SUCH_LANGUAGE_ERROR',\n ];\n\n public ", "middle": "ge identifier.\n *\n * @see https://unicode.org/reports/tr35/#Unicode_language_identifier\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Language.php", "language": "php", "file_size": 2140, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Use this constraint to sequentially validate nested constraints.\n * Validation for the nested constraints collection will stop a", "suffix": "ally extends Composite\n{\n public array|Constraint $constraints = [];\n\n /**\n * @param Constraint[]|null $constraints An array of validation constraints\n * @param string[]|null $groups\n */\n public function __construct(array|Constrain", "middle": "t first violation.\n *\n * @author Maxime Steinhausser \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Sequenti", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Sequentially.php", "language": "php", "file_size": 1651, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Maxime Steinhausser context;\n\n $validator = $context->getValidator()->inContext($context);\n\n $originalCount = $validator->getViolations()->count();\n\n foreach ($constrain", "middle": "om>\n */\nclass SequentiallyValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Sequentially) {\n throw new Unexpected", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/SequentiallyValidator.php", "language": "php", "file_size": 1179, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid time that follows the H:i:s format.\n *\n * @author Bernhard Schussek \n */", "suffix": "INVALID_TIME_ERROR = '8532f9e1-84b2-4d67-8989-0818bc38533b';\n\n protected const ERROR_NAMES = [\n self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',\n self::INVALID_TIME_ERROR => 'INVALID_TIME_ERROR',\n ];\n\n public bool $withSeconds =", "middle": "\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Time extends Constraint\n{\n public const INVALID_FORMAT_ERROR = '9d27b2bb-f755-4fbf-b725-39b1edbdebdf';\n public const ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Time.php", "language": "php", "file_size": 1839, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Bernhard Schussek = 0 && $hour < 24 && $minute >= 0 && $minute < 60 && $second >= 0 && $second < 60;\n }\n\n public", "middle": "sek@gmail.com>\n */\nclass TimeValidator extends ConstraintValidator\n{\n public const PATTERN = '/^(\\d{2}):(\\d{2}):(\\d{2})$/D';\n public const PATTERN_WITHOUT_SECONDS = '/^(\\d{2}):(\\d{2})$/D';\n\n /**\n * Checks whether a t", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/TimeValidator.php", "language": "php", "file_size": 2232, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\n\n/**\n * Validates that a value is a valid timezone identifier.\n *\n * @author Javier Spagnoletti \n * @author Hugo Hamon \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\A", "suffix": "b57767b1-36c0-40ac-a3d7-629420c775b8';\n public const TIMEZONE_IDENTIFIER_IN_COUNTRY_ERROR = 'c4a22222-dc92-4fc0-abb0-d95b268c7d0b';\n public const TIMEZONE_IDENTIFIER_INTL_ERROR = '45863c26-88dc-41ba-bf53-c73bd1f7e90d';\n\n public int $zone = \\DateTi", "middle": "ttribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Timezone extends Constraint\n{\n public const TIMEZONE_IDENTIFIER_ERROR = '5ce113e6-5e64-4ea2-90fe-d2233956db13';\n public const TIMEZONE_IDENTIFIER_IN_ZONE_ERROR = '", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Timezone.php", "language": "php", "file_size": 3426, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\nuse Symfony\\Component\\Intl\\Timezones;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueEx", "suffix": " public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Timezone) {\n throw new UnexpectedTypeException($constraint, Timezone::class);\n }\n\n if (null === $value || '' === $val", "middle": "ception;\n\n/**\n * Validates whether a value is a valid timezone identifier.\n *\n * @author Javier Spagnoletti \n * @author Hugo Hamon \n */\nclass TimezoneValidator extends ConstraintValidator\n{\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/TimezoneValidator.php", "language": "php", "file_size": 3818, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * Validates an object that needs to be traversed.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS)]\nclass Traverse extends Co", "suffix": ").\n */\n public function __construct(?bool $traverse = null, mixed $payload = null)\n {\n parent::__construct(null, $payload);\n\n $this->traverse = $traverse ?? $this->traverse;\n }\n\n public function getTargets(): string|array\n ", "middle": "nstraint\n{\n public bool $traverse = true;\n\n /**\n * @param bool|null $traverse Whether to traverse the given object or not (defaults to true). Pass an associative array to configure the constraint's options (e.g. payload", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Traverse.php", "language": "php", "file_size": 1047, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Validates that a value is of a specific data type.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attri", "suffix": " self::INVALID_TYPE_ERROR => 'INVALID_TYPE_ERROR',\n ];\n\n public string $message = 'This value should be of type {{ type }}.';\n public string|array|null $type = null;\n\n /**\n * @param string|list|null $type The type(s) to enfor", "middle": "bute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Type extends Constraint\n{\n public const INVALID_TYPE_ERROR = 'ba785a8c-82cb-4283-967c-3cf342181b40';\n\n protected const ERROR_NAMES = [\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Type.php", "language": "php", "file_size": 1548, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n */\nclass TypeValidator extends ConstraintValidator\n{\n private const VALIDATION_FUNCTIONS = [\n ", "suffix": "t',\n 'number' => 'is_int || is_float && !is_nan',\n 'finite-float' => 'is_float && is_finite',\n 'finite-number' => 'is_int || is_float && is_finite',\n 'numeric' => 'is_numeric',\n 'string' => 'is_string',\n 'scalar' =", "middle": " 'bool' => 'is_bool',\n 'boolean' => 'is_bool',\n 'int' => 'is_int',\n 'integer' => 'is_int',\n 'long' => 'is_int',\n 'float' => 'is_float',\n 'double' => 'is_float',\n 'real' => 'is_floa", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/TypeValidator.php", "language": "php", "file_size": 3219, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid Universally Unique Lexicographically Sortable ", "suffix": "tends Constraint\n{\n public const TOO_SHORT_ERROR = '7b44804e-37d5-4df4-9bdd-b738d4a45bb4';\n public const TOO_LONG_ERROR = '9608249f-6da1-4d53-889e-9864b58c4d37';\n public const TOO_LARGE_ERROR = 'df8cfb9a-ce6d-4a69-ae5a-eea7ab6f278b';\n public co", "middle": "Identifier (ULID).\n *\n * @see https://github.com/ulid/spec\n *\n * @author Laurent Clouet \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Ulid ex", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Ulid.php", "language": "php", "file_size": 2692, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validates whether the value is a valid ULID (Universally Unique Lexicographically So", "suffix": ", Constraint $constraint): void\n {\n if (!$constraint instanceof Ulid) {\n throw new UnexpectedTypeException($constraint, Ulid::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n if ", "middle": "rtable Identifier).\n * Cf https://github.com/ulid/spec for ULID specifications.\n *\n * @author Laurent Clouet \n */\nclass UlidValidator extends ConstraintValidator\n{\n public function validate(mixed $value", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/UlidValidator.php", "language": "php", "file_size": 3695, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that all the elements of the given collection are unique.\n *\n * @author Yevgeniy Zholkevskiy \n */\n#[\\Attribute(\\A", "suffix": "\n public ?string $errorPath = null;\n public bool $stopOnFirstError = true;\n\n protected const ERROR_NAMES = [\n self::IS_NOT_UNIQUE => 'IS_NOT_UNIQUE',\n ];\n\n public string $message = 'This collection should contain only unique elements.", "middle": "ttribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Unique extends Constraint\n{\n public const IS_NOT_UNIQUE = '7911c98d-b845-4da0-94b7-a8dac36bc55a';\n\n public array|string $fields = [];", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Unique.php", "language": "php", "file_size": 2447, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Yevgeniy Zholkevskiy fields;\n\n if (null === $value) {\n return;\n }\n\n if (!\\is_array($value) && !$value instanceof \\IteratorAggregate) {\n ", "middle": "nya.zholkevskiy@gmail.com>\n */\nclass UniqueValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Unique) {\n throw new", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/UniqueValidator.php", "language": "php", "file_size": 2792, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid URL string.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nc", "suffix": "self::INVALID_URL_ERROR => 'INVALID_URL_ERROR',\n self::MISSING_TLD_ERROR => 'MISSING_TLD_ERROR',\n ];\n\n public string $message = 'This value is not a valid URL.';\n public string $tldMessage = 'This URL is missing a top-level domain.';\n pu", "middle": "lass Url extends Constraint\n{\n public const INVALID_URL_ERROR = '57c2f299-1154-4870-89bb-ef3b1f5ad229';\n public const MISSING_TLD_ERROR = '8a5d387f-0716-46b4-844b-67367faf435a';\n\n protected const ERROR_NAMES = [\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Url.php", "language": "php", "file_size": 3125, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Bernhard Schussek \n */\nclass UrlValidator extends ConstraintValidator\n{\n public const PATTERN = <<<'REGEX'\n {^\n (%s):// ", "suffix": " (?:[\\pL\\pN\\pS\\pM\\-\\_]++\\.)+\n (?:\n (?:xn--[a-z0-9-]++) # punycode in tld\n |\n (?:[\\pL\\pN\\pM]++) # no punycode in tld\n ", "middle": " # protocol\n ((?:[\\pL\\pN\\-._~!$&'()*+,;=]|%%[0-9A-Fa-f]{2})++(?::(?:[:\\pL\\pN\\-._~!$&'()*+,;=]|%%[0-9A-Fa-f]{2})*+)?@)? # basic auth\n (\n (?:\n (?:\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/UrlValidator.php", "language": "php", "file_size": 5873, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is a valid Universally unique identifier (UUID).\n *\n * @see https://en.wikipedia.org/wiki/Universally_unique_identifier\n * @see https://datatracker.ietf.org/doc/html/rfc4122\n *\n * @", "suffix": " public const TOO_SHORT_ERROR = 'aa314679-dac9-4f54-bf97-b2049df8f2a3';\n public const TOO_LONG_ERROR = '494897dd-36f8-4d31-8923-71a8d5f3000d';\n public const INVALID_CHARACTERS_ERROR = '51120b12-a2bc-41bf-aa53-cd73daf330d0';\n public const INVALI", "middle": "author Colin O'Dell \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Uuid extends Constraint\n{\n", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Uuid.php", "language": "php", "file_size": 4515, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validates whether the value is a valid UUID (also known as GUID).\n *\n * Strict validation will allow a UUID as specified per RFC 9562/4122.\n * Loose validation will allow any type of UUI", "suffix": " */\nclass UuidValidator extends ConstraintValidator\n{\n // The strict pattern matches UUIDs like this:\n // xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx\n\n // Roughly speaking:\n // x = any hexadecimal character\n // M = any allowed version {1..8}\n //", "middle": "D.\n *\n * @author Colin O'Dell \n * @author Bernhard Schussek \n *\n * @see https://datatracker.ietf.org/doc/html/rfc9562\n * @see https://en.wikipedia.org/wiki/Universally_unique_identifier\n", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/UuidValidator.php", "language": "php", "file_size": 8689, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates an object embedded in an object's property.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\A", "suffix": "erse Whether to validate {@see \\Traversable} objects (defaults to true)\n */\n public function __construct(?array $options = null, ?array $groups = null, $payload = null, ?bool $traverse = null)\n {\n if (null !== $options) {\n throw", "middle": "ttribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Valid extends Constraint\n{\n public bool $traverse = true;\n\n /**\n * @param string[]|null $groups\n * @param bool|null $trav", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Valid.php", "language": "php", "file_size": 1710, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Christian Flothmann context\n ->getValidator()\n ->inContext($this->context)\n ->validate($value, null, $this->context->", "middle": "ensiolabs.de>\n */\nclass ValidValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Valid) {\n throw new UnexpectedType", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/ValidValidator.php", "language": "php", "file_size": 1018, "cut_index": 512, "middle_length": 229}} {"prefix": "Exception\\LogicException;\n\n/**\n * @author Kev \n * @author Nicolas Grekas \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Video extends File\n{\n public const SIZE_NOT_DETECTED_ERROR = '5dab98df-43c8-481b-94f9-46a3c958285c';\n public const TOO_WIDE_ERROR = '9e18d6a4-aeda-4644-be8e-9e29dbfd6c4a';\n public const TOO_NARROW_ERROR = 'b267f54b-d994-46d4-9ca6-338fc4f7962f';\n public const TOO_HIGH_ERR", "suffix": "ERROR = 'ff0a8ee8-951d-4c97-afe2-03c0d61a2a02';\n public const RATIO_TOO_BIG_ERROR = '5e6b9c21-d4d8-444d-9f4c-e3ff1e25a9a6';\n public const RATIO_TOO_SMALL_ERROR = '26985857-7447-49dc-b271-1477a76cc63c';\n public const SQUARE_NOT_ALLOWED_ERROR = '185", "middle": "OR = '44f4c411-0199-48c2-b597-df1f5944ccde';\n public const TOO_LOW_ERROR = '0b6bc3ce-df90-40f9-90aa-5bbb840cb481';\n public const TOO_FEW_PIXEL_ERROR = '510ddf98-2eda-436e-be7e-b6f107bc0e22';\n public const TOO_MANY_PIXEL_", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Video.php", "language": "php", "file_size": 15057, "cut_index": 921, "middle_length": 229}} {"prefix": "ption\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Kev \n * @author Nicolas Grekas \n */\nclass VideoValidator extends FileValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Video) {\n throw new UnexpectedTypeException($constraint, Video::class);\n }\n\n $violations = \\count($this->context->getViolatio", "suffix": " if (null === $constraint->minWidth && null === $constraint->maxWidth\n && null === $constraint->minHeight && null === $constraint->maxHeight\n && null === $constraint->minPixels && null === $constraint->maxPixels\n && null ==", "middle": "ns());\n\n parent::validate($value, $constraint);\n\n $failed = \\count($this->context->getViolations()) !== $violations;\n\n if ($failed || null === $value || '' === $value) {\n return;\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/VideoValidator.php", "language": "php", "file_size": 10483, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\n\n/**\n * @author Alexandre Daubois \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATA", "suffix": "_LOW_ERROR = '9b506423-77a3-4749-aa34-c822a08be978';\n public const TOO_HIGH_ERROR = '85156377-d1e6-42cd-8f6e-dc43c2ecb72b';\n\n protected const ERROR_NAMES = [\n self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',\n self::INVALID_WEEK_NUM", "middle": "BLE)]\nfinal class Week extends Constraint\n{\n public const INVALID_FORMAT_ERROR = '19012dd1-01c8-4ce8-959f-72ad22684f5f';\n public const INVALID_WEEK_NUMBER_ERROR = 'd67ebfc9-45fe-4e4c-a038-5eaa56895ea3';\n public const TOO", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Week.php", "language": "php", "file_size": 2900, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Alexandre Daubois \n */\nfinal class WeekValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Week) {\n throw new Unexpe", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/WeekValidator.php", "language": "php", "file_size": 2802, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Exceptio", "suffix": "bute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass When extends Composite\n{\n public string|Expression|\\Closure $expression;\n public array|Constraint $constraints = [];\n publi", "middle": "n\\MissingOptionsException;\n\n/**\n * Conditionally apply validation constraints based on an expression using the ExpressionLanguage syntax.\n *\n * @see https://symfony.com/doc/current/components/expression_language.html\n */\n#[\\Attri", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/When.php", "language": "php", "file_size": 3206, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeE", "suffix": "aint): void\n {\n if (!$constraint instanceof When) {\n throw new UnexpectedTypeException($constraint, When::class);\n }\n\n $context = $this->context;\n $variables = $constraint->values;\n $variables['value'] = $va", "middle": "xception;\n\nfinal class WhenValidator extends ConstraintValidator\n{\n public function __construct(private ?ExpressionLanguage $expressionLanguage = null)\n {\n }\n\n public function validate(mixed $value, Constraint $constr", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/WhenValidator.php", "language": "php", "file_size": 2152, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * @author Alexandre Daubois \n */\n#[\\Attribute(\\Attribute::T", "suffix": "1a642-f662-4fad-8761-79250eef74cb';\n\n protected const ERROR_NAMES = [\n self::TOO_SHORT_ERROR => 'TOO_SHORT_ERROR',\n self::TOO_LONG_ERROR => 'TOO_LONG_ERROR',\n ];\n\n /**\n * @param int<0, max>|null $min\n * @param positive-int|n", "middle": "ARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class WordCount extends Constraint\n{\n public const TOO_SHORT_ERROR = 'cc4925df-b5a6-42dd-87f3-21919f349bf3';\n public const TOO_LONG_ERROR = 'a95", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/WordCount.php", "language": "php", "file_size": 2725, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Alexandre Daubois \n */\nfinal class WordCountValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!class_exists(\\IntlBreakIterator::class)) {\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/WordCountValidator.php", "language": "php", "file_size": 2427, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\n\n/**\n * Validates that a value", "suffix": "INVALID_XML_ERROR = '0355230a-97b8-49da-b8cd-985bf3345bcf';\n public const INVALID_SCHEMA_ERROR = '1c2ab9d4-7d20-4f0c-83a3-3f2e6b34d7e1';\n public const TOO_LARGE_ERROR = '6f1aa7a3-7d4d-4f1b-9c45-1f9c2d8f3b9b';\n\n protected const ERROR_NAMES = [\n ", "middle": " is a valid XML string.\n *\n * @author Mokhtar Tlili \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Xml extends Constraint\n{\n public const ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Xml.php", "language": "php", "file_size": 3015, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Mokhtar ", "suffix": "UnexpectedTypeException($constraint, Xml::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n if (!\\is_scalar($value) && !$value instanceof \\Stringable) {\n throw new UnexpectedValueException(", "middle": "Tlili \n */\nclass XmlValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Xml) {\n throw new ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/XmlValidator.php", "language": "php", "file_size": 3541, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Yaml\\Parser;\n\n/**\n * @author Kev \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY ", "suffix": "ML_ERROR => 'INVALID_YAML_ERROR',\n ];\n\n /**\n * @param int-mask-of<\\Symfony\\Component\\Yaml\\Yaml::PARSE_*> $flags\n * @param string[]|null $groups\n */\n public function __construct(\n public strin", "middle": "| \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Yaml extends Constraint\n{\n public const INVALID_YAML_ERROR = '63313a31-837c-42bb-99eb-542c76aacc48';\n\n protected const ERROR_NAMES = [\n self::INVALID_YA", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Yaml.php", "language": "php", "file_size": 1418, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Yaml\\Exception\\Pars", "suffix": " {\n if (!$constraint instanceof Yaml) {\n throw new UnexpectedTypeException($constraint, Yaml::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n if (!\\is_scalar($value) && !$value ins", "middle": "eException;\nuse Symfony\\Component\\Yaml\\Parser;\n\n/**\n * @author Kev \n */\nclass YamlValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/YamlValidator.php", "language": "php", "file_size": 2151, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Validates that a given string length is between some minimum and maximum value.\n *\n * @author Bernhard Schussek \n */", "suffix": "_LONG_ERROR = 'd94b19cc-114f-4f44-9cc4-4138e80a87b9';\n public const NOT_EQUAL_LENGTH_ERROR = '4b6f5c76-22b4-409d-af16-fbe823ba9332';\n public const INVALID_CHARACTERS_ERROR = '35e6a710-aa2e-4719-b58e-24b35749b767';\n\n protected const ERROR_NAMES = [", "middle": "\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Length extends Constraint\n{\n public const TOO_SHORT_ERROR = '9ff3fdc4-b214-49db-8718-39c315e33d45';\n public const TOO", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Length.php", "language": "php", "file_size": 4902, "cut_index": 614, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates that a value is less than another value.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\", "suffix": "stractComparison\n{\n public const TOO_HIGH_ERROR = '079d7420-2d13-460c-8756-de810eeb37d2';\n\n protected const ERROR_NAMES = [\n self::TOO_HIGH_ERROR => 'TOO_HIGH_ERROR',\n ];\n\n public string $message = 'This value should be less than {{ comp", "middle": "Attribute::IS_REPEATABLE)]\nclass LessThan extends Ab", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/LessThan.php", "language": "php", "file_size": 856, "cut_index": 529, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates values are less than or equal to the previous (<=).\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\nclass LessThanOrEqualValidator extends Abstra", "suffix": "lidator\n{\n protected function compareValues(mixed $value1, mixed $value2): bool\n {\n return null === $value2 || $value1 <= $value2;\n }\n\n protected function getErrorCode(): ?string\n {\n return LessThanOrEqual::TOO_HIGH_ERROR;\n ", "middle": "ctComparisonVa", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/LessThanOrEqualValidator.php", "language": "php", "file_size": 787, "cut_index": 513, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Locales;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\Unexp", "suffix": "e, Constraint $constraint): void\n {\n if (!$constraint instanceof Locale) {\n throw new UnexpectedTypeException($constraint, Locale::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n ", "middle": "ectedValueException;\n\n/**\n * Validates whether a value is a valid locale code.\n *\n * @author Bernhard Schussek \n */\nclass LocaleValidator extends ConstraintValidator\n{\n public function validate(mixed $valu", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/LocaleValidator.php", "language": "php", "file_size": 1646, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value (typically a credit card number) passes the Luhn algorithm.\n *\n * @see https://en.wikipedia.org/wiki/Luh", "suffix": "te::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Luhn extends Constraint\n{\n public const INVALID_CHARACTERS_ERROR = 'dfad6d23-1b74-4374-929b-5cbb56fc0d9e';\n public const CHECKSUM_FAILED_ERROR = '4d760774-3f50-4cd5-a", "middle": "n_algorithm\n *\n * @author Tim Nagel \n * @author Greg Knapp http://gregk.me/2011/php-implementation-of-bank-card-luhn-algorithm/\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribu", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Luhn.php", "language": "php", "file_size": 1815, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\n\n/**\n * Validates that a value is a valid MAC address.\n *\n * @author Ninos Ego \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::T", "suffix": "AL_NO_BROADCAST = 'local_no_broadcast';\n public const LOCAL_UNICAST = 'local_unicast';\n public const LOCAL_MULTICAST = 'local_multicast';\n public const LOCAL_MULTICAST_NO_BROADCAST = 'local_multicast_no_broadcast';\n public const UNIVERSAL_ALL =", "middle": "ARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass MacAddress extends Constraint\n{\n public const ALL = 'all';\n public const ALL_NO_BROADCAST = 'all_no_broadcast';\n public const LOCAL_ALL = 'local_all';\n public const LOC", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/MacAddress.php", "language": "php", "file_size": 2863, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\n\n/**\n * Validates that the given string does not contain characters used in spoofing security attacks.\n *\n * @see https://www.php.net/manual/en/class.spoofchecker.php\n *\n * @author Mathieu Lechat \n */\n#[\\Attribute(\\Attribu", "suffix": "NVISIBLE_ERROR = '6ed60e6c-179b-4e93-8a6c-667d85c6de5e';\n public const MIXED_NUMBERS_ERROR = '9f01fc26-3bc4-44b1-a6b1-c08e2412053a';\n public const HIDDEN_OVERLAY_ERROR = '56380dc5-0476-4f04-bbaa-b68cd1c2d974';\n\n protected const ERROR_NAMES = [\n ", "middle": "te::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass NoSuspiciousCharacters extends Constraint\n{\n public const RESTRICTION_LEVEL_ERROR = '1ece07dc-dca2-45f1-ba47-8d7dc3a12774';\n public const I", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NoSuspiciousCharacters.php", "language": "php", "file_size": 5806, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is not blank.\n *\n * @author Bernhard Schussek \n * @author Kévin Dunglas 'IS_BLANK_ERROR',\n ];\n\n public string $message = 'This value should not be blank.';\n public bool $allowNull = false;\n /** @var callable|null */\n public $normalizer;\n\n /**\n ", "middle": "ail.com>\n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass NotBlank extends Constraint\n{\n public const IS_BLANK_ERROR = 'c1051bb4-d103-4f74-8988-acbcafc7fdc3';\n\n pr", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NotBlank.php", "language": "php", "file_size": 2007, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValue", "suffix": "a k-anonymity model to protect the password being searched for.\n *\n * @see https://haveibeenpwned.com/API/v2#SearchingPwnedPasswordsByRange\n *\n * @author Kévin Dunglas \n */\nclass NotCompromisedPasswordValidator extends ConstraintValidato", "middle": "Exception;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * Checks if a password has been leaked in a data breach using haveibeenpwned.com's API.\n * Use ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NotCompromisedPasswordValidator.php", "language": "php", "file_size": 3648, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates that a value is not identical to another value.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass NotIdenticalTo extends AbstractCompar", "suffix": "18-0dda-4129-a6d9-e216b9b454a0';\n\n protected const ERROR_NAMES = [\n self::IS_IDENTICAL_ERROR => 'IS_IDENTICAL_ERROR',\n ];\n\n public string $message = 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.';\n}\n", "middle": "ison\n{\n public const IS_IDENTICAL_ERROR = '4aaac5", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NotIdenticalTo.php", "language": "php", "file_size": 914, "cut_index": 606, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n */", "suffix": "nstraint, NotNull::class);\n }\n\n if (null === $value) {\n $this->context->buildViolation($constraint->message)\n ->setParameter('{{ value }}', $this->formatValue($value))\n ->setCode(NotNull::IS_NULL_ERROR", "middle": "\nclass NotNullValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof NotNull) {\n throw new UnexpectedTypeException($co", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NotNullValidator.php", "language": "php", "file_size": 1052, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\nfinal class PasswordStrengthValidator extends ConstraintValidator\n{\n /**\n * @param (", "suffix": "date(#[\\SensitiveParameter] mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof PasswordStrength) {\n throw new UnexpectedTypeException($constraint, PasswordStrength::class);\n }\n\n if (null === $valu", "middle": "\\Closure(string):PasswordStrength::STRENGTH_*)|null $passwordStrengthEstimator\n */\n public function __construct(\n private readonly ?\\Closure $passwordStrengthEstimator = null,\n ) {\n }\n\n public function vali", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/PasswordStrengthValidator.php", "language": "php", "file_size": 3233, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Clock\\DatePoint;\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\UninitializedPropertyException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator", "suffix": "angeValidator extends ConstraintValidator\n{\n public function __construct(\n private ?PropertyAccessorInterface $propertyAccessor = null,\n private ?ClockInterface $clock = null,\n ) {\n }\n\n public function validate(mixed $value, Const", "middle": "\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n */\nclass R", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/RangeValidator.php", "language": "php", "file_size": 7583, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Validates that a value matches a regular expression.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::T", "suffix": "self::REGEX_FAILED_ERROR => 'REGEX_FAILED_ERROR',\n ];\n\n public string $message = 'This value is not valid.';\n public ?string $pattern = null;\n public ?string $htmlPattern = null;\n public bool $match = true;\n /** @var callable|null */\n ", "middle": "ARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Regex extends Constraint\n{\n public const REGEX_FAILED_ERROR = 'de1e3db3-5ed4-4941-aae4-59f3667cc3a3';\n\n protected const ERROR_NAMES = [\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Regex.php", "language": "php", "file_size": 4004, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/", "suffix": " throw new UnexpectedTypeException($constraint, Json::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n if (!\\is_scalar($value) && !$value instanceof \\Stringable) {\n throw new Unexp", "middle": "**\n * @author Imad ZAIRIG \n */\nclass JsonValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Json) {\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/JsonValidator.php", "language": "php", "file_size": 1375, "cut_index": 524, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates that a value is less than or equal to another value.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attrib", "suffix": "bstractComparison\n{\n public const TOO_HIGH_ERROR = '30fbb013-d015-4232-8b3b-8f3be97a7e14';\n\n protected const ERROR_NAMES = [\n self::TOO_HIGH_ERROR => 'TOO_HIGH_ERROR',\n ];\n\n public string $message = 'This value should be less than or equ", "middle": "ute::IS_REPEATABLE)]\nclass LessThanOrEqual extends A", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/LessThanOrEqual.php", "language": "php", "file_size": 887, "cut_index": 547, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Locales;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\n\n/**\n * Validates that a value is a valid locale (e.g. fr, fr_FR, e", "suffix": "ss Locale extends Constraint\n{\n public const NO_SUCH_LOCALE_ERROR = 'a0af4293-1f1a-4a1c-a328-979cba6182a2';\n\n protected const ERROR_NAMES = [\n self::NO_SUCH_LOCALE_ERROR => 'NO_SUCH_LOCALE_ERROR',\n ];\n\n public string $message = 'This val", "middle": "tc.).\n *\n * @see https://unicode-org.github.io/icu/userguide/locale/\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\ncla", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Locale.php", "language": "php", "file_size": 2143, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validates a PAN using the LUHN Algorithm.\n *\n * For a list of example card numbers t", "suffix": "p-implementation-of-bank-card-luhn-algorithm/\n * @author Bernhard Schussek \n */\nclass LuhnValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint i", "middle": "hat are used to test this\n * class, please see the LuhnValidatorTest class.\n *\n * @see http://en.wikipedia.org/wiki/Luhn_algorithm\n *\n * @author Tim Nagel \n * @author Greg Knapp http://gregk.me/2011/ph", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/LuhnValidator.php", "language": "php", "file_size": 3198, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validates whether a value is a valid MAC address.\n *\n * @author Ninos Ego \n */\nclass MacAddressValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof MacAddress) {\n throw new UnexpectedT", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/MacAddressValidator.php", "language": "php", "file_size": 3949, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Checks if a password has been leaked in a data breach.\n *\n * @author Kévin Dunglas \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\At", "suffix": " self::COMPROMISED_PASSWORD_ERROR => 'COMPROMISED_PASSWORD_ERROR',\n ];\n\n public string $message = 'This password has been leaked in a data breach, it must not be used. Please use another password.';\n public int $threshold = 1;\n public bool ", "middle": "tribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass NotCompromisedPassword extends Constraint\n{\n public const COMPROMISED_PASSWORD_ERROR = 'd9bcdbfe-a9d6-4bfa-a8ff-da5fd93e0f6d';\n\n protected const ERROR_NAMES = [\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NotCompromisedPassword.php", "language": "php", "file_size": 2113, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value is not strictly equal to null.\n *\n * @author Bernhard Schussek \n */\n#[", "suffix": "OR_NAMES = [\n self::IS_NULL_ERROR => 'IS_NULL_ERROR',\n ];\n\n public string $message = 'This value should not be null.';\n\n /**\n * @param string[]|null $groups\n */\n public function __construct(?array $options = null, ?string $messag", "middle": "\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass NotNull extends Constraint\n{\n public const IS_NULL_ERROR = 'ad32d13f-c3d4-423b-909a-857b961eb720';\n\n protected const ERR", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NotNull.php", "language": "php", "file_size": 1392, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that the given password has reached a minimum strength.\n *\n * @author ", "suffix": "H_VERY_WEAK = 0;\n public const STRENGTH_WEAK = 1;\n public const STRENGTH_MEDIUM = 2;\n public const STRENGTH_STRONG = 3;\n public const STRENGTH_VERY_STRONG = 4;\n\n public const PASSWORD_STRENGTH_ERROR = '4234df00-45dd-49a4-b303-a75dbf8b10d8';\n", "middle": "Florent Morselli \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class PasswordStrength extends Constraint\n{\n public const STRENGT", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/PasswordStrength.php", "language": "php", "file_size": 2286, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Validates whether the value is a valid ISSN.\n *\n * @author Antonio J. García Lagar <", "suffix": "traint): void\n {\n if (!$constraint instanceof Issn) {\n throw new UnexpectedTypeException($constraint, Issn::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n }\n\n if (!\\is_scalar($valu", "middle": "aj@garcialagar.es>\n * @author Bernhard Schussek \n *\n * @see https://en.wikipedia.org/wiki/Issn\n */\nclass IssnValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $cons", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/IssnValidator.php", "language": "php", "file_size": 4142, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Bernhard Schussek \n */\nclass LengthValidator extends Co", "suffix": "\n\n if (null === $value) {\n return;\n }\n\n if (!\\is_scalar($value) && !$value instanceof \\Stringable) {\n throw new UnexpectedValueException($value, 'string');\n }\n\n $stringValue = (string) $value;\n\n ", "middle": "nstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Length) {\n throw new UnexpectedTypeException($constraint, Length::class);\n }", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/LengthValidator.php", "language": "php", "file_size": 4324, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * @internal\n *\n * @author Jan Schädlich \n * @author Alexander M. Turek \n */\ntrait ZeroComparisonConstra", "suffix": "ntf('Passing an array of options to configure the \"%s\" constraint is no longer supported.', static::class));\n }\n\n parent::__construct(0, null, $message, $groups, $payload);\n }\n\n public function validatedBy(): string\n {\n return", "middle": "intTrait\n{\n public function __construct(?array $options = null, ?string $message = null, ?array $groups = null, mixed $payload = null)\n {\n if (null !== $options) {\n throw new InvalidArgumentException(\\spri", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/ZeroComparisonConstraintTrait.php", "language": "php", "file_size": 1035, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Mathieu Lechat \n */\nclass NoSuspiciousCharactersValid", "suffix": "CTION_LEVEL => [\n 'code' => NoSuspiciousCharacters::RESTRICTION_LEVEL_ERROR,\n 'messageProperty' => 'restrictionLevelMessage',\n ],\n NoSuspiciousCharacters::CHECK_INVISIBLE => [\n 'code' => NoSuspiciousCharacters", "middle": "ator extends ConstraintValidator\n{\n private const CHECK_RESTRICTION_LEVEL = 16;\n private const CHECK_SINGLE_SCRIPT = 16;\n private const CHECK_CHAR_LIMIT = 64;\n\n private const CHECK_ERROR = [\n self::CHECK_RESTRI", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NoSuspiciousCharactersValidator.php", "language": "php", "file_size": 3340, "cut_index": 614, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\n/**\n * Validates that a value is not equal to another value.\n *\n * @author Daniel Holmes \n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD ", "suffix": "ds AbstractComparison\n{\n public const IS_EQUAL_ERROR = 'aa2e33da-25c8-4d76-8c6c-812f02ea89dd';\n\n protected const ERROR_NAMES = [\n self::IS_EQUAL_ERROR => 'IS_EQUAL_ERROR',\n ];\n\n public string $message = 'This value should not be equal to", "middle": "| \\Attribute::IS_REPEATABLE)]\nclass NotEqualTo exten", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NotEqualTo.php", "language": "php", "file_size": 864, "cut_index": 529, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\n\n/**\n * Validates that a value has valid JSON syntax.\n *\n * @author Imad ZAIRIG \n */\n#[\\Attribute(\\A", "suffix": "[\n self::INVALID_JSON_ERROR => 'INVALID_JSON_ERROR',\n ];\n\n public string $message = 'This value should be valid JSON.';\n\n /**\n * @param string[]|null $groups\n */\n public function __construct(?array $options = null, ?string $messa", "middle": "ttribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Json extends Constraint\n{\n public const INVALID_JSON_ERROR = '0789c8ad-2d2b-49a4-8356-e2ce63998504';\n\n protected const ERROR_NAMES = ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Json.php", "language": "php", "file_size": 1393, "cut_index": 524, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\n/**\n * Specifies how the auto-mapping feature should behave.\n *\n * @author Maxime Steinhausser \n */\nfinal class AutoMappingStrategy\n{\n /**\n * Nothing explicitly set, rely on auto-mapping config", "suffix": " */\n public const NONE = 0;\n\n /**\n * Explicitly enabled.\n */\n public const ENABLED = 1;\n\n /**\n * Explicitly disabled.\n */\n public const DISABLED = 2;\n\n /**\n * Not instantiable.\n */\n private function __construc", "middle": "ured regex.\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/AutoMappingStrategy.php", "language": "php", "file_size": 805, "cut_index": 517, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * Validates that a given number or DateTime object is bet", "suffix": "ic const INVALID_CHARACTERS_ERROR = 'ad9a9798-7a99-4df7-8ce9-46e416a1e60b';\n public const NOT_IN_RANGE_ERROR = '04b91c99-a946-4221-afc5-e65ebac401eb';\n public const TOO_HIGH_ERROR = '2d28afcb-e32e-45fb-a815-01c431a86a69';\n public const TOO_LOW_ERR", "middle": "ween some minimum and maximum.\n *\n * @author Bernhard Schussek \n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Range extends Constraint\n{\n publ", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/Range.php", "language": "php", "file_size": 5793, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\MappingException;\n\n/**\n * Base loader for validation metadata.\n *\n * This loader supports the loading of constraints from Symfony's default\n * namespace (see {@link DEFAULT_NAMESPACE}) using the short class names of\n * those constraint", "suffix": "m>\n */\nabstract class AbstractLoader implements LoaderInterface\n{\n /**\n * The namespace to load constraints from by default.\n */\n public const DEFAULT_NAMESPACE = '\\\\Symfony\\\\Component\\\\Validator\\\\Constraints\\\\';\n\n protected array $namespa", "middle": "s. Constraints can also be loaded using their fully\n * qualified class names. At last, namespace aliases can be defined to load\n * constraints with the syntax \"alias:ShortName\".\n *\n * @author Bernhard Schussek \n */\ninterface ValidatorInterface extends MetadataFactoryInterface\n{\n /**\n * Validates a value against a constraint or a list of constr", "meta": {"filepath": "src/Symfony/Component/Validator/Validator/ValidatorInterface.php", "language": "php", "file_size": 4140, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Helper\\Dumper;\nuse Symfony\\Component\\Console\\Helper\\Table;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\S", "suffix": "fony\\Component\\Validator\\Mapping\\CascadingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadataInterface;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\MetadataFactoryInterface;\nuse Symfony\\Component\\Validator\\Mapping\\GenericMetadata;\nuse Symfo", "middle": "ymfonyStyle;\nuse Symfony\\Component\\Finder\\Exception\\DirectoryNotFoundException;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Mapping\\AutoMappingStrategy;\nuse Sym", "meta": {"filepath": "src/Symfony/Component/Validator/Command/DebugCommand.php", "language": "php", "file_size": 8352, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\ClassConstraint;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\ConstraintA;\nuse Symfony", "suffix": "t->addImplicitGroupName('Foo');\n $this->assertEquals(['Default', 'Foo'], $constraint->groups);\n }\n\n public function testGetTargetsCanBeString()\n {\n $constraint = new ClassConstraint();\n\n $this->assertEquals('class', $constrain", "middle": "\\Component\\Validator\\Tests\\Fixtures\\CustomRegex;\n\nclass ConstraintTest extends TestCase\n{\n public function testAddDefaultGroupAddsGroup()\n {\n $constraint = new ConstraintA(null, null, ['Default']);\n $constrain", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/ConstraintTest.php", "language": "php", "file_size": 2416, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\ConstraintValidatorFactory;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\DummyConstraint;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\DummyConstraintValidator;\n\nc", "suffix": "tInstance(new DummyConstraint()));\n }\n\n public function testPredefinedGetInstance()\n {\n $validator = new DummyConstraintValidator();\n $factory = new ConstraintValidatorFactory([DummyConstraintValidator::class => $validator]);\n ", "middle": "lass ConstraintValidatorFactoryTest extends TestCase\n{\n public function testGetInstance()\n {\n $factory = new ConstraintValidatorFactory();\n $this->assertInstanceOf(DummyConstraintValidator::class, $factory->ge", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/ConstraintValidatorFactoryTest.php", "language": "php", "file_size": 1086, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\TestEnum;\n\nclass ConstraintValidatorTest extends TestCas", "suffix": "me($expected, (new TestFormatValueConstraintValidator())->formatValueProxy($value, $format));\n }\n\n public static function formatValueProvider(): array\n {\n $defaultTimezone = date_default_timezone_get();\n date_default_timezone_set('Eu", "middle": "e\n{\n use IcuCompatibilityTrait;\n\n #[DataProvider('formatValueProvider')]\n public function testFormatValue(string $expected, mixed $value, int $format = 0)\n {\n \\Locale::setDefault('en');\n\n $this->assertSa", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/ConstraintValidatorTest.php", "language": "php", "file_size": 2958, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\n\nclass ConstraintViolationListTest extends TestCase\n{\n protected ConstraintViolationList $list;\n\n protected function setUp(): void\n ", "suffix": "getViolation('Error');\n $this->list = new ConstraintViolationList([$violation]);\n\n $this->assertCount(1, $this->list);\n $this->assertSame($violation, $this->list[0]);\n }\n\n public function testAdd()\n {\n $violation = $thi", "middle": "{\n $this->list = new ConstraintViolationList();\n }\n\n public function testInit()\n {\n $this->assertCount(0, $this->list);\n }\n\n public function testInitWithViolations()\n {\n $violation = $this->", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/ConstraintViolationListTest.php", "language": "php", "file_size": 4793, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\CustomArrayObject;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\ToString;\n\nclass ConstraintViolationTest extends TestCase\n{\n public function testToStringHandlesArrays()\n {\n $violation", "suffix": " Root.property.path:\n Array\n EOF;\n\n $this->assertSame($expected, (string) $violation);\n }\n\n public function testToStringHandlesArrayRoots()\n {\n $violation = new ConstraintViolation(\n '42 ca", "middle": " = new ConstraintViolation(\n 'Array',\n '{{ value }}',\n ['{{ value }}' => [1, 2, 3]],\n 'Root',\n 'property.path',\n null\n );\n\n $expected = <<<'EOF'\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/ConstraintViolationTest.php", "language": "php", "file_size": 4622, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\Blank as BlankConstraint;\nuse Symfony\\Component\\Validator\\ContainerConstraintValidatorFactory;\nuse Symfony", "suffix": "yTest extends TestCase\n{\n public function testGetInstanceCreatesValidator()\n {\n $factory = new ContainerConstraintValidatorFactory(new Container());\n $this->assertInstanceOf(DummyConstraintValidator::class, $factory->getInstance(new Dum", "middle": "\\Component\\Validator\\Exception\\ValidatorException;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\DummyConstraint;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\DummyConstraintValidator;\n\nclass ContainerConstraintValidatorFactor", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/ContainerConstraintValidatorFactoryTest.php", "language": "php", "file_size": 2256, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests;\n\ntrait IcuCompatibilityTrait\n{\n /**\n * Normalized spaces in date strings generated by INTL for older ICU versions.\n *\n * In version 72.1, ICU started to render a narrow non-breaking space (NNBSP) into localized time strings. This\n * method allow", "suffix": "anner.\n */\n private static function normalizeIcuSpaces(string $input): string\n {\n if (\\defined('INTL_ICU_VERSION') && version_compare(\\INTL_ICU_VERSION, '72.1', '>=')) {\n return $input;\n }\n\n return str_replace(\"\\u{", "middle": "s us to write expectations in a forward-compatible m", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/IcuCompatibilityTrait.php", "language": "php", "file_size": 885, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Blank;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Exception\\ValidationFailedException;\nuse Symfony\\Component\\Validator\\Validation;\n\n/*", "suffix": "ssertEquals('test@example.com', $validator('test@example.com'));\n }\n\n public function testCreateCallableInvalid()\n {\n $validator = Validation::createCallable(new Blank());\n try {\n $validator('test');\n $this->fai", "middle": "*\n * @author Jan Vernieuwe \n */\nclass ValidationTest extends TestCase\n{\n public function testCreateCallableValid()\n {\n $validator = Validation::createCallable(new NotBlank());\n $this->a", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/ValidationTest.php", "language": "php", "file_size": 1917, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Translation\\IdentityTranslator;\nuse Symfony\\Component\\Validator\\ConstraintValidatorFactoryInterface;\nuse Symfony\\Component\\Validator\\ObjectInitializerInterface;\nuse Symfony\\Component\\Validator\\Validator\\RecursiveValidator;\nuse Symfony\\Com", "suffix": "ic function testAddObjectInitializer()\n {\n $this->assertSame($this->builder, $this->builder->addObjectInitializer(\n $this->createStub(ObjectInitializerInterface::class)\n ));\n }\n\n public function testAddObjectInitializers()", "middle": "ponent\\Validator\\ValidatorBuilder;\n\nclass ValidatorBuilderTest extends TestCase\n{\n private ValidatorBuilder $builder;\n\n protected function setUp(): void\n {\n $this->builder = new ValidatorBuilder();\n }\n\n publ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/ValidatorBuilderTest.php", "language": "php", "file_size": 3371, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\DataCollector\\ValidatorDataCollector;\nuse Symfony\\Component\\Validator\\Validator\\TraceableVa", "suffix": "idatorInterface::class);\n $validator = new TraceableValidator($originalValidator);\n\n $collector = new ValidatorDataCollector($validator);\n\n $violations = new ConstraintViolationList([\n $this->createStub(ConstraintViolation::", "middle": "lidator;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\nclass ValidatorDataCollectorTest extends TestCase\n{\n public function testCollectsValidatorCalls()\n {\n $originalValidator = $this->createStub(Val", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/DataCollector/ValidatorDataCollectorTest.php", "language": "php", "file_size": 2413, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Util\\PropertyPath;\n\nclass PropertyPathTest extends TestCase\n{\n #[DataProvider('provideAppendPaths')]\n public function ", "suffix": "turn [\n ['foo', '', 'foo', 'It returns the basePath if subPath is empty'],\n ['', 'bar', 'bar', 'It returns the subPath if basePath is empty'],\n ['foo', 'bar', 'foo.bar', 'It append the subPath to the basePath'],\n ", "middle": "testAppend($basePath, $subPath, $expectedPath, $message)\n {\n $this->assertSame($expectedPath, PropertyPath::append($basePath, $subPath), $message);\n }\n\n public static function provideAppendPaths()\n {\n re", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Util/PropertyPathTest.php", "language": "php", "file_size": 1275, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\n#[\\Attribute]\nclass ConstraintA extends Constraint\n{\n public $property1;\n public $property2;\n\n public function __construct($property1 = null, $property2 = null, $groups = ", "suffix": " parent::__construct(null, $groups);\n $this->property1 = $property1;\n $this->property2 = $property2;\n }\n\n public function getTargets(): string|array\n {\n return [self::PROPERTY_CONSTRAINT, self::CLASS_CONSTRAINT];\n }\n}\n", "middle": "null)\n {\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Fixtures/ConstraintA.php", "language": "php", "file_size": 788, "cut_index": 518, "middle_length": 14}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\nclass ConstraintWithRequiredOptionAndConstructor extends Constraint\n{\n public $option1;\n\n public function __construct(?array $groups = null, mixed $payload = null)\n {\n", "suffix": "::__construct(null, $groups, $payload);\n }\n\n public function getRequiredOptions(): array\n {\n return ['option1'];\n }\n\n public function getTargets(): string|array\n {\n return [self::PROPERTY_CONSTRAINT, self::CLASS_CONSTRAINT];", "middle": " parent", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Fixtures/ConstraintWithRequiredOptionAndConstructor.php", "language": "php", "file_size": 793, "cut_index": 514, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Fixtures;\n\n/**\n * This class is a hand written simplified version of PHP native `ArrayObject`\n * class, to show that it behaves differently than the PHP native implementation.\n */\nclass CustomArrayObject implements \\ArrayAccess, \\IteratorAggregate, \\Count", "suffix": "this->array);\n }\n\n public function offsetGet($offset): mixed\n {\n return $this->array[$offset];\n }\n\n public function offsetSet($offset, $value): void\n {\n if (null === $offset) {\n $this->array[] = $value;\n } ", "middle": "able\n{\n private $array;\n\n public function __construct(?array $array = null)\n {\n $this->array = $array ?: [];\n }\n\n public function offsetExists($offset): bool\n {\n return \\array_key_exists($offset, $", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Fixtures/CustomArrayObject.php", "language": "php", "file_size": 1561, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Validator\\Constraints\\Compound;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\Regex;\n\nclass Du", "suffix": "straint extends Compound\n{\n protected function getConstraints(array $options): array\n {\n return [\n new NotBlank(),\n new Length(max: 3),\n new Regex('/[a-z]+/'),\n new Regex('/[0-9]+/'),\n ];\n ", "middle": "mmyCompoundCon", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Fixtures/DummyCompoundConstraint.php", "language": "php", "file_size": 787, "cut_index": 513, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Validator;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\ConstraintValidatorFactoryInterface;\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\nuse Symfony\\Component\\Validator\\Context\\ExecutionC", "suffix": "ymfony\\Component\\Validator\\ObjectInitializerInterface;\n\n/**\n * Recursive implementation of {@link ValidatorInterface}.\n *\n * @author Bernhard Schussek \n */\nclass RecursiveValidator implements ValidatorInterface\n{\n /**\n * Creates", "middle": "ontextFactoryInterface;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\MetadataFactoryInterface;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;\nuse S", "meta": {"filepath": "src/Symfony/Component/Validator/Validator/RecursiveValidator.php", "language": "php", "file_size": 3833, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Intl\\Languages;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\Une", "suffix": " $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Language) {\n throw new UnexpectedTypeException($constraint, Language::class);\n }\n\n if (null === $value || '' === $value) {\n return;\n ", "middle": "xpectedValueException;\n\n/**\n * Validates whether a value is a valid language code.\n *\n * @author Bernhard Schussek \n */\nclass LanguageValidator extends ConstraintValidator\n{\n public function validate(mixed", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/LanguageValidator.php", "language": "php", "file_size": 1561, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\n/**\n * Specifies whether an object should be cascaded.\n *\n * Cascading is relevant for any node type but class nodes. If such a node\n * contains an object of value, and if cascading is enabled, then the node\n * traverser will try to find ", "suffix": " object and\n * cascade each object or collection contained within, unless iteration is\n * prohibited by the specified {@link TraversalStrategy}.\n *\n * Although the constants currently represent a boolean switch, they are\n * implemented as bit mask in order", "middle": "class metadata for that object and validate the\n * object against that metadata.\n *\n * If no metadata is found for a cascaded object, and if that object implements\n * {@link \\Traversable}, the node traverser will iterate over the", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/CascadingStrategy.php", "language": "php", "file_size": 1434, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\GroupSequenceProviderInterface;\n\n/**\n * Stores all metadata needed for validating objects of specific class.\n *\n * Most importantly, the metadata stores the constraints against which an ", "suffix": "or not.\n *\n * @author Bernhard Schussek \n *\n * @see MetadataInterface\n * @see GroupSequence\n * @see GroupSequenceProviderInterface\n * @see TraversalStrategy\n */\ninterface ClassMetadataInterface extends MetadataInterface\n{\n /**\n ", "middle": "object\n * and its properties should be validated.\n *\n * Additionally, the metadata stores whether the \"Default\" group is overridden\n * by a group sequence for that class and whether instances of that class\n * should be traversed ", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/ClassMetadataInterface.php", "language": "php", "file_size": 2805, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\Composite;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\n\n/**\n * Stores all metadata needed for validating a class property.\n *\n * The method of accessing the property's value must be specified by subclasses\n * by", "suffix": "data extends GenericMetadata implements PropertyMetadataInterface\n{\n private string $class;\n private string $name;\n private string $property;\n\n /**\n * @var \\ReflectionMethod[]|\\ReflectionProperty[]\n */\n private array $reflMember = []", "middle": " implementing the {@link newReflectionMember()} method.\n *\n * This class supports serialization and cloning.\n *\n * @author Bernhard Schussek \n *\n * @see PropertyMetadataInterface\n */\nabstract class MemberMeta", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/MemberMetadata.php", "language": "php", "file_size": 3931, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\nuse Symfony\\Component\\Validator\\Exception\\ValidatorException;\n\n/**\n * Stores all metadata needed for validating a class property.\n *\n * The value of the property is obtained by directly accessing the property.\n * The property will be accessed by reflection, so the access of pr", "suffix": "mberMetadata\n{\n /**\n * @param string $class The class this property is defined on\n * @param string $name The name of this property\n *\n * @throws ValidatorException\n */\n public function __construct(string $class, string $name)\n ", "middle": "ivate and\n * protected properties is supported.\n *\n * This class supports serialization and cloning.\n *\n * @author Bernhard Schussek \n *\n * @see PropertyMetadataInterface\n */\nclass PropertyMetadata extends Me", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/PropertyMetadata.php", "language": "php", "file_size": 2915, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\n/**\n * Specifies whether and how a traversable object should be traversed.\n *\n * If the node traverser traverses a node whose value is an instance of\n * {@link \\Traversable}, and if that node is either a class node or if\n * cascading is enabled, then ", "suffix": "ersal strategy is ignored for arrays. Arrays are always iterated.\n *\n * @author Bernhard Schussek \n *\n * @see CascadingStrategy\n */\nclass TraversalStrategy\n{\n /**\n * Specifies that a node's value should be iterated only if it is", "middle": "the node's traversal strategy will be checked.\n * Depending on the requested traversal strategy, the node traverser will\n * iterate over the object and cascade each object or collection returned by\n * the iterator.\n *\n * The trav", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/TraversalStrategy.php", "language": "php", "file_size": 1511, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\nuse Symfony\\Component\\Validator\\Exception\\MappingException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\n\n/**\n * Loads validation metadata by calling a static method on the loaded class.\n *\n * @author Bernhard Schussek getReflectionClass();\n\n ", "middle": "l.com>\n */\nclass StaticMethodLoader implements LoaderInterface\n{\n /**\n * Creates a new loader.\n *\n * @param string $methodName The name of the static method to call\n */\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Loader/StaticMethodLoader.php", "language": "php", "file_size": 1673, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\AtLeastOneOf;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Valid", "suffix": "ption(ConstraintDefinitionException::class);\n new AtLeastOneOf([\n 'foo',\n ]);\n }\n\n public function testRejectValidConstraint()\n {\n $this->expectException(ConstraintDefinitionException::class);\n new AtLeastOne", "middle": "ator\\Exception\\MissingOptionsException;\n\n/**\n * @author Przemysław Bogusz \n */\nclass AtLeastOneOfTest extends TestCase\n{\n public function testRejectNonConstraints()\n {\n $this->expectExce", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/AtLeastOneOfTest.php", "language": "php", "file_size": 1658, "cut_index": 537, "middle_length": 229}} {"prefix": "ony\\Component\\Validator\\Constraints\\AtLeastOneOfValidator;\nuse Symfony\\Component\\Validator\\Constraints\\Choice;\nuse Symfony\\Component\\Validator\\Constraints\\Collection;\nuse Symfony\\Component\\Validator\\Constraints\\Count;\nuse Symfony\\Component\\Validator\\Constraints\\Country;\nuse Symfony\\Component\\Validator\\Constraints\\DivisibleBy;\nuse Symfony\\Component\\Validator\\Constraints\\EqualTo;\nuse Symfony\\Component\\Validator\\Constraints\\Expression;\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThan;\nuse Symfony\\Compon", "suffix": "t\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\LessThan;\nuse Symfony\\Component\\Validator\\Constraints\\Negative;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\Range;\nuse Symfony\\", "middle": "ent\\Validator\\Constraints\\GreaterThanOrEqual;\nuse Symfony\\Component\\Validator\\Constraints\\IdenticalTo;\nuse Symfony\\Component\\Validator\\Constraints\\IsNull;\nuse Symfony\\Component\\Validator\\Constraints\\Language;\nuse Symfony\\Componen", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/AtLeastOneOfValidatorTest.php", "language": "php", "file_size": 11732, "cut_index": 921, "middle_length": 229}} {"prefix": "nent\\Validator\\Constraints\\BicValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\BicTypedDummy;\n\ncl", "suffix": "(null, new Bic());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Bic());\n\n $this->assertNoViolation();\n }\n\n public function testValidComparisonToPropertyPath()\n ", "middle": "ass BicValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): BicValidator\n {\n return new BicValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/BicValidatorTest.php", "language": "php", "file_size": 11829, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Blank;\nuse Symfony\\Component\\Validator\\Constraints\\BlankValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass BlankValid", "suffix": "ew Blank());\n\n $this->assertNoViolation();\n }\n\n public function testBlankIsValid()\n {\n $this->validate('', new Blank());\n\n $this->assertNoViolation();\n }\n\n #[DataProvider('getInvalidValues')]\n public function testInva", "middle": "atorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): BlankValidator\n {\n return new BlankValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, n", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/BlankValidatorTest.php", "language": "php", "file_size": 1576, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\CallbackValidator;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass CallbackValidatorTest_Class\n{\n public static function validateCallback($object, ExecutionContextInterface $context)\n", "suffix": " $context->addViolation('My message', ['{{ value }}' => 'foobar']);\n\n return false;\n }\n\n public static function validateStatic($object, ExecutionContextInterface $context)\n {\n $context->addViolation('Static message', ['{{ value ", "middle": " {\n $context->addViolation('Callback message', ['{{ value }}' => 'foobar']);\n\n return false;\n }\n}\n\nclass CallbackValidatorTest_Object\n{\n public function validate(ExecutionContextInterface $context)\n {\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CallbackValidatorTest.php", "language": "php", "file_size": 7100, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\CardScheme;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeL", "suffix": "loadClassMetadata($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame([CardScheme::MASTERCARD, CardScheme::VISA], $aConstraint->schemes);\n\n [$bConstraint] = $metadata->getProperty", "middle": "oader;\n\nclass CardSchemeTest extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(CardSchemeDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CardSchemeTest.php", "language": "php", "file_size": 2176, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\CardScheme;\nuse Symfony\\Component\\Validator\\Constraints\\CardSchemeValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass CardSchemeValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): CardSchemeValidator\n {\n return new CardSchemeValidator();\n }\n\n", "suffix": "w CardScheme(schemes: []));\n\n $this->assertNoViolation();\n }\n\n #[DataProvider('getValidNumbers')]\n public function testValidNumbers($scheme, $number)\n {\n $this->validate($number, new CardScheme(schemes: $scheme));\n\n $this->", "middle": " public function testNullIsValid()\n {\n $this->validate(null, new CardScheme(schemes: []));\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', ne", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CardSchemeValidatorTest.php", "language": "php", "file_size": 6937, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Validator;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\n\n/**\n * A validator in a specific execution context.\n *\n * @author Bernhard Schussek \n */\ninterface ContextualValidatorInterface\n{\n /", "suffix": "return $this\n */\n public function atPath(string $path): static;\n\n /**\n * Validates a value against a constraint or a list of constraints.\n *\n * If no constraint is passed, the constraint\n * {@link \\Symfony\\Component\\Validator\\Cons", "middle": "**\n * Appends the given path to the property path of the context.\n *\n * If called multiple times, the path will always be reset to the context's\n * original path with the given path appended to it.\n *\n * @", "meta": {"filepath": "src/Symfony/Component/Validator/Validator/ContextualValidatorInterface.php", "language": "php", "file_size": 3265, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Validator;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;\nuse Symfony\\Contracts\\Service\\R", "suffix": "llectedData = [];\n\n public function __construct(\n private ValidatorInterface $validator,\n protected readonly ?\\Closure $disabled = null,\n ) {\n }\n\n public function getCollectedData(): array\n {\n return $this->collectedData", "middle": "esetInterface;\n\n/**\n * Collects some data about validator calls.\n *\n * @author Maxime Steinhausser \n */\nclass TraceableValidator implements ValidatorInterface, ResetInterface\n{\n private array $co", "meta": {"filepath": "src/Symfony/Component/Validator/Validator/TraceableValidator.php", "language": "php", "file_size": 3930, "cut_index": 614, "middle_length": 229}} {"prefix": "dator\\Constraints\\Composite;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\Constraints\\Traverse;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\GroupDefinitionException;\nuse Symfony\\Component\\Validator\\GroupSequenceProviderInterface;\n\n/**\n * Default implementation of {@link ClassMetadataInterface}.\n *\n * This class supports serialization and clon", "suffix": " string $defaultGroup;\n\n /**\n * @var MemberMetadata[][]\n */\n private array $members = [];\n\n /**\n * @var PropertyMetadata[]\n */\n private array $properties = [];\n\n /**\n * @var GetterMetadata[]\n */\n private array $get", "middle": "ing.\n *\n * @author Bernhard Schussek \n * @author Fabien Potencier \n */\nclass ClassMetadata extends GenericMetadata implements ClassMetadataInterface\n{\n private string $name;\n private", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/ClassMetadata.php", "language": "php", "file_size": 15361, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\Cascade;\nuse Symfony\\Component\\Validator\\Constraints\\DisableAutoMapping;\nuse Symfony\\Component\\Validator\\Constraints\\EnableAutoMapping;\nuse Symfony\\Component\\Validator\\Constraints\\Traverse;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\n\n/**\n * A generic container ", "suffix": " */\n private array $constraints = [];\n\n /**\n * @var array\n */\n private array $constraintsByGroup = [];\n\n /**\n * The strategy for cascading objects.\n *\n * By default, objects are not cascaded.\n *\n", "middle": "of {@link Constraint} objects.\n *\n * This class supports serialization and cloning.\n *\n * @author Bernhard Schussek \n */\nclass GenericMetadata implements MetadataInterface\n{\n /**\n * @var Constraint[]\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/GenericMetadata.php", "language": "php", "file_size": 5865, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\nuse Symfony\\Component\\Validator\\Exception\\ValidatorException;\n\n/**\n * Stores all metadata needed for validating a class property via its getter\n * method.\n *\n * A property getter is any method that is equal to the property's name,\n * prefixed with \"get\", \"is\" or \"has\". That me", "suffix": "or Bernhard Schussek \n *\n * @see PropertyMetadataInterface\n */\nclass GetterMetadata extends MemberMetadata\n{\n /**\n * @param string $class The class the getter is defined on\n * @param string $property The propert", "middle": "thod will be used to access the\n * property's value.\n *\n * The getter will be invoked by reflection, so the access of private and\n * protected getters is supported.\n *\n * This class supports serialization and cloning.\n *\n * @auth", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/GetterMetadata.php", "language": "php", "file_size": 2608, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequenceProvider;\nuse Symfony\\Component\\Validator\\Exception\\MappingException;\nuse Symfony\\Component\\Validator\\Mappi", "suffix": " */\nclass AttributeLoader implements LoaderInterface\n{\n /**\n * @param array $mappedClasses\n */\n public function __construct(\n private bool $allowAnyClass = true,\n private array $mappedClasses = [],\n", "middle": "ng\\ClassMetadata;\n\n/**\n * Loads validation metadata using PHP attributes.\n *\n * @author Bernhard Schussek \n * @author Alexander M. Turek \n * @author Alexandre Daubois \n", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Loader/AttributeLoader.php", "language": "php", "file_size": 4674, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\nuse Symfony\\Component\\Validator\\Mapping\\AutoMappingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\n\n/**\n * Utility methods to create auto mapping loaders.\n *\n * @author Kévin Dunglas \n", "suffix": "pingStrategy::NONE !== $strategy = $metadata->getAutoMappingStrategy()) {\n return AutoMappingStrategy::ENABLED === $strategy;\n }\n\n // Fallback on the config\n return null !== $classValidatorRegexp && preg_match($classValidato", "middle": " */\ntrait AutoMappingTrait\n{\n private function isAutoMappingEnabledForClass(ClassMetadata $metadata, ?string $classValidatorRegexp = null): bool\n {\n // Check if AutoMapping constraint is set first\n if (AutoMap", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Loader/AutoMappingTrait.php", "language": "php", "file_size": 1044, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\nuse Symfony\\Component\\Validator\\Exception\\MappingException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\n\n/**\n * Loads validation metadata from multiple {@link LoaderInterface} instances.\n *\n * Pass the loaders when constructing the c", "suffix": " * @param LoaderInterface[] $loaders The metadata loaders to use\n *\n * @throws MappingException If any of the loaders has an invalid type\n */\n public function __construct(\n protected array $loaders,\n ) {\n foreach ($loaders a", "middle": "hain. Once\n * {@link loadClassMetadata()} is called, that method will be called on all\n * loaders in the chain.\n *\n * @author Bernhard Schussek \n */\nclass LoaderChain implements LoaderInterface\n{\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Loader/LoaderChain.php", "language": "php", "file_size": 1655, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\nuse Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\TypeInfo\\Type as TypeInfoType;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\CompositeTypeInterface;\nuse Sy", "suffix": "\\Constraints\\All;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\Type;\nuse Symfony\\Component\\Validator\\Mapping\\AutoMappingStrategy;\nuse Symfony\\Componen", "middle": "mfony\\Component\\TypeInfo\\Type\\NullableType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\Type\\WrappingTypeInterface;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\nuse Symfony\\Component\\Validator", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Loader/PropertyInfoLoader.php", "language": "php", "file_size": 6979, "cut_index": 716, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\FilesLoader as BaseFilesLoader;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderInterface;\n\nabstract class FilesLoader extends BaseFilesLoader\n{\n protected $timesCalled = 0;\n protected $loader;\n\n public function __construct(array $paths, LoaderInterfac", "suffix": " parent::__construct($paths);\n }\n\n protected function getFileLoaderInstance(string $file): LoaderInterface\n {\n ++$this->timesCalled;\n\n return $this->loader;\n }\n\n public function getTimesCalled()\n {\n return $this-", "middle": "e $loader)\n {\n $this->loader = $loader;\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Fixtures/FilesLoader.php", "language": "php", "file_size": 936, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute;\n\nuse Symfony\\Component\\Validator\\Constraints as Assert;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\EntityInterfaceB;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\CallbackClass;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\Constrain", "suffix": " Entity extends EntityParent implements EntityInterfaceB\n{\n #[\n Assert\\NotNull,\n Assert\\Range(min: 3),\n Assert\\All([\n new Assert\\NotNull(),\n new Assert\\Range(min: 3),\n ]),\n Assert\\All(\n ", "middle": "tA;\n\n#[\n ConstraintA,\n Assert\\GroupSequence(['Foo', 'Entity']),\n Assert\\Callback([CallbackClass::class, 'callback']),\n Assert\\Sequentially([\n new Assert\\Expression('this.getFirstName() != null'),\n ])\n]\nclass", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Fixtures/NestedAttribute/Entity.php", "language": "php", "file_size": 4005, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass ComparisonTest_Class\n{\n protected $value;\n\n public function __construct($va", "suffix": "r Daniel Holmes \n */\nabstract class AbstractComparisonValidatorTestCase extends ConstraintValidatorTestCase\n{\n protected static function addPhp5Dot5Comparisons(array $comparisons)\n {\n $result = $comparisons;\n\n /", "middle": "lue)\n {\n $this->value = $value;\n }\n\n public function __toString(): string\n {\n return (string) $this->value;\n }\n\n public function getValue()\n {\n return $this->value;\n }\n}\n\n/**\n * @autho", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php", "language": "php", "file_size": 4273, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\nuse Symfony\\Component\\Config\\Util\\XmlUtils;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exception\\MappingException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\n\n/**\n * Loads validation metadata from an XML file.\n *\n * @author Bernhard Schussek \n */\nclass XmlFileLoader extends FileLoader\n{\n /**\n * The XML nodes of the mapping file.\n *\n * @var ", "suffix": " bool\n {\n if (!isset($this->classes)) {\n $this->loadClassesFromXml();\n }\n\n if (isset($this->classes[$metadata->getClassName()])) {\n $classDescription = $this->classes[$metadata->getClassName()];\n\n $t", "middle": "array\n */\n protected array $classes;\n\n public function __construct(string $file)\n {\n $this->file = $file;\n }\n\n public function loadClassMetadata(ClassMetadata $metadata):", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php", "language": "php", "file_size": 6945, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Component\\Yaml\\Parser as YamlParser;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * Loads validation metadata from a YAML file.\n *\n * @author Bernhard Schussek \n */\nclass YamlFileLoader extends FileLoader\n{\n protected array $classes;\n\n pu", "suffix": "ata): bool\n {\n if (!isset($this->classes)) {\n $this->loadClassesFromYaml();\n }\n\n if (isset($this->classes[$metadata->getClassName()])) {\n $classDescription = $this->classes[$metadata->getClassName()];\n\n ", "middle": "blic function __construct(string $file)\n {\n $this->file = $file;\n }\n\n /**\n * Caches the used YAML parser.\n */\n private YamlParser $yamlParser;\n\n public function loadClassMetadata(ClassMetadata $metad", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Loader/YamlFileLoader.php", "language": "php", "file_size": 5709, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Factory;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Validator\\Exception\\NoSuchMetadataException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;\n\n/**\n * Creates new {@link ClassMetadataInterface} instances.\n *\n * Whenever {@link getMetadataFor()} is called for the first time with a g", "suffix": "derInterface} instance to the constructor.\n * Whenever a new metadata instance is created, it is passed to the loader,\n * which can configure the metadata based on configuration loaded from the\n * filesystem or a database. If you want to use multiple loade", "middle": "iven\n * class name or object of that class, a new metadata instance is created and\n * returned. On subsequent requests for the same class, the same metadata\n * instance will be returned.\n *\n * You can optionally pass a {@link Loa", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Factory/LazyLoadingMetadataFactory.php", "language": "php", "file_size": 5519, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Violation;\n\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * Builds {@link \\Symfony\\Component\\Validator\\ConstraintViolationInterface}\n * objects.\n *\n * Use the various methods on this interface to configure the built violation.\n * Finally, call {@link addViolation()} to add the violation to the current\n * execution context", "suffix": " appended to the current property path of the\n * execution context.\n *\n * @param string $path The property path\n *\n * @return $this\n */\n public function atPath(string $path): static;\n\n /**\n * Sets a parameter to be inserte", "middle": ".\n *\n * @author Bernhard Schussek \n */\ninterface ConstraintViolationBuilderInterface\n{\n /**\n * Stores the property path at which the violation should be generated.\n *\n * The passed path will be", "meta": {"filepath": "src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php", "language": "php", "file_size": 3193, "cut_index": 614, "middle_length": 229}} {"prefix": "xecutionContext;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\NoSuchMetadataException;\nuse Symfony\\Component\\Validator\\Exception\\RuntimeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Exception\\UnsupportedMetadataException;\nuse Symfony\\Component\\Validator\\Exception\\ValidatorException;\nuse Symfony\\Component\\Vali", "suffix": "face;\nuse Symfony\\Component\\Validator\\Mapping\\GenericMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\GetterMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;\nuse Symfony\\Component\\Validator\\Mapping\\PropertyMetadataInterface;\nuse Symfony", "middle": "dator\\GroupSequenceProviderInterface;\nuse Symfony\\Component\\Validator\\Mapping\\CascadingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadataInterface;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\MetadataFactoryInter", "meta": {"filepath": "src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php", "language": "php", "file_size": 31732, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * A container for validation metadata.\n *\n * Most importantly, the metadata stores the constraints against which an object\n * and its properties should be validated.\n *\n * Additionally, the metadata st", "suffix": "raversalStrategy\n */\ninterface MetadataInterface\n{\n /**\n * Returns the strategy for cascading objects.\n *\n * @see CascadingStrategy\n */\n public function getCascadingStrategy(): int;\n\n /**\n * Returns the strategy for traversing ", "middle": "ores whether objects should be validated\n * against their class' metadata and whether traversable objects should be\n * traversed or not.\n *\n * @author Bernhard Schussek \n *\n * @see CascadingStrategy\n * @see T", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/MetadataInterface.php", "language": "php", "file_size": 1512, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\nuse Symfony\\Component\\Validator\\Exception\\MappingException;\n\n/**\n * Base loader for loading validation metadata from a file.\n *\n * @author Bernhard Schussek \n *\n * @see YamlFileLoader\n * @see XmlFileLoader\n */\n", "suffix": "le\n */\n public function __construct(\n protected string $file,\n ) {\n if (!is_file($file)) {\n throw new MappingException(\\sprintf('The mapping file \"%s\" does not exist.', $file));\n }\n\n if (!is_readable($file))", "middle": "abstract class FileLoader extends AbstractLoader\n{\n /**\n * Creates a new loader.\n *\n * @param string $file The mapping file to load\n *\n * @throws MappingException If the file does not exist or is not readab", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Loader/FileLoader.php", "language": "php", "file_size": 1288, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Validator\\Exception\\NoSuchMetadataException;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\MetadataFactoryInterface;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;\n\nclass FakeMetadataFactory implements Metada", "suffix": " $class = $class::class;\n }\n\n if (!\\is_string($class)) {\n throw new NoSuchMetadataException(sprintf('No metadata for type \"%s\".', get_debug_type($class)));\n }\n\n if (!isset($this->metadatas[$class])) {\n ", "middle": "taFactoryInterface\n{\n protected $metadatas = [];\n\n public function getMetadataFor($class): MetadataInterface\n {\n $objectId = null;\n\n if (\\is_object($class)) {\n $objectId = spl_object_id($class);\n", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Fixtures/FakeMetadataFactory.php", "language": "php", "file_size": 1984, "cut_index": 537, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute;\n\nuse Symfony\\Component\\Validator\\Constraints as Assert;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\GroupSequenceProviderInterface;\n\n#[Assert\\GroupSequenceProvider]\nclass GroupSequenceProviderEntity imple", "suffix": "irstName;\n public $lastName;\n\n protected $sequence = [];\n\n public function __construct($sequence)\n {\n $this->sequence = $sequence;\n }\n\n public function getGroupSequence(): array|GroupSequence\n {\n return $this->sequence;\n ", "middle": "ments GroupSequenceProviderInterface\n{\n public $f", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Fixtures/NestedAttribute/GroupSequenceProviderEntity.php", "language": "php", "file_size": 874, "cut_index": 559, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\All;\nuse Symfony\\Component\\Validator\\Constraints\\AllValidator;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\Range;\nuse Symfo", "suffix": "AllValidator\n {\n return new AllValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new All(new Range(min: 4)));\n\n $this->assertNoViolation();\n }\n\n public function testThrowsExceptionIfNotTrav", "middle": "ny\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass AllValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/AllValidatorTest.php", "language": "php", "file_size": 2270, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Factory;\n\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;\n\n/**\n * Metadata factory that does not store metadata.\n *\n * This implementation is useful if you wan", "suffix": "yInterface\n{\n public function getMetadataFor(mixed $value): MetadataInterface\n {\n throw new LogicException('This class does not support metadata.');\n }\n\n public function hasMetadataFor(mixed $value): bool\n {\n return false;\n ", "middle": "t to validate values against\n * constraints only and you don't need to add constraints to classes and\n * properties.\n *\n * @author Fabien Potencier \n */\nclass BlackHoleMetadataFactory implements MetadataFactor", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Factory/BlackHoleMetadataFactory.php", "language": "php", "file_size": 1001, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Violation;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\Util\\PropertyPath;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * Default implementation of {@link ConstraintViolationBuilde", "suffix": " null;\n private ?string $code = null;\n private mixed $cause = null;\n\n public function __construct(\n private ConstraintViolationList $violations,\n private ?Constraint $constraint,\n private string|\\Stringable $message,\n p", "middle": "rInterface}.\n *\n * @author Bernhard Schussek \n *\n * @internal\n */\nclass ConstraintViolationBuilder implements ConstraintViolationBuilderInterface\n{\n private string $propertyPath;\n private ?int $plural =", "meta": {"filepath": "src/Symfony/Component/Validator/Violation/ConstraintViolationBuilder.php", "language": "php", "file_size": 3534, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\n/**\n * @author Bernhard Schussek \n * @author Kév", "suffix": "hrow new UnexpectedTypeException($constraint, NotBlank::class);\n }\n\n if ($constraint->allowNull && null === $value) {\n return;\n }\n\n if (\\is_string($value) && null !== $constraint->normalizer) {\n $value = ($", "middle": "in Dunglas \n */\nclass NotBlankValidator extends ConstraintValidator\n{\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof NotBlank) {\n t", "meta": {"filepath": "src/Symfony/Component/Validator/Constraints/NotBlankValidator.php", "language": "php", "file_size": 1359, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Loader;\n\n/**\n * Base loader for loading validation metadata from a list of files.\n *\n * @author Bulat Shakirzyanov \n * @author Bernhard Schussek \n *\n * @see YamlFilesLoader\n * @see XmlFilesLoader\n ", "suffix": "ruct($this->getFileLoaders($paths));\n }\n\n /**\n * Returns an array of file loaders for the given file paths.\n *\n * @return LoaderInterface[]\n */\n protected function getFileLoaders(array $paths): array\n {\n $loaders = [];\n\n ", "middle": "*/\nabstract class FilesLoader extends LoaderChain\n{\n /**\n * Creates a new loader.\n *\n * @param array $paths An array of file paths\n */\n public function __construct(array $paths)\n {\n parent::__const", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Loader/FilesLoader.php", "language": "php", "file_size": 1302, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\All;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exce", "suffix": "xception::class);\n new All([\n 'foo',\n ]);\n }\n\n public function testRejectValidConstraint()\n {\n $this->expectException(ConstraintDefinitionException::class);\n new All([\n new Valid(),\n ]);\n ", "middle": "ption\\MissingOptionsException;\n\n/**\n * @author Bernhard Schussek \n */\nclass AllTest extends TestCase\n{\n public function testRejectNonConstraints()\n {\n $this->expectException(ConstraintDefinitionE", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/AllTest.php", "language": "php", "file_size": 1576, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Factory;\n\nuse Symfony\\Component\\Validator\\Exception\\NoSuchMetadataException;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;\n\n/**\n * Returns {@link MetadataInterface} instances for values.\n *\n * @author Bernhard Schussek \n */\ninterface MetadataFactoryInterface\n{\n ", "suffix": ".\n *\n * @throws NoSuchMetadataException If no metadata exists for the given value\n */\n public function getMetadataFor(mixed $value): MetadataInterface;\n\n /**\n * Returns whether the class is able to return metadata for the given value.", "middle": " /**\n * Returns the metadata for the given value", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/Factory/MetadataFactoryInterface.php", "language": "php", "file_size": 957, "cut_index": 582, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Mapping;\n\n/**\n * Stores all metadata needed for validating the value of a class property.\n *\n * Most importantly, the metadata stores the constraints against which the\n * property's value should be validated.\n *\n * Additionally, the metadata ", "suffix": "tadataInterface\n * @see CascadingStrategy\n * @see TraversalStrategy\n */\ninterface PropertyMetadataInterface extends MetadataInterface\n{\n /**\n * Returns the name of the property.\n */\n public function getPropertyName(): string;\n\n /**\n * ", "middle": "stores whether objects stored in the property\n * should be validated against their class' metadata and whether traversable\n * objects should be traversed or not.\n *\n * @author Bernhard Schussek \n *\n * @see Me", "meta": {"filepath": "src/Symfony/Component/Validator/Mapping/PropertyMetadataInterface.php", "language": "php", "file_size": 1143, "cut_index": 518, "middle_length": 229}} {"prefix": "ile that was distributed with this source code.\n */\n\nif ('cli' !== \\PHP_SAPI) {\n throw new Exception('This script must be run from the command line.');\n}\n\n/*\n * This script syncs IBAN formats from the upstream and updates them into IbanValidator.\n *\n * Usage:\n * php Resources/bin/sync-iban-formats.php\n */\n\nerror_reporting(\\E_ALL);\n\nset_error_handler(static function (int $type, string $msg, string $file, int $line): void {\n throw new ErrorException($msg, 0, $type, $file, $line);\n});\n\necho \"Collecting", "suffix": "g validator...\\n\";\n\nupdateValidatorFormats(__DIR__.'/../../Constraints/IbanValidator.php', $formats);\n\necho \"Done.\\n\";\n\nexit(0);\n\nfunction updateValidatorFormats(string $validatorPath, array $formats): void\n{\n ksort($formats);\n\n $formatsContent = \"[\\", "middle": " IBAN formats...\\n\";\n\n$formats = array_merge(\n (new WikipediaIbanProvider())->getIbanFormats(),\n (new SwiftRegistryIbanProvider())->getIbanFormats()\n);\n\nprintf(\"Collected %d IBAN formats\\n\", count($formats));\n\necho \"Updatin", "meta": {"filepath": "src/Symfony/Component/Validator/Resources/bin/sync-iban-formats.php", "language": "php", "file_size": 5695, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraints\\CompoundValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\DummyCompoundConstraint;\n\nclass CompoundValida", "suffix": "o', new DummyCompoundConstraint());\n\n $this->assertNoViolation();\n }\n\n public function testValidateWithConstraints()\n {\n $value = 'foo';\n $constraint = new DummyCompoundConstraint();\n\n $this->expectValidateValue(0, $val", "middle": "torTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): CompoundValidator\n {\n return new CompoundValidator();\n }\n\n public function testValidValue()\n {\n $this->validate('fo", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CompoundValidatorTest.php", "language": "php", "file_size": 1126, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Count;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass CountTest extends TestCase\n{\n public function testAttri", "suffix": "adata('a')[0]->getConstraints();\n self::assertSame(42, $aConstraint->min);\n self::assertSame(42, $aConstraint->max);\n self::assertNull($aConstraint->divisibleBy);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getCon", "middle": "butes()\n {\n $metadata = new ClassMetadata(CountDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aConstraint] = $metadata->getPropertyMet", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CountTest.php", "language": "php", "file_size": 2064, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\EqualTo;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass EqualToTest extends TestCase\n{", "suffix": "int] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(2, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n ", "middle": "\n public function testAttributes()\n {\n $metadata = new ClassMetadata(EqualToDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aConstra", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/EqualToTest.php", "language": "php", "file_size": 1743, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\EqualTo;\nuse Symfony\\Component\\Validator\\Constraints\\EqualToValidator;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\TypedDummy;\nuse Symfony\\Component\\Validator\\Tests\\IcuCompatibilityTrait;\n\n/**\n * @author Daniel Holm", "suffix": "use ValidComparisonToValueTrait;\n\n protected function createValidator(): EqualToValidator\n {\n return new EqualToValidator();\n }\n\n protected static function createConstraint(?array $options = null): Constraint\n {\n if (null !== $", "middle": "es \n */\nclass EqualToValidatorTest extends AbstractComparisonValidatorTestCase\n{\n use IcuCompatibilityTrait;\n use InvalidComparisonToValueTestTrait;\n use ThrowsOnInvalidStringDatesTestTrait;\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/EqualToValidatorTest.php", "language": "php", "file_size": 4124, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\ExpressionSyntax;\nuse Symfony\\Component\\Validator\\Constraints\\ExpressionSyntaxValidator;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\n", "suffix": "lf::assertSame(ExpressionSyntaxValidator::class, $constraint->validatedBy());\n }\n\n #[DataProvider('provideServiceValidatedConstraints')]\n public function testValidatedByService(ExpressionSyntax $constraint)\n {\n self::assertSame('my_servi", "middle": "use Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass ExpressionSyntaxTest extends TestCase\n{\n public function testValidatedByStandardValidator()\n {\n $constraint = new ExpressionSyntax();\n\n se", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ExpressionSyntaxTest.php", "language": "php", "file_size": 2665, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\Validator\\Constraints\\ExpressionSyntax;\nuse Symfony\\Component\\Validator\\Constraints\\ExpressionSyntaxValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures", "suffix": "guage());\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new ExpressionSyntax());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new ExpressionSyn", "middle": "\\StringableValue;\n\nclass ExpressionSyntaxValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): ExpressionSyntaxValidator\n {\n return new ExpressionSyntaxValidator(new ExpressionLan", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ExpressionSyntaxValidatorTest.php", "language": "php", "file_size": 3259, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Expression;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeL", "suffix": "ta));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame('value == \"1\"', $aConstraint->expression);\n self::assertSame([], $aConstraint->values);\n self::assertTrue($aConstraint->negate)", "middle": "oader;\n\nclass ExpressionTest extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(ExpressionDummy::class);\n self::assertTrue((new AttributeLoader())->loadClassMetadata($metada", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ExpressionTest.php", "language": "php", "file_size": 2431, "cut_index": 563, "middle_length": 229}} {"prefix": "ymfony\\Component\\Validator\\Constraints\\Expression;\nuse Symfony\\Component\\Validator\\Constraints\\ExpressionLanguageProvider;\nuse Symfony\\Component\\Validator\\Constraints\\ExpressionValidator;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\Range;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute\\Entity;\nuse Symfony\\Component\\Validato", "suffix": "ion testExpressionIsEvaluatedWithNullValue()\n {\n $constraint = new Expression(\n expression: 'false',\n message: 'myMessage',\n );\n\n $this->validate(null, $constraint);\n\n $this->buildViolation('myMessage')\n", "middle": "r\\Tests\\Fixtures\\ToString;\n\nclass ExpressionValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): ExpressionValidator\n {\n return new ExpressionValidator();\n }\n\n public funct", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ExpressionValidatorTest.php", "language": "php", "file_size": 10766, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\File;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass FileTest extends TestCas", "suffix": "ssertSame($binaryFormat, $file->binaryFormat);\n $this->assertTrue($file->__isset('maxSize'));\n }\n\n public function testMagicIsset()\n {\n $file = new File(maxSize: 1);\n\n $this->assertTrue($file->__isset('maxSize'));\n $thi", "middle": "e\n{\n #[DataProvider('provideValidSizes')]\n public function testMaxSize($maxSize, $bytes, $binaryFormat)\n {\n $file = new File(maxSize: $maxSize);\n\n $this->assertSame($bytes, $file->maxSize);\n $this->a", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/FileTest.php", "language": "php", "file_size": 6377, "cut_index": 716, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraints\\File;\n\nclass FileValidatorPathTest extends FileValidatorTestCase\n{\n protected function getFile($filename)\n {\n return $filename;\n }\n\n public function testFileNotFound()\n {\n ", "suffix": "ssage: 'myMessage',\n );\n\n $this->validate('foobar', $constraint);\n\n $this->buildViolation('myMessage')\n ->setParameter('{{ file }}', '\"foobar\"')\n ->setCode(File::NOT_FOUND_ERROR)\n ->assertRaised();\n ", "middle": " $constraint = new File(\n notFoundMe", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/FileValidatorPathTest.php", "language": "php", "file_size": 847, "cut_index": 535, "middle_length": 52}} {"prefix": " protected $file;\n\n protected function createValidator(): FileValidator\n {\n return new FileValidator();\n }\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->path = sys_get_temp_dir().\\DIRECTORY_SEPARATOR.'FileValidatorTest';\n $this->file = fopen($this->path, 'w');\n fwrite($this->file, ' ', 1);\n }\n\n protected function tearDown(): void\n {\n parent::tearDown();\n\n if (\\is_resource($this->file)) {\n fclose($this->", "suffix": " $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new File());\n\n $this->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleTypeOrFile()\n {\n $this-", "middle": "file);\n }\n\n if (file_exists($this->path)) {\n @unlink($this->path);\n }\n\n $this->file = null;\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new File());\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTestCase.php", "language": "php", "file_size": 24101, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqual;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass GreaterThanOrEqualT", "suffix": "($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(2, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n\n [$bConstraint] = $metadata->getPropertyMetada", "middle": "est extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(GreaterThanOrEqualDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualTest.php", "language": "php", "file_size": 1831, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqual;\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqualValidator;\nuse Symfony\\Component\\Validator\\Tests\\IcuCompatibilityTrait;\n\n/**\n * @author Daniel Ho", "suffix": "alueTestTrait;\n use ThrowsOnInvalidStringDatesTestTrait;\n use ValidComparisonToValueTrait;\n\n protected function createValidator(): GreaterThanOrEqualValidator\n {\n return new GreaterThanOrEqualValidator();\n }\n\n protected static func", "middle": "lmes \n */\nclass GreaterThanOrEqualValidatorTest extends AbstractComparisonValidatorTestCase\n{\n use CompareWithNullValueAtPropertyAtTestTrait;\n use IcuCompatibilityTrait;\n use InvalidComparisonToV", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorTest.php", "language": "php", "file_size": 2886, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqualValidator;\nuse Symfony\\Component\\Validator\\Constraints\\PositiveOrZero;\n\n/**\n * @author Jan Schädlich \n */\nclass GreaterThanOrEqualValidatorWithPositiveOrZeroConstraintTest extends AbstractComparisonValidatorTestCase\n{\n protected function createValidator(): GreaterThanOrEqualValidator\n {\n return new ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorWithPositiveOrZeroConstraintTest.php", "language": "php", "file_size": 2785, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThan;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass GreaterThanTest extends Te", "suffix": " [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(2, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstr", "middle": "stCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(GreaterThanDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/GreaterThanTest.php", "language": "php", "file_size": 1775, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Clock\\MockClock;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThan;\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThanValidator;\nuse Symfony\\Component\\Validator\\Tests\\IcuCompatibilityTrait;\n\n/**\n * @author Daniel Holmes \n */\nclass GreaterThanValidatorTest extends AbstractComparisonValidatorTestCase\n{\n use CompareW", "suffix": "r(): GreaterThanValidator\n {\n return new GreaterThanValidator();\n }\n\n protected static function createConstraint(?array $options = null): Constraint\n {\n if (null !== $options) {\n return new GreaterThan(...$options);\n ", "middle": "ithNullValueAtPropertyAtTestTrait;\n use IcuCompatibilityTrait;\n use InvalidComparisonToValueTestTrait;\n use ThrowsOnInvalidStringDatesTestTrait;\n use ValidComparisonToValueTrait;\n\n protected function createValidato", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/GreaterThanValidatorTest.php", "language": "php", "file_size": 6312, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThanValidator;\nuse Symfony\\Component\\Validator\\Constraints\\Positive;\n\n/**\n * @author Jan Schädlich \n */\nclass GreaterThanValidatorWithPositiveConstraintTest extends AbstractComparisonValidatorTestCase\n{\n protected function createValidator(): GreaterThanValidator\n {\n return new GreaterThanValidator();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/GreaterThanValidatorWithPositiveConstraintTest.php", "language": "php", "file_size": 2660, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Hostname;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass HostnameTest extends TestCase", "suffix": "traint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertTrue($aConstraint->requireTld);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertFalse($bConstraint->requireTld);", "middle": "\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(HostnameDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aCons", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/HostnameTest.php", "language": "php", "file_size": 1605, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Hostname;\nuse Symfony\\Component\\Validator\\Constraints\\HostnameValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @author Dmitrii Poddubnyi \n */\nclass HostnameValidatorTest extends ConstraintValidatorTestCas", "suffix": "e());\n\n $this->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleType()\n {\n $this->expectException(UnexpectedValueException::class);\n\n $this->validate(new \\stdClass(), new Hostname());\n }\n\n #[DataProvi", "middle": "e\n{\n public function testNullIsValid()\n {\n $this->validate(null, new Hostname());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Hostnam", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/HostnameValidatorTest.php", "language": "php", "file_size": 5494, "cut_index": 716, "middle_length": 229}} {"prefix": "ction testNullIsValid()\n {\n $this->validate(null, new Iban());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Iban());\n\n $this->assertNoViolation();\n }\n\n #[DataProvider('getValidIbans')]\n public function testValidIbans($iban)\n {\n $this->validate($iban, new Iban());\n\n $this->assertNoViolation();\n }\n\n #[DataProvider('getValidIbans')]\n public function testValidIbansWithNewLine(str", "suffix": " ->setCode(Iban::INVALID_CHARACTERS_ERROR)\n ->assertRaised();\n }\n\n public static function getValidIbans()\n {\n return [\n ['CH9300762011623852957'], // Switzerland without spaces\n ['CH93 0076 2011 6238 52", "middle": "ing $iban)\n {\n $this->validate($iban.\"\\n\", new Iban());\n\n $this->buildViolation('This is not a valid International Bank Account Number (IBAN).')\n ->setParameter('{{ value }}', '\"'.$iban.\"\\n\\\"\")\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IbanValidatorTest.php", "language": "php", "file_size": 23908, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\IdenticalTo;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass IdenticalToTest extends Te", "suffix": " [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(2, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstr", "middle": "stCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(IdenticalToDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IdenticalToTest.php", "language": "php", "file_size": 1775, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\IdenticalTo;\nuse Symfony\\Component\\Validator\\Constraints\\IdenticalToValidator;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\TypedDummy;\nuse Symfony\\Component\\Validator\\Tests\\IcuCompatibilityTrait;\n\n/**\n * @author Dan", "suffix": "tTrait;\n use ValidComparisonToValueTrait;\n\n protected function createValidator(): IdenticalToValidator\n {\n return new IdenticalToValidator();\n }\n\n protected static function createConstraint(?array $options = null): Constraint\n {\n ", "middle": "iel Holmes \n */\nclass IdenticalToValidatorTest extends AbstractComparisonValidatorTestCase\n{\n use IcuCompatibilityTrait;\n use InvalidComparisonToValueTestTrait;\n use ThrowsOnInvalidStringDatesTes", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IdenticalToValidatorTest.php", "language": "php", "file_size": 4472, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Image;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass ImageTest extends TestCase\n{\n ", "suffix": " $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertNull($aConstraint->minWidth);\n self::assertNull($aConstraint->maxWidth);\n self::assertNull($aConstraint->minHeight);\n self::assertNull($aConstraint->maxHeig", "middle": " public function testAttributes()\n {\n $metadata = new ClassMetadata(ImageDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aConstraint] =", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ImageTest.php", "language": "php", "file_size": 1929, "cut_index": 537, "middle_length": 229}} {"prefix": "\\Component\\HttpFoundation\\File\\File;\nuse Symfony\\Component\\Validator\\Constraints\\Image;\nuse Symfony\\Component\\Validator\\Constraints\\ImageValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @extends ConstraintValidatorTestCase\n */\n#[RequiresPhpExtension('fileinfo')]\nclass ImageValidatorTest extends ConstraintValidatorTestCase\n{\n protected string $path;\n protected string $image;\n protected string $imageLandscape;\n protected string $imagePortrait;\n ", "suffix": "dator();\n }\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->image = __DIR__.'/Fixtures/test.gif';\n $this->imageLandscape = __DIR__.'/Fixtures/test_landscape.gif';\n $this->imagePortrait = __DIR__.'/Fixtu", "middle": " protected string $image4By3;\n protected string $image16By9;\n protected string $imageCorrupted;\n protected string $notAnImage;\n\n protected function createValidator(): ImageValidator\n {\n return new ImageVali", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php", "language": "php", "file_size": 16096, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\ntrait InvalidComparisonToValueTestTrait\n{\n #[DataProvider('provideAllInvalidComparisons')]\n public function testInvalidComparisonToValue($dirtyValue, $dirtyValueAsSt", "suffix": "f \\DateTimeInterface) {\n IntlTestHelper::requireIntl($this, '57.1');\n }\n\n $constraint = $this->createConstraint(['value' => $comparedValue]);\n $constraint->message = 'Constraint Message';\n\n $this->validate($dirtyValue", "middle": "ring, $comparedValue, $comparedValueString, $comparedValueType)\n {\n // Conversion of dates to string differs between ICU versions\n // Make sure we have the correct version loaded\n if ($dirtyValue instanceo", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/InvalidComparisonToValueTestTrait.php", "language": "php", "file_size": 2778, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Ip;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Renan Taranto loadClassMetadata($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstrai", "middle": "o@gmail.com>\n */\nclass IpTest extends TestCase\n{\n public function testNormalizerCanBeSet()\n {\n $ip = new Ip(normalizer: 'trim');\n\n $this->assertEquals('trim', $ip->normalizer);\n }\n\n public function testA", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IpTest.php", "language": "php", "file_size": 1857, "cut_index": 537, "middle_length": 229}} {"prefix": "ent\\Validator\\Constraints\\IpValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass IpValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): IpValidator\n {\n return new IpValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Ip());\n\n $this->ass", "suffix": "his->expectException(UnexpectedValueException::class);\n $this->validate(new \\stdClass(), new Ip());\n }\n\n public function testInvalidValidatorVersion()\n {\n $this->expectException(ConstraintDefinitionException::class);\n new Ip(v", "middle": "ertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Ip());\n\n $this->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleType()\n {\n $t", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IpValidatorTest.php", "language": "php", "file_size": 14269, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraints\\IsFalse;\nuse Symfony\\Component\\Validator\\Constraints\\IsFalseValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass IsFalseValidatorTest extends Const", "suffix": " $this->assertNoViolation();\n }\n\n public function testFalseIsValid()\n {\n $this->validate(false, new IsFalse());\n\n $this->assertNoViolation();\n }\n\n public function testTrueIsInvalid()\n {\n $this->validate(true, new", "middle": "raintValidatorTestCase\n{\n protected function createValidator(): IsFalseValidator\n {\n return new IsFalseValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new IsFalse());\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IsFalseValidatorTest.php", "language": "php", "file_size": 1216, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\IsNull;\nuse Symfony\\Component\\Validator\\Constraints\\IsNullValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass IsNullVa", "suffix": "ll, new IsNull());\n\n $this->assertNoViolation();\n }\n\n #[DataProvider('getInvalidValues')]\n public function testInvalidValues($value, $valueAsString)\n {\n $constraint = new IsNull(message: 'myMessage');\n\n $this->validate($val", "middle": "lidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): IsNullValidator\n {\n return new IsNullValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(nu", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IsNullValidatorTest.php", "language": "php", "file_size": 1974, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraints\\IsTrue;\nuse Symfony\\Component\\Validator\\Constraints\\IsTrueValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass IsTrueValidatorTest extends Constrai", "suffix": "$this->assertNoViolation();\n }\n\n public function testTrueIsValid()\n {\n $this->validate(true, new IsTrue());\n\n $this->assertNoViolation();\n }\n\n public function testFalseIsInvalid()\n {\n $this->validate(false, new IsTrue", "middle": "ntValidatorTestCase\n{\n protected function createValidator(): IsTrueValidator\n {\n return new IsTrueValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new IsTrue());\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IsTrueValidatorTest.php", "language": "php", "file_size": 1207, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Isbn;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass IsbnTest extends TestCase\n{\n p", "suffix": "etadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertNull($aConstraint->type);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame(Isbn::ISBN_13, $bConstraint->type);\n s", "middle": "ublic function testAttributes()\n {\n $metadata = new ClassMetadata(IsbnDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aConstraint] = $m", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IsbnTest.php", "language": "php", "file_size": 1577, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Isbn;\nuse Symfony\\Component\\Validator\\Constraints\\IsbnValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @see https://en.wikipedia.org/wiki/Isbn\n */\nclass IsbnValidatorTest extends ConstraintValidatorTestCase\n{\n protected fu", "suffix": "3455041'],\n ['2070546810'],\n ['2711858839'],\n ['2756406767'],\n ['2870971648'],\n ['226623854X'],\n ['2851806424'],\n ['0321812700'],\n ['0-45122-5244'],\n ['0-471", "middle": "nction createValidator(): IsbnValidator\n {\n return new IsbnValidator();\n }\n\n public static function getValidIsbn10()\n {\n return [\n ['2723442284'],\n ['2723442276'],\n ['272", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IsbnValidatorTest.php", "language": "php", "file_size": 6982, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Isin;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass IsinTest extends Tes", "suffix": "straint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default', 'IsinDummy'], $bConstraint->groups);\n\n [$cConstraint] = $metadata->getPropertyMet", "middle": "tCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(IsinDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$bCon", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IsinTest.php", "language": "php", "file_size": 1365, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Isin;\nuse Symfony\\Component\\Validator\\Constraints\\IsinValidator;\nuse Symfony\\Component\\Validator\\Constraints\\Luhn;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass IsinValidatorTest extends ConstraintVal", "suffix": "rtNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Isin());\n\n $this->assertNoViolation();\n }\n\n #[DataProvider('getValidIsin')]\n public function testValidIsin($isin)\n {\n $this", "middle": "idatorTestCase\n{\n protected function createValidator(): IsinValidator\n {\n return new IsinValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Isin());\n\n $this->asse", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IsinValidatorTest.php", "language": "php", "file_size": 3808, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Country;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass CountryTest extends TestCase\n{", "suffix": "int] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertFalse($aConstraint->alpha3);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->messag", "middle": "\n public function testAttributes()\n {\n $metadata = new ClassMetadata(CountryDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aConstra", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CountryTest.php", "language": "php", "file_size": 1584, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\CssColor;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Mathieu Santostefano loadClassMetadata($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame([CssColor::HEX_LONG, CssColor::HEX_SHORT], $aConstraint->formats);\n\n [$bConstraint] = $metadata->getPrope", "middle": ".com>\n */\nfinal class CssColorTest extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(CssColorDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($load", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CssColorTest.php", "language": "php", "file_size": 2485, "cut_index": 563, "middle_length": 229}} {"prefix": "turn new CssColorValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new CssColor(CssColor::HEX_LONG));\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new CssColor(CssColor::HEX_LONG));\n\n $this->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleType()\n {\n $this->expectException(UnexpectedValueException::class);\n $this->validate(new \\stdClass()", "suffix": " }\n\n #[DataProvider('getValidAnyColor')]\n public function testValidAnyColorWithNewLine($cssColor)\n {\n $this->validate($cssColor.\"\\n\", new CssColor([], 'myMessage'));\n\n $this->buildViolation('myMessage')\n ->setParameter('{", "middle": ", new CssColor(CssColor::HEX_LONG));\n }\n\n #[DataProvider('getValidAnyColor')]\n public function testValidAnyColor($cssColor)\n {\n $this->validate($cssColor, new CssColor());\n $this->assertNoViolation();\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CssColorValidatorTest.php", "language": "php", "file_size": 19556, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Date;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass DateTest extends Tes", "suffix": "straint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default', 'DateDummy'], $bConstraint->groups);\n\n [$cConstraint] = $metadata->getPropertyMet", "middle": "tCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(DateDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$bCon", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/DateTest.php", "language": "php", "file_size": 1365, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\DateTime;\nuse Symfony\\Component\\Validator\\Constraints\\DateTimeValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass DateTimeValid", "suffix": "ull, new DateTime());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new DateTime());\n\n $this->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleTyp", "middle": "atorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): DateTimeValidator\n {\n return new DateTimeValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(n", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/DateTimeValidatorTest.php", "language": "php", "file_size": 4310, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Date;\nuse Symfony\\Component\\Validator\\Constraints\\DateValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\Constr", "suffix": " {\n $this->validate(null, new Date());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Date());\n\n $this->assertNoViolation();\n }\n\n public function testExp", "middle": "aintValidatorTestCase;\n\nclass DateValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): DateValidator\n {\n return new DateValidator();\n }\n\n public function testNullIsValid()\n", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/DateValidatorTest.php", "language": "php", "file_size": 3038, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Cascade;\nuse Symfony\\Component\\Validator\\Mapping\\CascadingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\V", "suffix": " self::assertSame(CascadingStrategy::NONE, $metadata->getCascadingStrategy());\n self::assertTrue($loader->loadClassMetadata($metadata));\n self::assertSame(CascadingStrategy::CASCADE, $metadata->getCascadingStrategy());\n }\n\n publi", "middle": "alidator\\Mapping\\Loader\\AttributeLoader;\n\nclass CascadeTest extends TestCase\n{\n public function testCascadeAttribute()\n {\n $metadata = new ClassMetadata(CascadeDummy::class);\n $loader = new AttributeLoader();\n", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CascadeTest.php", "language": "php", "file_size": 1213, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Choice;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass ChoiceTest extends TestCase\n{\n public function testAtt", "suffix": " [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame([1, 2], $aConstraint->choices);\n self::assertSame(['Default', 'ChoiceDummy'], $aConstraint->groups);\n\n /** @var Choice $bConstraint */\n ", "middle": "ributes()\n {\n $metadata = new ClassMetadata(ChoiceDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n /** @var Choice $aConstraint */\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ChoiceTest.php", "language": "php", "file_size": 2224, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Cidr;\nuse Symfony\\Component\\Validator\\Constraints\\Ip;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass CidrTest extends TestCase\n{\n public funct", "suffix": "int->netmaskMax);\n }\n\n public function testForV4()\n {\n $cidrConstraint = new Cidr(version: Ip::V4);\n\n self::assertEquals(Ip::V4, $cidrConstraint->version);\n self::assertEquals(0, $cidrConstraint->netmaskMin);\n self::ass", "middle": "ion testForAll()\n {\n $cidrConstraint = new Cidr();\n\n self::assertEquals(Ip::ALL, $cidrConstraint->version);\n self::assertEquals(0, $cidrConstraint->netmaskMin);\n self::assertEquals(128, $cidrConstra", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CidrTest.php", "language": "php", "file_size": 5445, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\TestWithJson;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Collection;\nuse Symfony\\Component\\Validator\\Constraints\\Email;\nuse Symfony\\Component\\Validator\\Constraints\\Optional;\nuse Symfony\\Component\\Validator\\Constraints\\Required;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nus", "suffix": "his->expectException(ConstraintDefinitionException::class);\n new Collection([\n 'foo' => new Valid(),\n ]);\n }\n\n public function testRejectValidConstraintWithinOptional()\n {\n $this->expectException(ConstraintDefinitio", "middle": "e Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\n/**\n * @author Bernhard Schussek \n */\nclass CollectionTest extends TestCase\n{\n public function testRejectValidConstraint()\n {\n $t", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php", "language": "php", "file_size": 5977, "cut_index": 716, "middle_length": 229}} {"prefix": "idator;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\Optional;\nuse Symfony\\Component\\Validator\\Constraints\\Range;\nuse Symfony\\Component\\Validator\\Constraints\\Required;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nabstract class CollectionValidatorTestCase extends ConstraintValidatorTestCase\n{\n protected function createValidator(): CollectionValidator\n {\n ", "suffix": "ew Range(min: 4),\n ]));\n\n $this->assertNoViolation();\n }\n\n public function testFieldsAsDefaultOption()\n {\n $constraint = new Range(min: 4);\n\n $data = $this->prepareTestData(['foo' => 'foobar']);\n\n $this->expectVa", "middle": "return new CollectionValidator();\n }\n\n abstract protected function prepareTestData(array $contents);\n\n public function testNullIsValid()\n {\n $this->validate(null, new Collection(fields: [\n 'foo' => n", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CollectionValidatorTestCase.php", "language": "php", "file_size": 10051, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Compound;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\Sequentially;\n\nclass CompoundTe", "suffix": "me(['my-group', 'my-other-group'], $compound->groups);\n $this->assertSame($payload, $compound->payload);\n }\n\n public function testGroupsArePropagatedToNestedCompositeConstraints()\n {\n $compound = new CompoundWithSequentially(groups: ", "middle": "st extends TestCase\n{\n public function testGroupsAndPayload()\n {\n $payload = new \\stdClass();\n $compound = new EmptyCompound(groups: ['my-group', 'my-other-group'], payload: $payload);\n\n $this->assertSa", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CompoundTest.php", "language": "php", "file_size": 2764, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\DivisibleBy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass DivisibleByTest extends Te", "suffix": " [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(2, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstr", "middle": "stCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(DivisibleByDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/DivisibleByTest.php", "language": "php", "file_size": 1775, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\DivisibleBy;\nuse Symfony\\Component\\Validator\\Constraints\\DivisibleByValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * @author Colin O'Dell \n */\nclass DivisibleByValidatorTest extends AbstractComparisonValidatorTestCase\n{\n use InvalidComparisonToValueTestTrait;\n use ThrowsOnInvalidStringDatesTestTrait;\n use ValidComparisonToValueTrait;\n\n pr", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/DivisibleByValidatorTest.php", "language": "php", "file_size": 3140, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\EnableAutoMapping;\nuse Symfony\\Component\\Validator\\Mapping\\AutoMappingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony", "suffix": "ta = new ClassMetadata(EnableAutoMappingDummy::class);\n $loader = new AttributeLoader();\n self::assertSame(AutoMappingStrategy::NONE, $metadata->getAutoMappingStrategy());\n self::assertTrue($loader->loadClassMetadata($metadata));\n ", "middle": "\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Kévin Dunglas \n */\nclass EnableAutoMappingTest extends TestCase\n{\n public function testDisableAutoMappingAttribute()\n {\n $metada", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/EnableAutoMappingTest.php", "language": "php", "file_size": 1155, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Count;\nuse Symfony\\Component\\Validator\\Constraints\\CountValidator;\nuse Symfony\\Component\\Validator\\Constraints\\DivisibleBy;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @author Bernhard Schussek \n */\nabstract cl", "suffix": "rray $content);\n\n public function testNullIsValid()\n {\n $this->validate(null, new Count(6));\n\n $this->assertNoViolation();\n }\n\n public function testExpectsCountableType()\n {\n $this->expectException(UnexpectedValueExcepti", "middle": "ass CountValidatorTestCase extends ConstraintValidatorTestCase\n{\n protected function createValidator(): CountValidator\n {\n return new CountValidator();\n }\n\n abstract protected static function createCollection(a", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CountValidatorTestCase.php", "language": "php", "file_size": 6009, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Currency;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass CurrencyTest ext", "suffix": " [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default', 'CurrencyDummy'], $bConstraint->groups);\n\n [$cConstraint] = $metadata", "middle": "ends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(CurrencyDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CurrencyTest.php", "language": "php", "file_size": 1397, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\nuse Symfony\\Component\\Validator\\Constraints\\Currency;\nuse Symfony\\Component\\Validator\\Constraints\\CurrencyValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\C", "suffix": "= \\Locale::getDefault();\n }\n\n protected function tearDown(): void\n {\n parent::tearDown();\n\n \\Locale::setDefault($this->defaultLocale);\n }\n\n protected function createValidator(): CurrencyValidator\n {\n return new Curren", "middle": "onstraintValidatorTestCase;\n\nclass CurrencyValidatorTest extends ConstraintValidatorTestCase\n{\n private string $defaultLocale;\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->defaultLocale ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CurrencyValidatorTest.php", "language": "php", "file_size": 3242, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Validator\\Constraints as Assert;\n\n/**\n * @author Kévin Dunglas \n */\nclass PropertyInfoLoaderEntity\n{\n public $nullableString;\n public $string;\n public $scalar;\n public", "suffix": "dyMappedNotBlank;\n\n #[Assert\\All([\n new Assert\\Type(type: 'string'),\n new Assert\\Iban(),\n ])]\n public $alreadyPartiallyMappedCollection;\n\n public $readOnly;\n\n #[Assert\\DisableAutoMapping]\n public $noAutoMapping;\n\n public ", "middle": " $object;\n public $collection;\n public $collectionOfUnknown;\n\n #[Assert\\Type(type: 'int')]\n public $alreadyMappedType;\n\n #[Assert\\NotNull]\n public $alreadyMappedNotNull;\n\n #[Assert\\NotBlank]\n public $alrea", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Fixtures/PropertyInfoLoaderEntity.php", "language": "php", "file_size": 1044, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Charset;\nuse Symfony\\Component\\Validator\\Constraints\\CharsetValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\", "suffix": "\n {\n return new CharsetValidator();\n }\n\n #[DataProvider('provideValidValues')]\n public function testEncodingIsValid(string|\\Stringable $value, array|string $encodings)\n {\n $this->validate($value, new Charset(encodings: $encodin", "middle": "ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\StringableValue;\n\nclass CharsetValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): CharsetValidator", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CharsetValidatorTest.php", "language": "php", "file_size": 2838, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\TypedDummy;\n\ntrait CompareWithNullValueAtPropertyAtTestTrait\n{\n public function testCompareWithNullValueAtPropertyAt()\n {\n $constraint = $this->cre", "suffix": " $this->assertNoViolation();\n }\n\n public function testCompareWithUninitializedPropertyAtPropertyPath()\n {\n $this->setObject(new TypedDummy());\n\n $this->validate(5, $this->createConstraint([\n 'message' => 'Constraint Me", "middle": "ateConstraint(['propertyPath' => 'value']);\n $constraint->message = 'Constraint Message';\n\n $object = new ComparisonTest_Class(null);\n $this->setObject($object);\n\n $this->validate(5, $constraint);\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CompareWithNullValueAtPropertyAtTestTrait.php", "language": "php", "file_size": 1105, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\DisableAutoMapping;\nuse Symfony\\Component\\Validator\\Mapping\\AutoMappingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfon", "suffix": "data = new ClassMetadata(DisableAutoMappingDummy::class);\n $loader = new AttributeLoader();\n self::assertSame(AutoMappingStrategy::NONE, $metadata->getAutoMappingStrategy());\n self::assertTrue($loader->loadClassMetadata($metadata));\n ", "middle": "y\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Kévin Dunglas \n */\nclass DisableAutoMappingTest extends TestCase\n{\n public function testDisableAutoMappingAttribute()\n {\n $meta", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/DisableAutoMappingTest.php", "language": "php", "file_size": 1161, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Email;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoade", "suffix": "e);\n }\n\n public function testConstructorHtml5AllowNoTld()\n {\n $subject = new Email(mode: Email::VALIDATION_MODE_HTML5_ALLOW_NO_TLD);\n\n $this->assertEquals(Email::VALIDATION_MODE_HTML5_ALLOW_NO_TLD, $subject->mode);\n }\n\n public ", "middle": "r;\n\nclass EmailTest extends TestCase\n{\n public function testConstructorStrict()\n {\n $subject = new Email(mode: Email::VALIDATION_MODE_STRICT);\n\n $this->assertEquals(Email::VALIDATION_MODE_STRICT, $subject->mod", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/EmailTest.php", "language": "php", "file_size": 2823, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\nuse Symfony\\Component\\Validator\\Constraints\\Country;\nuse Symfony\\Component\\Validator\\Constraints\\CountryValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\Con", "suffix": "Locale::getDefault();\n }\n\n protected function tearDown(): void\n {\n parent::tearDown();\n\n \\Locale::setDefault($this->defaultLocale);\n }\n\n protected function createValidator(): CountryValidator\n {\n return new CountryVal", "middle": "straintValidatorTestCase;\n\nclass CountryValidatorTest extends ConstraintValidatorTestCase\n{\n private string $defaultLocale;\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->defaultLocale = \\", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CountryValidatorTest.php", "language": "php", "file_size": 4156, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Charset;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Valida", "suffix": "\n }\n\n public function testMultipleEncodingCanBeSet()\n {\n $encoding = new Charset(['ASCII', 'UTF-8']);\n\n $this->assertSame(['ASCII', 'UTF-8'], $encoding->encodings);\n }\n\n public function testThrowsOnNoCharset()\n {\n $th", "middle": "tor\\Mapping\\Loader\\AttributeLoader;\n\nclass CharsetTest extends TestCase\n{\n public function testSingleEncodingCanBeSet()\n {\n $encoding = new Charset('UTF-8');\n\n $this->assertSame('UTF-8', $encoding->encodings);", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CharsetTest.php", "language": "php", "file_size": 1900, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Cidr;\nuse Symfony\\Component\\Validator\\Constraints\\CidrValidator;\nuse Symfony\\Component\\Validator\\Constraints\\Ip;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Valida", "suffix": "tor\n {\n return new CidrValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Cidr());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->valida", "middle": "tor\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\StringableValue;\n\nclass CidrValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): CidrValida", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/CidrValidatorTest.php", "language": "php", "file_size": 8260, "cut_index": 716, "middle_length": 229}} {"prefix": "dator\\Constraints\\Email;\nuse Symfony\\Component\\Validator\\Constraints\\EmailValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n#[Group('dns-sensitive')]\nclass EmailValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): EmailValidator\n {\n return new EmailValidator(Email::VALIDATION_MODE_HTML5);\n }\n\n public function testUnknownDefaultModeTriggerException()\n {\n ", "suffix": "tNullIsValid()\n {\n $this->validate(null, new Email());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Email());\n\n $this->assertNoViolation();\n }\n\n public", "middle": " $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('The \"defaultMode\" parameter value is not valid.');\n new EmailValidator('Unknown Mode');\n }\n\n public function tes", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php", "language": "php", "file_size": 9802, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\DateTime;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass DateTimeTest extends TestCase", "suffix": "traint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame('Y-m-d H:i:s', $aConstraint->format);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('d.m.Y', $bConst", "middle": "\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(DateTimeDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aCons", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/DateTimeTest.php", "language": "php", "file_size": 1684, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\Composite;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\n\nclass", "suffix": " $this->constraints = $constraints;\n\n parent::__construct(null, $groups);\n }\n\n protected function getCompositeOption(): array\n {\n return ['constraints', 'otherNested'];\n }\n}\n\n/**\n * @author Bernhard Schussek \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Issn;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass IssnTest extends TestCase\n{\n p", "suffix": "etadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertFalse($aConstraint->caseSensitive);\n self::assertFalse($aConstraint->requireHyphen);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n ", "middle": "ublic function testAttributes()\n {\n $metadata = new ClassMetadata(IssnDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aConstraint] = $m", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IssnTest.php", "language": "php", "file_size": 1713, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\PasswordStrength;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\n\nclass PasswordStrengthTest extends TestCase\n{\n public function testCon", "suffix": "ore: PasswordStrength::STRENGTH_STRONG, message: 'This password should be strong.');\n\n $this->assertSame(PasswordStrength::STRENGTH_STRONG, $constraint->minScore);\n $this->assertSame('This password should be strong.', $constraint->message);\n ", "middle": "structor()\n {\n $constraint = new PasswordStrength();\n $this->assertSame(2, $constraint->minScore);\n }\n\n public function testConstructorWithParameters()\n {\n $constraint = new PasswordStrength(minSc", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/PasswordStrengthTest.php", "language": "php", "file_size": 1766, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\PasswordStrength;\nuse Symfony\\Component\\Validator\\Constraints\\PasswordStrengthValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\StringableVal", "suffix": "etValidValues')]\n public function testValidValues(string|\\Stringable $value, int $expectedStrength)\n {\n $this->validate($value, new PasswordStrength(minScore: $expectedStrength));\n\n $this->assertNoViolation();\n\n if (PasswordStren", "middle": "ue;\n\nclass PasswordStrengthValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): PasswordStrengthValidator\n {\n return new PasswordStrengthValidator();\n }\n\n #[DataProvider('g", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/PasswordStrengthValidatorTest.php", "language": "php", "file_size": 3973, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\PasswordStrength;\nuse Symfony\\Component\\Validator\\Constraints\\PasswordStrengthValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\StringableVal", "suffix": "ing $value) {\n $length = \\strlen($value);\n\n return match (true) {\n $length < 6 => PasswordStrength::STRENGTH_VERY_WEAK,\n $length < 10 => PasswordStrength::STRENGTH_WEAK,\n $length < 15 => Pa", "middle": "ue;\n\nclass PasswordStrengthValidatorWithClosureTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): PasswordStrengthValidator\n {\n return new PasswordStrengthValidator(static function (str", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/PasswordStrengthValidatorWithClosureTest.php", "language": "php", "file_size": 3811, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\PositiveOrZero;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass PositiveOr", "suffix": "a($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(0, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n self::assertSame(['Default', 'PositiveOrZeroD", "middle": "ZeroTest extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(PositiveOrZeroDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadat", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/PositiveOrZeroTest.php", "language": "php", "file_size": 1398, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Positive;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass PositiveTest ext", "suffix": " [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(0, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n self::assertSame(['Default', 'PositiveDummy'], $aConstraint->gr", "middle": "ends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(PositiveDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/PositiveTest.php", "language": "php", "file_size": 1356, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Range;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\n\nclass RangeTest extends TestCase\n{\n publ", "suffix": "inPropertyPath\" options to be set, not both.');\n new Range(min: 'min', minPropertyPath: 'minPropertyPath');\n }\n\n public function testThrowsConstraintExceptionIfBothMaxLimitAndPropertyPathNamed()\n {\n $this->expectException(ConstraintD", "middle": "ic function testThrowsConstraintExceptionIfBothMinLimitAndPropertyPathNamed()\n {\n $this->expectException(ConstraintDefinitionException::class);\n $this->expectExceptionMessage('requires only one of the \"min\" or \"m", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/RangeTest.php", "language": "php", "file_size": 2987, "cut_index": 563, "middle_length": 229}} {"prefix": " RangeValidatorTest extends ConstraintValidatorTestCase\n{\n use IcuCompatibilityTrait;\n\n protected function createValidator(): RangeValidator\n {\n return new RangeValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Range(min: 10, max: 20));\n\n $this->assertNoViolation();\n }\n\n public static function getTenToTwenty(): array\n {\n return [\n [10.00001],\n [19.99999],\n ['10.00001'],\n ['19.99", "suffix": ".99999\"'],\n [5, '5'],\n [1.0, '1'],\n ];\n }\n\n public static function getMoreThanTwenty(): array\n {\n return [\n [20.000001, '20.000001'],\n ['20.000001', '\"20.000001\"'],\n [21, '21'],\n", "middle": "999'],\n [10],\n [20],\n [10.0],\n [20.0],\n ];\n }\n\n public static function getLessThanTen()\n {\n return [\n [9.99999, '9.99999'],\n ['9.99999', '\"9", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php", "language": "php", "file_size": 31221, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Regex;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/", "suffix": "[0-9]+$/', $constraint->pattern);\n }\n\n public static function provideHtmlPatterns()\n {\n return [\n // HTML5 wraps the pattern in ^(?:pattern)$\n ['/^[0-9]+$/', '[0-9]+'],\n ['/[0-9]+$/', '.*[0-9]+'],\n ", "middle": "**\n * @author Bernhard Schussek \n */\nclass RegexTest extends TestCase\n{\n public function testConstraintGetDefaultOption()\n {\n $constraint = new Regex('/^[0-9]+$/');\n\n $this->assertSame('/^", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/RegexTest.php", "language": "php", "file_size": 4918, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Regex;\nuse Symfony\\Component\\Validator\\Constraints\\RegexValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass RegexValidatorTest ", "suffix": "pattern: '/^[0-9]+$/'));\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Regex(pattern: '/^[0-9]+$/'));\n\n $this->assertNoViolation();\n }\n\n public function testExpec", "middle": "extends ConstraintValidatorTestCase\n{\n protected function createValidator(): RegexValidator\n {\n return new RegexValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Regex(", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php", "language": "php", "file_size": 3844, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Sequentially;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Valid", "suffix": "ceptionMessage('The value \"foo\" is not an instance of Constraint in constraint \"Symfony\\Component\\Validator\\Constraints\\Sequentially\"');\n new Sequentially([\n 'foo',\n ]);\n }\n\n public function testRejectValidConstraint()\n {\n", "middle": "ator\\Exception\\MissingOptionsException;\n\nclass SequentiallyTest extends TestCase\n{\n public function testRejectNonConstraints()\n {\n $this->expectException(ConstraintDefinitionException::class);\n $this->expectEx", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/SequentiallyTest.php", "language": "php", "file_size": 1902, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraints\\GreaterThan;\nuse Symfony\\Component\\Validator\\Constraints\\NotEqualTo;\nuse Symfony\\Component\\Validator\\Constraints\\Range;\nuse Symfony\\Component\\Validator\\Constraints\\Regex;\nuse Symfony\\Component\\Validator\\Constraints\\Sequenti", "suffix": "torTestCase;\nuse Symfony\\Component\\Validator\\Validation;\n\nclass SequentiallyValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): SequentiallyValidator\n {\n return new SequentiallyValidator();\n }\n\n pub", "middle": "ally;\nuse Symfony\\Component\\Validator\\Constraints\\SequentiallyValidator;\nuse Symfony\\Component\\Validator\\Constraints\\Type;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValida", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/SequentiallyValidatorTest.php", "language": "php", "file_size": 2690, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\AbstractComparison;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\n\ntrait ThrowsOnInvalidStringDatesTestTrait\n{", "suffix": "ption::class);\n $this->expectExceptionMessage($expectedMessage);\n\n $this->validate($value, $constraint);\n }\n\n public static function throwsOnInvalidStringDatesProvider(): array\n {\n $constraint = static::createConstraint([\n ", "middle": "\n #[DataProvider('throwsOnInvalidStringDatesProvider')]\n public function testThrowsOnInvalidStringDates(AbstractComparison $constraint, $expectedMessage, $value)\n {\n $this->expectException(ConstraintDefinitionExce", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ThrowsOnInvalidStringDatesTestTrait.php", "language": "php", "file_size": 1450, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Time;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass TimeTest extends Tes", "suffix": "straint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default', 'TimeDummy'], $bConstraint->groups);\n\n [$cConstraint] = $metadata->getPropertyMet", "middle": "tCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(TimeDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$bCon", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/TimeTest.php", "language": "php", "file_size": 1365, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Time;\nuse Symfony\\Component\\Validator\\Constraints\\TimeValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass TimeValidatorTest ext", "suffix": " $this->assertNoViolation();\n }\n\n public function testDefaultWithSeconds()\n {\n $this->validate('10:15:25', new Time());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->vali", "middle": "ends ConstraintValidatorTestCase\n{\n protected function createValidator(): TimeValidator\n {\n return new TimeValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Time());\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/TimeValidatorTest.php", "language": "php", "file_size": 4238, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Timezone;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeL", "suffix": "L);\n new Timezone(\\DateTimeZone::ALL_WITH_BC);\n new Timezone(\n zone: \\DateTimeZone::PER_COUNTRY,\n countryCode: 'AR',\n );\n\n $this->addToAssertionCount(1);\n }\n\n public function testExceptionForGroupedTi", "middle": "oader;\n\n/**\n * @author Javier Spagnoletti \n */\nclass TimezoneTest extends TestCase\n{\n public function testValidTimezoneConstraints()\n {\n new Timezone();\n new Timezone(zone: \\DateTimeZone::AL", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/TimezoneTest.php", "language": "php", "file_size": 3074, "cut_index": 614, "middle_length": 229}} {"prefix": "\\Component\\Validator\\Constraints\\Timezone;\nuse Symfony\\Component\\Validator\\Constraints\\TimezoneValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @author Javier Spagnoletti \n * @author Hugo Hamon \n */\nclass TimezoneValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): TimezoneValidator\n {\n return new TimezoneValidator();", "suffix": "ezone());\n\n $this->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleType()\n {\n $this->expectException(UnexpectedValueException::class);\n $this->validate(new \\stdClass(), new Timezone());\n }\n\n #[DataPr", "middle": "\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Timezone());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Tim", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/TimezoneValidatorTest.php", "language": "php", "file_size": 11253, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Traverse;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\V", "suffix": " self::assertTrue($loader->loadClassMetadata($metadata));\n self::assertSame(TraversalStrategy::TRAVERSE, $metadata->getTraversalStrategy());\n }\n\n public function testNegativeAttribute()\n {\n $metadata = new ClassMetadata(DoNotTr", "middle": "alidator\\Mapping\\TraversalStrategy;\n\nclass TraverseTest extends TestCase\n{\n public function testPositiveAttributes()\n {\n $metadata = new ClassMetadata(TraverseDummy::class);\n $loader = new AttributeLoader();\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/TraverseTest.php", "language": "php", "file_size": 1310, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Type;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mappi", "suffix": "($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame('integer', $aConstraint->type);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::ass", "middle": "ng\\Loader\\AttributeLoader;\n\nclass TypeTest extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(TypeDummy::class);\n self::assertTrue((new AttributeLoader())->loadClassMetadata", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/TypeTest.php", "language": "php", "file_size": 2016, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Type;\nuse Symfony\\Component\\Validator\\Constraints\\TypeValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass TypeValidatorTest extends ConstraintValidatorTestCase\n{\n protected static $file;\n\n protected function createValidator(): TypeValidator\n {\n return new TypeValidator();\n }\n\n ", "suffix": " {\n $constraint = new Type(type: 'string');\n\n $this->validate('', $constraint);\n\n $this->assertNoViolation();\n }\n\n public function testEmptyIsInvalidIfNoString()\n {\n $constraint = new Type(\n type: 'integer'", "middle": " public function testNullIsValid()\n {\n $constraint = new Type(type: 'integer');\n\n $this->validate(null, $constraint);\n\n $this->assertNoViolation();\n }\n\n public function testEmptyIsValidIfString()\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php", "language": "php", "file_size": 6927, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Ulid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator", "suffix": "True($loader->loadClassMetadata($metadata));\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default', 'UlidDummy'], $bConstraint->", "middle": "\\Mapping\\Loader\\AttributeLoader;\n\nclass UlidTest extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(UlidDummy::class);\n $loader = new AttributeLoader();\n self::assert", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/UlidTest.php", "language": "php", "file_size": 1804, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Ulid;\nuse Symfony\\Component\\Validator\\Constraints\\UlidValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @author Laurent Clouet \n */\nclass UlidValidatorTest extends ConstraintValidatorTestCase\n{\n prot", "suffix": " public function testEmptyStringIsValid()\n {\n $this->validate('', new Ulid());\n\n $this->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleType()\n {\n $this->expectException(UnexpectedValueException::clas", "middle": "ected function createValidator(): UlidValidator\n {\n return new UlidValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Ulid());\n\n $this->assertNoViolation();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/UlidValidatorTest.php", "language": "php", "file_size": 5114, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Unique;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass UniqueTest extends TestCase\n{\n ", "suffix": "] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default', 'UniqueDummy'], $bConstraint->groups);\n\n [$cConstraint] = $metadata->getPropertyMetadata", "middle": " public function testAttributes()\n {\n $metadata = new ClassMetadata(UniqueDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$bConstraint", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/UniqueTest.php", "language": "php", "file_size": 1580, "cut_index": 537, "middle_length": 229}} {"prefix": "mponent\\Validator\\Constraints\\UniqueValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Dummy\\DummyClassOne;\n\nclass UniqueValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): UniqueValidator\n {\n return new UniqueValidator();\n }\n\n public function testExpects", "suffix": "value)\n {\n $this->validate($value, new Unique());\n\n $this->assertNoViolation();\n }\n\n public static function getValidValues()\n {\n return [\n yield 'null' => [[null]],\n yield 'empty array' => [[]],\n ", "middle": "UniqueConstraintCompatibleType()\n {\n $this->expectException(UnexpectedValueException::class);\n $this->validate('', new Unique());\n }\n\n #[DataProvider('getValidValues')]\n public function testValidValues($", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/UniqueValidatorTest.php", "language": "php", "file_size": 15013, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Url;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Renan Ta", "suffix": "lizer);\n }\n\n public function testAttributes()\n {\n $metadata = new ClassMetadata(UrlDummy::class);\n self::assertTrue((new AttributeLoader())->loadClassMetadata($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')", "middle": "ranto \n */\nclass UrlTest extends TestCase\n{\n public function testNormalizerCanBeSet()\n {\n $url = new Url(normalizer: 'trim', requireTld: true);\n\n $this->assertEquals('trim', $url->norma", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/UrlTest.php", "language": "php", "file_size": 2973, "cut_index": 563, "middle_length": 229}} {"prefix": "nent\\Validator\\Constraints\\UrlValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass UrlValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): UrlValidator\n {\n return new UrlValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Url(requireTld: true));\n\n $this->assertNoViolation();\n }\n\n public function testEm", "suffix": ", new Url(requireTld: true));\n\n $this->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleType()\n {\n $this->expectException(UnexpectedValueException::class);\n $this->validate(new \\stdClass(), new Url(requireT", "middle": "ptyStringIsValid()\n {\n $this->validate('', new Url(requireTld: true));\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringFromObjectIsValid()\n {\n $this->validate(new EmailProvider()", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/UrlValidatorTest.php", "language": "php", "file_size": 15838, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Uuid;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Renan Taranto \n */\nclass U", "suffix": "{\n $metadata = new ClassMetadata(UuidDummy::class);\n self::assertTrue((new AttributeLoader())->loadClassMetadata($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(Uuid::A", "middle": "uidTest extends TestCase\n{\n public function testNormalizerCanBeSet()\n {\n $uuid = new Uuid(normalizer: 'trim');\n\n $this->assertEquals('trim', $uuid->normalizer);\n }\n\n public function testAttributes()\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/UuidTest.php", "language": "php", "file_size": 2093, "cut_index": 563, "middle_length": 229}} {"prefix": "Validator\\Constraints\\Uuid;\nuse Symfony\\Component\\Validator\\Constraints\\UuidValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @author Colin O'Dell \n */\nclass UuidValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): UuidValidator\n {\n return new UuidValidator();\n }\n\n ", "suffix": " $this->assertNoViolation();\n }\n\n public function testExpectsUuidConstraintCompatibleType()\n {\n $constraint = $this->createStub(Constraint::class);\n\n $this->expectException(UnexpectedTypeException::class);\n\n $this->validate('", "middle": " public function testNullIsValid()\n {\n $this->validate(null, new Uuid());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Uuid());\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/UuidValidatorTest.php", "language": "php", "file_size": 12094, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\n\ntrait ValidComparisonToValueTrait\n{\n #[DataProvider('provideAllValidComparisons')]\n public function testValidComparisonToValue($dirtyValue, $comparisonValue)\n {\n ", "suffix": "ray\n {\n // The provider runs before setUp(), so we need to manually fix\n // the default timezone\n $timezone = date_default_timezone_get();\n date_default_timezone_set('UTC');\n\n $comparisons = self::addPhp5Dot5Comparison", "middle": " $constraint = $this->createConstraint(['value' => $comparisonValue]);\n\n $this->validate($dirtyValue, $constraint);\n\n $this->assertNoViolation();\n }\n\n public static function provideAllValidComparisons(): ar", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ValidComparisonToValueTrait.php", "language": "php", "file_size": 1126, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Bernhard Schussek assertNull($constraint->groups);\n }\n\n public function testAttributes()\n {\n $metadata = new ClassMetadata(ValidDummy::class);\n $loader = ne", "middle": "ussek@gmail.com>\n */\nclass ValidTest extends TestCase\n{\n public function testGroupsCanBeSet()\n {\n $constraint = new Valid(groups: ['foo']);\n\n $this->assertSame(['foo'], $constraint->groups);\n }\n\n public ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php", "language": "php", "file_size": 1791, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints as Assert;\nuse Symfony\\Component\\Validator\\ValidatorBuilder;\n\nclass ValidValidatorTest extends TestCase\n{\n public function testPropertyPathsArePassedToNestedConte", "suffix": "$this->assertCount(1, $violations);\n $this->assertSame('fooBar.fooBarBaz.foo', $violations->get(0)->getPropertyPath());\n }\n\n public function testNullValues()\n {\n $validatorBuilder = new ValidatorBuilder();\n $validator = $valid", "middle": "xts()\n {\n $validatorBuilder = new ValidatorBuilder();\n $validator = $validatorBuilder->enableAttributeMapping()->getValidator();\n\n $violations = $validator->validate(new Foo(), null, ['nested']);\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/ValidValidatorTest.php", "language": "php", "file_size": 1667, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\ExecutableFinder;\nuse Symfony\\Component\\Validator\\Constraints\\Video;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass VideoTest ", "suffix": " }\n }\n\n public function testAttributes()\n {\n $metadata = new ClassMetadata(VideoDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aConstraint] = $metadata->ge", "middle": "extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!(new ExecutableFinder())->find('ffprobe')) {\n self::markTestSkipped('The ffprobe binary is required to run this test.');\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/VideoTest.php", "language": "php", "file_size": 2197, "cut_index": 563, "middle_length": 229}} {"prefix": "y\\Component\\Validator\\Constraints\\Video;\nuse Symfony\\Component\\Validator\\Constraints\\VideoValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n#[RequiresPhpExtension('fileinfo')]\nclass VideoValidatorTest extends ConstraintValidatorTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!(new ExecutableFinder())->find('ffprobe')) {\n self::markTestSkipped('The ffprobe binary is required to run this test.');\n }\n }\n\n protected function cr", "suffix": "tion testEmptyStringIsValid()\n {\n $this->validate('', new Video());\n\n $this->assertNoViolation();\n }\n\n public function testValidVideo()\n {\n $this->validate(__DIR__.'/Fixtures/test.mp4', new Video());\n\n $this->assertN", "middle": "eateValidator(): VideoValidator\n {\n return new VideoValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Video());\n\n $this->assertNoViolation();\n }\n\n public func", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/VideoValidatorTest.php", "language": "php", "file_size": 9252, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Json;\nuse Symfony\\Component\\Validator\\Constraints\\JsonValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass JsonValidato", "suffix": ")\n {\n $this->validate($value, new Json());\n\n $this->assertNoViolation();\n }\n\n #[DataProvider('getInvalidValues')]\n public function testInvalidValues($value)\n {\n $constraint = new Json(message: 'myMessageTest');\n\n ", "middle": "rTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): JsonValidator\n {\n return new JsonValidator();\n }\n\n #[DataProvider('getValidValues')]\n public function testJsonIsValid($value", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/JsonValidatorTest.php", "language": "php", "file_size": 1882, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\nuse Symfony\\Component\\Validator\\Constraints\\Language;\nuse Symfony\\Component\\Validator\\Constraints\\LanguageValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\C", "suffix": "= \\Locale::getDefault();\n }\n\n protected function tearDown(): void\n {\n parent::tearDown();\n\n \\Locale::setDefault($this->defaultLocale);\n }\n\n protected function createValidator(): LanguageValidator\n {\n return new Langua", "middle": "onstraintValidatorTestCase;\n\nclass LanguageValidatorTest extends ConstraintValidatorTestCase\n{\n private string $defaultLocale;\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->defaultLocale ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LanguageValidatorTest.php", "language": "php", "file_size": 4146, "cut_index": 614, "middle_length": 229}} {"prefix": "mponent\\Validator\\Constraints\\LengthValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass LengthValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): LengthValidator\n {\n return new LengthValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Length(exactly: 6));\n\n $this->assertNoViolation();\n }\n\n public fun", "suffix": "eter('{{ value }}', '\"\"')\n ->setParameter('{{ limit }}', $limit)\n ->setParameter('{{ min }}', $limit)\n ->setParameter('{{ max }}', $limit)\n ->setParameter('{{ value_length }}', 0)\n ->setInvalidValue(''", "middle": "ction testEmptyStringIsInvalid()\n {\n $this->validate('', new Length(\n exactly: $limit = 6,\n exactMessage: 'myMessage',\n ));\n\n $this->buildViolation('myMessage')\n ->setParam", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php", "language": "php", "file_size": 11758, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\LessThanOrEqual;\nuse Symfony\\Component\\Validator\\Constraints\\LessThanOrEqualValidator;\nuse Symfony\\Component\\Validator\\Tests\\IcuCompatibilityTrait;\n\n/**\n * @author Daniel Holmes \n */\nclass LessThanOrEqualV", "suffix": " use ValidComparisonToValueTrait;\n\n protected function createValidator(): LessThanOrEqualValidator\n {\n return new LessThanOrEqualValidator();\n }\n\n protected static function createConstraint(?array $options = null): Constraint\n {\n ", "middle": "alidatorTest extends AbstractComparisonValidatorTestCase\n{\n use CompareWithNullValueAtPropertyAtTestTrait;\n use IcuCompatibilityTrait;\n use InvalidComparisonToValueTestTrait;\n use ThrowsOnInvalidStringDatesTestTrait;\n", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualValidatorTest.php", "language": "php", "file_size": 3925, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\LessThan;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass LessThanTest extends TestCase", "suffix": "traint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(2, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n", "middle": "\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(LessThanDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aCons", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LessThanTest.php", "language": "php", "file_size": 1751, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\LessThanValidator;\nuse Symfony\\Component\\Validator\\Constraints\\Negative;\n\n/**\n * @author Jan Schädlich \n */\nclass LessThanValidatorWithNegativeConstraintTest extends AbstractComparisonValidatorTestCase\n{\n protected function createValidator(): LessThanValidator\n {\n return new LessThanValidator();\n }\n\n protected ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LessThanValidatorWithNegativeConstraintTest.php", "language": "php", "file_size": 2642, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Locale;\nuse Symfony\\Component\\Validator\\Constraints\\LocaleValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass LocaleValidatorTe", "suffix": "ocale());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Locale());\n\n $this->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleType()\n {\n ", "middle": "st extends ConstraintValidatorTestCase\n{\n protected function createValidator(): LocaleValidator\n {\n return new LocaleValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new L", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LocaleValidatorTest.php", "language": "php", "file_size": 4286, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Luhn;\nuse Symfony\\Component\\Validator\\Constraints\\LuhnValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass LuhnValidatorTest ext", "suffix": " $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new Luhn());\n\n $this->assertNoViolation();\n }\n\n #[DataProvider('getValidNumbers')]\n public function testValidNumbers($n", "middle": "ends ConstraintValidatorTestCase\n{\n protected function createValidator(): LuhnValidator\n {\n return new LuhnValidator();\n }\n\n public function testNullIsValid()\n {\n $this->validate(null, new Luhn());\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LuhnValidatorTest.php", "language": "php", "file_size": 3143, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\MacAddress;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Ninos Ego \n */\nclass MacAddr", "suffix": "()\n {\n $metadata = new ClassMetadata(MacAddressDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstrain", "middle": "essTest extends TestCase\n{\n public function testNormalizerCanBeSet()\n {\n $mac = new MacAddress(normalizer: 'trim');\n\n $this->assertEquals(trim(...), $mac->normalizer);\n }\n\n public function testAttributes", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/MacAddressTest.php", "language": "php", "file_size": 2045, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Negative;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass NegativeTest ext", "suffix": " [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(0, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n self::assertSame(['Default', 'NegativeDummy'], $aConstraint->gr", "middle": "ends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(NegativeDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NegativeTest.php", "language": "php", "file_size": 1356, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Renan Taranto loadClassMetadata($metadata));\n\n [$aConstraint] = $metadata->getP", "middle": "taranto@gmail.com>\n */\nclass NotBlankTest extends TestCase\n{\n public function testNormalizerCanBeSet()\n {\n $notBlank = new NotBlank(normalizer: 'trim');\n\n $this->assertEquals('trim', $notBlank->normalizer);\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NotBlankTest.php", "language": "php", "file_size": 1583, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\NotCompromisedPassword;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Kévin Dunglas skipOnError);\n }\n\n public function testAttributes()\n {\n $metadata = new ClassMetadata(NotCompromisedPasswordDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($me", "middle": ">\n */\nclass NotCompromisedPasswordTest extends TestCase\n{\n public function testDefaultValues()\n {\n $constraint = new NotCompromisedPassword();\n $this->assertSame(1, $constraint->threshold);\n $this->asse", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NotCompromisedPasswordTest.php", "language": "php", "file_size": 2110, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Validator\\Constraints\\Luhn;\nuse Symfony\\Component\\Validator\\Constraints\\NotCompromisedPassword;\nuse Symfony\\Component\\Validator\\Constraints\\NotCompromisedPasswordValidator;\nuse Symfony\\Component\\Validator\\ConstraintValidatorInterface;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeEx", "suffix": "s@gmail.com>\n */\nclass NotCompromisedPasswordValidatorTest extends ConstraintValidatorTestCase\n{\n private const PASSWORD_TRIGGERING_AN_ERROR = 'apiError';\n private const PASSWORD_TRIGGERING_AN_ERROR_RANGE_URL = 'https://api.pwnedpasswords.com/range/3", "middle": "ception;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Kévin Dunglas \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\NotIdenticalTo;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass NotIdenticalToTest extends TestCase\n{\n public ", "suffix": "self::assertSame([1, 2, 3], $constraint->value);\n }\n\n public function testAttributes()\n {\n $metadata = new ClassMetadata(NotIdenticalToDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetada", "middle": "function testArrayValueDoesNotTriggerDeprecation()\n {\n $constraint = new NotIdenticalTo(value: []);\n self::assertSame([], $constraint->value);\n\n $constraint = new NotIdenticalTo(value: [1, 2, 3]);\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NotIdenticalToTest.php", "language": "php", "file_size": 2095, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\NotIdenticalTo;\nuse Symfony\\Component\\Validator\\Constraints\\NotIdenticalToValidator;\nuse Symfony\\Component\\Validator\\Tests\\IcuCompatibilityTrait;\n\n/**\n * @author Daniel Holmes \n */\nclass NotIdenticalToValidatorTest extends AbstractComparisonValidatorTestCase\n{\n use CompareWithNullValueAtPropertyAtTestTrait;\n use IcuCompatibilityTrait;\n use InvalidComparisonToValueTestTrai", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NotIdenticalToValidatorTest.php", "language": "php", "file_size": 2991, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Json;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass JsonTest extends Tes", "suffix": "straint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default', 'JsonDummy'], $bConstraint->groups);\n\n [$cConstraint] = $metadata->getPropertyMet", "middle": "tCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(JsonDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$bCon", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/JsonTest.php", "language": "php", "file_size": 1365, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Renan Taranto normalizer);\n }\n\n public function testDefaultCountUnitIsUsed()\n {\n $length = new Length(min: 0, max: 10);\n $this->assertSame(Length::COUNT_CODEPOINTS, $length->countUnit);\n }\n\n public function test", "middle": "il.com>\n */\nclass LengthTest extends TestCase\n{\n public function testNormalizerCanBeSet()\n {\n $length = new Length(\n min: 0,\n max: 10,\n normalizer: 'trim',\n );\n\n $this->", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LengthTest.php", "language": "php", "file_size": 3630, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\LessThanOrEqualValidator;\nuse Symfony\\Component\\Validator\\Constraints\\NegativeOrZero;\n\n/**\n * @author Jan Schädlich \n */\nclass LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest extends AbstractComparisonValidatorTestCase\n{\n protected function createValidator(): LessThanOrEqualValidator\n {\n return new LessThanO", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest.php", "language": "php", "file_size": 2724, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Locale;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass LocaleTest extends TestCase\n{\n ", "suffix": "] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertTrue($aConstraint->canonicalize);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->mess", "middle": " public function testAttributes()\n {\n $metadata = new ClassMetadata(LocaleDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aConstraint", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LocaleTest.php", "language": "php", "file_size": 1595, "cut_index": 537, "middle_length": 229}} {"prefix": "y\\Component\\Validator\\Constraints\\MacAddressValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @author Ninos Ego \n */\nclass MacAddressValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): MacAddressValidator\n {\n return new MacAddressValidator();\n }\n\n public functio", "suffix": "is->assertNoViolation();\n }\n\n public function testExpectsStringCompatibleType()\n {\n $this->expectException(UnexpectedValueException::class);\n $this->validate(new \\stdClass(), new MacAddress());\n }\n\n public function testInvalidV", "middle": "n testNullIsValid()\n {\n $this->validate(null, new MacAddress());\n\n $this->assertNoViolation();\n }\n\n public function testEmptyStringIsValid()\n {\n $this->validate('', new MacAddress());\n\n $th", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/MacAddressValidatorTest.php", "language": "php", "file_size": 15636, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\NegativeOrZero;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass NegativeOr", "suffix": "a($metadata));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(0, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n self::assertSame(['Default', 'NegativeOrZeroD", "middle": "ZeroTest extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(NegativeOrZeroDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadat", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NegativeOrZeroTest.php", "language": "php", "file_size": 1398, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\NotEqualTo;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass NotEqualToTest extends Test", "suffix": "$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(2, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstrain", "middle": "Case\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(NotEqualToDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NotEqualToTest.php", "language": "php", "file_size": 1767, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\NotNullValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n", "suffix": "ction testValidValues($value)\n {\n $this->validate($value, new NotNull());\n\n $this->assertNoViolation();\n }\n\n public static function getValidValues()\n {\n return [\n [0],\n [false],\n [true],\n ", "middle": "\nclass NotNullValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): NotNullValidator\n {\n return new NotNullValidator();\n }\n\n #[DataProvider('getValidValues')]\n public fun", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NotNullValidatorTest.php", "language": "php", "file_size": 1332, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Language;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass LanguageTest extends TestCase", "suffix": "traint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertFalse($aConstraint->alpha3);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->mes", "middle": "\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(LanguageDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$aCons", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LanguageTest.php", "language": "php", "file_size": 1592, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\LessThan;\nuse Symfony\\Component\\Validator\\Constraints\\LessThanValidator;\nuse Symfony\\Component\\Validator\\Tests\\IcuCompatibilityTrait;\n\n/**\n * @author Daniel Holmes \n */\nclass LessThanValidatorTest extends ", "suffix": "onToValueTrait;\n\n protected function createValidator(): LessThanValidator\n {\n return new LessThanValidator();\n }\n\n protected static function createConstraint(?array $options = null): Constraint\n {\n if (null !== $options) {\n ", "middle": "AbstractComparisonValidatorTestCase\n{\n use CompareWithNullValueAtPropertyAtTestTrait;\n use IcuCompatibilityTrait;\n use InvalidComparisonToValueTestTrait;\n use ThrowsOnInvalidStringDatesTestTrait;\n use ValidComparis", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LessThanValidatorTest.php", "language": "php", "file_size": 3490, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Validator\\Constraints\\NoSuspiciousCharacters;\nuse Symfony\\Component\\Validator\\Constraints\\NoSuspiciousCharactersValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @extends ConstraintValidatorTestCase\n */\n#[RequiresPhpExtension('i", "suffix": " #[DataProvider('provideNonSuspiciousStrings')]\n public function testNonSuspiciousStrings(string $string, array $options = [])\n {\n $this->validate($string, new NoSuspiciousCharacters(...$options));\n\n $this->assertNoViolation();\n }\n", "middle": "ntl')]\nclass NoSuspiciousCharactersValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): NoSuspiciousCharactersValidator\n {\n return new NoSuspiciousCharactersValidator();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NoSuspiciousCharactersValidatorTest.php", "language": "php", "file_size": 7423, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\NotEqualTo;\nuse Symfony\\Component\\Validator\\Constraints\\NotEqualToValidator;\nuse Symfony\\Component\\Validator\\Tests\\IcuCompatibilityTrait;\n\n/**\n * @author Daniel Holmes \n */\nclass NotEqualToValidatorTest extends AbstractComparisonValidatorTestCase\n{\n use CompareWithNullValueAtPropertyAtTestTrait;\n use IcuCompatibilityTrait;\n use InvalidComparisonToValueTestTrait;\n use T", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NotEqualToValidatorTest.php", "language": "php", "file_size": 2805, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\LessThanOrEqual;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass LessThanOrEqualTest ex", "suffix": "a));\n\n [$aConstraint] = $metadata->getPropertyMetadata('a')[0]->getConstraints();\n self::assertSame(2, $aConstraint->value);\n self::assertNull($aConstraint->propertyPath);\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0", "middle": "tends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(LessThanOrEqualDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadat", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualTest.php", "language": "php", "file_size": 1807, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Luhn;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass LuhnTest extends Tes", "suffix": "straint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default', 'LuhnDummy'], $bConstraint->groups);\n\n [$cConstraint] = $metadata->getPropertyMet", "middle": "tCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(LuhnDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$bCon", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/LuhnTest.php", "language": "php", "file_size": 1365, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Issn;\nuse Symfony\\Component\\Validator\\Constraints\\IssnValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @see https://en.wiki", "suffix": "erCasedIssn()\n {\n return [\n ['2162-321x'],\n ['2160-200x'],\n ['1537-453x'],\n ['1937-710x'],\n ['0002-922x'],\n ['1553-345x'],\n ['1553-619x'],\n ];\n }\n\n public s", "middle": "pedia.org/wiki/Issn\n */\nclass IssnValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): IssnValidator\n {\n return new IssnValidator();\n }\n\n public static function getValidLow", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/IssnValidatorTest.php", "language": "php", "file_size": 4800, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlankValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass NotBlankValidatorTest extends ConstraintValidatorTestCase\n{\n protected functio", "suffix": "\n $this->assertNoViolation();\n }\n\n public static function getValidValues()\n {\n return [\n ['foobar'],\n [0],\n [0.0],\n ['0'],\n [1234],\n ];\n }\n\n public function testNull", "middle": "n createValidator(): NotBlankValidator\n {\n return new NotBlankValidator();\n }\n\n #[DataProvider('getValidValues')]\n public function testValidValues($value)\n {\n $this->validate($value, new NotBlank());\n", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/NotBlankValidatorTest.php", "language": "php", "file_size": 3683, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Week;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass WeekTest extends TestCase\n{\n publi", "suffix": "010-W01', max: '2010-W02');\n\n $this->assertSame('2010-W01', $week->min);\n $this->assertSame('2010-W02', $week->max);\n }\n\n public function testMinYearIsAfterMaxYear()\n {\n $this->expectException(ConstraintDefinitionException::cl", "middle": "c function testWithoutArgument()\n {\n $week = new Week();\n\n $this->assertNull($week->min);\n $this->assertNull($week->max);\n }\n\n public function testConstructor()\n {\n $week = new Week(min: '2", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/WeekTest.php", "language": "php", "file_size": 3283, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Test;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\DateTime;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\ConstraintValid", "suffix": "rn new TestCustomValidator();\n }\n\n public function testAssertingContextualValidatorRemainingExpectationsThrow()\n {\n $this->expectValidateValueAt(0, 'k1', 'ccc', [\n new NotNull(),\n ]);\n $this->expectValidateValueAt(1", "middle": "ator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nclass ConstraintValidatorTestCaseTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): TestCustomValidator\n {\n retu", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Test/ConstraintValidatorTestCaseTest.php", "language": "php", "file_size": 2012, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Validator\\DependencyInjection\\AddAutoMappingConfigurationPass;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\PropertyInfoLoaderEntity;\nuse Symfony\\C", "suffix": "ntainerBuilder();\n (new AddAutoMappingConfigurationPass())->process($container);\n $this->assertCount(1, $container->getDefinitions());\n }\n\n public function testNoValidatorBuilder()\n {\n $container = new ContainerBuilder();\n ", "middle": "omponent\\Validator\\ValidatorBuilder;\n\n/**\n * @author Kévin Dunglas \n */\nclass AddAutoMappingConfigurationPassTest extends TestCase\n{\n public function testNoConfigParameter()\n {\n $container = new Co", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/DependencyInjection/AddAutoMappingConfigurationPassTest.php", "language": "php", "file_size": 3484, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInje", "suffix": ")\n {\n $container = new ContainerBuilder();\n $validatorFactory = $container->register('validator.validator_factory')\n ->addArgument([]);\n\n $container->register('my_constraint_validator_service1', Validator1::class)\n ", "middle": "ction\\ServiceLocator;\nuse Symfony\\Component\\Validator\\DependencyInjection\\AddConstraintValidatorsPass;\n\nclass AddConstraintValidatorsPassTest extends TestCase\n{\n public function testThatConstraintValidatorServicesAreProcessed(", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/DependencyInjection/AddConstraintValidatorsPassTest.php", "language": "php", "file_size": 3484, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Validator\\DependencyInjection\\AddValidatorInitializer", "suffix": "('validator.initializer')\n ;\n $container\n ->register('initializer2')\n ->addTag('validator.initializer')\n ;\n $container\n ->register('validator.builder')\n ->addArgument([])\n ;\n\n ", "middle": "sPass;\n\nclass AddValidatorInitializersPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $container\n ->register('initializer1')\n ->addTag", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/DependencyInjection/AddValidatorInitializersPassTest.php", "language": "php", "file_size": 1307, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Validator\\DependencyInjection\\AttributeMetadataPass;\nuse Symfony\\Component\\Validator\\Exception\\MappingException;\n\nclass AttributeMetadataPassTest extends TestCase\n{\n public function testProcess", "suffix": " }\n\n public function testProcessWithValidatorBuilderButNoTaggedServices()\n {\n $container = new ContainerBuilder();\n $container->register('validator.builder');\n\n $pass = new AttributeMetadataPass();\n $pass->process($contai", "middle": "WithNoValidatorBuilder()\n {\n $container = new ContainerBuilder();\n\n // Should not throw any exception\n (new AttributeMetadataPass())->process($container);\n\n $this->expectNotToPerformAssertions();\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/DependencyInjection/AttributeMetadataPassTest.php", "language": "php", "file_size": 4198, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Test;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\IdentityTranslator;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Constraints\\Compound;\nuse Symfony\\Component\\Validator\\Constraints\\CompoundValidator;\nuse Symfony\\Component\\Validator\\Co", "suffix": "tor\\Validator\\ValidatorInterface;\n\n/**\n * A test case to ease testing Compound Constraints.\n *\n * @author Alexandre Daubois \n *\n * @template T of Compound\n */\nabstract class CompoundConstraintTestCase extends TestCase\n{\n protecte", "middle": "nstraintViolationListInterface;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContext;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\nuse Symfony\\Component\\Validator\\Validation;\nuse Symfony\\Component\\Valida", "meta": {"filepath": "src/Symfony/Component/Validator/Test/CompoundConstraintTestCase.php", "language": "php", "file_size": 4252, "cut_index": 614, "middle_length": 229}} {"prefix": "intValidator;\nuse Symfony\\Component\\Validator\\ConstraintValidatorInterface;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationInterface;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContext;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Compon", "suffix": "ce;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * A test case to ease testing Constraint Validators.\n *\n * @author Bernhard Schussek \n *\n * @template T of ConstraintValidatorInterface\n */\nabstract class ConstraintValid", "middle": "ent\\Validator\\Mapping\\MetadataInterface;\nuse Symfony\\Component\\Validator\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\Validator\\Validator\\ContextualValidatorInterface;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterfa", "meta": {"filepath": "src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php", "language": "php", "file_size": 20525, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Injects the automapping configuration as last argument of loaders tagg", "suffix": " {\n if (!$container->hasParameter('validator.auto_mapping') || !$container->hasDefinition('validator.builder')) {\n return;\n }\n\n $config = $container->getParameter('validator.auto_mapping');\n\n $globalNamespaces = []", "middle": "ed with the \"validator.auto_mapper\" tag.\n *\n * @author Kévin Dunglas \n */\nclass AddAutoMappingConfigurationPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n", "meta": {"filepath": "src/Symfony/Component/Validator/DependencyInjection/AddAutoMappingConfigurationPass.php", "language": "php", "file_size": 2703, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Dependenc", "suffix": "s(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('validator.validator_factory')) {\n return;\n }\n\n $validators = [];\n foreach ($container->findTaggedServiceIds('validator.constraint_validator',", "middle": "yInjection\\Reference;\n\n/**\n * @author Johannes M. Schmitt \n * @author Robin Chalas \n */\nclass AddConstraintValidatorsPass implements CompilerPassInterface\n{\n public function proces", "meta": {"filepath": "src/Symfony/Component/Validator/DependencyInjection/AddConstraintValidatorsPass.php", "language": "php", "file_size": 1522, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * @author Fabien Potencier ", "suffix": "ntainer->hasDefinition('validator.builder')) {\n return;\n }\n\n $initializers = [];\n foreach ($container->findTaggedServiceIds('validator.initializer', true) as $id => $attributes) {\n $initializers[] = new Reference(", "middle": "\n * @author Robin Chalas \n */\nclass AddValidatorInitializersPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$co", "meta": {"filepath": "src/Symfony/Component/Validator/DependencyInjection/AddValidatorInitializersPass.php", "language": "php", "file_size": 1141, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Validator\\Exception\\MappingException;\n\n/**\n * @author Nicolas Grekas \n */\nfinal class Attribut", "suffix": "= $container->getParameterBag()->resolveValue(...);\n $mappedClasses = [];\n foreach ($container->getDefinitions() as $id => $definition) {\n if (!$definition->hasTag('validator.attribute_metadata')) {\n continue;\n ", "middle": "eMetadataPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('validator.builder')) {\n return;\n }\n\n $resolve ", "meta": {"filepath": "src/Symfony/Component/Validator/DependencyInjection/AttributeMetadataPass.php", "language": "php", "file_size": 2667, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock;\n\nuse Psr\\Clock\\ClockInterface as PsrClockInterface;\n\n/**\n * A global clock.\n *\n * @author Nicolas Grekas \n */\nfinal class Clock implements ClockInterface\n{\n private static ClockInterface $globalClock;\n\n public function __construct(\n private readonly ?PsrClockInt", "suffix": "eTrait when possible instead of using this method.\n */\n public static function get(): ClockInterface\n {\n return self::$globalClock ??= new NativeClock();\n }\n\n public static function set(PsrClockInterface $clock): void\n {\n s", "middle": "erface $clock = null,\n private ?\\DateTimeZone $timezone = null,\n ) {\n }\n\n /**\n * Returns the current global clock.\n *\n * Note that you should prefer injecting a ClockInterface or using\n * ClockAwar", "meta": {"filepath": "src/Symfony/Component/Clock/Clock.php", "language": "php", "file_size": 2076, "cut_index": 563, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock;\n\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\n\n/**\n * A trait to help write time-sensitive classes.\n *\n * @author Nicolas Grekas \n */\ntrait ClockAwareTrait\n{\n private readonly ClockInterface $cl", "suffix": "lockInterface $clock): void\n {\n $this->clock = $clock;\n }\n\n protected function now(): DatePoint\n {\n $now = ($this->clock ??= new Clock())->now();\n\n return $now instanceof DatePoint ? $now : DatePoint::createFromInterface($n", "middle": "ock;\n\n #[Required]\n public function setClock(C", "meta": {"filepath": "src/Symfony/Component/Clock/ClockAwareTrait.php", "language": "php", "file_size": 841, "cut_index": 520, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock;\n\n/**\n * An immmutable DateTime with stricter error handling and return types than the native one.\n *\n * @author Nicolas Grekas \n */\nfinal class DatePoint extends \\DateTimeImmutable\n{\n /**\n * @throws \\DateMalformedStringException When $datetime is invalid\n */\n public function __construct(string $datetime = 'now'", "suffix": "reateFromInterface($now);\n }\n\n $builtInDate = new parent($datetime, $timezone ?? $now->getTimezone());\n $timezone = $builtInDate->getTimezone();\n\n $now = $now->setTimezone($timezone)->modify($datetime);\n\n ", "middle": ", ?\\DateTimeZone $timezone = null, ?parent $reference = null)\n {\n $now = $reference ?? Clock::get()->now();\n\n if ('now' !== $datetime) {\n if (!$now instanceof static) {\n $now = static::c", "meta": {"filepath": "src/Symfony/Component/Clock/DatePoint.php", "language": "php", "file_size": 3865, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock;\n\n/**\n * A clock that always returns the same date, suitable for testing time-sensitive logic.\n *\n * Consider using ClockSensitiveTrait in your test cases instead of using this class directly.\n *\n * @author Nicolas Grekas \n */\nfinal class MockClock implements ClockInterface\n{", "suffix": "able|string $now = 'now', \\DateTimeZone|string|null $timezone = null)\n {\n if (\\is_string($timezone)) {\n $timezone = new \\DateTimeZone($timezone);\n }\n\n if (\\is_string($now)) {\n $now = new DatePoint($now, $timezo", "middle": "\n private DatePoint $now;\n\n /**\n * @throws \\DateMalformedStringException When $now is invalid\n * @throws \\DateInvalidTimeZoneException When $timezone is invalid\n */\n public function __construct(\\DateTimeImmut", "meta": {"filepath": "src/Symfony/Component/Clock/MockClock.php", "language": "php", "file_size": 2393, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock;\n\n/**\n * A monotonic clock suitable for performance profiling.\n *\n * @author Nicolas Grekas \n */\nfinal class MonotonicClock implements ClockInterface\n{\n private int $sOffset;\n private int $usOffset;\n private \\DateTimeZone $timezone;\n\n /**\n * @throws \\DateInval", "suffix": " returned false: the runtime environment does not provide access to a monotonic timer.');\n }\n\n $time = explode(' ', microtime(), 2);\n $this->sOffset = $time[1] - $offset[0];\n $this->usOffset = (int) ($time[0] * 1000000) - (int) ", "middle": "idTimeZoneException When $timezone is invalid\n */\n public function __construct(\\DateTimeZone|string|null $timezone = null)\n {\n if (false === $offset = hrtime()) {\n throw new \\RuntimeException('hrtime()", "meta": {"filepath": "src/Symfony/Component/Clock/MonotonicClock.php", "language": "php", "file_size": 2383, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock;\n\n/**\n * A clock that relies the system time.\n *\n * @author Nicolas Grekas \n */\nfinal class NativeClock implements ClockInterface\n{\n private \\DateTimeZone $timezone;\n\n /**\n * @throws \\DateInvalidTimeZoneException When $timezone is invalid\n ", "suffix": "}\n\n public function now(): DatePoint\n {\n return DatePoint::createFromInterface(new \\DateTimeImmutable('now', $this->timezone));\n }\n\n public function sleep(float|int $seconds): void\n {\n if (0 < $s = (int) $seconds) {\n ", "middle": " */\n public function __construct(\\DateTimeZone|string|null $timezone = null)\n {\n $this->timezone = \\is_string($timezone ??= date_default_timezone_get()) ? $this->withTimeZone($timezone)->timezone : $timezone;\n ", "meta": {"filepath": "src/Symfony/Component/Clock/NativeClock.php", "language": "php", "file_size": 1508, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Clock\\ClockAwareTrait;\nuse Symfony\\Component\\Clock\\DatePoint;\nuse Symfony\\Component\\Clock\\MockClock;\n\nclass ClockAwareTraitTest extends TestCase\n{\n public function testTrait()\n ", "suffix": "w()->getTimestamp();\n $this->assertEquals($clock->now(), $sut->now());\n $clock->sleep(1);\n $this->assertEquals($clock->now(), $sut->now());\n $this->assertSame(1.0, round($sut->now()->getTimestamp() - $ts, 1));\n }\n}\n\nclass Clo", "middle": " {\n $sut = new ClockAwareTestImplem();\n\n $this->assertInstanceOf(DatePoint::class, $sut->now());\n\n $clock = new MockClock();\n $sut = new $sut();\n $sut->setClock($clock);\n\n $ts = $sut->no", "meta": {"filepath": "src/Symfony/Component/Clock/Tests/ClockAwareTraitTest.php", "language": "php", "file_size": 1077, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Clock\\MockClock;\nuse Symfony\\Component\\Clock\\NativeClock;\nuse Symfony\\Component\\Clock\\Test\\ClockSensitiveTrait;\n\nclass ClockBeforeClassTes", "suffix": "ction tearDownAfterClass(): void\n {\n self::$clock = null;\n }\n\n public function testMockClock()\n {\n $this->assertInstanceOf(MockClock::class, self::$clock);\n $this->assertInstanceOf(NativeClock::class, Clock::get());\n\n ", "middle": "t extends TestCase\n{\n use ClockSensitiveTrait;\n\n private static ?ClockInterface $clock = null;\n\n public static function setUpBeforeClass(): void\n {\n self::$clock = self::mockTime();\n }\n\n public static fun", "meta": {"filepath": "src/Symfony/Component/Clock/Tests/ClockBeforeClassTest.php", "language": "php", "file_size": 1639, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Clock\\DatePoint;\nuse Symfony\\Component\\Clock\\MockClock;\nuse Symfony\\Component\\Clock\\NativeClock;\nuse Symfony\\Component\\Clock\\Test\\ClockSensitiveTrait;\n\nuse function", "suffix": "mockTime();\n $this->assertInstanceOf(MockClock::class, Clock::get());\n $this->assertSame(Clock::get(), $clock);\n }\n\n public function testNativeClock()\n {\n $this->assertInstanceOf(DatePoint::class, now());\n $this->assert", "middle": " Symfony\\Component\\Clock\\now;\n\nclass ClockTest extends TestCase\n{\n use ClockSensitiveTrait;\n\n public function testMockClock()\n {\n $this->assertInstanceOf(NativeClock::class, Clock::get());\n\n $clock = self::", "meta": {"filepath": "src/Symfony/Component/Clock/Tests/ClockTest.php", "language": "php", "file_size": 2910, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Clock\\DatePoint;\nuse Symfony\\Component\\Clock\\Test\\ClockSensitiveTrait;\n\nclass DatePointTest extends TestCase\n{\n use ClockSensitiveTrait;\n\n public function testDatePoint()\n {\n ", "suffix": "his->assertSame('2010-01-29 16:00:00 Europe/Paris', $date->format('Y-m-d H:i:s e'));\n\n $date = new DatePoint('2022-01-28 15:00:00 Europe/Paris');\n $this->assertSame('2022-01-28 15:00:00 Europe/Paris', $date->format('Y-m-d H:i:s e'));\n }\n\n ", "middle": " self::mockTime('2010-01-28 15:00:00 UTC');\n\n $date = new DatePoint();\n $this->assertSame('2010-01-28 15:00:00 UTC', $date->format('Y-m-d H:i:s e'));\n\n $date = new DatePoint('+1 day Europe/Paris');\n $t", "meta": {"filepath": "src/Symfony/Component/Clock/Tests/DatePointTest.php", "language": "php", "file_size": 5029, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Clock\\MockClock;\n\nclass MockClockTest extends TestCase\n{\n public function testConstruct()\n {\n $clock = new MockClock();\n $this->assertSame('UTC', $clock->now()->getTimezone()->getName());\n\n $tz = 'Europe/Pa", "suffix": "());\n\n $clock = new MockClock('now', new \\DateTimeZone($tz));\n $this->assertSame($tz, $clock->now()->getTimezone()->getName());\n\n $now = new \\DateTimeImmutable();\n $clock = new MockClock($now);\n $this->assertEquals($now, ", "middle": "ris';\n $clock = new MockClock($tz);\n $this->assertSame($tz, $clock->now()->getTimezone()->getName());\n\n $clock = new MockClock('now', $tz);\n $this->assertSame($tz, $clock->now()->getTimezone()->getName", "meta": {"filepath": "src/Symfony/Component/Clock/Tests/MockClockTest.php", "language": "php", "file_size": 4164, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Clock\\MonotonicClock;\n\n#[Group('time-sensitive')]\nclass MonotonicClockTest extends TestCase\n{\n public function testConstruct()\n {\n $clock = new MonotonicClock('UTC');\n $", "suffix": " $clock = new MonotonicClock(new \\DateTimeZone($tz));\n $this->assertSame($tz, $clock->now()->getTimezone()->getName());\n }\n\n public function testNow()\n {\n $clock = new MonotonicClock();\n $before = microtime(true);\n usl", "middle": "this->assertSame('UTC', $clock->now()->getTimezone()->getName());\n\n $tz = date_default_timezone_get();\n $clock = new MonotonicClock();\n $this->assertSame($tz, $clock->now()->getTimezone()->getName());\n\n ", "meta": {"filepath": "src/Symfony/Component/Clock/Tests/MonotonicClockTest.php", "language": "php", "file_size": 2106, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Clock\\NativeClock;\n\nclass NativeClockTest extends TestCase\n{\n public function testConstruct()\n {\n $clock = new NativeClock('UTC');\n $this->assertSame('UTC', $clock->now()->getTimezone", "suffix": " $this->assertSame($tz, $clock->now()->getTimezone()->getName());\n }\n\n public function testNow()\n {\n $clock = new NativeClock();\n $before = new \\DateTimeImmutable();\n usleep(10);\n $now = $clock->now();\n usl", "middle": "()->getName());\n\n $tz = date_default_timezone_get();\n $clock = new NativeClock();\n $this->assertSame($tz, $clock->now()->getTimezone()->getName());\n\n $clock = new NativeClock(new \\DateTimeZone($tz));\n ", "meta": {"filepath": "src/Symfony/Component/Clock/Tests/NativeClockTest.php", "language": "php", "file_size": 1930, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Clock\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\After;\nuse PHPUnit\\Framework\\Attributes\\Before;\nuse PHPUnit\\Framework\\Attributes\\BeforeClass;\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Clock\\MockClock;\n\nuse function", "suffix": "kTime() accepts either a string (eg '+1 days' or '2022-12-22'),\n * a DateTimeImmutable, or a boolean (to freeze/restore the global clock).\n *\n * @author Nicolas Grekas \n */\ntrait ClockSensitiveTrait\n{\n public static function mockTime(stri", "middle": " Symfony\\Component\\Clock\\now;\n\n/**\n * Helps with mocking the time in your test cases.\n *\n * This trait provides one self::mockTime() method that freezes the time.\n * It restores the global clock after each test case.\n * self::moc", "meta": {"filepath": "src/Symfony/Component/Clock/Test/ClockSensitiveTrait.php", "language": "php", "file_size": 2004, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Amp\\CancelledException;\nuse Amp\\Http\\Client\\DelegateHttpClient;\nuse Amp\\Http\\Client\\InterceptedHttpClient;\nuse Amp\\Http\\Client\\PooledHttpClient;\nuse Amp\\Http\\Client\\Request;\nuse Amp\\Http\\Tunnel\\Http1TunnelConnector;\nuse Psr\\Log\\LoggerAwareInterface;\nuse Psr\\Log\\LoggerAwareTrait;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\Internal\\AmpClientState;\nuse Symfony\\Component\\HttpClient", "suffix": "treamInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\nif (!interface_exists(DelegateHttpClient::class)) {\n throw new \\LogicException('You cannot use \"Symfony\\Component\\HttpClient\\AmpHttpClient\" as the \"amphp/http-client\" package is not installe", "middle": "\\Response\\AmpResponse;\nuse Symfony\\Component\\HttpClient\\Response\\ResponseStream;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseS", "meta": {"filepath": "src/Symfony/Component/HttpClient/AmpHttpClient.php", "language": "php", "file_size": 6919, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Component\\HttpClient\\Response\\AsyncResponse;\nuse Symfony\\Component\\HttpClient\\Response\\ResponseStream;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseStreamInterface;\n\n/**\n * Eases ", "suffix": "st(string $method, string $url, array $options = []): ResponseInterface;\n\n public function stream(ResponseInterface|iterable $responses, ?float $timeout = null): ResponseStreamInterface\n {\n if ($responses instanceof AsyncResponse) {\n ", "middle": "with processing responses while streaming them.\n *\n * @author Nicolas Grekas \n */\ntrait AsyncDecoratorTrait\n{\n use DecoratorTrait;\n\n /**\n * @return AsyncResponse\n */\n abstract public function reque", "meta": {"filepath": "src/Symfony/Component/HttpClient/AsyncDecoratorTrait.php", "language": "php", "file_size": 1146, "cut_index": 518, "middle_length": 229}} {"prefix": "111\n */\nclass CachingHttpClient implements HttpClientInterface, LoggerAwareInterface, ResetInterface\n{\n use AsyncDecoratorTrait {\n stream as asyncStream;\n AsyncDecoratorTrait::withOptions insteadof HttpClientTrait;\n }\n use HttpClientTrait;\n\n /**\n * The status codes that are cacheable by default.\n */\n private const DEFAULT_CACHEABLE_STATUS_CODES = [200, 203, 204, 300, 301, 308, 404, 405, 410, 414, 501];\n /**\n * The HTTP methods that are always cacheable.\n */\n ", "suffix": " influence the response and may affect caching behavior.\n */\n private const RESPONSE_INFLUENCING_HEADERS = [\n 'accept' => true,\n 'accept-charset' => true,\n 'accept-encoding' => true,\n 'accept-language' => true,\n 'a", "middle": " private const CACHEABLE_METHODS = ['GET', 'HEAD'];\n /**\n * The HTTP methods that are considered safe per RFC 9110.\n */\n private const SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS', 'TRACE'];\n /**\n * Headers that", "meta": {"filepath": "src/Symfony/Component/HttpClient/CachingHttpClient.php", "language": "php", "file_size": 45885, "cut_index": 2151, "middle_length": 229}} {"prefix": "ony\\Contracts\\HttpClient\\ResponseStreamInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * A performant implementation of the HttpClientInterface contracts based on the curl extension.\n *\n * This provides fully concurrent HTTP requests, with transparent\n * HTTP/2 push when a curl version that supports it is installed.\n *\n * @author Nicolas Grekas \n */\nfinal class CurlHttpClient implements HttpClientInterface, LoggerAwareInterface, ResetInterface\n{\n use HttpClientTrait;\n\n pu", "suffix": "ng - an array containing the username as first value, and optionally the\n // password as the second one; or string like username:password - enabling NTLM auth\n 'auth_ntlm' => null,\n 'extra' => [\n 'use_persistent_connections", "middle": "blic const OPTIONS_DEFAULTS = HttpClientInterface::OPTIONS_DEFAULTS + [\n 'crypto_method' => \\STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,\n ];\n\n private array $defaultOptions = self::OPTIONS_DEFAULTS + [\n // array|stri", "meta": {"filepath": "src/Symfony/Component/HttpClient/CurlHttpClient.php", "language": "php", "file_size": 25824, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseStreamInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Eases with writing decorato", "suffix": "ttpClient::create();\n }\n\n public function request(string $method, string $url, array $options = []): ResponseInterface\n {\n return $this->client->request($method, $url, $options);\n }\n\n public function stream(ResponseInterface|iterable ", "middle": "rs.\n *\n * @author Nicolas Grekas \n */\ntrait DecoratorTrait\n{\n private HttpClientInterface $client;\n\n public function __construct(?HttpClientInterface $client = null)\n {\n $this->client = $client ?? H", "meta": {"filepath": "src/Symfony/Component/HttpClient/DecoratorTrait.php", "language": "php", "file_size": 1478, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Component\\HttpClient\\Internal\\FollowRedirectsTrait;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Decorator that resolves host names using a custom resolver before delegating to the transport.\n *\n * The resolv", "suffix": "ts own DNS resolution. When it returns null, the transport's default\n * DNS resolution is used. Hosts that are already in the \"resolve\" option or that are IP addresses are\n * not passed to it.\n *\n * Note that using this decorator opts out of the asynchrono", "middle": "er is called for the requested host and for the host of every followed redirect. When it\n * returns an IP address, the result is injected into the \"resolve\" option so that the transport connects\n * to that IP without performing i", "meta": {"filepath": "src/Symfony/Component/HttpClient/DnsResolvingHttpClient.php", "language": "php", "file_size": 3377, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Component\\HttpClient\\Chunk\\DataChunk;\nuse Symfony\\Component\\HttpClient\\Chunk\\ServerSentEvent;\nuse Symfony\\Component\\HttpClient\\Exception\\EventSourceException;\nuse Symfony\\Component\\HttpClient\\Response\\AsyncContext;\nuse Symfony\\Component\\HttpClient\\Response\\AsyncResponse;\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient", "suffix": "EventSourceHttpClient implements HttpClientInterface, ResetInterface\n{\n use AsyncDecoratorTrait, HttpClientTrait {\n AsyncDecoratorTrait::withOptions insteadof HttpClientTrait;\n }\n\n public function __construct(\n ?HttpClientInterface $", "middle": "\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * @author Antoine Bluchet \n * @author Nicolas Grekas \n */\nfinal class ", "meta": {"filepath": "src/Symfony/Component/HttpClient/EventSourceHttpClient.php", "language": "php", "file_size": 5935, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhp;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\When;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Sy", "suffix": "\\Fixtures\\WhenTestWithAttributes;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\WhenTestWithClosure;\n\nfinal class WhenTest extends TestCase\n{\n public function testMissingConstraints()\n {\n $this->expectException(MissingOptionsExcep", "middle": "mfony\\Component\\Validator\\Exception\\MissingOptionsException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Validator\\Tests\\Constraints", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php", "language": "php", "file_size": 6230, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraints\\Blank;\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\NegativeOrZero;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\PositiveOrZero;\nuse Symfony\\Component\\Validator\\Cons", "suffix": "s ConstraintValidatorTestCase\n{\n public function testConstraintsAreExecuted()\n {\n $constraints = [\n new NotNull(),\n new NotBlank(),\n ];\n\n $this->expectValidateValue(0, 'Foo', $constraints);\n\n $this->v", "middle": "traints\\When;\nuse Symfony\\Component\\Validator\\Constraints\\WhenValidator;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\nfinal class WhenValidatorTest extend", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/WhenValidatorTest.php", "language": "php", "file_size": 8325, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Validator\\Constraints\\WordCount;\nuse Symfony\\Component\\Validator\\Constraints\\WordCountValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validat", "suffix": "nction createValidator(): WordCountValidator\n {\n return new WordCountValidator();\n }\n\n #[DataProvider('provideValidValues')]\n public function testValidWordCount(string|\\Stringable|null $value, int $expectedWordCount)\n {\n $this-", "middle": "or\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\StringableValue;\n\n#[RequiresPhpExtension('intl')]\nclass WordCountValidatorTest extends ConstraintValidatorTestCase\n{\n protected fu", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/WordCountValidatorTest.php", "language": "php", "file_size": 3148, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Validator\\Constraints\\Xml;\nuse Symfony\\Component\\Validator\\Constraints\\XmlValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse ", "suffix": "teValidator(): XmlValidator\n {\n return new XmlValidator();\n }\n\n #[DataProvider('getValidXmlFormatValues')]\n public function testValidXmlFormatValue($value)\n {\n $this->validate($value, new Xml());\n $this->assertNoViolatio", "middle": "Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures\\StringableValue;\n\n#[RequiresPhpExtension('simplexml')]\n#[RequiresPhpExtension('dom')]\nclass XmlValidatorTest extends ConstraintValidatorTestCase\n{\n protected function crea", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/XmlValidatorTest.php", "language": "php", "file_size": 5274, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Yaml;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Yaml\\Yaml as YamlP", "suffix": "oader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default',", "middle": "arser;\n\n/**\n * @author Kev \n */\nclass YamlTest extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(YamlDummy::class);\n $loader = new AttributeL", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/YamlTest.php", "language": "php", "file_size": 1754, "cut_index": 537, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures;\n\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\When;\n\n#[Whe", "suffix": "static function () {\n return true;\n }, constraints: new Callback('isValid')\n)]\nclass WhenTestWithClosure\n{\n #[When(expression: static function () {\n return true;\n }, constraints: [\n new NotNull(),\n new NotBlank(),\n ]", "middle": "n(expression: ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/Fixtures/WhenTestWithClosure.php", "language": "php", "file_size": 815, "cut_index": 522, "middle_length": 14}} {"prefix": "ts\\Cascade;\nuse Symfony\\Component\\Validator\\Constraints\\Composite;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\GroupDefinitionException;\nuse Symfony\\Component\\Validator\\Mapping\\CascadingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\CascadingEntity;\nuse Symfony\\Comp", "suffix": "s\\Fixtures\\ConstraintA;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\ConstraintB;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\GroupSequenceProviderChildEntity;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute\\Entity;\nuse Symfony\\Componen", "middle": "onent\\Validator\\Tests\\Fixtures\\CascadingEntityIntersection;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\CascadingEntityUnion;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\ClassConstraint;\nuse Symfony\\Component\\Validator\\Test", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php", "language": "php", "file_size": 14560, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Exception\\ValidatorException;\nuse Symfony\\Component\\Validator\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\Entity_74;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\Entity_74_Proxy;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\E", "suffix": "LASSNAME = Entity::class;\n private const CLASSNAME_74 = 'Symfony\\Component\\Validator\\Tests\\Fixtures\\Entity_74';\n private const CLASSNAME_74_PROXY = 'Symfony\\Component\\Validator\\Tests\\Fixtures\\Entity_74_Proxy';\n private const PARENTCLASS = EntityPa", "middle": "ntityWithHook;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute\\Entity;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute\\EntityParent;\n\nclass PropertyMetadataTest extends TestCase\n{\n private const C", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/PropertyMetadataTest.php", "language": "php", "file_size": 4148, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\StaticMethodLoader;\nuse Symfony\\Componen", "suffix": " $loader = $this->getFilesLoader(new StaticMethodLoader());\n $this->assertEquals(4, $loader->getTimesCalled());\n }\n\n public function testCallsActualFileLoaderForMetadata()\n {\n $fileLoader = $this->createMock(LoaderInterface::class);", "middle": "t\\Validator\\Tests\\Fixtures\\FilesLoader;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute\\Entity;\n\nclass FilesLoaderTest extends TestCase\n{\n public function testCallsGetFileLoaderInstanceForeachPath()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/Loader/FilesLoaderTest.php", "language": "php", "file_size": 1606, "cut_index": 537, "middle_length": 229}} {"prefix": "nfo\\PropertyAccessExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\Type as LegacyType;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\Validator\\Constraints\\All;\nuse Symfony\\Component\\Validator\\Constraints\\Iban;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraint", "suffix": "t\\Validator\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute\\Entity;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\PropertyInfoLoaderEntity;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\PropertyInfoLoaderNoAutoMap", "middle": "s\\Type as TypeConstraint;\nuse Symfony\\Component\\Validator\\Mapping\\AutoMappingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\PropertyInfoLoader;\nuse Symfony\\Componen", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/Loader/PropertyInfoLoaderTest.php", "language": "php", "file_size": 14402, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\StaticMethodLoader;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\ConstraintA;\n\nclass StaticMethodLoaderTest extends TestCase\n{\n private int $errorLevel;\n\n protected function", "suffix": "cessful()\n {\n $loader = new StaticMethodLoader('loadMetadata');\n $metadata = new ClassMetadata(StaticLoaderEntity::class);\n\n $this->assertTrue($loader->loadClassMetadata($metadata));\n }\n\n public function testLoadClassMetadataR", "middle": " setUp(): void\n {\n $this->errorLevel = error_reporting();\n }\n\n protected function tearDown(): void\n {\n error_reporting($this->errorLevel);\n }\n\n public function testLoadClassMetadataReturnsTrueIfSuc", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php", "language": "php", "file_size": 3964, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping\\Loader;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\All;\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\Choice;\nuse Symfony\\Component\\Validator\\Constraints\\Collection;\nuse Symfony\\Component\\Validator\\Constraints\\Email;\nuse Symfony\\Component\\Validator\\Constraints\\IsTrue;\nuse Symfony\\Component\\Va", "suffix": "ts\\Required;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\Validator\\Tests\\Dummy\\DummyGroupProvider;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\Attribute\\Grou", "middle": "lidator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\Optional;\nuse Symfony\\Component\\Validator\\Constraints\\Range;\nuse Symfony\\Component\\Validator\\Constrain", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php", "language": "php", "file_size": 7661, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping\\Factory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Exception\\NoSuchMetadataException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\LazyLoadingMetadat", "suffix": "tor\\Tests\\Fixtures\\NestedAttribute\\Entity;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute\\EntityParent;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\PropertyGetter;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\PropertyGetterInterface;\n\n", "middle": "aFactory;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\StaticMethodLoader;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\ConstraintA;\nuse Symfony\\Component\\Valida", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php", "language": "php", "file_size": 6626, "cut_index": 716, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Contracts\\Service\\ServiceLocatorTrait;\n\nclass RecursiveValidatorTest extends TestCase\n{\n private const ENTITY_CLASS = Entity::class;\n private const REFERENCE_CLASS = Reference::class;\n\n private FakeMetadataFactory $metadataFactory;\n private ClassMetadata $metadata;\n private ClassMetadata $referenceMetadata;\n private ValidatorInterface $validator;\n\n protected function setUp(): void\n {\n $this->metadataFac", "suffix": "tadata);\n $this->metadataFactory->addMetadata($this->referenceMetadata);\n $this->metadataFactory->addMetadata(new ClassMetadata(LazyProperty::class));\n\n $this->validator = $this->createValidator($this->metadataFactory);\n }\n\n prot", "middle": "tory = new FakeMetadataFactory();\n $this->metadata = new ClassMetadata(self::ENTITY_CLASS);\n $this->referenceMetadata = new ClassMetadata(self::REFERENCE_CLASS);\n $this->metadataFactory->addMetadata($this->me", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Validator/RecursiveValidatorTest.php", "language": "php", "file_size": 97617, "cut_index": 3790, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Validator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\nuse Symfony\\Component\\Validator\\Mapping\\MetadataInterface;", "suffix": "tends TestCase\n{\n public function testValidate()\n {\n $originalValidator = $this->createMock(ValidatorInterface::class);\n $violations = new ConstraintViolationList([\n $this->createStub(ConstraintViolation::class),\n ", "middle": "\nuse Symfony\\Component\\Validator\\Validator\\ContextualValidatorInterface;\nuse Symfony\\Component\\Validator\\Validator\\TraceableValidator;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\nclass TraceableValidatorTest ex", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Validator/TraceableValidatorTest.php", "language": "php", "file_size": 4255, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Week;\nuse Symfony\\Component\\Validator\\Constraints\\WeekValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Valida", "suffix": "vider('provideWeekNumber')]\n public function testWeekIsValidWeekNumber(string|\\Stringable $value, bool $expectedViolation)\n {\n $constraint = new Week();\n $this->validate($value, $constraint);\n\n if ($expectedViolation) {\n ", "middle": "tor\\Tests\\Constraints\\Fixtures\\StringableValue;\n\nclass WeekValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): WeekValidator\n {\n return new WeekValidator();\n }\n\n #[DataPro", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/WeekValidatorTest.php", "language": "php", "file_size": 4142, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\WordCount;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\MissingOptionsException;\nuse Symfony\\Component\\Validator\\Mapp", "suffix": "ount(min: 1, locale: 'en');\n\n $this->assertSame('en', $wordCount->locale);\n }\n\n public function testOnlyMinIsSet()\n {\n $wordCount = new WordCount(1);\n\n $this->assertSame(1, $wordCount->min);\n $this->assertNull($wordCoun", "middle": "ing\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n#[RequiresPhpExtension('intl')]\nclass WordCountTest extends TestCase\n{\n public function testLocaleIsSet()\n {\n $wordCount = new WordC", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/WordCountTest.php", "language": "php", "file_size": 4666, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Validator\\Constraints\\Yaml;\nuse Symfony\\Component\\Validator\\Constraints\\YamlValidator;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\nuse Symfony\\Component\\Yaml\\Yaml as YamlParser;\n\n/**\n * @author Kev validate($value, new Yaml());\n\n $this->assertNoViolation();\n }\n\n public function testYamlWithFlags()\n {\n $this->validate('date: 2023-01-01', new Yaml(flags: YamlParser::PARSE_DATETIME))", "middle": "l>\n */\nclass YamlValidatorTest extends ConstraintValidatorTestCase\n{\n protected function createValidator(): YamlValidator\n {\n return new YamlValidator();\n }\n\n #[DataProvider('getValidValues')]\n public functi", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/YamlValidatorTest.php", "language": "php", "file_size": 4407, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Exception\\ValidatorException;\nuse Symfony\\Component\\Validator\\Mapping\\GetterMetadata;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute\\Entity;\n\nclass GetterMetadataTest extends TestCase\n{\n p", "suffix": "ction testGetPropertyValueFromPublicGetter()\n {\n $entity = new Entity('foobar');\n $metadata = new GetterMetadata(self::CLASSNAME, 'internal');\n\n $this->assertEquals('foobar from getter', $metadata->getPropertyValue($entity));\n }\n", "middle": "rivate const CLASSNAME = Entity::class;\n\n public function testInvalidPropertyName()\n {\n $this->expectException(ValidatorException::class);\n\n new GetterMetadata(self::CLASSNAME, 'foobar');\n }\n\n public fun", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/GetterMetadataTest.php", "language": "php", "file_size": 2187, "cut_index": 563, "middle_length": 229}} {"prefix": "mponent\\Validator\\Constraints\\All;\nuse Symfony\\Component\\Validator\\Constraints\\AtLeastOneOf;\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\Choice;\nuse Symfony\\Component\\Validator\\Constraints\\Collection;\nuse Symfony\\Component\\Validator\\Constraints\\Email;\nuse Symfony\\Component\\Validator\\Constraints\\Expression;\nuse Symfony\\Component\\Validator\\Constraints\\IsTrue;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\", "suffix": " Symfony\\Component\\Validator\\Constraints\\Type;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Validator\\Tests\\D", "middle": "NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\Optional;\nuse Symfony\\Component\\Validator\\Constraints\\Range;\nuse Symfony\\Component\\Validator\\Constraints\\Required;\nuse Symfony\\Component\\Validator\\Constraints\\Sequentially;\nuse", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/Loader/AttributeLoaderTest.php", "language": "php", "file_size": 13748, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\All;\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\Choice;\nuse Symfony\\Component\\Validator\\Constraints\\Collection;\nuse Symfony\\Component\\Validator\\Constraints\\Email;\nuse Symfony\\Component\\Validator\\Constraints\\IsTrue;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Compo", "suffix": "raints\\Required;\nuse Symfony\\Component\\Validator\\Constraints\\Traverse;\nuse Symfony\\Component\\Validator\\Exception\\MappingException;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\XmlFileLoader;\nuse Symf", "middle": "nent\\Validator\\Constraints\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\Optional;\nuse Symfony\\Component\\Validator\\Constraints\\Range;\nuse Symfony\\Component\\Validator\\Constraints\\Regex;\nuse Symfony\\Component\\Validator\\Const", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php", "language": "php", "file_size": 7303, "cut_index": 716, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping\\Factory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\BlackHoleMetadataFactory;\n\nclass BlackHoleMetadataFactoryTest extends TestCase\n{\n public", "suffix": " {\n $this->expectException(LogicException::class);\n (new BlackHoleMetadataFactory())->getMetadataFor('foo');\n }\n\n public function testHasMetadataForReturnsFalse()\n {\n $this->assertFalse((new BlackHoleMetadataFactory())->has", "middle": " function testGetMetadataForThrowsALogicException()\n", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/Factory/BlackHoleMetadataFactoryTest.php", "language": "php", "file_size": 866, "cut_index": 529, "middle_length": 52}} {"prefix": "new LazyLoadingMetadataFactory(new AttributeLoader()));\n\n $tester = new CommandTester($command);\n $tester->execute(['class' => DummyClassOne::class], ['decorated' => false]);\n\n $this->assertSame(<<\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClassExistsMock;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\Validator\\Constraint", "suffix": "atic function setUpBeforeClass(): void\n {\n ClassExistsMock::register(When::class);\n ClassExistsMock::withMockedClasses([\n ExpressionLanguage::class => false,\n ]);\n }\n\n public static function tearDownAfterClass(): vo", "middle": "s\\NotNull;\nuse Symfony\\Component\\Validator\\Constraints\\When;\nuse Symfony\\Component\\Validator\\Exception\\LogicException;\n\n#[RunTestsInSeparateProcesses]\nfinal class WhenWithoutExpressionLanguageTest extends TestCase\n{\n public st", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/WhenWithoutExpressionLanguageTest.php", "language": "php", "file_size": 1699, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Xml;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Validator\\Mapping\\C", "suffix": " $metadata = new ClassMetadata(XmlDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata));\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::as", "middle": "lassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n#[RequiresPhpExtension('simplexml')]\n#[RequiresPhpExtension('dom')]\nclass XmlTest extends TestCase\n{\n public function testAttributes()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/XmlTest.php", "language": "php", "file_size": 3103, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderChain;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderInterface;\n\nclass LoaderChainTest extends TestCase\n{\n public ", "suffix": "etadata')\n ->with($this->equalTo($metadata));\n\n $loader2 = $this->createMock(LoaderInterface::class);\n $loader2->expects($this->once())\n ->method('loadClassMetadata')\n ->with($this->equalTo($metadata));\n\n ", "middle": "function testAllLoadersAreCalled()\n {\n $metadata = new ClassMetadata('\\stdClass');\n\n $loader1 = $this->createMock(LoaderInterface::class);\n $loader1->expects($this->once())\n ->method('loadClassM", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/Loader/LoaderChainTest.php", "language": "php", "file_size": 2377, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Resources;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Util\\XliffUtils;\n\nclass TranslationFilesTest extends TestCase\n{\n #[DataProvider('provideTranslationFiles')]\n public function", "suffix": "0, $errors, \\sprintf('\"%s\" is invalid:%s', $filePath, \\PHP_EOL.implode(\\PHP_EOL, array_column($errors, 'message'))));\n }\n\n #[DataProvider('provideTranslationFiles')]\n public function testTranslationFileIsValidWithoutEntityLoader($filePath)\n {\n ", "middle": " testTranslationFileIsValid($filePath)\n {\n $document = new \\DOMDocument();\n $document->loadXML(file_get_contents($filePath));\n\n $errors = XliffUtils::validateSchema($document);\n\n $this->assertCount(", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Resources/TranslationFilesTest.php", "language": "php", "file_size": 1908, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Constraints\\Fixtures;\n\nuse Symfony\\Component\\Validator\\Constraints\\Callback;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\NotNull;\nuse Sy", "suffix": "new NotBlank(),\n ])]\n private $foo;\n\n #[When(expression: 'false', constraints: [\n new NotNull(),\n new NotBlank(),\n ], groups: ['foo'])]\n private $bar;\n\n #[When(expression: 'true', constraints: new NotNull(), groups: ['foo'])", "middle": "mfony\\Component\\Validator\\Constraints\\When;\n\n#[When(expression: 'true', constraints: [\n new Callback('callback'),\n])]\nclass WhenTestWithAttributes\n{\n #[When(expression: 'true', constraints: [\n new NotNull(),\n ", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Constraints/Fixtures/WhenTestWithAttributes.php", "language": "php", "file_size": 1372, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Violation;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\IdentityTranslator;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\Violation\\ConstraintViolationBuilder;\nuse", "suffix": " is invalid';\n private ConstraintViolationBuilder $builder;\n\n protected function setUp(): void\n {\n $this->root = [\n 'data' => [\n 'foo' => 'bar',\n 'baz' => 'foobar',\n ],\n ];\n ", "middle": " Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass ConstraintViolationBuilderTest extends TestCase\n{\n private array $root;\n private ConstraintViolationList $violations;\n private string $messageTemplate = '%value%", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Violation/ConstraintViolationBuilderTest.php", "language": "php", "file_size": 4478, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Test;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse Symfony\\Component\\Validator\\Constraints\\Compound;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\NotBlank;\nuse Symfony\\Component\\Validator\\Constraints\\Regex;\nuse Symfony\\C", "suffix": "Test extends CompoundConstraintTestCase\n{\n protected function createCompound(): Compound\n {\n return new DummyCompoundConstraint();\n }\n\n public function testAssertNoViolation()\n {\n $this->validateValue('ab1');\n\n $this->as", "middle": "omponent\\Validator\\Test\\CompoundConstraintTestCase;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\DummyCompoundConstraint;\n\n/**\n * @extends CompoundConstraintTestCase\n */\nclass CompoundConstraintTestCase", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Test/CompoundConstraintTestCaseTest.php", "language": "php", "file_size": 2927, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Validator\\Tests\\Mapping;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Validator\\Constraints\\Collection;\nuse Symfony\\Component\\Validator\\Constraints\\Composite;\nuse Symfony\\Component\\Validator\\Constraints\\Required;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nu", "suffix": "straintB;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttribute\\Entity;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\PropertyConstraint;\n\nclass MemberMetadataTest extends TestCase\n{\n protected MemberMetadata $metadata;\n\n protected function", "middle": "se Symfony\\Component\\Validator\\Mapping\\MemberMetadata;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\ClassConstraint;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\ConstraintA;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\Con", "meta": {"filepath": "src/Symfony/Component/Validator/Tests/Mapping/MemberMetadataTest.php", "language": "php", "file_size": 4230, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Exception;\n\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\ntrait HttpExceptionTrait\n{\n public function __construct(\n private ResponseInterface $response,\n ) {\n $code = $response->getInfo('http_c", "suffix": "'response_headers')) as $h) {\n if (str_starts_with($h, 'HTTP/')) {\n if ($httpCodeFound) {\n break;\n }\n\n $message = \\sprintf('%s returned for \"%s\".', $h, $url);\n $httpC", "middle": "ode');\n $url = $response->getInfo('url');\n $message = \\sprintf('HTTP %d returned for \"%s\".', $code, $url);\n\n $httpCodeFound = false;\n $isJson = false;\n foreach (array_reverse($response->getInfo(", "meta": {"filepath": "src/Symfony/Component/HttpClient/Exception/HttpExceptionTrait.php", "language": "php", "file_size": 2690, "cut_index": 563, "middle_length": 229}} {"prefix": "e Symfony\\Component\\HttpClient\\Chunk\\DataChunk;\nuse Symfony\\Component\\HttpClient\\Chunk\\ErrorChunk;\nuse Symfony\\Component\\HttpClient\\Chunk\\FirstChunk;\nuse Symfony\\Component\\HttpClient\\Chunk\\LastChunk;\nuse Symfony\\Component\\HttpClient\\Chunk\\ServerSentEvent;\nuse Symfony\\Component\\HttpClient\\EventSourceHttpClient;\nuse Symfony\\Component\\HttpClient\\Exception\\EventSourceException;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\HttpClie", "suffix": "\\r\"])]\n #[TestWith([\"\\r\\n\"])]\n public function testGetServerSentEvents(string $sep)\n {\n $es = new EventSourceHttpClient(new MockHttpClient(function (string $method, string $url, array $options) use ($sep): MockResponse {\n $this->", "middle": "nt\\Response\\ResponseStream;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Antoine Bluchet \n */\nclass EventSourceHttpClientTest extends TestCase\n{\n #[TestWith([\"\\n\"])]\n #[TestWith([\"", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/EventSourceHttpClientTest.php", "language": "php", "file_size": 9249, "cut_index": 921, "middle_length": 229}} {"prefix": "akeHandler();\n\n $handler(new Request('GET', 'https://example.com/', ['X-Custom-Header' => 'my-value']), [])->wait();\n\n // MockHttpClient normalises headers into normalized_headers as \"Name: value\" strings.\n $this->assertContains('X-Custom-Header: my-value', $spy->options['normalized_headers']['x-custom-header'] ?? []);\n }\n\n public function testGuzzleHeadersOptionMergesWithRequestHeaders()\n {\n [$handler, $spy] = $this->makeHandler();\n\n $handler(\n new Req", "suffix": "]['x-from-request'] ?? []);\n $this->assertContains('X-From-Options: opt', $spy->options['normalized_headers']['x-from-options'] ?? []);\n }\n\n public function testBodyIsForwarded()\n {\n [$handler, $spy] = $this->makeHandler();\n\n ", "middle": "uest('GET', 'https://example.com/', ['X-From-Request' => 'req']),\n ['headers' => ['X-From-Options' => 'opt']],\n )->wait();\n\n $this->assertContains('X-From-Request: req', $spy->options['normalized_headers'", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/GuzzleHttpHandlerTest.php", "language": "php", "file_size": 34837, "cut_index": 2151, "middle_length": 229}} {"prefix": "ttpClient;\nuse Symfony\\Component\\Process\\Exception\\ProcessFailedException;\nuse Symfony\\Component\\Process\\Process;\nuse Symfony\\Contracts\\HttpClient\\Exception\\RedirectionExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\Test\\HttpClientTestCase as BaseHttpClientTestCase;\nuse Symfony\\Contracts\\HttpClient\\Test\\TestHttpServer;\n\n/*\nTests for HTTP2 Push need a recent version of both PHP and curl. This docker command should run them:\ndocker run -it --rm -v $(p", "suffix": "/vulcain_0.1.3_Linux_x86_64.tar.gz - see https://github.com/dunglas/vulcain for source\n*/\n\nabstract class HttpClientTestCase extends BaseHttpClientTestCase\n{\n private static bool $vulcainStarted = false;\n\n public function testTimeoutOnDestruct()\n ", "middle": "wd):/app -v /path/to/vulcain:/usr/local/bin/vulcain -w /app php:7.3-alpine ./phpunit src/Symfony/Component/HttpClient --filter Push\nThe vulcain binary can be found at https://github.com/symfony/binary-utils/releases/download/v0.1", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/HttpClientTestCase.php", "language": "php", "file_size": 27710, "cut_index": 1331, "middle_length": 229}} {"prefix": "iresPhpExtension;\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\HttpClient\\HttpClientTrait;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass HttpClientTraitTest extends TestCase\n{\n use HttpClientTrait;\n\n private const RFC3986_BASE = 'http://a/b/c/d;p?q';\n\n #[DataProvider('providePrepareRequestUrl')]\n public function testP", "suffix": "self::prepareRequest(null, null, $defaults);\n\n [$url] = self::prepareRequest(null, $url, ['query' => $query], $defaults);\n $this->assertSame($expected, implode('', $url));\n }\n\n public static function providePrepareRequestUrl(): iterable", "middle": "repareRequestUrl(string $expected, string $url, array $query = [])\n {\n $defaults = [\n 'base_uri' => 'http://example.com?c=c',\n 'query' => ['a' => 1, 'b' => 'b'],\n ];\n [, $defaults] = ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php", "language": "php", "file_size": 17181, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\HttpOptions;\n\n/**\n * @author Kévin Dunglas \n */\nclass HttpOptionsTest extends TestCase\n{\n public static function provi", "suffix": "der('provideSetAuthBasic')]\n public function testSetAuthBasic(string $expected, string $user, string $password = '')\n {\n $this->assertSame($expected, (new HttpOptions())->setAuthBasic($user, $password)->toArray()['auth_basic']);\n }\n\n pub", "middle": "deSetAuthBasic(): iterable\n {\n yield ['user:password', 'user', 'password'];\n yield ['user:password', 'user:password'];\n yield ['user', 'user'];\n yield ['user:0', 'user', '0'];\n }\n\n #[DataProvi", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/HttpOptionsTest.php", "language": "php", "file_size": 1984, "cut_index": 537, "middle_length": 229}} {"prefix": "nt\\Exception\\RequestException;\nuse Http\\Promise\\FulfilledPromise;\nuse Http\\Promise\\Promise;\nuse PHPUnit\\Framework\\Attributes\\RequiresFunction;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\HttplugClient;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\NativeHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Contracts\\HttpClie", "suffix": "tSendRequest()\n {\n $client = new HttplugClient(new NativeHttpClient());\n\n $response = $client->sendRequest($client->createRequest('GET', 'http://localhost:8057'));\n\n $this->assertSame(200, $response->getStatusCode());\n $this-", "middle": "nt\\Test\\TestHttpServer;\n\nclass HttplugClientTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n TestHttpServer::start();\n }\n\n #[RequiresFunction('ob_gzhandler')]\n public function tes", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/HttplugClientTest.php", "language": "php", "file_size": 12929, "cut_index": 921, "middle_length": 229}} {"prefix": "nseStream;\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass MockHttpClientTest extends HttpClientTestCase\n{\n #[DataProvider('mockingProvider')]\n public function testMocking($factory, array $expectedResponses)\n {\n $client = new MockHttpClient($factory);\n $this->assertSame(0, $client->getRequestsCount());\n\n $urls = ['/foo', '/bar'];\n foreach ($urls as $i => $url) {\n $response = $client->request('POST',", "suffix": "der(): iterable\n {\n yield 'callable' => [\n static fn (string $method, string $url, array $options = []) => new MockResponse($method.': '.$url.' (body='.$options['body'].')'),\n [\n 'POST: https://example.com/foo", "middle": " $url, ['body' => 'payload']);\n $this->assertEquals($expectedResponses[$i], $response->getContent());\n }\n\n $this->assertSame(2, $client->getRequestsCount());\n }\n\n public static function mockingProvi", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/MockHttpClientTest.php", "language": "php", "file_size": 22599, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Bridge\\PhpUnit\\DnsMock;\nuse Symfony\\Component\\HttpClient\\NativeHttpClient;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\Test\\TestHttpServer;\n\n#[Group('dns-sensitive')]\nclass NativeHttp", "suffix": " $this->markTestSkipped('NativeHttpClient doesn\\'t support informational status codes.');\n }\n\n public function testTimeoutOnInitialize()\n {\n $this->markTestSkipped('NativeHttpClient doesn\\'t support opening concurrent requests.');\n ", "middle": "ClientTest extends HttpClientTestCase\n{\n protected function getHttpClient(string $testCase): HttpClientInterface\n {\n return new NativeHttpClient();\n }\n\n public function testInformationalResponseStream()\n {\n ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/NativeHttpClientTest.php", "language": "php", "file_size": 2159, "cut_index": 563, "middle_length": 229}} {"prefix": "ymfony\\Bridge\\PhpUnit\\DnsMock;\nuse Symfony\\Component\\HttpClient\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\NoPrivateNetworkHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\n\nclass NoPrivateNetworkHttpClientTest extends TestCase\n{\n public static function getExcludeIpData(): array\n {\n return [\n // private\n ['0.0.0.1', ", "suffix": " ['172.16.0.1', null, true],\n ['192.168.0.1', null, true],\n ['::1', null, true],\n ['::ffff:0:1', null, true],\n ['fe80::1', null, true],\n ", "middle": " null, true],\n ['169.254.0.1', null, true],\n ['127.0.0.1', null, true],\n ['240.0.0.1', null, true],\n ['10.0.0.1', null, true],\n ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/NoPrivateNetworkHttpClientTest.php", "language": "php", "file_size": 10087, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests;\n\nuse Nyholm\\Psr7\\Factory\\Psr17Factory;\nuse PHPUnit\\Framework\\Attributes\\RequiresFunction;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\NativeHttpClient;\nuse Symfony\\Component\\HttpClient\\Psr18Client;\nuse Symfony\\Component\\HttpClient\\Psr18NetworkException;\nuse Symfony\\Component\\HttpClient\\Psr18RequestException;\nuse Symfony\\Component\\HttpClient\\Response\\MockRespon", "suffix": "ndler')]\n public function testSendRequest()\n {\n $factory = new Psr17Factory();\n $client = new Psr18Client(new NativeHttpClient(), $factory, $factory);\n\n $response = $client->sendRequest($factory->createRequest('GET', 'http://loca", "middle": "se;\nuse Symfony\\Contracts\\HttpClient\\Test\\TestHttpServer;\n\nclass Psr18ClientTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n TestHttpServer::start();\n }\n\n #[RequiresFunction('ob_gzha", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/Psr18ClientTest.php", "language": "php", "file_size": 5781, "cut_index": 716, "middle_length": 229}} {"prefix": "Symfony\\Component\\HttpClient\\Retry\\RetryStrategyInterface;\nuse Symfony\\Component\\HttpClient\\RetryableHttpClient;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\HttpClient\\Test\\TestHttpServer;\n\nclass RetryableHttpClientTest extends TestCase\n{\n public function testRetryOnError()\n {\n $client = new RetryableHttpClient(\n new MockHttpClien", "suffix": "se = $client->request('GET', 'http://example.com/foo-bar');\n\n self::assertSame(200, $response->getStatusCode());\n }\n\n public function testRetryRespectStrategy()\n {\n $client = new RetryableHttpClient(\n new MockHttpClient([\n", "middle": "t([\n new MockResponse('', ['http_code' => 500]),\n new MockResponse('', ['http_code' => 200]),\n ]),\n new GenericRetryStrategy([500], 0),\n 1\n );\n\n $respon", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/RetryableHttpClientTest.php", "language": "php", "file_size": 20550, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\HttpClient\\Retry\\GenericRetryStrategy;\nuse Symfony\\Component\\HttpClient\\RetryableHttpClient;\nuse Symfony\\Component\\HttpClient\\ScopingHttpClient;\n\nclass Scop", "suffix": "tException::class);\n $client->request('GET', '/foo');\n }\n\n public function testRelativeUrlWithDefaultRegexp()\n {\n $mockClient = new MockHttpClient();\n $client = new ScopingHttpClient($mockClient, ['.*' => ['base_uri' => 'http:", "middle": "ingHttpClientTest extends TestCase\n{\n public function testRelativeUrl()\n {\n $mockClient = new MockHttpClient();\n $client = new ScopingHttpClient($mockClient, []);\n\n $this->expectException(InvalidArgumen", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/ScopingHttpClientTest.php", "language": "php", "file_size": 5155, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\HttpClient\\ThrottlingHttpClient;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactory;\nuse Symfony\\Component\\RateLimite", "suffix": "andler should\\'t have been called, but it was called with %f.', $duration));\n };\n\n $pauseHandler = static fn (float $expectedDuration) => static function (float $duration) use ($expectedDuration) {\n self::assertEqualsWithDelta($exp", "middle": "r\\Storage\\InMemoryStorage;\n\nclass ThrottlingHttpClientTest extends TestCase\n{\n public function testThrottling()\n {\n $failPauseHandler = static function (float $duration) {\n self::fail(\\sprintf('The pause h", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/ThrottlingHttpClientTest.php", "language": "php", "file_size": 2290, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Exception\\ClientException;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\NativeHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\HttpClient\\TraceableHttpClient;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface;\nuse Symfony\\Contr", "suffix": ");\n }\n\n public function testItTracesRequest()\n {\n $httpClient = $this->createStub(HttpClientInterface::class);\n $httpClient\n ->method('request')\n ->willReturnCallback(function (string $method, string $url, array", "middle": "acts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\Test\\TestHttpServer;\n\nclass TraceableHttpClientTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n TestHttpServer::start(", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/TraceableHttpClientTest.php", "language": "php", "file_size": 8842, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\HttpClient\\UriTemplateHttpClient;\n\nfinal class UriTemplateHttpClientTest extends TestCase\n{\n public function testExpanderIsCalled()\n {\n $client = new UriTemp", "suffix": "([\n 'version' => 'v2',\n 'resource' => 'users',\n 'page' => 33,\n ], $vars);\n\n return 'https://foo.tld/v2/users?page=33';\n },\n [\n 'vers", "middle": "lateHttpClient(\n new MockHttpClient(),\n function (string $url, array $vars): string {\n $this->assertSame('https://foo.tld/{version}/{resource}{?page}', $url);\n $this->assertSame", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/UriTemplateHttpClientTest.php", "language": "php", "file_size": 4123, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\Chunk;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Chunk\\ServerSentEvent;\nuse Symfony\\Component\\HttpClient\\Exception\\JsonException;\n\n/**\n * @author Antoine Bluchet \n */\nclass ServerSentEventTest extends TestCase\n{\n public function testParse()\n {\n $rawData = <<getId());\n $this->assertSame('testEvent', $sse->getType());\n }\n\n public function testParseValid()\n {\n $rawData = <<assertSame(\"test\\ntest\", $sse->getData());\n $this->assertSame(", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/Chunk/ServerSentEventTest.php", "language": "php", "file_size": 3175, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Exception\\HttpExceptionTrait;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Kévin Dunglas \n */\nclass HttpExceptionT", "suffix": " An error occurred\n\n Some details\n ERROR;\n\n yield ['application/ld+json', '{\"hydra:title\": \"An error occurred\", \"hydra:description\": \"Some details\"}', $errorWithMessage];\n yield ['application/problem+json', '{\"title", "middle": "raitTest extends TestCase\n{\n public static function provideParseError(): iterable\n {\n $errorWithoutMessage = 'HTTP/1.1 400 Bad Request returned for \"http://example.com\".';\n\n $errorWithMessage = <<httpClientThatHasTracedRequests([\n [\n 'method' => 'GET',\n 'url' => 'http://localhost:8057/',\n ],\n [\n 'method' => 'GET',\n 'url' => 'http://localhost:8057/301',\n ],\n ", "suffix": "his->httpClientThatHasTracedRequests([]);\n $sut = new HttpClientDataCollector();\n $sut->registerClient('http_client1', $httpClient1);\n $sut->registerClient('http_client2', $httpClient2);\n $sut->registerClient('http_client3', $ht", "middle": " ]);\n $httpClient2 = $this->httpClientThatHasTracedRequests([\n [\n 'method' => 'GET',\n 'url' => 'http://localhost:8057/404',\n ],\n ]);\n $httpClient3 = $t", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/DataCollector/HttpClientDataCollectorTest.php", "language": "php", "file_size": 18376, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\Internal;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Internal\\CurlClientState;\n\n#[RequiresPhpExtension('curl')]\nclass CurlClientStateTest extends TestCase\n{\n public function", "suffix": ".1', 8057));\n self::assertSame('https://example.com:443', CurlClientState::originKey('https', 'example.com', 443));\n self::assertSame('http://example.com:80', CurlClientState::originKey('http', 'example.com', 80));\n self::assertSame('h", "middle": " testOriginKeyFormat()\n {\n self::assertSame('http://127.0.0.1:8057', CurlClientState::originKey('http', '127.0.0.1', 8057));\n self::assertSame('http://127.0.0.1:8057', CurlClientState::originKey('http:', '127.0.0", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/Internal/CurlClientStateTest.php", "language": "php", "file_size": 1715, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\Test;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Test\\HarFileResponseFactory;\n\nclass HarFileResponseFactoryTest extends TestCase\n{\n private st", "suffix": "\"{$this->fixtureDir}/symfony.com_archive.har\");\n $client = new MockHttpClient($factory, 'https://symfony.com');\n\n $response = $client->request('GET', '/releases.json');\n\n $this->assertSame(200, $response->getStatusCode());\n\n $bo", "middle": "ring $fixtureDir;\n\n protected function setUp(): void\n {\n $this->fixtureDir = \\dirname(__DIR__).'/Fixtures/har';\n }\n\n public function testResponseGeneration()\n {\n $factory = new HarFileResponseFactory(", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/Test/HarFileResponseFactoryTest.php", "language": "php", "file_size": 2806, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\Messenger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Exception\\ClientException;\nuse Symfony\\Component\\HttpClient\\Messenger\\PingWebhookMessage;\nuse Symfony\\Component\\HttpClient\\Messenger\\PingWebhookMessageHandler;\nuse Symfony\\Component\\HttpClient\\MockHttpCl", "suffix": " $client = new MockHttpClient([\n function ($method, $url) {\n $this->assertSame('POST', $method);\n $this->assertSame('https://endpoint.com/key', $url);\n\n return new MockResponse('a response');\n ", "middle": "ient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\n\n/**\n * @author Kevin Bond \n */\nfinal class PingWebhookMessageHandlerTest extends TestCase\n{\n public function testSuccessfulPing()\n {\n ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/Messenger/PingWebhookMessageHandlerTest.php", "language": "php", "file_size": 2750, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\Retry;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\AsyncContext;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Componen", "suffix": "houldRetry(string $method, int $code, ?TransportExceptionInterface $exception)\n {\n $strategy = new GenericRetryStrategy();\n\n self::assertTrue($strategy->shouldRetry($this->getContext(0, $method, 'http://example.com/', $code), null, $except", "middle": "t\\HttpClient\\Retry\\GenericRetryStrategy;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\n\nclass GenericRetryStrategyTest extends TestCase\n{\n #[DataProvider('provideRetryable')]\n public function testS", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/Retry/GenericRetryStrategyTest.php", "language": "php", "file_size": 4295, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\Response;\n\nuse GuzzleHttp\\Promise\\Promise;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Response\\HttplugPromise;\n\nclass HttplugPromiseTest extends TestCase\n{\n public function testComplexNesting()\n {\n ", "suffix": " return new HttplugPromise($guzzlePromise);\n };\n\n $promise1 = $mkPromise('result');\n $promise2 = $promise1->then($mkPromise);\n $promise3 = $promise2->then(static fn ($result) => $result);\n\n $this->assertSame('result', ", "middle": " $mkPromise = static function ($result): HttplugPromise {\n $guzzlePromise = new Promise(static function () use (&$guzzlePromise, $result) {\n $guzzlePromise->resolve($result);\n });\n\n ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/Response/HttplugPromiseTest.php", "language": "php", "file_size": 1025, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\Response;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\n\nfinal class JsonMockResponseTest extends TestCase\n{\n public", "suffix": ">assertSame('application/json', $response->getHeaders()['content-type'][0]);\n }\n\n public function testInvalidBody()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('JSON encoding failed: Ma", "middle": " function testDefaults()\n {\n $client = new MockHttpClient(new JsonMockResponse());\n $response = $client->request('GET', 'https://symfony.com');\n\n $this->assertSame([], $response->toArray());\n $this-", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/Response/JsonMockResponseTest.php", "language": "php", "file_size": 4128, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\Response;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\HttpClient\\Exception\\JsonException;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\n\nclass MockResponseTest extends TestCase\n{\n p", "suffix": "s->assertNotNull($response->getInfo('total_time'));\n $this->assertGreaterThan(0.0, $response->getInfo('total_time'));\n }\n\n public function testTotalTimeShouldNotBeSimulatedWhenProvided()\n {\n $totalTime = 4.2;\n $response = new ", "middle": "ublic function testTotalTimeShouldBeSimulatedWhenNotProvided()\n {\n $response = new MockResponse('body');\n $response = MockResponse::fromRequest('GET', 'https://example.com/file.txt', [], $response);\n\n $thi", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/Response/MockResponseTest.php", "language": "php", "file_size": 5169, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpClient\\DataCollector\\HttpClientDataCollector;\nuse Symfony\\Component\\HttpClient\\Dependen", "suffix": ")\n {\n $container = $this->buildContainerBuilder('http_client');\n $sut = new HttpClientPass();\n $sut->process($container);\n\n $this->assertFalse($container->hasDefinition('.debug.http_client'));\n }\n\n public function testI", "middle": "cyInjection\\HttpClientPass;\nuse Symfony\\Component\\HttpClient\\TraceableHttpClient;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass HttpClientPassTest extends TestCase\n{\n public function testItRequiresDataCollector(", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/DependencyInjection/HttpClientPassTest.php", "language": "php", "file_size": 2492, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Test;\n\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * See: https://w3c.github.io/web-performance/specs/HAR/Overview.html.\n *\n * @author Gary PEGEOT \n */\nclass HarFileResponseFactory\n{", "suffix": "$method, string $url, array $options): ResponseInterface\n {\n if (!is_file($this->archiveFile)) {\n throw new \\InvalidArgumentException(\\sprintf('Invalid file path provided: \"%s\".', $this->archiveFile));\n }\n\n $json = json_d", "middle": "\n public function __construct(private string $archiveFile)\n {\n }\n\n public function setArchiveFile(string $archiveFile): void\n {\n $this->archiveFile = $archiveFile;\n }\n\n public function __invoke(string ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Test/HarFileResponseFactory.php", "language": "php", "file_size": 3283, "cut_index": 614, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Messenger;\n\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Kevin Bond \n */\nclass PingWebhookMessageHandler\n{\n public function __construct(\n privat", "suffix": " }\n\n public function __invoke(PingWebhookMessage $message): ResponseInterface\n {\n $response = $this->httpClient->request($message->method, $message->url, $message->options);\n $response->getHeaders($message->throw);\n\n return $r", "middle": "e readonly HttpClientInterface $httpClient,\n ) {\n", "meta": {"filepath": "src/Symfony/Component/HttpClient/Messenger/PingWebhookMessageHandler.php", "language": "php", "file_size": 854, "cut_index": 529, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Retry;\n\nuse Symfony\\Component\\HttpClient\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\HttpClient\\Response\\AsyncContext;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\n\n/**\n * Decides to retry the request when HTTP status codes belong to the given list of codes.\n *\n * @author Jérémy Derussé self::IDEMPOTENT_METHODS, // for transport exceptions\n 423,\n 425,\n 429,\n 500 => self::IDEMPOTENT_METHODS,\n 502,\n 503,\n 504 => self::IDEMPOTENT_METHODS,\n 507 => self::IDEMPOTENT_METHODS,\n ", "middle": "derusse.com>\n */\nclass GenericRetryStrategy implements RetryStrategyInterface\n{\n public const IDEMPOTENT_METHODS = ['GET', 'HEAD', 'PUT', 'DELETE', 'OPTIONS', 'TRACE', 'QUERY'];\n public const DEFAULT_RETRY_STATUS_CODES = [\n", "meta": {"filepath": "src/Symfony/Component/HttpClient/Retry/GenericRetryStrategy.php", "language": "php", "file_size": 3982, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Retry;\n\nuse Symfony\\Component\\HttpClient\\Response\\AsyncContext;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\n\n/**\n * @author Jérémy Derussé \n * @author Nicolas Grekas \n */\ninterfa", "suffix": "to signal that the body is required to take a decision\n */\n public function shouldRetry(AsyncContext $context, ?string $responseContent, ?TransportExceptionInterface $exception): ?bool;\n\n /**\n * Returns the time to wait in milliseconds.\n ", "middle": "ce RetryStrategyInterface\n{\n /**\n * Returns whether the request should be retried.\n *\n * @param ?string $responseContent Null is passed when the body did not arrive yet\n *\n * @return bool|null Returns null ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Retry/RetryStrategyInterface.php", "language": "php", "file_size": 1136, "cut_index": 518, "middle_length": 229}} {"prefix": "lientTrait;\nuse Symfony\\Component\\HttpClient\\Internal\\AmpBody;\nuse Symfony\\Component\\HttpClient\\Internal\\AmpClientState;\nuse Symfony\\Component\\HttpClient\\Internal\\Canary;\nuse Symfony\\Component\\HttpClient\\Internal\\ClientState;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nuse function Amp\\delay;\nuse function Amp\\Future\\awaitFirst;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nfinal class AmpResponse implements ResponseInterface, StreamableInterface\n{\n use CommonResponseTrait;\n ", "suffix": "State $multi,\n Request $request,\n array $options,\n ?LoggerInterface $logger,\n ) {\n $this->options = &$options;\n $this->logger = $logger;\n $this->timeout = $options['timeout'];\n $this->shouldBuffer = $opti", "middle": " use TransportResponseTrait;\n\n private static string $nextId = 'a';\n\n private ?array $options;\n private \\Closure $onProgress;\n\n /**\n * @internal\n */\n public function __construct(\n private AmpClient", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/AmpResponse.php", "language": "php", "file_size": 17574, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Response;\n\nuse Symfony\\Component\\HttpClient\\Chunk\\DataChunk;\nuse Symfony\\Component\\HttpClient\\Chunk\\LastChunk;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * A DTO to work with AsyncResponse.\n *\n * @author Nicolas Grekas \n */\nfinal class AsyncCo", "suffix": "allable &$passthru,\n private HttpClientInterface $client,\n ResponseInterface &$response,\n array &$info,\n private $content,\n private int $offset,\n ) {\n $this->passthru = &$passthru;\n $this->response = &$re", "middle": "ntext\n{\n /** @var callable|null */\n private $passthru;\n private ResponseInterface $response;\n private array $info = [];\n\n /**\n * @param resource|null $content\n */\n public function __construct(\n ?c", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/AsyncContext.php", "language": "php", "file_size": 5655, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Internal;\n\nuse Amp\\ByteStream\\ReadableBuffer;\nuse Amp\\ByteStream\\ReadableIterableStream;\nuse Amp\\ByteStream\\ReadableResourceStream;\nuse Amp\\ByteStream\\ReadableStream;\nuse Amp\\Cancellation;\nuse Amp\\Http\\Client\\HttpContent;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\n\n/**\n * @author Nicolas Grekas \n *\n *", "suffix": "gth = -1;\n private ?int $uploaded = null;\n\n /**\n * @param \\Closure|resource|string $body\n */\n public function __construct(\n $body,\n &$info,\n private \\Closure $onProgress,\n ) {\n $this->info = &$info;\n\n ", "middle": " @internal\n */\nclass AmpBody implements HttpContent, ReadableStream, \\IteratorAggregate\n{\n private ReadableStream $body;\n private ?string $content;\n private array $info;\n private ?int $offset = 0;\n private int $len", "meta": {"filepath": "src/Symfony/Component/HttpClient/Internal/AmpBody.php", "language": "php", "file_size": 3953, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Internal;\n\nuse Amp\\DeferredCancellation;\nuse Amp\\Http\\Client\\ApplicationInterceptor;\nuse Amp\\Http\\Client\\Connection\\Connection;\nuse Amp\\Http\\Client\\Connection\\Stream;\nuse Amp\\Http\\Client\\EventListener;\nuse Amp\\Http\\Client\\NetworkInterceptor;\nuse Amp\\Http\\Client\\Request;\nuse Amp\\Http\\Client\\Response;\nuse Amp\\Socket\\InternetAddress;\nuse Revolt\\EventLoop;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\n\n/**\n * @author Nicol", "suffix": "ion __construct(\n array &$info,\n private array $pinSha256,\n private \\Closure $onProgress,\n private &$handle,\n private float $maxConnectDuration,\n private DeferredCancellation $canceller,\n ) {\n $info += [\n", "middle": "as Grekas \n *\n * @internal\n */\nclass AmpListener implements EventListener\n{\n private array $info;\n private ?string $connectTimerId = null;\n\n /**\n * @param resource|null $handle\n */\n public funct", "meta": {"filepath": "src/Symfony/Component/HttpClient/Internal/AmpListener.php", "language": "php", "file_size": 7467, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Internal;\n\nuse Amp\\Cancellation;\nuse Amp\\Dns;\nuse Amp\\Dns\\DnsRecord;\nuse Amp\\Dns\\DnsResolver;\n\n/**\n * Handles local overrides for the DNS resolver.\n *\n * @author Nicolas Grekas \n *\n * @internal\n */\nclass AmpResolver implements DnsResolver\n{\n ", "suffix": ":A;\n $ip = $this->dnsMap[$name] ?? null;\n\n if (null !== $ip && str_contains($ip, ':')) {\n $recordType = DnsRecord::AAAA;\n }\n\n if (null === $ip || $recordType !== ($typeRestriction ?? $recordType)) {\n return", "middle": "public function __construct(\n private array &$dnsMap,\n ) {\n }\n\n public function resolve(string $name, ?int $typeRestriction = null, ?Cancellation $cancellation = null): array\n {\n $recordType = DnsRecord:", "meta": {"filepath": "src/Symfony/Component/HttpClient/Internal/AmpResolver.php", "language": "php", "file_size": 1628, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Internal;\n\nuse Http\\Client\\Exception\\NetworkException;\nuse Http\\Promise\\Promise;\nuse Psr\\Http\\Message\\RequestInterface as Psr7RequestInterface;\nuse Psr\\Http\\Message\\ResponseFactoryInterface;\nuse Psr\\Http\\Message\\ResponseInterface as Psr7ResponseInterface;\nuse Psr\\Http\\Message\\StreamFactoryInterface;\nuse Symfony\\Component\\HttpClient\\Response\\StreamableInterface;\nuse Symfony\\Component\\HttpClient\\Response\\StreamWrapper;\nuse Symfony\\Contra", "suffix": "nal class HttplugWaitLoop\n{\n /**\n * @param \\SplObjectStorage|null $promisePool\n */\n public function __construct(\n private HttpClientInterface $client,\n private ?\\SplObject", "middle": "cts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nfi", "meta": {"filepath": "src/Symfony/Component/HttpClient/Internal/HttplugWaitLoop.php", "language": "php", "file_size": 5519, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Internal;\n\n/**\n * Internal representation of the native client's state.\n *\n * @author Alexander M. Turek \n *\n * @internal\n */\nfinal class NativeClientState extends ClientState\n{\n public int $id;\n public int $maxHostConnections = \\PHP_INT_MAX;\n public int $responseCount = 0;\n /", "suffix": "\n public bool $sleep = false;\n /** @var int[] */\n public array $hosts = [];\n\n public function __construct()\n {\n $this->id = random_int(\\PHP_INT_MIN, \\PHP_INT_MAX);\n }\n\n public function reset(): void\n {\n $this->response", "middle": "** @var string[] */\n public array $dnsCache = [];", "meta": {"filepath": "src/Symfony/Component/HttpClient/Internal/NativeClientState.php", "language": "php", "file_size": 966, "cut_index": 582, "middle_length": 52}} {"prefix": "\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\HttpClient\\NativeHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\AsyncContext;\nuse Symfony\\Component\\HttpClient\\Response\\AsyncResponse;\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contr", "suffix": " HttpClientInterface\n {\n if ('testHandleIsRemovedOnException' === $testCase) {\n $this->markTestSkipped(\"AsyncDecoratorTrait doesn't cache handles\");\n }\n\n if ('testTimeoutOnDestruct' === $testCase) {\n return Htt", "middle": "acts\\HttpClient\\ResponseInterface;\n\nclass AsyncDecoratorTraitTest extends NativeHttpClientTest\n{\n protected function getHttpClient(string $testCase, ?\\Closure $chunkFilter = null, ?HttpClientInterface $decoratedClient = null):", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/AsyncDecoratorTraitTest.php", "language": "php", "file_size": 15050, "cut_index": 921, "middle_length": 229}} {"prefix": "ent\\CurlHttpClient;\nuse Symfony\\Component\\HttpClient\\Exception\\InvalidArgumentException;\n\n#[RequiresPhpExtension('curl')]\n#[Group('dns-sensitive')]\nclass CurlHttpClientTest extends HttpClientTestCase\n{\n protected function getHttpClient(string $testCase): CurlHttpClient\n {\n $usePersistentConnections = str_contains($testCase, 'Persistent');\n if (!str_contains($testCase, 'Push')) {\n return new CurlHttpClient(['verify_peer' => false, 'verify_host' => false, 'extra' => ['use_persis", "suffix": "arkTestSkipped('curl <7.61 is used or it is not compiled with support for HTTP/2 PUSH');\n }\n\n return new CurlHttpClient(['verify_peer' => false, 'verify_host' => false, 'extra' => ['use_persistent_connections' => $usePersistentConnections]], ", "middle": "tent_connections' => $usePersistentConnections]]);\n }\n\n if (!\\defined('CURLMOPT_PUSHFUNCTION') || 0x073D00 > ($v = curl_version())['version_number'] || !(\\CURL_VERSION_HTTP2 & $v['features'])) {\n $this->m", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/CurlHttpClientTest.php", "language": "php", "file_size": 12081, "cut_index": 921, "middle_length": 229}} {"prefix": "Contracts\\HttpClient\\ResponseInterface as SymfonyResponseInterface;\n\n/**\n * A Guzzle handler that uses Symfony's HttpClientInterface as its transport.\n *\n * This lets SDKs tightly coupled to Guzzle benefit from Symfony HttpClient's\n * features (e.g. retry logic, tracing, scoping, mocking) by plugging this\n * handler into a Guzzle client:\n *\n * $handler = new GuzzleHttpHandler(HttpClient::create());\n * $guzzle = new \\GuzzleHttp\\Client(['handler' => $handler]);\n *\n * The handler is truly asynchronous: __", "suffix": "lMultiHandler takes with\n * curl_multi_*. Waiting on any single promise drives the whole pool so\n * concurrent requests benefit from parallelism automatically.\n *\n * Guzzle request options are mapped to their Symfony equivalents as faithfully\n * as possibl", "middle": "invoke() returns a *pending* Promise\n * immediately without performing any I/O. The actual work is driven by\n * Symfony's HttpClientInterface::stream(), which multiplexes all in-flight\n * requests together - the same approach Cur", "meta": {"filepath": "src/Symfony/Component/HttpClient/GuzzleHttpHandler.php", "language": "php", "file_size": 25497, "cut_index": 1331, "middle_length": 229}} {"prefix": "HTTP method \"%s\", only uppercase letters are accepted.', $method));\n }\n if (!$method) {\n throw new InvalidArgumentException('The HTTP method cannot be empty.');\n }\n }\n\n $options = self::mergeDefaultOptions($options, $defaultOptions, $allowExtraOptions);\n\n $buffer = $options['buffer'] ?? true;\n\n if ($buffer instanceof \\Closure) {\n $options['buffer'] = static function (array $headers) use ($buffer) {\n if (!\\i", "suffix": "urn bool or stream resource, got \"%s\".', get_debug_type($buffer)));\n }\n\n if (false === strpbrk($bufferInfo['mode'], 'acew+')) {\n throw new \\LogicException(\\sprintf('The stream returned by the clo", "middle": "s_bool($buffer = $buffer($headers))) {\n if (!\\is_array($bufferInfo = @stream_get_meta_data($buffer))) {\n throw new \\LogicException(\\sprintf('The closure passed as option \"buffer\" must ret", "meta": {"filepath": "src/Symfony/Component/HttpClient/HttpClientTrait.php", "language": "php", "file_size": 35640, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\HttpClient\\Response\\ResponseStream;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseStreamInter", "suffix": "ResetInterface\n{\n use HttpClientTrait;\n\n private ResponseInterface|\\Closure|iterable|null $responseFactory;\n private int $requestsCount = 0;\n private array $defaultOptions = [];\n\n /**\n * @param callable|callable[]|ResponseInterface|Respo", "middle": "face;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * A test-friendly HttpClient that doesn't make actual HTTP requests.\n *\n * @author Nicolas Grekas \n */\nclass MockHttpClient implements HttpClientInterface, ", "meta": {"filepath": "src/Symfony/Component/HttpClient/MockHttpClient.php", "language": "php", "file_size": 4244, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\Internal\\FollowRedirectsTrait;\nuse Symfony\\Component\\HttpFoundation\\IpUtils;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Decorator that blocks requests to private networks by default.\n *\n * @author Hallison Boaventura \n * @author Nicolas Grekas \n */\nfinal class NoPrivateNetworkHttpClient implements HttpClientInterface, ResetInterface\n{\n use AsyncDecoratorTrait;\n use FollowRedirectsTrait;\n use Http", "meta": {"filepath": "src/Symfony/Component/HttpClient/NoPrivateNetworkHttpClient.php", "language": "php", "file_size": 7105, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpClient\\Response\\AsyncContext;\nuse Symfony\\Component\\HttpClient\\Response\\AsyncResponse;\nuse Symfony\\Component\\HttpClient\\Retry\\GenericRetryStrategy;\nuse Symfony\\Component\\HttpClient\\Retry\\RetryStrategyInterface;\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterfa", "suffix": "lient implements HttpClientInterface, ResetInterface\n{\n use AsyncDecoratorTrait;\n\n private RetryStrategyInterface $strategy;\n private array $baseUris = [];\n\n /**\n * @param int $maxRetries The maximum number of times to retry\n */\n pub", "middle": "ce;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Automatically retries failing HTTP requests.\n *\n * @author Jérémy Derussé \n */\nclass RetryableHttpC", "meta": {"filepath": "src/Symfony/Component/HttpClient/RetryableHttpClient.php", "language": "php", "file_size": 7391, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Limits the number of requests wit", "suffix": "ce $client,\n private readonly LimiterInterface $rateLimiter,\n ) {\n $this->client = $client;\n }\n\n public function request(string $method, string $url, array $options = []): ResponseInterface\n {\n $response = $this->client->re", "middle": "hin a certain period.\n */\nclass ThrottlingHttpClient implements HttpClientInterface, ResetInterface\n{\n use DecoratorTrait {\n reset as private traitReset;\n }\n\n public function __construct(\n HttpClientInterfa", "meta": {"filepath": "src/Symfony/Component/HttpClient/ThrottlingHttpClient.php", "language": "php", "file_size": 1348, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Component\\HttpClient\\Response\\ResponseStream;\nuse Symfony\\Component\\HttpClient\\Response\\TraceableResponse;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseStreamInterface;\nuse Symfo", "suffix": "unction __construct(\n private HttpClientInterface $client,\n private ?Stopwatch $stopwatch = null,\n private ?\\Closure $disabled = null,\n ) {\n $this->tracedRequests = new \\ArrayObject();\n }\n\n public function request(strin", "middle": "ny\\Contracts\\Service\\ResetInterface;\n\n/**\n * @author Jérémy Romey \n */\nfinal class TraceableHttpClient implements HttpClientInterface, ResetInterface\n{\n private \\ArrayObject $tracedRequests;\n\n public f", "meta": {"filepath": "src/Symfony/Component/HttpClient/TraceableHttpClient.php", "language": "php", "file_size": 3203, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Chunk;\n\nuse Symfony\\Component\\HttpClient\\Exception\\TimeoutException;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nclass ErrorChunk implements ChunkInterface\n{\n private bool $didThrow = false;\n priv", "suffix": "essage = $error;\n } else {\n $this->error = $error;\n $this->errorMessage = $error->getMessage();\n }\n }\n\n public function isTimeout(): bool\n {\n $this->didThrow = true;\n\n if (null !== $this->error) {\n", "middle": "ate string $errorMessage;\n private ?\\Throwable $error = null;\n\n public function __construct(\n private int $offset,\n \\Throwable|string $error,\n ) {\n if (\\is_string($error)) {\n $this->errorM", "meta": {"filepath": "src/Symfony/Component/HttpClient/Chunk/ErrorChunk.php", "language": "php", "file_size": 3082, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Chunk;\n\nuse Symfony\\Component\\HttpClient\\Exception\\JsonException;\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\n\n/**\n * @author Antoine Bluchet \n * @author Nicolas Grekas \n */\nfinal class ServerSentEvent extends DataChunk implements ChunkInterface\n{\n private string $data = '';\n private string $", "suffix": "ve BOM\n if (str_starts_with($content, \"\\xEF\\xBB\\xBF\")) {\n $content = substr($content, 3);\n }\n\n foreach (preg_split(\"/(?:\\r\\n|[\\r\\n])/\", $content) as $line) {\n if (0 === $i = strpos($line, ':')) {\n c", "middle": "id = '';\n private string $type = 'message';\n private float $retry = 0;\n private ?array $jsonData = null;\n\n public function __construct(string $content)\n {\n parent::__construct(-1, $content);\n\n // remo", "meta": {"filepath": "src/Symfony/Component/HttpClient/Chunk/ServerSentEvent.php", "language": "php", "file_size": 3354, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Internal;\n\nuse Amp\\ByteStream\\ResourceStream;\nuse Amp\\Cancellation;\nuse Amp\\DeferredCancellation;\nuse Amp\\DeferredFuture;\nuse Amp\\Future;\nuse Amp\\Http\\Client\\Connection\\ConnectionLimitingPool;\nuse Amp\\Http\\Client\\Connection\\DefaultConnectionFactory;\nuse Amp\\Http\\Client\\InterceptedHttpClient;\nuse Amp\\Http\\Client\\Interceptor\\RetryRequests;\nuse Amp\\Http\\Client\\PooledHttpClient;\nuse Amp\\Http\\Client\\Request;\nuse Amp\\Http\\Client\\Response;\nus", "suffix": "rnetAddress;\nuse Amp\\Socket\\Socket;\nuse Amp\\Socket\\SocketAddress;\nuse Amp\\Socket\\SocketConnector;\nuse Psr\\Log\\LoggerInterface;\n\n/**\n * Internal representation of the Amp client's state.\n *\n * @author Nicolas Grekas \n *\n * @internal\n */\nfinal", "middle": "e Amp\\Http\\Tunnel\\Http1TunnelConnector;\nuse Amp\\Http\\Tunnel\\Https1TunnelConnector;\nuse Amp\\Socket\\Certificate;\nuse Amp\\Socket\\ClientTlsContext;\nuse Amp\\Socket\\ConnectContext;\nuse Amp\\Socket\\DnsSocketConnector;\nuse Amp\\Socket\\Inte", "meta": {"filepath": "src/Symfony/Component/HttpClient/Internal/AmpClientState.php", "language": "php", "file_size": 8234, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Internal;\n\nuse Symfony\\Component\\HttpClient\\Response\\AsyncContext;\nuse Symfony\\Component\\HttpClient\\Response\\AsyncResponse;\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\n\n/**\n * Follows redirections in userland so that decorators can inspect each hop.\n *\n * @author Nicolas Grekas \n *\n * @internal\n */\ntrait FollowRedir", "suffix": "ost name found in $url\n * @param \\Closure(string $host, string $url, array &$options): void $onRedirect Called before each followed redirect\n */\n private function followRedirects(string $method, string $url, string $host, array $options, \\Closur", "middle": "ectsTrait\n{\n /**\n * @param string $url An already prepared, absolute URL\n * @param string $host The h", "meta": {"filepath": "src/Symfony/Component/HttpClient/Internal/FollowRedirectsTrait.php", "language": "php", "file_size": 4366, "cut_index": 614, "middle_length": 229}} {"prefix": "e = $client->request('POST', 'http://example.com/foo-bar');\n $this->assertSame('second response', $response->getContent(), 'Non-cacheable method must bypass caching.');\n }\n\n public function testItServesResponseFromCache()\n {\n $client = $this->buildClient([\n new MockResponse('foo', [\n 'http_code' => 200,\n 'response_headers' => [\n 'Cache-Control' => 'max-age=300',\n ],\n ]),\n new MockResponse(", "suffix": ");\n\n sleep(2);\n\n $response = $client->request('GET', 'http://example.com/foo-bar');\n $this->assertSame(200, $response->getStatusCode());\n $this->assertSame('foo', $response->getContent());\n $this->assertSame('2', $respons", "middle": "'should not be served'),\n ]);\n\n $response = $client->request('GET', 'http://example.com/foo-bar');\n $this->assertSame(200, $response->getStatusCode());\n $this->assertSame('foo', $response->getContent()", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/CachingHttpClientTest.php", "language": "php", "file_size": 99455, "cut_index": 3790, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Amp\\Http\\Client\\Request as AmpRequest;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * A factory to instantiate the best possible HTTP client for the runtime.\n *\n * @author Nicolas Grekas \n */\nfinal class HttpClient\n{\n /**\n * @param array $defaultOptions Default request's options\n * @pa", "suffix": "S_DEFAULTS for available options\n */\n public static function create(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50): HttpClientInterface\n {\n if ($amp = class_exists(AmpRequest::class)) {\n if ", "middle": "ram int $maxHostConnections The maximum number of connections to a single host\n * @param int $maxPendingPushes The maximum number of pushed responses to accept in the queue\n *\n * @see HttpClientInterface::OPTION", "meta": {"filepath": "src/Symfony/Component/HttpClient/HttpClient.php", "language": "php", "file_size": 3364, "cut_index": 614, "middle_length": 229}} {"prefix": "ient\\Exception\\NetworkException;\nuse Http\\Client\\Exception\\RequestException;\nuse Http\\Client\\HttpAsyncClient;\nuse Http\\Discovery\\Psr17Factory;\nuse Http\\Discovery\\Psr17FactoryDiscovery;\nuse Nyholm\\Psr7\\Factory\\Psr17Factory as NyholmPsr17Factory;\nuse Nyholm\\Psr7\\Request;\nuse Nyholm\\Psr7\\Uri;\nuse Psr\\Http\\Client\\ClientInterface;\nuse Psr\\Http\\Message\\RequestFactoryInterface;\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ResponseFactoryInterface;\nuse Psr\\Http\\Message\\ResponseInterface as Psr7Respon", "suffix": "p;\nuse Symfony\\Component\\HttpClient\\Response\\HttplugPromise;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contr", "middle": "seInterface;\nuse Psr\\Http\\Message\\StreamFactoryInterface;\nuse Psr\\Http\\Message\\StreamInterface;\nuse Psr\\Http\\Message\\UriFactoryInterface;\nuse Psr\\Http\\Message\\UriInterface;\nuse Symfony\\Component\\HttpClient\\Internal\\HttplugWaitLoo", "meta": {"filepath": "src/Symfony/Component/HttpClient/HttplugClient.php", "language": "php", "file_size": 10891, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Http\\Discovery\\Psr17Factory;\nuse Http\\Discovery\\Psr17FactoryDiscovery;\nuse Nyholm\\Psr7\\Factory\\Psr17Factory as NyholmPsr17Factory;\nuse Nyholm\\Psr7\\Request;\nuse Nyholm\\Psr7\\Uri;\nuse Psr\\Http\\Client\\ClientInterface;\nuse Psr\\Http\\Client\\NetworkExceptionInterface;\nuse Psr\\Http\\Client\\RequestExceptionInterface;\nuse Psr\\Http\\Message\\RequestFactoryInterface;\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ResponseFactoryInte", "suffix": "HttpClient\\Internal\\HttplugWaitLoop;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\nif (!interface_exists(ClientInterface::class))", "middle": "rface;\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\StreamFactoryInterface;\nuse Psr\\Http\\Message\\StreamInterface;\nuse Psr\\Http\\Message\\UriFactoryInterface;\nuse Psr\\Http\\Message\\UriInterface;\nuse Symfony\\Component\\", "meta": {"filepath": "src/Symfony/Component/HttpClient/Psr18Client.php", "language": "php", "file_size": 8956, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Component\\HttpClient\\Exception\\InvalidArgumentException;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseStreamInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Auto-configure the default options based on the ", "suffix": "ttpClientInterface $client,\n private array $defaultOptionsByRegexp,\n private ?string $defaultRegexp = null,\n ) {\n if (null !== $defaultRegexp && !isset($defaultOptionsByRegexp[$defaultRegexp])) {\n throw new InvalidArgumen", "middle": "requested URL.\n *\n * @author Anthony Martin \n */\nclass ScopingHttpClient implements HttpClientInterface, ResetInterface\n{\n use HttpClientTrait;\n\n public function __construct(\n private H", "meta": {"filepath": "src/Symfony/Component/HttpClient/ScopingHttpClient.php", "language": "php", "file_size": 3735, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Chunk;\n\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nclass DataChunk implements ChunkInterface\n{\n public function __construct(\n private int $offset = 0,\n ", "suffix": " {\n return false;\n }\n\n public function getInformationalStatus(): ?array\n {\n return null;\n }\n\n public function getContent(): string\n {\n return $this->content;\n }\n\n public function getOffset(): int\n {\n ", "middle": " private string $content = '',\n ) {\n }\n\n public function isTimeout(): bool\n {\n return false;\n }\n\n public function isFirst(): bool\n {\n return false;\n }\n\n public function isLast(): bool\n ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Chunk/DataChunk.php", "language": "php", "file_size": 1105, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\HttpClient\\AmpHttpClient;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n#[Group('dns-sensitive')]\nclass AmpHttpClientTest extends HttpClientTestCase\n{\n #[Group('transient')]\n ", "suffix": "otected function getHttpClient(string $testCase): HttpClientInterface\n {\n return new AmpHttpClient(['verify_peer' => false, 'verify_host' => false, 'timeout' => 30]);\n }\n\n public function testProxy()\n {\n $this->markTestSkipped('A ", "middle": "public function testNonBlockingStream()\n {\n parent::testNonBlockingStream();\n }\n\n /**\n * @group transient-on-windows\n */\n public function testResolve()\n {\n parent::testResolve();\n }\n\n pr", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/AmpHttpClientTest.php", "language": "php", "file_size": 1747, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\nclass UriTemplateHttpClient implements HttpClientInterface, ResetInterface\n{\n use DecoratorTrait;\n\n /**\n * @param (\\Closu", "suffix": "$client ?? HttpClient::create();\n }\n\n public function request(string $method, string $url, array $options = []): ResponseInterface\n {\n $vars = $this->defaultVars;\n\n if (\\array_key_exists('vars', $options)) {\n if (!\\is_arra", "middle": "re(string $url, array $vars): string)|null $expander\n */\n public function __construct(?HttpClientInterface $client = null, private ?\\Closure $expander = null, private array $defaultVars = [])\n {\n $this->client = ", "meta": {"filepath": "src/Symfony/Component/HttpClient/UriTemplateHttpClient.php", "language": "php", "file_size": 2749, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Internal;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpClient\\Response\\CurlResponse;\n\n/**\n * Internal representation of the cURL client's state.\n *\n * @author Alexander M. Turek \n *\n * @internal\n */\nfinal class CurlClientState extends ClientState\n{\n public ?\\CurlMultiHandle $handle;\n public ?\\CurlShareHandle $share;\n public \\CurlShareHandle|\\CurlSharePersistentHandle|null $persistentShare;\n public", "suffix": "INT_MIN;\n public ?LoggerInterface $logger = null;\n\n /** @var array Indexed by self::originKey() */\n public array $ntlmRequiresFreshConnection = [];\n\n public static array $curlVersion;\n\n public function __construct(\n priv", "middle": " bool $performing = false;\n\n /** @var PushedResponse[] */\n public array $pushedResponses = [];\n public DnsCache $dnsCache;\n /** @var float[] */\n public array $pauseExpiries = [];\n public int $execCounter = \\PHP_", "meta": {"filepath": "src/Symfony/Component/HttpClient/Internal/CurlClientState.php", "language": "php", "file_size": 7228, "cut_index": 716, "middle_length": 229}} {"prefix": " Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * A portable implementation of the HttpClientInterface contracts based on PHP stream wrappers.\n *\n * PHP stream wrappers are able to fetch response bodies concurrently,\n * but each request is opened synchronously.\n *\n * @author Nicolas Grekas \n */\nfinal class NativeHttpClient implements HttpClientInterface, LoggerAwareInterface, ResetInterface\n{\n use HttpClientTrait;\n use LoggerAwareTrait;\n\n public const OPTIONS_DEFAULTS = HttpClientIn", "suffix": "\n private NativeClientState $multi;\n\n /**\n * @param array $defaultOptions Default request's options\n * @param int $maxHostConnections The maximum number of connections to open\n *\n * @see HttpClientInterface::OPTIONS_DEFAULTS for", "middle": "terface::OPTIONS_DEFAULTS + [\n 'crypto_method' => \\STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,\n ];\n\n private array $defaultOptions = self::OPTIONS_DEFAULTS;\n private static array $emptyDefaults = self::OPTIONS_DEFAULTS;\n", "meta": {"filepath": "src/Symfony/Component/HttpClient/NativeHttpClient.php", "language": "php", "file_size": 21682, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\DataCollector;\n\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\HttpClientTrait;\nuse Symfony\\Component\\HttpClient\\TraceableHttpClient;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface;\nuse Symfony\\Component\\Proc", "suffix": "ientTrait;\n\n /**\n * @var TraceableHttpClient[]\n */\n private array $clients = [];\n\n public function registerClient(string $name, TraceableHttpClient $client): void\n {\n $this->clients[$name] = $client;\n }\n\n public function co", "middle": "ess\\Process;\nuse Symfony\\Component\\VarDumper\\Caster\\ImgStub;\n\n/**\n * @author Jérémy Romey \n */\nfinal class HttpClientDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n use HttpCl", "meta": {"filepath": "src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php", "language": "php", "file_size": 8633, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\DnsResolvingHttpClient;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\nclass DnsResolvingHttpClientTest extends TestCase\n{\n public function testResolverIsCalledOnRequest()\n {\n $resolvedHosts = [];\n ", "suffix": ");\n\n $client = new DnsResolvingHttpClient($mockClient, static function (string $host) use (&$resolvedHosts): ?string {\n $resolvedHosts[] = $host;\n\n return '1.2.3.4';\n });\n $response = $client->request('GET', 'http", "middle": "$mockClient = new MockHttpClient(function (string $method, string $url, array $options) {\n $this->assertSame('1.2.3.4', $options['resolve']['example.com'] ?? null);\n\n return new MockResponse('OK');\n }", "meta": {"filepath": "src/Symfony/Component/HttpClient/Tests/DnsResolvingHttpClientTest.php", "language": "php", "file_size": 6010, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Runner;\n\nuse Symfony\\Component\\Runtime\\RunnerInterface;\n\n/**\n * @author Nicolas Grekas \n */\nclass ClosureRunner implements RunnerInterface\n{\n public function __construct(\n private readonly \\Closure $closure,\n ) {\n", "suffix": "s_int($exitStatus)) {\n $r = new \\ReflectionFunction($this->closure);\n\n throw new \\TypeError(\\sprintf('Unexpected value of type \"%s\" returned, \"string|int|null\" expected from \"%s\" on line \"%d\".', get_debug_type($exitStatus), $r->getFil", "middle": " }\n\n public function run(): int\n {\n $exitStatus = ($this->closure)();\n\n if (\\is_string($exitStatus)) {\n echo $exitStatus;\n\n return 0;\n }\n\n if (null !== $exitStatus && !\\i", "meta": {"filepath": "src/Symfony/Component/Runtime/Runner/ClosureRunner.php", "language": "php", "file_size": 1083, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Runner;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\TerminableInterface;\nuse Symfony\\Component\\Runtime\\RunnerInterface;\n\n/**\n * A runner for FrankenPHP in worker mode.\n *\n * Loops up to $loopMax times; p", "suffix": "classes\n * keeping non-resettable state should override __clone accordingly.\n *\n * \"APP_RUNTIME_MODE\" is set to \"web=1&worker=1\", or \"web=1&worker=2\" when FRANKENPHP_RESET_KERNEL\n * is active.\n *\n * @author Kévin Dunglas \n */\nclass Frank", "middle": "ass 0 or a negative integer to loop indefinitely.\n *\n * When the application is an HttpKernelInterface and \"FRANKENPHP_RESET_KERNEL\" is truthy,\n * the kernel is cloned after each request to mitigate cross-request state leaks; sub", "meta": {"filepath": "src/Symfony/Component/Runtime/Runner/FrankenPhpWorkerRunner.php", "language": "php", "file_size": 3101, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Runner\\Symfony;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Runtime\\RunnerInterface;\n\n", "suffix": "efaultEnv,\n private readonly InputInterface $input,\n private readonly ?OutputInterface $output = null,\n ) {\n }\n\n public function run(): int\n {\n if (null === $this->defaultEnv) {\n return $this->application->run($t", "middle": "/**\n * @author Nicolas Grekas \n */\nclass ConsoleApplicationRunner implements RunnerInterface\n{\n public function __construct(\n private readonly Application $application,\n private readonly ?string $d", "meta": {"filepath": "src/Symfony/Component/Runtime/Runner/Symfony/ConsoleApplicationRunner.php", "language": "php", "file_size": 1650, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Runner\\Symfony;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\TerminableInterface;\nuse Symfony\\Component\\Runtime\\Ru", "suffix": " Request $request,\n private readonly bool $debug = false,\n ) {\n }\n\n public function run(): int\n {\n $response = $this->kernel->handle($this->request);\n\n $response->send(false);\n\n if (\\function_exists('fastcgi_finish_r", "middle": "nnerInterface;\n\n/**\n * @author Nicolas Grekas \n */\nclass HttpKernelRunner implements RunnerInterface\n{\n public function __construct(\n private readonly HttpKernelInterface $kernel,\n private readonly", "meta": {"filepath": "src/Symfony/Component/Runtime/Runner/Symfony/HttpKernelRunner.php", "language": "php", "file_size": 1461, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Shortcut\\ClassParser;\nuse Symfony\\Component\\CssSelector\\Parser\\Shortcut\\ElementParser;\nuse Symfony\\Component\\CssSelector\\Parser\\Shortcut\\EmptyStringParser;\nuse Symfony\\Component\\CssSelector\\Parser\\Shortcut\\HashParser;\nuse Symfony\\Component\\Cs", "suffix": "or Christophe Coevoet \n */\nclass CssSelectorConverter\n{\n public static int $maxCachedItems = 1024;\n\n private Translator $translator;\n private array $cache;\n\n private static array $xmlCache = [];\n private static array $htmlCach", "middle": "sSelector\\XPath\\Extension\\HtmlExtension;\nuse Symfony\\Component\\CssSelector\\XPath\\Translator;\n\n/**\n * CssSelectorConverter is the main entry point of the component and can convert CSS\n * selectors to XPath expressions.\n *\n * @auth", "meta": {"filepath": "src/Symfony/Component/CssSelector/CssSelectorConverter.php", "language": "php", "file_size": 2633, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Exception;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\n\n/**\n * ParseException is thrown when a CSS selector syntax is not valid.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/sc", "suffix": "elf\n {\n return new self(\\sprintf('Expected %s, but %s found.', $expectedValue, $foundToken));\n }\n\n public static function pseudoElementFound(string $pseudoElement, string $unexpectedLocation): self\n {\n return new self(\\sprintf('Un", "middle": "rapy/cssselect.\n *\n * @author Jean-François Simon \n */\nclass SyntaxErrorException extends ParseException\n{\n public static function unexpectedToken(string $expectedValue, Token $foundToken): s", "meta": {"filepath": "src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php", "language": "php", "file_size": 1852, "cut_index": 537, "middle_length": 229}} {"prefix": "rException;\nuse Symfony\\Component\\CssSelector\\Node;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\Tokenizer;\n\n/**\n * CSS selector parser.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/scrapy/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass Parser implements ParserInterface\n{\n private const HAS_NESTING_LIMIT = 16;\n\n private Tokenizer $tokenizer;\n private int $ha", "suffix": " Reader($source);\n $stream = $this->tokenizer->tokenize($reader);\n\n return $this->parseSelectorList($stream);\n }\n\n /**\n * Parses the arguments for \":nth-child()\" and friends.\n *\n * @param Token[] $tokens\n *\n * @throw", "middle": "sNestingDepth = 0;\n\n public function __construct(?Tokenizer $tokenizer = null)\n {\n $this->tokenizer = $tokenizer ?? new Tokenizer();\n }\n\n public function parse(string $source): array\n {\n $reader = new", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Parser.php", "language": "php", "file_size": 16050, "cut_index": 921, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser;\n\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\n\n/**\n * CSS selector parser interface.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @autho", "suffix": "s Simon \n *\n * @internal\n */\ninterface ParserInterface\n{\n /**\n * Parses given selector source into an array of tokens.\n *\n * @return SelectorNode[]\n */\n public function parse(string $source): array;\n", "middle": "r Jean-Françoi", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/ParserInterface.php", "language": "php", "file_size": 809, "cut_index": 536, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser;\n\n/**\n * CSS selector reader.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @", "suffix": "EOF(): bool\n {\n return $this->position >= $this->length;\n }\n\n public function getPosition(): int\n {\n return $this->position;\n }\n\n public function getRemainingLength(): int\n {\n return $this->length - $this->position", "middle": "internal\n */\nclass Reader\n{\n private int $length;\n private int $position = 0;\n\n public function __construct(\n private string $source,\n ) {\n $this->length = \\strlen($source);\n }\n\n public function is", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Reader.php", "language": "php", "file_size": 1848, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser;\n\n/**\n * CSS selector token.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass Token\n{\n", "suffix": "lic const TYPE_NUMBER = 'number';\n public const TYPE_STRING = 'string';\n\n /**\n * @param self::TYPE_*|null $type\n */\n public function __construct(\n private ?string $type,\n private ?string $value,\n private ?int $position", "middle": " public const TYPE_FILE_END = 'eof';\n public const TYPE_DELIMITER = 'delimiter';\n public const TYPE_WHITESPACE = 'whitespace';\n public const TYPE_IDENTIFIER = 'identifier';\n public const TYPE_HASH = 'hash';\n pub", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Token.php", "language": "php", "file_size": 2507, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser;\n\nuse Symfony\\Component\\CssSelector\\Exception\\InternalErrorException;\nuse Symfony\\Component\\CssSelector\\Exception\\SyntaxErrorException;\n\n/**\n * CSS selector token stream.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author", "suffix": "];\n\n private int $cursor = 0;\n private ?Token $peeked;\n private bool $peeking = false;\n\n /**\n * Pushes a token.\n *\n * @return $this\n */\n public function push(Token $token): static\n {\n $this->tokens[] = $token;\n\n ", "middle": " Jean-François Simon \n *\n * @internal\n */\nclass TokenStream\n{\n /**\n * @var Token[]\n */\n private array $tokens = [];\n\n /**\n * @var Token[]\n */\n private array $used = [", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/TokenStream.php", "language": "php", "file_size": 3316, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Tokenizer;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Handler;\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\TokenStream;\n\n/**\n * CSS selector tokenizer.\n *\n * This component is a port of", "suffix": " * @var Handler\\HandlerInterface[]\n */\n private array $handlers;\n\n public function __construct()\n {\n $patterns = new TokenizerPatterns();\n $escaping = new TokenizerEscaping($patterns);\n\n $this->handlers = [\n ", "middle": " the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass Tokenizer\n{\n /**\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Tokenizer/Tokenizer.php", "language": "php", "file_size": 2040, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Tokenizer;\n\n/**\n * CSS selector tokenizer escaping applier.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon replaceUnicodeSequences($value);\n\n return preg_replace($this->patterns->getSimpleEscapePattern(), '$1', $value);\n }\n\n public function escapeUnicodeAndNewLine(string $value): string\n {\n $value = preg_replace($this-", "middle": ".simon@sensiolabs.com>\n *\n * @internal\n */\nclass TokenizerEscaping\n{\n public function __construct(\n private TokenizerPatterns $patterns,\n ) {\n }\n\n public function escapeUnicode(string $value): string\n {\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerEscaping.php", "language": "php", "file_size": 1741, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Tokenizer;\n\n/**\n * CSS selector tokenizer patterns builder.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n", "suffix": "EscapePattern;\n private string $nonAsciiPattern;\n private string $nmCharPattern;\n private string $nmStartPattern;\n private string $identifierPattern;\n private string $hashPattern;\n private string $numberPattern;\n private string $quoted", "middle": " * @internal\n */\nclass TokenizerPatterns\n{\n private string $unicodeEscapePattern;\n private string $simpleEscapePattern;\n private string $newLineEscapePattern;\n private string $escapePattern;\n private string $string", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerPatterns.php", "language": "php", "file_size": 2863, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Shortcut;\n\nuse Symfony\\Component\\CssSelector\\Node\\ClassNode;\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\nuse Symfony\\Component\\CssSelector\\Parser\\ParserInterface;\n\n/**\n * CSS selector class p", "suffix": ">\n *\n * @internal\n */\nclass ClassParser implements ParserInterface\n{\n public function parse(string $source): array\n {\n // Matches an optional namespace, optional element, and required class\n // $source = 'test|input.ab6bd_field';\n ", "middle": "arser shortcut.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Shortcut;\n\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\nuse Symfony\\Component\\CssSelector\\Parser\\ParserInterface;\n\n/**\n * CSS selector element parser shortcut.\n *\n * This componen", "suffix": "Parser implements ParserInterface\n{\n public function parse(string $source): array\n {\n // Matches an optional namespace, required element or `*`\n // $source = 'testns|testel';\n // $matches = array (size=3)\n // 0 => stri", "middle": "t is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass Element", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Shortcut/ElementParser.php", "language": "php", "file_size": 1351, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Shortcut;\n\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\nuse Symfony\\Component\\CssSelector\\Parser\\ParserInterface;\n\n/**\n * CSS selector class parser shortcut.\n *\n * This shor", "suffix": "which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass EmptyStringParser implements ParserInterface\n{\n public function parse(string $s", "middle": "tcut ensure compatibility with previous version.\n * - The parser fails to parse an empty string.\n * - In the previous version, an empty string matches each tags.\n *\n * This component is a port of the Python cssselect library,\n * ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Shortcut/EmptyStringParser.php", "language": "php", "file_size": 1193, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Shortcut;\n\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\HashNode;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\nuse Symfony\\Component\\CssSelector\\Parser\\ParserInterface;\n\n/**\n * CSS selector hash par", "suffix": " *\n * @internal\n */\nclass HashParser implements ParserInterface\n{\n public function parse(string $source): array\n {\n // Matches an optional namespace, optional element, and required id\n // $source = 'test|input#ab6bd_field';\n // $", "middle": "ser shortcut.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php", "language": "php", "file_size": 1551, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\nuse Symfony\\Component\\CssSelector\\Parser\\TokenStream;\n\n/**\n * CSS selector comment handler.\n *\n * This component is a port of the Python cssselect library,\n * which is cop", "suffix": "ndle(Reader $reader, TokenStream $stream): bool\n {\n if ('/*' !== $reader->getSubstring(2)) {\n return false;\n }\n\n $offset = $reader->getOffset('*/');\n\n if (false === $offset) {\n $reader->moveToEnd();\n ", "middle": "yright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass CommentHandler implements HandlerInterface\n{\n public function ha", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Handler/CommentHandler.php", "language": "php", "file_size": 1101, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerEscaping;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerPa", "suffix": "apin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass HashHandler implements HandlerInterface\n{\n public function __construct(\n private TokenizerPatterns $patterns,\n private Tokenize", "middle": "tterns;\nuse Symfony\\Component\\CssSelector\\Parser\\TokenStream;\n\n/**\n * CSS selector comment handler.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonS", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Handler/HashHandler.php", "language": "php", "file_size": 1481, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerEscaping;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerPa", "suffix": "apin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass IdentifierHandler implements HandlerInterface\n{\n public function __construct(\n private TokenizerPatterns $patterns,\n private To", "middle": "tterns;\nuse Symfony\\Component\\CssSelector\\Parser\\TokenStream;\n\n/**\n * CSS selector comment handler.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonS", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Handler/IdentifierHandler.php", "language": "php", "file_size": 1499, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerPatterns;\nuse Symfony\\Component\\CssSelector\\Parser\\TokenStream;\n\n/**\n * ", "suffix": "sensiolabs.com>\n *\n * @internal\n */\nclass NumberHandler implements HandlerInterface\n{\n public function __construct(\n private TokenizerPatterns $patterns,\n ) {\n }\n\n public function handle(Reader $reader, TokenStream $stream): bool\n {\n ", "middle": "CSS selector comment handler.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Exception\\InternalErrorException;\nuse Symfony\\Component\\CssSelector\\Exception\\SyntaxErrorException;\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Par", "suffix": "the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass StringHandler implements HandlerInterface\n{\n p", "middle": "ser\\Tokenizer\\TokenizerEscaping;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerPatterns;\nuse Symfony\\Component\\CssSelector\\Parser\\TokenStream;\n\n/**\n * CSS selector comment handler.\n *\n * This component is a port of ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Handler/StringHandler.php", "language": "php", "file_size": 2323, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\TokenStream;\n\n/**\n * CSS selector whitespace handler.\n *\n * This component is a port ", "suffix": "mplements HandlerInterface\n{\n public function handle(Reader $reader, TokenStream $stream): bool\n {\n $match = $reader->findPattern('~^[ \\t\\r\\n\\f]+~');\n\n if (false === $match) {\n return false;\n }\n\n $stream->push(n", "middle": "of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass WhitespaceHandler i", "meta": {"filepath": "src/Symfony/Component/CssSelector/Parser/Handler/WhitespaceHandler.php", "language": "php", "file_size": 1154, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath;\n\nuse Symfony\\Component\\CssSelector\\Exception\\ExpressionErrorException;\nuse Symfony\\Component\\CssSelector\\Node\\FunctionNode;\nuse Symfony\\Component\\CssSelector\\Node\\NodeInterface;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\nuse Symfony\\Component\\CssSelector\\Parser\\Parser;\nuse Symfony\\Component\\CssSelector\\Parser\\ParserInterface;\n\n/**\n * XPath expression translator interface.\n *\n * This component is a port of the Python c", "suffix": "terface\n{\n private ParserInterface $mainParser;\n\n /**\n * @var ParserInterface[]\n */\n private array $shortcutParsers = [];\n\n /**\n * @var Extension\\ExtensionInterface[]\n */\n private array $extensions = [];\n\n private array $n", "middle": "ssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass Translator implements TranslatorIn", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Translator.php", "language": "php", "file_size": 8051, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath;\n\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\n\n/**\n * XPath expression translator interface.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/Sim", "suffix": "tion cssToXPath(string $cssExpr, string $prefix = 'descendant-or-self::'): string;\n\n /**\n * Translates a parsed selector node to an XPath expression.\n */\n public function selectorToXPath(SelectorNode $selector, string $prefix = 'descendant-or", "middle": "onSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\ninterface TranslatorInterface\n{\n /**\n * Translates a CSS selector to an XPath expression.\n */\n public func", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/TranslatorInterface.php", "language": "php", "file_size": 1019, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\Runtime\\GenericRuntime;\nuse Symfony\\Runtime\\Symfony\\Component\\HttpFoundation\\RequestRuntime;\nuse Symfony\\Runtime\\Symfony\\Component\\HttpFoundation\\Respo", "suffix": "' : 'KO request runtime', \"\\n\";\n\n return new StreamedResponse(static function () use ($context) {\n echo 'OK Request '.$context['SOME_VAR'], \"\\n\";\n echo class_exists(ResponseRuntime::class, false) ? 'KO response runtime' : 'OK response runt", "middle": "nseRuntime;\n\n$_SERVER['APP_RUNTIME'] = GenericRuntime::class;\nrequire __DIR__.'/autoload.php';\n\nreturn static function (Request $request, array $context) {\n echo class_exists(RequestRuntime::class, false) ? 'OK request runtime", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/phpt/generic-request.php", "language": "php", "file_size": 1020, "cut_index": 512, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nrequire __DIR__.'/autoload.php';\n\nreturn static fn (array $context) => new class($context['APP_ENV'], $context['SOME_VAR']) implements HttpKernelInterface {\n ", "suffix": "ublic function __construct(string $env, string $var)\n {\n $this->env = $env;\n $this->var = $var;\n }\n\n public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = true): Response\n {\n return new Response('OK ", "middle": "private string $env;\n private string $var;\n\n p", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/phpt/kernel.php", "language": "php", "file_size": 907, "cut_index": 547, "middle_length": 52}} {"prefix": "ovides a single extension point to process a response's content stream.\n *\n * @author Nicolas Grekas \n */\nclass AsyncResponse implements ResponseInterface, StreamableInterface\n{\n use CommonResponseTrait;\n\n private const FIRST_CHUNK_YIELDED = 1;\n private const LAST_CHUNK_YIELDED = 2;\n\n private ?HttpClientInterface $client;\n private ResponseInterface $response;\n private array $info = ['canceled' => false];\n /** @var callable|null */\n private $passthru;\n private ?\\Iter", "suffix": "entInterface $client, string $method, string $url, array $options, ?callable $passthru = null)\n {\n $this->client = $client;\n $this->shouldBuffer = $options['buffer'] ?? true;\n\n if (null !== $onProgress = $options['on_progress'] ?? n", "middle": "ator $stream = null;\n private ?int $yieldedState = null;\n private bool $hasThrown = false;\n\n /**\n * @param ?callable(ChunkInterface, AsyncContext): ?\\Iterator $passthru\n */\n public function __construct(HttpCli", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/AsyncResponse.php", "language": "php", "file_size": 17645, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Response;\n\nuse GuzzleHttp\\Promise\\Create;\nuse GuzzleHttp\\Promise\\PromiseInterface as GuzzlePromiseInterface;\nuse Http\\Promise\\Promise as HttplugPromiseInterface;\nuse Psr\\Http\\Message\\ResponseInterface as Psr7ResponseInterface;\n\n/**\n * @author Tobias Nyholm promise->then(\n $this->wrapThenCallback($onFulfilled),\n $this->wrapThenCallback($onRejected)\n ));\n }\n\n public functio", "middle": "bias.nyholm@gmail.com>\n *\n * @internal\n */\nfinal class HttplugPromise implements HttplugPromiseInterface\n{\n public function __construct(\n private GuzzlePromiseInterface $promise,\n ) {\n }\n\n public function then(", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/HttplugPromise.php", "language": "php", "file_size": 1768, "cut_index": 537, "middle_length": 229}} {"prefix": "nt\\HttpClient\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\Internal\\ClientState;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * A test-friendly response.\n *\n * @author Nicolas Grekas \n */\nclass MockResponse implements ResponseInterface, StreamableInterface\n{\n use CommonResponseTrait;\n use TransportResponseTrait;\n\n private string|iterable|null $body;\n private array $requestOptions = ", "suffix": "se body as a string or an iterable of strings,\n * yielding an empty string simulates an idle timeout,\n * throwing or yielding an exception yields an Err", "middle": "[];\n private string $requestUrl;\n private string $requestMethod;\n\n private static ClientState $mainMulti;\n private static int $idSequence = 0;\n\n /**\n * @param string|iterable $body The respon", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/MockResponse.php", "language": "php", "file_size": 12331, "cut_index": 921, "middle_length": 229}} {"prefix": "n\\TransportException;\nuse Symfony\\Component\\HttpClient\\Internal\\Canary;\nuse Symfony\\Component\\HttpClient\\Internal\\ClientState;\nuse Symfony\\Component\\HttpClient\\Internal\\NativeClientState;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nfinal class NativeResponse implements ResponseInterface, StreamableInterface\n{\n use CommonResponseTrait;\n use TransportResponseTrait;\n\n private \\Closure $resolver;\n private ?\\Closure $onProgres", "suffix": "ction __construct(\n private NativeClientState $multi,\n private $context,\n private string $url,\n array $options,\n array &$info,\n callable $resolver,\n ?callable $onProgress,\n ?LoggerInterface $logger,\n ", "middle": "s;\n private ?int $remaining = null;\n\n /**\n * @var resource|null\n */\n private $buffer;\n\n private float $pauseExpiry = 0.0;\n\n /**\n * @internal\n *\n * @param $context resource\n */\n public fun", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/NativeResponse.php", "language": "php", "file_size": 13772, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Response;\n\nuse Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\RedirectionExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ServerExceptionInterface;\nuse Symfony\\Contra", "suffix": " *\n * @throws TransportExceptionInterface When a network error occurs\n * @throws RedirectionExceptionInterface On a 3xx when $throw is true and the \"max_redirects\" option has been reached\n * @throws ClientExceptionInterface On a 4xx w", "middle": "cts\\HttpClient\\Exception\\TransportExceptionInterface;\n\n/**\n * @author Nicolas Grekas \n */\ninterface StreamableInterface\n{\n /**\n * Casts the response to a PHP stream resource.\n *\n * @return resource\n ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/StreamableInterface.php", "language": "php", "file_size": 1156, "cut_index": 518, "middle_length": 229}} {"prefix": "orChunk;\nuse Symfony\\Component\\HttpClient\\Chunk\\FirstChunk;\nuse Symfony\\Component\\HttpClient\\Chunk\\LastChunk;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\nuse Symfony\\Component\\HttpClient\\Internal\\Canary;\nuse Symfony\\Component\\HttpClient\\Internal\\ClientState;\n\n/**\n * Implements common logic for transport-level response classes.\n *\n * @author Nicolas Grekas \n *\n * @internal\n */\ntrait TransportResponseTrait\n{\n private Canary $canary;\n /** @var array>", "suffix": "rivate $handle;\n private int|string $id;\n private ?float $timeout = 0;\n private \\InflateContext|bool|null $inflate = null;\n private ?array $finalInfo = null;\n private ?LoggerInterface $logger = null;\n private bool $didTimeout = false;\n\n ", "middle": " */\n private array $headers = [];\n private array $info = [\n 'response_headers' => [],\n 'http_code' => 0,\n 'error' => null,\n 'canceled' => false,\n ];\n\n /** @var object|resource|null */\n p", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/TransportResponseTrait.php", "language": "php", "file_size": 11855, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime;\n\nuse Symfony\\Component\\Runtime\\Internal\\BasicErrorHandler;\nuse Symfony\\Component\\Runtime\\Resolver\\ClosureResolver;\nuse Symfony\\Component\\Runtime\\Resolver\\DebugClosureResolver;\nuse Symfony\\Component\\Runtime\\Runner\\ClosureRunner;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(ClosureResolver::class);\n\n/**\n * A runtime to do bare-metal PHP without using superglobals.\n *\n * It supports the following options:\n * - \"debu", "suffix": " the class to use to handle PHP errors;\n * - \"env_var_name\" and \"debug_var_name\" define the name of the env\n * vars that hold the Symfony env and the debug flag respectively.\n *\n * The app-callable can declare arguments among either:\n * - \"array $conte", "middle": "g\" toggles displaying errors and defaults\n * to the \"APP_DEBUG\" environment variable;\n * - \"runtimes\" maps types to a GenericRuntime implementation\n * that knows how to deal with each of them;\n * - \"error_handler\" defines", "meta": {"filepath": "src/Symfony/Component/Runtime/GenericRuntime.php", "language": "php", "file_size": 7869, "cut_index": 716, "middle_length": 229}} {"prefix": "ut;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\RawInputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutput;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Dotenv\\Dotenv;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Runtime\\Internal\\MissingDotenv;\nuse Symfony\\Component\\Runtime\\Internal\\SymfonyErrorHandle", "suffix": "unner\\Symfony\\ResponseRunner;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(MissingDotenv::class, false) || class_exists(Dotenv::class) || class_exists(MissingDotenv::class);\n\n/**\n * Knows the basic conventions to run Symfony apps.\n ", "middle": "r;\nuse Symfony\\Component\\Runtime\\Runner\\FrankenPhpWorkerRunner;\nuse Symfony\\Component\\Runtime\\Runner\\Symfony\\ConsoleApplicationRunner;\nuse Symfony\\Component\\Runtime\\Runner\\Symfony\\HttpKernelRunner;\nuse Symfony\\Component\\Runtime\\R", "meta": {"filepath": "src/Symfony/Component/Runtime/SymfonyRuntime.php", "language": "php", "file_size": 13136, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Internal;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nclass BasicErrorHandler\n{\n public static function register(bool $debug): void\n {\n error_reporting(\\E_ALL & ~\\E_DEPRECATED & ~\\E_USER_DEPRECATED);\n\n if (!\\in_array(\\PH", "suffix": "ors only if they're not already logged to STDERR\n ini_set('display_errors', 1);\n }\n\n if (0 <= \\ini_get('zend.assertions')) {\n ini_set('zend.assertions', (int) $debug);\n }\n ini_set('assert.active', 1);\n ", "middle": "P_SAPI, ['cli', 'phpdbg', 'embed'], true)) {\n ini_set('display_errors', $debug);\n } elseif (!filter_var(\\ini_get('log_errors'), \\FILTER_VALIDATE_BOOL) || \\ini_get('error_log')) {\n // CLI - display err", "meta": {"filepath": "src/Symfony/Component/Runtime/Internal/BasicErrorHandler.php", "language": "php", "file_size": 1547, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Resolver;\n\n/**\n * @author Nicolas Grekas \n */\nclass DebugClosureResolver extends ClosureResolver\n{\n public function resolve(): array\n {\n [$closure, $arguments] = parent::resolve();\n\n return [\n ", "suffix": "($closure);\n\n throw new \\TypeError(\\sprintf('Unexpected value of type \"%s\" returned, \"object\" expected from \"%s\" on line \"%d\".', get_debug_type($app), $r->getFileName(), $r->getStartLine()));\n },\n $arguments,\n ];", "middle": " static function (...$arguments) use ($closure) {\n if (\\is_object($app = $closure(...$arguments)) || null === $app) {\n return $app;\n }\n\n $r = new \\ReflectionFunction", "meta": {"filepath": "src/Symfony/Component/Runtime/Resolver/DebugClosureResolver.php", "language": "php", "file_size": 1006, "cut_index": 512, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\RawInputInterface;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Runtime\\Runner\\FrankenPhpWorkerRunner;\nuse Symfony\\Component\\Runtime\\SymfonyRuntime;\n\nclass SymfonyRuntimeTest extends TestCase\n{\n protected function tearDown(): void\n {\n", "suffix": "Runtime();\n\n try {\n $this->assertNotInstanceOf(FrankenPhpWorkerRunner::class, $runtime->getRunner(null));\n $this->assertNotInstanceOf(FrankenPhpWorkerRunner::class, $runtime->getRunner($application));\n $_SERVER['FRAN", "middle": " unset($_SERVER['FRANKENPHP_WORKER'], $_SERVER['FRANKENPHP_LOOP_MAX']);\n }\n\n public function testGetRunner()\n {\n $application = $this->createStub(HttpKernelInterface::class);\n\n $runtime = new Symfony", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/SymfonyRuntimeTest.php", "language": "php", "file_size": 6993, "cut_index": 716, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nrequire __DIR__.'/autoload.php';\n\nreturn static function (array $context) {\n $command = new Command('go');\n $command->", "suffix": "utInterface $output) use ($context): int {\n $output->write('OK Application '.$context['SOME_VAR']);\n\n return 0;\n });\n\n $app = new Application();\n $app->addCommand($command);\n $app->setDefaultCommand('go', true);\n\n return $app;\n", "middle": "setCode(static function (InputInterface $input, Outp", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/phpt/application.php", "language": "php", "file_size": 870, "cut_index": 559, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nrequire __DIR__.'/autoload.php';\n\nreturn static function (Command $command, InputInterface $input, OutputI", "suffix": "dOption('hello', 'e', InputOption::VALUE_REQUIRED, 'How should I greet?', 'OK');\n\n return $command->setCode(static function () use ($input, $output, $context): int {\n $output->write($input->getOption('hello').' Command '.$context['SOME_VAR']);\n\n ", "middle": "nterface $output, array $context) {\n $command->ad", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/phpt/command.php", "language": "php", "file_size": 883, "cut_index": 547, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Runtime\\RuntimeInterface;\n\nrequire __DIR__.'/autoload.php';\n\nreturn function (Application $app, Command $command, RuntimeInterface $runtime) {\n $app->setVersion('1.2.3');\n", "suffix": "ame('Hello console');\n\n $command->setDescription('Hello description ');\n $command->setName('my_command');\n\n [$cmd, $args] = $runtime->getResolver(require __DIR__.'/command.php')->resolve();\n $app->addCommand($cmd(...$args));\n\n return $app;\n}", "middle": " $app->setN", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/phpt/command_list.php", "language": "php", "file_size": 796, "cut_index": 524, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Response;\n\nuse Symfony\\Component\\HttpClient\\Exception\\ClientException;\nuse Symfony\\Component\\HttpClient\\Exception\\JsonException;\nuse Symfony\\Component\\HttpClient\\Exception\\RedirectionException;\nuse Symfony\\Component\\HttpClient\\Exception\\ServerException;\nuse Symfony\\Component\\HttpClient\\Exception\\TransportException;\n\n/**\n * Implements c", "suffix": " */\n private $initializer;\n /** @var bool|\\Closure|resource|null */\n private $shouldBuffer;\n /** @var resource|null */\n private $content;\n private int $offset = 0;\n private ?array $jsonData = null;\n\n public function getContent(bool", "middle": "ommon logic for response classes.\n *\n * @author Nicolas Grekas \n *\n * @internal\n */\ntrait CommonResponseTrait\n{\n /**\n * @var callable|null A callback that tells whether we're waiting for response headers\n ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/CommonResponseTrait.php", "language": "php", "file_size": 4900, "cut_index": 614, "middle_length": 229}} {"prefix": "terface, StreamableInterface\n{\n use CommonResponseTrait {\n getContent as private doGetContent;\n }\n use TransportResponseTrait;\n\n /**\n * @var resource\n */\n private $debugBuffer;\n\n /**\n * @internal\n */\n public function __construct(\n private CurlClientState $multi,\n \\CurlHandle|string $ch,\n ?array $options = null,\n ?LoggerInterface $logger = null,\n string $method = 'GET',\n ?callable $resolveRedirect = null,\n ?int $curl", "suffix": "temp', 'w+');\n if (0x074000 === $curlVersion) {\n fwrite($this->debugBuffer, 'Due to a bug in curl 7.64.0, the debug log is disabled; use another version to work around the issue.');\n } else {\n curl_setopt", "middle": "Version = null,\n ?string $originalUrl = null,\n private ?string $ntlmOriginKey = null,\n ) {\n if ($ch instanceof \\CurlHandle) {\n $this->handle = $ch;\n $this->debugBuffer = fopen('php://", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/CurlResponse.php", "language": "php", "file_size": 21518, "cut_index": 1331, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Response;\n\nuse Symfony\\Contracts\\HttpClient\\ChunkInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseStreamInterface;\n\n/**\n * @author Nicolas Grekas \n */\nfinal class Respo", "suffix": "}\n\n public function current(): ChunkInterface\n {\n return $this->generator->current();\n }\n\n public function next(): void\n {\n $this->generator->next();\n }\n\n public function rewind(): void\n {\n $this->generator->rew", "middle": "nseStream implements ResponseStreamInterface\n{\n public function __construct(\n private \\Generator $generator,\n ) {\n }\n\n public function key(): ResponseInterface\n {\n return $this->generator->key();\n ", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/ResponseStream.php", "language": "php", "file_size": 1104, "cut_index": 515, "middle_length": 229}} {"prefix": "Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * Allows turning ResponseInterface instances to PHP streams.\n *\n * @author Nicolas Grekas \n */\nclass StreamWrapper\n{\n /** @var resource|null */\n public $context;\n\n private HttpClientInterface|ResponseInterface $client;\n\n private ResponseInterface $response;\n\n /** @var resource|string|null */\n private $content;\n\n /** @var resource|callable|null */\n private $handle;\n\n private bool $blocking = true;\n private ?flo", "suffix": "urce(ResponseInterface $response, ?HttpClientInterface $client = null)\n {\n if ($response instanceof StreamableInterface) {\n $stack = debug_backtrace(\\DEBUG_BACKTRACE_PROVIDE_OBJECT | \\DEBUG_BACKTRACE_IGNORE_ARGS, 2);\n\n if ($", "middle": "at $timeout = null;\n private bool $eof = false;\n private ?int $offset = 0;\n\n /**\n * Creates a PHP stream resource from a ResponseInterface.\n *\n * @return resource\n */\n public static function createReso", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/StreamWrapper.php", "language": "php", "file_size": 9363, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\", "suffix": "nition('data_collector.http_client')) {\n return;\n }\n\n foreach ($container->findTaggedServiceIds('http_client.client') as $id => $tags) {\n $container->register('.debug.'.$id, TraceableHttpClient::class)\n ->", "middle": "Reference;\nuse Symfony\\Component\\HttpClient\\TraceableHttpClient;\n\nfinal class HttpClientPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefi", "meta": {"filepath": "src/Symfony/Component/HttpClient/DependencyInjection/HttpClientPass.php", "language": "php", "file_size": 1540, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Internal;\n\nuse Symfony\\Component\\ErrorHandler\\BufferingLogger;\nuse Symfony\\Component\\ErrorHandler\\DebugClassLoader;\nuse Symfony\\Component\\ErrorHandler\\ErrorHandler;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nclass SymfonyErrorHandler\n{\n ", "suffix": "RECATED & ~\\E_USER_DEPRECATED);\n\n if (!\\in_array(\\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {\n ini_set('display_errors', $debug);\n } elseif (!filter_var(\\ini_get('log_errors'), \\FILTER_VALIDATE_BOOL) || \\ini_get('error_log')) {\n", "middle": " public static function register(bool $debug): void\n {\n if (!class_exists(ErrorHandler::class)) {\n BasicErrorHandler::register($debug);\n\n return;\n }\n\n error_reporting(\\E_ALL & ~\\E_DEP", "meta": {"filepath": "src/Symfony/Component/Runtime/Internal/SymfonyErrorHandler.php", "language": "php", "file_size": 1508, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\Runtime\\SymfonyRuntime;\n\n$_SERVER['APP_RUNTIME_OPTIONS'] ??= [];\n$_SERVER['APP_RUNTIME_OPTIONS'] += [\n 'error_handler' => false,\n 'project_dir' => __DIR__,\n] + ($_SERVER['APP_RUNTIME_OPTIONS'] ?? []);\n\nif (file_exists(dirname(__DIR__, 2).'/vendor/autol", "suffix": "RUNTIME'] ?? SymfonyRuntime::class;\n $runtime = new $runtime($_SERVER['APP_RUNTIME_OPTIONS']);\n [$app, $args] = $runtime->getResolver($app)->resolve();\n exit($runtime->getRunner($app(...$args))->run());\n}\n\nif (!file_exists(dirname(__DIR__, 6).'/ve", "middle": "oad.php')) {\n if (true === (require_once dirname(__DIR__, 2).'/vendor/autoload.php') || empty($_SERVER['SCRIPT_FILENAME'])) {\n return;\n }\n\n $app = require $_SERVER['SCRIPT_FILENAME'];\n $runtime = $_SERVER['APP_", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/phpt/autoload.php", "language": "php", "file_size": 1152, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Runtime\\Runner\\ClosureRunner;\nuse Symfony\\Component\\Runtime\\RunnerInterface;\nuse Symfony\\Component\\Runtime\\SymfonyRuntime;\n\nrequire __DIR__.'/autoload.php';\n\n$runtime = new class(['project_dir' => __DIR__])", "suffix": " echo \"\\n\";\n $kernel->handle(new Request())->send();\n echo \"\\n\";\n\n return 0;\n });\n }\n};\n\n[$app, $args] = $runtime->getResolver(require __DIR__.'/kernel.php')->resolve();\necho $runtime->getRunner($app(...$args))", "middle": " extends SymfonyRuntime {\n public function getRunner(?object $kernel): RunnerInterface\n {\n return new ClosureRunner(static function () use ($kernel): int {\n $kernel->handle(new Request())->send();\n ", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/phpt/kernel-loop.php", "language": "php", "file_size": 1006, "cut_index": 512, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient;\n\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * A helper providing autocompletion for available options.\n *\n * @see HttpClientInterface for a description of each options.\n *\n * @author Nicolas Grekas \n */\nclass HttpOptions\n{\n private array $options = [];\n\n public function toArray(): array\n {\n return $this->options;\n }\n\n /**\n * @return $this\n */\n public function setAuthBasi", "suffix": " return $this;\n }\n\n /**\n * @return $this\n */\n public function setAuthBearer(#[\\SensitiveParameter] string $token): static\n {\n $this->options['auth_bearer'] = $token;\n\n return $this;\n }\n\n /**\n * @return $this\n ", "middle": "c(string $user, #[\\SensitiveParameter] string $password = ''): static\n {\n $this->options['auth_basic'] = $user;\n\n if ('' !== $password) {\n $this->options['auth_basic'] .= ':'.$password;\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/HttpClient/HttpOptions.php", "language": "php", "file_size": 6642, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Response;\n\nuse Symfony\\Component\\HttpClient\\Chunk\\ErrorChunk;\nuse Symfony\\Component\\HttpClient\\Exception\\ClientException;\nuse Symfony\\Component\\HttpClient\\Exception\\RedirectionException;\nuse Symfony\\Component\\HttpClient\\Exception\\ServerException;\nuse Symfony\\Component\\HttpClient\\TraceableHttpClient;\nuse Symfony\\Component\\Stopwatch\\StopwatchEvent;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface;\nuse Symfony\\Contracts", "suffix": "tpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\nclass TraceableResponse implements ResponseInterface, StreamableInterface\n{\n public function __construct(\n p", "middle": "\\HttpClient\\Exception\\RedirectionExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ServerExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\Ht", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/TraceableResponse.php", "language": "php", "file_size": 6551, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Internal;\n\nuse Composer\\Composer;\nuse Composer\\EventDispatcher\\EventSubscriberInterface;\nuse Composer\\Factory;\nuse Composer\\IO\\IOInterface;\nuse Composer\\Plugin\\PluginInterface;\nuse Composer\\Script\\ScriptEvents;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Runtime\\SymfonyRuntime;\n\n/**\n * @author Nicolas Grekas composer = $composer;\n $this->io = $io;\n }\n\n public function deactivate(Composer $composer, IOInterface $io): void\n {\n self:", "middle": "ork.com>\n *\n * @internal\n */\nclass ComposerPlugin implements PluginInterface, EventSubscriberInterface\n{\n private Composer $composer;\n private IOInterface $io;\n\n private static bool $activated = false;\n\n public functi", "meta": {"filepath": "src/Symfony/Component/Runtime/Internal/ComposerPlugin.php", "language": "php", "file_size": 4218, "cut_index": 614, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nrequire __DIR__.'/autoload.php';\n\nreturn static function (Command $command, InputInterface $input, OutputInterface $output, array ", "suffix": " $command->addArgument('name', null, 'Who should I greet?', 'World');\n\n return static function () use ($input, $output, $context) {\n $output->writeln(sprintf('Hello %s', $input->getArgument('name')));\n $output->write('OK Command '.$contex", "middle": "$context) {\n ", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/phpt/command2.php", "language": "php", "file_size": 818, "cut_index": 522, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpClient\\Response;\n\nuse Symfony\\Component\\HttpClient\\Exception\\InvalidArgumentException;\n\nclass JsonMockResponse extends MockResponse\n{\n /**\n * @param mixed $body Any value that `json_encode()` can serialize\n */\n public function __construct(m", "suffix": "ion('JSON encoding failed: '.$e->getMessage(), $e->getCode(), $e);\n }\n\n $info['response_headers']['content-type'] ??= 'application/json';\n\n parent::__construct($json, $info);\n }\n\n public static function fromFile(string $path, arr", "middle": "ixed $body = [], array $info = [])\n {\n try {\n $json = json_encode($body, \\JSON_THROW_ON_ERROR | \\JSON_PRESERVE_ZERO_FRACTION);\n } catch (\\JsonException $e) {\n throw new InvalidArgumentExcept", "meta": {"filepath": "src/Symfony/Component/HttpClient/Response/JsonMockResponse.php", "language": "php", "file_size": 1465, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime\\Tests;\n\nrequire_once __DIR__.'/frankenphp-function-mock.php';\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\TerminableInterface;\nuse Symfony\\Component\\Runtime\\Runner\\Franken", "suffix": "HP_RESET_KERNEL'], $_SERVER['APP_RUNTIME_MODE']);\n }\n\n public function testRun()\n {\n $application = $this->createMock(TestAppInterface::class);\n $application\n ->expects($this->once())\n ->method('handle')\n ", "middle": "PhpWorkerRunner;\n\ninterface TestAppInterface extends HttpKernelInterface, TerminableInterface\n{\n}\n\nclass FrankenPhpWorkerRunnerTest extends TestCase\n{\n protected function tearDown(): void\n {\n unset($_SERVER['FRANKENP", "meta": {"filepath": "src/Symfony/Component/Runtime/Tests/FrankenPhpWorkerRunnerTest.php", "language": "php", "file_size": 4166, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Runtime;\n\n/**\n * Enables decoupling applications from global state.\n *\n * @author Nicolas Grekas \n */\ninterface RuntimeInterface\n{\n /**\n * Returns a resolver that should compute the arguments of a callable.\n *\n * The ", "suffix": " /**\n * Returns a callable that knows how to run the passed object and that returns its exit status as int.\n *\n * The passed object is typically created by calling ResolverInterface::resolve().\n */\n public function getRunner(?object $a", "middle": "callable itself should return an object that represents the application to pass to the getRunner() method.\n */\n public function getResolver(callable $callable, ?\\ReflectionFunction $reflector = null): ResolverInterface;\n\n ", "meta": {"filepath": "src/Symfony/Component/Runtime/RuntimeInterface.php", "language": "php", "file_size": 1030, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath;\n\n/**\n * XPath expression translator interface.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass XPathExpr\n{\n public function __constru", "suffix": " }\n }\n\n public function getElement(): string\n {\n return $this->element;\n }\n\n /**\n * @return $this\n */\n public function addCondition(string $condition, string $operator = 'and'): static\n {\n $this->condition = $thi", "middle": "ct(\n private string $path = '',\n private string $element = '*',\n private string $condition = '',\n bool $starPrefix = false,\n ) {\n if ($starPrefix) {\n $this->addStarPrefix();\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/XPathExpr.php", "language": "php", "file_size": 3093, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\TokenStream;\n\n/**\n * @author Jean-François Si", "suffix": " $reader = new Reader($value);\n $stream = new TokenStream();\n\n $this->assertTrue($this->generateHandler()->handle($reader, $stream));\n $this->assertEquals($expectedToken, $stream->getNext());\n $this->assertRemainingContent($re", "middle": "mon \n */\nabstract class AbstractHandlerTestCase extends TestCase\n{\n #[DataProvider('getHandleValueTestData')]\n public function testHandleValue($value, Token $expectedToken, $remainingContent)\n {\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Handler/AbstractHandlerTestCase.php", "language": "php", "file_size": 2278, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\CssSelector\\Parser\\Handler\\CommentHandler;\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSe", "suffix": " $reader = new Reader($value);\n $stream = new TokenStream();\n\n $this->assertTrue($this->generateHandler()->handle($reader, $stream));\n // comments are ignored (not pushed as token in stream)\n $this->assertStreamEmpty($stream)", "middle": "lector\\Parser\\TokenStream;\n\nclass CommentHandlerTest extends AbstractHandlerTestCase\n{\n #[DataProvider('getHandleValueTestData')]\n public function testHandleValue($value, Token $unusedArgument, $remainingContent)\n {\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Handler/CommentHandlerTest.php", "language": "php", "file_size": 1646, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Handler\\HashHandler;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerEscaping;\nuse Symfony\\Component\\CssSelector\\Parser\\To", "suffix": " ['#123', new Token(Token::TYPE_HASH, '123', 0), ''],\n\n ['#id.class', new Token(Token::TYPE_HASH, 'id', 0), '.class'],\n ['#id element', new Token(Token::TYPE_HASH, 'id', 0), ' element'],\n ];\n }\n\n public static functio", "middle": "kenizer\\TokenizerPatterns;\n\nclass HashHandlerTest extends AbstractHandlerTestCase\n{\n public static function getHandleValueTestData()\n {\n return [\n ['#id', new Token(Token::TYPE_HASH, 'id', 0), ''],\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Handler/HashHandlerTest.php", "language": "php", "file_size": 1357, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Handler\\IdentifierHandler;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerEscaping;\nuse Symfony\\Component\\CssSelector\\Par", "suffix": "', 0), ''],\n ['foo|bar', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), '|bar'],\n ['foo.class', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), '.class'],\n ['foo[attr]', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), '[attr]'],\n ", "middle": "ser\\Tokenizer\\TokenizerPatterns;\n\nclass IdentifierHandlerTest extends AbstractHandlerTestCase\n{\n public static function getHandleValueTestData()\n {\n return [\n ['foo', new Token(Token::TYPE_IDENTIFIER, 'foo", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Handler/IdentifierHandlerTest.php", "language": "php", "file_size": 1495, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Handler\\NumberHandler;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerPatterns;\n\nclass NumberHandlerTest extends Abstract", "suffix": " ['+12.34', new Token(Token::TYPE_NUMBER, '+12.34', 0), ''],\n ['-12.34', new Token(Token::TYPE_NUMBER, '-12.34', 0), ''],\n\n ['12 arg', new Token(Token::TYPE_NUMBER, '12', 0), ' arg'],\n ['12]', new Token(Token::TYPE", "middle": "HandlerTestCase\n{\n public static function getHandleValueTestData()\n {\n return [\n ['12', new Token(Token::TYPE_NUMBER, '12', 0), ''],\n ['12.34', new Token(Token::TYPE_NUMBER, '12.34', 0), ''],\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Handler/NumberHandlerTest.php", "language": "php", "file_size": 1406, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Handler\\StringHandler;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerEscaping;\nuse Symfony\\Component\\CssSelector\\Parser\\", "suffix": " ''],\n ['\"1\"', new Token(Token::TYPE_STRING, '1', 1), ''],\n ['\" \"', new Token(Token::TYPE_STRING, ' ', 1), ''],\n ['\"\"', new Token(Token::TYPE_STRING, '', 1), ''],\n [\"'hello'\", new Token(Token::TYPE_STRING, 'hello", "middle": "Tokenizer\\TokenizerPatterns;\n\nclass StringHandlerTest extends AbstractHandlerTestCase\n{\n public static function getHandleValueTestData()\n {\n return [\n ['\"hello\"', new Token(Token::TYPE_STRING, 'hello', 1),", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Handler/StringHandlerTest.php", "language": "php", "file_size": 1471, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Handler\\WhitespaceHandler;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\n\nclass WhitespaceHandlerTest extends AbstractHandlerTestCase\n{\n public static function getHandleVa", "suffix": " 0), ''],\n\n [' foo', new Token(Token::TYPE_WHITESPACE, ' ', 0), 'foo'],\n [' .foo', new Token(Token::TYPE_WHITESPACE, ' ', 0), '.foo'],\n ];\n }\n\n public static function getDontHandleValueTestData()\n {\n return [\n ", "middle": "lueTestData()\n {\n return [\n [' ', new Token(Token::TYPE_WHITESPACE, ' ', 0), ''],\n [\"\\n\", new Token(Token::TYPE_WHITESPACE, \"\\n\", 0), ''],\n [\"\\t\", new Token(Token::TYPE_WHITESPACE, \"\\t\",", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Handler/WhitespaceHandlerTest.php", "language": "php", "file_size": 1171, "cut_index": 518, "middle_length": 229}} {"prefix": "PathExpr;\n\nclass TranslatorTest extends TestCase\n{\n #[DataProvider('getXpathLiteralTestData')]\n public function testXpathLiteral($value, $literal)\n {\n $this->assertEquals($literal, Translator::getXpathLiteral($value));\n }\n\n #[DataProvider('getCssToXPathTestData')]\n public function testCssToXPath($css, $xpath)\n {\n $translator = new Translator();\n $translator->registerExtension(new HtmlExtension($translator));\n $this->assertEquals($xpath, $translator->cssToXPat", "suffix": "mlExtension($translator));\n\n $this->expectException(SyntaxErrorException::class);\n\n $translator->cssToXPath($css, '');\n }\n\n public static function getUnsupportedHasSelectorTestData(): iterable\n {\n yield 'pseudo-element inside ", "middle": "h($css, ''));\n }\n\n #[DataProvider('getUnsupportedHasSelectorTestData')]\n public function testHasUnsupportedSelector(string $css)\n {\n $translator = new Translator();\n $translator->registerExtension(new Ht", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/XPath/TranslatorTest.php", "language": "php", "file_size": 23534, "cut_index": 1331, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\Node\\NodeInterface;\n\nabstract class AbstractNodeTestCase extends TestCase\n{\n #[DataProvider('getToStringCo", "suffix": " public function testSpecificityValue(NodeInterface $node, $value)\n {\n $this->assertEquals($value, $node->getSpecificity()->getValue());\n }\n\n abstract public static function getToStringConversionTestData();\n\n abstract public static func", "middle": "nversionTestData')]\n public function testToStringConversion(NodeInterface $node, $representation)\n {\n $this->assertEquals($representation, (string) $node);\n }\n\n #[DataProvider('getSpecificityValueTestData')]\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/AbstractNodeTestCase.php", "language": "php", "file_size": 1036, "cut_index": 513, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\AttributeNode;\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\n\nclass AttributeNodeTest extends AbstractNodeTestCase\n{\n public static function getToStringConversionTestData()\n {\n ", "suffix": "[Element[*][attribute $= 'value']]\"],\n [new AttributeNode(new ElementNode(), 'namespace', 'attribute', '$=', 'value'), \"Attribute[Element[*][namespace|attribute $= 'value']]\"],\n ];\n }\n\n public static function getSpecificityValueTest", "middle": " return [\n [new AttributeNode(new ElementNode(), null, 'attribute', 'exists', null), 'Attribute[Element[*][attribute]]'],\n [new AttributeNode(new ElementNode(), null, 'attribute', '$=', 'value'), \"Attribute", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/AttributeNodeTest.php", "language": "php", "file_size": 1442, "cut_index": 524, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\ClassNode;\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\n\nclass ClassNodeTest extends AbstractNodeTestCase\n{\n public static function getToStringConversionTestData()\n {\n return [\n ", "suffix": ", 'Class[Element[*].class]'],\n ];\n }\n\n public static function getSpecificityValueTestData()\n {\n return [\n [new ClassNode(new ElementNode(), 'class'), 10],\n [new ClassNode(new ElementNode(null, 'element'), 'class", "middle": " [new ClassNode(new ElementNode(), 'class')", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/ClassNodeTest.php", "language": "php", "file_size": 865, "cut_index": 529, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\CombinedSelectorNode;\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\n\nclass CombinedSelectorNodeTest extends AbstractNodeTestCase\n{\n public static function getToStringConversionTes", "suffix": "entNode()), 'CombinedSelector[Element[*] Element[*]]'],\n ];\n }\n\n public static function getSpecificityValueTestData()\n {\n return [\n [new CombinedSelectorNode(new ElementNode(), '>', new ElementNode()), 0],\n ", "middle": "tData()\n {\n return [\n [new CombinedSelectorNode(new ElementNode(), '>', new ElementNode()), 'CombinedSelector[Element[*] > Element[*]]'],\n [new CombinedSelectorNode(new ElementNode(), ' ', new Elem", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/CombinedSelectorNodeTest.php", "language": "php", "file_size": 1234, "cut_index": 518, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\n\nclass ElementNodeTest extends AbstractNodeTestCase\n{\n public static function getToStringConversionTestData()\n {\n return [\n [new ElementNode(), 'Element[*]'],\n [new ElementNode(null, 'element'), 'Element[element]'],\n ", "suffix": "amespace|element]'],\n ];\n }\n\n public static function getSpecificityValueTestData()\n {\n return [\n [new ElementNode(), 0],\n [new ElementNode(null, 'element'), 1],\n [new ElementNode('namespace', 'element", "middle": "[new ElementNode('namespace', 'element'), 'Element[n", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/ElementNodeTest.php", "language": "php", "file_size": 941, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\FunctionNode;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\n\nclass FunctionNodeTest extends AbstractNodeTestCase\n{\n public static function getToString", "suffix": "n(Token::TYPE_IDENTIFIER, 'value', 0),\n ]), \"Function[Element[*]:function(['value'])]\"],\n [new FunctionNode(new ElementNode(), 'function', [\n new Token(Token::TYPE_STRING, 'value1', 0),\n new Token(Token::", "middle": "ConversionTestData()\n {\n return [\n [new FunctionNode(new ElementNode(), 'function'), 'Function[Element[*]:function()]'],\n [new FunctionNode(new ElementNode(), 'function', [\n new Toke", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/FunctionNodeTest.php", "language": "php", "file_size": 1656, "cut_index": 537, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\HashNode;\n\nclass HashNodeTest extends AbstractNodeTestCase\n{\n public static function getToStringConversionTestData()\n {\n return [\n ", "suffix": "ent[*]#id]'],\n ];\n }\n\n public static function getSpecificityValueTestData()\n {\n return [\n [new HashNode(new ElementNode(), 'id'), 100],\n [new HashNode(new ElementNode(null, 'id'), 'class'), 101],\n ];\n ", "middle": " [new HashNode(new ElementNode(), 'id'), 'Hash[Elem", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/HashNodeTest.php", "language": "php", "file_size": 847, "cut_index": 535, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\ClassNode;\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\HashNode;\nuse Symfony\\Component\\CssSelector\\Node\\MatchingNode;\n\nclass MatchingNodeTest extends AbstractNo", "suffix": "Node(new ElementNode(), 'id'),\n ]), 'Matching[Element[*]:is(Class[Element[*].class], Hash[Element[*]#id])]'],\n ];\n }\n\n public static function getSpecificityValueTestData()\n {\n return [\n [new MatchingNode(new Ele", "middle": "deTestCase\n{\n public static function getToStringConversionTestData()\n {\n return [\n [new MatchingNode(new ElementNode(), [\n new ClassNode(new ElementNode(), 'class'),\n new Hash", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/MatchingNodeTest.php", "language": "php", "file_size": 1609, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\ClassNode;\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\NegationNode;\n\nclass NegationNodeTest extends AbstractNodeTestCase\n{\n public static function getToStringConversionTestData()\n {\n return [\n [new Negati", "suffix": "ode(), 'class')), 'Negation[Element[*]:not(Class[Element[*].class])]'],\n ];\n }\n\n public static function getSpecificityValueTestData()\n {\n return [\n [new NegationNode(new ElementNode(), new ClassNode(new ElementNode(), 'cla", "middle": "onNode(new ElementNode(), new ClassNode(new ElementN", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/NegationNodeTest.php", "language": "php", "file_size": 945, "cut_index": 606, "middle_length": 52}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\PseudoNode;\n\nclass PseudoNodeTest extends AbstractNodeTestCase\n{\n public static function getToStringConversionTestData()\n {\n ", "suffix": " [new PseudoNode(new ElementNode(), 'pseudo'), 'Pseudo[Element[*]:pseudo]'],\n ];\n }\n\n public static function getSpecificityValueTestData()\n {\n return [\n [new PseudoNode(new ElementNode(), 'pseudo'), 10],\n ]", "middle": " return [\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/PseudoNodeTest.php", "language": "php", "file_size": 797, "cut_index": 517, "middle_length": 14}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\n\nclass SelectorNodeTest extends AbstractNodeTestCase\n{\n public static function getToStringConversionTestData()\n {\n return [\n [new SelectorNode(new ElementNode()), 'Selector[Element[*]]']", "suffix": "pseudo'), 'Selector[Element[*]::pseudo]'],\n ];\n }\n\n public static function getSpecificityValueTestData()\n {\n return [\n [new SelectorNode(new ElementNode()), 0],\n [new SelectorNode(new ElementNode(), 'pseudo'), 1", "middle": ",\n [new SelectorNode(new ElementNode(), '", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/SelectorNodeTest.php", "language": "php", "file_size": 936, "cut_index": 606, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse Symfony\\Component\\CssSelector\\Node\\ClassNode;\nuse Symfony\\Component\\CssSelector\\Node\\ElementNode;\nuse Symfony\\Component\\CssSelector\\Node\\HashNode;\nuse Symfony\\Component\\CssSelector\\Node\\SpecificityAdjustmentNode;\n\nclass Specifici", "suffix": "ew ElementNode(), 'class'),\n new HashNode(new ElementNode(), 'id'),\n ]), 'SpecificityAdjustment[Element[*]:where(Class[Element[*].class], Hash[Element[*]#id])]'],\n ];\n }\n\n public static function getSpecificityValueTes", "middle": "tyAdjustmentNodeTest extends AbstractNodeTestCase\n{\n public static function getToStringConversionTestData()\n {\n return [\n [new SpecificityAdjustmentNode(new ElementNode(), [\n new ClassNode(n", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/SpecificityAdjustmentNodeTest.php", "language": "php", "file_size": 1480, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Node;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\Node\\Specificity;\n\nclass SpecificityTest extends TestCase\n{\n #[DataProvider('getValueTestData')]\n public function testValue(Specificity $specificity, $va", "suffix": " + 123, $specificity->plus(new Specificity(1, 2, 3))->getValue());\n }\n\n public static function getValueTestData()\n {\n return [\n [new Specificity(0, 0, 0), 0],\n [new Specificity(0, 0, 2), 2],\n [new Specificit", "middle": "lue)\n {\n $this->assertEquals($value, $specificity->getValue());\n }\n\n #[DataProvider('getValueTestData')]\n public function testPlusValue(Specificity $specificity, $value)\n {\n $this->assertEquals($value", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Node/SpecificityTest.php", "language": "php", "file_size": 2150, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache;\n\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Exception\\LogicException;\nuse Symfony\\Contracts\\Cache\\ItemInterface;\n\n/**\n * @author Nicolas Grekas \n */\nfinal class CacheItem implements ItemInterface\n{\n private const METADATA_EXPIRY_OFFSET = 1527506807;\n private const VALUE_WRAPPER = \"\\xA9\";\n\n protected string", "suffix": "e $innerItem = null;\n protected ?string $poolHash = null;\n protected bool $isTaggable = false;\n\n public function getKey(): string\n {\n return $this->key;\n }\n\n public function get(): mixed\n {\n return $this->value;\n }\n\n ", "middle": " $key;\n protected mixed $value = null;\n protected bool $isHit = false;\n protected float|int|null $expiry = null;\n protected array $metadata = [];\n protected array $newMetadata = [];\n protected ?CacheItemInterfac", "meta": {"filepath": "src/Symfony/Component/Cache/CacheItem.php", "language": "php", "file_size": 6255, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\ItemInterface;\n\n/**\n * LockRegistry is used internally by existing adapters to protect against cache stampede.\n *\n * It does so by wrapping the computation of items in a pool of locks.\n * Foreach each apps, there can be at most 20 concurrent processes that\n * compute items at the same time and only one per cache-key.\n *\n * @author Nicolas ", "suffix": "alingCallback;\n\n /**\n * The number of items in this list controls the max number of concurrent processes.\n */\n private static array $files = [\n __DIR__.\\DIRECTORY_SEPARATOR.'Adapter'.\\DIRECTORY_SEPARATOR.'AbstractAdapter.php',\n ", "middle": "Grekas \n */\nfinal class LockRegistry\n{\n private static array $openedFiles = [];\n private static ?array $lockedFiles = null;\n private static \\Exception $signalingException;\n private static \\Closure $sign", "meta": {"filepath": "src/Symfony/Component/Cache/LockRegistry.php", "language": "php", "file_size": 8091, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache;\n\nuse Psr\\Cache\\CacheException as Psr6CacheException;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Psr\\SimpleCache\\CacheException as SimpleCacheException;\nuse Psr\\SimpleCache\\CacheInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Traits\\ProxyTrait;\nuse Symfony\\Contracts\\Cache\\ItemInterface;\n\n/**\n * Turns a PSR-6 cache into a PSR-16 one.\n ", "suffix": "heItemPrototype = null;\n private static \\Closure $packCacheItem;\n\n public function __construct(CacheItemPoolInterface $pool)\n {\n $this->pool = $pool;\n\n if (!$pool instanceof AdapterInterface) {\n return;\n }\n $", "middle": "*\n * @author Nicolas Grekas \n */\nclass Psr16Cache implements CacheInterface, PruneableInterface, ResettableInterface\n{\n use ProxyTrait;\n\n private ?\\Closure $createCacheItem = null;\n private ?CacheItem $cac", "meta": {"filepath": "src/Symfony/Component/Cache/Psr16Cache.php", "language": "php", "file_size": 7958, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Psr\\Log\\LoggerAwareInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\ResettableInterface;\nuse Symfony\\Component\\Cache\\Traits\\AbstractAdapterTrait;\nuse Symfony\\Component\\Cache\\Traits\\ContractsTrait;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\n\n/**\n * @autho", "suffix": "Trait;\n\n /**\n * @internal\n */\n protected const NS_SEPARATOR = ':';\n\n private static bool $apcuSupported;\n\n protected function __construct(string $namespace = '', int $defaultLifetime = 0)\n {\n if ('' !== $namespace) {\n ", "middle": "r Nicolas Grekas \n */\nabstract class AbstractAdapter implements AdapterInterface, CacheInterface, NamespacedPoolInterface, LoggerAwareInterface, ResettableInterface\n{\n use AbstractAdapterTrait;\n use Contracts", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/AbstractAdapter.php", "language": "php", "file_size": 8002, "cut_index": 716, "middle_length": 229}} {"prefix": "xception;\nuse Symfony\\Component\\Cache\\ResettableInterface;\nuse Symfony\\Component\\Cache\\Traits\\AbstractAdapterTrait;\nuse Symfony\\Component\\Cache\\Traits\\ContractsTrait;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\nuse Symfony\\Contracts\\Cache\\TagAwareCacheInterface;\n\n/**\n * Abstract for native TagAware adapters.\n *\n * To keep info on tags, the tags are both serialized as part of cache value and provided as tag ids\n * to Adapters on operations when needed for storage to doSave(), doDelete() & doInvalida", "suffix": "dapterInterface, NamespacedPoolInterface, LoggerAwareInterface, ResettableInterface\n{\n use AbstractAdapterTrait;\n use ContractsTrait;\n\n /**\n * @internal\n */\n protected const NS_SEPARATOR = ':';\n\n private const TAGS_PREFIX = \"\\1tags\\1", "middle": "te().\n *\n * @author Nicolas Grekas \n * @author André Rømcke \n *\n * @internal\n */\nabstract class AbstractTagAwareAdapter implements TagAwareAdapterInterface, TagAwareCacheInterface, A", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/AbstractTagAwareAdapter.php", "language": "php", "file_size": 13786, "cut_index": 921, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\CacheItem;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(CacheItem::class);\n\n/**\n * Interface for adapters managing instances of Symfony's CacheItem.\n *\n * @a", "suffix": "e AdapterInterface extends CacheItemPoolInterface\n{\n public function getItem(mixed $key): CacheItem;\n\n /**\n * @return iterable\n */\n public function getItems(array $keys = []): iterable;\n\n public function clear(string ", "middle": "uthor Kévin Dunglas \n */\ninterfac", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/AdapterInterface.php", "language": "php", "file_size": 861, "cut_index": 529, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Exception\\CacheException;\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\n\n/**\n * @author Nicolas Grekas \n */\nclass ApcuAdapter extends AbstractAdapter\n{\n /**\n * @throws CacheException if APCu is not enabled\n */\n public func", "suffix": " throw new CacheException('APCu is not enabled.');\n }\n if ('cli' === \\PHP_SAPI) {\n ini_set('apc.use_request_time', 0);\n }\n parent::__construct($namespace, $defaultLifetime);\n\n if (null !== $version) {\n ", "middle": "tion __construct(\n string $namespace = '',\n int $defaultLifetime = 0,\n ?string $version = null,\n private ?MarshallerInterface $marshaller = null,\n ) {\n if (!static::isSupported()) {\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/ApcuAdapter.php", "language": "php", "file_size": 3259, "cut_index": 614, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\ResettableInterface;\nuse Symfony\\Component\\VarExporter\\DeepCloner;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\n\n/**\n * An in-memory cache storage.\n *\n * Acts as a least-recently-used (LRU) storage when configured with a maximum number of items.\n *\n * @author Nicolas Grekas \n */\nclass ArrayAdapter implements Ada", "suffix": "ivate array $subPools = [];\n private array $explicitExpiries = [];\n\n private static \\Closure $createCacheItem;\n\n /**\n * @param bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increase", "middle": "pterInterface, CacheInterface, NamespacedPoolInterface, LoggerAwareInterface, ResettableInterface\n{\n use LoggerAwareTrait;\n\n private array $values = [];\n private array $tags = [];\n private array $expiries = [];\n pr", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/ArrayAdapter.php", "language": "php", "file_size": 11930, "cut_index": 921, "middle_length": 229}} {"prefix": "onent\\Cache\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\ResettableInterface;\nuse Symfony\\Component\\Cache\\Traits\\ContractsTrait;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Chains several adapters together.\n *\n * Cached items are fetched from the first adapter having them in ", "suffix": "e, ResettableInterface\n{\n use ContractsTrait;\n\n private array $adapters = [];\n private int $adapterCount;\n\n private static \\Closure $syncItem;\n\n /**\n * @param CacheItemPoolInterface[] $adapters The ordered list of adapters used to", "middle": "its data store.\n * They are saved and deleted in all adapters at once.\n *\n * @author Kévin Dunglas \n */\nclass ChainAdapter implements AdapterInterface, CacheInterface, NamespacedPoolInterface, PruneableInterfac", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/ChainAdapter.php", "language": "php", "file_size": 9509, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Couchbase\\Bucket;\nuse Couchbase\\Cluster;\nuse Couchbase\\ClusterOptions;\nuse Couchbase\\Collection;\nuse Couchbase\\DocumentNotFoundException;\nuse Couchbase\\UpsertOptions;\nuse Symfony\\Component\\Cache\\Exception\\CacheException;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Marshaller\\DefaultMarshaller;\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\n\n/**\n * @author Antonio Jos", "suffix": "private Collection $connection,\n string $namespace = '',\n int $defaultLifetime = 0,\n ?MarshallerInterface $marshaller = null,\n ) {\n if (!static::isSupported()) {\n throw new CacheException('Couchbase >= 3.0.5 < 4.0.", "middle": "e Cerezo Aranda \n */\nclass CouchbaseCollectionAdapter extends AbstractAdapter\n{\n private const MAX_KEY_LENGTH = 250;\n\n private MarshallerInterface $marshaller;\n\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/CouchbaseCollectionAdapter.php", "language": "php", "file_size": 6175, "cut_index": 716, "middle_length": 229}} {"prefix": "nager;\nuse Doctrine\\DBAL\\Exception as DBALException;\nuse Doctrine\\DBAL\\Exception\\TableNotFoundException;\nuse Doctrine\\DBAL\\ParameterType;\nuse Doctrine\\DBAL\\Platforms\\AbstractMySQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\OraclePlatform;\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\SQLitePlatform;\nuse Doctrine\\DBAL\\Platforms\\SQLServerPlatform;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Schema\\Name\\Identifier;\nuse Doctrine\\DBAL\\Schema\\Name\\UnqualifiedNam", "suffix": "ponent\\Cache\\Marshaller\\DefaultMarshaller;\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\nuse Symfony\\Component\\Cache\\PruneableInterface;\n\nclass DoctrineDbalAdapter extends AbstractAdapter implements PruneableInterface\n{\n private const MAX_", "middle": "e;\nuse Doctrine\\DBAL\\Schema\\PrimaryKeyConstraint;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Doctrine\\DBAL\\Tools\\DsnParser;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Com", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php", "language": "php", "file_size": 16949, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath\\Extension;\n\nuse Symfony\\Component\\CssSelector\\XPath\\XPathExpr;\n\n/**\n * XPath expression translator combination extension.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSap", "suffix": "eturn [\n ' ' => $this->translateDescendant(...),\n '>' => $this->translateChild(...),\n '+' => $this->translateDirectAdjacent(...),\n '~' => $this->translateIndirectAdjacent(...),\n ];\n }\n\n public functi", "middle": "in/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass CombinationExtension extends AbstractExtension\n{\n public function getCombinationTranslators(): array\n {\n r", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Extension/CombinationExtension.php", "language": "php", "file_size": 1871, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath\\Extension;\n\nuse Symfony\\Component\\CssSelector\\Exception\\ExpressionErrorException;\nuse Symfony\\Component\\CssSelector\\Exception\\SyntaxErrorException;\nuse Symfony\\Component\\CssSelector\\Node\\FunctionNode;\nuse Symfony\\Component\\CssSelector\\Parser\\Parser;\nuse Symfony\\Component\\CssSelector\\XPath\\Translator;\nuse Symfony\\Component\\CssSelector\\XPath\\XPathExpr;\n\n/**\n * XPath expression translator function extension.\n *\n * This component is", "suffix": "ension extends AbstractExtension\n{\n public function getFunctionTranslators(): array\n {\n return [\n 'nth-child' => $this->translateNthChild(...),\n 'nth-last-child' => $this->translateNthLastChild(...),\n 'nth-of-t", "middle": " a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass FunctionExt", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Extension/FunctionExtension.php", "language": "php", "file_size": 5165, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath\\Extension;\n\nuse Symfony\\Component\\CssSelector\\Exception\\ExpressionErrorException;\nuse Symfony\\Component\\CssSelector\\Node\\FunctionNode;\nuse Symfony\\Component\\CssSelector\\XPath\\Translator;\nuse Symfony\\Component\\CssSelector\\XPath\\XPathExpr;\n\n/**\n * XPath expression translator HTML extension.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselec", "suffix": " ->getExtension('node')\n ->setFlag(NodeExtension::ELEMENT_NAME_IN_LOWER_CASE, true)\n ->setFlag(NodeExtension::ATTRIBUTE_NAME_IN_LOWER_CASE, true);\n }\n\n public function getPseudoClassTranslators(): array\n {\n return", "middle": "t.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass HtmlExtension extends AbstractExtension\n{\n public function __construct(Translator $translator)\n {\n $translator\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Extension/HtmlExtension.php", "language": "php", "file_size": 5809, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath\\Extension;\n\nuse Symfony\\Component\\CssSelector\\XPath\\XPathExpr;\n\n/**\n * XPath expression translator combination extension.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/scrapy/cssselect.\n *\n * @author Fr", "suffix": "->translateRelationDescendant(...),\n '>' => $this->translateRelationChild(...),\n '+' => $this->translateRelationDirectAdjacent(...),\n '~' => $this->translateRelationIndirectAdjacent(...),\n ];\n }\n\n public functi", "middle": "anck Ranaivo-Harisoa \n *\n * @internal\n */\nclass RelationExtension extends AbstractExtension\n{\n public function getRelativeCombinationTranslators(): array\n {\n return [\n ' ' => $this", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Extension/RelationExtension.php", "language": "php", "file_size": 2115, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \"[| ]\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-Franç", "suffix": "ivate string $attribute,\n private string $operator,\n private ?string $value,\n ) {\n }\n\n public function getSelector(): NodeInterface\n {\n return $this->selector;\n }\n\n public function getNamespace(): ?string\n {\n ", "middle": "ois Simon \n *\n * @internal\n */\nclass AttributeNode extends AbstractNode\n{\n public function __construct(\n private NodeInterface $selector,\n private ?string $namespace,\n pr", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/AttributeNode.php", "language": "php", "file_size": 1874, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a combined node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon selector;\n }\n\n public function getCombinator(): string\n {\n return $this->combinator;\n }\n\n public function getSubSelector(): NodeInterfac", "middle": "olabs.com>\n *\n * @internal\n */\nclass CombinedSelectorNode extends AbstractNode\n{\n public function __construct(\n private NodeInterface $selector,\n private string $combinator,\n private NodeInterface $subSele", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/CombinedSelectorNode.php", "language": "php", "file_size": 1470, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\n\n/**\n * Represents a \":()\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.", "suffix": "__construct(\n private NodeInterface $selector,\n string $name,\n private array $arguments = [],\n ) {\n $this->name = strtolower($name);\n }\n\n public function getSelector(): NodeInterface\n {\n return $this->selector", "middle": "\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass FunctionNode extends AbstractNode\n{\n private string $name;\n\n /**\n * @param Token[] $arguments\n */\n public function ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/FunctionNode.php", "language": "php", "file_size": 1692, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \":is()\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Hubert Lenoir arguments,\n static fn ($c, $n) => 1 === $n->getSpecificity()->co", "middle": "ir.hubert@gmail.com>\n *\n * @internal\n */\nclass MatchingNode extends AbstractNode\n{\n /**\n * @param array $arguments\n */\n public function __construct(\n public readonly NodeInterface $selector,\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/MatchingNode.php", "language": "php", "file_size": 1502, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \":\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon identifier = strtolower($identifier);\n }\n\n public function getSelector(): NodeInterface\n {\n return $this->selector;\n }\n\n public function getIdentifier(): string\n {\n return $this->identifier;\n }\n\n publi", "middle": "ncois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass PseudoNode extends AbstractNode\n{\n private string $identifier;\n\n public function __construct(\n private NodeInterface $selector,\n string $identifier,\n ) ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/PseudoNode.php", "language": "php", "file_size": 1297, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \"(::|:)\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon ", "suffix": "lement = null,\n ) {\n $this->pseudoElement = $pseudoElement ? strtolower($pseudoElement) : null;\n }\n\n public function getTree(): NodeInterface\n {\n return $this->tree;\n }\n\n public function getPseudoElement(): ?string\n {\n ", "middle": "\n *\n * @internal\n */\nclass SelectorNode extends AbstractNode\n{\n private ?string $pseudoElement;\n\n public function __construct(\n private NodeInterface $tree,\n ?string $pseudoE", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/SelectorNode.php", "language": "php", "file_size": 1401, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a node specificity.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @see http://www.w3.org/TR/selectors/#specificity\n *\n * @author ", "suffix": " private int $a,\n private int $b,\n private int $c,\n ) {\n }\n\n public function plus(self $specificity): self\n {\n return new self($this->a + $specificity->a, $this->b + $specificity->b, $this->c + $specificity->c);\n }\n\n", "middle": "Jean-François Simon \n *\n * @internal\n */\nclass Specificity\n{\n public const A_FACTOR = 100;\n public const B_FACTOR = 10;\n public const C_FACTOR = 1;\n\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/Specificity.php", "language": "php", "file_size": 1737, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\CssSelectorConverter;\nuse Symfony\\Component\\CssSelector\\Exception\\ParseException;\n\nclass CssSelectorConverterTest extends TestCase\n{\n public function testCssToXPath()\n {\n $converter = new CssSelectorCon", "suffix": " 'foo']\", $converter->toXPath('h1#foo'));\n $this->assertEquals(\"descendant-or-self::h1[@class and contains(concat(' ', normalize-space(@class), ' '), ' foo ')]\", $converter->toXPath('h1.foo'));\n $this->assertEquals('descendant-or-self::foo:h1", "middle": "verter();\n\n $this->assertEquals('descendant-or-self::*', $converter->toXPath(''));\n $this->assertEquals('descendant-or-self::h1', $converter->toXPath('h1'));\n $this->assertEquals(\"descendant-or-self::h1[@id =", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/CssSelectorConverterTest.php", "language": "php", "file_size": 4652, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\Parser\\Reader;\n\nclass ReaderTest extends TestCase\n{\n public function testIsEOF()\n {\n $reader = new Reader('');\n $this->assertTrue($reader->isEOF());\n\n $reader = new Reader('hell", "suffix": "\n }\n\n public function testGetRemainingLength()\n {\n $reader = new Reader('hello');\n $this->assertEquals(5, $reader->getRemainingLength());\n\n $this->assignPosition($reader, 2);\n $this->assertEquals(3, $reader->getRemainin", "middle": "o');\n $this->assertFalse($reader->isEOF());\n\n $this->assignPosition($reader, 2);\n $this->assertFalse($reader->isEOF());\n\n $this->assignPosition($reader, 5);\n $this->assertTrue($reader->isEOF());", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/ReaderTest.php", "language": "php", "file_size": 2909, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\nuse Symfony\\Component\\CssSelector\\Parser\\Shortcut\\ClassParser;\n\n/**\n * @author Jean-Franço", "suffix": " $selectors = $parser->parse($source);\n $this->assertCount(1, $selectors);\n\n /** @var SelectorNode $selector */\n $selector = $selectors[0];\n $this->assertEquals($representation, (string) $selector->getTree());\n }\n\n ", "middle": "is Simon \n */\nclass ClassParserTest extends TestCase\n{\n #[DataProvider('getParseTestData')]\n public function testParse($source, $representation)\n {\n $parser = new ClassParser();\n", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ClassParserTest.php", "language": "php", "file_size": 1454, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\nuse Symfony\\Component\\CssSelector\\Parser\\Shortcut\\HashParser;\n\n/**\n * @author Jean-Françoi", "suffix": " $selectors = $parser->parse($source);\n $this->assertCount(1, $selectors);\n\n /** @var SelectorNode $selector */\n $selector = $selectors[0];\n $this->assertEquals($representation, (string) $selector->getTree());\n }\n\n pub", "middle": "s Simon \n */\nclass HashParserTest extends TestCase\n{\n #[DataProvider('getParseTestData')]\n public function testParse($source, $representation)\n {\n $parser = new HashParser();\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/HashParserTest.php", "language": "php", "file_size": 1416, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath\\Extension;\n\n/**\n * XPath expression translator abstract extension.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/scrapy/cssselect.\n *\n * @author Jean-Françoi", "suffix": "getCombinationTranslators(): array\n {\n return [];\n }\n\n public function getFunctionTranslators(): array\n {\n return [];\n }\n\n public function getPseudoClassTranslators(): array\n {\n return [];\n }\n\n public functio", "middle": "s Simon \n *\n * @internal\n */\nabstract class AbstractExtension implements ExtensionInterface\n{\n public function getNodeTranslators(): array\n {\n return [];\n }\n\n public function ", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Extension/AbstractExtension.php", "language": "php", "file_size": 1175, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath\\Extension;\n\nuse Symfony\\Component\\CssSelector\\Node;\nuse Symfony\\Component\\CssSelector\\XPath\\Translator;\nuse Symfony\\Component\\CssSelector\\XPath\\XPathExpr;\n\n/**\n * XPath expression translator node extension.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/scrapy/cssselect.\n *\n * @author Jean-François Simon \n *\n * @interna", "suffix": "construct(\n private int $flags = 0,\n ) {\n }\n\n /**\n * @return $this\n */\n public function setFlag(int $flag, bool $on): static\n {\n if ($on && !$this->hasFlag($flag)) {\n $this->flags += $flag;\n }\n\n ", "middle": "l\n */\nclass NodeExtension extends AbstractExtension\n{\n public const ELEMENT_NAME_IN_LOWER_CASE = 1;\n public const ATTRIBUTE_NAME_IN_LOWER_CASE = 2;\n public const ATTRIBUTE_VALUE_IN_LOWER_CASE = 4;\n\n public function __", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php", "language": "php", "file_size": 8019, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath\\Extension;\n\nuse Symfony\\Component\\CssSelector\\Exception\\ExpressionErrorException;\nuse Symfony\\Component\\CssSelector\\XPath\\XPathExpr;\n\n/**\n * XPath expression translator pseudo-class extension.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/css", "suffix": "[\n 'root' => $this->translateRoot(...),\n 'scope' => $this->translateScopePseudo(...),\n 'first-child' => $this->translateFirstChild(...),\n 'last-child' => $this->translateLastChild(...),\n 'first-of-type", "middle": "select.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nclass PseudoClassExtension extends AbstractExtension\n{\n public function getPseudoClassTranslators(): array\n {\n return ", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Extension/PseudoClassExtension.php", "language": "php", "file_size": 3530, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \"|\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon namespace;\n }\n\n public function getElement(): ?string\n {\n return $this->element;\n }\n\n public function getSpecificity(): Specificity\n {\n return new Specificity(0, ", "middle": "ois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass ElementNode extends AbstractNode\n{\n public function __construct(\n private ?string $namespace = null,\n private ?string $element = null,\n ) {\n }\n\n public", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/ElementNode.php", "language": "php", "file_size": 1261, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \":not()\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon selector;\n }\n\n public function getSubSelector(): NodeInterface\n {\n return $this->subSelector;\n }\n\n public function getSpecificity(): Specificity\n {\n ", "middle": "anfrancois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass NegationNode extends AbstractNode\n{\n public function __construct(\n private NodeInterface $selector,\n private NodeInterface $subSelector,\n ) {\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/NegationNode.php", "language": "php", "file_size": 1261, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \":where()\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Hubert Lenoir selector->getSpecificity();\n }\n\n public function __toString(): string\n {\n $selectorArg", "middle": "enoir.hubert@gmail.com>\n *\n * @internal\n */\nclass SpecificityAdjustmentNode extends AbstractNode\n{\n /**\n * @param array $arguments\n */\n public function __construct(\n public readonly NodeInterfa", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/SpecificityAdjustmentNode.php", "language": "php", "file_size": 1253, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\Exception\\SyntaxErrorException;\nuse Symfony\\Component\\CssSelector\\Parser\\Token;\nuse Symfony\\Component\\CssSelector\\Parser\\TokenStream;\n\nclass TokenStreamTest extends TestCase\n{\n public function testGetNext()\n {\n $stream = new TokenStream();\n ", "suffix": "his->assertSame($t1, $stream->getNext());\n $this->assertSame($t2, $stream->getNext());\n $this->assertSame($t3, $stream->getNext());\n }\n\n public function testGetPeek()\n {\n $stream = new TokenStream();\n $stream->push($t1 ", "middle": " $stream->push($t1 = new Token(Token::TYPE_IDENTIFIER, 'h1', 0));\n $stream->push($t2 = new Token(Token::TYPE_DELIMITER, '.', 2));\n $stream->push($t3 = new Token(Token::TYPE_IDENTIFIER, 'title', 3));\n\n $t", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/TokenStreamTest.php", "language": "php", "file_size": 3186, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\nuse Symfony\\Component\\CssSelector\\Parser\\Shortcut\\EmptyStringParser;\n\n/**\n * @author Jean-François Simon assertEquals('Element[*]', (string) $selector->getTree());\n\n $selectors = $parser->parse('this will produce an empty array');\n $this->assertCount", "middle": "sensiolabs.com>\n */\nclass EmptyStringParserTest extends TestCase\n{\n public function testParse()\n {\n $parser = new EmptyStringParser();\n $selectors = $parser->parse('');\n $this->assertCount(1, $selectors", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/EmptyStringParserTest.php", "language": "php", "file_size": 1023, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath\\Extension;\n\nuse Symfony\\Component\\CssSelector\\XPath\\Translator;\nuse Symfony\\Component\\CssSelector\\XPath\\XPathExpr;\n\n/**\n * XPath expression translator attribute extension.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author", "suffix": " 'exists' => $this->translateExists(...),\n '=' => $this->translateEquals(...),\n '~=' => $this->translateIncludes(...),\n '|=' => $this->translateDashMatch(...),\n '^=' => $this->translatePrefixMatch(...),\n ", "middle": " Jean-François Simon \n *\n * @internal\n */\nclass AttributeMatchingExtension extends AbstractExtension\n{\n public function getAttributeMatchingTranslators(): array\n {\n return [\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Extension/AttributeMatchingExtension.php", "language": "php", "file_size": 3763, "cut_index": 614, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Abstract base node class.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\nabstract class AbstractNode implements NodeInterface\n{\n private string $nodeName;\n\n public function getNodeName(): string\n {\n return $this->nodeName ??= preg_replace('~.*\\\\\\\\([^\\\\\\\\]+)Node$~', '$1', static::class);\n", "middle": "on@sensiolabs.", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/AbstractNode.php", "language": "php", "file_size": 793, "cut_index": 514, "middle_length": 14}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \"#\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon selector;\n }\n\n public function getId(): string\n {\n return $this->id;\n }\n\n public function getSpecificity(): Specificity\n {\n return $this->selector->getSpecificity()->plus(new ", "middle": "ois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass HashNode extends AbstractNode\n{\n public function __construct(\n private NodeInterface $selector,\n private string $id,\n ) {\n }\n\n public function getSelec", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/HashNode.php", "language": "php", "file_size": 1177, "cut_index": 518, "middle_length": 229}} {"prefix": " $this->assertEquals($representation, array_map(static fn (SelectorNode $node) => (string) $node->getTree(), $parser->parse($source)));\n }\n\n #[DataProvider('getParserExceptionTestData')]\n public function testParserException($source, $message)\n {\n $parser = new Parser();\n\n try {\n $parser->parse($source);\n $this->fail('Parser should throw a SyntaxErrorException.');\n } catch (SyntaxErrorException $e) {\n $this->assertEquals($message, $e->getMe", "suffix": " $this->assertCount(1, $selectors);\n\n /** @var SelectorNode $selector */\n $selector = $selectors[0];\n $this->assertEquals($element, (string) $selector->getTree());\n $this->assertEquals($pseudo, (string) $selector->getPseudo", "middle": "ssage());\n }\n }\n\n #[DataProvider('getPseudoElementsTestData')]\n public function testPseudoElements($source, $element, $pseudo)\n {\n $parser = new Parser();\n $selectors = $parser->parse($source);\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/ParserTest.php", "language": "php", "file_size": 18041, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\CssSelector\\Node\\SelectorNode;\nuse Symfony\\Component\\CssSelector\\Parser\\Shortcut\\ElementParser;\n\n/**\n * @author Jean-Fran", "suffix": "er();\n $selectors = $parser->parse($source);\n $this->assertCount(1, $selectors);\n\n /** @var SelectorNode $selector */\n $selector = $selectors[0];\n $this->assertEquals($representation, (string) $selector->getTree());\n }", "middle": "çois Simon \n */\nclass ElementParserTest extends TestCase\n{\n #[DataProvider('getParseTestData')]\n public function testParse($source, $representation)\n {\n $parser = new ElementPars", "meta": {"filepath": "src/Symfony/Component/CssSelector/Tests/Parser/Shortcut/ElementParserTest.php", "language": "php", "file_size": 1280, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \":has()\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/scrapy/cssselect.\n *\n * @author Franck Ranaivo-Harisoa selector;\n }\n\n /**\n * @return list\n */\n public function getArguments(): array\n", "middle": "mail.com>\n *\n * @internal\n */\nclass RelationNode extends AbstractNode\n{\n /**\n * @param list $arguments\n */\n public function __construct(\n private NodeInterface $selector,\n ", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/RelationNode.php", "language": "php", "file_size": 1779, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\Node;\n\n/**\n * Represents a \".\" node.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.\n *\n * @author Jean-François Simon selector;\n }\n\n public function getName(): string\n {\n return $this->name;\n }\n\n public function getSpecificity(): Specificity\n {\n return $this->selector->getSpecificity()->", "middle": "ncois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass ClassNode extends AbstractNode\n{\n public function __construct(\n private NodeInterface $selector,\n private string $name,\n ) {\n }\n\n public function get", "meta": {"filepath": "src/Symfony/Component/CssSelector/Node/ClassNode.php", "language": "php", "file_size": 1188, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\CssSelector\\XPath\\Extension;\n\nuse Symfony\\Component\\CssSelector\\XPath\\XPathExpr;\n\n/**\n * XPath expression translator extension interface.\n *\n * This component is a port of the Python cssselect library,\n * which is copyright Ian Bicking, @see https://github.com/scrapy/css", "suffix": "t argument and the translator as second argument.\n *\n * @return callable[]\n */\n public function getNodeTranslators(): array;\n\n /**\n * Returns combination translators.\n *\n * @return callable[]\n */\n public function getCom", "middle": "select.\n *\n * @author Jean-François Simon \n *\n * @internal\n */\ninterface ExtensionInterface\n{\n /**\n * Returns node translators.\n *\n * These callables will receive the node as firs", "meta": {"filepath": "src/Symfony/Component/CssSelector/XPath/Extension/ExtensionInterface.php", "language": "php", "file_size": 1820, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Symfony\\Component\\Cache\\Marshaller\\DefaultMarshaller;\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\Traits\\FilesystemTrait;\n\nclass FilesystemAdapter extends AbstractAdapter implements PruneableInterface\n{\n use FilesystemTrait;\n", "suffix": " '', int $defaultLifetime = 0, ?string $directory = null, ?MarshallerInterface $marshaller = null)\n {\n $this->marshaller = $marshaller ?? new DefaultMarshaller();\n parent::__construct('', $defaultLifetime);\n $this->init($namespace, ", "middle": "\n public function __construct(string $namespace =", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/FilesystemAdapter.php", "language": "php", "file_size": 935, "cut_index": 606, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits\\Relay;\n\nif (version_compare(phpversion('relay'), '0.22.0', '>=')) {\n /**\n * @internal\n */\n trait Relay22Trait\n {\n public function jsonStrAppend($key, $value, $path = null, $fpha = null): \\Relay\\Relay|array|false\n {\n return $th", "suffix": "et_args());\n }\n }\n} else {\n /**\n * @internal\n */\n trait Relay22Trait\n {\n public function jsonStrAppend($key, $value, $path = null): \\Relay\\Relay|array|false\n {\n return $this->initializeLazyObject()->jsonS", "middle": "is->initializeLazyObject()->jsonStrAppend(...\\func_g", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/Relay/Relay22Trait.php", "language": "php", "file_size": 904, "cut_index": 547, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits\\Relay;\n\nif (version_compare(phpversion('relay'), '0.20.0', '>=')) {\n /**\n * @internal\n */\n trait RelayCluster20Trait\n {\n public function _digest($value): string\n {\n return $this->initializeLazyObje", "suffix": " public function digest($key): \\Relay\\Cluster|false|string|null\n {\n return $this->initializeLazyObject()->digest(...\\func_get_args());\n }\n\n public function wait($key_or_address, $replicas, $timeout): \\Relay\\Cluster|false|", "middle": "ct()->_digest(...\\func_get_args());\n }\n\n public function delex($key, $options = null): \\Relay\\Cluster|false|int\n {\n return $this->initializeLazyObject()->delex(...\\func_get_args());\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/Relay/RelayCluster20Trait.php", "language": "php", "file_size": 1198, "cut_index": 518, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits\\Relay;\n\nif (version_compare(phpversion('relay'), '0.21.0', '>=')) {\n /**\n * @internal\n */\n trait RelayCluster21Trait\n {\n public function clusterscan(&$iterator, $match = null, $count = 0, $type = null, $slot = null): array|false\n {\n return $this->initializeLazy", "suffix": "nc_get_args(), 1));\n }\n\n public function gcra($key, $maxBurst, $requestsPerPeriod, $period, $tokens = 0): \\Relay\\Cluster|array|false\n {\n return $this->initializeLazyObject()->gcra(...\\func_get_args());\n }\n }\n} else", "middle": "Object()->clusterscan($iterator, ...\\array_slice(\\fu", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/Relay/RelayCluster21Trait.php", "language": "php", "file_size": 970, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Marshaller;\n\nuse Symfony\\Component\\Cache\\Exception\\CacheException;\n\n/**\n * Serializes/unserializes values using igbinary_serialize() if available, serialize() otherwise.\n *\n * @author Nicolas Grekas \n */\nclass DefaultMarshaller implements MarshallerInterface\n{\n private bool $useIgbinarySerialize = false;\n private bool $", "suffix": "rsion_compare('3.1.6', phpversion('igbinary'), '>'))) {\n throw new CacheException(\\extension_loaded('igbinary') ? 'Please upgrade the \"igbinary\" PHP extension to v3.1.6 or higher.' : 'The \"igbinary\" PHP extension is not loaded.');\n }\n ", "middle": "throwOnSerializationFailure = false;\n\n public function __construct(?bool $useIgbinarySerialize = null, bool $throwOnSerializationFailure = false)\n {\n if ($useIgbinarySerialize && (!\\extension_loaded('igbinary') || ve", "meta": {"filepath": "src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php", "language": "php", "file_size": 3438, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Marshaller;\n\nuse Symfony\\Component\\Cache\\Exception\\CacheException;\n\n/**\n * Compresses values using gzdeflate().\n *\n * @author Nicolas Grekas \n */\nclass DeflateMarshaller implements MarshallerInterface\n{\n public function __con", "suffix": "marshall(array $values, ?array &$failed): array\n {\n return array_map('gzdeflate', $this->marshaller->marshall($values, $failed));\n }\n\n public function unmarshall(string $value): mixed\n {\n if (false !== $inflatedValue = @gzinflate(", "middle": "struct(\n private MarshallerInterface $marshaller,\n ) {\n if (!\\function_exists('gzdeflate')) {\n throw new CacheException('The \"zlib\" PHP extension is not loaded.');\n }\n }\n\n public function ", "meta": {"filepath": "src/Symfony/Component/Cache/Marshaller/DeflateMarshaller.php", "language": "php", "file_size": 1121, "cut_index": 515, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Marshaller;\n\n/**\n * Serializes/unserializes PHP values.\n *\n * Implementations of this interface MUST deal with errors carefully. They MUST\n * also deal with forward and backward compatibility at the storage format level.\n *\n * @author Nicolas ", "suffix": "listed in $failed.\n */\n public function marshall(array $values, ?array &$failed): array;\n\n /**\n * Unserializes a single value and throws an exception if anything goes wrong.\n *\n * @throws \\Exception Whenever unserialization fails\n ", "middle": "Grekas \n */\ninterface MarshallerInterface\n{\n /**\n * Serializes a list of values.\n *\n * When serialization fails for a specific value, no exception should be\n * thrown. Instead, its key should be ", "meta": {"filepath": "src/Symfony/Component/Cache/Marshaller/MarshallerInterface.php", "language": "php", "file_size": 1060, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Marshaller;\n\nuse Symfony\\Component\\Cache\\Exception\\CacheException;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\n\n/**\n * Encrypt/decrypt values using Libsodium.\n *\n * @author Ahmed TAILOULOUTE \n */\nclass SodiumMarshaller implements MarshallerIn", "suffix": "ng keys can be provided to decrypt values;\n * each key must be generated using sodium_crypto_box_keypair()\n */\n public function __construct(\n private array $decryptionKeys,\n ?MarshallerInterface $mar", "middle": "terface\n{\n private MarshallerInterface $marshaller;\n\n /**\n * @param string[] $decryptionKeys The key at index \"0\" is required and is used to decrypt and encrypt values;\n * more rotati", "meta": {"filepath": "src/Symfony/Component/Cache/Marshaller/SodiumMarshaller.php", "language": "php", "file_size": 2300, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Marshaller;\n\n/**\n * A marshaller optimized for data structures generated by AbstractTagAwareAdapter.\n *\n * @author Nicolas Grekas \n */\nclass TagAwareMarshaller implements MarshallerInterface\n{\n private MarshallerInterface $marshaller;\n\n public function __construct(?MarshallerInterface $marshaller = null)\n {\n $", "suffix": "$value) {\n if (\\is_array($value) && \\is_array($value['tags'] ?? null) && \\array_key_exists('value', $value) && \\count($value) === 2 + (\\is_string($value['meta'] ?? null) && 8 === \\strlen($value['meta']))) {\n // if the value is an ", "middle": "this->marshaller = $marshaller ?? new DefaultMarshaller();\n }\n\n public function marshall(array $values, ?array &$failed): array\n {\n $failed = $notSerialized = $serialized = [];\n\n foreach ($values as $id => ", "meta": {"filepath": "src/Symfony/Component/Cache/Marshaller/TagAwareMarshaller.php", "language": "php", "file_size": 3060, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Exception\\LogicException;\nuse Symfony\\Component\\Cache\\Tests\\Fixtures\\Stri", "suffix": "InvalidKey($key)\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('Cache key');\n CacheItem::validateKey($key);\n }\n\n public static function provideInvalidKey(): array\n {\n ret", "middle": "ngableTag;\n\nclass CacheItemTest extends TestCase\n{\n public function testValidKey()\n {\n $this->assertSame('foo', CacheItem::validateKey('foo'));\n }\n\n #[DataProvider('provideInvalidKey')]\n public function test", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/CacheItemTest.php", "language": "php", "file_size": 2845, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\LockRegistry;\n\nclass LockRegistryTest extends TestCase\n{\n public function testFiles()\n {\n if ('\\\\' === \\DIRECTORY_SEPARATOR) {\n $this->markTestSkipped('LockRegi", "suffix": "ed on Windows');\n }\n $lockFiles = LockRegistry::setFiles([]);\n LockRegistry::setFiles($lockFiles);\n $expected = array_map('realpath', glob(__DIR__.'/../Adapter/*.php'));\n $this->assertSame($expected, $lockFiles);\n }\n}\n", "middle": "stry is disabl", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/LockRegistryTest.php", "language": "php", "file_size": 794, "cut_index": 524, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests;\n\nuse Cache\\IntegrationTests\\SimpleCacheTest;\nuse Psr\\SimpleCache\\CacheInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ProxyAdapter;\nuse Symfony\\Component\\Cache\\Psr16Cache;\n\nclass Psr16CacheProxyTest extends SimpleCacheTest\n{\n protec", "suffix": " $this->skippedTests['testGetMultipleNoIterable'] =\n $this->skippedTests['testSetInvalidKeys'] =\n $this->skippedTests['testSetMultipleInvalidKeys'] =\n $this->skippedTests['testSetMultipleNoIterable'] =\n $this", "middle": "ted function setUp(): void\n {\n try {\n \\assert(false === true, new \\Exception());\n $this->skippedTests['testGetInvalidKeys'] =\n $this->skippedTests['testGetMultipleInvalidKeys'] =\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Psr16CacheProxyTest.php", "language": "php", "file_size": 2039, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests;\n\nuse Cache\\IntegrationTests\\SimpleCacheTest;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\SimpleCache\\CacheInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\Psr16Cache;\n\n#[Group('time-sensitive')]\nclass Psr16CacheTest extends SimpleCacheTe", "suffix": ") {\n $pool = ((array) $pool)[\\sprintf(\"\\0%s\\0pool\", Psr16Cache::class)];\n }\n\n if (!$pool instanceof PruneableInterface) {\n $this->skippedTests['testPrune'] = 'Not a pruneable cache pool.';\n }\n\n try {\n ", "middle": "st\n{\n protected function setUp(): void\n {\n if (\\array_key_exists('testPrune', $this->skippedTests)) {\n return;\n }\n\n $pool = $this->createSimpleCache();\n if ($pool instanceof Psr16Cache", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Psr16CacheTest.php", "language": "php", "file_size": 6859, "cut_index": 716, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests;\n\nuse Cache\\IntegrationTests\\SimpleCacheTest;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\SimpleCache\\CacheInterface;\nuse Symfony\\Component\\Cache\\Psr16Cache;\nuse Symfony\\Component\\Cache\\Tests\\Fixtures\\ExternalAdapter;\n\n#[Group('time-sensitive')]\nclass Psr16CacheWithExternalAdapter extends SimpleCacheTest\n{\n protected fu", "suffix": "ts['testSetTtl'] =\n $this->skippedTests['testSetMultipleTtl'] = 'The ExternalAdapter test class does not support TTLs.';\n }\n\n public function createSimpleCache(): CacheInterface\n {\n return new Psr16Cache(new ExternalAdapter());\n }", "middle": "nction setUp(): void\n {\n $this->skippedTes", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Psr16CacheWithExternalAdapter.php", "language": "php", "file_size": 917, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\RunInSeparateProcess;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Relay\\Cluster as RelayCluster;\nuse Relay\\Relay;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\n\nabstract class AbstractRedisAdapterTestCase extends A", "suffix": "ite',\n 'testDefaultLifeTime' => 'Testing expiration slows down the test suite',\n ];\n\n protected static \\Redis|Relay|RelayCluster|\\RedisArray|\\RedisCluster|\\Predis\\ClientInterface $redis;\n\n public function createCachePool(int $defaultLifetim", "middle": "dapterTestCase\n{\n protected $skippedTests = [\n 'testExpiration' => 'Testing expiration slows down the test suite',\n 'testHasItemReturnsFalseWhenDeferredItemIsExpired' => 'Testing expiration slows down the test su", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/AbstractRedisAdapterTestCase.php", "language": "php", "file_size": 1919, "cut_index": 537, "middle_length": 229}} {"prefix": "e Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Contracts\\Cache\\CallbackInterface;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\n\nabstract class AdapterTestCase extends CachePoolTest\n{\n protected function setUp(): void\n {\n if (!\\array_key_exists('testPrune', $this->skippedTests) && !$this->createCachePool() instanceof PruneableInterface) {\n $this->skippedTes", "suffix": "ItemsInvalidKeys'] =\n $this->skippedTests['testHasItemInvalidKeys'] =\n $this->skippedTests['testDeleteItemInvalidKeys'] =\n $this->skippedTests['testDeleteItemsInvalidKeys'] = 'Keys are checked only when assert() is enabled.", "middle": "ts['testPrune'] = 'Not a pruneable cache pool.';\n }\n\n try {\n \\assert(false === true, new \\Exception());\n $this->skippedTests['testGetItemInvalidKeys'] =\n $this->skippedTests['testGet", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/AdapterTestCase.php", "language": "php", "file_size": 14715, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\Cache\\Adapter\\ApcuAdapter;\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\n\nclass ApcuAdapterTest extends AdapterTestCase\n{\n protected $skippedTests = [\n 'testExpiration' => 'Testing expiration slows down the test suite'", "suffix": "chePool(int $defaultLifetime = 0): CacheItemPoolInterface\n {\n if (!\\function_exists('apcu_fetch') || !filter_var(\\ini_get('apc.enabled'), \\FILTER_VALIDATE_BOOL)) {\n $this->markTestSkipped('APCu extension is required.');\n }\n ", "middle": ",\n 'testHasItemReturnsFalseWhenDeferredItemIsExpired' => 'Testing expiration slows down the test suite',\n 'testDefaultLifeTime' => 'Testing expiration slows down the test suite',\n ];\n\n public function createCa", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/ApcuAdapterTest.php", "language": "php", "file_size": 4972, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Tests\\Fixtures\\TestEnum;\nuse Symfony\\Component\\Clock\\MockClock;\n\n#[Group('time-sensitive')]\nclass ArrayAdapterTest extends AdapterTestCase\n{\n protected $skippedTests =", "suffix": "ich ArrayAdapter is not.',\n 'testClearWithInvalidPrefix' => 'ArrayAdapter does not validate the prefix.',\n ];\n\n public function createCachePool(int $defaultLifetime = 0): CacheItemPoolInterface\n {\n return new ArrayAdapter($defaultLif", "middle": " [\n 'testGetMetadata' => 'ArrayAdapter does not keep metadata.',\n 'testDeferredSaveWithoutCommit' => 'Assumes a shared cache which ArrayAdapter is not.',\n 'testSaveWithoutExpire' => 'Assumes a shared cache wh", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/ArrayAdapterTest.php", "language": "php", "file_size": 3563, "cut_index": 614, "middle_length": 229}} {"prefix": "Interface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ChainAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Tests\\Fixtures\\ExternalAdapter;\nuse Symfony\\Component\\Cache\\Tests\\Fixtures\\PrunableAdapter;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Contracts\\Cache\\ItemInterface;\n\n/**\n * @author Kévin Dunglas \n */\n#[Group('time-sensitive')]\nclass ChainAdapterTest extends AdapterTestCase\n{\n public function createCachePool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n if ('t", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/ChainAdapterTest.php", "language": "php", "file_size": 11588, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\CouchbaseCollectionAdapter;\n\n/**\n * @author Antonio J", "suffix": " protected $skippedTests = [\n 'testClearPrefix' => 'Couchbase cannot clear by prefix',\n 'testClearPrefixWithUnderscore' => 'Couchbase cannot clear by prefix',\n 'testClearWithInvalidPrefix' => 'Couchbase cannot clear by prefix',\n ];\n", "middle": "ose Cerezo Aranda \n */\n#[RequiresPhpExtension('couchbase', '<4.0.0')]\n#[RequiresPhpExtension('couchbase', '>=3.0.5')]\n#[Group('integration')]\nclass CouchbaseCollectionAdapterTest extends AdapterTestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/CouchbaseCollectionAdapterTest.php", "language": "php", "file_size": 2215, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Driver\\AbstractMySQLDriver;\nuse Doctrine\\DBAL\\Driver\\Middleware;\nuse Doctrine\\DBAL\\Driver\\Middleware\\AbstractDriverMiddleware;\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHP", "suffix": "('time-sensitive')]\nclass DoctrineDbalAdapterTest extends AdapterTestCase\n{\n protected static string $dbFile;\n\n public static function setUpBeforeClass(): void\n {\n self::$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_cache');\n }\n\n p", "middle": "Unit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\DoctrineDbalAdapter;\n\n#[RequiresPhpExtension('pdo_sqlite')]\n#[Group", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/DoctrineDbalAdapterTest.php", "language": "php", "file_size": 8520, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n#[Group('time-sensitive')]\nclass FilesystemAdapt", "suffix": "terClass(): void\n {\n (new Filesystem())->remove(sys_get_temp_dir().'/symfony-cache');\n }\n\n protected function isPruned(CacheItemPoolInterface $cache, string $name): bool\n {\n $getFileMethod = (new \\ReflectionObject($cache))->getMet", "middle": "erTest extends AdapterTestCase\n{\n public function createCachePool(int $defaultLifetime = 0): CacheItemPoolInterface\n {\n return new FilesystemAdapter('', $defaultLifetime);\n }\n\n public static function tearDownAf", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/FilesystemAdapterTest.php", "language": "php", "file_size": 1093, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemTagAwareAdapter;\nuse Symfony\\Component\\Cache\\Tests\\Fixtures\\FailingTagFilesystemAdapter;\n\n#[Group('time-se", "suffix": "agAwareAdapter('', $defaultLifetime);\n }\n\n public function testCommitDoesNotFailWhenTagSaveFails()\n {\n $adapter = new FailingTagFilesystemAdapter();\n\n $item = $adapter->getItem('foo');\n $item->set('bar');\n $item->tag(['", "middle": "nsitive')]\nclass FilesystemTagAwareAdapterTest extends FilesystemAdapterTest\n{\n use TagAwareTestTrait;\n\n public function createCachePool(int $defaultLifetime = 0): CacheItemPoolInterface\n {\n return new FilesystemT", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/FilesystemTagAwareAdapterTest.php", "language": "php", "file_size": 1158, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Assert;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\n\nclass MaxIdLengthAdapterTest extends TestCase\n{\n public function testLongKey()\n {\n $cache = new class extends MaxIdLengthAdapter {\n ", "suffix": " {\n parent::__construct(str_repeat('-', 10));\n }\n\n protected function doHave(string $id): bool\n {\n Assert::assertSame(array_shift(self::$series), $id);\n\n return false;\n ", "middle": " private static $series = [\n ['----------:z5XrNUPebf0nPxQwjc6C1A:'],\n ['----------:---------------------------------------'],\n ];\n\n public function __construct()\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/MaxIdLengthAdapterTest.php", "language": "php", "file_size": 4293, "cut_index": 614, "middle_length": 229}} {"prefix": "equiresPhpExtension;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\MemcachedAdapter;\nuse Symfony\\Component\\Cache\\Exception\\CacheException;\n\n#[Group('integration')]\nclass MemcachedAdapterTest extends AdapterTestCase\n{\n protected $skippedTests = [\n 'testHasItemReturnsFalseWhenDeferredItemIsExpired' => 'Testing expiration slows down the test suite',\n 'testDefaultLifeTime' => 'Testing expiration slows down the test", "suffix": " ];\n\n protected static \\Memcached $client;\n\n public static function setUpBeforeClass(): void\n {\n if (!MemcachedAdapter::isSupported()) {\n self::markTestSkipped('Extension memcached > 3.1.5 required.');\n }\n self::", "middle": " suite',\n 'testClearPrefix' => 'Memcached cannot clear by prefix',\n 'testClearPrefixWithUnderscore' => 'Memcached cannot clear by prefix',\n 'testClearWithInvalidPrefix' => 'Memcached cannot clear by prefix',\n", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/MemcachedAdapterTest.php", "language": "php", "file_size": 9859, "cut_index": 921, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ProxyAdapter;\n\n#[Group('time-sensitive')]\nclass NamespacedProxyAdapterTest ", "suffix": "eCachePool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n if ('testGetMetadata' === $testMethod) {\n return new ProxyAdapter(new FilesystemAdapter(), 'foo', $defaultLifetime);\n }\n\n return", "middle": "extends ProxyAdapterTest\n{\n public function creat", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/NamespacedProxyAdapterTest.php", "language": "php", "file_size": 978, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemInterface;\nuse Symfony\\Component\\Cache\\Adapter\\NullAdapter;\n\n#[Group('time-sensitive')]\nclass NullAdapterTest extends TestCase\n{\n public function createCachePool()\n {\n return new NullAdapter();\n }\n\n public functi", "suffix": "Hit is false.\");\n }\n\n public function testGet()\n {\n $adapter = $this->createCachePool();\n\n $fetched = [];\n $adapter->get('myKey', static function ($item) use (&$fetched) { $fetched[] = $item; });\n $this->assertCount(1, ", "middle": "on testGetItem()\n {\n $adapter = $this->createCachePool();\n\n $item = $adapter->getItem('key');\n $this->assertFalse($item->isHit());\n $this->assertNull($item->get(), \"Item's value must be null when is", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/NullAdapterTest.php", "language": "php", "file_size": 4343, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PdoAdapter;\n\n#[RequiresPhpExtension('pdo_sqlite')]\n#[Grou", "suffix": "che');\n\n $pool = new PdoAdapter('sqlite:'.self::$dbFile);\n $pool->createTable();\n }\n\n public static function tearDownAfterClass(): void\n {\n @unlink(self::$dbFile);\n }\n\n public function createCachePool(int $defaultLifetim", "middle": "p('time-sensitive')]\nclass PdoAdapterTest extends AdapterTestCase\n{\n protected static string $dbFile;\n\n public static function setUpBeforeClass(): void\n {\n self::$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_ca", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PdoAdapterTest.php", "language": "php", "file_size": 4152, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\NullAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n#[Group('time-sensitive')]\nclass PhpArrayAdapterTest extends AdapterTestCase\n{\n protected $skippedTests = [\n ", "suffix": "ter is read-only.',\n 'testBasicUsageWithLongKey' => 'PhpArrayAdapter is read-only.',\n 'testClear' => 'PhpArrayAdapter is read-only.',\n 'testClearWithDeferredItems' => 'PhpArrayAdapter is read-only.',\n 'testDeleteItem' => 'PhpArr", "middle": " 'testGet' => 'PhpArrayAdapter is read-only.',\n 'testDontSaveWhenAskedNotTo' => 'PhpArrayAdapter is read-only.',\n 'testRecursiveGet' => 'PhpArrayAdapter is read-only.',\n 'testBasicUsage' => 'PhpArrayAdap", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PhpArrayAdapterTest.php", "language": "php", "file_size": 6428, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n#[Group('time-sen", "suffix": "idKeys' => 'PhpArrayAdapter does not throw exceptions on invalid key.',\n 'testHasItemInvalidKeys' => 'PhpArrayAdapter does not throw exceptions on invalid key.',\n 'testDeleteItemInvalidKeys' => 'PhpArrayAdapter does not throw exceptions on in", "middle": "sitive')]\nclass PhpArrayAdapterWithFallbackTest extends AdapterTestCase\n{\n protected $skippedTests = [\n 'testGetItemInvalidKeys' => 'PhpArrayAdapter does not throw exceptions on invalid key.',\n 'testGetItemsInval", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PhpArrayAdapterWithFallbackTest.php", "language": "php", "file_size": 1923, "cut_index": 537, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\PhpFilesAdapter;\n\n#[Group('time-sensitive')]\nclass PhpFilesAdapterAppendOnlyTest extends PhpFilesAdapterTest\n{\n protected $skippedTests = [\n 'testD", "suffix": "onfiguring a default lifetime.',\n 'testExpiration' => 'PhpFilesAdapter in append-only mode does not expiration.',\n ];\n\n public function createCachePool(): CacheItemPoolInterface\n {\n return new PhpFilesAdapter('sf-cache', 0, null, tru", "middle": "efaultLifeTime' => 'PhpFilesAdapter does not allow c", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PhpFilesAdapterAppendOnlyTest.php", "language": "php", "file_size": 879, "cut_index": 559, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\PhpFilesAdapter;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n#[Group('time-sensitive')]\nclass PhpFilesAdapterTest ", "suffix": " {\n return new PhpFilesAdapter('sf-cache');\n }\n\n public static function tearDownAfterClass(): void\n {\n (new Filesystem())->remove(sys_get_temp_dir().'/symfony-cache');\n }\n\n protected function isPruned(CacheItemPoolInterface $c", "middle": "extends AdapterTestCase\n{\n protected $skippedTests = [\n 'testDefaultLifeTime' => 'PhpFilesAdapter does not allow configuring a default lifetime.',\n ];\n\n public function createCachePool(): CacheItemPoolInterface\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PhpFilesAdapterTest.php", "language": "php", "file_size": 1192, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\n\n#[Group('integration')]\nclass PredisAdapterSentinelTest extends AbstractRedisAdapterTestCase\n{\n public static function setUpBeforeCla", "suffix": "arkTestSkipped('REDIS_SENTINEL_HOSTS env var is not defined.');\n }\n if (!$service = getenv('REDIS_SENTINEL_SERVICE')) {\n self::markTestSkipped('REDIS_SENTINEL_SERVICE env var is not defined.');\n }\n\n self::$redis = Abs", "middle": "ss(): void\n {\n if (!class_exists(\\Predis\\Client::class)) {\n self::markTestSkipped('The Predis\\Client class is required.');\n }\n if (!$hosts = getenv('REDIS_SENTINEL_HOSTS')) {\n self::m", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PredisAdapterSentinelTest.php", "language": "php", "file_size": 1165, "cut_index": 518, "middle_length": 229}} {"prefix": "ny\\Component\\Cache\\Marshaller\\DefaultMarshaller;\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\nuse Symfony\\Contracts\\Cache\\ItemInterface;\n\n/**\n * @author Rob Frawley 2nd \n * @author Nicolas Grekas \n */\nclass MemcachedAdapter extends AbstractAdapter\n{\n /**\n * We are replacing characters that are illegal in Memcached keys with reserved characters from\n * {@see ItemInterface::RESERVED_CHARACTERS} that are legal in Memcached.\n * Note: don’t use {@see Abst", "suffix": "ivate \\Memcached $client;\n private \\Memcached $lazyClient;\n\n /**\n * Using a MemcachedAdapter with a TagAwareAdapter for storing tags is discouraged.\n * Using a RedisAdapter is recommended instead. If you cannot do otherwise, be aware that:\n ", "middle": "ractAdapter::NS_SEPARATOR}.\n */\n private const RESERVED_MEMCACHED = \" \\n\\r\\t\\v\\f\\0\";\n private const RESERVED_PSR6 = '@()\\{}/';\n private const MAX_KEY_LENGTH = 250;\n\n private MarshallerInterface $marshaller;\n pr", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/MemcachedAdapter.php", "language": "php", "file_size": 13419, "cut_index": 921, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\n/**\n * @author Lars Strojny \n */\nfinal class ParameterNormalizer\n{\n public static function normalizeDuration(string $duration): int\n {\n if (is_numeric($duration)) {\n return $duration;\n }\n\n if (false !== $time ", "suffix": "e;\n }\n\n try {\n return \\DateTimeImmutable::createFromFormat('U', 0)->add(new \\DateInterval($duration))->getTimestamp();\n } catch (\\Exception $e) {\n throw new \\InvalidArgumentException(\\sprintf('Cannot parse date in", "middle": "= strtotime($duration, 0)) {\n return $tim", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/ParameterNormalizer.php", "language": "php", "file_size": 908, "cut_index": 547, "middle_length": 52}} {"prefix": "onent\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\ResettableInterface;\nuse Symfony\\Component\\Cache\\Traits\\CachedValueInterface;\nuse Symfony\\Component\\Cache\\Traits\\ContractsTrait;\nuse Symfony\\Component\\Cache\\Traits\\ProxyTrait;\nuse Symfony\\Component\\VarExporter\\VarExporter;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\n\n/**\n * Caches items at warm up time using a PHP array that is stored in shared memory by OPCache since PHP 7.0.\n * Warme", "suffix": "dapterInterface, CacheInterface, PruneableInterface, ResettableInterface\n{\n use ContractsTrait;\n use ProxyTrait;\n\n private array $keys;\n private array $values;\n\n private static \\Closure $createCacheItem;\n private static array $valuesCache", "middle": "d up items are read-only and run-time discovered items are cached using a fallback adapter.\n *\n * @author Titouan Galopin \n * @author Nicolas Grekas \n */\nclass PhpArrayAdapter implements A", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php", "language": "php", "file_size": 12299, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\ResettableInterface;\nuse Symfony\\Component\\Cache\\Traits\\ContractsTrait;\nuse Symfony\\Component\\Cache\\Traits\\ProxyTrait;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\n\n/**\n * @author Nicolas Grekas ", "suffix": "';\n private int $namespaceLen;\n private string $poolHash;\n private int $defaultLifetime;\n\n private static \\Closure $createCacheItem;\n private static \\Closure $setInnerItem;\n\n public function __construct(CacheItemPoolInterface $pool, strin", "middle": "\n */\nclass ProxyAdapter implements AdapterInterface, NamespacedPoolInterface, CacheInterface, PruneableInterface, ResettableInterface\n{\n use ContractsTrait;\n use ProxyTrait;\n\n private string $namespace = '", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/ProxyAdapter.php", "language": "php", "file_size": 7288, "cut_index": 716, "middle_length": 229}} {"prefix": "e\\ReplicationInterface;\nuse Predis\\Connection\\Replication\\ReplicationInterface as Predis2ReplicationInterface;\nuse Predis\\Response\\ErrorInterface;\nuse Predis\\Response\\Status;\nuse Relay\\Relay;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Exception\\LogicException;\nuse Symfony\\Component\\Cache\\Marshaller\\DeflateMarshaller;\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\nuse Symfony\\Component\\Cache\\Marshaller\\TagAwa", "suffix": "(volatile) even\n * if not set by caller. Thus if you configure redis with the right eviction policy you can be safe this tag <> cache\n * relationship survives eviction (cache cleanup when Redis runs out of memory).\n *\n * Redis server 2.8+ with any `volatil", "middle": "reMarshaller;\nuse Symfony\\Component\\Cache\\Traits\\RedisTrait;\n\n/**\n * Stores tag id <> cache id relationship as a Redis Set.\n *\n * Set (tag relation info) is stored without expiry (non-volatile), while cache always gets an expiry ", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php", "language": "php", "file_size": 13020, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Psr\\Cache\\CacheItemInterface;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\ResettableInterface;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * An adapter that collects data about all cache calls", "suffix": "Interface, PruneableInterface, ResettableInterface\n{\n private string $namespace = '';\n private array $calls = [];\n\n public function __construct(\n protected AdapterInterface $pool,\n protected readonly ?\\Closure $disabled = null,\n )", "middle": ".\n *\n * @author Aaron Scherer \n * @author Tobias Nyholm \n * @author Nicolas Grekas \n */\nclass TraceableAdapter implements AdapterInterface, CacheInterface, NamespacedPool", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/TraceableAdapter.php", "language": "php", "file_size": 8952, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\DataCollector;\n\nuse Symfony\\Component\\Cache\\Adapter\\TraceableAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TraceableAdapterEvent;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface;\n\n/**\n * @author Aaron Scherer \n * @author Tobias Nyholm instances[$name] = $instance;\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n $this->lateCollect();\n }", "middle": "holm@gmail.com>\n *\n * @final\n */\nclass CacheDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n /**\n * @var TraceableAdapter[]\n */\n private array $instances = [];\n\n public function addIns", "meta": {"filepath": "src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php", "language": "php", "file_size": 6129, "cut_index": 716, "middle_length": 229}} {"prefix": "he\\Exception\\InvalidArgumentException;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\ntrait AbstractAdapterTrait\n{\n use LoggerAwareTrait;\n\n /**\n * needs to be set by class, signature is function(string , mixed , bool ).\n */\n private static \\Closure $createCacheItem;\n\n /**\n * needs to be set by class, signature is function(array , string , array <&expiredIds>).\n */\n private static \\Closure $mergeByLifetime;\n\n privat", "suffix": " private array $ids = [];\n\n /**\n * The maximum length to enforce for identifiers or null when no limit applies.\n */\n protected ?int $maxIdLength = null;\n\n /**\n * Fetches several cache items.\n *\n * @param array $ids The cache ", "middle": "e readonly string $rootNamespace;\n private string $namespace = '';\n private int $defaultLifetime;\n private string $namespaceVersion = '';\n private bool $versioningIsEnabled = false;\n private array $deferred = [];\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/AbstractAdapterTrait.php", "language": "php", "file_size": 13204, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits;\n\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\ntrait FilesystemCommonTrait\n{\n private string $directory;\n private string $tmpSuffix;\n\n private function init(string $namespace, ?string $directory): void\n {\n if (!isset($directory[0])) {\n $directory = sys_get_temp_dir().\\DIRECTORY_SEPARATOR.'symfony-cache';\n } else ", "suffix": "on(\\sprintf('Namespace contains \"%s\" but only characters in [-+_.A-Za-z0-9] are allowed.', $match[0]));\n }\n $directory .= \\DIRECTORY_SEPARATOR.$namespace;\n } else {\n $directory .= \\DIRECTORY_SEPARATOR.'@';\n }\n", "middle": "{\n $directory = realpath($directory) ?: $directory;\n }\n if (isset($namespace[0])) {\n if (preg_match('#[^-+_.A-Za-z0-9]#', $namespace, $match)) {\n throw new InvalidArgumentExcepti", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/FilesystemCommonTrait.php", "language": "php", "file_size": 5751, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits;\n\nif (version_compare(phpversion('redis'), '6.3.0', '>=')) {\n /**\n * @internal\n */\n trait Redis63ProxyTrait\n {\n public function delifeq($key, $value): \\Redis|int|false\n {\n return $this->initializeLazyObject()->delifeq(...\\func_get_args());\n }\n\n public function hexpire($key, $ttl, $fields, $mode = null): \\Redis|array|false\n {\n return $this->initializeLazyObject(", "suffix": " }\n\n public function hexpiretime($key, $fields): \\Redis|array|false\n {\n return $this->initializeLazyObject()->hexpiretime(...\\func_get_args());\n }\n\n public function hgetdel($key, $fields): \\Redis|array|false\n ", "middle": ")->hexpire(...\\func_get_args());\n }\n\n public function hexpireat($key, $time, $fields, $mode = null): \\Redis|array|false\n {\n return $this->initializeLazyObject()->hexpireat(...\\func_get_args());\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/Redis63ProxyTrait.php", "language": "php", "file_size": 5229, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits;\n\nif (version_compare(phpversion('redis'), '6.3.0', '>=')) {\n /**\n * @internal\n */\n trait RedisCluster63ProxyTrait\n {\n public function delifeq($key, $value): \\RedisCluster|int|false\n {\n return $this->initializeLazyObject()->delifeq(...\\func_get_args());\n }\n\n public function hexpire($key, $ttl, $fields, $mode = null): \\RedisCluster|array|false\n {\n return $this->", "suffix": "at(...\\func_get_args());\n }\n\n public function hexpiretime($key, $fields): \\RedisCluster|array|false\n {\n return $this->initializeLazyObject()->hexpiretime(...\\func_get_args());\n }\n\n public function hgetdel($key,", "middle": "initializeLazyObject()->hexpire(...\\func_get_args());\n }\n\n public function hexpireat($key, $time, $fields, $mode = null): \\RedisCluster|array|false\n {\n return $this->initializeLazyObject()->hexpire", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/RedisCluster63ProxyTrait.php", "language": "php", "file_size": 5425, "cut_index": 716, "middle_length": 229}} {"prefix": "unction _redir(): ?string\n {\n return $this->initializeLazyObject()->_redir(...\\func_get_args());\n }\n\n public function _serialize($value): bool|string\n {\n return $this->initializeLazyObject()->_serialize(...\\func_get_args());\n }\n\n public function _uncompress($value): string\n {\n return $this->initializeLazyObject()->_uncompress(...\\func_get_args());\n }\n\n public function _unpack($value): mixed\n {\n return $this->initializeLazyObject()->_unpack(...\\func_g", "suffix": " {\n return $this->initializeLazyObject()->acl(...\\func_get_args());\n }\n\n public function append($key, $value): \\RedisCluster|bool|int\n {\n return $this->initializeLazyObject()->append(...\\func_get_args());\n }\n\n public function", "middle": "et_args());\n }\n\n public function _unserialize($value): mixed\n {\n return $this->initializeLazyObject()->_unserialize(...\\func_get_args());\n }\n\n public function acl($key_or_address, $subcmd, ...$args): mixed\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/RedisClusterProxy.php", "language": "php", "file_size": 37558, "cut_index": 2151, "middle_length": 229}} {"prefix": "blic function _unpack($value): mixed\n {\n return $this->initializeLazyObject()->_unpack(...\\func_get_args());\n }\n\n public function _unserialize($value): mixed\n {\n return $this->initializeLazyObject()->_unserialize(...\\func_get_args());\n }\n\n public function acl($subcmd, ...$args): mixed\n {\n return $this->initializeLazyObject()->acl(...\\func_get_args());\n }\n\n public function append($key, $value): \\Redis|false|int\n {\n return $this->initializeLazyObject()", "suffix": "\\Redis|bool\n {\n return $this->initializeLazyObject()->bgSave(...\\func_get_args());\n }\n\n public function bgrewriteaof(): \\Redis|bool\n {\n return $this->initializeLazyObject()->bgrewriteaof(...\\func_get_args());\n }\n\n public fun", "middle": "->append(...\\func_get_args());\n }\n\n public function auth(#[\\SensitiveParameter] $credentials): \\Redis|bool\n {\n return $this->initializeLazyObject()->auth(...\\func_get_args());\n }\n\n public function bgSave(): ", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/RedisProxy.php", "language": "php", "file_size": 40845, "cut_index": 2151, "middle_length": 229}} {"prefix": "on _pack($value): string\n {\n return $this->initializeLazyObject()->_pack(...\\func_get_args());\n }\n\n public function _prefix($value): string\n {\n return $this->initializeLazyObject()->_prefix(...\\func_get_args());\n }\n\n public function _serialize($value): string\n {\n return $this->initializeLazyObject()->_serialize(...\\func_get_args());\n }\n\n public function _uncompress($value): string\n {\n return $this->initializeLazyObject()->_uncompress(...\\func_get_arg", "suffix": "zeLazyObject()->_unserialize(...\\func_get_args());\n }\n\n public function acl($key_or_address, $operation, ...$args): mixed\n {\n return $this->initializeLazyObject()->acl(...\\func_get_args());\n }\n\n public function addAllowPatterns(...$pa", "middle": "s());\n }\n\n public function _unpack($value): mixed\n {\n return $this->initializeLazyObject()->_unpack(...\\func_get_args());\n }\n\n public function _unserialize($value): mixed\n {\n return $this->initiali", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/RelayClusterProxy.php", "language": "php", "file_size": 44183, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits\\Relay;\n\nif (version_compare(phpversion('relay'), '0.20.0', '>=')) {\n /**\n * @internal\n */\n trait Relay20Trait\n {\n public function _digest($value): string\n {\n return $this->initializeLazyObject()->_", "suffix": "c function digest($key): \\Relay\\Relay|false|string|null\n {\n return $this->initializeLazyObject()->digest(...\\func_get_args());\n }\n\n public function msetex($kvals, $ttl = null): \\Relay\\Relay|false|int\n {\n re", "middle": "digest(...\\func_get_args());\n }\n\n public function delex($key, $options = null): \\Relay\\Relay|false|int\n {\n return $this->initializeLazyObject()->delex(...\\func_get_args());\n }\n\n publi", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/Relay/Relay20Trait.php", "language": "php", "file_size": 1162, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\nuse Symfony\\Component\\Cache\\Marshaller\\TagAwareMarshaller;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\Traits\\FilesystemTrait;\n\n/**\n * Stores tag id <> cache id relationship as a symlink, and lookup on invalidation calls.\n *\n * @author Nicolas Grekas \n * @author André Rømcke \n */\nclass Filesyst", "suffix": " /**\n * Folder used for tag symlinks.\n */\n private const TAG_FOLDER = 'tags';\n\n public function __construct(string $namespace = '', int $defaultLifetime = 0, ?string $directory = null, ?MarshallerInterface $marshaller = null)\n {\n ", "middle": "emTagAwareAdapter extends AbstractTagAwareAdapter implements PruneableInterface\n{\n use FilesystemTrait {\n prune as private doPrune;\n doClear as private doClearCache;\n doSave as private doSaveCache;\n }\n\n", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/FilesystemTagAwareAdapter.php", "language": "php", "file_size": 8987, "cut_index": 716, "middle_length": 229}} {"prefix": "ymfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\nuse Symfony\\Component\\Cache\\PruneableInterface;\n\nclass PdoAdapter extends AbstractAdapter implements PruneableInterface\n{\n private const MAX_KEY_LENGTH = 255;\n\n private MarshallerInterface $marshaller;\n private \\PDO $conn;\n private string $dsn;\n private string $driver;\n private string $serverVersion;\n private string $table = 'cache_items';\n private string $idCol = 'item_id';\n private string $dataCol = 'item_data';\n private ", "suffix": "e;\n\n /**\n * You can either pass an existing database connection as PDO instance or\n * a DSN string that will be used to lazy-connect to the database when the\n * cache is actually used.\n *\n * List of available options:\n * * db_ta", "middle": "string $lifetimeCol = 'item_lifetime';\n private string $timeCol = 'item_time';\n private ?string $username = null;\n private ?string $password = null;\n private array $connectionOptions = [];\n private string $namespac", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/PdoAdapter.php", "language": "php", "file_size": 17252, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Psr\\SimpleCache\\CacheInterface;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\ResettableInterface;\nuse Symfony\\Component\\Cache\\Traits\\ProxyTrait;\n\n/**\n * Turns a PSR-16 cache into a PSR-6 one.\n *\n * @author Nicolas Grekas", "suffix": "t $miss;\n\n public function __construct(CacheInterface $pool, string $namespace = '', int $defaultLifetime = 0)\n {\n parent::__construct($namespace, $defaultLifetime);\n\n $this->pool = $pool;\n $this->miss = new \\stdClass();\n }\n\n ", "middle": " \n */\nclass Psr16Adapter extends AbstractAdapter implements PruneableInterface, ResettableInterface\n{\n use ProxyTrait;\n\n /**\n * @internal\n */\n protected const NS_SEPARATOR = '_';\n\n private objec", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/Psr16Adapter.php", "language": "php", "file_size": 1763, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Symfony\\Contracts\\Cache\\TagAwareCacheInterface;\n\n/**\n * @author Robin Chalas \n */\nclass TraceableTagAwareAdapter extends TraceableAdapter implements TagAwareAdapterInterface, TagAwareCacheInterface\n{\n ", "suffix": "isabled?->__invoke()) {\n return $this->pool->invalidateTags($tags);\n }\n $event = $this->start(__FUNCTION__);\n try {\n return $event->result = $this->pool->invalidateTags($tags);\n } finally {\n $eve", "middle": " public function __construct(TagAwareAdapterInterface $pool, ?\\Closure $disabled = null)\n {\n parent::__construct($pool, $disabled);\n }\n\n public function invalidateTags(array $tags): bool\n {\n if ($this->d", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/TraceableTagAwareAdapter.php", "language": "php", "file_size": 1043, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits;\n\nuse Symfony\\Component\\Cache\\Exception\\CacheException;\nuse Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface;\n\n/**\n * @author Nicolas Grekas \n * @author Rob Frawley 2nd \n *\n * @internal\n */\ntrait FilesystemTrait\n{\n use FilesystemCommonTrait;\n\n ", "suffix": "le, 'r')) {\n continue;\n }\n\n if (($expiresAt = (int) fgets($h)) && $time >= $expiresAt) {\n fclose($h);\n $pruned = (@unlink($file) || !file_exists($file)) && $pruned;\n } else {\n ", "middle": "private MarshallerInterface $marshaller;\n\n public function prune(): bool\n {\n $time = time();\n $pruned = true;\n\n foreach ($this->scanHashDir($this->directory) as $file) {\n if (!$h = @fopen($fi", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/FilesystemTrait.php", "language": "php", "file_size": 2968, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits;\n\nif (version_compare(phpversion('redis'), '6.2.0', '>=')) {\n /**\n * @internal\n */\n trait RedisCluster62ProxyTrait\n {\n public function expiremember($key, $field, $ttl, $unit = null): \\Redis|false|int\n {\n ", "suffix": "t()->expirememberat(...\\func_get_args());\n }\n\n public function getdel($key): mixed\n {\n return $this->initializeLazyObject()->getdel(...\\func_get_args());\n }\n\n public function getWithMeta($key): \\RedisCluster|ar", "middle": " return $this->initializeLazyObject()->expiremember(...\\func_get_args());\n }\n\n public function expirememberat($key, $field, $timestamp): \\Redis|false|int\n {\n return $this->initializeLazyObjec", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/RedisCluster62ProxyTrait.php", "language": "php", "file_size": 1214, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits;\n\n/**\n * @internal\n */\ntrait RedisProxyTrait\n{\n private \\Closure $initializer;\n private ?parent $realInstance = null;\n\n public static function createLazyProxy(\\Closure $initializer, ?self $instance = null): static\n {\n $i", "suffix": "zyObjectInitialized(bool $partial = false): bool\n {\n return isset($this->realInstance);\n }\n\n public function initializeLazyObject(): object\n {\n return $this->realInstance ??= ($this->initializer)();\n }\n\n public function rese", "middle": "nstance ??= (new \\ReflectionClass(static::class))->newInstanceWithoutConstructor();\n $instance->realInstance = null;\n $instance->initializer = $initializer;\n\n return $instance;\n }\n\n public function isLa", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/RedisProxyTrait.php", "language": "php", "file_size": 1141, "cut_index": 518, "middle_length": 229}} {"prefix": " public function _prefix($value): string\n {\n return $this->initializeLazyObject()->_prefix(...\\func_get_args());\n }\n\n public function _serialize($value): mixed\n {\n return $this->initializeLazyObject()->_serialize(...\\func_get_args());\n }\n\n public function _uncompress($value): string\n {\n return $this->initializeLazyObject()->_uncompress(...\\func_get_args());\n }\n\n public function _unpack($value): mixed\n {\n return $this->initializeLazyObject()->_unpac", "suffix": " return $this->initializeLazyObject()->acl(...\\func_get_args());\n }\n\n public function addAllowPatterns(...$pattern): int\n {\n return $this->initializeLazyObject()->addAllowPatterns(...\\func_get_args());\n }\n\n public function addIgno", "middle": "k(...\\func_get_args());\n }\n\n public function _unserialize($value): mixed\n {\n return $this->initializeLazyObject()->_unserialize(...\\func_get_args());\n }\n\n public function acl($cmd, ...$args): mixed\n {\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/RelayProxy.php", "language": "php", "file_size": 56562, "cut_index": 2151, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Adapter;\n\nuse Psr\\Cache\\CacheItemInterface;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\n\n/**\n * @author Titouan Galopin \n */\nclass NullAdapter implements AdapterInterface, C", "suffix": "ion ($key) {\n $item = new CacheItem();\n $item->isTaggable = true;\n $item->key = $key;\n $item->isHit = false;\n\n return $item;\n },\n null,\n CacheItem::", "middle": "acheInterface, NamespacedPoolInterface, TagAwareAdapterInterface\n{\n private static \\Closure $createCacheItem;\n\n public function __construct()\n {\n self::$createCacheItem ??= \\Closure::bind(\n static funct", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/NullAdapter.php", "language": "php", "file_size": 2657, "cut_index": 563, "middle_length": 229}} {"prefix": "wareTrait;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\ResettableInterface;\nuse Symfony\\Component\\Cache\\Traits\\ContractsTrait;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\nuse Symfony\\Contracts\\Cache\\TagAwareCacheInterface;\n\n/**\n * Implements simple and robust tag-based invalidation suitable for use with volatile caches.\n *\n * This adapter works by storing a version fo", "suffix": "by deleting tags, thereby ensuring that their versions change even when the\n * storage is out of space. When versions of non-existing tags are requested for item commits, this adapter assigns a\n * new random version to them.\n *\n * @author Nicolas Grekas \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits;\n\nif (version_compare(phpversion('redis'), '6.2.0', '>=')) {\n /**\n * @internal\n */\n trait Redis62ProxyTrait\n {\n public function expiremember($key, $field, $ttl, $unit = null): \\Redis|false|int\n {\n return", "suffix": "mberat(...\\func_get_args());\n }\n\n public function getWithMeta($key): \\Redis|array|false\n {\n return $this->initializeLazyObject()->getWithMeta(...\\func_get_args());\n }\n\n public function serverName(): false|strin", "middle": " $this->initializeLazyObject()->expiremember(...\\func_get_args());\n }\n\n public function expirememberat($key, $field, $timestamp): \\Redis|false|int\n {\n return $this->initializeLazyObject()->expireme", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/Redis62ProxyTrait.php", "language": "php", "file_size": 1365, "cut_index": 524, "middle_length": 229}} {"prefix": " 'dbindex' => 0,\n 'failover' => 'none',\n 'ssl' => null, // see https://php.net/context.ssl\n ];\n private \\Redis|Relay|RelayCluster|\\RedisArray|\\RedisCluster|\\Predis\\ClientInterface $redis;\n private MarshallerInterface $marshaller;\n\n private function init(\\Redis|Relay|RelayCluster|\\RedisArray|\\RedisCluster|\\Predis\\ClientInterface $redis, string $namespace, int $defaultLifetime, ?MarshallerInterface $marshaller): void\n {\n parent::__construct($namespace, $defaultLifeti", "suffix": "0]));\n }\n\n if ($redis instanceof \\Predis\\ClientInterface && $redis->getOptions()->exceptions) {\n $options = clone $redis->getOptions();\n \\Closure::bind(function () { $this->options['exceptions'] = false; }, $options, $op", "middle": "me);\n\n if (preg_match('#[^-+_.A-Za-z0-9]#', $namespace, $match)) {\n throw new InvalidArgumentException(\\sprintf('RedisAdapter namespace contains \"%s\" but only characters in [-+_.A-Za-z0-9] are allowed.', $match[", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/RedisTrait.php", "language": "php", "file_size": 35974, "cut_index": 2151, "middle_length": 229}} {"prefix": "ny\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Cache\\Traits\\CachedValueInterface;\nuse Symfony\\Component\\Cache\\Traits\\FilesystemCommonTrait;\nuse Symfony\\Component\\VarExporter\\VarExporter;\n\n/**\n * @author Piotr Stankowski \n * @author Nicolas Grekas \n * @author Rob Frawley 2nd \n */\nclass PhpFilesAdapter extends AbstractAdapter implements PruneableInterface\n{\n use FilesystemCommonTrait {\n doClear as private doCommonClear;\n doDelete as pri", "suffix": "am bool $appendOnly Set to `true` to gain extra performance when the items stored in this pool never expire.\n * Doing so is encouraged because it fits perfectly OPcache's memory model.\n *\n * @throws InvalidArgumentExcept", "middle": "vate doCommonDelete;\n }\n\n private \\Closure $includeHandler;\n private array $values = [];\n private array $files = [];\n\n private static int $startTime;\n private static array $valuesCache = [];\n\n /**\n * @par", "meta": {"filepath": "src/Symfony/Component/Cache/Adapter/PhpFilesAdapter.php", "language": "php", "file_size": 10635, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\LockRegistry;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\CacheTrait;\nuse Symfony\\Contracts", "suffix": " array $computing = [];\n\n /**\n * Wraps the callback passed to ->get() in a callable.\n *\n * @return callable the previous callback wrapper\n */\n public function setCallbackWrapper(?callable $callbackWrapper): callable\n {\n if (", "middle": "\\Cache\\ItemInterface;\n\n/**\n * @author Nicolas Grekas \n *\n * @internal\n */\ntrait ContractsTrait\n{\n use CacheTrait {\n doGet as private contractsGet;\n }\n\n private \\Closure $callbackWrapper;\n private", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/ContractsTrait.php", "language": "php", "file_size": 4123, "cut_index": 614, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits\\Relay;\n\nif (version_compare(phpversion('relay'), '0.21.0', '>=')) {\n /**\n * @internal\n */\n trait Relay21Trait\n {\n public function gcra($key, $maxBurst, $requestsPerPeriod, $period, $tokens = 0): \\Relay\\Relay|array|false\n {\n re", "suffix": "t_args());\n }\n\n public function hotkeys($subcmd, $args = null): \\Relay\\Relay|array|bool\n {\n return $this->initializeLazyObject()->hotkeys(...\\func_get_args());\n }\n }\n} else {\n /**\n * @internal\n */\n tr", "middle": "turn $this->initializeLazyObject()->gcra(...\\func_ge", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/Relay/Relay21Trait.php", "language": "php", "file_size": 886, "cut_index": 547, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Traits;\n\n/**\n * This file acts as a wrapper to the \\RedisCluster implementation so it can accept the same type of calls as\n * individual \\Redis objects.\n *\n * Calls are made to individual nodes via: RedisCluster->{method}($host, ...args)'\n * ac", "suffix": "onstruct(\n private array $host,\n private \\RedisCluster $redis,\n ) {\n }\n\n public function __call(string $method, array $args)\n {\n return $this->redis->{$method}($this->host, ...$args);\n }\n\n public function scan(&$iIter", "middle": "cording to https://github.com/phpredis/phpredis/blob/develop/cluster.markdown#directed-node-commands\n *\n * @author Jack Thomas \n *\n * @internal\n */\nclass RedisClusterNodeProxy\n{\n public function __c", "meta": {"filepath": "src/Symfony/Component/Cache/Traits/RedisClusterNodeProxy.php", "language": "php", "file_size": 1238, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ProxyAdapter;\nuse Symf", "suffix": "not.',\n 'testSaveWithoutExpire' => 'Assumes a shared cache which ArrayAdapter is not.',\n 'testPrune' => 'ProxyAdapter just proxies',\n 'testClearWithInvalidPrefix' => 'Inner ArrayAdapter does not validate the prefix.',\n ];\n\n publi", "middle": "ony\\Component\\Cache\\CacheItem;\n\n#[Group('time-sensitive')]\nclass ProxyAdapterTest extends AdapterTestCase\n{\n protected $skippedTests = [\n 'testDeferredSaveWithoutCommit' => 'Assumes a shared cache which ArrayAdapter is ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/ProxyAdapterTest.php", "language": "php", "file_size": 2227, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Marshaller;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Marshaller\\DefaultMarshaller;\nuse Symfony\\Component\\Cache\\Marshaller\\DeflateMarshaller;\n\n#[RequiresPhpExtension('zlib')]\nclass Defl", "suffix": " => [str_repeat('def', 100)]];\n\n $failed = [];\n $defaultResult = $defaultMarshaller->marshall($values, $failed);\n\n $deflateResult = $deflateMarshaller->marshall($values, $failed);\n $deflateResult['abc'] = gzinflate($deflateResul", "middle": "ateMarshallerTest extends TestCase\n{\n public function testMarshall()\n {\n $defaultMarshaller = new DefaultMarshaller();\n $deflateMarshaller = new DeflateMarshaller($defaultMarshaller);\n\n $values = ['abc'", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Marshaller/DeflateMarshallerTest.php", "language": "php", "file_size": 1677, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Marshaller;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Marshaller\\DefaultMarshaller;\nuse Symfony\\Component\\Cache\\Marshaller\\SodiumMarshaller;\n\n#[RequiresPhpExtension('sodium')]\nclass SodiumMarshallerTest extends ", "suffix": "w DefaultMarshaller();\n $sodiumMarshaller = new SodiumMarshaller([$this->decryptionKey], $defaultMarshaller);\n\n $values = ['a' => '123'];\n $failed = [];\n $defaultResult = $defaultMarshaller->marshall($values, $failed);\n\n ", "middle": "TestCase\n{\n private string $decryptionKey;\n\n protected function setUp(): void\n {\n $this->decryptionKey = sodium_crypto_box_keypair();\n }\n\n public function testMarshall()\n {\n $defaultMarshaller = ne", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Marshaller/SodiumMarshallerTest.php", "language": "php", "file_size": 2174, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Messenger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\AbstractLogger;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Messenger\\EarlyExpirationDispatcher;\nuse Symfony\\Component\\", "suffix": "ent\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\n\nclass EarlyExpirationDispatcherTest extends TestCase\n{\n public static function tearDow", "middle": "Cache\\Messenger\\EarlyExpirationMessage;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\ReverseContainer;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Compon", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Messenger/EarlyExpirationDispatcherTest.php", "language": "php", "file_size": 4589, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Messenger;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemInterface;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Messenger\\EarlyExpirationHandler;\nuse Symfony\\Component\\Cache\\Messenger\\EarlyExpirat", "suffix": "se Symfony\\Contracts\\Cache\\CallbackInterface;\n\nclass EarlyExpirationHandlerTest extends TestCase\n{\n public static function tearDownAfterClass(): void\n {\n (new Filesystem())->remove(sys_get_temp_dir().'/symfony-cache');\n }\n\n #[Group('time", "middle": "ionMessage;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\ReverseContainer;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nu", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Messenger/EarlyExpirationHandlerTest.php", "language": "php", "file_size": 2154, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Messenger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\Cache\\Messenger\\EarlyExpirationMessage;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\ReverseContainer;\nuse Symfony\\Component\\Depend", "suffix": " $computationService = new class {\n public function __invoke(CacheItem $item)\n {\n return 123;\n }\n };\n\n $container = new Container();\n $container->set('computation_service', $computationS", "middle": "encyInjection\\ServiceLocator;\n\nclass EarlyExpirationMessageTest extends TestCase\n{\n public function testCreate()\n {\n $pool = new ArrayAdapter();\n $item = $pool->getItem('foo');\n $item->set(234);\n\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Messenger/EarlyExpirationMessageTest.php", "language": "php", "file_size": 3978, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TraceableAdapter;\nuse Symfony\\Compo", "suffix": "sConfig;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass CacheCollectorPassTest extends TestCase\n{\n public function testProcess", "middle": "nent\\Cache\\Adapter\\TraceableTagAwareAdapter;\nuse Symfony\\Component\\Cache\\DataCollector\\CacheDataCollector;\nuse Symfony\\Component\\Cache\\DependencyInjection\\CacheCollectorPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\Pas", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/DependencyInjection/CacheCollectorPassTest.php", "language": "php", "file_size": 4447, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\DependencyInjection\\CachePoolClearerPass;\nuse Symfony\\Component\\Cache\\DependencyInjection\\CachePoolPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\RemoveUnusedDefinitionsPass;\nuse Symfony\\Compon", "suffix": "ClearerPassTest extends TestCase\n{\n public function testPoolRefsAreWeak()\n {\n $container = new ContainerBuilder();\n $container->setParameter('kernel.container_class', 'app');\n $container->setParameter('kernel.project_dir', 'foo')", "middle": "ent\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpKernel\\CacheClearer\\Psr6CacheClearer;\n\nclass CachePool", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/DependencyInjection/CachePoolClearerPassTest.php", "language": "php", "file_size": 2682, "cut_index": 563, "middle_length": 229}} {"prefix": "apter\\ApcuAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ChainAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\NullAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ParameterNormalizer;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse Symfony\\Component\\Cache\\DependencyInjection\\CachePoolPass;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Sym", "suffix": "fony\\Component\\HttpKernel\\CacheClearer\\Psr6CacheClearer;\n\nclass CachePoolPassTest extends TestCase\n{\n private CachePoolPass $cachePoolPass;\n\n protected function setUp(): void\n {\n $this->cachePoolPass = new CachePoolPass();\n }\n\n public", "middle": "fony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Sym", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/DependencyInjection/CachePoolPassTest.php", "language": "php", "file_size": 16031, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolPruneCommand;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PhpFilesAdapter;\nuse Symfony\\Component\\Cache\\DependencyInjection\\CachePoolPass;\nuse Symfony\\Component\\Cache\\DependencyInjecti", "suffix": "encyInjection\\Reference;\n\nclass CachePoolPrunerPassTest extends TestCase\n{\n public function testCompilerPassReplacesCommandArgument()\n {\n $container = new ContainerBuilder();\n $container->register('console.command.cache_pool_prune')->ad", "middle": "on\\CachePoolPrunerPass;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Depend", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/DependencyInjection/CachePoolPrunerPassTest.php", "language": "php", "file_size": 4498, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Messenger;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\DependencyInjection\\ReverseContainer;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\Handle", "suffix": " private ReverseContainer $reverseContainer,\n ?callable $callbackWrapper = null,\n ) {\n $this->callbackWrapper = null === $callbackWrapper ? null : $callbackWrapper(...);\n }\n\n public function __invoke(callable $callback, CacheIte", "middle": "dStamp;\n\n/**\n * Sends the computation of cached values to a message bus.\n */\nclass EarlyExpirationDispatcher\n{\n private ?\\Closure $callbackWrapper;\n\n public function __construct(\n private MessageBusInterface $bus,\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Messenger/EarlyExpirationDispatcher.php", "language": "php", "file_size": 2294, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Messenger;\n\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\DependencyInjection\\ReverseContainer;\nuse Symfony\\Component\\Messenger\\Attribute\\AsMessageHandler;\n\n/**\n * Computes cached values sent to a message bus.\n */\n#[AsMessageHandler]\nclass EarlyExpirationHandler\n{\n private", "suffix": "->getItem();\n $metadata = $item->getMetadata();\n $expiry = $metadata[CacheItem::METADATA_EXPIRY] ?? 0;\n $ctime = $metadata[CacheItem::METADATA_CTIME] ?? 0;\n\n if ($expiry && $ctime) {\n // skip duplicate or expired mess", "middle": " array $processedNonces = [];\n\n public function __construct(\n private ReverseContainer $reverseContainer,\n ) {\n }\n\n public function __invoke(EarlyExpirationMessage $message): void\n {\n $item = $message", "meta": {"filepath": "src/Symfony/Component/Cache/Messenger/EarlyExpirationHandler.php", "language": "php", "file_size": 2464, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Messenger;\n\nuse Symfony\\Component\\Cache\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Cache\\CacheItem;\nuse Symfony\\Component\\DependencyInjection\\ReverseContainer;\n\n/**\n * Conveys a cached value that needs to be computed.\n */\nfinal class EarlyExpirationMessage\n{\n public static function ", "suffix": " return null;\n }\n\n $pool = $reverseContainer->getId($pool);\n\n if ($callback instanceof \\Closure && !($r = new \\ReflectionFunction($callback))->isAnonymous()) {\n $callback = [$r->getClosureThis() ?? $r->getClosureCalle", "middle": "create(ReverseContainer $reverseContainer, callable $callback, CacheItem $item, AdapterInterface $pool): ?self\n {\n try {\n $item = clone $item;\n $item->set(null);\n } catch (\\Exception) {\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Messenger/EarlyExpirationMessage.php", "language": "php", "file_size": 2819, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\DependencyInjection;\n\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapterInterface;\nuse Symfony\\Component\\Cache\\Adapter\\TraceableAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TraceableTagAwareAdapter;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Compo", "suffix": "ailed statistics.\n *\n * @author Tobias Nyholm \n */\nclass CacheCollectorPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('data_collec", "middle": "nent\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Inject a data collector to all the cache services to be able to get det", "meta": {"filepath": "src/Symfony/Component/Cache/DependencyInjection/CacheCollectorPass.php", "language": "php", "file_size": 2926, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * @author Nicolas Grekas findTaggedServiceIds('cache.pool.clearer') as $id => $attr) {\n $clearer = $container->getDefinition($id);\n $pools = [];\n foreach ($clearer->getArgument(0) as $name => $ref) {\n if ($container->ha", "middle": "work.com>\n */\nclass CachePoolClearerPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n $container->getParameterBag()->remove('cache.prefix.seed');\n\n foreach", "meta": {"filepath": "src/Symfony/Component/Cache/DependencyInjection/CachePoolClearerPass.php", "language": "php", "file_size": 1181, "cut_index": 518, "middle_length": 229}} {"prefix": "Component\\Cache\\Adapter\\ChainAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\NullAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ParameterNormalizer;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse Symfony\\Component\\Cache\\Messenger\\EarlyExpirationDispatcher;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfo", "suffix": "ass CachePoolPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if ($container->hasParameter('cache.prefix.seed')) {\n $seed = $container->getParameterBag()->resolveValue($containe", "middle": "ny\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * @author Nicolas Grekas \n */\ncl", "meta": {"filepath": "src/Symfony/Component/Cache/DependencyInjection/CachePoolPass.php", "language": "php", "file_size": 12905, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\DependencyInjection;\n\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjecti", "suffix": " $container): void\n {\n if (!$container->hasDefinition('console.command.cache_pool_prune')) {\n return;\n }\n\n $services = [];\n\n foreach ($container->findTaggedServiceIds('cache.pool') as $id => $tags) {\n if", "middle": "on\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * @author Rob Frawley 2nd \n */\nclass CachePoolPrunerPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder", "meta": {"filepath": "src/Symfony/Component/Cache/DependencyInjection/CachePoolPrunerPass.php", "language": "php", "file_size": 1409, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo;\n\nuse Symfony\\Component\\TypeInfo\\Type\\CompositeTypeInterface;\nuse Symfony\\Component\\TypeInfo\\Type\\WrappingTypeInterface;\n\n/**\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n */\nabstract class Type implements \\Stringable\n{\n use TypeFactoryTrait;\n\n /**\n * Tells if the typ", "suffix": "ation): bool\n {\n if ($this instanceof WrappingTypeInterface && $this->wrappedTypeIsSatisfiedBy($specification)) {\n return true;\n }\n\n if ($this instanceof CompositeTypeInterface && $this->composedTypesAreSatisfiedBy($speci", "middle": "e is satisfied by the $specification callable.\n *\n * @param-immediately-invoked-callable $specification\n *\n * @param callable(self): bool $specification\n */\n public function isSatisfiedBy(callable $specific", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type.php", "language": "php", "file_size": 3199, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Fixtures;\n\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\n\n/**\n * Adapter not implementing the {@see \\Symfony\\Component\\Cache\\Adapter\\AdapterInterface}.\n *\n * @author Kévin Dunglas cache->getItem($key);\n }\n\n public function getItems(array $keys = []): iterable\n {\n return $this->cache->getItems($keys);\n }\n\n public func", "middle": "nglas@gmail.com>\n */\nclass ExternalAdapter implements CacheItemPoolInterface\n{\n private ArrayAdapter $cache;\n\n public function __construct(int $defaultLifetime = 0)\n {\n $this->cache = new ArrayAdapter($defaultLife", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Fixtures/ExternalAdapter.php", "language": "php", "file_size": 1734, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Traits;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Relay\\Cluster as RelayCluster;\nuse Relay\\Relay;\nuse Symfony\\Component\\Cache\\Traits\\RedisProxyTrait;\nuse Symfony\\Component\\Cache\\Traits\\RelayClusterProxy;\nuse Symfony\\Component\\Cache\\Traits\\RelayProxy;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\n\nclass RedisProxiesTest extends TestCase\n{\n ", "suffix": "roxy.php\");\n $proxy = substr($proxy, 0, 2 + strpos($proxy, '[];'));\n $expected = substr($proxy, 0, 2 + strpos($proxy, '}'));\n $methods = [];\n\n foreach ((new \\ReflectionClass(\\sprintf('Symfony\\Component\\Cache\\Traits\\\\%sProxy', $c", "middle": "#[RequiresPhpExtension('redis')]\n #[TestWith([\\Redis::class])]\n #[TestWith([\\RedisCluster::class])]\n public function testRedisProxy($class)\n {\n $proxy = file_get_contents(\\dirname(__DIR__, 2).\"/Traits/{$class}P", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Traits/RedisProxiesTest.php", "language": "php", "file_size": 6919, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Marshaller;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Marshaller\\DefaultMarshaller;\n\nclass DefaultMarshallerTest extends TestCase\n{\n public function testSerialize()\n {\n $marshaller = new DefaultMarshaller();\n $values = [\n 'a' => 12", "suffix": "\n\n #[RequiresPhpExtension('igbinary')]\n public function testIgbinarySerialize()\n {\n if (version_compare('3.1.6', phpversion('igbinary'), '>')) {\n $this->markTestSkipped('igbinary needs to be v3.1.6 or higher.');\n }\n\n ", "middle": "3,\n 'b' => static function () {},\n ];\n\n $expected = ['a' => serialize(123)];\n $this->assertSame($expected, $marshaller->marshall($values, $failed));\n $this->assertSame(['b'], $failed);\n }", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Marshaller/DefaultMarshallerTest.php", "language": "php", "file_size": 4641, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Predis\\Connection\\StreamConnection;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\n\n#[Group('integration')]\nclass PredisAdapterTest extends AbstractRedisAdapterTestCase\n{\n public static function setUpBeforeClass(): void\n {\n parent::setUpBeforeClass();\n self::", "suffix": "OST');\n\n $redis = RedisAdapter::createConnection('redis://'.$redisHost.'/1', ['class' => \\Predis\\Client::class, 'timeout' => 3]);\n $this->assertInstanceOf(\\Predis\\Client::class, $redis);\n\n $connection = $redis->getConnection();\n ", "middle": "$redis = new \\Predis\\Client(array_combine(['host', 'port'], explode(':', getenv('REDIS_HOST')) + [1 => 6379]), ['prefix' => 'prefix_']);\n }\n\n public function testCreateConnection()\n {\n $redisHost = getenv('REDIS_H", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PredisAdapterTest.php", "language": "php", "file_size": 4045, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\n\n#[Group('integration')]\nclass PredisRedisReplicationAdapterTest extends AbstractRedisAdapterTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!$hosts = getenv('REDIS_REPLICATION_HOSTS')) {\n ", "suffix": "env var is not defined.');\n }\n\n self::$redis = RedisAdapter::createConnection('redis:?host['.str_replace(' ', ']&host[', $hosts).'][role]=master', ['replication' => 'predis', 'class' => \\Predis\\Client::class, 'prefix' => 'prefix_']);\n }\n}\n", "middle": " self::markTestSkipped('REDIS_REPLICATION_HOSTS ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PredisRedisReplicationAdapterTest.php", "language": "php", "file_size": 914, "cut_index": 606, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapter;\n\n#[Group('integration')]\nclass PredisTagAwareClusterAdapterTest extends PredisClusterAdapte", "suffix": " createCachePool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n $this->assertInstanceOf(\\Predis\\Client::class, self::$redis);\n $adapter = new RedisTagAwareAdapter(self::$redis, str_replace('\\\\', '.', __CL", "middle": "rTest\n{\n use TagAwareTestTrait;\n\n protected function setUp(): void\n {\n parent::setUp();\n $this->skippedTests['testTagItemExpiry'] = 'Testing expiration slows down the test suite';\n }\n\n public function", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PredisTagAwareClusterAdapterTest.php", "language": "php", "file_size": 1061, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ProxyAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\nuse Symfony\\Component\\Cache\\CacheItem;\n\n#[Gr", "suffix": "tic function setUpBeforeClass(): void\n {\n parent::setUpBeforeClass();\n self::$redis = AbstractAdapter::createConnection('redis://'.getenv('REDIS_HOST'));\n }\n\n public function createCachePool($defaultLifetime = 0, ?string $testMethod ", "middle": "oup('integration')]\nclass ProxyAdapterAndRedisAdapterTest extends AbstractRedisAdapterTestCase\n{\n protected $skippedTests = [\n 'testPrune' => 'RedisAdapter does not implement PruneableInterface.',\n ];\n\n public sta", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/ProxyAdapterAndRedisAdapterTest.php", "language": "php", "file_size": 2448, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\Psr16Adapter;\nuse", "suffix": "impleCache cannot clear by prefix',\n 'testClearPrefixWithUnderscore' => 'SimpleCache cannot clear by prefix',\n ];\n\n public function createCachePool(int $defaultLifetime = 0): CacheItemPoolInterface\n {\n return new Psr16Adapter(new Psr", "middle": " Symfony\\Component\\Cache\\Psr16Cache;\n\n#[Group('time-sensitive')]\nclass Psr16AdapterTest extends AdapterTestCase\n{\n protected $skippedTests = [\n 'testPrune' => 'Psr16adapter just proxies',\n 'testClearPrefix' => 'S", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/Psr16AdapterTest.php", "language": "php", "file_size": 1443, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Traits\\RedisProxy;\n\n#[Group('integration')]\nclass RedisAdapterTest extends AbstractRedisAdapterTestCase\n{\n ", "suffix": "reateCachePool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n if ('testClearWithPrefix' === $testMethod && \\defined('Redis::SCAN_PREFIX')) {\n self::$redis->setOption(\\Redis::OPT_SCAN, \\Redis::SCAN_PRE", "middle": " public static function setUpBeforeClass(): void\n {\n parent::setUpBeforeClass();\n self::$redis = AbstractAdapter::createConnection('redis://'.getenv('REDIS_HOST'), ['lazy' => true]);\n }\n\n public function c", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RedisAdapterTest.php", "language": "php", "file_size": 5615, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\nuse Symfony\\Component\\Cache\\Exception\\InvalidAr", "suffix": " if (!class_exists(\\RedisCluster::class)) {\n self::markTestSkipped('The RedisCluster class is required.');\n }\n if (!$hosts = getenv('REDIS_CLUSTER_HOSTS')) {\n self::markTestSkipped('REDIS_CLUSTER_HOSTS env var is not de", "middle": "gumentException;\nuse Symfony\\Component\\Cache\\Traits\\RedisClusterProxy;\n\n#[Group('integration')]\nclass RedisClusterAdapterTest extends AbstractRedisAdapterTestCase\n{\n public static function setUpBeforeClass(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RedisClusterAdapterTest.php", "language": "php", "file_size": 2372, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapter;\n\n#[Group('integration')]\nclass RedisTagAwareArrayAdapterTest extends RedisArrayAdapterTest\n{\n ", "suffix": "chePool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n if ('testClearWithPrefix' === $testMethod && \\defined('Redis::SCAN_PREFIX')) {\n self::$redis->setOption(\\Redis::OPT_SCAN, \\Redis::SCAN_PREFIX);\n ", "middle": " use TagAwareTestTrait;\n\n protected function setUp(): void\n {\n parent::setUp();\n $this->skippedTests['testTagItemExpiry'] = 'Testing expiration slows down the test suite';\n }\n\n public function createCa", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RedisTagAwareArrayAdapterTest.php", "language": "php", "file_size": 1226, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapter;\nuse Symfony\\Component\\Cache\\Traits\\Rela", "suffix": "parent::setUp();\n $this->skippedTests['testTagItemExpiry'] = 'Testing expiration slows down the test suite';\n }\n\n public function createCachePool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n $this", "middle": "yClusterProxy;\n\n#[RequiresPhpExtension('relay')]\n#[Group('integration')]\nclass RedisTagAwareRelayClusterAdapterTest extends RelayClusterAdapterTest\n{\n use TagAwareTestTrait;\n\n protected function setUp(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RedisTagAwareRelayClusterAdapterTest.php", "language": "php", "file_size": 1209, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Relay\\Relay;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\nuse Symfony\\Component\\Cache\\Except", "suffix": "BeforeClass(): void\n {\n try {\n new Relay(...explode(':', getenv('REDIS_HOST')));\n } catch (\\Relay\\Exception $e) {\n self::markTestSkipped(getenv('REDIS_HOST').': '.$e->getMessage());\n }\n self::$redis = Ab", "middle": "ion\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Traits\\RelayProxy;\n\n#[RequiresPhpExtension('relay')]\n#[Group('integration')]\nclass RelayAdapterTest extends AbstractRedisAdapterTestCase\n{\n public static function setUp", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RelayAdapterTest.php", "language": "php", "file_size": 1974, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\DoesNotPerformAssertions;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse Symfony\\Component\\Cache\\Prunea", "suffix": " public function createCachePool($defaultLifetime = 0): CacheItemPoolInterface\n {\n return new TagAwareAdapter(new FilesystemAdapter('', $defaultLifetime));\n }\n\n public static function tearDownAfterClass(): void\n {\n (new Filesyste", "middle": "bleInterface;\nuse Symfony\\Component\\Cache\\Tests\\Fixtures\\PrunableAdapter;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n#[Group('time-sensitive')]\nclass TagAwareAdapterTest extends AdapterTestCase\n{\n use TagAwareTestTrait;\n\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/TagAwareAdapterTest.php", "language": "php", "file_size": 7601, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ProxyAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse S", "suffix": "face $proxiedAdapter)\n {\n $cache = new TagAwareAdapter(new ProxyAdapter($proxiedAdapter));\n\n $item = $cache->getItem('foo');\n $item->tag(['tag1', 'tag2']);\n $item->set('bar');\n $cache->save($item);\n\n $this->asse", "middle": "ymfony\\Component\\Cache\\Tests\\Fixtures\\ExternalAdapter;\n\nclass TagAwareAndProxyAdapterIntegrationTest extends TestCase\n{\n #[DataProvider('dataProvider')]\n public function testIntegrationUsingProxiedAdapter(CacheItemPoolInter", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/TagAwareAndProxyAdapterIntegrationTest.php", "language": "php", "file_size": 2117, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TraceableTagAwareAdapter;\n\n#[Group('time-se", "suffix": "->invalidateTags(['foo']);\n $calls = $pool->getCalls();\n $this->assertCount(1, $calls);\n\n $call = $calls[0];\n $this->assertSame('invalidateTags', $call->name);\n $this->assertSame(0, $call->hits);\n $this->assertSame", "middle": "nsitive')]\nclass TraceableTagAwareAdapterTest extends TraceableAdapterTest\n{\n public function testInvalidateTags()\n {\n $pool = new TraceableTagAwareAdapter(new TagAwareAdapter(new FilesystemAdapter()));\n $pool", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/TraceableTagAwareAdapterTest.php", "language": "php", "file_size": 1116, "cut_index": 515, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemTagAwareAdapter;\n\n/**\n * Adapter that simulates a failure when saving tags.\n */\nclass FailingTagFilesystemAdapter extends FilesystemTagAwareAdapter\n{\n protected function doSave(array $values, int $lifetime, ar", "suffix": "ray\n {\n $failed = parent::doSave($values, $lifetime, $addTagData, $removeTagData);\n\n // Simulate tag save failure by returning tag IDs as failed\n foreach ($addTagData as $tagId => $ids) {\n $failed[] = $tagId;\n }\n\n ", "middle": "ray $addTagData = [], array $removeTagData = []): ar", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Fixtures/FailingTagFilesystemAdapter.php", "language": "php", "file_size": 886, "cut_index": 547, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\n\n#[Group('integration')]\nclass PredisRedisClusterAdapterTest extends AbstractRedisAdapterTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if ", "suffix": " self::markTestSkipped('REDIS_CLUSTER_HOSTS env var is not defined.');\n }\n\n self::$redis = RedisAdapter::createConnection('redis:?host['.str_replace(' ', ']&host[', $hosts).']', ['class' => \\Predis\\Client::class, 'redis_cluster' => true, '", "middle": "(!$hosts = getenv('REDIS_CLUSTER_HOSTS')) {\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PredisRedisClusterAdapterTest.php", "language": "php", "file_size": 887, "cut_index": 547, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapter;\n\n#[Group('integration')]\nclass PredisTagAwareAdapterTest extends PredisAdapterTest\n{\n ", "suffix": "Pool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n $this->assertInstanceOf(\\Predis\\Client::class, self::$redis);\n $adapter = new RedisTagAwareAdapter(self::$redis, str_replace('\\\\', '.', __CLASS__), $def", "middle": "use TagAwareTestTrait;\n\n protected function setUp(): void\n {\n parent::setUp();\n $this->skippedTests['testTagItemExpiry'] = 'Testing expiration slows down the test suite';\n }\n\n public function createCache", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PredisTagAwareAdapterTest.php", "language": "php", "file_size": 1047, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Relay\\Cluster as RelayCluster;\nuse Relay\\Relay;\nuse Symfony\\Component\\Cache\\Adapter\\Abstrac", "suffix": "ion')]\nclass RelayClusterAdapterTest extends AbstractRedisAdapterTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!class_exists(RelayCluster::class)) {\n self::markTestSkipped('The Relay\\Cluster class is required.'", "middle": "tAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Traits\\RelayClusterProxy;\n\n#[RequiresPhpExtension('relay')]\n#[Group('integrat", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RelayClusterAdapterTest.php", "language": "php", "file_size": 2444, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TraceableAdapter;\n\n#[Group('time-sensitive')]\nclass TraceableAdapterTest extends AdapterTestCase\n{\n protected $skippedTests = [\n 'testPrune' => 'TraceableAdapter just proxies',\n ];\n\n public function createCachePool(int $defaultLifetime = 0): C", "suffix": "m('k');\n $calls = $pool->getCalls();\n $this->assertCount(1, $calls);\n\n $call = $calls[0];\n $this->assertSame('getItem', $call->name);\n $this->assertSame(['k' => false], $call->result);\n $this->assertSame(0, $call->", "middle": "acheItemPoolInterface\n {\n return new TraceableAdapter(new FilesystemAdapter('', $defaultLifetime));\n }\n\n public function testGetItemMissTrace()\n {\n $pool = $this->createCachePool();\n $pool->getIte", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/TraceableAdapterTest.php", "language": "php", "file_size": 5957, "cut_index": 716, "middle_length": 229}} {"prefix": "quiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\Traits\\RedisTrait;\n\n#[RequiresPhpExtension('redis')]\nclass RedisTraitTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n try {\n (new \\Redis())->connect(...explode(':', getenv('REDIS_HOST')));\n } catch (\\Exception $e) {\n self::markTestSkipped(getenv('REDIS_HOST').': '.$e->getMessage());\n }\n ", "suffix": "\" class is required.', $expectedClass));\n }\n if (!getenv('REDIS_CLUSTER_HOSTS')) {\n self::markTestSkipped('REDIS_CLUSTER_HOSTS env var is not defined.');\n }\n\n $mock = new class {\n use RedisTrait;\n };", "middle": "}\n\n #[DataProvider('provideCreateConnection')]\n public function testCreateConnection(string $dsn, string $expectedClass)\n {\n if (!class_exists($expectedClass)) {\n self::markTestSkipped(\\sprintf('The \"%s", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Traits/RedisTraitTest.php", "language": "php", "file_size": 11653, "cut_index": 921, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapter;\n\n#[Group('integration')]\nclass PredisTagAwareReplicationAdapterTest extends PredisRedisRepl", "suffix": "blic function createCachePool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n $this->assertInstanceOf(\\Predis\\Client::class, self::$redis);\n $adapter = new RedisTagAwareAdapter(self::$redis, str_replace('\\", "middle": "icationAdapterTest\n{\n use TagAwareTestTrait;\n\n protected function setUp(): void\n {\n parent::setUp();\n $this->skippedTests['testTagItemExpiry'] = 'Testing expiration slows down the test suite';\n }\n\n pu", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PredisTagAwareReplicationAdapterTest.php", "language": "php", "file_size": 1074, "cut_index": 515, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\n\n#[Group('integration')]\nclass RedisArrayAdapterTest extends AbstractRedisAdapterTestCase\n{\n public static function setUpBeforeClass(): void\n {\n parent::setUpBeforeClass();\n if (!class_exi", "suffix": "y::class)) {\n self::markTestSkipped('The RedisArray class is required.');\n }\n self::$redis = new \\RedisArray([getenv('REDIS_HOST')], ['lazy_connect' => true]);\n self::$redis->setOption(\\Redis::OPT_PREFIX, 'prefix_');\n }\n}", "middle": "sts(\\RedisArra", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RedisArrayAdapterTest.php", "language": "php", "file_size": 807, "cut_index": 536, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapter;\nuse Symfony\\Component\\Cache\\Traits\\RedisClusterProxy;\n\n#[Group('integration')]\nclass RedisTagAwareCl", "suffix": "the test suite';\n }\n\n public function createCachePool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n if ('testClearWithPrefix' === $testMethod && \\defined('Redis::SCAN_PREFIX')) {\n self::$redis-", "middle": "usterAdapterTest extends RedisClusterAdapterTest\n{\n use TagAwareTestTrait;\n\n protected function setUp(): void\n {\n parent::setUp();\n $this->skippedTests['testTagItemExpiry'] = 'Testing expiration slows down ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RedisTagAwareClusterAdapterTest.php", "language": "php", "file_size": 1290, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\n\n#[Group('integration')]\nclass PredisReplicationAdapterTest extends AbstractRedisAdapterTestCase\n{\n public static function setUpBeforeClass(): void\n {\n parent::setUpBeforeClass(", "suffix": " $lastArrayKey = array_key_last($hosts);\n $hostTable = [];\n foreach ($hosts as $key => $host) {\n $hostInformation = array_combine(['host', 'port'], explode(':', $host));\n if ($lastArrayKey === $key) {\n ", "middle": ");\n\n if (!$hosts = getenv('REDIS_REPLICATION_HOSTS')) {\n self::markTestSkipped('REDIS_REPLICATION_HOSTS env var is not defined.');\n }\n\n $hosts = explode(' ', getenv('REDIS_REPLICATION_HOSTS'));\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/PredisReplicationAdapterTest.php", "language": "php", "file_size": 1226, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\TypeResolver;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Resolves type for a given type reflection.\n *\n", "suffix": "Context $typeContext = null): Type\n {\n if ($subject instanceof \\ReflectionUnionType) {\n return Type::union(...array_map(fn (mixed $t): Type => $this->resolve($t, $typeContext), $subject->getTypes()));\n }\n\n if ($subject in", "middle": " * @author Mathias Arlaud \n * @author Baptiste Leduc \n */\nfinal class ReflectionTypeResolver implements TypeResolverInterface\n{\n public function resolve(mixed $subject, ?Type", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeResolver/ReflectionTypeResolver.php", "language": "php", "file_size": 3259, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\TypeResolver;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\n\n/**\n * Resolves return type", "suffix": "blic function __construct(\n private readonly ReflectionTypeResolver $reflectionTypeResolver,\n private readonly TypeContextFactory $typeContextFactory,\n ) {\n }\n\n public function resolve(mixed $subject, ?TypeContext $typeContext = null", "middle": " for a given function reflection.\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n */\nfinal class ReflectionReturnTypeResolver implements TypeResolverInterface\n{\n pu", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeResolver/ReflectionReturnTypeResolver.php", "language": "php", "file_size": 1879, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\TypeResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractableDummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractableDummyUsingTrait;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractab", "suffix": "ReflectionTypeResolver;\n\nclass ReflectionPropertyTypeResolverTest extends TestCase\n{\n private ReflectionPropertyTypeResolver $resolver;\n\n protected function setUp(): void\n {\n $this->resolver = new ReflectionPropertyTypeResolver(new Reflecti", "middle": "leTrait;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\ReflectionPropertyTypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeResolver/ReflectionPropertyTypeResolverTest.php", "language": "php", "file_size": 3178, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\TypeResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractableDummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractableDummyUsingTrait;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractab", "suffix": "flectionTypeResolver;\n\nclass ReflectionReturnTypeResolverTest extends TestCase\n{\n private ReflectionReturnTypeResolver $resolver;\n\n protected function setUp(): void\n {\n $this->resolver = new ReflectionReturnTypeResolver(new ReflectionTypeRe", "middle": "leTrait;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\ReflectionReturnTypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\Re", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeResolver/ReflectionReturnTypeResolverTest.php", "language": "php", "file_size": 3870, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\TypeResolver;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\AbstractDummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyBackedEnum;\nuse Symfony\\Component\\TypeInfo\\Tes", "suffix": "ypeInfo\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\ReflectionTypeResolver;\n\nclass ReflectionTypeResolverTest extends TestCase\n{\n private ReflectionTypeResolver $res", "middle": "ts\\Fixtures\\DummyBackedEnumInterface;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyEnum;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractableDummy;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\T", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeResolver/ReflectionTypeResolverTest.php", "language": "php", "file_size": 5808, "cut_index": 716, "middle_length": 229}} {"prefix": "eption\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\AbstractDummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyBackedEnum;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyBackedEnumInterface;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyCollection;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyEnum;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\D", "suffix": "e Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\StringTypeResolver;\n\nclass StringTypeResolverTest extends ", "middle": "ummyWithConstants;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithTemplates;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithTemplateTypeAlias;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithTypeAliases;\nus", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeResolver/StringTypeResolverTest.php", "language": "php", "file_size": 17343, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\TypeResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolverInterface;\n\nclass T", "suffix": "), $resolver->resolve((new \\ReflectionProperty(Dummy::class, 'id'))->getType()));\n $this->assertEquals(Type::int(), $resolver->resolve((new \\ReflectionMethod(Dummy::class, 'setId'))->getParameters()[0]));\n $this->assertEquals(Type::int(), $re", "middle": "ypeResolverTest extends TestCase\n{\n public function testResolve()\n {\n $resolver = TypeResolver::create();\n\n $this->assertEquals(Type::bool(), $resolver->resolve('bool'));\n $this->assertEquals(Type::int(", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeResolver/TypeResolverTest.php", "language": "php", "file_size": 4003, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Fixtures;\n\nfinal class DummyWithConstants\n{\n public const DUMMY_STRING_A = 'a';\n public const DUMMY_INT_A = 1;\n public const DUMMY_FLOAT_A = 1.23;\n public const DUMMY_TRUE_A = true;\n public const DUMMY_FALSE_A = false", "suffix": " public const DUMMY_MIX_3 = self::DUMMY_FLOAT_A;\n public const DUMMY_MIX_4 = self::DUMMY_TRUE_A;\n public const DUMMY_MIX_5 = self::DUMMY_FALSE_A;\n public const DUMMY_MIX_6 = self::DUMMY_NULL_A;\n public const DUMMY_MIX_7 = self::DUMMY_ARRAY_A", "middle": ";\n public const DUMMY_NULL_A = null;\n public const DUMMY_ARRAY_A = [];\n public const DUMMY_ENUM_A = DummyEnum::ONE;\n\n public const DUMMY_MIX_1 = self::DUMMY_STRING_A;\n public const DUMMY_MIX_2 = self::DUMMY_INT_A;\n", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithConstants.php", "language": "php", "file_size": 1053, "cut_index": 513, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Fixtures;\n\n/**\n * @phpstan-type CustomInt = int\n * @psalm-type PsalmCustomInt = int\n */\nfinal class DummyWithPhpDoc\n{\n /**\n * @var array\n */\n public mixed $arrayOfDummies = [];\n\n /**\n * @var CustomInt\n ", "suffix": "/\n public mixed $promotedVar,\n /**\n * @var string\n */\n public mixed $promotedVarAndParam,\n ) {\n }\n\n /**\n * @param Dummy $dummy\n *\n * @return Dummy\n */\n public function getNextDummy(mixed $dum", "middle": "*/\n public mixed $aliasedInt;\n\n /**\n * @param bool $promoted\n * @param bool $promotedVarAndParam\n */\n public function __construct(\n public mixed $promoted,\n /**\n * @var string\n *", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithPhpDoc.php", "language": "php", "file_size": 1117, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Fixtures;\n\n/**\n * @phpstan-type CustomArray = array{0: CustomInt, 1: CustomString, 2: bool}\n * @phpstan-type CustomString = string\n *\n * @phpstan-import-type CustomInt from DummyWithPhpDoc\n * @phpstan-import-type CustomInt from DummyWithPhpDoc as AliasedCu", "suffix": "lmCustomInt from DummyWithPhpDoc as PsalmAliasedCustomInt\n */\nfinal class DummyWithTypeAliases\n{\n /**\n * @var CustomString\n */\n public mixed $localAlias;\n\n /**\n * @var CustomInt\n */\n public mixed $externalAlias;\n\n /**\n * ", "middle": "stomInt\n *\n * @psalm-type PsalmCustomArray = array{0: PsalmCustomInt, 1: PsalmCustomString, 2: bool}\n * @psalm-type PsalmCustomString = string\n *\n * @psalm-import-type PsalmCustomInt from DummyWithPhpDoc\n * @psalm-import-type Psa", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithTypeAliases.php", "language": "php", "file_size": 1995, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Fixtures;\n\nfinal class ReflectionExtractableDummy extends AbstractDummy\n{\n public int $builtin;\n public ?int $nullableBuiltin;\n\n public array $array;\n public ?array $nullableArray;\n\n public iterable $iterable;\n public ?iterable $nullableI", "suffix": "?DummyEnum $nullableEnum;\n\n public DummyBackedEnum $backedEnum;\n public ?DummyBackedEnum $nullableBackedEnum;\n\n public DummyBackedEnumInterface $backedEnumInterface;\n\n public int|string $union;\n public \\Traversable&\\Stringable $intersection;", "middle": "terable;\n\n public Dummy $class;\n public ?Dummy $nullableClass;\n\n public self $self;\n public ?self $nullableSelf;\n\n public parent $parent;\n public ?parent $nullableParent;\n\n public DummyEnum $enum;\n public ", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Fixtures/ReflectionExtractableDummy.php", "language": "php", "file_size": 1797, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\ArrayShapeType;\n\nclass ArrayShapeTypeTest extends TestCase\n{\n #[DataProvider('cannotConstructWithInvalidExtraDataProvider')]\n public function testCannotConstructWithInvalidExtra(string $expectedMessage, ", "suffix": "ype' => Type::bool(), 'optional' => false]],\n extraKeyType: $extraKeyType,\n extraValueType: $extraValueType,\n );\n }\n\n /**\n * @return iterable\n */\n public static function ca", "middle": "?Type $extraKeyType, ?Type $extraValueType)\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage($expectedMessage);\n\n new ArrayShapeType(\n shape: [1 => ['t", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/ArrayShapeTypeTest.php", "language": "php", "file_size": 6319, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyBackedEnum;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\", "suffix": "ummyBackedEnum::class, Type::bool());\n }\n\n public function testToString()\n {\n $this->assertSame(DummyBackedEnum::class, (string) new BackedEnumType(DummyBackedEnum::class, Type::int()));\n }\n\n public function testAccepts()\n {\n ", "middle": "Type\\BackedEnumType;\n\nclass BackedEnumTypeTest extends TestCase\n{\n public function testCannotCreateInvalidBackingBuiltinType()\n {\n $this->expectException(InvalidArgumentException::class);\n new BackedEnumType(D", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/BackedEnumTypeTest.php", "language": "php", "file_size": 1198, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\nclass BuiltinTypeTest extends TestCase\n{\n public function testToString()\n {\n $this->assertSame('int', (string) new BuiltinType(TypeIdentifier::INT));\n }\n\n public function testIsI", "suffix": ";\n\n $this->assertFalse((new BuiltinType(TypeIdentifier::INT))->isIdentifiedBy('array'));\n $this->assertTrue((new BuiltinType(TypeIdentifier::INT))->isIdentifiedBy('int'));\n\n $this->assertTrue((new BuiltinType(TypeIdentifier::INT))->isI", "middle": "dentifiedBy()\n {\n $this->assertFalse((new BuiltinType(TypeIdentifier::INT))->isIdentifiedBy(TypeIdentifier::ARRAY));\n $this->assertTrue((new BuiltinType(TypeIdentifier::INT))->isIdentifiedBy(TypeIdentifier::INT))", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/BuiltinTypeTest.php", "language": "php", "file_size": 3882, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\GenericType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\nclass CollectionTypeTest extends TestCase\n{\n public function testCannotCreateInvalidBuiltinType()\n {\n $this->expectException(Inval", "suffix": "int(), Type::bool()), isList: true);\n $this->addToAssertionCount(1);\n\n $this->expectException(InvalidArgumentException::class);\n new CollectionType(Type::generic(Type::builtin(TypeIdentifier::ARRAY), Type::string(), Type::bool()), isLi", "middle": "idArgumentException::class);\n new CollectionType(Type::int());\n }\n\n public function testCanOnlyConstructListWithIntKeyType()\n {\n new CollectionType(Type::generic(Type::builtin(TypeIdentifier::ARRAY), Type::", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php", "language": "php", "file_size": 7431, "cut_index": 716, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyEnum;\nuse Symfony\\Component\\TypeInfo\\Type\\EnumType;\n\nclass EnumTypeTest extends TestCase\n{\n public function testToString()\n {\n $this->assertSame(DummyEn", "suffix": "ring) new EnumType(DummyEnum::class));\n }\n\n public function testAccepts()\n {\n $type = new EnumType(DummyEnum::class);\n\n $this->assertFalse($type->accepts('string'));\n $this->assertTrue($type->accepts(DummyEnum::ONE));\n }\n}\n", "middle": "um::class, (st", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/EnumTypeTest.php", "language": "php", "file_size": 806, "cut_index": 536, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\GenericType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\nclass GenericTypeTest extends TestCase\n{\n ", "suffix": " $type = new GenericType(Type::builtin(TypeIdentifier::ARRAY), Type::bool());\n $this->assertEquals('array', (string) $type);\n\n $type = new GenericType(Type::builtin(TypeIdentifier::ARRAY), Type::string(), Type::bool());\n $", "middle": " public function testCannotCreateInvalidBuiltinType()\n {\n $this->expectException(InvalidArgumentException::class);\n new GenericType(Type::int(), Type::string());\n }\n\n public function testToString()\n {\n", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/GenericTypeTest.php", "language": "php", "file_size": 2041, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\IntersectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\Type\\UnionType;\n\nclass IntersectionTypeTest extends TestC", "suffix": "tCreateWithUnionTypePart()\n {\n $this->expectException(InvalidArgumentException::class);\n new IntersectionType(Type::object(\\DateTime::class), new UnionType(Type::int(), Type::string()));\n }\n\n public function testCannotCreateWithInter", "middle": "ase\n{\n public function testCannotCreateWithOnlyOneType()\n {\n $this->expectException(InvalidArgumentException::class);\n new IntersectionType(Type::object(\\DateTime::class));\n }\n\n public function testCanno", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/IntersectionTypeTest.php", "language": "php", "file_size": 3849, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\NullableType;\n\nclass NullableTypeTest extends TestCase\n{\n public function ", "suffix": "Type(Type::int());\n $this->assertEquals([Type::int(), Type::null()], $type->getTypes());\n\n $type = new NullableType(Type::union(Type::int(), Type::string()));\n $this->assertEquals([Type::int(), Type::null(), Type::string()], $type->get", "middle": "testCannotCreateWithNullableType()\n {\n $this->expectException(InvalidArgumentException::class);\n new NullableType(Type::null());\n }\n\n public function testNullPartIsAdded()\n {\n $type = new Nullable", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/NullableTypeTest.php", "language": "php", "file_size": 1673, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectShapeType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\nclass ObjectShapeTypeTest extends TestCase\n{\n public function testGetTypeIdentifier()\n {\n $type = new ObjectShapeType(['foo' => ['type' => Type::bool(), 'optional' => false]]);\n $this->assertSame(TypeIdentifier::OBJECT, $type->getTypeIden", "suffix": "bool(), 'optional' => false],\n 'bar' => ['type' => Type::string(), 'optional' => true],\n ];\n\n $type = new ObjectShapeType($shape);\n ksort($shape);\n\n $this->assertSame($shape, $type->getShape());\n }\n\n public func", "middle": "tifier());\n\n $this->assertSame(TypeIdentifier::OBJECT, (new ObjectShapeType([]))->getTypeIdentifier());\n }\n\n public function testGetShapeIsSortedByKey()\n {\n $shape = [\n 'foo' => ['type' => Type::", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/ObjectShapeTypeTest.php", "language": "php", "file_size": 5826, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\nclass ObjectTypeTest extends TestCase\n{\n public function testToString()\n {\n $this->assertSame(self::class, (", "suffix": "pe(self::class))->isIdentifiedBy(TypeIdentifier::OBJECT));\n\n $this->assertFalse((new ObjectType(self::class))->isIdentifiedBy('array'));\n $this->assertTrue((new ObjectType(self::class))->isIdentifiedBy('object'));\n\n $this->assertTrue((", "middle": "string) new ObjectType(self::class));\n }\n\n public function testIsIdentifiedBy()\n {\n $this->assertFalse((new ObjectType(self::class))->isIdentifiedBy(TypeIdentifier::ARRAY));\n $this->assertTrue((new ObjectTy", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/ObjectTypeTest.php", "language": "php", "file_size": 1637, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\Type;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\Type\\UnionType;\n\nclass UnionTypeTest extends TestCase\n{\n pu", "suffix": " $this->expectException(InvalidArgumentException::class);\n new UnionType(Type::int(), new UnionType());\n }\n\n public function testCannotCreateWithNullPart()\n {\n $this->expectException(InvalidArgumentException::class);\n new Un", "middle": "blic function testCannotCreateWithOnlyOneType()\n {\n $this->expectException(InvalidArgumentException::class);\n new UnionType(Type::int());\n }\n\n public function testCannotCreateWithUnionTypePart()\n {\n ", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/Type/UnionTypeTest.php", "language": "php", "file_size": 3313, "cut_index": 614, "middle_length": 229}} {"prefix": "ption\\LogicException;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\AbstractDummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\AnotherNamespace\\DummyInDifferentNs;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\AnotherNamespace\\DummyWithTemplateAndParentInDifferentNs;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithImportedOnlyTypeAliases;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithInvalidTypeAlias;\nuse Symfony\\Component\\TypeInfo\\Tests", "suffix": "res\\DummyWithRecursiveTypeAliases;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithTemplateAndParent;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithTemplates;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithTemplateTypeAlias;\nuse Sym", "middle": "\\Fixtures\\DummyWithInvalidTypeAliasImport;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithPhpstanTemplates;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithPsalmTemplates;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtu", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeContext/TypeContextFactoryTest.php", "language": "php", "file_size": 14744, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\TypeContext;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\LogicException;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\AbstractDummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\AnotherNamespace\\DummyInDifferentNs;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\TypeInfo\\Te", "suffix": "text\\TypeContextFactory;\n\nclass TypeContextTest extends TestCase\n{\n public function testNormalize()\n {\n $typeContext = (new TypeContextFactory())->createFromClassName(DummyWithUses::class);\n\n $this->assertSame(DummyWithUses::class, $typ", "middle": "sts\\Fixtures\\DummyExtendingStdClass;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithUses;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeCon", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeContext/TypeContextTest.php", "language": "php", "file_size": 3158, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\TypeContext;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\LogicException;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Type resolving context.\n *\n * Helps to retrieve declaring class, called class, parent class, templates\n * and normalize classes according to the current namespace and uses.\n *\n * @author Mathias Arlaud $templates\n * @param array $typeAliases\n */\n public function __construct(\n public readonly string $calledClassName,\n public readonly string $declaringClassName,\n pub", "middle": ".com>\n * @author Baptiste Leduc \n */\nfinal class TypeContext\n{\n /**\n * @var array\n */\n private static array $classExistCache = [];\n\n /**\n * @param array", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeContext/TypeContext.php", "language": "php", "file_size": 3315, "cut_index": 614, "middle_length": 229}} {"prefix": "pDocParser\\Ast\\PhpDoc\\TypeAliasImportTagValueNode;\nuse PHPStan\\PhpDocParser\\Ast\\PhpDoc\\TypeAliasTagValueNode;\nuse PHPStan\\PhpDocParser\\Lexer\\Lexer;\nuse PHPStan\\PhpDocParser\\Parser\\ConstExprParser;\nuse PHPStan\\PhpDocParser\\Parser\\PhpDocParser;\nuse PHPStan\\PhpDocParser\\Parser\\TokenIterator;\nuse PHPStan\\PhpDocParser\\Parser\\TypeParser;\nuse PHPStan\\PhpDocParser\\ParserConfig;\nuse Symfony\\Component\\TypeInfo\\Exception\\LogicException;\nuse Symfony\\Component\\TypeInfo\\Exception\\RuntimeException;\nuse Symfony\\Component\\T", "suffix": ".\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n * @author Pierre-Yves Landuré \n */\nfinal class TypeContextFactory\n{\n /**\n * @var array", "middle": "ypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\StringTypeResolver;\n\n/**\n * Creates a type resolving context", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeContext/TypeContextFactory.php", "language": "php", "file_size": 14464, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher;\n\nuse Psr\\EventDispatcher\\StoppableEventInterface;\nuse Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener;\n\n/**\n * The EventDispatcherInterface is the central point of Symfony's event listener system.\n *\n * Listeners are registered on the manager and events are dispatched through the\n * manager.\n *\n * @author Guilherme Blanco \n * @author Jonathan Wage \n * @author Roman Borschel ", "suffix": "thor Nicolas Grekas \n */\nclass EventDispatcher implements EventDispatcherInterface\n{\n private array $listeners = [];\n private array $sorted = [];\n private array $optimized;\n\n public function __construct()\n {\n if (__CLAS", "middle": "\n * @author Bernhard Schussek \n * @author Fabien Potencier \n * @author Jordi Boggiano \n * @author Jordan Alliot \n * @au", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/EventDispatcher.php", "language": "php", "file_size": 8858, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher;\n\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface as ContractsEventDispatcherInterface;\n\n/**\n * The EventDispatcherInterface is the central point of Symfony's event listener system.\n * Listeners are registered on the manager and events are dispatched through the\n * ", "suffix": " * @param int $priority The higher this value, the earlier an event\n * listener will be triggered in the chain (defaults to 0)\n */\n public function addListener(string $eventName, callable $listener, int $priority = 0): v", "middle": "manager.\n *\n * @author Bernhard Schussek \n */\ninterface EventDispatcherInterface extends ContractsEventDispatcherInterface\n{\n /**\n * Adds an event listener that listens on the specified events.\n *\n", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php", "language": "php", "file_size": 2198, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher;\n\n/**\n * An EventSubscriber knows itself what events it is interested in.\n * If an EventSubscriber is added to an EventDispatcherInterface, the manager invokes\n * {@link getSubscribedEvents} and registers the subscriber as a listener for all\n * returned e", "suffix": "EventSubscriberInterface\n{\n /**\n * Returns an array of event names this subscriber wants to listen to.\n *\n * The array keys are event names and the value can be:\n *\n * * The method name to call (priority defaults to 0)\n * * An ", "middle": "vents.\n *\n * @author Guilherme Blanco \n * @author Jonathan Wage \n * @author Roman Borschel \n * @author Bernhard Schussek \n */\ninterface ", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php", "language": "php", "file_size": 1771, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher;\n\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * Event encapsulation class.\n *\n * Encapsulates events thus decoupling the observer from the subject they encapsulate.\n *\n * @author Drak \n *\n * @implements \\ArrayAccess\n * @implements \\IteratorAggregate\n */\nclass GenericEvent exten", "suffix": "m array $arguments Arguments to store in the event\n */\n public function __construct(\n protected mixed $subject = null,\n protected array $arguments = [],\n ) {\n }\n\n /**\n * Getter for subject property.\n */\n public func", "middle": "ds Event implements \\ArrayAccess, \\IteratorAggregate\n{\n /**\n * Encapsulate an event with $subject and $arguments.\n *\n * @param mixed $subject The subject of the event, usually an object or a callable\n * @para", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/GenericEvent.php", "language": "php", "file_size": 3457, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher;\n\n/**\n * A read-only proxy for an event dispatcher.\n *\n * @author Bernhard Schussek \n */\nclass ImmutableEventDispatcher implements EventDispatcherInterface\n{\n public function __construct(\n private EventDispatcherInterface $d", "suffix": "me, callable|array $listener, int $priority = 0): never\n {\n throw new \\BadMethodCallException('Unmodifiable event dispatchers must not be modified.');\n }\n\n public function addSubscriber(EventSubscriberInterface $subscriber): never\n {\n ", "middle": "ispatcher,\n ) {\n }\n\n public function dispatch(object $event, ?string $eventName = null): object\n {\n return $this->dispatcher->dispatch($event, $eventName);\n }\n\n public function addListener(string $eventNa", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php", "language": "php", "file_size": 1980, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher\\Attribute;\n\n/**\n * Service tag to autoconfigure event listeners.\n *\n * @author Alexander M. Turek \n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass AsEventListe", "suffix": "is listener if several are declared for the same event\n * @param string|null $dispatcher The service id of the event dispatcher to listen to\n */\n public function __construct(\n public ?string $event = null,\n public ?string $method =", "middle": "ner\n{\n /**\n * @param string|null $event The event name to listen to\n * @param string|null $method The method to run when the listened event is triggered\n * @param int $priority The priority of th", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Attribute/AsEventListener.php", "language": "php", "file_size": 1100, "cut_index": 515, "middle_length": 229}} {"prefix": "dispatcher = $this->createEventDispatcher();\n $this->listener = new TestEventListener();\n }\n\n protected function createEventDispatcher()\n {\n return new EventDispatcher();\n }\n\n public function testInitialState()\n {\n $this->assertEquals([], $this->dispatcher->getListeners());\n $this->assertFalse($this->dispatcher->hasListeners(self::preFoo));\n $this->assertFalse($this->dispatcher->hasListeners(self::postFoo));\n }\n\n public function testAddListener()\n ", "suffix": " $this->assertTrue($this->dispatcher->hasListeners(self::preFoo));\n $this->assertTrue($this->dispatcher->hasListeners(self::postFoo));\n $this->assertCount(1, $this->dispatcher->getListeners(self::preFoo));\n $this->assertCount(1,", "middle": " {\n $this->dispatcher->addListener('pre.foo', [$this->listener, 'preFoo']);\n $this->dispatcher->addListener('post.foo', $this->listener->postFoo(...));\n $this->assertTrue($this->dispatcher->hasListeners());\n", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php", "language": "php", "file_size": 18509, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\TypeResolver;\n\nuse PHPStan\\PhpDocParser\\Parser\\PhpDocParser;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\n\n/**\n * Resolves type", "suffix": "verInterface\n{\n /**\n * @param ContainerInterface $resolvers Locator of type resolvers, keyed by supported subject type\n */\n public function __construct(\n private readonly ContainerInterface $resolvers,\n ) {\n }\n\n public functio", "middle": " for a given subject by delegating resolving to nested type resolvers.\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n */\nfinal class TypeResolver implements TypeResol", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeResolver/TypeResolver.php", "language": "php", "file_size": 4355, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Represents the exact shape of an array.\n *\n * @author Mathias Arlaud \n *\n * @extends CollectionType>", "suffix": "ape\n */\n public function __construct(\n array $shape,\n private readonly ?Type $extraKeyType = null,\n private readonly ?Type $extraValueType = null,\n ) {\n $keyTypes = [];\n $valueTypes = [];\n\n foreach ($shap", "middle": ">\n */\nfinal class ArrayShapeType extends CollectionType\n{\n /**\n * @var array\n */\n private readonly array $shape;\n\n /**\n * @param array $sh", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/ArrayShapeType.php", "language": "php", "file_size": 4388, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n *\n * @template T of TypeIdentifier\n */\nfinal class BuiltinType extends Type\n{\n /**", "suffix": "ifier\n {\n return $this->typeIdentifier;\n }\n\n public function isIdentifiedBy(TypeIdentifier|string ...$identifiers): bool\n {\n foreach ($identifiers as $identifier) {\n if ($identifier === $this->typeIdentifier || $identif", "middle": "\n * @param T $typeIdentifier\n */\n public function __construct(\n private readonly TypeIdentifier $typeIdentifier,\n ) {\n }\n\n /**\n * @return T\n */\n public function getTypeIdentifier(): TypeIdent", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/BuiltinType.php", "language": "php", "file_size": 2297, "cut_index": 563, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Represents a type composed of several other types.\n *\n * @author Mathias Arlaud \n *\n * @template T of Type\n */\ninterface CompositeTypeInterface\n{\n /**\n * ", "suffix": ">\n */\n public function getTypes(): array;\n\n /**\n * @param-immediately-invoked-callable $specification\n *\n * @param callable(Type): bool $specification\n */\n public function composedTypesAreSatisfiedBy(callable $specification): b", "middle": "@return list\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapter;\nuse Symfony\\Component\\Cache\\Traits\\RedisProxy;\n\n#[Group('integration')]\nclass RedisTagAwareAdapterTe", "suffix": "}\n\n public function createCachePool(int $defaultLifetime = 0, ?string $testMethod = null): CacheItemPoolInterface\n {\n if ('testClearWithPrefix' === $testMethod && \\defined('Redis::SCAN_PREFIX')) {\n self::$redis->setOption(\\Redis::OP", "middle": "st extends RedisAdapterTest\n{\n use TagAwareTestTrait;\n\n protected function setUp(): void\n {\n parent::setUp();\n $this->skippedTests['testTagItemExpiry'] = 'Testing expiration slows down the test suite';\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RedisTagAwareAdapterTest.php", "language": "php", "file_size": 1262, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse Psr\\Cache\\InvalidArgumentException;\nuse Symfony\\Component\\Cache\\CacheItem;\n\n/**\n * Common assertions for TagAware adapters.\n *\n * @method \\Symfony\\Component\\Cache\\Adapter\\TagAwareAdapterInterface createCachePool(int $defaultLifetime = 0) Must be implemented by TestCase\n */\ntrait TagAwareTestTrait\n{\n public function testInvalidTag()\n {\n $pool = $this->createCachePool();\n $item = $pool->getItem('foo');\n", "suffix": " $i1 = $pool->getItem('i1');\n $i2 = $pool->getItem('i2');\n $i3 = $pool->getItem('i3');\n $foo = $pool->getItem('foo');\n\n $pool->save($i0->tag('bar'));\n $pool->save($i1->tag('foo'));\n $pool->save($i2->tag('foo')->", "middle": "\n $this->expectException(InvalidArgumentException::class);\n\n $item->tag(':');\n }\n\n public function testInvalidateTags()\n {\n $pool = $this->createCachePool();\n\n $i0 = $pool->getItem('i0');\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/TagAwareTestTrait.php", "language": "php", "file_size": 5905, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\NullAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TraceableAdapter;\nuse Symfony\\Component\\Cache\\DataCollector\\CacheDataCollector;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\n\nclass CacheDataCollectorTest extends TestCase\n{\n private const INSTANCE_NAME = 'tes", "suffix": ">assertSame(0, $statistics[self::INSTANCE_NAME]['reads'], 'reads');\n $this->assertSame(0, $statistics[self::INSTANCE_NAME]['hits'], 'hits');\n $this->assertSame(0, $statistics[self::INSTANCE_NAME]['misses'], 'misses');\n $this->assertSam", "middle": "t';\n\n public function testEmptyDataCollector()\n {\n $statistics = $this->getCacheDataCollectorStatisticsFromEvents([]);\n\n $this->assertSame(0, $statistics[self::INSTANCE_NAME]['calls'], 'calls');\n $this-", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/DataCollector/CacheDataCollectorTest.php", "language": "php", "file_size": 7646, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\TypeResolver;\n\nuse PHPStan\\PhpDocParser\\Ast\\PhpDoc\\ParamTagValueNode;\nuse PHPStan\\PhpDocParser\\Ast\\PhpDoc\\ReturnTagValueNode;\nuse PHPStan\\PhpDocParser\\Ast\\PhpDoc\\VarTagValueNode;\nuse PHPStan\\PhpDocParser\\Lexer\\Lexer;\nuse PHPStan\\PhpDocParser\\Parser\\ConstExprParser;\nuse PHPStan\\PhpDocParser\\Parser\\PhpDocParser;\nuse PHPStan\\PhpDocParser\\Pa", "suffix": "Info\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\n\n/**\n * Resolves type on reflection prioriziting PHP documentation.\n *\n * @author Mathias Arlaud \n */\nfinal class PhpDocAwareReflectionTy", "middle": "rser\\TokenIterator;\nuse PHPStan\\PhpDocParser\\Parser\\TypeParser;\nuse PHPStan\\PhpDocParser\\ParserConfig;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\Type", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeResolver/PhpDocAwareReflectionTypeResolver.php", "language": "php", "file_size": 4438, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n *\n * @template T of ObjectType|GenericType|Collection", "suffix": " /**\n * @param list $types\n */\n public function __construct(Type ...$types)\n {\n if (\\count($types) < 2) {\n throw new InvalidArgumentException(\\sprintf('\"%s\" expects at least 2 types.', self::class));\n }\n\n ", "middle": "Type>\n *\n * @implements CompositeTypeInterface\n */\nfinal class IntersectionType extends Type implements CompositeTypeInterface\n{\n /**\n * @var list\n */\n private readonly array $types;\n\n ", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/IntersectionType.php", "language": "php", "file_size": 2514, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Represents the exact shape of an anonymous object.\n *\n * The shape is stored sorted by key; two instances built from the same entries in\n * a different order compare equal through getShape() and produce the same string\n * representation. Ob", "suffix": "ok at the public, initialized\n * properties returned by get_object_vars(); non-public properties, uninitialized\n * typed properties and state exposed only through __get() or other magic\n * accessors are not visible.\n *\n * @author Benjamin Franzke \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * Represents a template placeholder, such as \"T\" in \"Collection\".\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n *\n * @template T of ", "suffix": "$name,\n private readonly Type $bound,\n ) {\n }\n\n public function getName(): string\n {\n return $this->name;\n }\n\n /**\n * @return T\n */\n public function getBound(): Type\n {\n return $this->bound;\n }\n\n p", "middle": "Type\n *\n * @implements WrappingTypeInterface\n */\nfinal class TemplateType extends Type implements WrappingTypeInterface\n{\n /**\n * @param T $bound\n */\n public function __construct(\n private readonly string ", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/TemplateType.php", "language": "php", "file_size": 1406, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\UnionType;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\nclass TypeTest extends TestCase\n{\n public function testIsIdentifiedBy()\n {\n $this->assertTrue(Type::in", "suffix": " $this->assertTrue(Type::collection(Type::object(\\Iterator::class))->isIdentifiedBy(TypeIdentifier::OBJECT));\n $this->assertTrue(Type::generic(Type::object(\\Iterator::class), Type::string())->isIdentifiedBy(TypeIdentifier::OBJECT));\n $this", "middle": "tersection(Type::object(\\Iterator::class), Type::object(\\Stringable::class))->isIdentifiedBy(TypeIdentifier::OBJECT));\n $this->assertTrue(Type::union(Type::int(), Type::string())->isIdentifiedBy(TypeIdentifier::INT));\n ", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeTest.php", "language": "php", "file_size": 3921, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\TypeResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractableDummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractableDummyUsingTrait;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\ReflectionExtractab", "suffix": "\\ReflectionTypeResolver;\n\nclass ReflectionParameterTypeResolverTest extends TestCase\n{\n private ReflectionParameterTypeResolver $resolver;\n\n protected function setUp(): void\n {\n $this->resolver = new ReflectionParameterTypeResolver(new Refl", "middle": "leTrait;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\ReflectionParameterTypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeResolver/ReflectionParameterTypeResolverTest.php", "language": "php", "file_size": 4083, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\TypeResolver;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\n\n/**\n * Resolves type for a ", "suffix": "c function __construct(\n private readonly ReflectionTypeResolver $reflectionTypeResolver,\n private readonly TypeContextFactory $typeContextFactory,\n ) {\n }\n\n public function resolve(mixed $subject, ?TypeContext $typeContext = null): ", "middle": "given parameter reflection.\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n */\nfinal class ReflectionParameterTypeResolver implements TypeResolverInterface\n{\n publi", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeResolver/ReflectionParameterTypeResolver.php", "language": "php", "file_size": 1914, "cut_index": 537, "middle_length": 229}} {"prefix": "se PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprFloatNode;\nuse PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprIntegerNode;\nuse PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprNullNode;\nuse PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprStringNode;\nuse PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprTrueNode;\nuse PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstFetchNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\ArrayShapeNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\ArrayTypeNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\CallableTypeNode;\nuse PHPStan", "suffix": "ype\\NullableTypeNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\ObjectShapeNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\ThisTypeNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\TypeNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\UnionTypeNode;\nuse PHPStan\\PhpDocParser\\Lexer\\Lexer;\nuse ", "middle": "\\PhpDocParser\\Ast\\Type\\ConstTypeNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\GenericTypeNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode;\nuse PHPStan\\PhpDocParser\\Ast\\Type\\IntersectionTypeNode;\nuse PHPStan\\PhpDocParser\\Ast\\T", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeResolver/StringTypeResolver.php", "language": "php", "file_size": 15677, "cut_index": 921, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\TypeResolver;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContext;\n\n/**\n * Resolves type for a given subject.\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n */\ninte", "suffix": "resolve a {@see Type} on a $subject.\n * If the resolver cannot resolve the type, it will throw a {@see UnsupportedException}.\n *\n * @throws UnsupportedException\n */\n public function resolve(mixed $subject, ?TypeContext $typeContext = nul", "middle": "rface TypeResolverInterface\n{\n /**\n * Try to ", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeResolver/TypeResolverInterface.php", "language": "php", "file_size": 926, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Represents a key/value collection type.\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n *\n * @template T of BuiltinType|BuiltinType|ObjectType|GenericType\n *\n * @im", "suffix": "ericType $type,\n private readonly bool $isList = false,\n ) {\n if ($type instanceof BuiltinType && TypeIdentifier::ARRAY !== $type->getTypeIdentifier() && TypeIdentifier::ITERABLE !== $type->getTypeIdentifier()) {\n throw new Inva", "middle": "plements WrappingTypeInterface\n */\nclass CollectionType extends Type implements WrappingTypeInterface\n{\n /**\n * @param T $type\n */\n public function __construct(\n private readonly BuiltinType|ObjectType|Gen", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/CollectionType.php", "language": "php", "file_size": 7151, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\nuse Symfony\\Component\\Cache\\Exception\\InvalidArgumentException;\n\n#[Group('integration')]\nclass RedisAdapterSentinelTest extends Abst", "suffix": " if (!$hosts = getenv('REDIS_SENTINEL_HOSTS')) {\n self::markTestSkipped('REDIS_SENTINEL_HOSTS env var is not defined.');\n }\n if (!$service = getenv('REDIS_SENTINEL_SERVICE')) {\n self::markTestSkipped('REDIS_SENTINEL_SERV", "middle": "ractRedisAdapterTestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!class_exists(\\RedisSentinel::class)) {\n self::markTestSkipped('The RedisSentinel class is required.');\n }\n ", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RedisAdapterSentinelTest.php", "language": "php", "file_size": 2174, "cut_index": 563, "middle_length": 229}} {"prefix": "fo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\EnumType;\nuse Symfony\\Component\\TypeInfo\\Type\\GenericType;\nuse Symfony\\Component\\TypeInfo\\Type\\IntersectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\NullableType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectShapeType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\Type\\TemplateType;\nuse Symfony\\Component\\TypeInfo\\Type\\UnionType;\n\n/**\n * Helper trait to create any type ea", "suffix": " * @param T|U $identifier\n *\n * @return BuiltinType\n */\n public static function builtin(TypeIdentifier|string $identifier): BuiltinType\n {\n /** @var T $identifier */\n $identifier = \\is_string($identifier) ? TypeIdentifi", "middle": "sily.\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n */\ntrait TypeFactoryTrait\n{\n /**\n * @template T of TypeIdentifier\n * @template U value-of\n *\n ", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeFactoryTrait.php", "language": "php", "file_size": 13963, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * @author Mathias Arlaud \n *\n * @template T of Type\n *\n * @extends Union", "suffix": "nstruct(\n private readonly Type $type,\n ) {\n if ($type->isNullable()) {\n throw new InvalidArgumentException(\\sprintf('Cannot create a \"%s\" with \"%s\" because it is already nullable.', self::class, $type));\n }\n\n if (", "middle": "Type>\n *\n * @implements WrappingTypeInterface\n */\nfinal class NullableType extends UnionType implements WrappingTypeInterface\n{\n /**\n * @param T $type\n */\n public function __co", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/NullableType.php", "language": "php", "file_size": 1722, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n *\n * @template T of class-string\n */\nclass ObjectType exten", "suffix": "ntifier::OBJECT;\n }\n\n /**\n * @return T\n */\n public function getClassName(): string\n {\n return $this->className;\n }\n\n public function isIdentifiedBy(TypeIdentifier|string ...$identifiers): bool\n {\n foreach ($identi", "middle": "ds Type\n{\n /**\n * @param T $className\n */\n public function __construct(\n private readonly string $className,\n ) {\n }\n\n public function getTypeIdentifier(): TypeIdentifier\n {\n return TypeIde", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/ObjectType.php", "language": "php", "file_size": 1725, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Tests\\TypeResolver;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\Dummy;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyWithPhpDoc;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type", "suffix": "\nclass PhpDocAwareReflectionTypeResolverTest extends TestCase\n{\n #[DataProvider('readPhpDocDataProvider')]\n public function testReadPhpDoc(Type $expected, \\Reflector $reflector)\n {\n $resolver = new PhpDocAwareReflectionTypeResolver(TypeReso", "middle": "Context\\TypeContextFactory;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\PhpDocAwareReflectionTypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\StringTypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolver;\n", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeResolver/PhpDocAwareReflectionTypeResolverTest.php", "language": "php", "file_size": 2575, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n *\n * @template T", "suffix": " * @param U $backingType\n */\n public function __construct(\n string $className,\n private readonly BuiltinType $backingType,\n ) {\n if (TypeIdentifier::INT !== $backingType->getTypeIdentifier() && TypeIdentifier::STRING !== ", "middle": " of class-string<\\BackedEnum>\n * @template U of BuiltinType|BuiltinType\n *\n * @extends EnumType\n */\nfinal class BackedEnumType extends EnumType\n{\n /**\n * @param T $className\n", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/BackedEnumType.php", "language": "php", "file_size": 1368, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo;\n\n/**\n * Identifier of a PHP native type.\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n */\nenum TypeIdentifier: string\n{\n case ARRAY = 'array';\n case BOOL = 'bool';\n case CALLA", "suffix": "ce';\n case STRING = 'string';\n case TRUE = 'true';\n case NEVER = 'never';\n case VOID = 'void';\n\n /**\n * @return list\n */\n public static function values(): array\n {\n return array_column(self::cases(), 'value');\n ", "middle": "BLE = 'callable';\n case FALSE = 'false';\n case FLOAT = 'float';\n case INT = 'int';\n case ITERABLE = 'iterable';\n case MIXED = 'mixed';\n case NULL = 'null';\n case OBJECT = 'object';\n case RESOURCE = 'resour", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeIdentifier.php", "language": "php", "file_size": 1440, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n *\n * @template T of Type\n *\n * @implements CompositeTypeInterface\n", "suffix": "pes)\n {\n if (\\count($types) < 2) {\n throw new InvalidArgumentException(\\sprintf('\"%s\" expects at least 2 types.', self::class));\n }\n\n foreach ($types as $type) {\n if ($type instanceof self) {\n th", "middle": " */\nclass UnionType extends Type implements CompositeTypeInterface\n{\n /**\n * @var list\n */\n private readonly array $types;\n\n /**\n * @param list $types\n */\n public function __construct(Type ...$ty", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/UnionType.php", "language": "php", "file_size": 3838, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\TypeResolver;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContext;\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\n\n/**\n * Resolves type for a ", "suffix": "function __construct(\n private readonly ReflectionTypeResolver $reflectionTypeResolver,\n private readonly TypeContextFactory $typeContextFactory,\n ) {\n }\n\n public function resolve(mixed $subject, ?TypeContext $typeContext = null): Ty", "middle": "given property reflection.\n *\n * @author Mathias Arlaud \n * @author Baptiste Leduc \n */\nfinal class ReflectionPropertyTypeResolver implements TypeResolverInterface\n{\n public ", "meta": {"filepath": "src/Symfony/Component/TypeInfo/TypeResolver/ReflectionPropertyTypeResolver.php", "language": "php", "file_size": 1703, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Cache\\Tests\\Adapter;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Relay\\Relay;\nuse Relay\\Sentinel;\nuse Symfony\\Component\\Cache\\Adapter\\AbstractAdapter;\n\n#[Group('integration')]\nclass RelayAdapterSentinelTest extends AbstractRedisAdapterTestCase\n{\n public ", "suffix": "')) {\n self::markTestSkipped('REDIS_SENTINEL_HOSTS env var is not defined.');\n }\n if (!$service = getenv('REDIS_SENTINEL_SERVICE')) {\n self::markTestSkipped('REDIS_SENTINEL_SERVICE env var is not defined.');\n }\n\n ", "middle": "static function setUpBeforeClass(): void\n {\n if (!class_exists(Sentinel::class)) {\n self::markTestSkipped('The Relay\\Sentinel class is required.');\n }\n if (!$hosts = getenv('REDIS_SENTINEL_HOSTS", "meta": {"filepath": "src/Symfony/Component/Cache/Tests/Adapter/RelayAdapterSentinelTest.php", "language": "php", "file_size": 1305, "cut_index": 524, "middle_length": 229}} {"prefix": "ummyBackedEnum;\nuse Symfony\\Component\\TypeInfo\\Tests\\Fixtures\\DummyEnum;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\ArrayShapeType;\nuse Symfony\\Component\\TypeInfo\\Type\\BackedEnumType;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\nuse Symfony\\Component\\TypeInfo\\Type\\CollectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\EnumType;\nuse Symfony\\Component\\TypeInfo\\Type\\GenericType;\nuse Symfony\\Component\\TypeInfo\\Type\\IntersectionType;\nuse Symfony\\Component\\TypeInfo\\Type\\NullableType", "suffix": "o\\TypeIdentifier;\n\nclass TypeFactoryTest extends TestCase\n{\n public function testCreateBuiltin()\n {\n $this->assertEquals(new BuiltinType(TypeIdentifier::INT), Type::builtin(TypeIdentifier::INT));\n $this->assertEquals(new BuiltinType(Typ", "middle": ";\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectShapeType;\nuse Symfony\\Component\\TypeInfo\\Type\\ObjectType;\nuse Symfony\\Component\\TypeInfo\\Type\\TemplateType;\nuse Symfony\\Component\\TypeInfo\\Type\\UnionType;\nuse Symfony\\Component\\TypeInf", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Tests/TypeFactoryTest.php", "language": "php", "file_size": 14488, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\TypeInfo\\Type;\n\nuse Symfony\\Component\\TypeInfo\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Represents a generic type, which is a type that holds variable parts.\n *\n * @author Mathias Arlaud \n */\n private readonly array $variableTypes;\n\n /**\n * @param T $type\n */\n public function __construct(\n private readonly BuiltinType|ObjectType $t", "middle": "om>\n * @author Baptiste Leduc \n *\n * @template T of BuiltinType|BuiltinType|ObjectType\n *\n * @implements WrappingTypeInterface\n */\nfinal class GenericT", "meta": {"filepath": "src/Symfony/Component/TypeInfo/Type/GenericType.php", "language": "php", "file_size": 2231, "cut_index": 563, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher\\Tests\\Fixtures;\n\nuse Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener;\n\n#[AsEventListener(event: CustomEvent::class, method: 'onCustomEvent')]\n#[AsEventListener(event: 'foo', priority: 42)]\n#[AsEventListener(event: 'bar', method: ", "suffix": " public function onCustomEvent(CustomEvent $event): void\n {\n }\n\n public function onFoo(): void\n {\n }\n\n public function onBarEvent(): void\n {\n }\n\n #[AsEventListener(event: 'baz')]\n public function onBazEvent(): void\n {\n }", "middle": "'onBarEvent')]\nfinal class TaggedMultiListener\n{\n ", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Tests/Fixtures/TaggedMultiListener.php", "language": "php", "file_size": 834, "cut_index": 523, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunction;\n\n/**\n * Tests ExpressionFunction.\n *\n * @author Dany Maillard \n */\nclass ExpressionFunctionTest extends T", "suffix": "xpressionFunction::fromPhp('fn_does_not_exist');\n }\n\n public function testFunctionNamespaced()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('An expression function name must be defined ", "middle": "estCase\n{\n public function testFunctionDoesNotExist()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('PHP function \"fn_does_not_exist\" does not exist.');\n E", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/ExpressionFunctionTest.php", "language": "php", "file_size": 1233, "cut_index": 518, "middle_length": 229}} {"prefix": "Symfony\\Component\\ExpressionLanguage\\Tests\\Fixtures\\TestProvider;\n\nclass ExpressionLanguageTest extends TestCase\n{\n public function testCachedParse()\n {\n $cacheMock = $this->createMock(CacheItemPoolInterface::class);\n $cacheItemMock = $this->createMock(CacheItemInterface::class);\n $savedParsedExpression = null;\n $expressionLanguage = new ExpressionLanguage($cacheMock);\n\n $cacheMock\n ->expects($this->exactly(2))\n ->method('getItem')\n -", "suffix": "$savedParsedExpression) {\n return $savedParsedExpression;\n })\n ;\n\n $cacheItemMock\n ->expects($this->exactly(1))\n ->method('set')\n ->with($this->isInstanceOf(ParsedExpression::class))\n", "middle": ">with('1%20%2B%201%2F%2F')\n ->willReturn($cacheItemMock)\n ;\n\n $cacheItemMock\n ->expects($this->exactly(2))\n ->method('get')\n ->willReturnCallback(static function () use (&", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/ExpressionLanguageTest.php", "language": "php", "file_size": 19831, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\Lexer;\nuse Symfony\\Component\\ExpressionLanguage\\SyntaxError;\nuse Symfony\\Component\\ExpressionLanguage\\Token;\nuse Symfony\\Component\\ExpressionLanguage\\TokenStream;\n\nclass LexerTest extends TestCase\n{\n private Lexer $lexer;\n\n protected function setUp(): void\n {\n $this->lexer = new Lexer()", "suffix": "nStream($tokens, $expression), $this->lexer->tokenize($expression));\n }\n\n public function testTokenizeMultilineComment()\n {\n $expression = <<assertEquals(new Toke", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/LexerTest.php", "language": "php", "file_size": 8792, "cut_index": 716, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConstantNode;\nuse Symfony\\Component\\ExpressionLanguage\\ParsedExpression;\n\nclass ParsedExpressionTest extends TestCase\n{\n public function testSeriali", "suffix": "\n $expression = new ParsedExpression('25', new ConstantNode('25'));\n\n $serializedExpression = serialize($expression);\n $unserializedExpression = unserialize($serializedExpression);\n\n $this->assertEquals($expression, $unserialize", "middle": "zation()\n {", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/ParsedExpressionTest.php", "language": "php", "file_size": 814, "cut_index": 522, "middle_length": 14}} {"prefix": ");\n $lexer = new Lexer();\n $parser = new Parser([]);\n $parser->parse($lexer->tokenize('foo'));\n }\n\n public function testParseWithZeroInNames()\n {\n $this->expectException(SyntaxError::class);\n $this->expectExceptionMessage('Variable \"foo\" is not valid around position 1 for expression `foo`.');\n $lexer = new Lexer();\n $parser = new Parser([]);\n $parser->parse($lexer->tokenize('foo'), [0]);\n }\n\n public function testParsePrimaryExpressionWit", "suffix": "oes not exist around position 1 for expression `foo()`.');\n\n $parser->parse($stream);\n }\n\n public function testParseUnknownFunction()\n {\n $parser = new Parser([]);\n $tokenized = (new Lexer())->tokenize('foo()');\n\n $this", "middle": "hUnknownFunctionThrows()\n {\n $parser = new Parser([]);\n $stream = (new Lexer())->tokenize('foo()');\n\n $this->expectException(SyntaxError::class);\n $this->expectExceptionMessage('The function \"foo\" d", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php", "language": "php", "file_size": 17697, "cut_index": 1331, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Fixtures;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunction;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface;\n\nclass TestProvider implements ExpressionFunctionProviderInterface\n{\n public function getFunctions(): array\n {\n return [\n ", "suffix": "=> $input, fn (array $values, $input) => $input),\n\n ExpressionFunction::fromPhp('strtoupper'),\n\n ExpressionFunction::fromPhp('\\strtolower'),\n\n ExpressionFunction::fromPhp('Symfony\\Component\\ExpressionLanguage\\Tests\\Fixtures", "middle": " new ExpressionFunction('identity', fn ($input) ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Fixtures/TestProvider.php", "language": "php", "file_size": 991, "cut_index": 582, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\nabstract class AbstractNodeTestCase extends TestCase\n{\n #[DataProvider('getEvaluateData')]\n ", "suffix": ";\n\n #[DataProvider('getCompileData')]\n public function testCompile($expected, $node, $functions = [])\n {\n $compiler = new Compiler($functions);\n $node->compile($compiler);\n $this->assertSame($expected, $compiler->getSource());", "middle": " public function testEvaluate($expected, $node, $variables = [], $functions = [])\n {\n $this->assertSame($expected, $node->evaluate($functions, $variables));\n }\n\n abstract public static function getEvaluateData()", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/AbstractNodeTestCase.php", "language": "php", "file_size": 1273, "cut_index": 524, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ArgumentsNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ArrayNode;\n\nclass ArgumentsNodeTest extends ArrayNodeTest\n{\n public static function getCompileData(): array\n {\n ", "suffix": "ode()],\n ];\n }\n\n public static function getDumpData(): \\Generator\n {\n yield from [\n ['\"a\", \"b\"', static::getArrayNode()],\n ];\n }\n\n protected static function createArrayNode(): ArrayNode\n {\n return ne", "middle": " return [\n ['\"a\", \"b\"', static::getArrayN", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/ArgumentsNodeTest.php", "language": "php", "file_size": 864, "cut_index": 529, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ArrayNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConstantNode;\n\nclass ArrayNodeTest extends AbstractNodeTestCase\n{\n public function testSerialization()\n {\n $node = $this->createArrayNode();\n ", "suffix": "uals($this->createArrayNode(), $unserializedNode);\n }\n\n public static function getEvaluateData(): array\n {\n return [\n [['b' => 'a', 'b'], static::getArrayNode()],\n ];\n }\n\n public static function getCompileData(): arr", "middle": "$node->addElement(new ConstantNode('foo'));\n\n $serializedNode = serialize($node);\n $unserializedNode = unserialize($serializedNode);\n\n $this->assertEquals($node, $unserializedNode);\n $this->assertNotEq", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/ArrayNodeTest.php", "language": "php", "file_size": 2090, "cut_index": 563, "middle_length": 229}} {"prefix": "nent\\ExpressionLanguage\\Node\\ArrayNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\BinaryNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConstantNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\NameNode;\nuse Symfony\\Component\\ExpressionLanguage\\SyntaxError;\n\nclass BinaryNodeTest extends AbstractNodeTestCase\n{\n public static function getEvaluateData(): array\n {\n $array = new ArrayNode();\n $array->addElement(new ConstantNode('a'));\n $array->addElement(new ConstantNode('b')", "suffix": "naryNode('xor', new ConstantNode(true), new ConstantNode(true))],\n [false, new BinaryNode('and', new ConstantNode(true), new ConstantNode(false))],\n [false, new BinaryNode('&&', new ConstantNode(true), new ConstantNode(false))],\n\n ", "middle": ");\n\n return [\n [true, new BinaryNode('or', new ConstantNode(true), new ConstantNode(false))],\n [true, new BinaryNode('||', new ConstantNode(true), new ConstantNode(false))],\n [false, new Bi", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/BinaryNodeTest.php", "language": "php", "file_size": 15672, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConditionalNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConstantNode;\n\nclass ConditionalNodeTest extends AbstractNodeTestCase\n{\n public static function getEvaluateData():", "suffix": "ode(2))],\n ];\n }\n\n public static function getCompileData(): array\n {\n return [\n ['((true) ? (1) : (2))', new ConditionalNode(new ConstantNode(true), new ConstantNode(1), new ConstantNode(2))],\n ['((false) ? (1) ", "middle": " array\n {\n return [\n [1, new ConditionalNode(new ConstantNode(true), new ConstantNode(1), new ConstantNode(2))],\n [2, new ConditionalNode(new ConstantNode(false), new ConstantNode(1), new ConstantN", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/ConditionalNodeTest.php", "language": "php", "file_size": 1455, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConstantNode;\n\nclass ConstantNodeTest extends AbstractNodeTestCase\n{\n public static function getEvaluateData(): array\n {\n return [\n [false, new ConstantNode(false)],\n [true, new Consta", "suffix": "de([1, 'b' => 'a'])],\n ];\n }\n\n public static function getCompileData(): array\n {\n return [\n // Booleans\n ['false', new ConstantNode(false)],\n ['true', new ConstantNode(true)],\n\n // Null\n ", "middle": "ntNode(true)],\n [null, new ConstantNode(null)],\n [3, new ConstantNode(3)],\n [3.3, new ConstantNode(3.3)],\n ['foo', new ConstantNode('foo')],\n [[1, 'b' => 'a'], new ConstantNo", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/ConstantNodeTest.php", "language": "php", "file_size": 2903, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConstantNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\FunctionNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\Node;\n\nclass FunctionNodeTest extends AbstractNodeTestCase\n{", "suffix": "atic function getCompileData(): array\n {\n return [\n ['foo(\"bar\")', new FunctionNode('foo', new Node([new ConstantNode('bar')])), ['foo' => static::getCallables()]],\n ];\n }\n\n public static function getDumpData(): array\n ", "middle": "\n public static function getEvaluateData(): array\n {\n return [\n ['bar', new FunctionNode('foo', new Node([new ConstantNode('bar')])), [], ['foo' => static::getCallables()]],\n ];\n }\n\n public st", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/FunctionNodeTest.php", "language": "php", "file_size": 1368, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ArgumentsNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ArrayNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConstantNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\GetAttrNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\NameNode;\n\nclass GetAttrNodeTest extends AbstractNodeTestCase\n{\n public static function getEvaluateData(): array\n {\n retur", "suffix": "e('b'), self::getArrayNode(), GetAttrNode::ARRAY_CALL), ['foo' => ['b' => 'a', 'b']]],\n\n ['bar', new GetAttrNode(new NameNode('foo'), new ConstantNode('foo'), self::getArrayNode(), GetAttrNode::PROPERTY_CALL), ['foo' => new Obj()]],\n\n ", "middle": "n [\n ['b', new GetAttrNode(new NameNode('foo'), new ConstantNode(0), self::getArrayNode(), GetAttrNode::ARRAY_CALL), ['foo' => ['b' => 'a', 'b']]],\n ['a', new GetAttrNode(new NameNode('foo'), new ConstantNod", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/GetAttrNodeTest.php", "language": "php", "file_size": 6362, "cut_index": 716, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\NameNode;\n\nclass NameNodeTest extends AbstractNodeTestCase\n{\n public static function getEvaluateData(): array\n {\n return [\n ['bar', new NameNode('foo", "suffix": "static function getCompileData(): array\n {\n return [\n ['$foo', new NameNode('foo')],\n ];\n }\n\n public static function getDumpData(): array\n {\n return [\n ['foo', new NameNode('foo')],\n ];\n }\n}\n", "middle": "'), ['foo' => 'bar']],\n ];\n }\n\n public ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/NameNodeTest.php", "language": "php", "file_size": 825, "cut_index": 517, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConstantNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\Node;\n\nclass NodeTest extends TestCase\n{\n publi", "suffix": "tring) $node\n );\n }\n\n public function testSerialization()\n {\n $node = new Node(['foo' => 'bar'], ['bar' => 'foo']);\n\n $serializedNode = serialize($node);\n $unserializedNode = unserialize($serializedNode);\n\n $this", "middle": "c function testToString()\n {\n $node = new Node([new ConstantNode('foo')]);\n\n $this->assertEquals(<<<'EOF'\n Node(\n ConstantNode(value: 'foo')\n )\n EOF,\n (s", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/NodeTest.php", "language": "php", "file_size": 1860, "cut_index": 537, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\NullCoalescedNameNode;\n\nclass NullCoalescedNameNodeTest extends AbstractNodeTestCase\n{\n public static function getEvaluateData(): array\n {\n return [\n [null, new NullCoalescedNameN", "suffix": " function getCompileData(): array\n {\n return [\n ['$foo ?? null', new NullCoalescedNameNode('foo')],\n ];\n }\n\n public static function getDumpData(): array\n {\n return [\n ['foo ?? null', new NullCoalescedN", "middle": "ode('foo'), []],\n ];\n }\n\n public static", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/NullCoalescedNameNodeTest.php", "language": "php", "file_size": 891, "cut_index": 547, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\nuse Symfony\\Component\\ExpressionLanguage\\SyntaxError;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass BinaryNode extends Node\n{\n private const OPERATORS = [\n '~' => '.',\n 'and' => '&&',\n 'or' => '||',\n ];\n\n private const FUNCTIONS = [\n '**' => 'pow',\n '..' => 'range',\n 'in' => '\\\\in_array'", "suffix": "Node $right)\n {\n parent::__construct(\n ['left' => $left, 'right' => $right],\n ['operator' => $operator]\n );\n }\n\n public function compile(Compiler $compiler): void\n {\n $operator = $this->attributes['ope", "middle": ",\n 'not in' => '!\\\\in_array',\n 'contains' => 'str_contains',\n 'starts with' => 'str_starts_with',\n 'ends with' => 'str_ends_with',\n ];\n\n public function __construct(string $operator, Node $left, ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/BinaryNode.php", "language": "php", "file_size": 6277, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass ConstantNode extends Node\n{\n public function __construct(\n mixed $value,\n private bool $isIdentifier = false,\n publi", "suffix": "->attributes['value']);\n }\n\n public function evaluate(array $functions, array $values): mixed\n {\n return $this->attributes['value'];\n }\n\n public function toArray(): array\n {\n $array = [];\n $value = $this->attributes['", "middle": "c readonly bool $isNullSafe = false,\n ) {\n parent::__construct(\n [],\n ['value' => $value]\n );\n }\n\n public function compile(Compiler $compiler): void\n {\n $compiler->repr($this", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/ConstantNode.php", "language": "php", "file_size": 2037, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass GetAttrNode extends Node\n{\n public const PROPERTY_CALL = 1;\n public const METHOD_CALL = 2;\n public const ARRAY_CALL = 3;\n\n /**\n * @param self::* $type\n * @param bool $isNullSafe Whether the access uses the `?.[]` null-safe operator; only honored for self::ARRAY_CALL.\n ", "suffix": "pe, bool $isNullSafe = false)\n {\n $isNullSafe = self::ARRAY_CALL === $type && $isNullSafe;\n\n parent::__construct(\n ['node' => $node, 'attribute' => $attribute, 'arguments' => $arguments],\n ['type' => $type, 'is_null_c", "middle": " * For self::PROPERTY_CALL and self::METHOD_CALL, null-safety is driven by ConstantNode::$isNullSafe.\n */\n public function __construct(Node $node, Node $attribute, ArrayNode $arguments, int $ty", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/GetAttrNode.php", "language": "php", "file_size": 8038, "cut_index": 716, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass NameNode extends Node\n{\n public function __construct(string $name)\n {\n parent::__construct(\n [],\n ['name' => $name]\n );\n }\n\n public fun", "suffix": " $compiler->raw('$'.$this->attributes['name']);\n }\n\n public function evaluate(array $functions, array $values): mixed\n {\n return $values[$this->attributes['name']];\n }\n\n public function toArray(): array\n {\n return [$this->a", "middle": "ction compile(Compiler $compiler): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/NameNode.php", "language": "php", "file_size": 942, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass NullCoalesceNode extends Node\n{\n public function __construct(Node $expr1, Node $expr2)\n {\n parent::__", "suffix": "(')\n ->compile($this->nodes['expr2'])\n ->raw('))')\n ;\n }\n\n public function evaluate(array $functions, array $values): mixed\n {\n if ($this->nodes['expr1'] instanceof GetAttrNode) {\n $this->addNullCoale", "middle": "construct(['expr1' => $expr1, 'expr2' => $expr2]);\n }\n\n public function compile(Compiler $compiler): void\n {\n $compiler\n ->raw('((')\n ->compile($this->nodes['expr1'])\n ->raw(') ?? ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/NullCoalesceNode.php", "language": "php", "file_size": 1690, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nif ('cli' !== \\PHP_SAPI) {\n throw new Exception('This script must be run from the command line.');\n}\n\n$operators = ['not', '!', 'or', '||', 'xor', '&&', 'and', '|', '^', '&', '==', '===', '!=', '!==', '<', '>', '>=', '<=', 'not in', 'in', '..', '+', '-', '~', '*', '/', '%', 'c", "suffix": "Collisions of character operators:\n // - an operator that begins with a character must have a space or a parenthesis before or starting at the beginning of a string\n // - an operator that ends with a character must be followed by a whitespace or a pa", "middle": "ontains', 'starts with', 'ends with', 'matches', '**', '<<', '>>'];\n$operators = array_combine($operators, array_map('strlen', $operators));\narsort($operators);\n\n$regex = [];\nforeach ($operators as $operator => $length) {\n // ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Resources/bin/generate_operator_regex.php", "language": "php", "file_size": 1228, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\GenericEvent;\n\n/**\n * Test class for Event.\n */\nclass GenericEventTest extends TestCase\n{\n private GenericEvent $event;\n private \\stdClass $subject;\n\n protected function setUp(): void\n {\n $this->subject = new \\stdClass();\n $this", "suffix": " * Tests Event->getArgs().\n */\n public function testGetArguments()\n {\n // test getting all\n $this->assertSame(['name' => 'Event'], $this->event->getArguments());\n }\n\n public function testSetArguments()\n {\n $result ", "middle": "->event = new GenericEvent($this->subject, ['name' => 'Event']);\n }\n\n public function testConstruct()\n {\n $this->assertEquals($this->event, new GenericEvent($this->subject, ['name' => 'Event']));\n }\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php", "language": "php", "file_size": 3197, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher\\Tests\\Debug;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Comp", "suffix": "w WrappedListener($listener, null, new Stopwatch(), new EventDispatcher());\n\n $this->assertStringMatchesFormat($expected, $wrappedListener->getPretty());\n }\n\n public static function provideListenersToDescribe()\n {\n return [\n ", "middle": "onent\\Stopwatch\\StopwatchEvent;\n\nclass WrappedListenerTest extends TestCase\n{\n #[DataProvider('provideListenersToDescribe')]\n public function testListenerDescription($listener, $expected)\n {\n $wrappedListener = ne", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Tests/Debug/WrappedListenerTest.php", "language": "php", "file_size": 3231, "cut_index": 614, "middle_length": 229}} {"prefix": "\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener;\nuse Symfony\\Component\\EventDispatcher\\DependencyInjection\\AddEventAliasesPass;\nuse Symfony\\Component\\EventDispatcher\\DependencyInjection\\RegisterListenersPass;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\EventDispatcher\\Tests\\Fixtures\\CustomEvent;\nuse Symfony\\Component\\EventDispatcher\\Tests\\Fix", "suffix": "UnionTypeListener;\n\nclass RegisterListenersPassTest extends TestCase\n{\n /**\n * Tests that event subscribers not implementing EventSubscriberInterface\n * trigger an exception.\n */\n public function testEventSubscriberWithoutInterface()\n ", "middle": "tures\\DummyEvent;\nuse Symfony\\Component\\EventDispatcher\\Tests\\Fixtures\\TaggedInvokableListener;\nuse Symfony\\Component\\EventDispatcher\\Tests\\Fixtures\\TaggedMultiListener;\nuse Symfony\\Component\\EventDispatcher\\Tests\\Fixtures\\Tagged", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php", "language": "php", "file_size": 26355, "cut_index": 1331, "middle_length": 229}} {"prefix": "ntDispatcher;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Collects some data about event listeners.\n *\n * This event dispatcher delegates the dispatching to another one.\n *\n * @author Fabien Potencier \n */\nclass Tr", "suffix": " array $wrappedListeners = [];\n private array $orphanedEvents = [];\n private array $dispatchDepth = [];\n private array $calledListenerInfos = [];\n private array $calledOriginalListeners = [];\n private string $currentRequestHash = '';\n\n pu", "middle": "aceableEventDispatcher implements EventDispatcherInterface, ResetInterface\n{\n /**\n * @var \\SplObjectStorage|null\n */\n private ?\\SplObjectStorage $callStack = null;\n private", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php", "language": "php", "file_size": 13940, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * This pass allows bundles to extend the list of event aliases, hot-path events, and no-preload events.\n *\n * @author A", "suffix": " $hotPathEvents\n * @param list $noPreloadEvents\n */\n public function __construct(\n private array $eventAliases = [],\n private array $hotPathEvents = [],\n private array $noPreloadEvents = [],\n ) {\n ", "middle": "lexander M. Turek \n * @author Nicolas Grekas \n */\nclass AddEventAliasesPass implements CompilerPassInterface\n{\n /**\n * @param array $eventAliases\n * @param list ", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/DependencyInjection/AddEventAliasesPass.php", "language": "php", "file_size": 2140, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage;\n\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Compiles a node to PHP code.\n *\n * @author Fabien Potencier \n */\nclass Compiler implements ResetInterface\n{\n private string $source = '';\n\n public function __construct(\n private array $func", "suffix": "string\n {\n return $this->source;\n }\n\n /**\n * @return $this\n */\n public function reset(): static\n {\n $this->source = '';\n\n return $this;\n }\n\n /**\n * Compiles a node.\n *\n * @return $this\n */\n ", "middle": "tions,\n ) {\n }\n\n public function getFunction(string $name): array\n {\n return $this->functions[$name];\n }\n\n /**\n * Gets the current PHP code after compilation.\n */\n public function getSource(): ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Compiler.php", "language": "php", "file_size": 2808, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage;\n\n/**\n * Represents a function that can be used in an expression.\n *\n * A function is defined by two PHP callables. The callables are used\n * by the language to compile and/or evaluate the function.\n *\n * The \"compiler\" function is used at compilation time and must return a\n * PHP representation of the function call (it receive", "suffix": "es as a first argument and the function\n * arguments as remaining arguments).\n *\n * @author Fabien Potencier \n */\nclass ExpressionFunction\n{\n private \\Closure $compiler;\n private \\Closure $evaluator;\n\n /**\n * @param string ", "middle": "s the function\n * arguments as arguments).\n *\n * The \"evaluator\" function is used for expression evaluation and must return\n * the value of the function call based on the values defined for the\n * expression (it receives the valu", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/ExpressionFunction.php", "language": "php", "file_size": 3145, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage;\n\n/**\n * Lexes an expression.\n *\n * @author Fabien Potencier \n */\nclass Lexer\n{\n /**\n * Tokenizes an expression.\n *\n * @throws SyntaxError\n */\n public function tokenize(string $expression): TokenStream\n {\n $expression = str_replace([\"\\r\", \"\\n\", \"\\t\", \"\\v\", \"\\f\"], ' ', $express", "suffix": " continue;\n }\n\n if (preg_match('/\n (?(DEFINE)(?P[0-9]+(_[0-9]+)*))\n (?:\\.(?&LNUM)|(?&LNUM)(?:\\.(?!\\.)(?&LNUM)?)?)(?:[eE][+-]?(?&LNUM))?/Ax',\n $expression, $match, 0, $cursor)\n ", "middle": "ion);\n $cursor = 0;\n $tokens = [];\n $brackets = [];\n $end = \\strlen($expression);\n\n while ($cursor < $end) {\n if (' ' == $expression[$cursor]) {\n ++$cursor;\n\n ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Lexer.php", "language": "php", "file_size": 4818, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\Node;\n\n/**\n * Represents an already serialized parsed expression.\n *\n * The serialized form passed to the constructor MUST come from a trusted source:\n * by contract, callers are expected to ", "suffix": " attacker-controlled bytes here at\n * your peril.\n *\n * @author Fabien Potencier \n */\nclass SerializedParsedExpression extends ParsedExpression\n{\n /**\n * @param string $expression An expression\n * @param string $nodes Th", "middle": "serialize their own ParsedExpression\n * instances and to keep the resulting bytes under their control. This class\n * does NOT validate the unserialize() allow-list and will instantiate any\n * class referenced by the payload. Pass", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/SerializedParsedExpression.php", "language": "php", "file_size": 1296, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage;\n\n/**\n * Represents a token.\n *\n * @author Fabien Potencier \n */\nclass Token\n{\n public const EOF_TYPE = 'end of expression';\n public const NAME_TYPE = 'name';\n public const NUMBER_TYPE = 'number';\n public co", "suffix": "ource\n */\n public function __construct(\n public string $type,\n public string|int|float|null $value,\n public ?int $cursor,\n ) {\n }\n\n /**\n * Returns a string representation of the token.\n */\n public function __", "middle": "nst STRING_TYPE = 'string';\n public const OPERATOR_TYPE = 'operator';\n public const PUNCTUATION_TYPE = 'punctuation';\n\n /**\n * @param self::*_TYPE $type\n * @param int|null $cursor The cursor position in the s", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Token.php", "language": "php", "file_size": 1377, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage;\n\n/**\n * Represents a token stream.\n *\n * @author Fabien Potencier \n */\nclass TokenStream\n{\n public Token $current;\n\n private int $position = 0;\n\n public function __construct(\n private array $tokens,\n private string $expression = '',\n ", "suffix": " /**\n * Sets the pointer to the next token and returns the old one.\n */\n public function next(): void\n {\n ++$this->position;\n\n if (!isset($this->tokens[$this->position])) {\n throw new SyntaxError('Unexpected end of ex", "middle": " ) {\n $this->current = $tokens[0];\n }\n\n /**\n * Returns a string representation of the token stream.\n */\n public function __toString(): string\n {\n return implode(\"\\n\", $this->tokens);\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/TokenStream.php", "language": "php", "file_size": 2021, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass ConditionalNode extends Node\n{\n public function __construct(Node $expr1, Node $expr2, Node $expr3)", "suffix": " ->compile($this->nodes['expr1'])\n ->raw(') ? (')\n ->compile($this->nodes['expr2'])\n ->raw(') : (')\n ->compile($this->nodes['expr3'])\n ->raw('))')\n ;\n }\n\n public function evaluate(", "middle": "\n {\n parent::__construct(\n ['expr1' => $expr1, 'expr2' => $expr2, 'expr3' => $expr3]\n );\n }\n\n public function compile(Compiler $compiler): void\n {\n $compiler\n ->raw('((')\n ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/ConditionalNode.php", "language": "php", "file_size": 1444, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * Represents a node in the AST.\n *\n * @author Fabien Potencier \n */\nclass Node\n{\n public array $nodes = [];\n public array $attributes = [];\n\n /**\n * @param array $nodes An arra", "suffix": " }\n\n public function __toString(): string\n {\n $attributes = [];\n foreach ($this->attributes as $name => $value) {\n $attributes[] = \\sprintf('%s: %s', $name, str_replace(\"\\n\", '', var_export($value, true)));\n }\n\n ", "middle": "y of nodes\n * @param array $attributes An array of attributes\n */\n public function __construct(array $nodes = [], array $attributes = [])\n {\n $this->nodes = $nodes;\n $this->attributes = $attributes;\n ", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/Node.php", "language": "php", "file_size": 2789, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass UnaryNode extends Node\n{\n private const OPERATORS = [\n '!' => '!',\n 'not' => '!',\n '+' => ", "suffix": "\n }\n\n public function compile(Compiler $compiler): void\n {\n $compiler\n ->raw('(')\n ->raw(self::OPERATORS[$this->attributes['operator']])\n ->compile($this->nodes['node'])\n ->raw(')')\n ;\n ", "middle": "'+',\n '-' => '-',\n '~' => '~',\n ];\n\n public function __construct(string $operator, Node $node)\n {\n parent::__construct(\n ['node' => $node],\n ['operator' => $operator]\n );", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/UnaryNode.php", "language": "php", "file_size": 1513, "cut_index": 537, "middle_length": 229}} {"prefix": "\n {\n $dispatcher = new EventDispatcher();\n $tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch());\n\n $tdispatcher->addListener('foo', $listener = static function () {});\n $listeners = $dispatcher->getListeners('foo');\n $this->assertCount(1, $listeners);\n $this->assertSame($listener, $listeners[0]);\n\n $tdispatcher->removeListener('foo', $listener);\n $this->assertCount(0, $dispatcher->getListeners('foo'));\n }\n\n public function", "suffix": ");\n $this->assertSame($dispatcher->getListeners('foo'), $tdispatcher->getListeners('foo'));\n }\n\n public function testHasListeners()\n {\n $dispatcher = new EventDispatcher();\n $tdispatcher = new TraceableEventDispatcher($dispatc", "middle": " testGetListeners()\n {\n $dispatcher = new EventDispatcher();\n $tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch());\n\n $tdispatcher->addListener('foo', $listener = static function () {}", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Tests/Debug/TraceableEventDispatcherTest.php", "language": "php", "file_size": 18673, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher\\Debug;\n\nuse Psr\\EventDispatcher\\StoppableEventInterface;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\VarDumper\\Caster\\ClassStub;\n\n/**\n * @author Fabien Potencier \n */\nfinal class WrappedListener\n{\n private string|array|objec", "suffix": "vate ClassStub|string $stub;\n private static bool $hasClassStub;\n\n public function __construct(\n callable|array $listener,\n ?string $name,\n private Stopwatch $stopwatch,\n private ?EventDispatcherInterface $dispatcher = nul", "middle": "t $listener;\n private ?\\Closure $optimizedListener;\n private string $name;\n private bool $called = false;\n private bool $stoppedPropagation = false;\n private string $pretty;\n private string $callableRef;\n pri", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php", "language": "php", "file_size": 4599, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(ParsedExpression::class);\n\n/**\n * Allows to compile and evaluate expressions written in your own DSL.\n *\n * @author Fabien Potencier \n */\nclass ExpressionLanguage\n{\n private CacheItemPoolInterface $cache;\n private Lexer $lexer;\n private Parser", "suffix": "e = null, iterable $providers = [])\n {\n $this->cache = $cache ?? new ArrayAdapter();\n $this->registerFunctions();\n foreach ($providers as $provider) {\n $this->registerProvider($provider);\n }\n }\n\n /**\n * C", "middle": " $parser;\n private Compiler $compiler;\n\n protected array $functions = [];\n\n /**\n * @param iterable $providers\n */\n public function __construct(?CacheItemPoolInterface $cach", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php", "language": "php", "file_size": 5681, "cut_index": 716, "middle_length": 229}} {"prefix": "rivate array $binaryOperators;\n private array $names;\n private int $flags = 0;\n\n public function __construct(\n private array $functions,\n ) {\n $this->unaryOperators = [\n 'not' => ['precedence' => 50],\n '!' => ['precedence' => 50],\n '-' => ['precedence' => 500],\n '+' => ['precedence' => 500],\n '~' => ['precedence' => 500],\n ];\n $this->binaryOperators = [\n 'or' => ['precedence' => 10, 'associativity' => s", "suffix": "associativity' => self::OPERATOR_LEFT],\n '&&' => ['precedence' => 15, 'associativity' => self::OPERATOR_LEFT],\n '|' => ['precedence' => 16, 'associativity' => self::OPERATOR_LEFT],\n '^' => ['precedence' => 17, 'associativit", "middle": "elf::OPERATOR_LEFT],\n '||' => ['precedence' => 10, 'associativity' => self::OPERATOR_LEFT],\n 'xor' => ['precedence' => 12, 'associativity' => self::OPERATOR_LEFT],\n 'and' => ['precedence' => 15, '", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Parser.php", "language": "php", "file_size": 18926, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage;\n\nclass SyntaxError extends \\LogicException\n{\n public function __construct(string $message, int $cursor = 0, string $expression = '', ?string $subject = null, ?array $proposals = null)\n {\n $message = \\sprintf('%s around positi", "suffix": "roposals) {\n $minScore = \\INF;\n foreach ($proposals as $proposal) {\n $distance = levenshtein($subject, $proposal);\n if ($distance < $minScore) {\n $guess = $proposal;\n ", "middle": "on %d', rtrim($message, '.'), $cursor);\n if ($expression) {\n $message = \\sprintf('%s for expression `%s`', $message, $expression);\n }\n $message .= '.';\n\n if (null !== $subject && null !== $p", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/SyntaxError.php", "language": "php", "file_size": 1257, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass ArrayNode extends Node\n{\n protected int $index;\n\n public function __construct()\n {\n $this->index = -1;\n }\n\n public fun", "suffix": "unction compile(Compiler $compiler): void\n {\n $compiler->raw('[');\n $this->compileArguments($compiler);\n $compiler->raw(']');\n }\n\n public function evaluate(array $functions, array $values): array\n {\n $result = [];\n ", "middle": "ction addElement(Node $value, ?Node $key = null): void\n {\n $key ??= new ConstantNode(++$this->index);\n\n array_push($this->nodes, $key, $value);\n }\n\n /**\n * Compiles the node to PHP.\n */\n public f", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/ArrayNode.php", "language": "php", "file_size": 2761, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass FunctionNode extends Node\n{\n public function __construct(string $name, Node $arguments)\n {\n parent::_", "suffix": ">nodes as $node) {\n $arguments[] = $compiler->subcompile($node);\n }\n\n $function = $compiler->getFunction($this->attributes['name']);\n\n $compiler->raw($function['compiler'](...$arguments));\n }\n\n public function evaluate", "middle": "_construct(\n ['arguments' => $arguments],\n ['name' => $name]\n );\n }\n\n public function compile(Compiler $compiler): void\n {\n $arguments = [];\n foreach ($this->nodes['arguments']-", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/FunctionNode.php", "language": "php", "file_size": 1651, "cut_index": 537, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Fabien Potencier \n *\n * @internal\n */\nclass ArgumentsNode extends ArrayNode\n{\n public function compile(Compiler $compiler): void\n {\n ", "suffix": " public function toArray(): array\n {\n $array = [];\n\n foreach ($this->getKeyValuePairs() as $pair) {\n $array[] = $pair['value'];\n $array[] = ', ';\n }\n array_pop($array);\n\n return $array;\n }\n}", "middle": " $this->compileArguments($compiler, false);\n }\n\n", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/ArgumentsNode.php", "language": "php", "file_size": 832, "cut_index": 523, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Compiler;\n\n/**\n * @author Adam Kiss \n *\n * @internal\n */\nclass NullCoalescedNameNode extends Node\n{\n public function __construct(string $name)\n {\n parent::__construct(\n [],\n ['name' => $name]\n );\n }\n\n publ", "suffix": " $compiler->raw('$'.$this->attributes['name'].' ?? null');\n }\n\n public function evaluate(array $functions, array $values): null\n {\n return null;\n }\n\n public function toArray(): array\n {\n return [$this->attributes['nam", "middle": "ic function compile(Compiler $compiler): void\n {\n", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Node/NullCoalescedNameNode.php", "language": "php", "file_size": 939, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\EventDispatcher\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\EventDispatcher\\ImmutableEventDispatcher;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n", "suffix": "face::class);\n $dispatcher = new ImmutableEventDispatcher($innerDispatcher);\n\n $event = new Event();\n $resultEvent = new Event();\n\n $innerDispatcher->expects($this->once())\n ->method('dispatch')\n ->with($ev", "middle": "\n/**\n * @author Bernhard Schussek \n */\nclass ImmutableEventDispatcherTest extends TestCase\n{\n public function testDispatchDelegates()\n {\n $innerDispatcher = $this->createMock(EventDispatcherInter", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php", "language": "php", "file_size": 3303, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\ExpressionLanguage\\Tests\\Node;\n\nuse Symfony\\Component\\ExpressionLanguage\\Node\\ConstantNode;\nuse Symfony\\Component\\ExpressionLanguage\\Node\\UnaryNode;\n\nclass UnaryNodeTest extends AbstractNodeTestCase\n{\n public static function getEvaluateData(): array\n {\n retu", "suffix": "ew ConstantNode(true))],\n [-6, new UnaryNode('~', new ConstantNode(5))],\n ];\n }\n\n public static function getCompileData(): array\n {\n return [\n ['(-1)', new UnaryNode('-', new ConstantNode(1))],\n ['(+3", "middle": "rn [\n [-1, new UnaryNode('-', new ConstantNode(1))],\n [3, new UnaryNode('+', new ConstantNode(3))],\n [false, new UnaryNode('!', new ConstantNode(true))],\n [false, new UnaryNode('not', n", "meta": {"filepath": "src/Symfony/Component/ExpressionLanguage/Tests/Node/UnaryNodeTest.php", "language": "php", "file_size": 1715, "cut_index": 537, "middle_length": 229}} {"prefix": "$baseHref ?: $uri;\n $this->cachedNamespaces = new \\ArrayObject();\n\n $this->add($node);\n }\n\n /**\n * Returns the current URI.\n */\n public function getUri(): ?string\n {\n return $this->uri;\n }\n\n /**\n * Returns base href.\n */\n public function getBaseHref(): ?string\n {\n return $this->baseHref;\n }\n\n /**\n * Removes all the nodes.\n */\n public function clear(): void\n {\n $this->nodes = [];\n $this->document = null;\n ", "suffix": "\n *\n * @param \\DOMNodeList<\\DOMNode>|\\DOMNode|\\DOMNode[]|string|null $node\n */\n public function add(\\DOMNodeList|\\DOMNode|array|string|null $node): void\n {\n if ($node instanceof \\DOMNodeList) {\n $this->addNodeList($node)", "middle": " $this->cachedNamespaces = new \\ArrayObject();\n }\n\n /**\n * Adds a node to the current list of nodes.\n *\n * This method uses the appropriate specialized add*() method based\n * on the type of the argument.", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Crawler.php", "language": "php", "file_size": 38991, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler;\n\nuse Symfony\\Component\\DomCrawler\\Field\\FormField;\n\n/**\n * This is an internal class that must not be used directly.\n *\n * @internal\n */\nclass FormFieldRegistry\n{\n private array $fields = [];\n private string $base = '';\n\n /**\n * Adds a field to the registry.\n */\n public function add(FormField $field): void\n {\n ", "suffix": "shift($segments);\n if ('' === $path) {\n $target = &$target[];\n } else {\n $target = &$target[$path];\n }\n }\n $target = $field;\n }\n\n /**\n * Removes a field based on the ful", "middle": " $segments = $this->getSegments($field->getName());\n\n $target = &$this->fields;\n while ($segments) {\n if (!\\is_array($target)) {\n $target = [];\n }\n $path = array_", "meta": {"filepath": "src/Symfony/Component/DomCrawler/FormFieldRegistry.php", "language": "php", "file_size": 4975, "cut_index": 614, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler;\n\n/**\n * Image represents an HTML image (an HTML img tag).\n */\nclass Image extends AbstractUriElement\n{\n public function __construct(\\DOMElement $node, ?string $currentUri = null)\n {\n parent::__construct($node, $currentUri, 'GET');\n }\n\n protected func", "suffix": ">node->getAttribute('src');\n }\n\n protected function setNode(\\DOMElement $node): void\n {\n if ('img' !== $node->nodeName) {\n throw new \\LogicException(\\sprintf('Unable to visualize a \"%s\" tag.', $node->nodeName));\n }\n\n ", "middle": "tion getRawUri(): string\n {\n return $this-", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Image.php", "language": "php", "file_size": 886, "cut_index": 547, "middle_length": 52}} {"prefix": " or radio inputs.\n *\n * @author Fabien Potencier \n */\nclass ChoiceFormField extends FormField\n{\n private string $type;\n private bool $multiple;\n private array $options;\n private bool $validationDisabled = false;\n\n /**\n * Returns true if the field should be included in the submitted values.\n *\n * @return bool true if the field should be included in the submitted values, false otherwise\n */\n public function hasValue(): bool\n {\n // don't send a va", "suffix": "d option is disabled.\n */\n public function isDisabled(): bool\n {\n if ('checkbox' === $this->type) {\n return parent::isDisabled();\n }\n\n if (parent::isDisabled() && 'select' === $this->type) {\n return true", "middle": "lue for unchecked checkboxes\n if (\\in_array($this->type, ['checkbox', 'radio'], true) && null === $this->value) {\n return false;\n }\n\n return true;\n }\n\n /**\n * Check if the current selecte", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php", "language": "php", "file_size": 9615, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Field;\n\n/**\n * FormField is the abstract class for all form fields.\n *\n * @author Fabien Potencier \n */\nabstract class FormField\n{\n protected string $name;\n protected string|array|null $value = null;\n protected \\DOMDocument $document;\n protected \\DOMXPat", "suffix": "e = $node->getAttribute('name');\n $this->xpath = new \\DOMXPath($node->ownerDocument);\n\n $this->initialize();\n }\n\n /**\n * Returns the label tag associated to the field or null if none.\n */\n public function getLabel(): ?\\DOMEle", "middle": "h $xpath;\n protected bool $disabled = false;\n\n /**\n * @param \\DOMElement $node The node associated with this field\n */\n public function __construct(\n protected \\DOMElement $node,\n ) {\n $this->nam", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Field/FormField.php", "language": "php", "file_size": 2390, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Field;\n\n/**\n * TextareaFormField represents a textarea form field (an HTML textarea tag).\n *\n * @author Fabien Potencier \n */\nclass TextareaFormField extends FormField\n{\n /**\n * Initializes the form field.\n *\n * @throws \\LogicException When node type is incorrect\n *", "suffix": " if ('textarea' !== $this->node->nodeName) {\n throw new \\LogicException(\\sprintf('A TextareaFormField can only be created from a textarea tag (%s given).', $this->node->nodeName));\n }\n\n $this->value = '';\n foreach ($thi", "middle": "/\n protected function initialize(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Field/TextareaFormField.php", "language": "php", "file_size": 986, "cut_index": 582, "middle_length": 52}} {"prefix": "awler->addHtmlContent($this->getDoctype().'
', 'UTF-8');\n }\n\n public function testAddHtmlContent()\n {\n $crawler = $this->createCrawler();\n $crawler->addHtmlContent($this->getDoctype().'
', 'UTF-8');\n\n $this->assertEquals('foo', $crawler->filterXPath('//div')->attr('class'), '->addHtmlContent() adds nodes from an HTML string');\n }\n\n public function testAddHtmlContentWithBaseTag()\n {\n $crawler = $this->crea", "suffix": "Path('//base')->attr('href'), '->addHtmlContent() adds nodes from an HTML string');\n $this->assertEquals('http://symfony.com/contact', $crawler->filterXPath('//a')->link()->getUri(), '->addHtmlContent() adds nodes from an HTML string');\n }\n\n #", "middle": "teCrawler();\n $crawler->addHtmlContent($this->getDoctype().'', 'UTF-8');\n\n $this->assertEquals('http://symfony.com', $crawler->filterX", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php", "language": "php", "file_size": 67861, "cut_index": 3790, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler;\n\n/**\n * Any HTML element that can link to an URI.\n *\n * @author Fabien Potencier \n */\nabstract class AbstractUriElement\n{\n protected \\DOMElement $node;\n protected ?string $method;\n\n /**\n * @param \\DOMElement $node A \\DOMElement instance\n * @param string|null $currentUri The URI of the page wh", "suffix": "on __construct(\n \\DOMElement $node,\n protected ?string $currentUri = null,\n ?string $method = 'GET',\n ) {\n $this->setNode($node);\n $this->method = $method ? strtoupper($method) : null;\n\n $elementUriIsRelative = ", "middle": "ere the link is embedded (or the base href)\n * @param string|null $method The method to use for the link (GET by default)\n *\n * @throws \\InvalidArgumentException if the node is not a link\n */\n public functi", "meta": {"filepath": "src/Symfony/Component/DomCrawler/AbstractUriElement.php", "language": "php", "file_size": 3119, "cut_index": 614, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler;\n\n/**\n * Link represents an HTML link (an HTML a, area or link tag).\n *\n * @author Fabien Potencier \n */\nclass Link extends AbstractUriElement\n{\n protected function getRawUri(): string\n {\n return $this->node->getAttribu", "suffix": "OMElement $node): void\n {\n if ('a' !== $node->nodeName && 'area' !== $node->nodeName && 'link' !== $node->nodeName) {\n throw new \\LogicException(\\sprintf('Unable to navigate from a \"%s\" tag.', $node->nodeName));\n }\n\n $thi", "middle": "te('href');\n }\n\n protected function setNode(\\D", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Link.php", "language": "php", "file_size": 862, "cut_index": 529, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Field;\n\n/**\n * FileFormField represents a file form field (an HTML file input tag).\n *\n * @author Fabien Potencier \n */\nclass FileFormField extends FormField\n{\n /**\n * Sets the PHP error code associated with the field.\n *\n * @param int $error The error code (one of UPLOAD_ERR_INI_SIZE, UPLOAD_ERR_FORM", "suffix": "rorCode(int $error): void\n {\n if (!\\in_array($error, [\\UPLOAD_ERR_INI_SIZE, \\UPLOAD_ERR_FORM_SIZE, \\UPLOAD_ERR_PARTIAL, \\UPLOAD_ERR_NO_FILE, \\UPLOAD_ERR_NO_TMP_DIR, \\UPLOAD_ERR_CANT_WRITE, \\UPLOAD_ERR_EXTENSION], true)) {\n throw new \\I", "middle": "_SIZE, UPLOAD_ERR_PARTIAL, UPLOAD_ERR_NO_FILE, UPLOAD_ERR_NO_TMP_DIR, UPLOAD_ERR_CANT_WRITE, or UPLOAD_ERR_EXTENSION)\n *\n * @throws \\InvalidArgumentException When error code doesn't exist\n */\n public function setEr", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Field/FileFormField.php", "language": "php", "file_size": 3257, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Field;\n\n/**\n * InputFormField represents an input form field (an HTML input tag).\n *\n * For inputs with type of file, checkbox, or radio, there are other more\n * specialized classes (cf. FileFormField and ChoiceFormField).\n *\n * @author Fabien Pot", "suffix": "id\n {\n if ('input' !== $this->node->nodeName && 'button' !== $this->node->nodeName) {\n throw new \\LogicException(\\sprintf('An InputFormField can only be created from an input or button tag (%s given).', $this->node->nodeName));\n ", "middle": "encier \n */\nclass InputFormField extends FormField\n{\n /**\n * Initializes the form field.\n *\n * @throws \\LogicException When node type is incorrect\n */\n protected function initialize(): vo", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Field/InputFormField.php", "language": "php", "file_size": 1418, "cut_index": 524, "middle_length": 229}} {"prefix": "cyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * Compiler pass to register tagged services for an event dispatcher.\n */\nclass RegisterListenersPass implem", "suffix": "ublic function setHotPathEvents(array $hotPathEvents): static\n {\n trigger_deprecation('symfony/event-dispatcher', '8.1', 'The \"%s()\" method is deprecated, register an \"%s\" compiler pass with the hot-path events instead.', __METHOD__, AddEventAlia", "middle": "ents CompilerPassInterface\n{\n private array $hotPathEvents = [];\n private array $noPreloadEvents = [];\n\n /**\n * @return $this\n *\n * @deprecated since Symfony 8.1, use AddEventAliasesPass instead\n */\n p", "meta": {"filepath": "src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php", "language": "php", "file_size": 10321, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler;\n\n/**\n * The UriResolver class takes an URI (relative, absolute, fragment, etc.)\n * and turns it into an absolute URI against another given base URI.\n *\n * @author Fabien Potencier \n * @author Grégoire Pineau \n */\nclass UriResolver\n{\n /**\n * Resolves a URI according to a base URI.\n *\n ", "suffix": " resolve(string $uri, ?string $baseUri): string\n {\n $uri = trim($uri);\n\n // absolute URL?\n if (null !== parse_url(\\strlen($uri) !== strcspn($uri, '?#') ? $uri : $uri.'#', \\PHP_URL_SCHEME)) {\n return $uri;\n }\n\n ", "middle": " * For example if $uri=/foo/bar and $baseUri=https://symfony.com it will\n * return https://symfony.com/foo/bar\n *\n * If the $uri is not absolute you must pass an absolute $baseUri\n */\n public static function", "meta": {"filepath": "src/Symfony/Component/DomCrawler/UriResolver.php", "language": "php", "file_size": 3674, "cut_index": 614, "middle_length": 229}} {"prefix": "try {\n new Form($nodes->item(1), 'http://example.com');\n $this->fail('__construct() throws a \\\\LogicException if the input type is not submit, button, or image');\n } catch (\\LogicException $e) {\n $this->assertTrue(true, '__construct() throws a \\\\LogicException if the input type is not submit, button, or image');\n }\n\n $nodes = $dom->getElementsByTagName('button');\n\n try {\n new Form($nodes->item(0), 'http://example.com');\n $thi", "suffix": "stor');\n }\n }\n\n /**\n * __construct() should throw a \\LogicException if the form attribute is invalid.\n */\n #[DataProvider('constructorThrowsExceptionIfNoRelatedFormProvider')]\n public function testConstructorThrowsExceptionIfNoRe", "middle": "s->fail('__construct() throws a \\\\LogicException if the node has no form ancestor');\n } catch (\\LogicException $e) {\n $this->assertTrue(true, '__construct() throws a \\\\LogicException if the node has no form ance", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/FormTest.php", "language": "php", "file_size": 46469, "cut_index": 2151, "middle_length": 229}} {"prefix": "an HTML form.\n *\n * @author Fabien Potencier \n */\nclass Form extends Link implements \\ArrayAccess\n{\n private \\DOMElement $button;\n private FormFieldRegistry $fields;\n\n /**\n * @param \\DOMElement $node A \\DOMElement instance\n * @param string|null $currentUri The URI of the page where the form is embedded\n * @param string|null $method The method to use for the link (if null, it defaults to the method defined by the form)\n * @param string|null $baseHref T", "suffix": " ?string $currentUri = null,\n ?string $method = null,\n private ?string $baseHref = null,\n ) {\n parent::__construct($node, $currentUri, $method);\n\n $this->initialize();\n }\n\n /**\n * Gets the form node associated with", "middle": "he URI of the used for relative links, but not for empty action\n *\n * @throws \\LogicException if the node is not a button inside a form tag\n */\n public function __construct(\n \\DOMElement $node,\n ", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Form.php", "language": "php", "file_size": 15254, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\DomCrawler\\Crawler;\n\nfinal class CrawlerSelectorTextSame extends Constraint\n{\n public function __construct(\n private string $selector,\n pri", "suffix": "aram Crawler $crawler\n */\n protected function matches($crawler): bool\n {\n $crawler = $crawler->filter($this->selector);\n if (!\\count($crawler)) {\n return false;\n }\n\n return $this->expectedText === trim($craw", "middle": "vate string $expectedText,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('has a node matching selector \"%s\" with content \"%s\"', $this->selector, $this->expectedText);\n }\n\n /**\n * @p", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerSelectorTextSame.php", "language": "php", "file_size": 1204, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Exception;\n\n/**\n * Exception class for when a resource cannot be loaded or imported.\n *\n * @author Ryan Weaver \n */\nclass LoaderLoadException extends \\Exception\n{\n /**\n * @param mixed $resource The resource that could not be imported\n * @param string|null $sourceResource The original re", "suffix": " */\n public function __construct(mixed $resource, ?string $sourceResource = null, int $code = 0, ?\\Throwable $previous = null, ?string $type = null)\n {\n if (!\\is_string($resource)) {\n try {\n $resource = json_encod", "middle": "source importing the new resource\n * @param int $code The error code\n * @param \\Throwable|null $previous A previous exception\n * @param string|null $type The type of resource\n", "meta": {"filepath": "src/Symfony/Component/Config/Exception/LoaderLoadException.php", "language": "php", "file_size": 4031, "cut_index": 614, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * XMLUtils is a bunch of utility methods to XML operations.\n *\n * This class contains static methods only and is not meant to be instantiated.\n *\n * @author Fabien Potencier \n * @author Martin Hasoň \n * @author Ole Rößner \n */\nclass XmlUtils\n{\n /**\n * This class should not be instantiated.\n */\n private function __construct()\n {\n }\n\n /**\n * Parses an XML string.\n *\n ", "suffix": "hen parsing of XML file returns error\n * @throws InvalidXmlException When parsing of XML with schema or callable produces any errors unrelated to the XML parsing itself\n * @throws \\RuntimeException When DOM extension is missing\n */\n public", "middle": " * @param string $content An XML string\n * @param string|callable|null $schemaOrCallable An XSD schema file path, a callable, or null to disable validation\n *\n * @throws XmlParsingException W", "meta": {"filepath": "src/Symfony/Component/Config/Util/XmlUtils.php", "language": "php", "file_size": 9436, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\n/**\n * ClassExistenceResource represents a class existence.\n * Freshness is only evaluated against resource existence.\n *\n * The resource must be a fully-qualified class name.\n *\n * @author Fabien Potencier \n *\n * @final\n */\nclass ClassExistenceResource implements SelfCheckingResourceInterface\n{\n private ?array $exists = null;\n\n private static int $autoloadLevel = 0;\n private static ?string $autoload", "suffix": "/\n public function __construct(\n private string $resource,\n ?bool $exists = null,\n ) {\n if (null !== $exists) {\n $this->exists = [$exists, null];\n }\n }\n\n public function __toString(): string\n {\n ", "middle": "edClass = null;\n private static array $existsCache = [];\n\n /**\n * @param string $resource The fully-qualified class name\n * @param bool|null $exists Boolean when the existence check has already been done\n *", "meta": {"filepath": "src/Symfony/Component/Config/Resource/ClassExistenceResource.php", "language": "php", "file_size": 7058, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\n/**\n * ComposerResource tracks the PHP version and Composer dependencies.\n *\n * @author Nicolas Grekas \n *\n * @final\n */\nclass ComposerResource implements SelfCheckingResourceInterface\n{\n private array $vendors;\n\n private static arr", "suffix": "\n }\n\n public function __toString(): string\n {\n return __CLASS__;\n }\n\n public function isFresh(int $timestamp): bool\n {\n self::refresh();\n\n return array_values(self::$runtimeVendors) === array_values($this->vendors);\n ", "middle": "ay $runtimeVendors;\n\n public function __construct()\n {\n self::refresh();\n $this->vendors = self::$runtimeVendors;\n }\n\n public function getVendors(): array\n {\n return array_keys($this->vendors);", "meta": {"filepath": "src/Symfony/Component/Config/Resource/ComposerResource.php", "language": "php", "file_size": 1688, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\n/**\n * DirectoryResource represents a resources stored in a subdirectory tree.\n *\n * @author Fabien Potencier \n *\n * @final\n */\nclass DirectoryResource implements SelfCheckingResourceInterface\n{\n private string $resource;\n\n /**\n * @param string ", "suffix": "\n private ?string $pattern = null,\n ) {\n $resolvedResource = realpath($resource) ?: (file_exists($resource) ? $resource : false);\n\n if (false === $resolvedResource || !is_dir($resolvedResource)) {\n throw new \\InvalidArgum", "middle": " $resource The file path to the resource\n * @param string|null $pattern A pattern to restrict monitored files\n *\n * @throws \\InvalidArgumentException\n */\n public function __construct(\n string $resource,", "meta": {"filepath": "src/Symfony/Component/Config/Resource/DirectoryResource.php", "language": "php", "file_size": 2876, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\n/**\n * FileExistenceResource represents a resource stored on the filesystem.\n * Freshness is only evaluated against resource creation or deletion.\n *\n * The resource can be a file or a directory.\n *\n * @author Charles-Henri Bruyand exists = file_exists($resource);\n }\n\n public function __toString(): string\n {\n return 'existence.'.$this->resource;\n }\n\n public function getResource(): stri", "middle": "henri.bruyand@gmail.com>\n *\n * @final\n */\nclass FileExistenceResource implements SelfCheckingResourceInterface\n{\n private bool $exists;\n\n /**\n * @param string $resource The file path to the resource\n */\n public f", "meta": {"filepath": "src/Symfony/Component/Config/Resource/FileExistenceResource.php", "language": "php", "file_size": 1348, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\n/**\n * FileResource represents a resource stored on the filesystem.\n *\n * The resource can be a file or a directory.\n *\n * @author Fabien Potencier \n *\n * @final\n */\nclass FileResource implements SelfCheckingResourceInterface\n{\n p", "suffix": "rce = realpath($resource) ?: (file_exists($resource) ? $resource : false);\n\n if (false === $resolvedResource) {\n throw new \\InvalidArgumentException(\\sprintf('The file \"%s\" does not exist.', $resource));\n }\n\n $this->resource", "middle": "rivate string $resource;\n\n /**\n * @param string $resource The file path to the resource\n *\n * @throws \\InvalidArgumentException\n */\n public function __construct(string $resource)\n {\n $resolvedResou", "meta": {"filepath": "src/Symfony/Component/Config/Resource/FileResource.php", "language": "php", "file_size": 1591, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Finder\\Glob;\n\n/**\n * GlobResource represents a set of resources stored on the filesystem.\n *\n * Only existence/removal is tracked (not mtimes.)\n *\n * @author Nicolas Grekas \n *\n * @final\n *\n * @implements \\IteratorAggregate\n */\nclass GlobResource implements \\IteratorAggregate, SelfCheckingResourceInterface\n{\n private string $prefix", "suffix": "ve Whether directories should be scanned recursively or not\n *\n * @throws \\InvalidArgumentException\n */\n public function __construct(\n string $prefix,\n private string $pattern,\n private bool $recursive,\n private b", "middle": ";\n private string $hash;\n private array $excludedPrefixes;\n private int $globBrace;\n\n /**\n * @param string $prefix A directory prefix\n * @param string $pattern A glob pattern\n * @param bool $recursi", "meta": {"filepath": "src/Symfony/Component/Config/Resource/GlobResource.php", "language": "php", "file_size": 9049, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\FormTypeExtensionInterface;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\n/**\n * @author Nicolas Grekas \n *\n * @final\n */\nclass ReflectionClassResource implements SelfCheckingResourceInterface\n{\n private array $files = [];\n private string $className;\n private array $excludedVendors = [];\n private str", "suffix": "dedVendors;\n }\n\n public function isFresh(int $timestamp): bool\n {\n if (!isset($this->hash)) {\n $this->hash = $this->computeHash();\n $this->loadFiles($this->classReflector);\n }\n\n foreach ($this->files as $", "middle": "ing $hash;\n\n public function __construct(\n private \\ReflectionClass $classReflector,\n array $excludedVendors = [],\n ) {\n $this->className = $classReflector->name;\n $this->excludedVendors = $exclu", "meta": {"filepath": "src/Symfony/Component/Config/Resource/ReflectionClassResource.php", "language": "php", "file_size": 7410, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\n/**\n * ResourceInterface is the interface that must be implemented by all Resource classes.\n *\n * @author Fabien Potencier \n */\ninterface ResourceInterface extends \\Stringable\n{\n /**\n * Returns a string representation of the Resource.\n *\n * This method is necessa", "suffix": " by means\n * of array_unique(). The string returned need not have a particular meaning, but has\n * to be identical for different ResourceInterface instances referring to the same\n * resource; and it should be unlikely to collide with that of ot", "middle": "ry to allow for resource de-duplication, for example", "meta": {"filepath": "src/Symfony/Component/Config/Resource/ResourceInterface.php", "language": "php", "file_size": 984, "cut_index": 582, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\nuse Symfony\\Component\\Config\\ResourceCheckerInterface;\n\n/**\n * Resource checker for instances of SelfCheckingResourceInterface.\n *\n * As these resources perform the actual check themselves, we can provide\n * this class as a standard way of ", "suffix": "tions. For example, when using the full stack framework, the router\n // and the container have their own cache. But they may check the very same\n // resources\n private static array $cache = [];\n\n public function supports(ResourceInterface $meta", "middle": "validating them.\n *\n * @author Matthias Pigulla \n */\nclass SelfCheckingResourceChecker implements ResourceCheckerInterface\n{\n // Common shared cache, because this checker can be used in different\n // situa", "meta": {"filepath": "src/Symfony/Component/Config/Resource/SelfCheckingResourceChecker.php", "language": "php", "file_size": 1374, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Resource;\n\nuse Symfony\\Component\\Config\\ResourceCheckerInterface;\n\nclass SkippingResourceChecker implements ResourceCheckerInterface\n{\n private array $skippedResourceTypes;\n\n /**\n * @param class-string[] $skippedReso", "suffix": "bool\n {\n return !$this->skippedResourceTypes || isset($this->skippedResourceTypes[$metadata::class]);\n }\n\n public function isFresh(ResourceInterface $resource, int $timestamp): bool\n {\n return true;\n }\n\n public function __se", "middle": "urceTypes\n */\n public function __construct(array $skippedResourceTypes = [])\n {\n $this->skippedResourceTypes = array_flip($skippedResourceTypes);\n }\n\n public function supports(ResourceInterface $metadata): ", "meta": {"filepath": "src/Symfony/Component/Config/Resource/SkippingResourceChecker.php", "language": "php", "file_size": 1129, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Loader;\n\nuse Symfony\\Component\\Config\\Exception\\LoaderLoadException;\n\n/**\n * DelegatingLoader delegates loading to other loaders using a loader resolver.\n *\n * This loader acts as an array of LoaderInterface objects - each having\n * a chance to ", "suffix": "s->resolver = $resolver;\n }\n\n public function load(mixed $resource, ?string $type = null): mixed\n {\n if (false === $loader = $this->resolver->resolve($resource, $type)) {\n throw new LoaderLoadException($resource, null, 0, null, $", "middle": "load a given resource (handled by the resolver)\n *\n * @author Fabien Potencier \n */\nclass DelegatingLoader extends Loader\n{\n public function __construct(LoaderResolverInterface $resolver)\n {\n $thi", "meta": {"filepath": "src/Symfony/Component/Config/Loader/DelegatingLoader.php", "language": "php", "file_size": 1233, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Loader;\n\nuse Symfony\\Component\\Config\\Exception\\FileLoaderImportCircularReferenceException;\nuse Symfony\\Component\\Config\\Exception\\FileLocatorFileNotFoundException;\nuse Symfony\\Component\\Config\\Exception\\LoaderLoadException;\nuse Symfony\\Component\\Config\\FileLocatorInterface;\nuse Symfony\\Component\\Config\\Resource\\FileExistenceResource;\nuse Symfony\\Component\\Config\\Resource\\GlobResource;\n\n/**\n * FileLoader is the abstract class used by all b", "suffix": "c function __construct(\n protected FileLocatorInterface $locator,\n ?string $env = null,\n ) {\n parent::__construct($env);\n }\n\n /**\n * Sets the current directory.\n */\n public function setCurrentDir(string $dir): void\n", "middle": "uilt-in loaders that are file based.\n *\n * @author Fabien Potencier \n */\nabstract class FileLoader extends Loader\n{\n protected static array $loading = [];\n\n private ?string $currentDir = null;\n\n publi", "meta": {"filepath": "src/Symfony/Component/Config/Loader/FileLoader.php", "language": "php", "file_size": 6930, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Loader;\n\nuse Symfony\\Component\\Config\\Exception\\LoaderLoadException;\nuse Symfony\\Component\\Config\\Exception\\LogicException;\n\n/**\n * Loader is the abstract class used by all built-in loaders.\n *\n * @author Fabien Potencier \n */\nabstract class Lo", "suffix": "nterface\n {\n if (null === $this->resolver) {\n throw new LogicException('Cannot get a resolver if none was set.');\n }\n\n return $this->resolver;\n }\n\n public function setResolver(LoaderResolverInterface $resolver): voi", "middle": "ader implements LoaderInterface\n{\n protected ?LoaderResolverInterface $resolver = null;\n\n public function __construct(\n protected ?string $env = null,\n ) {\n }\n\n public function getResolver(): LoaderResolverI", "meta": {"filepath": "src/Symfony/Component/Config/Loader/Loader.php", "language": "php", "file_size": 1839, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Loader;\n\n/**\n * LoaderInterface is the interface implemented by all loader classes.\n *\n * @author Fabien Potencier \n */\ninterface LoaderInterface\n{\n /**\n * Loads a resource.\n *\n * @throws \\Exception If som", "suffix": " public function supports(mixed $resource, ?string $type = null): bool;\n\n /**\n * Gets the loader resolver.\n */\n public function getResolver(): LoaderResolverInterface;\n\n /**\n * Sets the loader resolver.\n */\n public function setR", "middle": "ething went wrong\n */\n public function load(mixed $resource, ?string $type = null): mixed;\n\n /**\n * Returns whether this class supports the given resource.\n *\n * @param mixed $resource A resource\n */\n ", "meta": {"filepath": "src/Symfony/Component/Config/Loader/LoaderInterface.php", "language": "php", "file_size": 1050, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Loader;\n\n/**\n * LoaderResolver selects a loader for a given resource.\n *\n * A resource can be anything (e.g. a full path to a config file or a Closure).\n * Each loader determines whether it can load a resource and how.\n *\n * @author Fabien Potencier addLoader($loader);\n }\n }\n\n public function resolve(mixed $resource, ?string $type = null): ", "middle": "y.com>\n */\nclass LoaderResolver implements LoaderResolverInterface\n{\n /**\n * @var LoaderInterface[] An array of LoaderInterface objects\n */\n private array $loaders = [];\n\n /**\n * @param LoaderInterface[] $loa", "meta": {"filepath": "src/Symfony/Component/Config/Loader/LoaderResolver.php", "language": "php", "file_size": 1564, "cut_index": 537, "middle_length": 229}} {"prefix": "ception\\InvalidTypeException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\UnsetKeyException;\n\n/**\n * Represents an Array node in the config tree.\n *\n * @author Johannes M. Schmitt \n */\nclass ArrayNode extends BaseNode implements PrototypeNodeInterface\n{\n protected array $xmlRemappings = [];\n protected array $children = [];\n protected bool $allowFalse = false;\n protected bool $allowNewKeys = true;\n protected bool $addIfNotSet = false;\n protected bool $performDeep", "suffix": "is->normalizeKeys = $normalizeKeys;\n }\n\n /**\n * Namely, you mostly have foo_bar in YAML while you have foo-bar in XML.\n * After running this method, all keys are normalized to foo_bar.\n *\n * If you have a mixed key like foo-bar_moo, i", "middle": "Merging = true;\n protected bool $ignoreExtraKeys = false;\n protected bool $removeExtraKeys = true;\n protected bool $normalizeKeys = true;\n\n public function setNormalizeKeys(bool $normalizeKeys): void\n {\n $th", "meta": {"filepath": "src/Symfony/Component/Config/Definition/ArrayNode.php", "language": "php", "file_size": 12491, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\ExprBuilder;\nuse Symfony\\Component\\Config\\Loader\\ParamConfigurator;\n\n/**\n * @author Alexandre Daubois \n */\nfinal class ArrayShapeGenerator\n{\n public static function generate(NodeInterface $node): string\n {\n return str_replace(\"\\n\", \"\\n * \", self::doGeneratePhpDoc($node));\n }\n\n private static function doGeneratePhpDoc(NodeInterface $node,", "suffix": "() ? 'bool|null' : 'bool',\n $node instanceof StringNode => 'string',\n $node instanceof NumericNode => self::handleNumericNode($node),\n $node instanceof EnumNode => $node->getPermissibleValues('|', false),\n ", "middle": " int $nestingLevel = 1): string\n {\n if (!$node instanceof ArrayNode) {\n $typeString = match (true) {\n $node instanceof BooleanNode => $node->hasDefaultValue() && null === $node->getDefaultValue", "meta": {"filepath": "src/Symfony/Component/Config/Definition/ArrayShapeGenerator.php", "language": "php", "file_size": 5328, "cut_index": 716, "middle_length": 229}} {"prefix": "se Symfony\\Component\\Config\\Definition\\Exception\\ForbiddenOverwriteException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\UnsetKeyException;\nuse Symfony\\Component\\Config\\Exception\\LogicException;\n\n/**\n * The base node class.\n *\n * @author Johannes M. Schmitt \n */\nabstract class BaseNode implements NodeInterface\n{\n public const", "suffix": "ray $normalizedTypes = [];\n protected array $finalValidationClosures = [];\n protected bool $allowOverwrite = true;\n protected bool $required = false;\n protected array $deprecation = [];\n protected array $equivalentValues = [];\n protected ", "middle": " DEFAULT_PATH_SEPARATOR = '.';\n\n private static array $placeholderUniquePrefixes = [];\n private static array $placeholders = [];\n\n protected string $name;\n protected array $normalizationClosures = [];\n protected ar", "meta": {"filepath": "src/Symfony/Component/Config/Definition/BaseNode.php", "language": "php", "file_size": 16041, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\n\n/**\n * This node represents a Boolean value in the config tree.\n *\n * @author Johannes M. Schmitt \n */\nclass BooleanNode extends ScalarNode\n{\n public fun", "suffix": "rent, $pathSeparator);\n }\n\n protected function validateType(mixed $value): void\n {\n if (!\\is_bool($value)) {\n if (null === $value && $this->nullable) {\n return;\n }\n\n $ex = new InvalidTypeExcep", "middle": "ction __construct(\n ?string $name,\n ?NodeInterface $parent = null,\n string $pathSeparator = self::DEFAULT_PATH_SEPARATOR,\n private bool $nullable = false,\n ) {\n parent::__construct($name, $pa", "meta": {"filepath": "src/Symfony/Component/Config/Definition/BooleanNode.php", "language": "php", "file_size": 1591, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Configurator\\DefinitionConfigurator;\nuse Symfony\\Component\\Config\\Definition\\Loader\\DefinitionFileLoader;\nuse Symfony\\Component\\Config\\Fi", "suffix": "\n private ConfigurableInterface $subject,\n private ?ContainerBuilder $container,\n private string $alias,\n ) {\n }\n\n /**\n * @return TreeBuilder<'array'>\n */\n public function getConfigTreeBuilder(): TreeBuilder\n {\n ", "middle": "leLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author Yonel Ceruto \n *\n * @final\n */\nclass Configuration implements ConfigurationInterface\n{\n public function __construct(", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Configuration.php", "language": "php", "file_size": 1431, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\n\n/**\n * Node which only allows a finite set of values.\n *\n * @author Johannes M. Schmitt \n */\nclass EnumNode extends ScalarNode\n{\n private array $values;\n private ?string $enumFqcn = null;\n\n /**\n * @param class-string<\\UnitEnum>|null $enumFqcn\n */\n public function __construct(?string $name, ?NodeInterface ", "suffix": "tain at least one element.');\n }\n\n if ($values && $enumFqcn) {\n throw new \\InvalidArgumentException('$values or $enumFqcn cannot be both set.');\n }\n\n if (null !== $enumFqcn) {\n if (!enum_exists($enumFqcn)) ", "middle": "$parent = null, array $values = [], string $pathSeparator = BaseNode::DEFAULT_PATH_SEPARATOR, ?string $enumFqcn = null)\n {\n if (!$values && !$enumFqcn) {\n throw new \\InvalidArgumentException('$values must con", "meta": {"filepath": "src/Symfony/Component/Config/Definition/EnumNode.php", "language": "php", "file_size": 5717, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\n\n/**\n * This node represents a float value in the config tree.\n *\n * @author Jeanmonod David \n */\nclass FloatNode extends NumericNode", "suffix": "e)) {\n $ex = new InvalidTypeException(\\sprintf('Invalid type for path \"%s\". Expected \"float\", but got \"%s\".', $this->getPath(), get_debug_type($value)));\n if ($hint = $this->getInfo()) {\n $ex->addHint($hint);\n ", "middle": "\n{\n protected function validateType(mixed $value): void\n {\n // Integers are also accepted, we just cast them\n if (\\is_int($value)) {\n $value = (float) $value;\n }\n\n if (!\\is_float($valu", "meta": {"filepath": "src/Symfony/Component/Config/Definition/FloatNode.php", "language": "php", "file_size": 1189, "cut_index": 518, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\n\n/**\n * This node represents an integer value in the config tree.\n *\n * @author Jeanmonod David \n */\nclass IntegerNode extends N", "suffix": "tPath(), get_debug_type($value)));\n if ($hint = $this->getInfo()) {\n $ex->addHint($hint);\n }\n $ex->setPath($this->getPath());\n\n throw $ex;\n }\n }\n\n protected function getValidPlaceholde", "middle": "umericNode\n{\n protected function validateType(mixed $value): void\n {\n if (!\\is_int($value)) {\n $ex = new InvalidTypeException(\\sprintf('Invalid type for path \"%s\". Expected \"int\", but got \"%s\".', $this->ge", "meta": {"filepath": "src/Symfony/Component/Config/Definition/IntegerNode.php", "language": "php", "file_size": 1052, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\ForbiddenOverwriteException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\n\n/**\n * Common Interface among all nodes.\n *\n", "suffix": " the node.\n */\n public function getName(): string;\n\n /**\n * Returns the path of the node.\n */\n public function getPath(): string;\n\n /**\n * Returns true when the node is required.\n */\n public function isRequired(): bool;\n\n", "middle": " * In most cases, it is better to inherit from BaseNode instead of implementing\n * this interface yourself.\n *\n * @author Johannes M. Schmitt \n */\ninterface NodeInterface\n{\n /**\n * Returns the name of", "meta": {"filepath": "src/Symfony/Component/Config/Definition/NodeInterface.php", "language": "php", "file_size": 2065, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\n\n/**\n * This node represents a numeric value in the config tree.\n *\n * @author David Jeanmonod \n */\nclass NumericNode extends ScalarNode\n{\n public function __construc", "suffix": "{\n parent::__construct($name, $parent, $pathSeparator);\n }\n\n protected function finalizeValue(mixed $value): mixed\n {\n $value = parent::finalizeValue($value);\n\n if ($this->isHandlingPlaceholder()) {\n return $value;\n", "middle": "t(\n ?string $name,\n ?NodeInterface $parent = null,\n protected int|float|null $min = null,\n protected int|float|null $max = null,\n string $pathSeparator = BaseNode::DEFAULT_PATH_SEPARATOR,\n ) ", "meta": {"filepath": "src/Symfony/Component/Config/Definition/NumericNode.php", "language": "php", "file_size": 2029, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\n/**\n * This class is the entry point for config normalization/merging/finalization.\n *\n * @author Johannes M. Schmitt \n *\n * @final\n */\nclass Processor\n{\n /**\n * Processes an array of configurations.\n *\n * @param array $configs An array of ", "suffix": "rmalize($config);\n $currentConfig = $configTree->merge($currentConfig, $config);\n }\n\n return $configTree->finalize($currentConfig);\n }\n\n /**\n * Processes an array of configurations.\n *\n * @param array $configs An ", "middle": "configuration items to process\n */\n public function process(NodeInterface $configTree, array $configs): array\n {\n $currentConfig = [];\n foreach ($configs as $config) {\n $config = $configTree->no", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Processor.php", "language": "php", "file_size": 2533, "cut_index": 563, "middle_length": 229}} {"prefix": "Exception;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\UnsetKeyException;\n\n/**\n * Represents a prototyped Array node in the config tree.\n *\n * @author Johannes M. Schmitt \n */\nclass PrototypedArrayNode extends ArrayNode\n{\n protected PrototypeNodeInterface $prototype;\n protected ?string $keyAttribute = null;\n protected bool $removeKeyAttribute = false;\n protected int $minNumberOfElements =", "suffix": " = [];\n private bool $defaultToNull = false;\n\n /**\n * Sets the minimum number of elements that a prototype based node must\n * contain. By default this is zero, meaning no elements.\n */\n public function setMinNumberOfElements(int $numbe", "middle": " 0;\n protected array $defaultValue = [];\n protected ?array $defaultChildren = null;\n\n /**\n * @var NodeInterface[] An array of the prototypes of the simplified value children\n */\n private array $valuePrototypes", "meta": {"filepath": "src/Symfony/Component/Config/Definition/PrototypedArrayNode.php", "language": "php", "file_size": 12026, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\n\n/**\n * This node represents a scalar value in the config tree.\n *\n * The following values are considered scalars:\n * * booleans\n * * strings\n * * null\n * * integers\n * ", "suffix": " $ex = new InvalidTypeException(\\sprintf('Invalid type for path \"%s\". Expected \"scalar\", but got \"%s\".', $this->getPath(), get_debug_type($value)));\n if ($hint = $this->getInfo()) {\n $ex->addHint($hint);\n }\n ", "middle": "* floats\n *\n * @author Johannes M. Schmitt \n */\nclass ScalarNode extends VariableNode\n{\n protected function validateType(mixed $value): void\n {\n if (!\\is_scalar($value) && null !== $value) {\n ", "meta": {"filepath": "src/Symfony/Component/Config/Definition/ScalarNode.php", "language": "php", "file_size": 1603, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\n\n/**\n * This node represents a String value in the config tree.\n *\n * @author Raffaele Carelle \n */\nclass StringNode extends Sc", "suffix": "->getPath(), get_debug_type($value)));\n if ($hint = $this->getInfo()) {\n $ex->addHint($hint);\n }\n $ex->setPath($this->getPath());\n\n throw $ex;\n }\n }\n\n protected function getValidPlaceh", "middle": "alarNode\n{\n protected function validateType(mixed $value): void\n {\n if (!\\is_string($value)) {\n $ex = new InvalidTypeException(\\sprintf('Invalid type for path \"%s\". Expected \"string\", but got \"%s\".', $this", "meta": {"filepath": "src/Symfony/Component/Config/Definition/StringNode.php", "language": "php", "file_size": 1059, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\n\n/**\n * This node represents a value of variable type in the config tree.\n *\n * This node is intended for values of arbitrary type.\n * Any PHP type is accepted as a value.\n *\n * @author Jeremy Mikola \n */\nclass VariableNode exte", "suffix": "): void\n {\n $this->defaultValueSet = true;\n $this->defaultValue = $value;\n }\n\n public function hasDefaultValue(): bool\n {\n return $this->defaultValueSet;\n }\n\n public function getDefaultValue(): mixed\n {\n $v ", "middle": "nds BaseNode implements PrototypeNodeInterface\n{\n protected bool $defaultValueSet = false;\n protected mixed $defaultValue = null;\n protected bool $allowEmptyValue = true;\n\n public function setDefaultValue(mixed $value", "meta": {"filepath": "src/Symfony/Component/Config/Definition/VariableNode.php", "language": "php", "file_size": 3352, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config;\n\n/**\n * Basic implementation of ConfigCacheFactoryInterface that\n * creates an instance of the default ConfigCache.\n *\n * This factory and/or cache do not support cache validation\n * by means of ResourceChecker instances (that is, serv", "suffix": "on __construct(\n private bool $debug,\n ) {\n }\n\n /**\n * @param-immediately-invoked-callable $callback\n */\n public function cache(string $file, callable $callback): ConfigCacheInterface\n {\n $cache = new ConfigCache($file,", "middle": "ice-based).\n *\n * @author Matthias Pigulla \n */\nclass ConfigCacheFactory implements ConfigCacheFactoryInterface\n{\n /**\n * @param bool $debug The debug flag to pass to ConfigCache\n */\n public functi", "meta": {"filepath": "src/Symfony/Component/Config/ConfigCacheFactory.php", "language": "php", "file_size": 1126, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config;\n\nuse Symfony\\Component\\Config\\Resource\\ResourceInterface;\n\n/**\n * Interface for ConfigCache.\n *\n * @author Matthias Pigulla \n */\ninterface ConfigCacheInterface\n{\n /**\n * Gets the cache file path.\n */\n public func", "suffix": " * Writes the given content into the cache file. Metadata will be stored\n * independently and can be used to check cache freshness at a later time.\n *\n * @param string $content The content to write into the cache\n * @", "middle": "tion getPath(): string;\n\n /**\n * Checks if the cache is still fresh.\n *\n * This check should take the metadata passed to the write() method into consideration.\n */\n public function isFresh(): bool;\n\n /**\n", "meta": {"filepath": "src/Symfony/Component/Config/ConfigCacheInterface.php", "language": "php", "file_size": 1247, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config;\n\nuse Symfony\\Component\\Config\\Exception\\FileLocatorFileNotFoundException;\n\n/**\n * @author Fabien Potencier \n */\ninterface FileLocatorInterface\n{\n /**\n * Returns a full path for a given file name.\n *\n * @param ", "suffix": " string|string[] The full path to the file or an array of file paths\n *\n * @psalm-return ($first is true ? string : string[])\n *\n * @throws \\InvalidArgumentException If $name is empty\n * @throws FileLocatorFileNotFoundException I", "middle": "string $name The file name to locate\n * @param string|null $currentPath The current path\n * @param bool $first Whether to return the first occurrence or an array of filenames\n *\n * @return", "meta": {"filepath": "src/Symfony/Component/Config/FileLocatorInterface.php", "language": "php", "file_size": 1140, "cut_index": 518, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config;\n\n/**\n * A ConfigCacheFactory implementation that validates the\n * cache with an arbitrary set of ResourceCheckers.\n *\n * @author Matthias Pigulla \n */\nclass ResourceCheckerConfigCacheFactory implements ConfigCacheFactoryI", "suffix": "-invoked-callable $callable\n */\n public function cache(string $file, callable $callable): ConfigCacheInterface\n {\n $cache = new ResourceCheckerConfigCache($file, $this->resourceCheckers);\n if (!$cache->isFresh()) {\n $call", "middle": "nterface\n{\n /**\n * @param iterable $resourceCheckers\n */\n public function __construct(\n private iterable $resourceCheckers = [],\n ) {\n }\n\n /**\n * @param-immediately", "meta": {"filepath": "src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php", "language": "php", "file_size": 1054, "cut_index": 513, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Exception;\n\n/**\n * Exception class for when a circular reference is detected when importing resources.\n *\n * @author Fabien Potencier \n */\nclass FileLoaderImportCircularReferenceException extends LoaderLoadException\n{\n public function __co", "suffix": " $previous = null)\n {\n $message = \\sprintf('Circular reference detected in \"%s\" (\"%s\" > \"%s\").', $this->varToString($resources[0]), implode('\" > \"', $resources), $resources[0]);\n\n \\Exception::__construct($message, $code, $previous);\n }\n", "middle": "nstruct(array $resources, int $code = 0, ?\\Throwable", "meta": {"filepath": "src/Symfony/Component/Config/Exception/FileLoaderImportCircularReferenceException.php", "language": "php", "file_size": 845, "cut_index": 535, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DomCrawler\\Image;\n\nclass ImageTest extends TestCase\n{\n public function testConstructorWithANonImgTag()\n {\n $this->expectException(\\LogicException::class);\n $", "suffix": "sAbsolute()\n {\n $dom = new \\DOMDocument();\n $dom->loadHTML('\"foo\"');\n\n $image = new Image($dom->getElementsByTagName('img')->item(0));\n $this->assertSame('https://example", "middle": "dom = new \\DOMDocument();\n $dom->loadHTML('
');\n\n new Image($dom->getElementsByTagName('div')->item(0), 'http://www.example.com/');\n }\n\n public function testBaseUriIsOptionalWhenImageUrlI", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/ImageTest.php", "language": "php", "file_size": 2090, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DomCrawler\\UriResolver;\n\nclass UriResolverTest extends TestCase\n{\n #[DataProvider('provideResolverTests')]\n public function testResolver(string $uri, string $baseUri, string $expected)\n {\n $this->assertEquals($ex", "suffix": "//localhost/bar/foo', 'http://localhost/foo'],\n ['\n /foo', 'http://localhost/bar/foo/', 'http://localhost/foo'],\n ['/foo\n ', 'http://localhost/bar/foo', 'http://localhost/foo'],\n\n ['foo', 'http://local", "middle": "pected, UriResolver::resolve($uri, $baseUri));\n }\n\n public static function provideResolverTests()\n {\n return [\n ['/foo', 'http://localhost/bar/foo/', 'http://localhost/foo'],\n ['/foo', 'http:", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/UriResolverTest.php", "language": "php", "file_size": 4595, "cut_index": 614, "middle_length": 229}} {"prefix": " }\n\n $node = $this->createNode('input', '', ['type' => 'text']);\n try {\n new ChoiceFormField($node);\n $this->fail('->initialize() throws a \\LogicException if the node is an input with a type different from checkbox or radio');\n } catch (\\LogicException $e) {\n $this->assertTrue(true, '->initialize() throws a \\LogicException if the node is an input with a type different from checkbox or radio');\n }\n }\n\n public function testGetType()\n {", "suffix": "radio for radio buttons');\n\n $node = $this->createNode('input', '', ['type' => 'checkbox', 'name' => 'name', 'value' => 'foo']);\n $field = new ChoiceFormField($node);\n\n $this->assertEquals('checkbox', $field->getType(), '->getType() re", "middle": "\n $node = $this->createNode('input', '', ['type' => 'radio', 'name' => 'name', 'value' => 'foo']);\n $field = new ChoiceFormField($node);\n\n $this->assertEquals('radio', $field->getType(), '->getType() returns ", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Field/ChoiceFormFieldTest.php", "language": "php", "file_size": 21531, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Field;\n\nuse Symfony\\Component\\DomCrawler\\Field\\InputFormField;\n\nclass InputFormFieldTest extends FormFieldTestCase\n{\n public function testInitialize()\n {\n $node = $this->createNode('input', '', ['type' => 'text', 'name' => 'name', 'value' =>", "suffix": "tarea', '');\n try {\n new InputFormField($node);\n $this->fail('->initialize() throws a \\LogicException if the node is not an input');\n } catch (\\LogicException $e) {\n $this->assertTrue(true, '->initialize() thr", "middle": " 'value']);\n $field = new InputFormField($node);\n\n $this->assertEquals('value', $field->getValue(), '->initialize() sets the value of the field to the value attribute value');\n\n $node = $this->createNode('tex", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Field/InputFormFieldTest.php", "language": "php", "file_size": 1831, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DomCrawler\\Crawler;\nuse Symfony\\Component\\DomCrawler\\Test\\Constraint\\CrawlerAnySelectorTextContains;\n\nclass CrawlerAnySelectorTextCo", "suffix": "', true));\n self::assertTrue($constraint->evaluate(new Crawler('
  • Bar
  • Foo'), '', true));\n self::assertTrue($constraint->evaluate(new Crawler('
    • Bar
    • Foo Bar Baz'), '', true));\n self::assertFalse($constraint->", "middle": "ntainsTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new CrawlerAnySelectorTextContains('ul li', 'Foo');\n\n self::assertTrue($constraint->evaluate(new Crawler('
      • Foo
      • '), '", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextContainsTest.php", "language": "php", "file_size": 1913, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier \n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DomCrawler\\Crawler;\nuse Symfony\\Component\\DomCrawler\\Test\\Constraint\\CrawlerAnySelectorTextSame;\n\nfinal class CrawlerAn", "suffix": "i>'), '', true));\n self::assertTrue($constraint->evaluate(new Crawler('
        • Bar
        • Foo'), '', true));\n self::assertFalse($constraint->evaluate(new Crawler('
          • Bar
          • Foo Bar Baz'), '', true));\n self::assertFalse($cons", "middle": "ySelectorTextSameTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new CrawlerAnySelectorTextSame('ul li', 'Foo');\n\n self::assertTrue($constraint->evaluate(new Crawler('
            • Foo\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DomCrawler\\Crawler;\nuse Symfony\\Component\\DomCrawler\\Test\\Constraint\\CrawlerSelectorTextContains;\n\nclass CrawlerSelectorTextContains", "suffix": "', true));\n $this->assertFalse($constraint->evaluate(new Crawler('Bar'), '', true));\n $this->assertFalse($constraint->evaluate(new Crawler('<html><head></head><body>Bar'), '', true));\n }\n\n public function testDoesNotM", "middle": "Test extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new CrawlerSelectorTextContains('title', 'Foo');\n $this->assertTrue($constraint->evaluate(new Crawler('<html><head><title>Foobar'), '", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php", "language": "php", "file_size": 1814, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DomCrawler\\Crawler;\nuse Symfony\\Component\\DomCrawler\\Test\\Constraint\\CrawlerSelectorTextSame;\n\nclass CrawlerSelec", "suffix": "), '', true));\n $this->assertFalse($constraint->evaluate(new Crawler('<html><head><title>Bar'), '', true));\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptionMessage('Failed asserting that the Crawler ", "middle": "torTextSameTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new CrawlerSelectorTextSame('title', 'Foo');\n $this->assertTrue($constraint->evaluate(new Crawler('<html><head><title>Foo'", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php", "language": "php", "file_size": 1142, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\DomCrawler\\Crawler;\n\nfinal class CrawlerSelectorAttributeValueSame extends Constraint\n{\n public function __construct(\n private string $selector,\n ", "suffix": "elector, $this->attribute, $this->expectedText);\n }\n\n /**\n * @param Crawler $crawler\n */\n protected function matches($crawler): bool\n {\n $crawler = $crawler->filter($this->selector);\n if (!\\count($crawler)) {\n r", "middle": " private string $attribute,\n private string $expectedText,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('has a node matching selector \"%s\" with attribute \"%s\" of value \"%s\"', $this->s", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerSelectorAttributeValueSame.php", "language": "php", "file_size": 1295, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\DomCrawler\\Crawler;\n\nfinal class CrawlerSelectorExists extends Constraint\n{\n public function __construct(\n private string $selector,\n ) {\n }\n\n public function toString(): string\n {\n return \\s", "suffix": " }\n\n /**\n * @param Crawler $crawler\n */\n protected function matches($crawler): bool\n {\n return 0 < \\count($crawler->filter($this->selector));\n }\n\n /**\n * @param Crawler $crawler\n */\n protected function failureDescr", "middle": "printf('matches selector \"%s\"', $this->selector);\n ", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerSelectorExists.php", "language": "php", "file_size": 978, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config;\n\nuse Symfony\\Component\\Config\\Resource\\ResourceInterface;\nuse Symfony\\Component\\Config\\Resource\\SelfCheckingResourceChecker;\nuse Symfony\\Component\\Config\\Resource\\SkippingResourceChecker;\n\n/**\n * ConfigCache caches arbitrary content in files on disk.\n *\n * When in debug mode, those metada", "suffix": "ory.de>\n */\nclass ConfigCache extends ResourceCheckerConfigCache\n{\n /**\n * @param string $file The absolute cache path\n * @param bool $debug Whether", "middle": "ta resources that implement\n * \\Symfony\\Component\\Config\\Resource\\SelfCheckingResourceInterface will\n * be used to check cache freshness.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Matthias Pigulla <mp@webfact", "meta": {"filepath": "src/Symfony/Component/Config/ConfigCache.php", "language": "php", "file_size": 2119, "cut_index": 563, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config;\n\n/**\n * Interface for a ConfigCache factory. This factory creates\n * an instance of ConfigCacheInterface and initializes the\n * cache if necessary.\n *\n * @author Matthias Pigulla <mp@webfactory.de>\n */\ninterface ConfigCacheFactoryInterfac", "suffix": "able $callable The callable to be executed when the cache needs to be filled (i. e. is not fresh). The cache will be passed as the only parameter to this callback\n */\n public function cache(string $file, callable $callable): ConfigCacheInterface;\n}\n", "middle": "e\n{\n /**\n * Creates a cache instance and (re-)initializes it if necessary.\n *\n * @param-immediately-invoked-callable $callable\n *\n * @param string $file The absolute cache file path\n * @param call", "meta": {"filepath": "src/Symfony/Component/Config/ConfigCacheFactoryInterface.php", "language": "php", "file_size": 997, "cut_index": 512, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config;\n\nuse Symfony\\Component\\Config\\Resource\\ResourceInterface;\n\n/**\n * Interface for ResourceCheckers.\n *\n * When a ResourceCheckerConfigCache instance is checked for freshness, all its associated\n * metadata resources are passed to ResourceCheckers", "suffix": " ResourceCheckerInterface\n{\n /**\n * Queries the ResourceChecker whether it can validate a given\n * resource or not.\n */\n public function supports(ResourceInterface $metadata): bool;\n\n /**\n * Validates the resource.\n *\n * @p", "middle": ". The ResourceCheckers\n * can then inspect the resources and decide whether the cache can be considered\n * fresh or not.\n *\n * @author Matthias Pigulla <mp@webfactory.de>\n * @author Benjamin Klotz <bk@webfactory.de>\n */\ninterface", "meta": {"filepath": "src/Symfony/Component/Config/ResourceCheckerInterface.php", "language": "php", "file_size": 1188, "cut_index": 518, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Exception;\n\n/**\n * File locator exception if a file does not exist.\n *\n * @author Leo Feyer <https://github.com/leofeyer>\n */\nclass FileLocatorFileNotFoundException extends \\InvalidArgumentException\n{\n public function __construct(\n ", "suffix": "age = '',\n int $code = 0,\n ?\\Throwable $previous = null,\n private array $paths = [],\n ) {\n parent::__construct($message, $code, $previous);\n }\n\n public function getPaths(): array\n {\n return $this->paths;\n }", "middle": " string $mess", "meta": {"filepath": "src/Symfony/Component/Config/Exception/FileLocatorFileNotFoundException.php", "language": "php", "file_size": 786, "cut_index": 513, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Field;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\DomCrawler\\Field\\FileFormField;\n\nclass FileFormFieldTest extends FormFieldTestCase\n{\n public function testInitialize()\n {\n $node = $this->createNode('input', '', ['type' => 'file']);\n $field = new FileFormField($node);\n\n $this-", "suffix": "'textarea', '');\n try {\n new FileFormField($node);\n $this->fail('->initialize() throws a \\LogicException if the node is not an input field');\n } catch (\\LogicException $e) {\n $this->assertTrue(true, '->initial", "middle": ">assertEquals(['name' => '', 'type' => '', 'tmp_name' => '', 'error' => \\UPLOAD_ERR_NO_FILE, 'size' => 0], $field->getValue(), '->initialize() sets the value of the field to no file uploaded');\n\n $node = $this->createNode(", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Field/FileFormFieldTest.php", "language": "php", "file_size": 4668, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Field;\n\nuse Symfony\\Component\\DomCrawler\\Field\\TextareaFormField;\n\nclass TextareaFormFieldTest extends FormFieldTestCase\n{\n public function testInitialize()\n {\n $node = $this->createNode('textarea', 'foo bar');\n $field = new TextareaF", "suffix": " TextareaFormField($node);\n $this->fail('->initialize() throws a \\LogicException if the node is not a textarea');\n } catch (\\LogicException $e) {\n $this->assertTrue(true, '->initialize() throws a \\LogicException if the node is ", "middle": "ormField($node);\n\n $this->assertEquals('foo bar', $field->getValue(), '->initialize() sets the value of the field to the textarea node value');\n\n $node = $this->createNode('input', '');\n try {\n new", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Field/TextareaFormFieldTest.php", "language": "php", "file_size": 1759, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DomCrawler\\Crawler;\nuse Symfony\\Component\\DomCrawler\\Test\\Constraint\\CrawlerSelectorExists;\n\nclass CrawlerSelecto", "suffix": " $constraint = new CrawlerSelectorExists('h1');\n $this->assertFalse($constraint->evaluate(new Crawler('<html><head><title>'), '', true));\n\n $this->expectException(ExpectationFailedException::class);\n $this->expectExceptionMessage", "middle": "rExistsTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new CrawlerSelectorExists('title');\n $this->assertTrue($constraint->evaluate(new Crawler('<html><head><title>'), '', true));\n ", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php", "language": "php", "file_size": 1141, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\DomCrawler\\Crawler;\n\nfinal class CrawlerAnySelectorTextSame extends Constraint\n{\n public function __construct(\n private string $selector,\n private string $exp", "suffix": "atches($other): bool\n {\n if (!$other instanceof Crawler) {\n throw new \\InvalidArgumentException(\\sprintf('\"%s\" constraint expected an argument of type \"%s\", got \"%s\".', self::class, Crawler::class, get_debug_type($other)));\n }\n\n", "middle": "ectedText,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('has at least a node matching selector \"%s\" with content \"%s\"', $this->selector, $this->expectedText);\n }\n\n protected function m", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerAnySelectorTextSame.php", "language": "php", "file_size": 1650, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\DomCrawler\\Crawler;\n\nfinal class CrawlerSelectorTextContains extends Constraint\n{\n private bool $hasNode = false;\n private string $nodeText;\n\n public function __const", "suffix": "ng selector \"%s\" contains \"%s\"', $this->nodeText, $this->selector, $this->expectedText);\n }\n\n return \\sprintf('the Crawler has a node matching selector \"%s\"', $this->selector);\n }\n\n /**\n * @param Crawler $crawler\n */\n protect", "middle": "ruct(\n private string $selector,\n private string $expectedText,\n ) {\n }\n\n public function toString(): string\n {\n if ($this->hasNode) {\n return \\sprintf('the text \"%s\" of the node matchi", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerSelectorTextContains.php", "language": "php", "file_size": 1540, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config;\n\nuse Symfony\\Component\\Config\\Resource\\ResourceInterface;\nuse Symfony\\Component\\Filesystem\\Exception\\IOException;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * ResourceCheckerConfigCache uses instances of ResourceCheckerInterface\n * to check whether cached data is still fresh.\n *\n * @author Matthias Pigulla <mp@webfactory.de>\n */\nclass ResourceCheckerConfigCache implements ConfigCacheInterface\n{\n private string $metaFile;\n\n /", "suffix": " * @param string|null $metaFile The absolute path to the meta file, defaults to $file.meta if null\n */\n public function __construct(\n private string $file,\n private iterable $resourceCheckers = [", "middle": "**\n * @param string $file The absolute cache path\n * @param iterable<mixed, ResourceCheckerInterface> $resourceCheckers The ResourceCheckers to use for the freshness check\n ", "meta": {"filepath": "src/Symfony/Component/Config/ResourceCheckerConfigCache.php", "language": "php", "file_size": 6397, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Field;\n\nuse Symfony\\Component\\DomCrawler\\Field\\InputFormField;\n\nclass FormFieldTest extends FormFieldTestCase\n{\n public function testGetName()\n {\n $node = $this->createNode('input', '', ['type' => 'text', 'name' => 'name', 'value' => 'value']);\n $field = new I", "suffix": "pe' => 'text', 'name' => 'name', 'value' => 'value']);\n $field = new InputFormField($node);\n\n $this->assertEquals('value', $field->getValue(), '->getValue() returns the value of the field');\n\n $field->setValue('foo');\n $this->as", "middle": "nputFormField($node);\n\n $this->assertEquals('name', $field->getName(), '->getName() returns the name of the field');\n }\n\n public function testGetSetHasValue()\n {\n $node = $this->createNode('input', '', ['ty", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Field/FormFieldTest.php", "language": "php", "file_size": 2619, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DomCrawler\\Crawler;\nuse Symfony\\Component\\DomCrawler\\Test\\Constraint\\CrawlerSelectorAttributeValueSame;\n\nclass CrawlerS", "suffix": "traint->evaluate(new Crawler('<html><body><form><input type=\"text\" name=\"username\" value=\"Fabien\">'), '', true));\n $this->assertFalse($constraint->evaluate(new Crawler('<html><body><form><input type=\"text\" name=\"username\">'), '', true));\n $th", "middle": "electorAttributeValueSameTest extends TestCase\n{\n public function testConstraint()\n {\n $constraint = new CrawlerSelectorAttributeValueSame('input[name=\"username\"]', 'value', 'Fabien');\n $this->assertTrue($cons", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php", "language": "php", "file_size": 1417, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config;\n\nuse Symfony\\Component\\Config\\Exception\\FileLocatorFileNotFoundException;\n\n/**\n * FileLocator uses an array of pre-defined paths to find files.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass FileLocator implements FileLocatorInterface\n{\n protected array $paths;\n\n /**\n", "suffix": "turn string|string[]\n *\n * @psalm-return ($first is true ? string : string[])\n */\n public function locate(string $name, ?string $currentPath = null, bool $first = true): string|array\n {\n if ('' === $name) {\n throw new \\I", "middle": " * @param string|string[] $paths A path or an array of paths where to look for resources\n */\n public function __construct(string|array $paths = [])\n {\n $this->paths = (array) $paths;\n }\n\n /**\n * @re", "meta": {"filepath": "src/Symfony/Component/Config/FileLocator.php", "language": "php", "file_size": 2763, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DomCrawler\\Link;\n\nclass LinkTest extends TestCase\n{\n public function testConstructorWithANonATag()\n {\n $this->expectException(\\LogicException::class);\n $dom = new \\DOMDocument();\n $dom->loadHTML('<html><div><div></html>');\n\n new Link($dom->getElementsByTagName('div')->item(0), 'http://www.exampl", "suffix": "k($dom->getElementsByTagName('a')->item(0));\n $this->assertSame('https://example.com/foo', $link->getUri());\n }\n\n public function testAbsoluteBaseUriIsMandatoryWhenLinkUrlIsRelative()\n {\n $this->expectException(\\InvalidArgumentExcept", "middle": "e.com/');\n }\n\n public function testBaseUriIsOptionalWhenLinkUrlIsAbsolute()\n {\n $dom = new \\DOMDocument();\n $dom->loadHTML('<html><a href=\"https://example.com/foo\">foo</a></html>');\n\n $link = new Lin", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Tests/LinkTest.php", "language": "php", "file_size": 6970, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\DomCrawler\\Crawler;\n\nfinal class CrawlerSelectorCount extends Constraint\n{\n public function __construct(\n private readonly int $count,\n pri", "suffix": " */\n protected function matches($crawler): bool\n {\n return $this->count === \\count($crawler->filter($this->selector));\n }\n\n /**\n * @param Crawler $crawler\n */\n protected function failureDescription($crawler): string\n {\n ", "middle": "vate readonly string $selector,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('selector \"%s\" count is \"%d\"', $this->selector, $this->count);\n }\n\n /**\n * @param Crawler $crawler\n ", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerSelectorCount.php", "language": "php", "file_size": 1196, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DomCrawler\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\DomCrawler\\Crawler;\n\nfinal class CrawlerAnySelectorTextContains extends Constraint\n{\n private bool $hasNode = false;\n\n public function __construct(\n private strin", "suffix": " $this->selector, $this->expectedText);\n }\n\n return \\sprintf('the Crawler has a node matching selector \"%s\"', $this->selector);\n }\n\n protected function matches($other): bool\n {\n if (!$other instanceof Crawler) {\n th", "middle": "g $selector,\n private string $expectedText,\n ) {\n }\n\n public function toString(): string\n {\n if ($this->hasNode) {\n return \\sprintf('the text of any node matching selector \"%s\" contains \"%s\"',", "meta": {"filepath": "src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerAnySelectorTextContains.php", "language": "php", "file_size": 1957, "cut_index": 537, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\StringNode;\n\n/**\n * This class provides a fluent interface for defining a node.\n *\n * @template TParent of NodeParentInterface|null = null\n *\n * @extends ScalarNodeDefinition<TPa", "suffix": "entInterface $parent = null)\n {\n parent::__construct($name, $parent);\n\n $this->nullEquivalent = '';\n }\n\n protected function instantiateNode(): StringNode\n {\n return new StringNode($this->name, $this->parent, $this->pathSepa", "middle": "rent>\n *\n * @author Raffaele Carelle <raffaele.carelle@gmail.com>\n */\nclass StringNodeDefinition extends ScalarNodeDefinition\n{\n /**\n * @param TParent $parent\n */\n public function __construct(?string $name, ?NodePar", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/StringNodeDefinition.php", "language": "php", "file_size": 1013, "cut_index": 512, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Resource;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\DirectoryResource;\n\nclass DirectoryResourceTest extends TestCase\n{\n protected string $directory;\n\n protected function setUp(): void\n {\n $this->directory = sys_get_temp_dir().\\DIRECTORY_SEPARATOR.'symfonyDirectoryIterator';\n if (!file_exists($this->directory)) {\n mkdir($this->directory);\n }\n touch($this->dir", "suffix": "eDirectory(string $directory): void\n {\n $iterator = new \\RecursiveIteratorIterator(new \\RecursiveDirectoryIterator($directory), \\RecursiveIteratorIterator::CHILD_FIRST);\n foreach ($iterator as $path) {\n if (preg_match('#[/\\\\\\\\]\\", "middle": "ectory.'/tmp.xml');\n }\n\n protected function tearDown(): void\n {\n if (!is_dir($this->directory)) {\n return;\n }\n $this->removeDirectory($this->directory);\n }\n\n protected function remov", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Resource/DirectoryResourceTest.php", "language": "php", "file_size": 6636, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Resource;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileExistenceResource;\n\nclass FileExistenceResourceTest extends TestCase\n{\n protected FileExistenceResource $resource;\n protected string $file;\n protected int $time;\n\n protected function setU", "suffix": " if (file_exists($this->file)) {\n @unlink($this->file);\n }\n }\n\n public function testToString()\n {\n $this->assertSame('existence.'.$this->file, (string) $this->resource);\n }\n\n public function testGetResource()\n ", "middle": "p(): void\n {\n $this->file = realpath(sys_get_temp_dir()).'/tmp.xml';\n $this->time = time();\n $this->resource = new FileExistenceResource($this->file);\n }\n\n protected function tearDown(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Resource/FileExistenceResourceTest.php", "language": "php", "file_size": 2249, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Resource;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\n\nclass FileResourceTest extends TestCase\n{\n protected FileResource $resource;\n protected string $file;\n protected int $time;\n\n protected function setUp(): void\n {\n $th", "suffix": " if (file_exists($this->file)) {\n @unlink($this->file);\n }\n }\n\n public function testGetResource()\n {\n $this->assertSame(realpath($this->file), $this->resource->getResource(), '->getResource() returns the path to the resou", "middle": "is->file = sys_get_temp_dir().'/tmp.xml';\n $this->time = time();\n touch($this->file, $this->time);\n $this->resource = new FileResource($this->file);\n }\n\n protected function tearDown(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Resource/FileResourceTest.php", "language": "php", "file_size": 2590, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Resource;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\GlobResource;\n\nclass GlobResourceTest extends TestCase\n{\n protected function tearDown(): void\n {\n $dir = \\dirname(__DIR__).'/Fixtures';\n @rmdir($dir.'/TmpGlob');\n @unlink($dir.'/TmpGlob');\n @unlink($dir.'/Resource/TmpGlob');\n touch($dir.'/Resource/.hiddenFile');\n }\n\n ", "suffix": "resource = new GlobResource($dir, $pattern, true);\n\n $paths = iterator_to_array($resource);\n\n $file = $dir.'/Resource'.\\DIRECTORY_SEPARATOR.'ConditionalClass.php';\n $this->assertEquals([$file => new \\SplFileInfo($file)], $paths);\n ", "middle": " #[TestWith(['/Resource'])]\n #[TestWith(['/**/Resource'])]\n #[TestWith(['/**/Resource/'])]\n public function testIterator(string $pattern)\n {\n $dir = \\dirname(__DIR__).\\DIRECTORY_SEPARATOR.'Fixtures';\n $", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Resource/GlobResourceTest.php", "language": "php", "file_size": 8002, "cut_index": 716, "middle_length": 229}} {"prefix": "flectionClassResource;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\FakeVendor\\Base;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\nclass ReflectionClassResourceTest extends TestCase\n{\n public function testToString()\n {\n $res = new ReflectionClassResource(new \\ReflectionClass(\\ErrorException::class));\n\n $this->assertSame('reflection.ErrorException', (string) $res);\n }\n\n public function testSerializeUnseriali", "suffix": "h(0));\n\n $this->assertSame((string) $res, (string) $ser);\n }\n\n public function testIsFresh()\n {\n $res = new ReflectionClassResource(new \\ReflectionClass(__CLASS__));\n $mtime = filemtime(__FILE__);\n\n $this->assertTrue($r", "middle": "ze()\n {\n $res = new ReflectionClassResource(new \\ReflectionClass(DummyInterface::class));\n $ser = unserialize(serialize($res));\n\n $this->assertTrue($res->isFresh(0));\n $this->assertTrue($ser->isFres", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Resource/ReflectionClassResourceTest.php", "language": "php", "file_size": 10732, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Exception\\LoaderLoadException;\nuse Symfony\\Component\\Config\\Loader\\DelegatingLoader;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\n\nclass DelegatingLoaderT", "suffix": " }\n\n public function testGetSetResolver()\n {\n $resolver = new LoaderResolver();\n $loader = new DelegatingLoader($resolver);\n $this->assertSame($resolver, $loader->getResolver(), '->getResolver() gets the resolver loader');\n ", "middle": "est extends TestCase\n{\n public function testConstructor()\n {\n new DelegatingLoader($resolver = new LoaderResolver());\n $this->assertTrue(true, '__construct() takes a loader resolver as its first argument');\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Loader/DelegatingLoaderTest.php", "language": "php", "file_size": 2730, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Exception\\FileLoaderImportCircularReferenceException;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\FileLocatorInterface;\nuse Symfony\\Component\\Config\\Loader\\FileLoader;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\n\nclass FileLoaderTest extends TestCase\n{\n public function testImportWi", "suffix": " ['path/to/file1'],\n ['path/to/file1', 'path/to/file2'],\n ['path/to/file1', 'path/to/file2'],\n ['path/to/file1'],\n ['path/to/file1', 'path/to/file2']\n );\n\n $fileLoader = new", "middle": "thFileLocatorDelegation()\n {\n $locatorMockForAdditionalLoader = $this->createStub(FileLocatorInterface::class);\n $locatorMockForAdditionalLoader\n ->method('locate')\n ->willReturn(\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Loader/FileLoaderTest.php", "language": "php", "file_size": 7924, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\n\nclass LoaderResolverTest extends TestCase\n{\n public function testConstructor()\n {\n $resolver = new", "suffix": " }\n\n public function testResolve()\n {\n $loader = $this->createStub(LoaderInterface::class);\n $resolver = new LoaderResolver([$loader]);\n $this->assertFalse($resolver->resolve('foo.foo'), '->resolve() returns false if no loader is", "middle": " LoaderResolver([\n $loader = $this->createStub(LoaderInterface::class),\n ]);\n\n $this->assertEquals([$loader], $resolver->getLoaders(), '__construct() takes an array of loaders as its first argument');\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Loader/LoaderResolverTest.php", "language": "php", "file_size": 1657, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Exception\\LoaderLoadException;\nuse Symfony\\Component\\Config\\Exception\\LogicException;\nuse Symfony\\Component\\Config\\Loader\\Loader;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\Config\\L", "suffix": "$resolver);\n\n $this->assertSame($resolver, $loader->getResolver(), '->setResolver() sets the resolver loader');\n }\n\n public function testGetResolverWithoutSetResolver()\n {\n $this->expectException(LogicException::class);\n\n $loa", "middle": "oader\\LoaderResolverInterface;\n\nclass LoaderTest extends TestCase\n{\n public function testGetSetResolver()\n {\n $resolver = new LoaderResolver([]);\n\n $loader = new ProjectLoader1();\n $loader->setResolver(", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Loader/LoaderTest.php", "language": "php", "file_size": 4041, "cut_index": 614, "middle_length": 229}} {"prefix": "n\\ArrayNode;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\nuse Symfony\\Component\\Config\\Definition\\ScalarNode;\n\nclass ArrayNodeTest extends TestCase\n{\n public function testNormalizeThrowsExceptionWhenFalseIsNotAllowed()\n {\n $node = new ArrayNode('root');\n\n $this->expectException(InvalidTypeException::class);\n\n $node->normalize(false);\n }\n\n public function testExceptionT", "suffix": " $node->normalize(['foo' => 'bar']);\n }\n\n public function testNormalizeWithProposals()\n {\n $node = new ArrayNode('root');\n $node->addChild(new ArrayNode('alpha1'));\n $node->addChild(new ArrayNode('alpha2'));\n $node->", "middle": "hrownOnUnrecognizedChild()\n {\n $node = new ArrayNode('root');\n\n $this->expectException(InvalidConfigurationException::class);\n $this->expectExceptionMessage('Unrecognized option \"foo\" under \"root\"');\n\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php", "language": "php", "file_size": 11299, "cut_index": 921, "middle_length": 229}} {"prefix": "n\\ArrayNode;\nuse Symfony\\Component\\Config\\Definition\\ArrayShapeGenerator;\nuse Symfony\\Component\\Config\\Definition\\BooleanNode;\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\EnumNode;\nuse Symfony\\Component\\Config\\Definition\\FloatNode;\nuse Symfony\\Component\\Config\\Definition\\IntegerNode;\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\nuse Symfony\\Component\\Config\\Definition\\PrototypedArrayNode;\nuse Symfony\\Component\\Config\\Definition\\Scalar", "suffix": "BackedTestEnum;\n\nclass ArrayShapeGeneratorTest extends TestCase\n{\n #[DataProvider('provideNodes')]\n public function testPhpDocHandlesNodeTypes(NodeInterface $node, string $expected)\n {\n $arrayNode = new ArrayNode('root');\n $arrayNode", "middle": "Node;\nuse Symfony\\Component\\Config\\Definition\\StringNode;\nuse Symfony\\Component\\Config\\Definition\\VariableNode;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\IntegerBackedTestEnum;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\String", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/ArrayShapeGeneratorTest.php", "language": "php", "file_size": 9493, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\BaseNode;\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\n\nclass BaseNodeTest extends TestCase\n{\n #[DataProvider('providePath')]\n public fu", "suffix": "::class);\n $parent->method('getPath')->willReturn($params[1]);\n\n $constructorArgs[] = $parent;\n\n if (isset($params[2])) {\n $constructorArgs[] = $params[2];\n }\n }\n\n $node = new class(.", "middle": "nction testGetPathForChildNode(string $expected, array $params)\n {\n $constructorArgs = [];\n $constructorArgs[] = $params[0];\n\n if (isset($params[1])) {\n $parent = $this->createStub(NodeInterface", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/BaseNodeTest.php", "language": "php", "file_size": 2211, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\BooleanNode;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\n\nclass BooleanNodeTest extends TestCase\n{\n #[DataProvider('getVa", "suffix": " $node = new BooleanNode('test', null, '.', true);\n\n $this->assertNull($node->normalize(null));\n }\n\n public function testNullValueOnNotNullable()\n {\n $node = new BooleanNode('test', null, '.', false);\n\n $this->expectExcep", "middle": "lidValues')]\n public function testNormalize(bool $value)\n {\n $node = new BooleanNode('test');\n $this->assertSame($value, $node->normalize($value));\n }\n\n public function testNullValueOnNullable()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/BooleanNodeTest.php", "language": "php", "file_size": 2510, "cut_index": 563, "middle_length": 229}} {"prefix": "tion\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\IntegerBackedTestEnum;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\StringBackedTestEnum;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\StringBackedTestEnum2;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\TestEnum;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\TestEnum2;\n\nclass EnumNodeTest extends TestCase\n{\n public function testFinalizeValue()\n {\n $node = new EnumNode('foo', null, ['foo', 'bar', TestEnum::Bar])", "suffix": "\\InvalidArgumentException::class);\n $this->expectExceptionMessage('$values must contain at least one element.');\n new EnumNode('foo', null, []);\n }\n\n public function testConstructionWithBothValuesAndEnumFqcn()\n {\n $this->expec", "middle": ";\n $this->assertSame('foo', $node->finalize('foo'));\n $this->assertSame(TestEnum::Bar, $node->finalize(TestEnum::Bar));\n }\n\n public function testConstructionWithNoValues()\n {\n $this->expectException(", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/EnumNodeTest.php", "language": "php", "file_size": 9651, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\nuse Symfony\\Component\\Config\\Definition\\Processor;\n\nclass FinalizationTest extends TestCase\n{\n public function testUnset", "suffix": "anBeUnset()\n ->children()\n ->node('level2', 'array')\n ->canBeUnset()\n ->children()\n ->node('somevalue', 'scal", "middle": "KeyWithDeepHierarchy()\n {\n $tb = new TreeBuilder('config', 'array');\n $tree = $tb\n ->getRootNode()\n ->children()\n ->node('level1', 'array')\n ->c", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/FinalizationTest.php", "language": "php", "file_size": 2110, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\nuse Symfony\\Component\\Config\\Definition\\FloatNode;\nuse Symfony\\Component\\Config\\Definition\\NumericNode;\n\nclass FloatNode", "suffix": " #[DataProvider('getValidValues')]\n public function testValidNonEmptyValues(int|float $value)\n {\n $node = new FloatNode('test');\n $node->setAllowEmptyValue(false);\n\n $this->assertSame($value, $node->finalize($value));\n }\n\n ", "middle": "Test extends TestCase\n{\n #[DataProvider('getValidValues')]\n public function testNormalize(int|float $value)\n {\n $node = new FloatNode('test');\n $this->assertSame($value, $node->normalize($value));\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php", "language": "php", "file_size": 2234, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Resource;\n\nuse Composer\\Autoload\\ClassLoader;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\ComposerResource;\n\nclass ComposerResourceTest extends TestCase\n{\n public function testGetVendor()\n {\n $res = n", "suffix": " $found = true;\n break;\n }\n }\n\n $this->assertTrue($found);\n }\n\n public function testSerializeUnserialize()\n {\n $res = new ComposerResource();\n $ser = unserialize(serialize($res));", "middle": "ew ComposerResource();\n\n $r = new \\ReflectionClass(ClassLoader::class);\n $found = false;\n\n foreach ($res->getVendors() as $vendor) {\n if ($vendor && str_starts_with($r->getFileName(), $vendor)) {\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Resource/ComposerResourceTest.php", "language": "php", "file_size": 1145, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\BooleanNode;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidDefinitionException;\n\n/**\n * This class provides a fluent interface for defining a node.\n *\n * @template TParent of NodeParentInterfa", "suffix": " function __construct(?string $name, ?NodeParentInterface $parent = null)\n {\n parent::__construct($name, $parent);\n\n $this->nullEquivalent = true;\n }\n\n protected function instantiateNode(): BooleanNode\n {\n return new Boolea", "middle": "ce|null\n *\n * @extends ScalarNodeDefinition<TParent>\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass BooleanNodeDefinition extends ScalarNodeDefinition\n{\n /**\n * @param TParent $parent\n */\n public", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php", "language": "php", "file_size": 1559, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\UnsetKeyException;\n\n/**\n * This class builds an if expression.\n *\n * @template T of NodeDefinition\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n * @author Christophe Coevoet <stof@notk.org>\n */\nclass ExprBuilder\n{\n public const TYPE_ANY = 'any';\n public const TYPE_STRING = 'string';\n public const TYPE_NULL = 'null';\n public const TYPE_ARRAY = 'ar", "suffix": "t = null;\n\n /**\n * @param T $node\n */\n public function __construct(\n protected NodeDefinition $node,\n ) {\n }\n\n /**\n * Marks the expression as being always used.\n *\n * @return $this\n */\n public function alway", "middle": "ray';\n public const TYPE_BOOL = 'bool';\n public const TYPE_INT = 'int';\n public const TYPE_BACKED_ENUM = 'backed-enum';\n\n public string $allowedTypes;\n public ?\\Closure $ifPart = null;\n public ?\\Closure $thenPar", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php", "language": "php", "file_size": 6335, "cut_index": 716, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\FloatNode;\n\n/**\n * This class provides a fluent interface for defining a float node.\n *\n * @template TParent of NodeParentInterface|null = null\n *\n * @extends NumericNodeDefinition<TParent", "suffix": "r Jeanmonod David <david.jeanmonod@gmail.com>\n */\nclass FloatNodeDefinition extends NumericNodeDefinition\n{\n protected function instantiateNode(): FloatNode\n {\n return new FloatNode($this->name, $this->parent, $this->min, $this->max, $this->pa", "middle": ">\n *\n * @autho", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/FloatNodeDefinition.php", "language": "php", "file_size": 814, "cut_index": 522, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\n/**\n * This class provides a fluent interface for building a node.\n *\n * @template TParent of (NodeDefinition&ParentNodeDefinitionInterface)|null = null\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass NodeBuilder implements NodeParentInterface\n{\n /**\n * @var TParent\n */\n protected (NodeDefinition&ParentNodeDefinitionInterface)|null $parent = null;\n /**\n * @var array<string, class", "suffix": "efinitionConfigurator\n $this->nodeMapping = [\n 'array' => ArrayNodeDefinition::class,\n 'variable' => VariableNodeDefinition::class,\n 'scalar' => ScalarNodeDefinition::class,\n 'string' => StringNodeDefiniti", "middle": "-string<NodeDefinition>>\n */\n protected array $nodeMapping;\n\n public function __construct()\n {\n // This list should be in sync with generics on method node() below and on TreeBuilder, ArrayNodeDefinition and D", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php", "language": "php", "file_size": 7266, "cut_index": 716, "middle_length": 229}} {"prefix": "nition\\Exception\\InvalidDefinitionException;\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\n\n/**\n * This class provides a fluent interface for defining a node.\n *\n * @template-covariant TParent of NodeParentInterface|null = null\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nabstract class NodeDefinition implements NodeParentInterface\n{\n protected ?string $name = null;\n /**\n * @var NormalizationBuilder<$this>\n */\n protected NormalizationBuilder $normalization;\n /**\n", "suffix": "ion = [];\n /**\n * @var MergeBuilder<$this>\n */\n protected MergeBuilder $merge;\n protected bool $allowEmptyValue = true;\n protected mixed $nullEquivalent = null;\n protected mixed $trueEquivalent = true;\n protected mixed $falseEquiv", "middle": " * @var ValidationBuilder<$this>\n */\n protected ValidationBuilder $validation;\n protected mixed $defaultValue;\n protected bool $default = false;\n protected bool $required = false;\n protected array $deprecat", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php", "language": "php", "file_size": 9900, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\n/**\n * An interface that must be implemented by nodes which can have children.\n *\n * @author Victor Berchet <victor@suumit.com>\n */\ninterface ParentNodeDefinitionInterface extends BuilderAwareInterface\n{\n /**\n * Retur", "suffix": "ode\n * ->children()\n * ->scalarNode('foo')->end()\n * ->scalarNode('baz')->end()\n * ->append($this->getBarNodeDefinition())\n * ->end()\n * ;\n *\n * @return $this\n */\n ", "middle": "ns a builder to add children nodes.\n *\n * @return NodeBuilder<static>\n */\n public function children(): NodeBuilder;\n\n /**\n * Appends a node definition.\n *\n * Usage:\n *\n * $node = $parentN", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/ParentNodeDefinitionInterface.php", "language": "php", "file_size": 1220, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\n\n/**\n * This is the entry class for building a config tree.\n *\n * @template T of 'array'|'variable'|'scalar'|'string'|'boolean'|'integer'|'float'|'enum' = 'array'\n *\n * @author Johannes M.", "suffix": "\n /**\n * @param T $type\n */\n public function __construct(string $name, string $type = 'array', ?NodeBuilder $builder = null)\n {\n $builder ??= new NodeBuilder();\n $this->root = $builder->node($name, $type)->setParent($this);\n ", "middle": " Schmitt <schmittjoh@gmail.com>\n */\nclass TreeBuilder implements NodeParentInterface\n{\n protected ?NodeInterface $tree = null;\n /**\n * @var NodeDefinition<$this>|null\n */\n protected ?NodeDefinition $root = null;\n", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/TreeBuilder.php", "language": "php", "file_size": 2003, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\nuse Symfony\\Component\\Config\\Definition\\VariableNode;\n\n/**\n * This class provides a fluent interface for defining a node.\n *\n * @template TParent of NodeParentInterface|null = null\n *\n * @", "suffix": "riableNode($this->name, $this->parent, $this->pathSeparator);\n }\n\n protected function createNode(): NodeInterface\n {\n $node = $this->instantiateNode();\n\n if (isset($this->normalization)) {\n $node->setNormalizationClosures(", "middle": "extends NodeDefinition<TParent>\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass VariableNodeDefinition extends NodeDefinition\n{\n protected function instantiateNode(): VariableNode\n {\n return new Va", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/VariableNodeDefinition.php", "language": "php", "file_size": 1910, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Exception;\n\n/**\n * A very general exception which can be thrown whenever non of the more specific\n * exceptions is suitable.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass InvalidConfigurationException extends Exce", "suffix": "turn $this->path;\n }\n\n /**\n * Adds extra information that is suffixed to the original exception message.\n */\n public function addHint(string $hint): void\n {\n if (!$this->containsHints) {\n $this->message .= \"\\nHint: \".$", "middle": "ption\n{\n private ?string $path = null;\n private bool $containsHints = false;\n\n public function setPath(string $path): void\n {\n $this->path = $path;\n }\n\n public function getPath(): ?string\n {\n re", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Exception/InvalidConfigurationException.php", "language": "php", "file_size": 1127, "cut_index": 518, "middle_length": 229}} {"prefix": "ponent\\Config\\Definition\\BooleanNode;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Definition\\EnumNode;\nuse Symfony\\Component\\Config\\Definition\\FloatNode;\nuse Symfony\\Component\\Config\\Definition\\IntegerNode;\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\nuse Symfony\\Component\\Config\\Definition\\PrototypedArrayNode;\nuse Symfony\\Component\\Config\\Definition\\ScalarNode;\n\n/**\n * Dumps an XML reference configuration for the given configuration/node instance.\n", "suffix": " return $this->dumpNode($configuration->getConfigTreeBuilder()->buildTree(), $namespace);\n }\n\n public function dumpNode(NodeInterface $node, ?string $namespace = null): string\n {\n $this->reference = '';\n $this->writeNode($node,", "middle": " *\n * @author Wouter J <waldio.webdesign@gmail.com>\n */\nclass XmlReferenceDumper\n{\n private ?string $reference = null;\n\n public function dump(ConfigurationInterface $configuration, ?string $namespace = null): string\n {\n ", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Dumper/XmlReferenceDumper.php", "language": "php", "file_size": 9752, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\ConfigCache;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Config\\Resource\\SelfCheckingResourceChecker;\nuse Symfony\\Component\\Config\\Tests\\Resource\\ResourceStub;\n\nclass ConfigCacheTest extends Test", "suffix": "(), 'config_');\n }\n\n protected function tearDown(): void\n {\n $files = [$this->cacheFile, $this->cacheFile.'.meta', $this->metaFile];\n\n foreach ($files as $file) {\n if (file_exists($file)) {\n @unlink($file);\n", "middle": "Case\n{\n private string $cacheFile;\n private string $metaFile;\n\n protected function setUp(): void\n {\n $this->cacheFile = tempnam(sys_get_temp_dir(), 'config_');\n $this->metaFile = tempnam(sys_get_temp_dir", "meta": {"filepath": "src/Symfony/Component/Config/Tests/ConfigCacheTest.php", "language": "php", "file_size": 3284, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Config\\ResourceCheckerConfigCache;\nuse Symfony\\Component\\Config\\ResourceCheckerInterface;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\ResourceWithVeryVeryVeryVeryVeryVeryVeryVeryLongName;\nuse Symfony\\Component\\Config\\Tests\\Resource\\ResourceStub;\n\nclass ResourceCheckerConfigCacheTest extends TestCase\n{\n private string $cacheF", "suffix": "ted function tearDown(): void\n {\n $files = [$this->cacheFile, $this->cacheFile.'.meta', $this->cacheFile.'.meta.json', $this->metaFile, $this->metaFile.'.json'];\n\n foreach ($files as $file) {\n if (file_exists($file)) {\n ", "middle": "ile;\n private string $metaFile;\n\n protected function setUp(): void\n {\n $this->cacheFile = tempnam(sys_get_temp_dir(), 'config_');\n $this->metaFile = tempnam(sys_get_temp_dir(), 'config_');\n }\n\n protec", "meta": {"filepath": "src/Symfony/Component/Config/Tests/ResourceCheckerConfigCacheTest.php", "language": "php", "file_size": 6546, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Util\\Exception\\InvalidXmlException;\nuse Symfony\\Component\\Config\\Util\\XmlUtils;\n\nclass XmlUtilsTest extends TestCase\n{\n public function testLoadFile()\n {\n $fixtures = __DIR__.'/../Fixtures/Util/';\n\n try {\n XmlUtils::loadFile($fixtures);\n $this->fail();\n } catch (\\InvalidAr", "suffix": "atch (\\InvalidArgumentException $e) {\n $this->assertStringContainsString('is not a file', $e->getMessage());\n }\n\n try {\n if ('\\\\' === \\DIRECTORY_SEPARATOR) {\n $this->markTestSkipped('chmod is not supported", "middle": "gumentException $e) {\n $this->assertStringContainsString('is not a file', $e->getMessage());\n }\n\n try {\n XmlUtils::loadFile($fixtures.'non_existing.xml');\n $this->fail();\n } c", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Util/XmlUtilsTest.php", "language": "php", "file_size": 8638, "cut_index": 716, "middle_length": 229}} {"prefix": "s\\Fixtures\\Configuration;\n\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\n\nclass CustomNode implements NodeInterface\n{\n public function getName(): string\n {\n return 'custom_node';\n }\n\n public function getPath(): string\n {\n return 'custom';\n }\n\n public function isRequired(): bool\n {\n return false;\n }\n\n public function hasDefaultValue(): bool\n {\n return true;\n }\n\n public function getDefaultValue(): mixed\n {\n return true;\n ", "suffix": "d\n {\n return $value;\n }\n\n public function merge(mixed $leftSide, mixed $rightSide): mixed\n {\n return array_merge($leftSide, $rightSide);\n }\n\n public function finalize(mixed $value): mixed\n {\n return $value;\n }\n}", "middle": "}\n\n public function normalize(mixed $value): mixe", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Fixtures/Configuration/CustomNode.php", "language": "php", "file_size": 868, "cut_index": 559, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Resource;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\ClassExistenceResource;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\BadFileName;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\BadParent;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\ParseError;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\Resource\\Condition", "suffix": " function testGetResource()\n {\n $res = new ClassExistenceResource('BarClass');\n $this->assertSame('BarClass', $res->getResource());\n }\n\n public function testIsFreshWhenClassDoesNotExist()\n {\n $res = new ClassExistenceResour", "middle": "alClass;\n\nclass ClassExistenceResourceTest extends TestCase\n{\n public function testToString()\n {\n $res = new ClassExistenceResource('BarClass');\n $this->assertSame('BarClass', (string) $res);\n }\n\n public", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Resource/ClassExistenceResourceTest.php", "language": "php", "file_size": 3803, "cut_index": 614, "middle_length": 229}} {"prefix": "on implements ParentNodeDefinitionInterface\n{\n protected bool $performDeepMerging = true;\n protected bool $ignoreExtraKeys = false;\n protected bool $removeExtraKeys = true;\n /**\n * @var NodeDefinition<$this>[]\n */\n protected array $children = [];\n /**\n * @var NodeDefinition<$this>\n */\n protected NodeDefinition $prototype;\n protected bool $atLeastOne = false;\n protected bool $allowNewKeys = true;\n protected ?string $key = null;\n protected bool $removeKeyItem =", "suffix": "ormalizeKeys = true;\n\n /**\n * @var list<ExprBuilder::TYPE_*>|null\n */\n protected ?array $allowedTypes = null;\n\n /**\n * @param TParent $parent\n */\n public function __construct(?string $name, ?NodeParentInterface $parent = null)\n ", "middle": " false;\n protected bool $addDefaults = false;\n protected int|string|array|false|null $addDefaultChildren = false;\n /**\n * @var NodeBuilder<static>\n */\n protected NodeBuilder $nodeBuilder;\n protected bool $n", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php", "language": "php", "file_size": 20319, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\n/**\n * This class builds merge conditions.\n *\n * @template T of NodeDefinition\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass MergeBuilder\n{\n public bool $allowFalse = false;\n public bool $allowOverwrite ", "suffix": "lic function allowUnset(bool $allow = true): static\n {\n $this->allowFalse = $allow;\n\n return $this;\n }\n\n /**\n * Sets whether the node can be overwritten.\n *\n * @return $this\n */\n public function denyOverwrite(bool ", "middle": "= true;\n\n /**\n * @param T $node\n */\n public function __construct(\n protected NodeDefinition $node,\n ) {\n }\n\n /**\n * Sets whether the node can be unset.\n *\n * @return $this\n */\n pub", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php", "language": "php", "file_size": 1264, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidDefinitionException;\n\n/**\n * Abstract class that contains common code of integer and float node definitions.\n *\n * @template TParent of NodeParentInterface|null = null\n *\n * @extends ScalarNodeDefinition<TParent>", "suffix": "* Ensures that the value is smaller than the given reference.\n *\n * @return $this\n *\n * @throws \\InvalidArgumentException when the constraint is inconsistent\n */\n public function max(int|float $max): static\n {\n if (isset($t", "middle": "\n *\n * @author David Jeanmonod <david.jeanmonod@gmail.com>\n */\nabstract class NumericNodeDefinition extends ScalarNodeDefinition\n{\n protected int|float|null $min = null;\n protected int|float|null $max = null;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php", "language": "php", "file_size": 2023, "cut_index": 563, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\ScalarNode;\n\n/**\n * This class provides a fluent interface for defining a node.\n *\n * @template TParent of NodeParentInterface|null = null\n *\n * @extends VariableNodeDefinition<TPa", "suffix": "uthor Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ScalarNodeDefinition extends VariableNodeDefinition\n{\n protected function instantiateNode(): ScalarNode\n {\n return new ScalarNode($this->name, $this->parent, $this->pathSeparator);\n ", "middle": "rent>\n *\n * @a", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/ScalarNodeDefinition.php", "language": "php", "file_size": 789, "cut_index": 514, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Configurator;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\BooleanNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\EnumNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\FloatNod", "suffix": "\\Component\\Config\\Definition\\Builder\\StringNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Builder\\VariableNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Loader\\DefinitionFileLoa", "middle": "eDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\IntegerNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\ScalarNodeDefinition;\nuse Symfony", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Configurator/DefinitionConfigurator.php", "language": "php", "file_size": 2611, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Loader;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Configurator\\DefinitionConfigurator;\nuse Symfony\\Component\\Config\\FileLocatorInterface;\nuse Symfony\\Component\\Config\\Loader\\FileLoader;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * DefinitionFileLo", "suffix": "e TreeBuilder $treeBuilder,\n FileLocatorInterface $locator,\n private ?ContainerBuilder $container = null,\n ) {\n parent::__construct($locator);\n }\n\n public function load(mixed $resource, ?string $type = null): mixed\n {\n ", "middle": "ader loads config definitions from a PHP file.\n *\n * The PHP file is required.\n *\n * @author Yonel Ceruto <yonelceruto@gmail.com>\n */\nclass DefinitionFileLoader extends FileLoader\n{\n public function __construct(\n privat", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Loader/DefinitionFileLoader.php", "language": "php", "file_size": 3242, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Exception\\LoaderLoadException;\n\nclass LoaderLoadExceptionTest extends TestCase\n{\n public function testMessageCannotLoadResource()\n {\n $exception = new LoaderLoadException('resource', null);\n $this->assertEquals('Cannot load resource \"resource", "suffix": "resource \"resource\". Make sure there is a loader supporting the \"foobar\" type.', $exception->getMessage());\n }\n\n public function testMessageCannotLoadResourceWithAnnotationType()\n {\n $exception = new LoaderLoadException('resource', null, 0,", "middle": "\".', $exception->getMessage());\n }\n\n public function testMessageCannotLoadResourceWithType()\n {\n $exception = new LoaderLoadException('resource', null, 0, null, 'foobar');\n $this->assertEquals('Cannot load ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Exception/LoaderLoadExceptionTest.php", "language": "php", "file_size": 4020, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Fixtures\\Configuration;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\StringBackedTestEnum;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\TestEnum;\n\nclass ExampleConfiguration implements ConfigurationInterface\n{\n ", "suffix": "')\n ->fixXmlConfig('cms_page')\n ->children()\n ->booleanNode('boolean')->defaultTrue()->end()\n ->scalarNode('scalar_empty')->end()\n ->scalarNode('scalar_null')->defaultNull()->end()\n ", "middle": " public function getConfigTreeBuilder(): TreeBuilder\n {\n $treeBuilder = new TreeBuilder('acme_root');\n\n $treeBuilder->getRootNode()\n ->fixXmlConfig('parameter')\n ->fixXmlConfig('connection", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Fixtures/Configuration/ExampleConfiguration.php", "language": "php", "file_size": 5049, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\EnumNode;\n\n/**\n * Enum Node Definition.\n *\n * @template TParent of NodeParentInterface|null\n *\n * @extends ScalarNodeDefinition<TParent>\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass", "suffix": " throw new \\InvalidArgumentException('->values() must be called with at least one value.');\n }\n\n $this->values = $values;\n\n return $this;\n }\n\n /**\n * @param class-string<\\UnitEnum> $enumFqcn\n *\n * @return $thi", "middle": " EnumNodeDefinition extends ScalarNodeDefinition\n{\n private array $values;\n private string $enumFqcn;\n\n /**\n * @return $this\n */\n public function values(array $values): static\n {\n if (!$values) {\n ", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php", "language": "php", "file_size": 1967, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\n/**\n * This class builds validation conditions.\n *\n * @template T of NodeDefinition\n *\n * @author Christophe Coevoet <stof@notk.org>\n */\nclass ValidationBuilder\n{\n /**\n * @var (ExprBuilder<T>|\\Closure)[]\n */\n ", "suffix": "n builder to build it if null is provided.\n *\n * @return ($closure is \\Closure ? $this : ExprBuilder<T>)\n */\n public function rule(?\\Closure $closure = null): ExprBuilder|static\n {\n if ($closure) {\n $this->rules[] = $clo", "middle": " public array $rules = [];\n\n /**\n * @param T $node\n */\n public function __construct(\n protected NodeDefinition $node,\n ) {\n }\n\n /**\n * Registers a closure to run as normalization or an expressio", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/ValidationBuilder.php", "language": "php", "file_size": 1114, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Exception\\FileLocatorFileNotFoundException;\nuse Symfony\\Component\\Config\\FileLocator;\n\nclass FileLocatorTest extends TestCase\n{\n #[DataProvider('getIsAbsolutePathTests')]\n public function testIsAbsolutePath(string $path", "suffix": " an absolute path');\n }\n\n public static function getIsAbsolutePathTests(): array\n {\n return [\n ['/foo.xml'],\n ['c:\\\\\\\\foo.xml'],\n ['c:/foo.xml'],\n ['\\\\server\\\\foo.xml'],\n ['https://serv", "middle": ")\n {\n $loader = new FileLocator([]);\n $r = new \\ReflectionObject($loader);\n $m = $r->getMethod('isAbsolutePath');\n\n $this->assertTrue($m->invoke($loader, $path), '->isAbsolutePath() returns true for", "meta": {"filepath": "src/Symfony/Component/Config/Tests/FileLocatorTest.php", "language": "php", "file_size": 4133, "cut_index": 614, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\IntegerNode;\n\n/**\n * This class provides a fluent interface for defining an integer node.\n *\n * @template TParent of NodeParentInterface|null = null\n *\n * @extends NumericNodeDefiniti", "suffix": "nmonod@gmail.com>\n */\nclass IntegerNodeDefinition extends NumericNodeDefinition\n{\n protected function instantiateNode(): IntegerNode\n {\n return new IntegerNode($this->name, $this->parent, $this->min, $this->max, $this->pathSeparator);\n }\n}\n", "middle": "on<TParent>\n *\n * @author Jeanmonod David <david.jea", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/IntegerNodeDefinition.php", "language": "php", "file_size": 825, "cut_index": 517, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Builder;\n\n/**\n * This class builds normalization conditions.\n *\n * @template T of NodeDefinition\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass NormalizationBuilder\n{\n /**\n * @var (ExprBuilder<T>|\\Closure)[]\n */\n public", "suffix": " * Registers a key to remap to its plural form.\n *\n * @param string $key The key to remap\n * @param string|null $plural The plural of the key in case of irregular plural\n *\n * @return $this\n */\n public function remap(", "middle": " array $before = [];\n public array $declaredTypes = [];\n public array $remappings = [];\n\n /**\n * @param T $node\n */\n public function __construct(\n protected NodeDefinition $node,\n ) {\n }\n\n /**\n", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php", "language": "php", "file_size": 1636, "cut_index": 537, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Fixtures\\Builder;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder as BaseNodeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\n\nclass NodeBuilder extends BaseNodeBuilder\n{\n public function barNode(?string $name): NodeDefinition\n {\n ", "suffix": "ted function getNodeClass(string $type): string\n {\n return match ($type) {\n 'bar',\n 'variable' => __NAMESPACE__ . '\\\\' . ucfirst($type) . 'NodeDefinition',\n default => parent::getNodeClass($type),\n };\n }", "middle": " return $this->node($name, 'bar');\n }\n\n protec", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Fixtures/Builder/NodeBuilder.php", "language": "php", "file_size": 870, "cut_index": 559, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Definition\\Dumper;\n\nuse Symfony\\Component\\Config\\Definition\\ArrayNode;\nuse Symfony\\Component\\Config\\Definition\\BaseNode;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Definition\\EnumNode;\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\nuse Symfony\\Component\\Config\\Definition\\PrototypedArrayNode;\nuse Symfony\\Component\\Config\\Definition\\ScalarNode;\nuse Symfony\\Component\\Yaml\\Inline;\n\n/**\n", "suffix": "nfigurationInterface $configuration): string\n {\n return $this->dumpNode($configuration->getConfigTreeBuilder()->buildTree());\n }\n\n public function dumpAtPath(ConfigurationInterface $configuration, string $path): string\n {\n $rootNo", "middle": " * Dumps a Yaml reference configuration for the given configuration/node instance.\n *\n * @author Kevin Bond <kevinbond@gmail.com>\n */\nclass YamlReferenceDumper\n{\n private ?string $reference = null;\n\n public function dump(Co", "meta": {"filepath": "src/Symfony/Component/Config/Definition/Dumper/YamlReferenceDumper.php", "language": "php", "file_size": 7918, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Definition\\NodeInterface;\n\nclass NormalizationTest extends TestCase\n{\n #[DataProvider('getEncoderTests')]\n public function testNormalizeEncoders($denormalized)\n {\n ", "suffix": " ->useAttributeAsKey('class')\n ->prototype('array')\n ->beforeNormalization()->ifString()->then(static fn ($v) => ['algorithm' => $v])->end()\n ->children()\n ", "middle": " $tb = new TreeBuilder('root_name', 'array');\n $tree = $tb\n ->getRootNode()\n ->fixXmlConfig('encoder')\n ->children()\n ->node('encoders', 'array')\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php", "language": "php", "file_size": 6825, "cut_index": 716, "middle_length": 229}} {"prefix": "n\\ArrayNode;\nuse Symfony\\Component\\Config\\Definition\\PrototypedArrayNode;\nuse Symfony\\Component\\Config\\Definition\\ScalarNode;\nuse Symfony\\Component\\Config\\Definition\\VariableNode;\n\nclass PrototypedArrayNodeTest extends TestCase\n{\n public function testGetDefaultValueReturnsAnEmptyArrayForPrototypes()\n {\n $node = new PrototypedArrayNode('root');\n $prototype = new ArrayNode(null, $node);\n $node->setPrototype($prototype);\n $this->assertSame([], $node->getDefaultValue());\n }\n", "suffix": "node->setDefaultValue(['test']);\n $this->assertEquals(['test'], $node->getDefaultValue());\n }\n\n // a remapped key (e.g. \"mapping\" -> \"mappings\") should be unset after being used\n public function testRemappedKeysAreUnset()\n {\n $nod", "middle": "\n public function testGetDefaultValueReturnsDefaultValueForPrototypes()\n {\n $node = new PrototypedArrayNode('root');\n $prototype = new ArrayNode(null, $node);\n $node->setPrototype($prototype);\n $", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php", "language": "php", "file_size": 13102, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Tests;\n\nuse Symfony\\Component\\BrowserKit\\CookieJar;\nuse Symfony\\Component\\BrowserKit\\History;\nuse Symfony\\Component\\BrowserKit\\HttpBrowser;\nuse Symfony\\Component\\BrowserKit\\Response;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse", "suffix": "null)\n {\n $client = new MockHttpClient(function (string $method, string $url, array $options) {\n if (null === $this->nextResponse) {\n return new MockResponse();\n }\n\n return new MockResponse($this->n", "middle": ";\n\nclass TestHttpClient extends HttpBrowser\n{\n protected ?Response $nextResponse = null;\n protected string $nextScript;\n\n public function __construct(array $server = [], ?History $history = null, ?CookieJar $cookieJar = ", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/TestHttpClient.php", "language": "php", "file_size": 2239, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\BrowserKit\\AbstractBrowser;\nuse Symfony\\Component\\BrowserKit\\Cookie;\nuse Symfony\\Component\\BrowserKit\\CookieJar;\nuse Symfony\\Compone", "suffix": "ValueSame('foo', 'bar', false, '/path');\n $this->assertTrue($constraint->evaluate($browser, '', true));\n $constraint = new BrowserCookieValueSame('foo', 'bar', true, '/path');\n $this->assertTrue($constraint->evaluate($browser, '', true", "middle": "nt\\BrowserKit\\Test\\Constraint\\BrowserCookieValueSame;\n\nclass BrowserCookieValueSameTest extends TestCase\n{\n public function testConstraint()\n {\n $browser = $this->getBrowser();\n $constraint = new BrowserCookie", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php", "language": "php", "file_size": 1747, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Tests\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\BrowserKit\\AbstractBrowser;\nuse Symfony\\Component\\BrowserKit\\Cookie;\nuse Symfony\\Component\\BrowserKit\\CookieJar;\nuse Symfony\\Component\\BrowserKit\\Test\\Constra", "suffix": "sertTrue($constraint->evaluate($browser, '', true));\n $constraint = new BrowserHasCookie('foo', '/path', 'example.com');\n $this->assertTrue($constraint->evaluate($browser, '', true));\n $constraint = new BrowserHasCookie('bar');\n ", "middle": "int\\BrowserHasCookie;\n\nclass BrowserHasCookieTest extends TestCase\n{\n public function testConstraint()\n {\n $browser = $this->getBrowser();\n $constraint = new BrowserHasCookie('foo', '/path');\n $this->as", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php", "language": "php", "file_size": 2457, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\BrowserKit\\AbstractBrowser;\n\nfinal class BrowserCookieValueSame extends Constraint\n{\n public function __construct(\n private string $name,\n private string $val", "suffix": ");\n if ('/' !== $this->path) {\n $str .= \\sprintf(' with path \"%s\"', $this->path);\n }\n if ($this->domain) {\n $str .= \\sprintf(' for domain \"%s\"', $this->domain);\n }\n $str .= \\sprintf(' with %svalue \"%", "middle": "ue,\n private bool $raw = false,\n private string $path = '/',\n private ?string $domain = null,\n ) {\n }\n\n public function toString(): string\n {\n $str = \\sprintf('has cookie \"%s\"', $this->name", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Test/Constraint/BrowserCookieValueSame.php", "language": "php", "file_size": 1634, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\BrowserKit\\AbstractBrowser;\n\nfinal class BrowserHasCookie extends Constraint\n{\n public function __construct(\n private string $name,\n private stri", "suffix": "sprintf(' with path \"%s\"', $this->path);\n }\n if ($this->domain) {\n $str .= \\sprintf(' for domain \"%s\"', $this->domain);\n }\n\n return $str;\n }\n\n /**\n * @param AbstractBrowser $browser\n */\n protected fun", "middle": "ng $path = '/',\n private ?string $domain = null,\n ) {\n }\n\n public function toString(): string\n {\n $str = \\sprintf('has cookie \"%s\"', $this->name);\n if ('/' !== $this->path) {\n $str .= \\", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Test/Constraint/BrowserHasCookie.php", "language": "php", "file_size": 1326, "cut_index": 524, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\BrowserKit\\AbstractBrowser;\n\nfinal class BrowserHistoryIsOnFirstPage extends Constraint\n{\n public function toString(): string\n {\n return 'is on the first page';\n }\n\n protected function matches($other): bool\n {\n if (", "suffix": "row new \\LogicException('Can only test on an AbstractBrowser instance.');\n }\n\n return $other->getHistory()->isFirstPage();\n }\n\n protected function failureDescription($other): string\n {\n return 'the Browser history '.$this->toS", "middle": "!$other instanceof AbstractBrowser) {\n th", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Test/Constraint/BrowserHistoryIsOnFirstPage.php", "language": "php", "file_size": 931, "cut_index": 606, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Test\\Constraint;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\BrowserKit\\AbstractBrowser;\n\nfinal class BrowserHistoryIsOnLastPage extends Constraint\n{\n public function toString(): string\n {\n return 'is on the last page';\n }\n\n protected function matches($other): bool\n {\n if (!$", "suffix": "w new \\LogicException('Can only test on an AbstractBrowser instance.');\n }\n\n return $other->getHistory()->isLastPage();\n }\n\n protected function failureDescription($other): string\n {\n return 'the Browser history '.$this->toStri", "middle": "other instanceof AbstractBrowser) {\n thro", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Test/Constraint/BrowserHistoryIsOnLastPage.php", "language": "php", "file_size": 928, "cut_index": 606, "middle_length": 52}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath;\n\n/**\n * Declares the return type of a custom JsonPath function as defined in RFC 9535.\n *\n * @see https://datatracker.ietf.org/doc/html/rfc9535#name-type-system-for-function-ex\n */\nenum FunctionReturnType: string\n{\n /**\n * A JSON valu", "suffix": "Value = 'value';\n\n /**\n * A boolean result usable as a filter expression (e.g. existence tests).\n */\n case Logical = 'logical';\n\n /**\n * A nodelist (array of matched nodes), not directly comparable.\n */\n case Nodes = 'nodes';\n}\n", "middle": "e that can be used in comparisons.\n */\n case ", "meta": {"filepath": "src/Symfony/Component/JsonPath/FunctionReturnType.php", "language": "php", "file_size": 825, "cut_index": 517, "middle_length": 52}} {"prefix": "nterface<callable(mixed ...$arguments): mixed>|null $functionsProvider\n * @param array<string, array{arity?: int|null, return_type?: FunctionReturnType|null}> $functionsMetadata\n */\n public function __construct(\n private readonly mixed $raw,\n private readonly ?ContainerInterface $functionsProvider = null,\n private readonly array $functionsMetadata = [],\n ) {\n if (!\\is_string($raw) && !\\is_resource($raw)) {\n throw new InvalidArgumentException(\\spr", "suffix": "ry);\n }\n\n private function evaluate(JsonPath $query): array\n {\n try {\n if ($this->isComplexBracketExpression($query)) {\n preg_match('/^\\$\\[([^\\[\\]]+)]$/', $query, $matches);\n\n if (\\is_resource($json ", "middle": "intf('Expected string or resource, got \"%s\".', get_debug_type($raw)));\n }\n }\n\n public function find(string|JsonPath $query): array\n {\n return $this->evaluate(\\is_string($query) ? new JsonPath($query) : $que", "meta": {"filepath": "src/Symfony/Component/JsonPath/JsonCrawler.php", "language": "php", "file_size": 42303, "cut_index": 2151, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath;\n\nuse Symfony\\Component\\JsonPath\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonPath\\Exception\\JsonCrawlerException;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\ninterface JsonCrawlerInterface\n{\n /**\n * @r", "suffix": " * @throws InvalidArgumentException When the JSON string provided to the crawler cannot be decoded\n * @throws JsonCrawlerException When a syntax error occurs in the provided JSON path\n */\n public function find(string|JsonPath $query): ar", "middle": "eturn list<array|string|float|int|bool|null>\n *\n", "meta": {"filepath": "src/Symfony/Component/JsonPath/JsonCrawlerInterface.php", "language": "php", "file_size": 835, "cut_index": 520, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n *\n * @immutable\n */\nfinal class JsonPath\n{\n /**\n * @param non-empty-string $path\n */\n public function __construct(\n private readonly string $path = '$',\n ) {\n }\n\n public function key(string $key): ", "suffix": " }\n\n public function deepScan(): static\n {\n return new self($this->path.'..');\n }\n\n public function all(): static\n {\n return new self($this->path.'[*]');\n }\n\n public function first(): static\n {\n return new self(", "middle": "static\n {\n $escaped = $this->escapeKey($key);\n\n return new self($this->path.'[\"'.$escaped.'\"]');\n }\n\n public function index(int $index): static\n {\n return new self($this->path.'['.$index.']');\n ", "meta": {"filepath": "src/Symfony/Component/JsonPath/JsonPath.php", "language": "php", "file_size": 2206, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Contracts\\Service\\ServiceProviderInterface;\n\nfinal class JsonPathCrawler implements JsonPathCrawlerInterface\n{\n /**\n * @param ContainerInterface|ServiceProviderInterface<callable(mi", "suffix": "eadonly ?ContainerInterface $functionsProvider = null,\n private readonly array $functionsMetadata = [],\n ) {\n }\n\n /**\n * @param resource|string $raw\n */\n public function crawl(mixed $raw): JsonCrawlerInterface\n {\n retur", "middle": "xed ...$arguments): mixed>|null $functionsProvider\n * @param array<string, array{arity?: int|null, return_type?: FunctionReturnType|null}> $functionsMetadata\n */\n public function __construct(\n private r", "meta": {"filepath": "src/Symfony/Component/JsonPath/JsonPathCrawler.php", "language": "php", "file_size": 1085, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath;\n\nuse Symfony\\Component\\JsonPath\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\JsonPath\\Exception\\JsonCrawlerException;\nuse Symfony\\Component\\JsonPath\\Tokenizer\\JsonPathToken;\nuse Symfony\\Component\\JsonPath\\Tokenizer\\TokenType;\nuse Symfony\\Component\\JsonStreamer\\Read\\Splitter;\n\n/**\n * Get the smallest deserializable JSON string from a list of tokens that doesn't need any processing.\n *\n * @author Alexandre Daubois <alex.daubo", "suffix": "blic static function findSmallestDeserializableStringAndPath(array $tokens, mixed $json): array\n {\n if (!\\is_resource($json)) {\n throw new InvalidArgumentException('The JSON parameter must be a resource.');\n }\n\n $currentO", "middle": "is@gmail.com>\n *\n * @internal\n */\nfinal class JsonPathUtils\n{\n /**\n * @param JsonPathToken[] $tokens\n * @param resource $json\n *\n * @return array{json: string, tokens: list<JsonPathToken>}\n */\n pu", "meta": {"filepath": "src/Symfony/Component/JsonPath/JsonPathUtils.php", "language": "php", "file_size": 8313, "cut_index": 716, "middle_length": 229}} {"prefix": "TERAL_REGEX = '(true|false|null|\\d+(\\.\\d+)?([eE][+-]?\\d+)?|\\'[^\\']*\\'|\"[^\"]*\")';\n\n /**\n * @return JsonPathToken[]\n */\n public static function tokenize(JsonPath $query): array\n {\n $tokens = [];\n $current = '';\n $inBracket = false;\n $bracketDepth = 0;\n $inFilter = false;\n $inQuote = false;\n $quoteChar = '';\n $filterParenthesisDepth = 0;\n $filterBracketDepth = 0;\n $hasContentAfterRoot = false;\n\n $chars = mb_str_split(", "suffix": " if ($i >= $length || '$' !== $chars[$i]) {\n throw new InvalidJsonPathException('expression must start with $.');\n }\n\n $rootIndex = $i;\n if ($rootIndex + 1 < $length) {\n $hasContentAfterRoot = true;\n }\n", "middle": "(string) $query);\n $length = \\count($chars);\n\n if (0 === $length) {\n throw new InvalidJsonPathException('empty JSONPath expression.');\n }\n\n $i = self::skipWhitespace($chars, 0, $length);\n ", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tokenizer/JsonPathTokenizer.php", "language": "php", "file_size": 22591, "cut_index": 1331, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Tests;\n\nuse Psr\\Container\\ContainerInterface;\n\ntrait FunctionsLocatorTrait\n{\n private function createFunctionsLocator(array $functions): ContainerInterface\n {\n return new class($functions) implements ContainerInterface {\n ", "suffix": "throw new \\RuntimeException(\\sprintf('Unknown custom JSONPath function \"%s\".', $id));\n }\n\n return $this->functions[$id];\n }\n\n public function has(string $id): bool\n {\n return iss", "middle": " public function __construct(private array $functions)\n {\n }\n\n public function get(string $id): mixed\n {\n if (!isset($this->functions[$id])) {\n ", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tests/FunctionsLocatorTrait.php", "language": "php", "file_size": 1058, "cut_index": 513, "middle_length": 229}} {"prefix": "nCrawlerTest extends TestCase\n{\n use FunctionsLocatorTrait;\n\n public function testNotStringOrResourceThrows()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('Expected string or resource, got \"int\".');\n\n new JsonCrawler(42);\n }\n\n public function testInvalidInputJson()\n {\n $this->expectException(InvalidJsonStringInputException::class);\n $this->expectExceptionMessage('Invalid JSON input: Syntax error');\n\n (", "suffix": "mixed $value): ?string => \\is_string($value) ? strtoupper($value) : null,\n ]));\n\n $this->assertInstanceOf(JsonPathCrawlerInterface::class, $jsonPathCrawler);\n\n $crawler = $jsonPathCrawler->crawl('{\"items\": [{\"title\": \"hello\"}, {\"title\"", "middle": "new JsonCrawler('invalid'))->find('$..*');\n }\n\n public function testJsonPathCrawlerCreatesJsonCrawler()\n {\n $jsonPathCrawler = new JsonPathCrawler($this->createFunctionsLocator([\n 'upper' => static fn (", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tests/JsonCrawlerTest.php", "language": "php", "file_size": 28049, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonPath\\Exception\\JsonCrawlerException;\nuse Symfony\\Component\\JsonPath\\JsonCrawler;\n\nfinal class JsonPathComplianceTestSuiteTest extends TestCase\n{\n private const COMPLIANCE_TEST_SUITE_FILE = 'vendor/jsonpath-standard/jsonpath", "suffix": " === $selector) {\n $this->markTestSkipped('The JsonPath compliance test suite is not available. Did you run \"composer update\"?');\n }\n\n $jsonCrawler = new JsonCrawler(json_encode($document));\n\n if ($invalidSelector) {\n ", "middle": "-compliance-test-suite/cts.json';\n\n #[DataProvider('complianceCaseProvider')]\n public function testComplianceTestCase(?string $selector, mixed $document, array $expectedResults, bool $invalidSelector)\n {\n if (null", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tests/JsonPathComplianceTestSuiteTest.php", "language": "php", "file_size": 4678, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonPath\\JsonPath;\n\nclass JsonPathTest extends TestCase\n{\n public function testBuildPath()\n {\n $path = new JsonPath();\n $path = $path->key('users')\n ->index(0)\n ->key('address');\n\n ", "suffix": " $path = new JsonPath();\n $path = $path->key('users')\n ->filter('@.age > 18');\n\n $this->assertSame('$[\"users\"][?(@.age > 18)]', (string) $path);\n }\n\n public function testAll()\n {\n $path = new JsonPath();\n $", "middle": "$this->assertSame('$[\"users\"][0][\"address\"]', (string) $path);\n $this->assertSame('$[\"users\"][0][\"address\"]..[\"city\"]', (string) $path->deepScan()->key('city'));\n }\n\n public function testBuildWithFilter()\n {\n ", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tests/JsonPathTest.php", "language": "php", "file_size": 3358, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonPath\\JsonPath;\nuse Symfony\\Component\\JsonPath\\JsonPathUtils;\nuse Symfony\\Component\\JsonPath\\Tokenizer\\JsonPathToken;\nuse Symfony\\Component\\JsonPath\\Tokenizer\\JsonPathTokenizer;\nuse Symfony\\Component\\JsonPath\\Tokenizer\\TokenType;\n\nclass JsonPathUtilsTest extends TestCase\n{\n public function testReduceWithArrayAccess()\n {\n $path = new JsonPath('$.store.book[0].ti", "suffix": "$resource);\n\n $this->assertSame('{\"category\": \"reference\", \"author\": \"Nigel Rees\", \"title\": \"Sayings\", \"price\": 8.95}', $reduced['json']);\n $this->assertEquals([new JsonPathToken(TokenType::Name, 'title')], $reduced['tokens']);\n }\n\n pub", "middle": "tle');\n $resource = self::provideJsonResource();\n\n $reduced = JsonPathUtils::findSmallestDeserializableStringAndPath(\n JsonPathTokenizer::tokenize($path),\n $resource\n );\n\n fclose(", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tests/JsonPathUtilsTest.php", "language": "php", "file_size": 6319, "cut_index": 716, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonPath\\Attribute\\AsJsonPathFunction;\n\nclass AsJsonPathFunctionTest extends TestCase\n{\n public function testAttributeStoresFunctionName()\n {\n $attribute = new AsJsonPathFunction('upper')", "suffix": "me);\n }\n\n public function testAttributeTargetsClassesOnly()\n {\n $reflection = new \\ReflectionClass(AsJsonPathFunction::class);\n $attribute = $reflection->getAttributes(\\Attribute::class)[0]->newInstance();\n\n $this->assertSame(", "middle": ";\n\n $this->assertSame('upper', $attribute->na", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tests/Attribute/AsJsonPathFunctionTest.php", "language": "php", "file_size": 909, "cut_index": 547, "middle_length": 52}} {"prefix": "ion\\InvalidJsonPathException;\nuse Symfony\\Component\\JsonPath\\JsonPath;\nuse Symfony\\Component\\JsonPath\\Tokenizer\\JsonPathTokenizer;\nuse Symfony\\Component\\JsonPath\\Tokenizer\\TokenType;\n\nclass JsonPathTokenizerTest extends TestCase\n{\n #[DataProvider('simplePathProvider')]\n public function testSimplePath(string $path, array $expectedTokens)\n {\n $jsonPath = new JsonPath($path);\n $tokens = JsonPathTokenizer::tokenize($jsonPath);\n\n $this->assertCount(\\count($expectedTokens), $tokens);", "suffix": "implePathProvider(): array\n {\n return [\n 'root only' => [\n '$',\n [],\n ],\n 'simple property' => [\n '$.store',\n [[TokenType::Name, 'store']],\n ]", "middle": "\n foreach ($tokens as $i => $token) {\n $this->assertSame($expectedTokens[$i][0], $token->type);\n $this->assertSame($expectedTokens[$i][1], $token->value);\n }\n }\n\n public static function s", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tests/Tokenizer/JsonPathTokenizerTest.php", "language": "php", "file_size": 13886, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Tests\\Functions;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonPath\\Exception\\JsonCrawlerException;\nuse Symfony\\Component\\JsonPath\\FunctionReturnType;\nuse Symfony\\Component\\JsonPath\\JsonCrawler;\nuse Symfony\\Component\\JsonPath\\Tests\\FunctionsLocatorTrait;\n\nclass CustomFunctionTest extends TestCase\n{\n use FunctionsLocatorTrait;\n\n public function testCustomFunctionWithSingleArgument()\n {\n $upperFunction = static", "suffix": "s->createFunctionsLocator(['upper' => $upperFunction]));\n\n $result = $crawler->find('$.items[?upper(@.title) == \"HELLO\"]');\n $this->assertCount(1, $result);\n $this->assertEquals('hello', $result[0]['title']);\n }\n\n public function", "middle": " fn (mixed $value): ?string => \\is_string($value) ? strtoupper($value) : null;\n\n $crawler = new JsonCrawler(<<<JSON\n {\"name\": \"test\", \"items\": [{\"title\": \"hello\"}, {\"title\": \"world\"}]}\n JSON, $thi", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tests/Functions/CustomFunctionTest.php", "language": "php", "file_size": 8096, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Tests\\Test;\n\nuse PHPUnit\\Framework\\AssertionFailedError;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\JsonPath\\Test\\JsonPathAssertionsTrait;\n\nclass JsonPathAssertionsTraitTest extends TestCase\n{\n use JsonPathAssertionsTrait;\n\n public function testAssertJsonPathEqualsOk()\n {\n self::assertJsonPathEquals([1], '$.a[2]', self::getSimpleCollectionCrawlerData());\n }\n\n public function testAssertJsonPathEqualsOkWith", "suffix": "lf::assertJsonPathEquals([2], '$.a[2]', self::getSimpleCollectionCrawlerData());\n } catch (AssertionFailedError $exception) {\n self::assertMatchesRegularExpression('/Failed asserting that .+ equals JSON path \"\\$\\.a\\[2]\" result./s', $excep", "middle": "TypeCoercion()\n {\n self::assertJsonPathEquals(['1'], '$.a[2]', self::getSimpleCollectionCrawlerData());\n }\n\n public function testAssertJsonPathEqualsKo()\n {\n $thrown = false;\n try {\n se", "meta": {"filepath": "src/Symfony/Component/JsonPath/Tests/Test/JsonPathAssertionsTraitTest.php", "language": "php", "file_size": 6245, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Test;\n\nuse PHPUnit\\Framework\\Assert;\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse Symfony\\Component\\JsonPath\\JsonPath;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\ntrait JsonPathAssertionsTrait\n{\n /**\n * @throws ExpectationFailedException\n */\n fin", "suffix": "sage);\n }\n\n /**\n * @throws ExpectationFailedException\n */\n final public static function assertJsonPathNotEquals(mixed $expectedValue, JsonPath|string $jsonPath, string $json, string $message = ''): void\n {\n Assert::assertThat($ex", "middle": "al public static function assertJsonPathEquals(mixed $expectedValue, JsonPath|string $jsonPath, string $json, string $message = ''): void\n {\n Assert::assertThat($expectedValue, new JsonPathEquals($jsonPath, $json), $mes", "meta": {"filepath": "src/Symfony/Component/JsonPath/Test/JsonPathAssertionsTrait.php", "language": "php", "file_size": 2729, "cut_index": 563, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\JsonPath\\JsonCrawler;\nuse Symfony\\Component\\JsonPath\\JsonPath;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nclass JsonPathContains extends Constr", "suffix": "intf('is found in elements at JSON path \"%s\"', $this->jsonPath);\n }\n\n protected function matches(mixed $other): bool\n {\n $result = (new JsonCrawler($this->json))->find($this->jsonPath);\n\n return \\in_array($other, $result, $this->stri", "middle": "aint\n{\n public function __construct(\n private JsonPath|string $jsonPath,\n private string $json,\n private bool $strict = true,\n ) {\n }\n\n public function toString(): string\n {\n return \\spr", "meta": {"filepath": "src/Symfony/Component/JsonPath/Test/JsonPathContains.php", "language": "php", "file_size": 1010, "cut_index": 512, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\JsonPath\\JsonCrawler;\nuse Symfony\\Component\\JsonPath\\JsonPath;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nclass JsonPathCount extends Constraint\n{\n public function __construct(\n private JsonPath|string $jsonPath,\n privat", "suffix": "oString(): string\n {\n return \\sprintf('matches expected count of JSON path \"%s\"', $this->jsonPath);\n }\n\n protected function matches(mixed $other): bool\n {\n return $other === \\count((new JsonCrawler($this->json))->find($this->jsonP", "middle": "e string $json,\n ) {\n }\n\n public function t", "meta": {"filepath": "src/Symfony/Component/JsonPath/Test/JsonPathCount.php", "language": "php", "file_size": 929, "cut_index": 606, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\JsonPath\\JsonCrawler;\nuse Symfony\\Component\\JsonPath\\JsonPath;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nclass JsonPathEquals extends Constraint\n{\n public function __construc", "suffix": " private string $json,\n ) {\n }\n\n public function toString(): string\n {\n return \\sprintf('equals JSON path \"%s\" result', $this->jsonPath);\n }\n\n protected function matches(mixed $other): bool\n {\n return (new JsonCrawler($t", "middle": "t(\n private JsonPath|string $jsonPath,\n ", "meta": {"filepath": "src/Symfony/Component/JsonPath/Test/JsonPathEquals.php", "language": "php", "file_size": 909, "cut_index": 547, "middle_length": 52}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\JsonPath\\JsonCrawler;\nuse Symfony\\Component\\JsonPath\\JsonPath;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nclass JsonPathNotContains extends Con", "suffix": "sprintf('is not found in elements at JSON path \"%s\"', $this->jsonPath);\n }\n\n protected function matches(mixed $other): bool\n {\n $result = (new JsonCrawler($this->json))->find($this->jsonPath);\n\n return !\\in_array($other, $result, $th", "middle": "straint\n{\n public function __construct(\n private JsonPath|string $jsonPath,\n private string $json,\n private bool $strict = true,\n ) {\n }\n\n public function toString(): string\n {\n return \\", "meta": {"filepath": "src/Symfony/Component/JsonPath/Test/JsonPathNotContains.php", "language": "php", "file_size": 1018, "cut_index": 512, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\JsonPath\\JsonCrawler;\nuse Symfony\\Component\\JsonPath\\JsonPath;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nclass JsonPathNotEquals extends Constraint\n{\n public function __construct(\n private JsonPath|string $jsonPath,\n pr", "suffix": "on toString(): string\n {\n return \\sprintf('does not equal JSON path \"%s\" result', $this->jsonPath);\n }\n\n protected function matches(mixed $other): bool\n {\n return (new JsonCrawler($this->json))->find($this->jsonPath) != $other;\n ", "middle": "ivate string $json,\n ) {\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Component/JsonPath/Test/JsonPathNotEquals.php", "language": "php", "file_size": 920, "cut_index": 606, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\JsonPath\\JsonCrawler;\nuse Symfony\\Component\\JsonPath\\JsonPath;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nclass JsonPathNotSame extends Constraint\n{\n public function __construct(\n private JsonPath|string $jsonPath,\n priv", "suffix": " toString(): string\n {\n return \\sprintf('is not identical to JSON path \"%s\" result', $this->jsonPath);\n }\n\n protected function matches(mixed $other): bool\n {\n return (new JsonCrawler($this->json))->find($this->jsonPath) !== $other", "middle": "ate string $json,\n ) {\n }\n\n public function", "meta": {"filepath": "src/Symfony/Component/JsonPath/Test/JsonPathNotSame.php", "language": "php", "file_size": 924, "cut_index": 606, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\JsonPath\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Symfony\\Component\\JsonPath\\JsonCrawler;\nuse Symfony\\Component\\JsonPath\\JsonPath;\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nclass JsonPathSame extends Constraint\n{\n public function __construct(\n private JsonPath|string $jsonPath,\n private", "suffix": "String(): string\n {\n return \\sprintf('is identical to JSON path \"%s\" result', $this->jsonPath);\n }\n\n protected function matches(mixed $other): bool\n {\n return (new JsonCrawler($this->json))->find($this->jsonPath) === $other;\n }", "middle": " string $json,\n ) {\n }\n\n public function to", "meta": {"filepath": "src/Symfony/Component/JsonPath/Test/JsonPathSame.php", "language": "php", "file_size": 917, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger;\n\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\n\n/**\n * A message wrapped in an envelope with stamps (configurations, markers, ...).\n *\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nfinal class Envelope\n{\n /**\n * @var array<class-string<StampInterface", "suffix": " array $stamps = [],\n ) {\n foreach ($stamps as $stamp) {\n $this->stamps[$stamp::class][] = $stamp;\n }\n }\n\n /**\n * Makes sure the message is in an Envelope and adds the given stamps.\n *\n * @param StampInter", "middle": ">, list<StampInterface>>\n */\n private array $stamps = [];\n\n /**\n * @param object|Envelope $message\n * @param StampInterface[] $stamps\n */\n public function __construct(\n private object $message,\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Envelope.php", "language": "php", "file_size": 3025, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\nuse Symfony\\Component\\Config\\Definition\\StringNode;\n\nclass StringNodeTest exten", "suffix": " }\n\n #[TestWith([null])]\n #[TestWith([false])]\n #[TestWith([true])]\n #[TestWith([0])]\n #[TestWith([1])]\n #[TestWith([0.0])]\n #[TestWith([0.1])]\n #[TestWith([[]])]\n #[TestWith([['foo' => 'bar']])]\n public function testNormalize", "middle": "ds TestCase\n{\n #[TestWith([''])]\n #[TestWith(['valid string'])]\n public function testNormalize(string $value)\n {\n $node = new StringNode('test');\n $this->assertSame($value, $node->normalize($value));\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/StringNodeTest.php", "language": "php", "file_size": 1193, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition\\Builder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Builder\\BooleanNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidDefinitionException;\n\nclass BooleanNodeDefinitionTest extends TestCase\n{\n public function testCannot", "suffix": "nNodeDefinition('foo');\n $def->cannotBeEmpty();\n }\n\n public function testBooleanNodeWithDefaultNull()\n {\n $def = new BooleanNodeDefinition('foo');\n $def->defaultNull();\n\n $node = $def->getNode();\n $this->assertTr", "middle": "BeEmptyThrowsAnException()\n {\n $this->expectException(InvalidDefinitionException::class);\n $this->expectExceptionMessage('->cannotBeEmpty() is not applicable to BooleanNodeDefinition.');\n $def = new Boolea", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Builder/BooleanNodeDefinitionTest.php", "language": "php", "file_size": 2230, "cut_index": 563, "middle_length": 229}} {"prefix": "efinition\\Builder\\ExprBuilder;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\n\nclass ExprBuilderTest extends TestCase\n{\n public function testAlwaysExpression()\n {\n $test = $this->getTestBuilder()\n ->always($this->returnClosure('new_value'))\n ->end();\n\n $this->assertFinalizedValueIs('new_value', $test);\n }\n\n ", "suffix": " $test, ['key' => true]);\n\n $test = $this->getTestBuilder()\n ->ifTrue(static fn () => true)\n ->then($this->returnClosure('new_value'))\n ->end();\n $this->assertFinalizedValueIs('new_value', $test);\n\n $test =", "middle": "public function testIfTrueExpression()\n {\n $test = $this->getTestBuilder()\n ->ifTrue()\n ->then($this->returnClosure('new_value'))\n ->end();\n $this->assertFinalizedValueIs('new_value',", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php", "language": "php", "file_size": 9411, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition\\Builder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Builder\\FloatNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\IntegerNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder as BaseNodeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Builder\\StringNodeDefi", "suffix": "Type()\n {\n $this->expectException(\\RuntimeException::class);\n $builder = new BaseNodeBuilder();\n $builder->node('', 'foobar');\n }\n\n public function testThrowsAnExceptionWhenTheNodeClassIsNotFound()\n {\n $this->expectE", "middle": "nition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\VariableNodeDefinition as BaseVariableNodeDefinition;\n\nclass NodeBuilderTest extends TestCase\n{\n public function testThrowsAnExceptionWhenTryingToCreateANonRegisteredNode", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Builder/NodeBuilderTest.php", "language": "php", "file_size": 3057, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\nuse Symfony\\Component\\Config\\Definition\\IntegerNode;\nuse Symfony\\Component\\Config\\Definition\\NumericNode;\n\nclass Integer", "suffix": " #[DataProvider('getValidValues')]\n public function testValidNonEmptyValues(int $value)\n {\n $node = new IntegerNode('test');\n $node->setAllowEmptyValue(false);\n\n $this->assertSame($value, $node->finalize($value));\n }\n\n pub", "middle": "NodeTest extends TestCase\n{\n #[DataProvider('getValidValues')]\n public function testNormalize(int $value)\n {\n $node = new IntegerNode('test');\n $this->assertSame($value, $node->normalize($value));\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/IntegerNodeTest.php", "language": "php", "file_size": 2124, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition\\Builder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\BaseNode;\nuse Symfony\\Component\\Config\\Definition\\BooleanNode;\nuse Symfony\\Component\\Config\\Definition\\Builder\\BooleanNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\BarNode;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\Builder\\BarNodeDefinition;\nuse Symfony\\Component\\Con", "suffix": " {\n $builder = new TreeBuilder('custom', 'array', new CustomNodeBuilder());\n\n $nodeBuilder = $builder->getRootNode()->children();\n\n $this->assertInstanceOf(CustomNodeBuilder::class, $nodeBuilder);\n\n $nodeBuilder = $nodeBuilde", "middle": "fig\\Tests\\Fixtures\\Builder\\NodeBuilder as CustomNodeBuilder;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\Builder\\VariableNodeDefinition;\n\nclass TreeBuilderTest extends TestCase\n{\n public function testUsingACustomNodeBuilder()\n", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Builder/TreeBuilderTest.php", "language": "php", "file_size": 6686, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Exception\\ForbiddenOverwriteException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\n\nclass MergeTest extends TestCase\n{\n public function testForbiddenOverwrite()\n {\n $tb = new TreeBuilder('root', 'array');\n $tree = $tb\n ->ge", "suffix": ")\n ;\n\n $a = [\n 'foo' => 'bar',\n ];\n\n $b = [\n 'foo' => 'moo',\n ];\n\n $this->expectException(ForbiddenOverwriteException::class);\n\n $tree->merge($a, $b);\n }\n\n public function testUns", "middle": "tRootNode()\n ->children()\n ->node('foo', 'scalar')\n ->cannotBeOverwritten()\n ->end()\n ->end()\n ->end()\n ->buildTree(", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/MergeTest.php", "language": "php", "file_size": 5159, "cut_index": 716, "middle_length": 229}} {"prefix": "t the doRequest() method.\n *\n * If you want to be able to run requests in their own process (insulated flag),\n * you need to also implement the getScript() method.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @template TRequest of object\n * @template TResponse of object\n */\nabstract class AbstractBrowser\n{\n protected History $history;\n protected CookieJar $cookieJar;\n protected array $server = [];\n protected Request $internalRequest;\n /** @psalm-var TRequest */\n protected obje", "suffix": "sulated = false;\n protected ?string $redirect;\n protected bool $followRedirects = true;\n protected bool $followMetaRefresh = false;\n\n private int $maxRedirects = -1;\n private int $redirectCount = 0;\n private array $redirects = [];\n pri", "middle": "ct $request;\n protected Response $internalResponse;\n /** @psalm-var TResponse */\n protected object $response;\n protected Crawler $crawler;\n protected string|false $wrapContentPattern = false;\n protected bool $in", "meta": {"filepath": "src/Symfony/Component/BrowserKit/AbstractBrowser.php", "language": "php", "file_size": 22949, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit;\n\nuse Symfony\\Component\\BrowserKit\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\BrowserKit\\Exception\\UnexpectedValueException;\n\n/**\n * Cookie represents an HTTP cookie.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Cookie\n{\n /**\n * Handles dates as defined by RFC 2616 section 3.3.1, and also some other\n * non-standard, but common formats.\n */\n private const DATE_FORMATS = [\n 'D, d M", "suffix": "string $expires = null;\n protected string $path;\n protected string $rawValue;\n\n /**\n * Sets a cookie.\n *\n * @param string $name The cookie name\n * @param string|null $value The value of the cookie\n *", "middle": " Y H:i:s T',\n 'D, d-M-y H:i:s T',\n 'D, d-M-Y H:i:s T',\n 'D, d-m-y H:i:s T',\n 'D, d-m-Y H:i:s T',\n 'D M j G:i:s Y',\n 'D M d H:i:s Y T',\n ];\n\n protected string $value;\n protected ?", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Cookie.php", "language": "php", "file_size": 8488, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit;\n\nuse Symfony\\Component\\BrowserKit\\Exception\\LogicException;\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\Mime\\Part\\AbstractPart;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\FormDataPart;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * An implementation of a browser using the HttpClient component\n * to make real HTTP re", "suffix": "__construct(?HttpClientInterface $client = null, ?History $history = null, ?CookieJar $cookieJar = null)\n {\n if (!$client && !class_exists(HttpClient::class)) {\n throw new LogicException(\\sprintf('You cannot use \"%s\" as the HttpClient ", "middle": "quests.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @template-extends AbstractBrowser<Request, Response>\n */\nclass HttpBrowser extends AbstractBrowser\n{\n private HttpClientInterface $client;\n\n public function ", "meta": {"filepath": "src/Symfony/Component/BrowserKit/HttpBrowser.php", "language": "php", "file_size": 5464, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Request\n{\n /**\n * @param string $uri The request URI\n * @param string $method The HTTP method request\n * @param array $parameters The request parameters\n * @param array ", "suffix": " public function __construct(\n protected string $uri,\n protected string $method,\n protected array $parameters = [],\n protected array $files = [],\n protected array $cookies = [],\n protected array $server = [],\n ", "middle": "$files An array of uploaded files\n * @param array $cookies An array of cookies\n * @param array $server An array of server parameters\n * @param string|null $content The raw body data\n */\n", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Request.php", "language": "php", "file_size": 2216, "cut_index": 563, "middle_length": 229}} {"prefix": "Symfony\\Component\\BrowserKit\\CookieJar;\nuse Symfony\\Component\\BrowserKit\\Response;\n\nclass CookieJarTest extends TestCase\n{\n public function testSetGet()\n {\n $cookieJar = new CookieJar();\n $cookieJar->set($cookie = new Cookie('foo', 'bar'));\n\n $this->assertEquals($cookie, $cookieJar->get('foo'), '->set() sets a cookie');\n\n $this->assertNull($cookieJar->get('foobar'), '->get() returns null if the cookie does not exist');\n\n $cookieJar->set($cookie = new Cookie('foo', 'b", "suffix": "t($cookie = new Cookie('foo', 'bar'));\n $cookieJar->expire('foo');\n $this->assertNull($cookieJar->get('foo'), '->get() returns null if the cookie is expired');\n }\n\n public function testAll()\n {\n $cookieJar = new CookieJar();\n ", "middle": "ar', time() - 86400));\n $this->assertNull($cookieJar->get('foo'), '->get() returns null if the cookie is expired');\n }\n\n public function testExpire()\n {\n $cookieJar = new CookieJar();\n $cookieJar->se", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/CookieJarTest.php", "language": "php", "file_size": 10795, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\BrowserKit\\History;\nuse Symfony\\Component\\BrowserKit\\Request;\n\nclass HistoryTest extends TestCase\n{\n public function testAdd()\n {\n $history = new History();\n $history->add(new Request('http://www.example1.com/', 'get'));\n $this->assertSame('http://", "suffix": "current()->getUri(), '->add() adds a request to the history');\n\n $history->add(new Request('http://www.example3.com/', 'get'));\n $history->back();\n $history->add(new Request('http://www.example4.com/', 'get'));\n $this->assertSam", "middle": "www.example1.com/', $history->current()->getUri(), '->add() adds a request to the history');\n\n $history->add(new Request('http://www.example2.com/', 'get'));\n $this->assertSame('http://www.example2.com/', $history->", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/HistoryTest.php", "language": "php", "file_size": 4807, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\BrowserKit\\Request;\n\nclass RequestTest extends TestCase\n{\n public function testGetUri()\n {\n $request = new Request('http://www.example.com/', 'get');\n $this->assertEquals('http://www.example.com/', $reque", "suffix": "(), '->getMethod() returns the method of the request');\n }\n\n public function testGetParameters()\n {\n $request = new Request('http://www.example.com/', 'get', ['foo' => 'bar']);\n $this->assertEquals(['foo' => 'bar'], $request->getPara", "middle": "st->getUri(), '->getUri() returns the URI of the request');\n }\n\n public function testGetMethod()\n {\n $request = new Request('http://www.example.com/', 'get');\n $this->assertEquals('get', $request->getMethod", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/RequestTest.php", "language": "php", "file_size": 2408, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Tests;\n\nuse Symfony\\Component\\BrowserKit\\AbstractBrowser;\nuse Symfony\\Component\\BrowserKit\\Response;\n\nclass TestClient extends AbstractBrowser\n{\n protected ?Response $nextResponse = null;\n protected string $nextScript;\n\n public function s", "suffix": "$request): Response\n {\n if (null === $this->nextResponse) {\n return new Response();\n }\n\n $response = $this->nextResponse;\n $this->nextResponse = null;\n\n return $response;\n }\n\n protected function getScr", "middle": "etNextResponse(Response $response)\n {\n $this->nextResponse = $response;\n }\n\n public function setNextScript(string $script)\n {\n $this->nextScript = $script;\n }\n\n protected function doRequest(object ", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/TestClient.php", "language": "php", "file_size": 1281, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\ArrayNode;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\nuse Symfony\\Component\\Config\\Definition\\ScalarNode;\nuse Symfony\\Component\\Config\\Exception\\LogicException;\n\nclass ScalarNodeTest extends Test", "suffix": "etValidValues(): array\n {\n return [\n [false],\n [true],\n [null],\n [''],\n ['foo'],\n [0],\n [1],\n [0.0],\n [0.1],\n ];\n }\n\n public function ", "middle": "Case\n{\n #[DataProvider('getValidValues')]\n public function testNormalize($value)\n {\n $node = new ScalarNode('test');\n $this->assertSame($value, $node->normalize($value));\n }\n\n public static function g", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/ScalarNodeTest.php", "language": "php", "file_size": 5332, "cut_index": 716, "middle_length": 229}} {"prefix": "fony\\Component\\Config\\Definition\\Processor;\nuse Symfony\\Component\\Config\\Definition\\PrototypedArrayNode;\n\nclass ArrayNodeDefinitionTest extends TestCase\n{\n public function testAppendingSomeNode()\n {\n $parent = new ArrayNodeDefinition('root');\n $child = new ScalarNodeDefinition('child');\n\n $parent\n ->children()\n ->scalarNode('foo')->end()\n ->scalarNode('bar')->end()\n ->end()\n ->append($child);\n\n $this->assertCoun", "suffix": "cOption(string $method, array $args)\n {\n $this->expectException(InvalidDefinitionException::class);\n $node = new ArrayNodeDefinition('root');\n\n $node->{$method}(...$args);\n\n $node->getNode();\n }\n\n public static function", "middle": "t(3, $this->getField($parent, 'children'));\n $this->assertContains($child, $this->getField($parent, 'children'));\n }\n\n #[DataProvider('providePrototypeNodeSpecificCalls')]\n public function testPrototypeNodeSpecifi", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php", "language": "php", "file_size": 19021, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition\\Builder;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\BooleanNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\Config\\De", "suffix": "n\\InvalidDefinitionException;\n\nclass NodeDefinitionTest extends TestCase\n{\n public function testSetPathSeparatorChangesChildren()\n {\n $parentNode = new ArrayNodeDefinition('name');\n $childNode = $this->createMock(NodeDefinition::class);", "middle": "finition\\Builder\\ScalarNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\StringNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\VariableNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Exceptio", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Builder/NodeDefinitionTest.php", "language": "php", "file_size": 4014, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition\\Builder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Builder\\FloatNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\IntegerNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidDefi", "suffix": "on::class);\n $this->expectExceptionMessage('You cannot define a min(4) as you already have a max(3)');\n\n $node->max(3)->min(4);\n }\n\n public function testIncoherentMaxAssertion()\n {\n $node = new IntegerNodeDefinition('foo');\n\n ", "middle": "nitionException;\n\nclass NumericNodeDefinitionTest extends TestCase\n{\n public function testIncoherentMinAssertion()\n {\n $node = new IntegerNodeDefinition('foo');\n\n $this->expectException(\\InvalidArgumentExcepti", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Builder/NumericNodeDefinitionTest.php", "language": "php", "file_size": 3459, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition\\Dumper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Dumper\\YamlReferenceDumper;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\Configuration\\ExampleConfiguration;\n\nclass YamlReferenceDumperTest extends TestCase\n{\n public function testDumper()\n {\n $configuration = new ExampleConfiguration();\n\n $dumper = new YamlReferenceDumper();\n\n ", "suffix": "L\n scalar_true: true\n EOL\n ],\n 'Array node' => ['array', <<<EOL\n # some info\n array:\n child1: ~\n child2: ", "middle": " $this->assertEquals($this->getConfigurationAsString(), $dumper->dump($configuration));\n }\n\n public static function provideDumpAtPath(): array\n {\n return [\n 'Regular node' => ['scalar_true', <<<EO", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php", "language": "php", "file_size": 5369, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit;\n\nuse Symfony\\Component\\BrowserKit\\Exception\\LogicException;\n\n/**\n * History.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass History\n{\n protected array $stack = [];\n protected int $position = -1;\n\n /**\n * Clears the history.\n */\n public function clear", "suffix": ">stack, 0, $this->position + 1);\n $this->stack[] = clone $request;\n $this->position = \\count($this->stack) - 1;\n }\n\n /**\n * Returns true if the history is empty.\n */\n public function isEmpty(): bool\n {\n return 0 ===", "middle": "(): void\n {\n $this->stack = [];\n $this->position = -1;\n }\n\n /**\n * Adds a Request to the history.\n */\n public function add(Request $request): void\n {\n $this->stack = \\array_slice($this-", "meta": {"filepath": "src/Symfony/Component/BrowserKit/History.php", "language": "php", "file_size": 2478, "cut_index": 563, "middle_length": 229}} {"prefix": "xample.com/', $client->getRequest()->getUri(), '->getCrawler() returns the Request of the last request');\n }\n\n public function testGetRequestNull()\n {\n $client = $this->getBrowser();\n\n $this->expectException(BadMethodCallException::class);\n $this->expectExceptionMessage('The \"request()\" method must be called before \"Symfony\\\\Component\\\\BrowserKit\\\\AbstractBrowser::getRequest()\".');\n\n $client->getRequest();\n }\n\n public function testXmlHttpRequest()\n {\n $cl", "suffix": "$this->assertFalse($client->getServerParameter('HTTP_X_REQUESTED_WITH', false));\n }\n\n public function testJsonRequest()\n {\n $client = $this->getBrowser();\n $client->jsonRequest('GET', 'http://example.com/', ['param' => 1, 'float' => ", "middle": "ient = $this->getBrowser();\n $client->xmlHttpRequest('GET', 'http://example.com/', [], [], [], null, true);\n $this->assertSame('XMLHttpRequest', $client->getRequest()->getServer()['HTTP_X_REQUESTED_WITH']);\n ", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/AbstractBrowserTest.php", "language": "php", "file_size": 44034, "cut_index": 2151, "middle_length": 229}} {"prefix": "History;\nuse Symfony\\Component\\BrowserKit\\HttpBrowser;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nclass HttpBrowserTest extends AbstractBrowserTest\n{\n public function getBrowser(array $server = [], ?History $history = null, ?CookieJar $cookieJar = null)\n {\n return new TestHttpClient($server, $history, $cookieJar);\n }\n\n #[D", "suffix": "cts($this->once())\n ->method('request')\n ->with(...$expectedArguments)\n ->willReturn($this->createStub(ResponseInterface::class));\n\n $browser = new HttpBrowser($client);\n $browser->request(...$requestArguments", "middle": "ataProvider('validContentTypes')]\n public function testRequestHeaders(array $requestArguments, array $expectedArguments)\n {\n $client = $this->createMock(HttpClientInterface::class);\n $client\n ->expe", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php", "language": "php", "file_size": 12626, "cut_index": 921, "middle_length": 229}} {"prefix": "Symfony\\Component\\BrowserKit\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\BrowserKit\\Exception\\UnexpectedValueException;\n\nclass CookieTest extends TestCase\n{\n public function testToString()\n {\n $cookie = new Cookie('foo', 'bar', strtotime('Fri, 20-May-2011 15:25:52 GMT'), '/', '.myfoodomain.com', true);\n $this->assertEquals('foo=bar; expires=Fri, 20 May 2011 15:25:52 GMT; domain=.myfoodomain.com; path=/; secure; httponly', (string) $cookie, '->__toString() returns string rep", "suffix": "expires=Fri, 20 May 2011 15:25:52 GMT; domain=.myfoodomain.com; path=/; secure; httponly', (string) $cookie, '->__toString() encodes the value of the cookie according to RFC 3986 (white space = %20)');\n\n $cookie = new Cookie('foo', null, 1, '/admin/", "middle": "resentation of the cookie');\n\n $cookie = new Cookie('foo', 'bar with white spaces', strtotime('Fri, 20-May-2011 15:25:52 GMT'), '/', '.myfoodomain.com', true);\n $this->assertEquals('foo=bar%20with%20white%20spaces; ", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/CookieTest.php", "language": "php", "file_size": 9673, "cut_index": 921, "middle_length": 229}} {"prefix": "n;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\MessageDecodingFailedStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\NonSendableStampInterface;\n\n/**\n * @author Ryan Weaver<ryan@symfonycasts.com>\n */\nclass PhpSerializer implements SerializerInterface, MessageTypeAwareSerializerInterface\n{\n private bool $acceptPhpIncompleteClass = false;\n\n /**\n * @internal\n */\n public function acceptPhpIncompleteClass(): void\n {\n $this-", "suffix": "dEnvelope): Envelope\n {\n if (empty($encodedEnvelope['body'])) {\n return MessageDecodingFailedException::wrap($encodedEnvelope, 'Encoded envelope should have at least a \"body\", or maybe you should implement your own serializer.');\n ", "middle": ">acceptPhpIncompleteClass = true;\n }\n\n /**\n * @internal\n */\n public function rejectPhpIncompleteClass(): void\n {\n $this->acceptPhpIncompleteClass = false;\n }\n\n public function decode(array $encode", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php", "language": "php", "file_size": 13066, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Serialization;\n\nuse Symfony\\Component\\Lock\\Serializer\\LockKeyNormalizer;\nuse Symfony\\Component\\Messenger\\Attribute\\AsMessage;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\NonSendableStampInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\SerializedMessageStamp;\nuse", "suffix": " Symfony\\Component\\Serializer\\Encoder\\XmlEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Compo", "middle": " Symfony\\Component\\Messenger\\Stamp\\SerializerStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Serialization/Serializer.php", "language": "php", "file_size": 8314, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Serialization;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\ninterface SerializerInterface\n{\n /**\n * Decodes an envelope and its message from a", "suffix": " - `body` (string) - the message body\n * - `headers` (string<string>) - a key/value pair of headers\n *\n * On failure, implementations SHOULD return an Envelope wrapping a\n * MessageDecodingFailedException instead of throwing, so that the wo", "middle": "n encoded-form.\n *\n * The `$encodedEnvelope` parameter is a key-value array that\n * describes the envelope and its content, that will be used by the different transports.\n *\n * The most common keys are:\n *", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Serialization/SerializerInterface.php", "language": "php", "file_size": 2068, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Serialization;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidMessageSignatureException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfinal class SigningSerializer implements SerializerInterface\n{\n /*", "suffix": "ray $signedMessageTypes,\n private string $algorithm = 'sha256',\n ) {\n }\n\n public function encode(Envelope $envelope): array\n {\n $encoded = $this->inner->encode($envelope);\n $type = $envelope->getMessage()::class;\n\n i", "middle": "*\n * @param list<class-string> $signedMessageTypes\n */\n public function __construct(\n private SerializerInterface $inner,\n #[\\SensitiveParameter] private string|\\Stringable $signingKey,\n private ar", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Serialization/SigningSerializer.php", "language": "php", "file_size": 3690, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Serialization\\Normalizer;\n\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse Symfony\\Component\\Serializer\\Normalizer\\NormalizerAwareTrait;\nuse Symfony\\Component\\Serializer\\Norm", "suffix": "rmalizerInterface\n{\n use NormalizerAwareTrait;\n\n public function normalize(mixed $data, ?string $format = null, array $context = []): array\n {\n return [\n 'message' => $data->getMessage(),\n 'code' => $data->getCode(),\n ", "middle": "alizer\\NormalizerInterface;\n\n/**\n * This normalizer is only used in Debug/Dev/Messenger contexts.\n *\n * @author Pascal Luna <skalpa@zetareticuli.org>\n */\nfinal class FlattenExceptionNormalizer implements DenormalizerInterface, No", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Serialization/Normalizer/FlattenExceptionNormalizer.php", "language": "php", "file_size": 3539, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\InMemory;\n\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterfac", "suffix": "*/\nclass InMemoryTransport implements TransportInterface, ResetInterface\n{\n /**\n * @var Envelope[]\n */\n private array $sent = [];\n\n /**\n * @var Envelope[]\n */\n private array $acknowledged = [];\n\n /**\n * @var Envelope[]\n ", "middle": "e;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Transport that stays in memory. Useful for testing purpose.\n *\n * @author Gary PEGEOT <garypegeot@gmail.com>\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/InMemory/InMemoryTransport.php", "language": "php", "file_size": 4688, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\InMemory;\n\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactoryInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\nus", "suffix": ", ResetInterface\n{\n /**\n * @var InMemoryTransport[]\n */\n private array $createdTransports = [];\n\n public function __construct(\n private readonly ?ClockInterface $clock = null,\n ) {\n }\n\n public function createTransport(strin", "middle": "e Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * @author Gary PEGEOT <garypegeot@gmail.com>\n *\n * @implements TransportFactoryInterface<InMemoryTransport>\n */\nclass InMemoryTransportFactory implements TransportFactoryInterface", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/InMemory/InMemoryTransportFactory.php", "language": "php", "file_size": 1893, "cut_index": 537, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Receiver;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\n\ninterface KeepaliveReceiverInterface extends ReceiverInterface\n{\n /**\n * Informs the transport that the message is still being processed to avoid a ti", "suffix": "int|null $seconds The minimum duration the message should be kept alive\n *\n * @throws TransportException If there is an issue communicating with the transport\n */\n public function keepalive(Envelope $envelope, ?int $seconds = null): void;\n}\n", "middle": "meout on the transport's side.\n *\n * @param ", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Receiver/KeepaliveReceiverInterface.php", "language": "php", "file_size": 867, "cut_index": 559, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Receiver;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * Used when a receiver has the ability to list messages and find specific messages.\n * A receiver that implements this should add the TransportMessageIdStamp\n * to the Envel", "suffix": " Messages should be given the same stamps as when using ReceiverInterface::get().\n *\n * @return iterable<Envelope>\n */\n public function all(?int $limit = null): iterable;\n\n /**\n * Returns the Envelope by id or none.\n *\n * Mess", "middle": "opes that it returns.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\ninterface ListableReceiverInterface extends ReceiverInterface\n{\n /**\n * Returns all the messages (up to the limit) in this receiver.\n *\n *", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Receiver/ListableReceiverInterface.php", "language": "php", "file_size": 1137, "cut_index": 518, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Receiver;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * Some transports may have multiple queues. This interface is used to read from only some queues.\n *\n * @author David Buchmann <mail@davidbu.ch>\n */\ninterface QueueReceiverInterface extends ReceiverInterface\n{\n /**\n * Get messages from the specified queu", "suffix": "\n * @param string[] $queueNames\n * @param int $fetchSize Best-effort hint about how many messages can be received in one call\n *\n * @return Envelope[]\n */\n public function getFromQueues(array $queueNames/* , int $fetchSize = 1 ", "middle": "e names instead of consuming from all queues.\n *", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Receiver/QueueReceiverInterface.php", "language": "php", "file_size": 931, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Receiver;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\ninterface ReceiverInterface\n{\n /**\n * Receives some ", "suffix": " * they can finish processing the one (or \"small number\") of messages\n * from this receiver and move on to check other receivers for messages.\n * If this method returns too many messages, it could cause a\n * blocking effect where handling the ", "middle": "messages.\n *\n * While this method could return an unlimited number of messages,\n * the intention is that it returns only one, or a \"small number\"\n * of messages each time. This gives the user more flexibility:\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Receiver/ReceiverInterface.php", "language": "php", "file_size": 2246, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Receiver;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * Receiver that decorates another, but receives only 1 specific message.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n *\n * @internal\n */\nclass SingleMessageReceiver im", "suffix": "hSize\n */\n public function get(/* int $fetchSize = 1 */): iterable\n {\n if ($this->hasReceived) {\n return [];\n }\n\n $this->hasReceived = true;\n\n return [$this->envelope];\n }\n\n public function ack(Envelop", "middle": "plements ReceiverInterface\n{\n private bool $hasReceived = false;\n\n public function __construct(\n private ReceiverInterface $receiver,\n private Envelope $envelope,\n ) {\n }\n\n /**\n * @param int $fetc", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Receiver/SingleMessageReceiver.php", "language": "php", "file_size": 1187, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Stamp;\n\nuse Symfony\\Component\\Lock\\Key;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\n\n/**\n * Carries a deduplication key alongside an Envelope.\n *\n * Security note: the key carried by this stamp is not authenticated. It travels\n * with the envelope", "suffix": ", release the legitimate message's lock (see\n * {@see \\Symfony\\Component\\Messenger\\EventListener\\ReleaseDeduplicationLockOnFailureListener}).\n *\n * Treat deduplication keys as a best-effort idempotency primitive. They are not\n * a correctness primitive aga", "middle": " through the transport, so any actor able to write into the\n * queue can craft an envelope whose DeduplicateStamp references the\n * deduplication key of another in-flight message and, by failing that crafted\n * message terminally", "meta": {"filepath": "src/Symfony/Component/Messenger/Stamp/DeduplicateStamp.php", "language": "php", "file_size": 1850, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Stamp;\n\nuse Symfony\\Component\\Clock\\Clock;\n\n/**\n * Apply this stamp to delay delivery of your message on a transport.\n */\nfinal class DelayStamp implements StampInterface\n{\n /**\n * @param int $delay The delay in milliseconds\n */\n ", "suffix": " $now = Clock::get()->withTimeZone(new \\DateTimeZone('UTC'))->now();\n $end = $now->add($interval);\n\n return new self(($end->getTimestamp() - $now->getTimestamp()) * 1000);\n }\n\n public static function delayUntil(\\DateTimeInterface $da", "middle": " public function __construct(\n private int $delay,\n ) {\n }\n\n public function getDelay(): int\n {\n return $this->delay;\n }\n\n public static function delayFor(\\DateInterval $interval): self\n {\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Stamp/DelayStamp.php", "language": "php", "file_size": 1130, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Stamp;\n\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\RecoverableExceptionInterface;\n\n/**\n * Stamp applied when a messages fails due to an exception in the handle", "suffix": " private ?FlattenException $flattenException = null,\n ) {\n }\n\n public static function create(\\Throwable $throwable): self\n {\n if ($throwable instanceof HandlerFailedException) {\n $throwable = $throwable->getPrevious();\n ", "middle": "r.\n */\nfinal class ErrorDetailsStamp implements StampInterface\n{\n public function __construct(\n private string $exceptionClass,\n private int|string $exceptionCode,\n private string $exceptionMessage,\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Stamp/ErrorDetailsStamp.php", "language": "php", "file_size": 2688, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Stamp;\n\nuse Symfony\\Component\\Messenger\\Handler\\HandlerDescriptor;\nuse Symfony\\Component\\Messenger\\HandleTrait;\nuse Symfony\\Component\\Messenger\\Middleware\\HandleMessageMiddleware;\n\n/**\n * Stamp identifying a message handled by the `HandleMessageMid", "suffix": "Middleware\n * @see HandleTrait\n *\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nfinal class HandledStamp implements StampInterface\n{\n public function __construct(\n private mixed $result,\n private string $handlerName,\n ", "middle": "dleware` middleware\n * and storing the handler returned value.\n *\n * This is used by synchronous command buses expecting a return value and the retry logic\n * to only execute handlers that didn't succeed.\n *\n * @see HandleMessage", "meta": {"filepath": "src/Symfony/Component/Messenger/Stamp/HandledStamp.php", "language": "php", "file_size": 1358, "cut_index": 524, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Stamp;\n\nuse Symfony\\Component\\Messenger\\Middleware\\SendMessageMiddleware;\n\n/**\n * Marker stamp for a received message.\n *\n * This is mainly used by the `SendMessageMiddleware` middleware to identify\n * a message should not be sent if it was just received.\n *\n * @see SendMessageMiddl", "suffix": "om>\n */\nfinal class ReceivedStamp implements NonSendableStampInterface\n{\n public function __construct(\n private string $transportName,\n ) {\n }\n\n public function getTransportName(): string\n {\n return $this->transportName;\n }\n", "middle": "eware\n *\n * @author Samuel Roze <samuel.roze@gmail.c", "meta": {"filepath": "src/Symfony/Component/Messenger/Stamp/ReceivedStamp.php", "language": "php", "file_size": 869, "cut_index": 559, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Stamp;\n\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * Stamp applied when a messages needs to be redelivered.\n */\nfinal class RedeliveryStamp implements StampInterface\n{\n private \\DateTimeInterface $re", "suffix": "atic function getRetryCountFromEnvelope(Envelope $envelope): int\n {\n /** @var self|null $retryMessageStamp */\n $retryMessageStamp = $envelope->last(self::class);\n\n return $retryMessageStamp ? $retryMessageStamp->getRetryCount() : 0;", "middle": "deliveredAt;\n\n public function __construct(\n private int $retryCount,\n ?\\DateTimeInterface $redeliveredAt = null,\n ) {\n $this->redeliveredAt = $redeliveredAt ?? Clock::get()->now();\n }\n\n public st", "meta": {"filepath": "src/Symfony/Component/Messenger/Stamp/RedeliveryStamp.php", "language": "php", "file_size": 1209, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Stamp;\n\n/**\n * @author Jérémy Derussé <jeremy@derusse.com>\n */\nclass RouterContextStamp implements StampInterface\n{\n public function __construct(\n private string $baseUrl,\n private string $method,\n private string $host,\n ", "suffix": " return $this->baseUrl;\n }\n\n public function getMethod(): string\n {\n return $this->method;\n }\n\n public function getHost(): string\n {\n return $this->host;\n }\n\n public function getScheme(): string\n {\n return ", "middle": " private string $scheme,\n private int $httpPort,\n private int $httpsPort,\n private string $pathInfo,\n private string $queryString,\n ) {\n }\n\n public function getBaseUrl(): string\n {\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Stamp/RouterContextStamp.php", "language": "php", "file_size": 1385, "cut_index": 524, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Stamp;\n\nuse Symfony\\Component\\Messenger\\Middleware\\SendMessageMiddleware;\n\n/**\n * Marker stamp identifying a message sent by the `SendMessageMiddleware`.\n *\n * @see SendMessageMiddleware\n *\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nfinal class Se", "suffix": "ublic function __construct(\n private string $senderClass,\n private ?string $senderAlias = null,\n ) {\n }\n\n public function getSenderClass(): string\n {\n return $this->senderClass;\n }\n\n public function getSenderAlias(): ", "middle": "ntStamp implements NonSendableStampInterface\n{\n p", "meta": {"filepath": "src/Symfony/Component/Messenger/Stamp/SentStamp.php", "language": "php", "file_size": 912, "cut_index": 547, "middle_length": 52}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Stamp;\n\n/**\n * Stamp used to override the transport names specified in the Messenger routing configuration file.\n */\nfinal class TransportNamesStamp implements StampInterface\n{\n private array $transportNames;\n\n /**\n * @param string", "suffix": " for the message\n */\n public function __construct(array|string $transportNames)\n {\n $this->transportNames = (array) $transportNames;\n }\n\n public function getTransportNames(): array\n {\n return $this->transportNames;\n }\n}\n", "middle": "[]|string $transportNames Transport names to be used", "meta": {"filepath": "src/Symfony/Component/Messenger/Stamp/TransportNamesStamp.php", "language": "php", "file_size": 825, "cut_index": 517, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * Execute the inner middleware according to an activation strategy.\n *\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass ActivationMiddleware implements Mi", "suffix": "activated : $activated(...);\n }\n\n public function handle(Envelope $envelope, StackInterface $stack): Envelope\n {\n if (\\is_callable($this->activated) ? ($this->activated)($envelope) : $this->activated) {\n return $this->inner->hand", "middle": "ddlewareInterface\n{\n private \\Closure|bool $activated;\n\n public function __construct(\n private MiddlewareInterface $inner,\n bool|callable $activated,\n ) {\n $this->activated = \\is_bool($activated) ? $", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/ActivationMiddleware.php", "language": "php", "file_size": 1100, "cut_index": 515, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\BusNameStamp;\n\n/**\n * Adds the BusNameStamp to the bus.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass AddBusNameStampMiddleware implements MiddlewareInterface\n{\n public function __construct(\n private string $busNa", "suffix": "pe $envelope, StackInterface $stack): Envelope\n {\n if (null === $envelope->last(BusNameStamp::class)) {\n $envelope = $envelope->with(new BusNameStamp($this->busName));\n }\n\n return $stack->next()->handle($envelope, $stack)", "middle": "me,\n ) {\n }\n\n public function handle(Envelo", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/AddBusNameStampMiddleware.php", "language": "php", "file_size": 924, "cut_index": 606, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Message\\DefaultStampsProviderInterface;\n\n/**\n * Automatically add stamps from the DefaultStampsProviderInterface.\n */\nclass AddDefaultStampsMiddleware", "suffix": "\n foreach ($message->getDefaultStamps() as $stamp) {\n if (null === $envelope->last($stamp::class)) {\n $envelope = $envelope->with($stamp);\n }\n }\n }\n\n return $stack->next()", "middle": " implements MiddlewareInterface\n{\n public function handle(Envelope $envelope, StackInterface $stack): Envelope\n {\n $message = $envelope->getMessage();\n if ($message instanceof DefaultStampsProviderInterface) {", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/AddDefaultStampsMiddleware.php", "language": "php", "file_size": 1035, "cut_index": 513, "middle_length": 229}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport;\n\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * Creates a Messenger transport.\n *\n * @author Samuel Roze <samuel.roze@gmail.com>\n *\n * @template-covariant TTransport of TransportInterface\n */", "suffix": "* @return TTransport\n */\n public function createTransport(#[\\SensitiveParameter] string $dsn, array $options, SerializerInterface $serializer): TransportInterface;\n\n public function supports(#[\\SensitiveParameter] string $dsn, array $options): bo", "middle": "\ninterface TransportFactoryInterface\n{\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/TransportFactoryInterface.php", "language": "php", "file_size": 830, "cut_index": 516, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Sync;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messen", "suffix": "lass SyncTransport implements TransportInterface\n{\n public function __construct(\n private MessageBusInterface $messageBus,\n ) {\n }\n\n /**\n * @param int $fetchSize\n */\n public function get(/* int $fetchSize = 1 */): iterable\n ", "middle": "ger\\Stamp\\SentStamp;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * Transport that immediately marks messages as received and dispatches for handling.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nc", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Sync/SyncTransport.php", "language": "php", "file_size": 1879, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Serialization;\n\n/**\n * Implemented by serializers that can tell the class of the carried message\n * from the encoded envelope, without instantiating the payload.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\ninterface MessageTypeAwareS", "suffix": "wise instantiate the payload, and MUST\n * be side-effect free.\n *\n * Returning null signals that the envelope is not recognizable under these\n * constraints; consumers may treat such an envelope as untrusted (e.g. refuse\n * to decode it", "middle": "erializerInterface\n{\n /**\n * Returns the FQCN of the message carried by the encoded envelope.\n *\n * Implementations MUST determine the class from the encoded metadata only:\n * they MUST NOT unserialize or other", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Serialization/MessageTypeAwareSerializerInterface.php", "language": "php", "file_size": 1430, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit;\n\nuse Symfony\\Component\\BrowserKit\\Exception\\JsonException;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class Response\n{\n private array $jsonData;\n\n /**\n * The headers array is a set of key/value pairs. If a header is present multiple times\n * then the value is an array of all the values.\n *\n *", "suffix": " private string $content = '',\n private int $status = 200,\n private array $headers = [],\n ) {\n }\n\n /**\n * Converts the response object to string containing all headers and the response content.\n */\n public function __toSt", "middle": " @param string $content The content of the response\n * @param int $status The response status code (302 \"Found\" by default)\n * @param array $headers An array of headers\n */\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Response.php", "language": "php", "file_size": 3096, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition\\Builder;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Builder\\EnumNodeDefinition;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\StringBackedTestEnum;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\TestEnum;\n\nclass EnumNodeDefinitionTest extends TestCase\n{\n public function testWithOneValue()\n {\n", "suffix": " $def = new EnumNodeDefinition('foo');\n $def->enumFqcn(TestEnum::class);\n\n $node = $def->getNode();\n $this->assertEquals(TestEnum::class, $node->getEnumFqcn());\n }\n\n public function testNoValuesPassed()\n {\n $this->ex", "middle": " $def = new EnumNodeDefinition('foo');\n $def->values(['foo']);\n\n $node = $def->getNode();\n $this->assertEquals(['foo'], $node->getValues());\n }\n\n public function testWithUnitEnumFqcn()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Builder/EnumNodeDefinitionTest.php", "language": "php", "file_size": 3198, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\BaseNode;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Loader\\DefinitionFileLoader;\nuse Symfony\\Component\\Conf", "suffix": "r->supports('foo.php'), '->supports() returns true if the resource is loadable');\n $this->assertFalse($loader->supports('foo.foo'), '->supports() returns false if the resource is not loadable');\n $this->assertTrue($loader->supports('with_wron", "middle": "ig\\FileLocator;\n\nclass DefinitionFileLoaderTest extends TestCase\n{\n public function testSupports()\n {\n $loader = new DefinitionFileLoader(new TreeBuilder('test'), new FileLocator());\n\n $this->assertTrue($loade", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Loader/DefinitionFileLoaderTest.php", "language": "php", "file_size": 1635, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit;\n\nuse Symfony\\Component\\BrowserKit\\Exception\\InvalidArgumentException;\n\n/**\n * CookieJar.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass CookieJar\n{\n protected array $cookieJar = [];\n\n public function set(Cookie $cookie): void\n {\n $this->cookieJar[$cookie->getDomain()][$cookie->getPath()][$cookie->getName()] = $cookie;\n }\n\n /**\n * Gets a cookie by name.\n *\n * You should never use an empt", "suffix": "string $path = '/', ?string $domain = null): ?Cookie\n {\n $this->flushExpiredCookies();\n\n foreach ($this->cookieJar as $cookieDomain => $pathCookies) {\n if ($cookieDomain && $domain) {\n $cookieDomain = '.'.ltrim($c", "middle": "y domain, but if you do so,\n * this method returns the first cookie for the given name/path\n * (this behavior ensures a BC behavior with previous versions of\n * Symfony).\n */\n public function get(string $name, ", "meta": {"filepath": "src/Symfony/Component/BrowserKit/CookieJar.php", "language": "php", "file_size": 6295, "cut_index": 716, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger;\n\nuse Symfony\\Component\\Messenger\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\ninterface MessageBusInterface\n{\n /**\n * Dispatches the given message.\n *\n * @param object|Enve", "suffix": "d in an envelope\n * @param StampInterface[] $stamps Stamps set on the Envelope which are used to control middleware behavior\n *\n * @throws ExceptionInterface\n */\n public function dispatch(object $message, array $stamps = []): Envelope;\n", "middle": "lope $message The message or the message pre-wrappe", "meta": {"filepath": "src/Symfony/Component/Messenger/MessageBusInterface.php", "language": "php", "file_size": 869, "cut_index": 559, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger;\n\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\nclass TraceableMessageBus implements MessageBusInterface\n{\n private array $dispatchedMessages = [];\n\n public function __construct(\n private MessageBusInterface $decoratedBus,\n protected readonly ?\\Closure $", "suffix": " }\n\n $envelope = Envelope::wrap($message, $stamps);\n $context = [\n 'stamps' => array_merge([], ...array_values($envelope->all())),\n 'message' => $envelope->getMessage(),\n 'caller' => $this->getCaller(),\n ", "middle": "disabled = null,\n ) {\n }\n\n public function dispatch(object $message, array $stamps = []): Envelope\n {\n if ($this->disabled?->__invoke()) {\n return $this->decoratedBus->dispatch($message, $stamps);\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/TraceableMessageBus.php", "language": "php", "file_size": 3768, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger;\n\n/**\n * @author Oleg Krasavin <okwinza@gmail.com>\n */\nfinal class WorkerMetadata\n{\n public function __construct(\n private array $metadata,\n ) {\n }\n\n public function set(array $newMetadata): void\n {\n $this->m", "suffix": "(): ?array\n {\n return $this->metadata['queueNames'] ?? null;\n }\n\n /**\n * Returns an array of unique identifiers for transport receivers the worker consumes from.\n */\n public function getTransportNames(): array\n {\n retur", "middle": "etadata = array_merge($this->metadata, $newMetadata);\n }\n\n /**\n * Returns the queue names the worker consumes from, if \"--queues\" option was used.\n * Returns null otherwise.\n */\n public function getQueueNames", "meta": {"filepath": "src/Symfony/Component/Messenger/WorkerMetadata.php", "language": "php", "file_size": 1049, "cut_index": 513, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Exception;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\nclass HandlerFailedException extends RuntimeException implements WrappedExceptionsInterface, EnvelopeAwareExceptionInterface\n{\n use WrappedExceptionsTrait;\n\n /**\n * @param \\Throwable[", "suffix": "message = \\sprintf('Handling \"%s\" failed: ', $envelope->getMessage()::class);\n\n parent::__construct(\n $message.(1 === \\count($exceptions)\n ? $firstFailure->getMessage()\n : \\sprintf('%d handlers failed. First ", "middle": "] $exceptions The name of the handler should be given as key\n */\n public function __construct(\n private Envelope $envelope,\n array $exceptions,\n ) {\n $firstFailure = current($exceptions);\n\n $", "meta": {"filepath": "src/Symfony/Component/Messenger/Exception/HandlerFailedException.php", "language": "php", "file_size": 1311, "cut_index": 524, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Exception;\n\n/**\n * Marker interface for exceptions to indicate that handling a message should have worked.\n *\n * If something goes wrong while handling a message that's received from a transport\n * and the message should be retried, a handler can throw such an exception.", "suffix": "*\n * @method bool forceRetry() Whether the worker should retry even when the max retry count has been reached\n */\ninterface RecoverableExceptionInterface extends \\Throwable\n{\n /**\n * Returns the time to wait before potentially retrying, in milliseco", "middle": "\n *\n * @author Jérémy Derussé <jeremy@derusse.com>\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Exception/RecoverableExceptionInterface.php", "language": "php", "file_size": 915, "cut_index": 547, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Exception;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\n\n/**\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\nclass ValidationFailedException extends RuntimeException imple", "suffix": "ope $envelope = null,\n ) {\n $this->envelope = $envelope;\n\n parent::__construct(\\sprintf('Message of type \"%s\" failed validation.', $this->violatingMessage::class));\n }\n\n public function getViolatingMessage(): object\n {\n ret", "middle": "ments EnvelopeAwareExceptionInterface\n{\n use EnvelopeAwareExceptionTrait;\n\n public function __construct(\n private object $violatingMessage,\n private ConstraintViolationListInterface $violations,\n ?Envel", "meta": {"filepath": "src/Symfony/Component/Messenger/Exception/ValidationFailedException.php", "language": "php", "file_size": 1157, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Exception;\n\n/**\n * @author Jeroen <https://github.com/Jeroeny>\n *\n * @internal\n */\ntrait WrappedExceptionsTrait\n{\n private array $exceptions;\n\n /**\n * @template TException of \\Throwable\n *\n * @param class-string<TException>|null $class\n *\n", "suffix": "this->getWrappedExceptionsRecursively($class, $recursive, $this->exceptions);\n }\n\n /**\n * @param class-string<\\Throwable>|null $class\n * @param iterable<\\Throwable> $exceptions\n *\n * @return \\Throwable[]\n */\n private f", "middle": " * @return \\Throwable[]\n *\n * @psalm-return ($class is null ? \\Throwable[] : TException[])\n */\n public function getWrappedExceptions(?string $class = null, bool $recursive = false): array\n {\n return $", "meta": {"filepath": "src/Symfony/Component/Messenger/Exception/WrappedExceptionsTrait.php", "language": "php", "file_size": 1667, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Attribute;\n\n/**\n * Service tag to autoconfigure message handlers.\n *\n * @author Alireza Mirsepassi <alirezamirsepassi@gmail.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass AsMessageHandler\n{\n pub", "suffix": "om which this handler can receive messages, by default all transports.\n */\n public ?string $fromTransport = null,\n\n /**\n * Type of messages (FQCN) that can be processed by the handler, only needed if can't be guessed by type-h", "middle": "lic function __construct(\n /**\n * Name of the bus from which this handler can receive messages, by default all buses.\n */\n public ?string $bus = null,\n\n /**\n * Name of the transport fr", "meta": {"filepath": "src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php", "language": "php", "file_size": 1530, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface;\nuse Symfony\\Component\\Messenger\\TraceableMessageBus;\nuse Symfony\\Component\\VarDumper\\Caster\\", "suffix": "on registerBus(string $name, TraceableMessageBus $bus): void\n {\n $this->traceableBuses[$name] = $bus;\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n // Noop. Everything ", "middle": "ClassStub;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n *\n * @final\n */\nclass MessengerDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n private array $traceableBuses = [];\n\n public functi", "meta": {"filepath": "src/Symfony/Component/Messenger/DataCollector/MessengerDataCollector.php", "language": "php", "file_size": 3795, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Sender;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Messenger\\Attribute\\AsMessage;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\RuntimeException;\nuse Symfony\\Component\\Messenger\\Handler\\HandlersLocator;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportNamesStamp;\n\n/**\n * Ma", "suffix": "d by \"type\", set to an array of sender aliases\n * @param ContainerInterface $sendersLocator Locator of senders, keyed by sender alias\n */\n public function __construct(\n private array $sendersMap,\n private ContainerInterfac", "middle": "ps a message to a list of senders.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass SendersLocator implements SendersLocatorInterface\n{\n /**\n * @param array<string, list<string>> $sendersMap An array, keye", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Sender/SendersLocator.php", "language": "php", "file_size": 3625, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\BrowserKit\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\BrowserKit\\Exception\\JsonException;\nuse Symfony\\Component\\BrowserKit\\Response;\n\nclass ResponseTest extends TestCase\n{\n public function testGetUri()\n {\n $response = new Response('foo');\n $this->assertEquals('f", "suffix": ">getStatusCode(), '->getStatusCode() returns the status of the response');\n }\n\n public function testGetHeaders()\n {\n $response = new Response('foo', 200, ['foo' => 'bar']);\n $this->assertEquals(['foo' => 'bar'], $response->getHeaders", "middle": "oo', $response->getContent(), '->getContent() returns the content of the response');\n }\n\n public function testGetStatusCode()\n {\n $response = new Response('foo', 304);\n $this->assertEquals('304', $response-", "meta": {"filepath": "src/Symfony/Component/BrowserKit/Tests/ResponseTest.php", "language": "php", "file_size": 4451, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger;\n\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackMiddleware;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n * @author Matthias Noback <matthiasnoback@gmail.com>\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass Mes", "suffix": "ewareHandlers = [])\n {\n if ($middlewareHandlers instanceof \\IteratorAggregate) {\n $this->middlewareAggregate = $middlewareHandlers;\n } elseif (\\is_array($middlewareHandlers)) {\n $this->middlewareAggregate = new \\Array", "middle": "sageBus implements MessageBusInterface\n{\n private \\IteratorAggregate $middlewareAggregate;\n\n /**\n * @param iterable<mixed, MiddlewareInterface> $middlewareHandlers\n */\n public function __construct(iterable $middl", "meta": {"filepath": "src/Symfony/Component/Messenger/MessageBus.php", "language": "php", "file_size": 2478, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger;\n\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Stamp\\HandledStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\n\n/**\n * Leverages a message bus to expect a single, synchronous message handling and return its result.\n *\n * @author Max", "suffix": "e result from the handler returned value.\n * This behavior is useful for both synchronous command & query buses,\n * the last one usually returning the handler result.\n *\n * @param object|Envelope $message The message or the message pre-wra", "middle": "ime Steinhausser <maxime.steinhausser@gmail.com>\n */\ntrait HandleTrait\n{\n private MessageBusInterface $messageBus;\n\n /**\n * Dispatches the given message, expecting to be handled by a single handler\n * and returns th", "meta": {"filepath": "src/Symfony/Component/Messenger/HandleTrait.php", "language": "php", "file_size": 2510, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Command;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Componen", "suffix": ";\n\n/**\n * @author Kévin Thérage <therage.kevin@gmail.com>\n */\n#[AsCommand(name: 'messenger:stats', description: 'Show the message count for one or more transports')]\nclass StatsCommand extends Command\n{\n public function __construct(\n private Cont", "middle": "t\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface", "meta": {"filepath": "src/Symfony/Component/Messenger/Command/StatsCommand.php", "language": "php", "file_size": 5201, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Command;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style", "suffix": "their current message')]\nclass StopWorkersCommand extends Command\n{\n public function __construct(\n private CacheItemPoolInterface $restartSignalCachePool,\n ) {\n parent::__construct();\n }\n\n protected function configure(): void\n ", "middle": "\\SymfonyStyle;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnRestartSignalListener;\n\n/**\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\n#[AsCommand(name: 'messenger:stop-workers', description: 'Stop workers after ", "meta": {"filepath": "src/Symfony/Component/Messenger/Command/StopWorkersCommand.php", "language": "php", "file_size": 2094, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Stamp\\ErrorDetailsStamp;\n\nfinal class AddErrorDetailsStampListener", "suffix": "ope()->last(ErrorDetailsStamp::class);\n\n // Do not append duplicate information\n if (null === $previousStamp || !$previousStamp->equals($stamp)) {\n $event->addStamps($stamp);\n }\n }\n\n public static function getSubscribe", "middle": " implements EventSubscriberInterface\n{\n public function onMessageFailed(WorkerMessageFailedEvent $event): void\n {\n $stamp = ErrorDetailsStamp::create($event->getThrowable());\n $previousStamp = $event->getEnvel", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/AddErrorDetailsStampListener.php", "language": "php", "file_size": 1215, "cut_index": 518, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\n\n/**\n * @author Tobias Schultze <http://tobion.de>\n */\nclass DispatchPcntlSignalListener implements EventSubscriberInterface\n{\n public function onWorkerRunning(): vo", "suffix": "_dispatch')) {\n return;\n }\n\n pcntl_signal_dispatch();\n }\n\n public static function getSubscribedEvents(): array\n {\n if (!\\function_exists('pcntl_signal_dispatch')) {\n return [];\n }\n\n return [", "middle": "id\n {\n if (!\\function_exists('pcntl_signal", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/DispatchPcntlSignalListener.php", "language": "php", "file_size": 977, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Stamp\\DeduplicateStamp;\n\n/**\n * Releases the deduplication lock when a ", "suffix": "nce the retry flow has decided not to\n * retry (retries exhausted, unrecoverable exception, or no retry strategy),\n * the lock must be released to unblock future messages sharing the same key.\n *\n * Caveat: a message moved to a failure transport and later ", "middle": "handled message definitively fails.\n *\n * The {@see \\Symfony\\Component\\Messenger\\Middleware\\DeduplicateMiddleware}\n * keeps the lock held when a handler throws, so that a message still being\n * retried cannot be enqueued again. O", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/ReleaseDeduplicationLockOnFailureListener.php", "language": "php", "file_size": 2534, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageReceivedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\n\n/**\n * @author Tim Düsterhus <tim@tideways-", "suffix": " memory usage for accurate measurement of the\n // memory usage on a per-message basis.\n memory_reset_peak_usage();\n $this->collect = true;\n }\n\n public function collectAfter(WorkerRunningEvent $event): void\n {\n if ($even", "middle": "gmbh.com>\n */\nfinal class ResetMemoryUsageListener implements EventSubscriberInterface\n{\n private bool $collect = false;\n\n public function resetBefore(WorkerMessageReceivedEvent $event): void\n {\n // Reset the peak", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/ResetMemoryUsageListener.php", "language": "php", "file_size": 1372, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\ServicesResetterInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunnin", "suffix": "ace\n{\n private int $interval = 1;\n private int $count = 0;\n\n public function __construct(\n #[Autowire(service: ServicesResetterInterface::class)]\n private ResetInterface $servicesResetter,\n ) {\n }\n\n public function setInterv", "middle": "gEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerStoppedEvent;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass ResetServicesListener implements EventSubscriberInterf", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/ResetServicesListener.php", "language": "php", "file_size": 1680, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\EventDispatcher\\EventDispatcherInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageRetriedEvent;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedException;\nuse Sy", "suffix": "nger\\Retry\\RetryStrategyInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentForRetryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\nuse S", "middle": "mfony\\Component\\Messenger\\Exception\\RecoverableExceptionInterface;\nuse Symfony\\Component\\Messenger\\Exception\\RuntimeException;\nuse Symfony\\Component\\Messenger\\Exception\\UnrecoverableExceptionInterface;\nuse Symfony\\Component\\Messe", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/SendFailedMessageForRetryListener.php", "language": "php", "file_size": 7478, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageSkipEvent;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Com", "suffix": "dFailedMessageToFailureTransportListener implements EventSubscriberInterface\n{\n public function __construct(\n private ContainerInterface $failureSenders,\n private ?LoggerInterface $logger = null,\n private array $failureTransportsByN", "middle": "ponent\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\n\n/**\n * Sends a rejected message to a \"failure transport\".\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass Sen", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/SendFailedMessageToFailureTransportListener.php", "language": "php", "file_size": 3266, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedExce", "suffix": "te bool $stop = false;\n\n public function onMessageFailed(WorkerMessageFailedEvent $event): void\n {\n $th = $event->getThrowable();\n if ($th instanceof StopWorkerExceptionInterface) {\n $this->stop = true;\n }\n if (", "middle": "ption;\nuse Symfony\\Component\\Messenger\\Exception\\StopWorkerExceptionInterface;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass StopWorkerOnCustomStopExceptionListener implements EventSubscriberInterface\n{\n priva", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/StopWorkerOnCustomStopExceptionListener.php", "language": "php", "file_size": 1688, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenge", "suffix": "ction __construct(\n private int $maximumNumberOfFailures,\n private ?LoggerInterface $logger = null,\n ) {\n if ($maximumNumberOfFailures <= 0) {\n throw new InvalidArgumentException('Failure limit must be greater than zero.'", "middle": "r\\Exception\\InvalidArgumentException;\n\n/**\n * @author Michel Hunziker <info@michelhunziker.com>\n */\nclass StopWorkerOnFailureLimitListener implements EventSubscriberInterface\n{\n private int $failedMessages = 0;\n\n public fun", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/StopWorkerOnFailureLimitListener.php", "language": "php", "file_size": 1808, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\n\n/**\n * @author Simon Delicata <simon.delicata@free.fr>\n * @author Tobias Schultze <http://tob", "suffix": "ogger = null,\n ?callable $memoryResolver = null,\n ) {\n $memoryResolver ??= static fn () => memory_get_usage(true);\n $this->memoryResolver = $memoryResolver(...);\n }\n\n public function onWorkerRunning(WorkerRunningEvent $event):", "middle": "ion.de>\n */\nclass StopWorkerOnMemoryLimitListener implements EventSubscriberInterface\n{\n private \\Closure $memoryResolver;\n\n public function __construct(\n private int $memoryLimit,\n private ?LoggerInterface $l", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/StopWorkerOnMemoryLimitListener.php", "language": "php", "file_size": 1566, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\n\n/**\n * @author Samuel Roz", "suffix": " private int $maximumNumberOfMessages,\n private ?LoggerInterface $logger = null,\n ) {\n if ($maximumNumberOfMessages <= 0) {\n throw new InvalidArgumentException('Message limit must be greater than zero.');\n }\n }\n\n ", "middle": "e <samuel.roze@gmail.com>\n * @author Tobias Schultze <http://tobion.de>\n */\nclass StopWorkerOnMessageLimitListener implements EventSubscriberInterface\n{\n private int $receivedMessages = 0;\n\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/StopWorkerOnMessageLimitListener.php", "language": "php", "file_size": 1603, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerStartedEvent", "suffix": " private float $workerStartedAt = 0;\n\n public function __construct(\n private CacheItemPoolInterface $cachePool,\n private ?LoggerInterface $logger = null,\n ) {\n }\n\n public function onWorkerStarted(): void\n {\n $this->work", "middle": ";\n\n/**\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass StopWorkerOnRestartSignalListener implements EventSubscriberInterface\n{\n public const RESTART_REQUESTED_TIMESTAMP_KEY = 'workers.restart_requested_timestamp';\n\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/StopWorkerOnRestartSignalListener.php", "language": "php", "file_size": 1860, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\EventListener;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerStartedEvent;\nuse Symfony\\Component\\Messenger\\Exce", "suffix": "cata@free.fr>\n * @author Tobias Schultze <http://tobion.de>\n *\n * @deprecated since Symfony 8.1, use the \"time_limit\" worker option instead\n */\nclass StopWorkerOnTimeLimitListener implements EventSubscriberInterface\n{\n private float $endTime = 0;\n\n p", "middle": "ption\\InvalidArgumentException;\n\ntrigger_deprecation('symfony/messenger', '8.1', '\"%s\" is deprecated, use the \"time_limit\" worker option instead.', StopWorkerOnTimeLimitListener::class);\n\n/**\n * @author Simon Delicata <simon.deli", "meta": {"filepath": "src/Symfony/Component/Messenger/EventListener/StopWorkerOnTimeLimitListener.php", "language": "php", "file_size": 1992, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\ValidationStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\n\n/**\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass Envelop", "suffix": "ssertSame($dummy, $envelope->getMessage());\n $this->assertArrayHasKey(ReceivedStamp::class, $stamps = $envelope->all());\n $this->assertSame($receivedStamp, $stamps[ReceivedStamp::class][0]);\n }\n\n public function testWithReturnsNewInstan", "middle": "eTest extends TestCase\n{\n public function testConstruct()\n {\n $receivedStamp = new ReceivedStamp('transport');\n $envelope = new Envelope($dummy = new DummyMessage('dummy'), [$receivedStamp]);\n\n $this->a", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EnvelopeTest.php", "language": "php", "file_size": 5519, "cut_index": 716, "middle_length": 229}} {"prefix": "FailedMessageToFailureTransportListener;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnMessageLimitListener;\nuse Symfony\\Component\\Messenger\\Exception\\DelayedMessageHandlingException;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\ValidationFailedException;\nuse Symfony\\Component\\Messenger\\Handler\\HandlerDescriptor;\nuse Symfony\\Component\\Messenger\\Handler\\HandlersLocator;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component", "suffix": "ssenger\\Middleware\\HandleMessageMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\SendMessageMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\ValidationMiddleware;\nuse Symfony\\Component\\Messenger\\Retry\\MultiplierRetryStrategy;\nuse Symfony\\Compon", "middle": "\\Messenger\\Middleware\\AddBusNameStampMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\DispatchAfterCurrentBusMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\FailedMessageProcessingMiddleware;\nuse Symfony\\Component\\Me", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/FailureIntegrationTest.php", "language": "php", "file_size": 24185, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\HandleTrait;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\HandledStamp;\nuse ", "suffix": "->expectException(LogicException::class);\n $this->expectExceptionMessage('You must provide a \"Symfony\\Component\\Messenger\\MessageBusInterface\" instance in the \"Symfony\\Component\\Messenger\\Tests\\TestQueryBus::$messageBus\" property, but that property ", "middle": "Symfony\\Component\\Messenger\\Stamp\\StampInterface;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\n\nclass HandleTraitTest extends TestCase\n{\n public function testItThrowsOnNoMessageBusInstance()\n {\n $this", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/HandleTraitTest.php", "language": "php", "file_size": 4463, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\BusNameStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\D", "suffix": "\n public function testItHasTheRightInterface()\n {\n $bus = new MessageBus();\n\n $this->assertInstanceOf(MessageBusInterface::class, $bus);\n }\n\n public function testItCallsMiddleware()\n {\n $message = new DummyMessage('Hello", "middle": "elayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\AnEnvelopeStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\n\nclass MessageBusTest extends TestCase\n{", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/MessageBusTest.php", "language": "php", "file_size": 6215, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger", "suffix": " $envelope = new Envelope(new \\stdClass(), [new BusNameStamp('foo_bus')]);\n\n $bus1 = $this->createMock(MessageBusInterface::class);\n $bus2 = $this->createMock(MessageBusInterface::class);\n\n $container = new Container();\n $", "middle": "\\RoutableMessageBus;\nuse Symfony\\Component\\Messenger\\Stamp\\BusNameStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\n\nclass RoutableMessageBusTest extends TestCase\n{\n public function testItRoutesToTheCorrectBus()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/RoutableMessageBusTest.php", "language": "php", "file_size": 2812, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\HandledStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\AnEnvelopeStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\TestTracesWithHandleTraitAction", "suffix": "amp(5);\n $bus = $this->createMock(MessageBusInterface::class);\n $bus->expects($this->once())->method('dispatch')->with($message, [$stamp])->willReturn(new Envelope($message, [$stamp]));\n\n $traceableBus = new TraceableMessageBus($bus);\n", "middle": ";\nuse Symfony\\Component\\Messenger\\TraceableMessageBus;\n\nclass TraceableMessageBusTest extends TestCase\n{\n public function testItTracesDispatch()\n {\n $message = new DummyMessage('Hello');\n\n $stamp = new DelaySt", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/TraceableMessageBusTest.php", "language": "php", "file_size": 6965, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\WorkerMetadata;\n\n/**\n * @author Oleg Krasavin <okwinza@gmail.com>\n */\nclass WorkerMetadataTest extends TestCase\n{\n public function testItReturnsDefaultValuesIfNoneProvided()\n {\n ", "suffix": " $data = [\n 'queueNames' => ['c', 'b', 'a'],\n 'transportNames' => ['a', 'b', 'c'],\n ];\n\n $metadata = new WorkerMetadata($data);\n\n $this->assertSame($data['queueNames'], $metadata->getQueueNames());\n $this->", "middle": " $metadata = new WorkerMetadata([]);\n\n $this->assertNull($metadata->getQueueNames());\n $this->assertSame([], $metadata->getTransportNames());\n }\n\n public function testItReturnsProvidedMetadata()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/WorkerMetadataTest.php", "language": "php", "file_size": 1523, "cut_index": 537, "middle_length": 229}} {"prefix": "nent\\Messenger\\Handler\\BatchHandlerTrait;\nuse Symfony\\Component\\Messenger\\Handler\\HandlerDescriptor;\nuse Symfony\\Component\\Messenger\\Handler\\HandlersLocator;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\HandleMessageMiddleware;\nuse Symfony\\Component\\Messenger\\Stamp\\ConsumedByWorkerStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\FlushBatchHandlersStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\NoAutoAckStamp;\nuse Symfony", "suffix": "essenger\\Tests\\Fixtures\\DummyMessageInterface;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyReceiver;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\ResettableDummyReceiver;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\KeepaliveReceiverInterfa", "middle": "\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\M", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/WorkerTest.php", "language": "php", "file_size": 41871, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\DelayedMessageHandlingException;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedException;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\MyOwnChildException;\nuse Symfony\\Component\\Messenger\\Tests", "suffix": " extends \\RuntimeException {\n public function __construct()\n {\n $this->code = 'HY000';\n $this->message = 'test';\n // no to call parent constructor, it will fail with string error code\n ", "middle": "\\Fixtures\\MyOwnException;\n\nclass HandlerFailedExceptionTest extends TestCase\n{\n public function testThatStringErrorCodeConvertsToInteger()\n {\n $envelope = new Envelope(new \\stdClass());\n $exception = new class", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Exception/HandlerFailedExceptionTest.php", "language": "php", "file_size": 4592, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\DataCollector\\MessengerDataCollector;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\TraceableMessageBus;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper;\n\n/**\n * @aut", "suffix": " $this->dumper->setColors(false);\n }\n\n public function testHandle()\n {\n $message = new DummyMessage('dummy message');\n $envelope = new Envelope($message);\n\n $bus = $this->createMock(MessageBusInterface::class);\n $", "middle": "hor Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass MessengerDataCollectorTest extends TestCase\n{\n private CliDumper $dumper;\n\n protected function setUp(): void\n {\n $this->dumper = new CliDumper();\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/DataCollector/MessengerDataCollectorTest.php", "language": "php", "file_size": 5877, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\n\nclass DummyReceiver implements ReceiverInterface\n{\n private array $acknowledgedEnvelopes = [];\n private array $rejectedEnvelo", "suffix": "ivate array $deliveriesOfEnvelopes,\n ) {\n }\n\n /**\n * @param int $fetchSize\n */\n public function get(/* int $fetchSize = 1 */): iterable\n {\n $this->fetchSizes[] = \\func_num_args() > 0 ? func_get_arg(0) : 1;\n\n $val = arra", "middle": "pes = [];\n private int $acknowledgeCount = 0;\n private int $rejectCount = 0;\n private array $fetchSizes = [];\n\n /**\n * @param Envelope[][] $deliveriesOfEnvelopes\n */\n public function __construct(\n pr", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Fixtures/DummyReceiver.php", "language": "php", "file_size": 1887, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactory;\nuse Symfony\\Component\\Messenger\\Tran", "suffix": " testThrowsExceptionOnUnsupportedTransport(array $transportSupport, string $dsn, ?string $expectedMessage)\n {\n if (null !== $expectedMessage) {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptio", "middle": "sport\\TransportFactoryInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\nclass TransportFactoryTest extends TestCase\n{\n #[DataProvider('provideThrowsExceptionOnUnsupportedTransport')]\n public function", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/TransportFactoryTest.php", "language": "php", "file_size": 4027, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Transport\\Sender;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportNamesStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessageInterface;\nuse Symfony\\Compo", "suffix": "se Symfony\\Component\\Messenger\\Tests\\Fixtures\\SecondMessage;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SendersLocator;\n\nclass SendersLocatorTest extends TestCase\n{\n public function", "middle": "nent\\Messenger\\Tests\\Fixtures\\DummyMessageWithAttribute;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessageWithInterfaceWithAttribute;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessageWithParentWithAttribute;\nu", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/Sender/SendersLocatorTest.php", "language": "php", "file_size": 6756, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Transport\\Sync;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Sync\\SyncTransport;\nuse Symfony\\Component\\Messenger\\Transport\\Sync\\SyncTransportFactory;", "suffix": " public function testCreateTransport()\n {\n $serializer = $this->createStub(SerializerInterface::class);\n $factory = new SyncTransportFactory(new MessageBus());\n $transport = $factory->createTransport('sync://', [], $serializer);\n", "middle": "\n\nclass SyncTransportFactoryTest extends TestCase\n{\n", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/Sync/SyncTransportFactoryTest.php", "language": "php", "file_size": 965, "cut_index": 582, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Transport\\Sync;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Syn", "suffix": "\n ->with($this->callback(function ($arg) {\n $this->assertInstanceOf(Envelope::class, $arg);\n\n return true;\n }))\n ->willReturnArgument(0);\n $message = new \\stdClass();\n $envelope =", "middle": "c\\SyncTransport;\n\nclass SyncTransportTest extends TestCase\n{\n public function testSend()\n {\n $bus = $this->createMock(MessageBusInterface::class);\n $bus->expects($this->once())\n ->method('dispatch')", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/Sync/SyncTransportTest.php", "language": "php", "file_size": 1269, "cut_index": 524, "middle_length": 229}} {"prefix": "Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\NonSendableStampInterface;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyLegacySerializable;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessageEnum;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessageWithLegacySerializable;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\n\n", "suffix": "se (&$errorHandler) {\n if (\\E_DEPRECATED === $errno && str_contains($errstr, 'Serializable interface')) {\n return true;\n }\n\n return $errorHandler ? $errorHandler(...\\func_get_args()) : false;\n});\n\ntry {\n class_exists(DummyLegacySerializa", "middle": "// Force-load the deprecated-Serializable fixture under an error handler that swallows\n// the PHP deprecation it triggers at class-declaration time.\n$errorHandler = set_error_handler(static function (int $errno, string $errstr) u", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/Serialization/PhpSerializerTest.php", "language": "php", "file_size": 11938, "cut_index": 921, "middle_length": 229}} {"prefix": "nent\\Clock\\ClockInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageHandledEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageReceivedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRateLimitedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerStartedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerStoppedEvent;\nuse Symfony\\Component\\Messenger\\Exception\\EnvelopeAwar", "suffix": "e Symfony\\Component\\Messenger\\Execution\\MessageExecutionStrategyInterface;\nuse Symfony\\Component\\Messenger\\Execution\\SyncMessageExecutionStrategy;\nuse Symfony\\Component\\Messenger\\Stamp\\AckStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\ConsumedByWorkerStamp;\n", "middle": "eExceptionInterface;\nuse Symfony\\Component\\Messenger\\Exception\\RejectRedeliveredMessageException;\nuse Symfony\\Component\\Messenger\\Exception\\RuntimeException;\nuse Symfony\\Component\\Messenger\\Execution\\DeferredBatchMessageQueue;\nus", "meta": {"filepath": "src/Symfony/Component/Messenger/Worker.php", "language": "php", "file_size": 14244, "cut_index": 921, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Exception;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * Thrown when a message cannot be decoded in a serializer.\n */\nclass MessageDecodingFailedException extends InvalidArgumentException\n{\n public function __construct(\n string $message = '',\n int $code = 0,\n ?\\Throwable $prev", "suffix": "nvelope = [],\n ) {\n parent::__construct($message, $code, $previous);\n }\n\n public static function wrap(array $encodedEnvelope, string $message, int $code = 0, ?\\Throwable $previous = null): Envelope\n {\n return new Envelope(new self", "middle": "ious = null,\n public readonly array $encodedE", "meta": {"filepath": "src/Symfony/Component/Messenger/Exception/MessageDecodingFailedException.php", "language": "php", "file_size": 947, "cut_index": 582, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Exception;\n\n/**\n * Exception that holds multiple exceptions thrown by one or more handlers and/or messages.\n *\n * @author Jeroen <https://github.com/Jeroeny>\n */\ninterface WrappedExceptionsInterface extends \\Throwable\n{\n /**\n * @t", "suffix": "m class-string<TException>|null $class\n *\n * @return \\Throwable[]\n *\n * @psalm-return ($class is null ? \\Throwable[] : TException[])\n */\n public function getWrappedExceptions(?string $class = null, bool $recursive = false): array;\n}\n", "middle": "emplate TException of \\Throwable\n *\n * @para", "meta": {"filepath": "src/Symfony/Component/Messenger/Exception/WrappedExceptionsInterface.php", "language": "php", "file_size": 821, "cut_index": 513, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport;\n\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n *\n * @implements TransportFactoryInterface<TransportInterface>\n */\nclass TransportFactory implements TransportFactoryInterface\n{", "suffix": "string $dsn, array $options, SerializerInterface $serializer): TransportInterface\n {\n foreach ($this->factories as $factory) {\n if ($factory->supports($dsn, $options)) {\n return $factory->createTransport($dsn, $options, ", "middle": "\n /**\n * @param iterable<mixed, TransportFactoryInterface> $factories\n */\n public function __construct(\n private iterable $factories,\n ) {\n }\n\n public function createTransport(#[\\SensitiveParameter] ", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/TransportFactory.php", "language": "php", "file_size": 3886, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfo", "suffix": "@author Nicolas Grekas <p@tchwork.com>\n */\nfinal class DecodeFailedMessageMiddleware implements MiddlewareInterface\n{\n public function __construct(\n private ContainerInterface $serializerLocator,\n ) {\n }\n\n public function handle(Envelope", "middle": "ny\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * Replays the transport serializer when a message could not be decoded initially.\n *\n * ", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/DecodeFailedMessageMiddleware.php", "language": "php", "file_size": 2638, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\DeduplicateStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\n\nfinal class DeduplicateMiddleware implements MiddlewareI", "suffix": "p::class)) {\n return $stack->next()->handle($envelope, $stack);\n }\n\n if (!$envelope->last(ReceivedStamp::class)) {\n $lock = $this->lockFactory->createLockFromKey($stamp->getKey(), $stamp->getTtl(), false);\n\n i", "middle": "nterface\n{\n public function __construct(private LockFactory $lockFactory)\n {\n }\n\n public function handle(Envelope $envelope, StackInterface $stack): Envelope\n {\n if (!$stamp = $envelope->last(DeduplicateStam", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/DeduplicateMiddleware.php", "language": "php", "file_size": 1518, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\n\n/**\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass Faile", "suffix": "Stamp\n if ($envelope->last(ReceivedStamp::class) && $sentToFailureStamp = $envelope->last(SentToFailureTransportStamp::class)) {\n // mark the message as \"received\" from the original transport\n // this guarantees the same behavi", "middle": "dMessageProcessingMiddleware implements MiddlewareInterface\n{\n public function handle(Envelope $envelope, StackInterface $stack): Envelope\n {\n // look for \"received\" messages decorated with the SentToFailureTransport", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/FailedMessageProcessingMiddleware.php", "language": "php", "file_size": 1219, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\ConsumedByWorkerStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\RouterContextStamp;\nuse Symfony\\Component\\Routing\\RequestContextAwareInterface;\n\n/**\n * Restore the Router context when processing th", "suffix": "\n public function handle(Envelope $envelope, StackInterface $stack): Envelope\n {\n $context = $this->router->getContext();\n\n if (!$envelope->last(ConsumedByWorkerStamp::class) || !$contextStamp = $envelope->last(RouterContextStamp::class", "middle": "e message.\n *\n * @author Jérémy Derussé <jeremy@derusse.com>\n */\nclass RouterContextMiddleware implements MiddlewareInterface\n{\n public function __construct(\n private RequestContextAwareInterface $router,\n ) {\n }\n", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/RouterContextMiddleware.php", "language": "php", "file_size": 2928, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Psr\\EventDispatcher\\EventDispatcherInterface;\nuse Psr\\Log\\LoggerAwareTrait;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\MessageSentToTransportsEvent;\nuse Symfony\\Component\\Messenger\\Event\\SendMessageToTransportsEvent;\nuse Symfony\\Component\\Messenger\\Exception\\NoSenderForMessageExcepti", "suffix": "torInterface;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n * @author Tobias Schultze <http://tobion.de>\n */\nclass SendMessageMiddleware implements MiddlewareInterface\n{\n use LoggerAwareTrait;\n\n public function __construct(\n private Sen", "middle": "on;\nuse Symfony\\Component\\Messenger\\Stamp\\FlushBatchHandlersStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SendersLoca", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/SendMessageMiddleware.php", "language": "php", "file_size": 3124, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass StackMiddleware implements MiddlewareInterface, StackInterface\n{\n private MiddlewareStack $stack;\n private int $offset = 0;\n\n /**\n * @param iterable<mixed, Middle", "suffix": "ll === $middlewareIterator) {\n return;\n }\n\n if ($middlewareIterator instanceof \\Iterator) {\n $this->stack->iterator = $middlewareIterator;\n } elseif ($middlewareIterator instanceof MiddlewareInterface) {\n ", "middle": "wareInterface>|MiddlewareInterface|null $middlewareIterator\n */\n public function __construct(iterable|MiddlewareInterface|null $middlewareIterator = null)\n {\n $this->stack = new MiddlewareStack();\n\n if (nu", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/StackMiddleware.php", "language": "php", "file_size": 2225, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\ValidationFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\ValidationStamp;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\n\n", "suffix": "tion handle(Envelope $envelope, StackInterface $stack): Envelope\n {\n $message = $envelope->getMessage();\n $groups = $envelope->last(ValidationStamp::class)?->getGroups();\n\n $violations = $this->validator->validate($message, null, $g", "middle": "/**\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\nclass ValidationMiddleware implements MiddlewareInterface\n{\n public function __construct(\n private ValidatorInterface $validator,\n ) {\n }\n\n public func", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/ValidationMiddleware.php", "language": "php", "file_size": 1206, "cut_index": 518, "middle_length": 229}} {"prefix": "ent\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Helper\\Dumper;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\ErrorDetailsStamp;\nuse Symfony\\", "suffix": "eIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ListableReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\nuse Symfony\\Compone", "middle": "Component\\Messenger\\Stamp\\MessageDecodingFailedStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessag", "meta": {"filepath": "src/Symfony/Component/Messenger/Command/AbstractFailedMessagesCommand.php", "language": "php", "file_size": 9506, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;", "suffix": "Roland Franssen <franssen.roland@gmail.com>\n */\n#[AsCommand(name: 'debug:messenger', description: 'List messages you can dispatch using the message buses')]\nclass DebugCommand extends Command\n{\n public function __construct(\n private array $mappin", "middle": "\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * A console command to debug Messenger information.\n *\n * @author ", "meta": {"filepath": "src/Symfony/Component/Messenger/Command/DebugCommand.php", "language": "php", "file_size": 4597, "cut_index": 614, "middle_length": 229}} {"prefix": "lableCommandInterface;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageReceivedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerM", "suffix": "Component\\Messenger\\Transport\\Receiver\\ListableReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\SingleMessageReceiver;\nuse Symfony\\Component\\Messenger\\Transport\\Seri", "middle": "essageSkipEvent;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnMessageLimitListener;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php", "language": "php", "file_size": 12043, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Command;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Compone", "suffix": "nt Touzet <vincent.touzet@gmail.com>\n */\n#[AsCommand(name: 'messenger:setup-transports', description: 'Prepare the required infrastructure for the transport')]\nclass SetupTransportsCommand extends Command\n{\n public function __construct(\n private ", "middle": "nt\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Messenger\\Transport\\SetupableTransportInterface;\n\n/**\n * @author Vince", "meta": {"filepath": "src/Symfony/Component/Messenger/Command/SetupTransportsCommand.php", "language": "php", "file_size": 3253, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Stamp\\BusNameStamp;\n\n/**\n * Bus of buses that is routable using a BusNameStamp.\n *\n * This is useful when passed to Worker: messages received\n * fr", "suffix": "$busLocator,\n private ?MessageBusInterface $fallbackBus = null,\n ) {\n }\n\n public function dispatch(object $envelope, array $stamps = []): Envelope\n {\n if (!$envelope instanceof Envelope) {\n throw new InvalidArgumentExce", "middle": "om the transport can be sent to the correct bus.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass RoutableMessageBus implements MessageBusInterface\n{\n public function __construct(\n private ContainerInterface ", "meta": {"filepath": "src/Symfony/Component/Messenger/RoutableMessageBus.php", "language": "php", "file_size": 2030, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Exception;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * When handling queued messages from {@link DispatchAfterCurrentBusMiddleware},\n * some handlers caused an exception. This exception contains all those handler exceptions.\n *\n * @author To", "suffix": "dExceptionsTrait;\n\n public function __construct(\n private array $exceptions,\n ?Envelope $envelope = null,\n ) {\n $this->envelope = $envelope;\n\n $exceptionMessages = implode(\", \\n\", array_map(\n static fn (\\Throwab", "middle": "bias Nyholm <tobias.nyholm@gmail.com>\n */\nclass DelayedMessageHandlingException extends RuntimeException implements WrappedExceptionsInterface, EnvelopeAwareExceptionInterface\n{\n use EnvelopeAwareExceptionTrait;\n use Wrappe", "meta": {"filepath": "src/Symfony/Component/Messenger/Exception/DelayedMessageHandlingException.php", "language": "php", "file_size": 1473, "cut_index": 524, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Sender;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\ExceptionInterface;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\ninterface SenderInterface\n{\n /**\n * Sends the given envelope.", "suffix": "for transport configuration,\n * like delivery delay.\n *\n * If applicable, the returned Envelope should contain a TransportMessageIdStamp.\n *\n * @throws ExceptionInterface\n */\n public function send(Envelope $envelope): Envelope;\n}", "middle": "\n *\n * The sender can read different stamps ", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Sender/SenderInterface.php", "language": "php", "file_size": 832, "cut_index": 523, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Psr\\Clock\\ClockInterface;\nuse Psr\\Log\\LoggerAwareTrait;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Exception\\NoHandlerForMessageException;\nuse Symfony\\Component\\Messenger\\Handler\\Acknowledger;\nuse Symfony\\Component\\Messenger\\Handler\\HandlerDescriptor;\nuse Symfony\\Comp", "suffix": "onent\\Messenger\\Stamp\\HandlerArgumentsStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\NoAutoAckStamp;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\nclass HandleMessageMiddleware implements MiddlewareInterface\n{\n use LoggerAwareTrait;\n\n public ", "middle": "onent\\Messenger\\Handler\\HandlersLocatorInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\AckStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\FlushBatchHandlersStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\HandledStamp;\nuse Symfony\\Comp", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/HandleMessageMiddleware.php", "language": "php", "file_size": 6155, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpReceivedStamp;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\RejectRedeliveredMessageException;\n\n/**\n * Middleware that throws a RejectRedeliveredMessag", "suffix": "t by the worker and will trigger the retry logic according to the retry strategy.\n *\n * AMQP redelivers messages when they do not get acknowledged or rejected. This can happen when the connection times out\n * or an exception is thrown before acknowledging ", "middle": "eException when a message is detected that has been redelivered by AMQP.\n *\n * The middleware runs before the HandleMessageMiddleware and prevents redelivered messages from being handled directly.\n * The thrown exception is caugh", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/RejectRedeliveredMessageMiddleware.php", "language": "php", "file_size": 1887, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Config\\Tests\\Definition\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\Dumper\\XmlReferenceDumper;\nuse Symfony\\Component\\Config\\Tests\\Fixtures\\Configuration\\ExampleConfiguration;\n\nclass XmlReferenceDumperTest extends TestCase\n{\n public function testDumper()\n {\n $configuration = new ExampleConfiguratio", "suffix": "ExampleConfiguration();\n\n $dumper = new XmlReferenceDumper();\n $this->assertEquals(str_replace('http://example.org/schema/dic/acme_root', 'http://symfony.com/schema/dic/symfony', $this->getConfigurationAsString()), $dumper->dump($configuratio", "middle": "n();\n\n $dumper = new XmlReferenceDumper();\n $this->assertEquals($this->getConfigurationAsString(), $dumper->dump($configuration));\n }\n\n public function testNamespaceDumper()\n {\n $configuration = new ", "meta": {"filepath": "src/Symfony/Component/Config/Tests/Definition/Dumper/XmlReferenceDumperTest.php", "language": "php", "file_size": 4488, "cut_index": 614, "middle_length": 229}} {"prefix": "fony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Question\\ChoiceQuestion;\nuse Symfony\\Component\\Console\\SignalRegistry\\SignalRegistry;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Messenger\\EventListener\\ResetServicesListener;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnFailure", "suffix": " Symfony\\Component\\Messenger\\Transport\\Sync\\SyncTransport;\nuse Symfony\\Component\\Messenger\\Worker;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\n#[AsCommand(name: 'messenger:consume', description: 'Consume messages')]\nclass ConsumeMessagesCommand", "middle": "LimitListener;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnMemoryLimitListener;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnMessageLimitListener;\nuse Symfony\\Component\\Messenger\\RoutableMessageBus;\nuse", "meta": {"filepath": "src/Symfony/Component/Messenger/Command/ConsumeMessagesCommand.php", "language": "php", "file_size": 18098, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Messenger\\Stamp\\ErrorDetailsStamp;\nuse Symf", "suffix": "iption: 'Show one or more messages from the failure transport')]\nclass FailedMessagesShowCommand extends AbstractFailedMessagesCommand\n{\n protected function configure(): void\n {\n $this\n ->setDefinition([\n new InputArg", "middle": "ony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ListableReceiverInterface;\n\n/**\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\n#[AsCommand(name: 'messenger:failed:show', descr", "meta": {"filepath": "src/Symfony/Component/Messenger/Command/FailedMessagesShowCommand.php", "language": "php", "file_size": 7482, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Exception;\n\n/**\n * A concrete implementation of RecoverableExceptionInterface that can be used directly.\n *\n * @author Frederic Bouchery <frederic@bouchery.fr>\n */\nclass RecoverableMessageHandlingException extends RuntimeException implements Recove", "suffix": "ort, which can cause unbounded retries. Pass\n * false to let the configured retry strategy bound the number of attempts.\n */\n public function __construct(\n string $message = '',\n int $code = 0,\n ?\\Thr", "middle": "rableExceptionInterface\n{\n /**\n * @param bool $forceRetry When true (the default, preserving 8.0 semantics), the message will be retried regardless\n * of the configured max_retries on the transp", "meta": {"filepath": "src/Symfony/Component/Messenger/Exception/RecoverableMessageHandlingException.php", "language": "php", "file_size": 1382, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\DelayedMessageHandlingException;\nuse Symfony\\Component\\Messenger\\Stamp\\DispatchAfterCurrentBusStamp;\n\n/**\n * Allow to configure messages to be handled after the current bus is finished.\n *\n * I.e, messages dispatched from a handler with a Di", "suffix": "sages with a DispatchAfterCurrentBus stamp would be\n * handled after the Doctrine transaction has been committed.\n *\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\nclass DispatchAfterCurrentBusMiddleware implements MiddlewareInterface\n{\n /**\n ", "middle": "spatchAfterCurrentBus stamp\n * will actually be handled once the current message being dispatched is fully\n * handled.\n *\n * For instance, using this middleware before the DoctrineTransactionMiddleware\n * means sub-dispatched mes", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/DispatchAfterCurrentBusMiddleware.php", "language": "php", "file_size": 4461, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Transport\\Sync;\n\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactoryInterface;\nuse Symfony\\Component\\Mess", "suffix": "unction __construct(\n private MessageBusInterface $messageBus,\n ) {\n }\n\n public function createTransport(#[\\SensitiveParameter] string $dsn, array $options, SerializerInterface $serializer): TransportInterface\n {\n return new SyncT", "middle": "enger\\Transport\\TransportInterface;\n\n/**\n * @author Ryan Weaver <ryan@symfonycasts.com>\n *\n * @implements TransportFactoryInterface<SyncTransport>\n */\nclass SyncTransportFactory implements TransportFactoryInterface\n{\n public f", "meta": {"filepath": "src/Symfony/Component/Messenger/Transport/Sync/SyncTransportFactory.php", "language": "php", "file_size": 1189, "cut_index": 518, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Message;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\nfinal class RedispatchMessage implements \\Stringable\n{\n /**\n * @param object|Envelope $envelope The message or the message pre-wrapped in an envelope\n * @param string[", "suffix": "public function __toString(): string\n {\n $message = $this->envelope instanceof Envelope ? $this->envelope->getMessage() : $this->envelope;\n\n return \\sprintf('%s via %s', $message instanceof \\Stringable ? (string) $message : $message::class", "middle": "]|string $transportNames Transport names to be used for the message\n */\n public function __construct(\n public readonly object $envelope,\n public readonly array|string $transportNames = [],\n ) {\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Message/RedispatchMessage.php", "language": "php", "file_size": 1055, "cut_index": 513, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Attribute;\n\n/**\n * Attribute for configuring message routing.\n *\n * @author Pierre Rineau pierre.rineau@processus.org>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::IS_REPEATABLE)]\nclass AsMessage\n{\n public function __construct(\n ", "suffix": " the message should be routed.\n */\n public string|array|null $transport = null,\n /**\n * The serialized type to use when sending or receiving the message.\n */\n public ?string $serializedTypeName = null,\n ) {\n ", "middle": " /**\n * Name of the transports to which", "meta": {"filepath": "src/Symfony/Component/Messenger/Attribute/AsMessage.php", "language": "php", "file_size": 835, "cut_index": 520, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ListableReceiv", "suffix": "from the failure transport')]\nclass FailedMessagesRemoveCommand extends AbstractFailedMessagesCommand\n{\n protected function configure(): void\n {\n $this\n ->setDefinition([\n new InputArgument('id', InputArgument::OPTION", "middle": "erInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\n\n/**\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\n#[AsCommand(name: 'messenger:failed:remove', description: 'Remove given messages ", "meta": {"filepath": "src/Symfony/Component/Messenger/Command/FailedMessagesRemoveCommand.php", "language": "php", "file_size": 7333, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * Collects some data about a middleware.\n *\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass TraceableMiddleware implements MiddlewareInterface\n{\n public fu", "suffix": "ce $stack): Envelope\n {\n $stack = new TraceableStack($stack, $this->stopwatch, $this->busName, $this->eventCategory);\n\n try {\n return $stack->next()->handle($envelope, $stack);\n } finally {\n $stack->stop();\n ", "middle": "nction __construct(\n private Stopwatch $stopwatch,\n private string $busName,\n private string $eventCategory = 'messenger.middleware',\n ) {\n }\n\n public function handle(Envelope $envelope, StackInterfa", "meta": {"filepath": "src/Symfony/Component/Messenger/Middleware/TraceableMiddleware.php", "language": "php", "file_size": 2335, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Transport\\InMemory;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Transport\\InMemory\\InMemoryTranspo", "suffix": "ansportFactoryTest extends TestCase\n{\n private InMemoryTransportFactory $factory;\n\n protected function setUp(): void\n {\n $this->factory = new InMemoryTransportFactory();\n }\n\n #[DataProvider('provideDSN')]\n public function testSuppo", "middle": "rt;\nuse Symfony\\Component\\Messenger\\Transport\\InMemory\\InMemoryTransportFactory;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * @author Gary PEGEOT <garypegeot@gmail.com>\n */\nclass InMemoryTr", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/InMemory/InMemoryTransportFactoryTest.php", "language": "php", "file_size": 3473, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\Messenger\\Command\\StatsCommand;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * @author Kévin Thérage <therage.kevin@gmail.com>\n */\nclass StatsCommandTest exte", "suffix": "getMessageCount')->willReturn(6);\n\n $simpleTransport = $this->createStub(TransportInterface::class);\n\n // mock a service locator\n $serviceLocator = $this->createStub(ServiceLocator::class);\n $serviceLocator\n ->method(", "middle": "nds TestCase\n{\n private StatsCommand $command;\n\n protected function setUp(): void\n {\n $messageCountableTransport = $this->createStub(MessageCountAwareInterface::class);\n $messageCountableTransport->method('", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Command/StatsCommandTest.php", "language": "php", "file_size": 7742, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Messenger\\Command\\StopWorkersCommand;\n\nclass StopWorkersCommandTest", "suffix": "ects($this->once())->method('set');\n $cachePool->expects($this->once())->method('getItem')->willReturn($cacheItem);\n $cachePool->expects($this->once())->method('save')->with($cacheItem);\n\n $command = new StopWorkersCommand($cachePool);", "middle": " extends TestCase\n{\n public function testItSetsCacheItem()\n {\n $cachePool = $this->createMock(CacheItemPoolInterface::class);\n $cacheItem = $this->createMock(CacheItemInterface::class);\n $cacheItem->exp", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Command/StopWorkersCommandTest.php", "language": "php", "file_size": 1871, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\EventListener\\AddErrorDetailsStampListener;\nuse Symfony\\Component\\Messenger\\Stamp\\ErrorDetailsS", "suffix": "ss());\n $exception = new \\Exception('It failed!');\n $event = new WorkerMessageFailedEvent($envelope, 'my_receiver', $exception);\n $expectedStamp = ErrorDetailsStamp::create($exception);\n\n $listener->onMessageFailed($event);\n\n ", "middle": "tamp;\n\nfinal class AddErrorDetailsStampListenerTest extends TestCase\n{\n public function testExceptionDetailsAreAdded()\n {\n $listener = new AddErrorDetailsStampListener();\n\n $envelope = new Envelope(new \\stdCla", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/AddErrorDetailsStampListenerTest.php", "language": "php", "file_size": 2339, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Lock\\SharedLockInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\EventListener\\ReleaseDeduplicationLockOnFailureListener;\nu", "suffix": "tion testLockIsReleasedWhenMessageWillNotRetry()\n {\n $lock = $this->createMock(SharedLockInterface::class);\n $lock->expects($this->once())->method('release');\n\n $lockFactory = $this->createMock(LockFactory::class);\n $lockFact", "middle": "se Symfony\\Component\\Messenger\\EventListener\\SendFailedMessageForRetryListener;\nuse Symfony\\Component\\Messenger\\Stamp\\DeduplicateStamp;\n\nfinal class ReleaseDeduplicationLockOnFailureListenerTest extends TestCase\n{\n public func", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/ReleaseDeduplicationLockOnFailureListenerTest.php", "language": "php", "file_size": 3421, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ServicesResetter;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerStoppedEvent;\nuse Symfon", "suffix": " TestCase\n{\n public static function provideResetServices(): iterable\n {\n yield [true];\n yield [false];\n }\n\n #[DataProvider('provideResetServices')]\n public function testResetServices(bool $shouldReset)\n {\n $resettable", "middle": "y\\Component\\Messenger\\EventListener\\ResetServicesListener;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\Worker;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\nclass ResetServicesListenerTest extends", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/ResetServicesListenerTest.php", "language": "php", "file_size": 2061, "cut_index": 563, "middle_length": 229}} {"prefix": "\\Messenger\\Exception\\RecoverableMessageHandlingException;\nuse Symfony\\Component\\Messenger\\Retry\\MultiplierRetryStrategy;\nuse Symfony\\Component\\Messenger\\Retry\\RetryStrategyInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentForRetryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface;\n\nclass SendFailedMessageForRetryListen", "suffix": " = new Container();\n $sendersLocator->set('my_receiver', $sender);\n $listener = new SendFailedMessageForRetryListener($sendersLocator, new Container());\n\n $exception = new \\Exception('no!');\n $envelope = new Envelope(new \\stdCla", "middle": "erTest extends TestCase\n{\n public function testNoRetryStrategyCausesNoRetry()\n {\n $sender = $this->createMock(SenderInterface::class);\n $sender->expects($this->never())->method('send');\n $sendersLocator", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/SendFailedMessageForRetryListenerTest.php", "language": "php", "file_size": 20749, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\EventListener\\SendFailedMessageToFailureTransportListener;\nuse Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface", "suffix": "SenderInterface::class);\n $sender->expects($this->once())->method('send')->with($this->callback(function ($envelope) use ($receiverName) {\n $this->assertInstanceOf(Envelope::class, $envelope);\n $sentToFailureTransportStamp = $e", "middle": ";\n\nclass SendFailedMessageToFailureTransportListenerTest extends TestCase\n{\n public function testItSendsToTheFailureTransportWithSenderLocator()\n {\n $receiverName = 'my_receiver';\n $sender = $this->createMock(", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/SendFailedMessageToFailureTransportListenerTest.php", "language": "php", "file_size": 7901, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\", "suffix": "eption\\StopWorkerExceptionInterface;\nuse Symfony\\Component\\Messenger\\Worker;\n\nclass StopWorkerOnCustomStopExceptionListenerTest extends TestCase\n{\n public static function provideTests(): \\Generator\n {\n yield 'it should not stop (1)' => [new \\E", "middle": "Messenger\\EventListener\\StopWorkerOnCustomStopExceptionListener;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\StopWorkerException;\nuse Symfony\\Component\\Messenger\\Exc", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/StopWorkerOnCustomStopExceptionListenerTest.php", "language": "php", "file_size": 2726, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunning", "suffix": "r;\n\nclass StopWorkerOnFailureLimitListenerTest extends TestCase\n{\n #[DataProvider('countProvider')]\n public function testWorkerStopsWhenMaximumCountReached(int $max, bool $shouldStop)\n {\n $worker = $this->createMock(Worker::class);\n ", "middle": "Event;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnFailureLimitListener;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Worke", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/StopWorkerOnFailureLimitListenerTest.php", "language": "php", "file_size": 2787, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnMemoryLimitListener;\nuse Symfony\\Componen", "suffix": "emoryUsage, int $memoryLimit, bool $shouldStop)\n {\n $memoryResolver = static fn () => $memoryUsage;\n\n $worker = $this->createMock(Worker::class);\n $worker->expects($shouldStop ? $this->once() : $this->never())->method('stop');\n ", "middle": "t\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\Worker;\n\nclass StopWorkerOnMemoryLimitListenerTest extends TestCase\n{\n #[DataProvider('memoryProvider')]\n public function testWorkerStopsWhenMemoryLimitExceeded(int $m", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/StopWorkerOnMemoryLimitListenerTest.php", "language": "php", "file_size": 2061, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnMessageLimitListener;\nuse Symfony\\Compone", "suffix": "$max, bool $shouldStop)\n {\n $worker = $this->createMock(Worker::class);\n $worker->expects($shouldStop ? $this->atLeastOnce() : $this->never())->method('stop');\n $event = new WorkerRunningEvent($worker, false);\n\n $maximumCount", "middle": "nt\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\Worker;\n\nclass StopWorkerOnMessageLimitListenerTest extends TestCase\n{\n #[DataProvider('countProvider')]\n public function testWorkerStopsWhenMaximumCountExceeded(int ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/StopWorkerOnMessageLimitListenerTest.php", "language": "php", "file_size": 2100, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemInterface;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Comp", "suffix": "ovider')]\n public function testWorkerStopsWhenMemoryLimitExceeded(?int $lastRestartTimeOffset, bool $shouldStop)\n {\n $cachePool = $this->createMock(CacheItemPoolInterface::class);\n $cacheItem = $this->createMock(CacheItemInterface::clas", "middle": "onent\\Messenger\\EventListener\\StopWorkerOnRestartSignalListener;\nuse Symfony\\Component\\Messenger\\Worker;\n\n#[Group('time-sensitive')]\nclass StopWorkerOnRestartSignalListenerTest extends TestCase\n{\n #[DataProvider('restartTimePr", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/StopWorkerOnRestartSignalListenerTest.php", "language": "php", "file_size": 2861, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messe", "suffix": "\n public function testWorkerStopsWhenTimeLimitIsReached()\n {\n $this->expectUserDeprecationMessage('Since symfony/messenger 8.1: \"Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnTimeLimitListener\" is deprecated, use the \"time_limit\" worke", "middle": "nger\\EventListener\\StopWorkerOnTimeLimitListener;\nuse Symfony\\Component\\Messenger\\Worker;\n\nclass StopWorkerOnTimeLimitListenerTest extends TestCase\n{\n #[Group('time-sensitive')]\n #[Group('legacy')]\n #[IgnoreDeprecations]", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/EventListener/StopWorkerOnTimeLimitListenerTest.php", "language": "php", "file_size": 1626, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Handler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Handler\\Acknowledger;\n\nclass AcknowledgerTest extends TestCase\n{\n public function testNackAfterAckThrowsIsAllowed()\n {\n $ackCalls = 0;\n $nackCalls =", "suffix": "ew \\RuntimeException('Ack failed.');\n }\n\n ++$nackCalls;\n $nackError = $error;\n };\n\n $acknowledger = new Acknowledger('handler', $ack);\n\n try {\n $acknowledger->ack();\n } catch (\\Runtime", "middle": " 0;\n $nackError = null;\n\n $ack = static function (?\\Throwable $error = null) use (&$ackCalls, &$nackCalls, &$nackError): void {\n if (null === $error) {\n ++$ackCalls;\n throw n", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Handler/AcknowledgerTest.php", "language": "php", "file_size": 1387, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Handler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Handler\\HandlerDescriptor;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyCommandHandler;\n\nclass HandlerDescriptorTest extends TestCase\n{\n #[DataProvide", "suffix": "lerString, $descriptor->getName());\n }\n\n public static function provideHandlers(): iterable\n {\n yield [static function () {}, 'Closure'];\n yield ['var_dump', 'var_dump'];\n yield [new DummyCommandHandler(), DummyCommandHandler:", "middle": "r('provideHandlers')]\n public function testDescriptorNames(callable $handler, ?string $expectedHandlerString)\n {\n $descriptor = new HandlerDescriptor($handler);\n\n $this->assertStringMatchesFormat($expectedHand", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Handler/HandlerDescriptorTest.php", "language": "php", "file_size": 2166, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Handler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Handler\\HandlerDescriptor;\nuse Symfony\\Component\\Messenger\\Handler\\HandlersLocator;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messen", "suffix": "r([\n DummyMessage::class => [$handler],\n ]);\n\n $descriptor = new HandlerDescriptor($handler);\n $descriptor->getName();\n\n $this->assertEquals([$descriptor], iterator_to_array($locator->getHandlers(new Envelope(new Dumm", "middle": "ger\\Tests\\Fixtures\\DummyMessage;\n\nclass HandlersLocatorTest extends TestCase\n{\n public function testItYieldsHandlerDescriptors()\n {\n $handler = new HandlersLocatorTestCallable();\n $locator = new HandlersLocato", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Handler/HandlersLocatorTest.php", "language": "php", "file_size": 2904, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Execution;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Execution\\DeferredBatchMessageQueue;\nuse Symfony\\Component\\Messenger\\Execution\\Message\\DeferredBatchMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMe", "suffix": " $acked = false;\n $envelope = new Envelope(new DummyMessage('Hello'));\n\n $queue->add($batchHandler, 7, $envelope, $acked, 10.0);\n\n $flushable = $queue->popFlushable(true, 10.0);\n\n $this->assertCount(1, $flushable);\n $thi", "middle": "ssage;\n\nclass DeferredBatchMessageQueueTest extends TestCase\n{\n public function testItReturnsAllEntriesWhenForceFlushing()\n {\n $queue = new DeferredBatchMessageQueue();\n $batchHandler = new \\stdClass();\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Execution/DeferredBatchMessageQueueTest.php", "language": "php", "file_size": 2318, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Retry;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Retry\\MultiplierRetryStrategy;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\n\nclass MultiplierRetryStrategyTest extends TestCase\n{\n public function testIsRetry", "suffix": "on testIsNotRetryable()\n {\n $strategy = new MultiplierRetryStrategy(3);\n $envelope = new Envelope(new \\stdClass(), [new RedeliveryStamp(3)]);\n\n $this->assertFalse($strategy->isRetryable($envelope));\n }\n\n public function testIs", "middle": "able()\n {\n $strategy = new MultiplierRetryStrategy(3);\n $envelope = new Envelope(new \\stdClass(), [new RedeliveryStamp(0)]);\n\n $this->assertTrue($strategy->isRetryable($envelope));\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Retry/MultiplierRetryStrategyTest.php", "language": "php", "file_size": 4263, "cut_index": 614, "middle_length": 229}} {"prefix": "elope;\nuse Symfony\\Component\\Messenger\\Handler\\HandlersLocator;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\HandleMessageMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\ChildDummyMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyCommand;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyCommandHandler;\nuse Symfo", "suffix": "xtures\\DummyQueryHandler;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\MultipleBusesMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\MultipleBusesMessageHandler;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\SecondMessage;\nuse Symfony\\Component\\M", "middle": "ny\\Component\\Messenger\\Tests\\Fixtures\\DummyHandlerWithCustomMethods;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyQuery;\nuse Symfony\\Component\\Messenger\\Tests\\Fi", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php", "language": "php", "file_size": 55409, "cut_index": 2151, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Event;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\StampInterface;\n\nabstract class AbstractWorkerMessageEvent\n{\n public function __construct(\n private Envelope $envelope,\n private string $receiverName,\n ) {\n }\n\n public function getEnvelope(): ", "suffix": "\n\n /**\n * Returns a unique identifier for transport receiver this message was received from.\n */\n public function getReceiverName(): string\n {\n return $this->receiverName;\n }\n\n public function addStamps(StampInterface ...$stam", "middle": "Envelope\n {\n return $this->envelope;\n }", "meta": {"filepath": "src/Symfony/Component/Messenger/Event/AbstractWorkerMessageEvent.php", "language": "php", "file_size": 975, "cut_index": 582, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Event;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface;\n\n/**\n * Event is dispatched after a message is sent to the transport.\n *\n * The event is *only* dispatched if the message w", "suffix": "ce> $senders\n */\n public function __construct(\n private Envelope $envelope,\n private array $senders,\n ) {\n }\n\n public function getEnvelope(): Envelope\n {\n return $this->envelope;\n }\n\n /**\n * @return array<s", "middle": "as actually\n * sent to at least one transport. If the message was sent\n * to multiple transports, the event is dispatched only once.\n */\nfinal class MessageSentToTransportsEvent\n{\n /**\n * @param array<string, SenderInterfa", "meta": {"filepath": "src/Symfony/Component/Messenger/Event/MessageSentToTransportsEvent.php", "language": "php", "file_size": 1117, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Event;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface;\n\n/**\n * Event is dispatched before a message is sent to the transport.\n *\n * The event is *only* dispatched if the message will actu", "suffix": "s retried.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nfinal class SendMessageToTransportsEvent\n{\n /**\n * @param array<string, SenderInterface> $senders\n */\n public function __construct(\n private Envelope $envelope,\n p", "middle": "ally\n * be sent to at least one transport. If the message is sent\n * to multiple transports, the event is dispatched only once.\n * This event is only dispatched the first time a message\n * is sent to a transport, not also if it i", "meta": {"filepath": "src/Symfony/Component/Messenger/Event/SendMessageToTransportsEvent.php", "language": "php", "file_size": 1391, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Event;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * Dispatched when a message was received from a transport and handling failed.\n *\n * The event name is the class name.\n */\nfinal class WorkerMessageFailedEvent extends AbstractWorkerM", "suffix": " parent::__construct($envelope, $receiverName);\n }\n\n public function getThrowable(): \\Throwable\n {\n return $this->throwable;\n }\n\n public function willRetry(): bool\n {\n return $this->willRetry;\n }\n\n public function setF", "middle": "essageEvent\n{\n private \\Throwable $throwable;\n private bool $willRetry = false;\n\n public function __construct(Envelope $envelope, string $receiverName, \\Throwable $error)\n {\n $this->throwable = $error;\n\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Event/WorkerMessageFailedEvent.php", "language": "php", "file_size": 1063, "cut_index": 515, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Event;\n\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\n\n/**\n * Dispatched after the worker has been blocked due to a configured rate limiter.\n * Can be used to reset the rate limiter.\n *\n * @author Bob van de Vijver\n */\nfinal class WorkerR", "suffix": "ivate LimiterInterface $limiter, private string $transportName)\n {\n }\n\n public function getLimiter(): LimiterInterface\n {\n return $this->limiter;\n }\n\n public function getTransportName(): string\n {\n return $this->transport", "middle": "ateLimitedEvent\n{\n public function __construct(pr", "meta": {"filepath": "src/Symfony/Component/Messenger/Event/WorkerRateLimitedEvent.php", "language": "php", "file_size": 842, "cut_index": 520, "middle_length": 52}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Event;\n\nuse Symfony\\Component\\Messenger\\Worker;\n\n/**\n * Dispatched after the worker processed a message or didn't receive a message at all.\n *\n * @author Tobias Schultze <http://tobion.de>\n */\nfinal class WorkerRunningEvent\n{\n public function __construct(\n private Worker $", "suffix": " }\n\n public function getWorker(): Worker\n {\n return $this->worker;\n }\n\n /**\n * Returns true when no message has been received by the worker.\n */\n public function isWorkerIdle(): bool\n {\n return $this->isWorkerIdle", "middle": "worker,\n private bool $isWorkerIdle,\n ) {\n", "meta": {"filepath": "src/Symfony/Component/Messenger/Event/WorkerRunningEvent.php", "language": "php", "file_size": 877, "cut_index": 559, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Event;\n\nuse Symfony\\Component\\Messenger\\Worker;\n\n/**\n * Dispatched when a worker has been started.\n *\n * @author Tobias Schultze <http://tobion.de>\n */\nfinal class WorkerStartedEvent\n{\n public function __construct(\n private Worker $worker", "suffix": " a microtime(true) float) at which the\n * worker must stop, or null if no --time-limit was set.\n */\n public function getDeadline(): ?float\n {\n return $this->deadline;\n }\n\n /**\n * Returns the duration in microseconds the worke", "middle": ",\n private ?float $deadline = null,\n private int $idleTimeout = 1000000,\n ) {\n }\n\n public function getWorker(): Worker\n {\n return $this->worker;\n }\n\n /**\n * Returns the absolute time (as", "meta": {"filepath": "src/Symfony/Component/Messenger/Event/WorkerStartedEvent.php", "language": "php", "file_size": 1307, "cut_index": 524, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport;\n\nuse Symfony\\Component\\Messenger\\Stamp\\NonSendableStampInterface;\n\nfinal class AmazonSqsFifoStamp implements NonSendableStampInterface\n{\n public function __construct(\n private ?string $messageGroupId = null,\n privat", "suffix": "sageDeduplicationId = null,\n ) {\n }\n\n public function getMessageGroupId(): ?string\n {\n return $this->messageGroupId;\n }\n\n public function getMessageDeduplicationId(): ?string\n {\n return $this->messageDeduplicationId;\n ", "middle": "e ?string $mes", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsFifoStamp.php", "language": "php", "file_size": 810, "cut_index": 536, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport;\n\nuse AsyncAws\\Core\\Exception\\Http\\HttpException;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Mes", "suffix": "ransport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * @author Jérémy Derussé <jeremy@derusse.com>\n */\nclass AmazonSqsReceiver implements KeepaliveReceiverInterface, MessageCountAwareInter", "middle": "senger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\KeepaliveReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\T", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsReceiver.php", "language": "php", "file_size": 3787, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport;\n\nuse AsyncAws\\Core\\Exception\\Http\\HttpException;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderI", "suffix": " private Connection $connection,\n private SerializerInterface $serializer,\n ) {\n }\n\n public function send(Envelope $envelope): Envelope\n {\n $encodedMessage = $this->serializer->encode($envelope);\n $encodedMessage = $th", "middle": "nterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * @author Jérémy Derussé <jeremy@derusse.com>\n */\nclass AmazonSqsSender implements SenderInterface\n{\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsSender.php", "language": "php", "file_size": 3021, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport;\n\nuse AsyncAws\\Core\\Exception\\Http\\HttpException;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Transport\\CloseableTransportInterface;\nuse Symfony\\Component\\Messenger", "suffix": "Transport\\Sender\\SenderInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\SetupableTransportInterface;\nuse", "middle": "\\Transport\\Receiver\\KeepaliveReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\nuse Symfony\\Component\\Messenger\\", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsTransport.php", "language": "php", "file_size": 3939, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactoryInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterf", "suffix": "rtFactoryInterface\n{\n public function __construct(\n private ?LoggerInterface $logger = null,\n private ?HttpClientInterface $httpClient = null,\n ) {\n }\n\n public function createTransport(#[\\SensitiveParameter] string $dsn, array $op", "middle": "ace;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Jérémy Derussé <jeremy@derusse.com>\n *\n * @implements TransportFactoryInterface<AmazonSqsTransport>\n */\nclass AmazonSqsTransportFactory implements Transpo", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsTransportFactory.php", "language": "php", "file_size": 1537, "cut_index": 537, "middle_length": 229}} {"prefix": "russé <jeremy@derusse.com>\n *\n * @internal\n *\n * @final\n */\nclass Connection\n{\n private const AWS_SQS_FIFO_SUFFIX = '.fifo';\n private const MESSAGE_ATTRIBUTE_NAME = 'X-Symfony-Messenger';\n\n private const DEFAULT_OPTIONS = [\n 'buffer_size' => 9,\n 'wait_time' => 20,\n 'poll_timeout' => 0.1,\n 'visibility_timeout' => null,\n 'delete_on_rejection' => true,\n 'retry_delay' => 0,\n 'auto_setup' => true,\n 'access_key' => null,\n 'secret_key' => null", "suffix": ",\n 'account' => null,\n 'sslmode' => null,\n 'debug' => null,\n ];\n\n private array $configuration;\n private SqsClient $client;\n private ?ReceiveMessageResult $currentResponse = null;\n /** @var array[] */\n private array $", "middle": ",\n 'session_token' => null,\n 'endpoint' => 'https://sqs.eu-west-1.amazonaws.com',\n 'region' => 'eu-west-1',\n 'queue_name' => 'messages',\n 'queue_attributes' => null,\n 'queue_tags' => null", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php", "language": "php", "file_size": 17669, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Transport\\Receiver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\SingleMessageReceiver;\n\ncl", "suffix": " $receiver = new SingleMessageReceiver($innerReceiver, $envelope);\n $received = $receiver->get();\n $this->assertCount(1, $received);\n $this->assertSame($received[0], $envelope);\n\n $this->assertSame([], $receiver->get());\n ", "middle": "ass SingleMessageReceiverTest extends TestCase\n{\n public function testItReceivesOnlyOneMessage()\n {\n $innerReceiver = $this->createStub(ReceiverInterface::class);\n $envelope = new Envelope(new \\stdClass());\n\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/Receiver/SingleMessageReceiverTest.php", "language": "php", "file_size": 1506, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Stamp;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\RecoverableExceptionInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\ErrorDetai", "suffix": " Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer as SymfonySerializer;\n\nclass ErrorDetailsStampTest extends TestCase\n{\n public function ", "middle": "lsStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Normalizer\\FlattenExceptionNormalizer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Stamp/ErrorDetailsStampTest.php", "language": "php", "file_size": 5061, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Stamp;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Handler\\HandlerDescriptor;\nuse Symfony\\Component\\Messenger\\Stamp\\HandledStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyCommandHandler;\n\nclass HandledStampTest", "suffix": "FooHandler::__invoke()', $stamp->getHandlerName());\n\n $stamp = new HandledStamp('some result', 'FooHandler::__invoke()');\n\n $this->assertSame('some result', $stamp->getResult());\n $this->assertSame('FooHandler::__invoke()', $stamp->get", "middle": " extends TestCase\n{\n public function testConstruct()\n {\n $stamp = new HandledStamp('some result', 'FooHandler::__invoke()');\n\n $this->assertSame('some result', $stamp->getResult());\n $this->assertSame('", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Stamp/HandledStampTest.php", "language": "php", "file_size": 1395, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Stamp;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportNamesStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Compon", "suffix": "blic function testGetSenders()\n {\n $configuredSenders = ['first_transport', 'second_transport', 'other_transport'];\n $stamp = new TransportNamesStamp($configuredSenders);\n $stampSenders = $stamp->getTransportNames();\n $this->", "middle": "ent\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer as SymfonySerializer;\n\nclass TransportNamesStampTest extends TestCase\n{\n pu", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Stamp/TransportNamesStampTest.php", "language": "php", "file_size": 2170, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\ActivationMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\nuse Symfony\\Component\\Messeng", "suffix": " $message = new DummyMessage('Hello');\n $envelope = new Envelope($message);\n\n $stack = $this->getStackMock(false);\n\n $middleware = $this->createMock(MiddlewareInterface::class);\n $middleware->expects($this->once())->method('h", "middle": "er\\Tests\\Fixtures\\DummyMessage;\n\n/**\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass ActivationMiddlewareTest extends MiddlewareTestCase\n{\n public function testExecuteMiddlewareOnActivated()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/ActivationMiddlewareTest.php", "language": "php", "file_size": 2460, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\AddBusNameStampMiddleware;\nuse Symfony\\Component\\Messenger\\Stamp\\BusNameStamp;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCas", "suffix": "ameStampMiddleware('the_bus_name');\n $envelope = new Envelope(new DummyMessage('the message'));\n\n $finalEnvelope = $middleware->handle($envelope, $this->getStackMock());\n /** @var BusNameStamp $busNameStamp */\n $busNameStamp = $", "middle": "e;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\n\nclass AddBusNameStampMiddlewareTest extends MiddlewareTestCase\n{\n public function testItSendsTheMessageToAssignedSender()\n {\n $middleware = new AddBusN", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/AddBusNameStampMiddlewareTest.php", "language": "php", "file_size": 1396, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Middleware;\n\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Lock\\Store\\FlockStore;\nuse Symfony\\Component\\Lock\\Store\\SemaphoreStore;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\DeduplicateMiddleware;\nuse Symfony\\Component\\Messenger\\Stamp\\DeduplicateStamp;\nuse Symfony\\Component", "suffix": " public function testDeduplicateMiddlewareIgnoreIfMessageIsNotLockable()\n {\n $message = new DummyMessage('Hello');\n $envelope = new Envelope($message);\n\n $lockFactory = $this->createMock(LockFactory::class);\n $lockFactory-", "middle": "\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\n\nfinal class DeduplicateMiddlewareTest extends MiddlewareTestCase\n{\n", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/DeduplicateMiddlewareTest.php", "language": "php", "file_size": 3782, "cut_index": 614, "middle_length": 229}} {"prefix": "senger\\Exception\\HandlerFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Exception\\NoHandlerForMessageException;\nuse Symfony\\Component\\Messenger\\Handler\\Acknowledger;\nuse Symfony\\Component\\Messenger\\Handler\\BatchHandlerInterface;\nuse Symfony\\Component\\Messenger\\Handler\\BatchHandlerTrait;\nuse Symfony\\Component\\Messenger\\Handler\\HandlerDescriptor;\nuse Symfony\\Component\\Messenger\\Handler\\HandlersLocator;\nuse Symfony\\Component\\Messenger\\Middleware\\Handle", "suffix": "entsStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\NoAutoAckStamp;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\n\nclass HandleMessageMiddlewareTest extends MiddlewareTestCase\n", "middle": "MessageMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\StackMiddleware;\nuse Symfony\\Component\\Messenger\\Stamp\\AckStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\HandledStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\HandlerArgum", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/HandleMessageMiddlewareTest.php", "language": "php", "file_size": 13979, "cut_index": 921, "middle_length": 229}} {"prefix": "\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Event\\MessageSentToTransportsEvent;\nuse Symfony\\Component\\Messenger\\Event\\SendMessageToTransportsEvent;\nuse Symfony\\Component\\Messenger\\Exception\\NoSenderForMessageException;\nuse Symfony\\Component\\Messenger\\Middleware\\SendMessageMiddleware;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentStamp;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\Mid", "suffix": "ponent\\Messenger\\Transport\\Sender\\SenderInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SendersLocator;\n\nclass SendMessageMiddlewareTest extends MiddlewareTestCase\n{\n public function testItSendsTheMessageToAssignedSender()\n {\n $mes", "middle": "dlewareTestCase;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\ChildDummyMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessageInterface;\nuse Symfony\\Com", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/SendMessageMiddlewareTest.php", "language": "php", "file_size": 10947, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Middleware;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\Stac", "suffix": " ->method('handle')\n ->willReturnCallback(static function (Envelope $envelope, StackInterface $stack): Envelope {\n $fork = clone $stack;\n\n $stack->next()->handle($envelope, $stack);\n $fork->next", "middle": "kInterface;\n\nclass StackMiddlewareTest extends TestCase\n{\n public function testClone()\n {\n $middleware1 = $this->createMock(MiddlewareInterface::class);\n $middleware1\n ->expects($this->once())\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/StackMiddlewareTest.php", "language": "php", "file_size": 1496, "cut_index": 524, "middle_length": 229}} {"prefix": "e Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Messenger\\Command\\ConsumeMessagesCommand;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\EventListener\\ResetServicesListener;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\RoutableMessageBus;\nuse Symfony\\Component\\Messenger\\Stamp\\BusNameStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyReceiver;\nuse Symfony\\Component", "suffix": "r()\n {\n $command = new ConsumeMessagesCommand(new RoutableMessageBus(new Container()), new ServiceLocator([]), new EventDispatcher(), null, ['amqp']);\n $inputArgument = $command->getDefinition()->getArgument('receivers');\n $this->as", "middle": "\\Messenger\\Tests\\Fixtures\\ResettableDummyReceiver;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\n\nclass ConsumeMessagesCommandTest extends TestCase\n{\n public function testConfigurationWithDefaultReceive", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Command/ConsumeMessagesCommandTest.php", "language": "php", "file_size": 25892, "cut_index": 1331, "middle_length": 229}} {"prefix": "y\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ListableReceiverInterface;\n\nclass FailedMessagesRemoveCommandTest extends TestCase\n{\n public function testRemoveSingleMessageWithServiceLocator()\n {\n $globalFailureReceiverName = 'failure_receiver';\n $receiver = $this->createMock(ListableReceiverInterface::class);\n $receiver->expects($this->once())->method('find')->with(20)->willReturn(new Envelope(new \\stdClass()));\n\n $c", "suffix": ";\n $tester->execute(['id' => 20, '--force' => true]);\n\n $this->assertStringContainsString('Failed Message Details', $tester->getDisplay());\n $this->assertStringContainsString('Message with id 20 removed.', $tester->getDisplay());\n }", "middle": "ommand = new FailedMessagesRemoveCommand(\n $globalFailureReceiverName,\n new ServiceLocator([$globalFailureReceiverName => static fn () => $receiver])\n );\n\n $tester = new CommandTester($command)", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Command/FailedMessagesRemoveCommandTest.php", "language": "php", "file_size": 17602, "cut_index": 1331, "middle_length": 229}} {"prefix": "ony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ListableReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\n\n#[Group('time-sensitive')]\nclass FailedMessagesShowCommandTest extends TestCase\n{\n private string|false $colSize;\n\n protected function setUp(): void\n {\n ", "suffix": " public function testBasicRunWithServiceLocator()\n {\n $sentToFailureStamp = new SentToFailureTransportStamp('async');\n $redeliveryStamp = new RedeliveryStamp(0);\n $errorStamp = ErrorDetailsStamp::create(new \\Exception('Things are", "middle": " $this->colSize = getenv('COLUMNS');\n putenv('COLUMNS='.(119 + \\strlen(\\PHP_EOL)));\n }\n\n protected function tearDown(): void\n {\n putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');\n }\n\n", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Command/FailedMessagesShowCommandTest.php", "language": "php", "file_size": 21260, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Compon", "suffix": "\n{\n public function testReceiverNames()\n {\n $command = new SetupTransportsCommand(new ServiceLocator([\n 'amqp' => fn () => $this->createStub(SetupableTransportInterface::class),\n 'other_transport' => fn () => $this->creat", "middle": "ent\\Messenger\\Command\\SetupTransportsCommand;\nuse Symfony\\Component\\Messenger\\Transport\\SetupableTransportInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\nclass SetupTransportsCommandTest extends TestCase", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Command/SetupTransportsCommandTest.php", "language": "php", "file_size": 3701, "cut_index": 614, "middle_length": 229}} {"prefix": "nger\\Exception\\InvalidMessageSignatureException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\ChildDummyMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessageInterface;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessageWithSerializedTypeName;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\MessageTypeAwareSerializerInterface;\nuse Symfony\\Comp", "suffix": "er\\Transport\\Serialization\\SigningSerializer;\n\nclass SigningSerializerTest extends TestCase\n{\n public function testEncodeAddsSignatureHeadersWhenTypeIsSigned()\n {\n $serializer = $this->createSerializer([DummyMessage::class]);\n $envelope", "middle": "onent\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messeng", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/Serialization/SigningSerializerTest.php", "language": "php", "file_size": 13058, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Transport\\InMemory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\AnEnvelopeStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Transport\\InMemory\\InMemoryTransport;\nuse Symfony\\Component\\Messenger", "suffix": " {\n $this->transport = new InMemoryTransport();\n }\n\n public function testSend()\n {\n $envelope = new Envelope(new \\stdClass());\n $this->transport->send($envelope);\n $this->assertEquals([$envelope->with(new TransportMes", "middle": "\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * @author Gary PEGEOT <garypegeot@gmail.com>\n */\nclass InMemoryTransportTest extends TestCase\n{\n private InMemoryTransport $transport;\n\n protected function setUp(): void\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/InMemory/InMemoryTransportTest.php", "language": "php", "file_size": 8160, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Stamp;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\n\n/**\n * @author Yanick Witschi <yanick.witschi@terminal42.ch>\n */\nclass DelayStampTest extends TestCase\n{\n public function testDelayFor()\n {\n ", "suffix": " $this->assertSame(1800000, $stamp->getDelay());\n $stamp = DelayStamp::delayFor(\\DateInterval::createFromDateString('30 hours'));\n $this->assertSame(108000000, $stamp->getDelay());\n\n $stamp = DelayStamp::delayFor(\\DateInterval::", "middle": " $stamp = DelayStamp::delayFor(\\DateInterval::createFromDateString('30 seconds'));\n $this->assertSame(30000, $stamp->getDelay());\n $stamp = DelayStamp::delayFor(\\DateInterval::createFromDateString('30 minutes'));\n", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Stamp/DelayStampTest.php", "language": "php", "file_size": 1426, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\AddDefaultStampsMiddleware;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\nuse Symfony", "suffix": "DefaultStampsProviderDummyMessage('');\n $envelope = new Envelope($message);\n\n $decorator = new AddDefaultStampsMiddleware();\n\n $envelope = $decorator->handle($envelope, $this->getStackMock(true));\n\n $delayStamp = $envelope->last", "middle": "\\Component\\Messenger\\Tests\\Fixtures\\DefaultStampsProviderDummyMessage;\n\nfinal class AddDefaultStampsMiddlewareTest extends MiddlewareTestCase\n{\n public function testSelfStampableStampsMiddleware()\n {\n $message = new ", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/AddDefaultStampsMiddlewareTest.php", "language": "php", "file_size": 1650, "cut_index": 537, "middle_length": 229}} {"prefix": "ase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\DelayedMessageHandlingException;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\DispatchAfterCurrentBusMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\DispatchAfterCurrentBusStamp;\nuse Symfony\\Component\\Me", "suffix": " $firstEvent = new DummyEvent('First event');\n $secondEvent = new DummyEvent('Second event');\n $thirdEvent = new DummyEvent('Third event');\n\n $middleware = new DispatchAfterCurrentBusMiddleware();\n $handlingMiddleware = $", "middle": "ssenger\\Tests\\Fixtures\\DummyMessage;\n\nclass DispatchAfterCurrentBusMiddlewareTest extends TestCase\n{\n public function testEventsInNewTransactionAreHandledAfterMainMessage()\n {\n $message = new DummyMessage('Hello');\n\n", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php", "language": "php", "file_size": 12448, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\TraceableMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\TraceableStack;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\nuse S", "suffix": "eableMiddlewareTest extends MiddlewareTestCase\n{\n public function testHandle()\n {\n $busId = 'command_bus';\n $envelope = new Envelope(new DummyMessage('Hello'));\n\n $middleware = new class implements MiddlewareInterface {\n ", "middle": "ymfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\Stopwatch\\StopwatchEvent;\n\n/**\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass Trac", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/TraceableMiddlewareTest.php", "language": "php", "file_size": 8621, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\ValidationFailedException;\nuse Symfony\\Component\\Messenger\\Middleware\\ValidationMiddleware;\nuse Symfony\\Component\\Messenger\\Stamp\\ValidationStamp;\nuse Symfony\\Component\\Messenger\\Test\\", "suffix": "mponent\\Validator\\Validator\\ValidatorInterface;\n\nclass ValidationMiddlewareTest extends MiddlewareTestCase\n{\n public function testValidateAndNextMiddleware()\n {\n $message = new DummyMessage('Hey');\n $envelope = new Envelope($message);\n\n", "middle": "Middleware\\MiddlewareTestCase;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\ConstraintViolationListInterface;\nuse Symfony\\Co", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/ValidationMiddlewareTest.php", "language": "php", "file_size": 2878, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Transport\\Serialization;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\MessageDecodingFailedStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\", "suffix": "serializer = $this->createPhpSerializer();\n\n $envelope = $serializer->decode([\n 'body' => 'O:13:\"ReceivedSt0mp\":0:{}',\n ]);\n\n $this->assertInstanceOf(MessageDecodingFailedException::class, $envelope->getMessage());\n }\n\n ", "middle": "DummyMessage;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\n\nclass PhpSerializerWithClassNotFoundSupportTest extends PhpSerializerTest\n{\n public function testDecodingFailsWithBadClass()\n {\n $", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/Serialization/PhpSerializerWithClassNotFoundSupportTest.php", "language": "php", "file_size": 1817, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Transport\\Serialization\\Normalizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Normalizer\\FlattenExceptionNormalizer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\n\n/**\n * @author Pascal Luna <skalpa@zetareticuli.org>\n */\nclass FlattenExceptionNormalizerTe", "suffix": "ion()\n {\n $this->assertTrue($this->normalizer->supportsNormalization(new FlattenException(), null, $this->getMessengerContext()));\n $this->assertFalse($this->normalizer->supportsNormalization(new FlattenException()));\n $this->assert", "middle": "st extends TestCase\n{\n private FlattenExceptionNormalizer $normalizer;\n\n protected function setUp(): void\n {\n $this->normalizer = new FlattenExceptionNormalizer();\n }\n\n public function testSupportsNormalizat", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/Serialization/Normalizer/FlattenExceptionNormalizerTest.php", "language": "php", "file_size": 7556, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Stamp;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\n\nclass RedeliveryStampTest extends TestCase\n{\n public function testGetters()\n {\n $stamp = new RedeliveryStamp(10);\n $this", "suffix": "eTimeImmutable::createFromFormat(\\DateTimeInterface::ISO8601, '2005-08-15T15:52:01+0000'));\n $this->assertSame('2005-08-15T15:52:01+0000', $stamp->getRedeliveredAt()->format(\\DateTimeInterface::ISO8601));\n }\n\n public function testRedeliveryAt(", "middle": "->assertSame(10, $stamp->getRetryCount());\n $this->assertInstanceOf(\\DateTimeInterface::class, $stamp->getRedeliveredAt());\n }\n\n public function testSerialization()\n {\n $stamp = new RedeliveryStamp(10, \\Dat", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Stamp/RedeliveryStampTest.php", "language": "php", "file_size": 1210, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Middleware;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\Container\\NotFoundExceptionInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Middleware\\DecodeFailedMessageMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInt", "suffix": "Stamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\nclass DecodeFailedMessageMiddlewareTest extends TestCase\n{\n public function testItDecodesSerializedEnvelope", "middle": "erface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackMiddleware;\nuse Symfony\\Component\\Messenger\\Stamp\\AckStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransport", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/DecodeFailedMessageMiddlewareTest.php", "language": "php", "file_size": 6075, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Messenger\\Command\\DebugCommand;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyCommand;\nuse Symfony\\Com", "suffix": "nent\\Messenger\\Tests\\Fixtures\\DummyQuery;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyQueryHandler;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\MultipleBusesMessage;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\MultipleBusesMessageHandler;\n\n/*", "middle": "ponent\\Messenger\\Tests\\Fixtures\\DummyCommandHandler;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyCommandWithDescription;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyCommandWithDescriptionHandler;\nuse Symfony\\Compo", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Command/DebugCommandTest.php", "language": "php", "file_size": 8117, "cut_index": 716, "middle_length": 229}} {"prefix": "it\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\DeduplicateStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\NonSendableStampInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\SerializedMessageStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SerializerStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\ValidationStamp;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Compone", "suffix": "se Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\SerializerInterface as SerializerComponentInterface;\n\nclass SerializerTest extends TestCase\n{\n public function testEncodedIsDecodable()\n {\n $serializ", "middle": "nt\\Messenger\\Tests\\Fixtures\\DummyMessageWithInterfaceWithSerializedTypeName;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessageWithSerializedTypeName;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nu", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Transport/Serialization/SerializerTest.php", "language": "php", "file_size": 14450, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\RouterContextMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\nuse Symfony\\Component\\Messenger\\Mid", "suffix": "nent\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\RequestContextAwareInterface;\n\nclass RouterContextMiddlewareTest extends MiddlewareTestCase\n{\n public function testMiddlewareStoreContext()\n {\n $context = new RequestContext('/', 'GET'", "middle": "dleware\\StackMiddleware;\nuse Symfony\\Component\\Messenger\\Stamp\\ConsumedByWorkerStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\RouterContextStamp;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\nuse Symfony\\Compo", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Middleware/RouterContextMiddlewareTest.php", "language": "php", "file_size": 2741, "cut_index": 563, "middle_length": 229}} {"prefix": "onsole\\Tester\\CommandTester;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Messenger\\Command\\FailedMessagesRetryCommand;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\T", "suffix": "or()\n {\n $series = [\n [[10], new Envelope(new \\stdClass())],\n [[12], new Envelope(new \\stdClass())],\n ];\n\n $receiver = $this->createMock(ListableReceiverInterface::class);\n $receiver->expects($this->exac", "middle": "ransport\\Receiver\\ListableReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\n\nclass FailedMessagesRetryCommandTest extends TestCase\n{\n public function testBasicRunWithServiceLocat", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Command/FailedMessagesRetryCommandTest.php", "language": "php", "file_size": 12473, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Tests\\Stamp;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Stamp\\ValidationStamp;\nuse Symfony\\Component\\Validator\\Constraints\\GroupSequence;\n\n/**\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass Vali", "suffix": "ionStamp($groups = new GroupSequence(['Default', 'Then']));\n $this->assertSame($groups, $stamp->getGroups());\n }\n\n public function testSerializable()\n {\n $this->assertEquals($stamp = new ValidationStamp(['Default', 'Extra']), unseria", "middle": "dationStampTest extends TestCase\n{\n public function testStamp()\n {\n $stamp = new ValidationStamp($groups = ['Default', 'Extra']);\n $this->assertSame($groups, $stamp->getGroups());\n\n $stamp = new Validat", "meta": {"filepath": "src/Symfony/Component/Messenger/Tests/Stamp/ValidationStampTest.php", "language": "php", "file_size": 1168, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\MessageDeduplicationAwareInterface;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\MessageGroupAwareInterface;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Middleware\\AddFifoStampMiddleware;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transpo", "suffix": "Only()\n {\n $middleware = new AddFifoStampMiddleware();\n $envelope = new Envelope(new WithMessageGroupIdMessage('groupId'));\n $finalEnvelope = $middleware->handle($envelope, $this->getStackMock());\n $stamp = $finalEnvelope->la", "middle": "rt\\AmazonSqsFifoStamp;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\n\nclass AddFifoStampTest extends MiddlewareTestCase\n{\n public function testAddStampWithGroupId", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Middleware/AddFifoStampTest.php", "language": "php", "file_size": 3934, "cut_index": 614, "middle_length": 229}} {"prefix": "Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineReceiver;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfon", "suffix": "erializerComponent;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNorma", "middle": "y\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Serializer as S", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrineReceiverTest.php", "language": "php", "file_size": 15354, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineSender;\n", "suffix": "e;\n\nclass DoctrineSenderTest extends TestCase\n{\n public function testSend()\n {\n $envelope = new Envelope(new DummyMessage('Oy'));\n $encoded = ['body' => '...', 'headers' => ['type' => DummyMessage::class]];\n\n $connection = $this-", "middle": "use Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterfac", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrineSenderTest.php", "language": "php", "file_size": 2452, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Transport;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\Persistence\\ConnectionRegistry;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\EventListener\\PostgreSqlNotifyOnIdleListener;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineTrans", "suffix": "n;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\nclass DoctrineTransportFactoryTest extends TestCase\n{\n public function testSupports()\n {\n $factory = new DoctrineTransportFactory(\n $this->createStub(C", "middle": "port;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineTransportFactory;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\PostgreSqlConnection;\nuse Symfony\\Component\\Messenger\\Exception\\TransportExceptio", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrineTransportFactoryTest.php", "language": "php", "file_size": 6681, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Transport;\n\nuse Doctrine\\DBAL\\Connection as DbalConnection;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctr", "suffix": "ce;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\nclass DoctrineTransportTest extends TestCase\n{\n public function testItIsATransport()\n {\n $transport = $this->getTransport();\n\n $this->assertInstanceOf(TransportInterface", "middle": "ine\\Transport\\DoctrineReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineTransport;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterfa", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrineTransportTest.php", "language": "php", "file_size": 3263, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Transport;\n\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Driver\\Result as DriverResult;\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Query\\QueryBuilder;\nuse Doctrine\\DBAL\\Result;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\PostgreSqlConnection;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass PostgreSqlConnectionTest extends TestCase\n{", "suffix": "->createStub(Connection::class);\n $driverConnection->method('executeStatement')->willReturn(1);\n\n $connection = new PostgreSqlConnection([], $driverConnection);\n serialize($connection);\n }\n\n public function testUnserialize()\n ", "middle": "\n public function testSerialize()\n {\n $this->expectException(\\BadMethodCallException::class);\n $this->expectExceptionMessage('Cannot serialize '.PostgreSqlConnection::class);\n\n $driverConnection = $this", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/PostgreSqlConnectionTest.php", "language": "php", "file_size": 8780, "cut_index": 716, "middle_length": 229}} {"prefix": "L\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Query\\QueryBuilder;\nuse Doctrine\\DBAL\\Result;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\EventListener\\PostgreSqlNotifyOnIdleListener;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\PostgreSqlConnection;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerStartedEvent;\nuse Symfony\\Component\\Messenger\\Worker;\nuse Symfony\\Component\\Messenger\\WorkerMetadata;\n\nclass", "suffix": " $driverConnection->method('executeStatement')->willReturn(1);\n\n return new PostgreSqlConnection($additionalConfig + ['table_name' => 'queue_table'], $driverConnection);\n }\n\n private function createWorkerWithTransports(array $transportNam", "middle": " PostgreSqlNotifyOnIdleListenerTest extends TestCase\n{\n private function createPostgreSqlConnection(array $additionalConfig = []): PostgreSqlConnection\n {\n $driverConnection = $this->createStub(Connection::class);\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/EventListener/PostgreSqlNotifyOnIdleListenerTest.php", "language": "php", "file_size": 15364, "cut_index": 921, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport;\n\nclass AmqpFactory\n{\n public function createConnection(array $credentials): \\AMQPConnection\n {\n return new \\AMQPConnection($credentials);\n }\n\n public function createChannel(\\AMQPConnection $connection): \\AMQPChannel\n ", "suffix": " }\n\n public function createQueue(\\AMQPChannel $channel): \\AMQPQueue\n {\n return new \\AMQPQueue($channel);\n }\n\n public function createExchange(\\AMQPChannel $channel): \\AMQPExchange\n {\n return new \\AMQPExchange($channel);\n }\n", "middle": " {\n return new \\AMQPChannel($connection);\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Transport/AmqpFactory.php", "language": "php", "file_size": 845, "cut_index": 535, "middle_length": 52}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport;\n\nuse Symfony\\Component\\Messenger\\Stamp\\NonSendableStampInterface;\n\n/**\n * Stamp applied when a message is received from Amqp.\n */\nclass AmqpReceivedStamp implements NonSendableStampInterface\n{\n public function __construct(\n pri", "suffix": "lope $amqpEnvelope,\n private string $queueName,\n ) {\n }\n\n public function getAmqpEnvelope(): \\AMQPEnvelope\n {\n return $this->amqpEnvelope;\n }\n\n public function getQueueName(): string\n {\n return $this->queueName;\n ", "middle": "vate \\AMQPEnve", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Transport/AmqpReceivedStamp.php", "language": "php", "file_size": 812, "cut_index": 536, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transp", "suffix": "ssages from AMQP brokers using PHP's AMQP extension.\n *\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\nclass AmqpReceiver implements QueueReceiverInterface, MessageCountAwareInterface\n{\n private SerializerInterface $serializer;\n\n public function ", "middle": "ort\\Receiver\\QueueReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * Symfony Messenger receiver to get me", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Transport/AmqpReceiver.php", "language": "php", "file_size": 6503, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\", "suffix": "nterface;\n\n/**\n * Symfony Messenger sender to send messages to AMQP brokers using PHP's AMQP extension.\n *\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\nclass AmqpSender implements SenderInterface\n{\n private SerializerInterface $serializer;\n\n pu", "middle": "TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerI", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Transport/AmqpSender.php", "language": "php", "file_size": 3099, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport;\n\nuse Symfony\\Component\\Messenger\\Stamp\\NonSendableStampInterface;\n\n/**\n * @author Guillaume Gammelin <ggammelin@gmail.com>\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\nfinal class AmqpStamp implements NonSendableStampInterface\n{\n private bool $isRetryAtte", "suffix": "tring\n {\n return $this->routingKey;\n }\n\n public function getFlags(): int\n {\n return $this->flags;\n }\n\n public function getAttributes(): array\n {\n return $this->attributes;\n }\n\n public static function createFr", "middle": "mpt = false;\n\n public function __construct(\n private ?string $routingKey = null,\n private int $flags = \\AMQP_NOPARAM,\n private array $attributes = [],\n ) {\n }\n\n public function getRoutingKey(): ?s", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Transport/AmqpStamp.php", "language": "php", "file_size": 2825, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\CloseableTransportInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\QueueReceiverInterfa", "suffix": "mfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass AmqpTransport implements QueueReceiverInterface, TransportInterface, SetupableTransportInterface, CloseableTransportInterface, MessageCountAwar", "middle": "ce;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\SetupableTransportInterface;\nuse Sy", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Transport/AmqpTransport.php", "language": "php", "file_size": 2825, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport;\n\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactoryInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * @a", "suffix": " string $dsn, array $options, SerializerInterface $serializer): TransportInterface\n {\n unset($options['transport_name']);\n\n return new AmqpTransport(Connection::fromDsn($dsn, $options), $serializer);\n }\n\n public function supports(#[\\", "middle": "uthor Samuel Roze <samuel.roze@gmail.com>\n *\n * @implements TransportFactoryInterface<AmqpTransport>\n */\nclass AmqpTransportFactory implements TransportFactoryInterface\n{\n public function createTransport(#[\\SensitiveParameter]", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Transport/AmqpTransportFactory.php", "language": "php", "file_size": 1158, "cut_index": 518, "middle_length": 229}} {"prefix": " ];\n\n /**\n * @see https://github.com/php-amqp/php-amqp/blob/master/amqp_connection_resource.h\n */\n private const AVAILABLE_OPTIONS = [\n 'host',\n 'port',\n 'vhost',\n 'user',\n 'login',\n 'password',\n 'queues',\n 'exchange',\n 'delay',\n 'auto_setup',\n 'retry',\n 'persistent',\n 'frame_max',\n 'channel_max',\n 'heartbeat',\n 'read_timeout',\n 'write_timeout',\n 'confirm_timeout',\n ", "suffix": "inding_keys',\n 'binding_arguments',\n 'flags',\n 'arguments',\n ];\n\n private const AVAILABLE_EXCHANGE_OPTIONS = [\n 'name',\n 'type',\n 'default_publish_routing_key',\n 'flags',\n 'arguments',\n '", "middle": " 'connect_timeout',\n 'rpc_timeout',\n 'cacert',\n 'cert',\n 'key',\n 'verify',\n 'sasl_method',\n 'connection_name',\n ];\n\n private const AVAILABLE_QUEUE_OPTIONS = [\n 'b", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php", "language": "php", "file_size": 26222, "cut_index": 1331, "middle_length": 229}} {"prefix": "_SERVER['COMPONENT_ROOT'];\n\nif (!is_file($autoload = $componentRoot.'/vendor/autoload.php')) {\n $autoload = $componentRoot.'/../../../../../../vendor/autoload.php';\n}\n\nif (!file_exists($autoload)) {\n exit('You should run \"composer install --dev\" in the component before running this script.');\n}\n\nrequire_once $autoload;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpReceiver;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\Connect", "suffix": "n\\Serializer;\nuse Symfony\\Component\\Messenger\\Worker;\nuse Symfony\\Component\\Serializer as SerializerComponent;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serial", "middle": "ion;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\EventListener\\DispatchPcntlSignalListener;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serializatio", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Fixtures/long_receiver.php", "language": "php", "file_size": 1987, "cut_index": 537, "middle_length": 229}} {"prefix": "nit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpReceiver;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpSender;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Sta", "suffix": "\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Process\\PhpProcess;\nuse Symfony\\Component\\Process\\Process;\nuse Symfony\\Component\\Serializer as SerializerComponent;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symf", "middle": "mp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpExtIntegrationTest.php", "language": "php", "file_size": 12838, "cut_index": 921, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpReceivedStamp;\n\n#[RequiresPhpExtension('amqp')]\nclass AmqpReceivedStampTest ex", "suffix": " {\n $amqpEnvelope = $this->createStub(\\AMQPEnvelope::class);\n\n $stamp = new AmqpReceivedStamp($amqpEnvelope, 'queueName');\n\n $this->assertSame($amqpEnvelope, $stamp->getAmqpEnvelope());\n $this->assertSame('queueName', $stamp->ge", "middle": "tends TestCase\n{\n public function testStamp()\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpReceivedStampTest.php", "language": "php", "file_size": 860, "cut_index": 529, "middle_length": 52}} {"prefix": "onent\\Messenger\\Bridge\\Amqp\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpReceiver;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Sym", "suffix": "ncoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\DateTimeNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\n\n#[RequiresPhpExtension('amqp')]\nclass AmqpRece", "middle": "fony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Serializer as SerializerComponent;\nuse Symfony\\Component\\Serializer\\E", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpReceiverTest.php", "language": "php", "file_size": 9750, "cut_index": 921, "middle_length": 229}} {"prefix": "onent\\Messenger\\Bridge\\Amqp\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpPriorityStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpSender;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symf", "suffix": "e Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n#[RequiresPhpExtension('amqp')]\nclass AmqpSenderTest extends TestCase\n{\n public function testItSendsTheEncodedMessage()\n {\n $envelope = new Envelope(new DummyMessage('", "middle": "ony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nus", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpSenderTest.php", "language": "php", "file_size": 10342, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpStamp;\n\n#[RequiresPhpExtension('amqp')]\nclass AmqpStampTest extends TestCase\n{\n public function testRoutingKeyOnly()\n {\n $stamp = new AmqpStamp('routi", "suffix": "gsAndAttributes()\n {\n $stamp = new AmqpStamp(null, \\AMQP_DURABLE, ['delivery_mode' => 'unknown']);\n $this->assertNull($stamp->getRoutingKey());\n $this->assertSame(\\AMQP_DURABLE, $stamp->getFlags());\n $this->assertSame(['deliv", "middle": "ng_key');\n $this->assertSame('routing_key', $stamp->getRoutingKey());\n $this->assertSame(\\AMQP_NOPARAM, $stamp->getFlags());\n $this->assertSame([], $stamp->getAttributes());\n }\n\n public function testFla", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpStampTest.php", "language": "php", "file_size": 3417, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpTransport;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpTransportFactory;", "suffix": "lyAmqpTransports()\n {\n $factory = new AmqpTransportFactory();\n\n $this->assertTrue($factory->supports('amqp://localhost', []));\n $this->assertFalse($factory->supports('sqs://localhost', []));\n $this->assertFalse($factory->supp", "middle": "\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\nclass AmqpTransportFactoryTest extends TestCase\n{\n public function testSupportsOn", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpTransportFactoryTest.php", "language": "php", "file_size": 1532, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Amqp\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpTransport;\nuse Symfony\\Component\\Messen", "suffix": "sPhpExtension('amqp')]\nclass AmqpTransportTest extends TestCase\n{\n public function testItIsATransport()\n {\n $transport = $this->getTransport();\n\n $this->assertInstanceOf(TransportInterface::class, $transport);\n }\n\n public function", "middle": "ger\\Bridge\\Amqp\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n#[Require", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpTransportTest.php", "language": "php", "file_size": 2344, "cut_index": 563, "middle_length": 229}} {"prefix": "s->assertArrayNotHasKey('user', $options);\n\n $connection = new Connection(['host' => 'localhost', 'user' => 'alice', 'login' => 'bob'], ['name' => self::DEFAULT_EXCHANGE_NAME], [self::DEFAULT_EXCHANGE_NAME => []]);\n $options = $r->getValue($connection);\n $this->assertSame('bob', $options['login']);\n $this->assertArrayNotHasKey('user', $options);\n }\n\n public function testItCanBeConstructedWithDefaults()\n {\n $this->assertEquals(\n new Connection([\n ", "suffix": "> [],\n ]),\n Connection::fromDsn('amqp://')\n );\n }\n\n public function testItCanBeConstructedWithAnAmqpsDsn()\n {\n $this->assertEquals(\n new Connection([\n 'host' => 'localhost',\n ", "middle": " 'host' => 'localhost',\n 'port' => 5672,\n 'vhost' => '/',\n ], [\n 'name' => self::DEFAULT_EXCHANGE_NAME,\n ], [\n self::DEFAULT_EXCHANGE_NAME =", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php", "language": "php", "file_size": 50603, "cut_index": 2151, "middle_length": 229}} {"prefix": "eout' => 0.0, // Float, value in seconds (optional, default is 0 meaning unlimited)\n 'read_timeout' => 0.0, // Float, value in seconds (optional, default is 0 meaning unlimited)\n 'retry_interval' => 0, // Int, value in milliseconds (optional, default is 0)\n 'persistent_id' => null, // String, persistent connection id (optional, default is NULL meaning not persistent)\n 'ssl' => null, // see https://php.net/context.ssl\n 'cluster' => false, // force use of cluster\n ];\n\n ", "suffix": "utoSetup;\n private int $maxEntries;\n private int $redeliverTimeout;\n private float $nextClaim = 0.0;\n private float $claimInterval;\n private bool $deleteAfterAck;\n private bool $deleteAfterReject;\n private ?string $lastPendingMessageId", "middle": " private \\Redis|Relay|\\RedisCluster|null $redis = null;\n private \\Closure $redisInitializer;\n private string $stream;\n private string $queue;\n private string $group;\n private string $consumer;\n private bool $a", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php", "language": "php", "file_size": 33977, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\KeepaliveReceiverInterface;\nuse Symfony\\Component\\Messenger\\Trans", "suffix": "ort\\Serialization\\SerializerInterface;\n\n/**\n * @author Alexander Schranz <alexander@sulu.io>\n * @author Antoine Bluchet <soyuka@gmail.com>\n */\nclass RedisReceiver implements KeepaliveReceiverInterface, MessageCountAwareInterface, ListableReceiverInterface\n", "middle": "port\\Receiver\\ListableReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transp", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Transport/RedisReceiver.php", "language": "php", "file_size": 5857, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface;\nus", "suffix": " public function __construct(\n private Connection $connection,\n private SerializerInterface $serializer,\n ) {\n }\n\n public function send(Envelope $envelope): Envelope\n {\n $encodedMessage = $this->serializer->encode($envelope", "middle": "e Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * @author Alexander Schranz <alexander@sulu.io>\n * @author Antoine Bluchet <soyuka@gmail.com>\n */\nclass RedisSender implements SenderInterface\n{\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Transport/RedisSender.php", "language": "php", "file_size": 1377, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\CloseableTransportInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\KeepaliveReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareIn", "suffix": "se Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * @author Alexander Schranz <alexander@sulu.io>\n * @author Antoine Bluchet <soyuka@gmail.com>\n */\nclass RedisTransport implements TransportInterface, KeepaliveReceiverInterface, SetupableTr", "middle": "terface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\SetupableTransportInterface;\nu", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Transport/RedisTransport.php", "language": "php", "file_size": 2757, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport;\n\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactoryInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * @author", "suffix": "ction createTransport(#[\\SensitiveParameter] string $dsn, array $options, SerializerInterface $serializer): TransportInterface\n {\n unset($options['transport_name']);\n\n return new RedisTransport(Connection::fromDsn($dsn, $options), $seriali", "middle": " Alexander Schranz <alexander@suluio>\n * @author Antoine Bluchet <soyuka@gmail.com>\n *\n * @implements TransportFactoryInterface<RedisTransport>\n */\nclass RedisTransportFactory implements TransportFactoryInterface\n{\n public fun", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Transport/RedisTransportFactory.php", "language": "php", "file_size": 1280, "cut_index": 524, "middle_length": 229}} {"prefix": " Connection::fromDsn('redis:///var/run/redis/redis.sock', ['stream' => 'queue'], $this->createRedisMock())\n );\n }\n\n public function testFromDsnWithOptions()\n {\n $this->assertEqualsConnection(\n Connection::fromDsn('redis://localhost', ['stream' => 'queue', 'group' => 'group1', 'consumer' => 'consumer1', 'auto_setup' => false, 'serializer' => 2], $this->createRedisMock()),\n Connection::fromDsn('redis://localhost/queue/group1/consumer1?serializer=2&auto_setup=0'", "suffix": "', 'group' => 'group1', 'consumer' => 'consumer1', 'auto_setup' => false, 'serializer' => 2], $this->createRedisMock()),\n Connection::fromDsn('redis://localhost/queue/group1/consumer1?serializer=2&auto_setup=0', [], $this->createRedisMock())\n ", "middle": ", [], $this->createRedisMock())\n );\n }\n\n public function testFromDsnWithOptionsAndTrailingSlash()\n {\n $this->assertEqualsConnection(\n Connection::fromDsn('redis://localhost/', ['stream' => 'queue", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/ConnectionTest.php", "language": "php", "file_size": 39598, "cut_index": 2151, "middle_length": 229}} {"prefix": "mework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Relay\\Relay;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\RedisReceiver;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\n\n#[RequiresPhpExtension('redis')]\n#[Grou", "suffix": " if (!getenv('MESSENGER_REDIS_DSN')) {\n $this->markTestSkipped('The \"MESSENGER_REDIS_DSN\" environment variable is required.');\n }\n\n try {\n $this->redis = $this->createRedisClient();\n $this->connection = C", "middle": "p('time-sensitive')]\n#[Group('integration')]\nclass RedisExtIntegrationTest extends TestCase\n{\n private \\Redis|Relay|null $redis = null;\n private ?Connection $connection = null;\n\n protected function setUp(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisExtIntegrationTest.php", "language": "php", "file_size": 17163, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\", "suffix": "ent\\Messenger\\Transport\\Receiver\\ListableReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Serializer as SerializerComponent;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Compo", "middle": "Redis\\Transport\\RedisReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\RedisReceiver;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Compon", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisListableIntegrationTest.php", "language": "php", "file_size": 4359, "cut_index": 614, "middle_length": 229}} {"prefix": "essenger\\Bridge\\Redis\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Fixtures\\ExternalMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Fixtures\\ExternalMessageSerializer;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\RedisReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\RedisReceiver;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\M", "suffix": "er;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Serializer as SerializerComponent;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\n\nc", "middle": "essageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisReceiverTest.php", "language": "php", "file_size": 14372, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface;\nuse Symfon", "suffix": "r implements SenderInterface\n{\n private SerializerInterface $serializer;\n\n public function __construct(\n private Connection $connection,\n ?SerializerInterface $serializer = null,\n ) {\n $this->serializer = $serializer ?? new Ph", "middle": "y\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * @author Antonio Pauletich <antonio.pauletich95@gmail.com>\n */\nclass BeanstalkdSende", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdSender.php", "language": "php", "file_size": 1516, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport;\n\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactoryInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**", "suffix": "Transport(#[\\SensitiveParameter] string $dsn, array $options, SerializerInterface $serializer): TransportInterface\n {\n unset($options['transport_name']);\n\n return new BeanstalkdTransport(Connection::fromDsn($dsn, $options), $serializer);\n ", "middle": "\n * @author Antonio Pauletich <antonio.pauletich95@gmail.com>\n *\n * @implements TransportFactoryInterface<BeanstalkdTransport>\n */\nclass BeanstalkdTransportFactory implements TransportFactoryInterface\n{\n public function create", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdTransportFactory.php", "language": "php", "file_size": 1165, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdPriorityStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdReceiv", "suffix": "\\SentForRetryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Serializer a", "middle": "er;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Tests/Transport/BeanstalkdReceiverTest.php", "language": "php", "file_size": 6253, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdTransport;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdTransportFactory;\nuse Symfony", "suffix": "orts()\n {\n $factory = new BeanstalkdTransportFactory();\n\n $this->assertTrue($factory->supports('beanstalkd://127.0.0.1', []));\n $this->assertFalse($factory->supports('doctrine://127.0.0.1', []));\n }\n\n public function testCreat", "middle": "\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\nfinal class BeanstalkdTransportFactoryTest extends TestCase\n{\n public function testSupp", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Tests/Transport/BeanstalkdTransportFactoryTest.php", "language": "php", "file_size": 1377, "cut_index": 524, "middle_length": 229}} {"prefix": "ats;\nuse Pheanstalk\\Values\\TubeList;\nuse Pheanstalk\\Values\\TubeName;\nuse Pheanstalk\\Values\\TubeStats;\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException as MessengerInvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\n\nfinal class ConnectionTest extends TestCase\n{\n public function testFromInvalidDsn()\n {\n ", "suffix": ")\n {\n $this->assertEquals(\n $connection = new Connection([], Pheanstalk::create('127.0.0.1', 11300)),\n Connection::fromDsn('beanstalkd://127.0.0.1')\n );\n\n $configuration = $connection->getConfiguration();\n\n ", "middle": " $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('The given Beanstalkd DSN is invalid.');\n\n Connection::fromDsn('beanstalkd://');\n }\n\n public function testFromDsn(", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Tests/Transport/ConnectionTest.php", "language": "php", "file_size": 22434, "cut_index": 1331, "middle_length": 229}} {"prefix": "tifier;\nuse Doctrine\\DBAL\\Schema\\Name\\UnqualifiedName;\nuse Doctrine\\DBAL\\Schema\\NamedObject;\nuse Doctrine\\DBAL\\Schema\\PrimaryKeyConstraint;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\Sequence;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Doctrine\\DBAL\\Types\\Types;\nuse Satag\\DoctrineFirebirdDriver\\Platforms\\FirebirdPlatform;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**", "suffix": "s Connection implements ResetInterface\n{\n private const ORACLE_SEQUENCES_SUFFIX = '_seq';\n protected const TABLE_OPTION_NAME = '_symfony_messenger_table_name';\n\n protected const DEFAULT_OPTIONS = [\n 'table_name' => 'messenger_messages',\n ", "middle": "\n * @internal\n *\n * @author Vincent Touzet <vincent.touzet@gmail.com>\n * @author Kévin Dunglas <dunglas@gmail.com>\n * @author Herberto Graca <herberto.graca@gmail.com>\n * @author Alexander Malyk <shu.rick.ifmo@gmail.com>\n */\nclas", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php", "language": "php", "file_size": 24062, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport;\n\nuse Doctrine\\DBAL\\Connection as DbalConnection;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\KeepaliveReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ListableReceiverInterface", "suffix": "use Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * @author Vincent Touzet <vincent.touzet@gmail.com>\n */\nclass DoctrineTransport implements TransportInterface, SetupableTransportInterface, MessageCountAwareInterface, ListableReceiverInte", "middle": ";\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\SetupableTransportInterface;\n", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/DoctrineTransport.php", "language": "php", "file_size": 3557, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport;\n\nuse Doctrine\\DBAL\\Connection as DBALConnection;\n\n/**\n * Uses PostgreSQL LISTEN/NOTIFY to push messages to workers.\n *\n * If you do not want to use the LISTEN mechanism, set the `use_notify` option to `false` when calling DoctrineTransportFactory::createTransport.\n *\n * @internal\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nfinal class PostgreSqlConnection extends Connection\n{\n private bool $listenin", "suffix": "et_notify_timeout: The maximum time to wait for a NOTIFY, in milliseconds. Default: 60000 (1 minute).\n */\n protected const DEFAULT_OPTIONS = parent::DEFAULT_OPTIONS + [\n 'check_delayed_interval' => 60000,\n 'get_notify_timeout' => 60000", "middle": "g = false;\n private bool $notifyHandledExternally = false;\n\n /**\n * * check_delayed_interval: The interval to check for delayed messages, in milliseconds. Set to 0 to disable checks. Default: 60000 (1 minute)\n * * g", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/PostgreSqlConnection.php", "language": "php", "file_size": 5579, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\EventListener;\n\nuse Doctrine\\DBAL\\ArrayParameterType;\nuse Doctrine\\DBAL\\Types\\Types;\nuse Psr\\Clock\\ClockInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\PostgreSqlConnection;\nuse Symfony\\Component\\Messenger\\Event\\WorkerRunningEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerStartedEvent;\n\n/**\n * When the wor", "suffix": "ail.com>\n */\nclass PostgreSqlNotifyOnIdleListener implements EventSubscriberInterface\n{\n /** @var array<string, PostgreSqlConnection> */\n private array $connections = [];\n private ?PostgreSqlConnection $activeConnection = null;\n private ?float ", "middle": "ker is idle, blocks on PostgreSQL LISTEN/NOTIFY instead of\n * polling. This allows instant wake-up when a new message arrives while\n * properly supporting workers that consume from multiple queues.\n *\n * @author d-ph <dph03292@gm", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/EventListener/PostgreSqlNotifyOnIdleListener.php", "language": "php", "file_size": 7367, "cut_index": 716, "middle_length": 229}} {"prefix": "chemaManagerFactory;\nuse Doctrine\\DBAL\\Tools\\DsnParser;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\Connection;\n\n#[RequiresPhpExtension('pdo_sqlite')]\nclass DoctrineIntegrationTest extends TestCase\n{\n private \\Doctrine\\DBAL\\Connection $driverConnection;\n private Connection $connection;\n\n protected function setUp(): void\n ", "suffix": "agerFactory());\n\n $this->driverConnection = DriverManager::getConnection($params, $config);\n $this->connection = new Connection([], $this->driverConnection);\n }\n\n protected function tearDown(): void\n {\n $this->driverConnection", "middle": " {\n $dsn = getenv('MESSENGER_DOCTRINE_DSN') ?: 'pdo-sqlite://:memory:';\n $params = (new DsnParser())->parse($dsn);\n $config = new Configuration();\n $config->setSchemaManagerFactory(new DefaultSchemaMan", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrineIntegrationTest.php", "language": "php", "file_size": 9602, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Transport;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Tools\\DsnParser;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attrib", "suffix": "pExtension('pdo_pgsql')]\n#[Group('integration')]\nclass DoctrinePostgreSqlIntegrationTest extends TestCase\n{\n private Connection $driverConnection;\n private PostgreSqlConnection $connection;\n\n protected function setUp(): void\n {\n if (!$ho", "middle": "utes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\PostgreSqlConnection;\n\n#[RequiresPh", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrinePostgreSqlIntegrationTest.php", "language": "php", "file_size": 2798, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Transport;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Tools\\DsnParser;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\", "suffix": "s used when use_notify is enabled.\n */\n#[RequiresPhpExtension('pdo_pgsql')]\n#[Group('integration')]\nclass DoctrinePostgreSqlRegularIntegrationTest extends TestCase\n{\n private \\Doctrine\\DBAL\\Connection $driverConnection;\n private Connection $connectio", "middle": "Messenger\\Bridge\\Doctrine\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\Connection;\n\n/**\n * This tests a using Doctrine PostgreSql connection without using PostgreSqlConnection\n * that get", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrinePostgreSqlRegularIntegrationTest.php", "language": "php", "file_size": 3385, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Transport;\n\nuse AsyncAws\\Sqs\\SqsClient;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\Connection;\n\n#[", "suffix": "e \"MESSENGER_SQS_FIFO_QUEUE_DSN\" environment variable is required.');\n }\n\n $this->execute(getenv('MESSENGER_SQS_FIFO_QUEUE_DSN'));\n }\n\n public function testConnectionSendAndGet()\n {\n if (!getenv('MESSENGER_SQS_DSN')) {\n ", "middle": "Group('integration')]\nclass AmazonSqsIntegrationTest extends TestCase\n{\n public function testConnectionSendToFifoQueueAndGet()\n {\n if (!getenv('MESSENGER_SQS_FIFO_QUEUE_DSN')) {\n $this->markTestSkipped('Th", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsIntegrationTest.php", "language": "php", "file_size": 2884, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\AmazonSqsFifoStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\AmazonSqsSender;\nuse Symfony\\Component\\Messenger\\Bridge", "suffix": "erInterface;\n\nclass AmazonSqsSenderTest extends TestCase\n{\n public function testSend()\n {\n $envelope = new Envelope(new DummyMessage('Oy'));\n $encoded = ['body' => '...', 'headers' => ['type' => DummyMessage::class]];\n\n $connecti", "middle": "\\AmazonSqs\\Transport\\AmazonSqsXrayTraceHeaderStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsSenderTest.php", "language": "php", "file_size": 3820, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Transport;\n\nuse AsyncAws\\Core\\Exception\\Http\\HttpException;\nuse AsyncAws\\Core\\Exception\\Http\\ServerException;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\AmazonSqsReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\AmazonSqsReceiver;\nuse Symfony\\Component\\Messenger\\Brid", "suffix": "\\Component\\Messenger\\Stamp\\RedeliveryStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterfac", "middle": "ge\\AmazonSqs\\Transport\\AmazonSqsTransport;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsTransportTest.php", "language": "php", "file_size": 8939, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\KeepaliveReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\P", "suffix": "BeanstalkdTransport implements TransportInterface, KeepaliveReceiverInterface, MessageCountAwareInterface\n{\n private SerializerInterface $serializer;\n private BeanstalkdReceiver $receiver;\n private BeanstalkdSender $sender;\n\n public function __", "middle": "hpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * @author Antonio Pauletich <antonio.pauletich95@gmail.com>\n */\nclass ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdTransport.php", "language": "php", "file_size": 2397, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport;\n\nuse Pheanstalk\\Contract\\PheanstalkManagerInterface;\nuse Pheanstalk\\Contract\\PheanstalkPublisherInterface;\nuse Pheanstalk\\Contract\\PheanstalkSubscriberInterface;\nuse Pheanstalk\\Contract\\SocketFactoryInterface;\nuse Pheanstalk\\Exception;\nuse Pheanstalk\\Exception\\ConnectionException;\nuse Pheanstalk\\Pheanstalk;\nuse Pheanstalk\\Values\\JobId;\nuse Pheanstalk\\Values\\TubeName;\nuse Symfony\\Component\\Messenger\\Exception", "suffix": "ULT_OPTIONS = [\n 'tube_name' => 'default',\n 'timeout' => 0,\n 'ttr' => 90,\n 'bury_on_reject' => false,\n ];\n\n private TubeName $tube;\n private int $timeout;\n private int $ttr;\n private bool $buryOnReject;\n\n priva", "middle": "\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\n\n/**\n * @author Antonio Pauletich <antonio.pauletich95@gmail.com>\n *\n * @internal\n *\n * @final\n */\nclass Connection\n{\n private const DEFA", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/Connection.php", "language": "php", "file_size": 8565, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport;\n\nuse Doctrine\\DBAL\\Exception as DBALException;\nuse Doctrine\\DBAL\\Exception\\RetryableException;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Compone", "suffix": "Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * @author Vincent Touzet <vincent.touzet@gmail.com>\n */\nclass DoctrineReceiver implements ListableReceiverInterfac", "middle": "nt\\Messenger\\Transport\\Receiver\\KeepaliveReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ListableReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/DoctrineReceiver.php", "language": "php", "file_size": 6274, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport;\n\nuse Doctrine\\DBAL\\Exception as DBALException;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\S", "suffix": "izerInterface;\n\n/**\n * @author Vincent Touzet <vincent.touzet@gmail.com>\n */\nclass DoctrineSender implements SenderInterface\n{\n private SerializerInterface $serializer;\n\n public function __construct(\n private Connection $connection,\n ?S", "middle": "tamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\Serial", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/DoctrineSender.php", "language": "php", "file_size": 1779, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Transport;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Schema\\Column;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Schema\\NamedObject;\nuse Doctrine\\DBAL\\Schema\\Sequence;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Doctrine\\DBA", "suffix": "port\\PostgreSqlConnection;\n\n/**\n * This test checks on a postgres connection whether the doctrine asset filter works as expected.\n */\n#[RequiresPhpExtension('pdo_pgsql')]\n#[Group('integration')]\nclass DoctrinePostgreSqlFilterIntegrationTest extends TestCas", "middle": "L\\Tools\\DsnParser;\nuse Doctrine\\DBAL\\Types\\Type;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Trans", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrinePostgreSqlFilterIntegrationTest.php", "language": "php", "file_size": 4081, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Middleware;\n\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\MessageDeduplicationAwareInterface;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\MessageGroupAwareInterface;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\AmazonSqsF", "suffix": "areInterface\n{\n public function handle(Envelope $envelope, StackInterface $stack): Envelope\n {\n $message = $envelope->getMessage();\n $messageGroupId = null;\n $messageDeduplicationId = null;\n\n if ($message instanceof Messag", "middle": "ifoStamp;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\n\nfinal class AddFifoStampMiddleware implements Middlew", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Middleware/AddFifoStampMiddleware.php", "language": "php", "file_size": 1535, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\AmazonSqsTransportFactory;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Compo", "suffix": "is->assertTrue($factory->supports('sqs://localhost', []));\n $this->assertTrue($factory->supports('https://sqs.us-east-2.amazonaws.com/123456789012/ab1-MyQueue-A2BCDEF3GHI4', []));\n $this->assertFalse($factory->supports('redis://localhost', []", "middle": "nent\\Messenger\\Transport\\Serialization\\Serializer;\n\nclass AmazonSqsTransportFactoryTest extends TestCase\n{\n public function testSupportsOnlySqsTransports()\n {\n $factory = new AmazonSqsTransportFactory();\n\n $th", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsTransportFactoryTest.php", "language": "php", "file_size": 1682, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Stamp\\SentForRetryStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Co", "suffix": "mponent\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\n/**\n * @author Antonio Pauletich <antonio.pauletich95@gmail.com>\n */\nclass BeanstalkdReceiver implements KeepaliveReceiverInterface, MessageCountAwareInterface\n{\n private SerializerInterfac", "middle": "mponent\\Messenger\\Transport\\Receiver\\KeepaliveReceiverInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\MessageCountAwareInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Co", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdReceiver.php", "language": "php", "file_size": 3312, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdPriorityStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdSender;\nuse Symfony\\Component\\Messen", "suffix": "r\\Transport\\Serialization\\SerializerInterface;\n\nfinal class BeanstalkdSenderTest extends TestCase\n{\n public function testSend()\n {\n $envelope = new Envelope(new DummyMessage('Oy'));\n $encoded = ['body' => '...', 'headers' => ['type' => ", "middle": "ger\\Bridge\\Beanstalkd\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\DelayStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenge", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Tests/Transport/BeanstalkdSenderTest.php", "language": "php", "file_size": 3291, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Trans", "suffix": "Component\\Messenger\\Transport\\TransportInterface;\n\nfinal class BeanstalkdTransportTest extends TestCase\n{\n public function testItIsATransport()\n {\n $transport = $this->getTransport();\n\n $this->assertInstanceOf(TransportInterface::class,", "middle": "port\\BeanstalkdTransport;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Beanstalkd/Tests/Transport/BeanstalkdTransportTest.php", "language": "php", "file_size": 2597, "cut_index": 563, "middle_length": 229}} {"prefix": "AL\\Query\\ForUpdate\\ConflictResolutionMode;\nuse Doctrine\\DBAL\\Query\\QueryBuilder;\nuse Doctrine\\DBAL\\Result;\nuse Doctrine\\DBAL\\Schema\\AbstractSchemaManager;\nuse Doctrine\\DBAL\\Schema\\NamedObject;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\SchemaConfig;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrin", "suffix": "eWillChangeItsStatus()\n {\n $queryBuilder = $this->getQueryBuilderStub();\n $driverConnection = $this->getDBALConnection();\n $stmt = $this->getGetResultMock([\n 'id' => 1,\n 'body' => '{\"message\":\"Hi\"}',\n ", "middle": "e\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\n\nclass ConnectionTest extends TestCase\n{\n public function testGetAMessag", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/ConnectionTest.php", "language": "php", "file_size": 32189, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\AmazonSqsReceivedStamp;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\AmazonSqsReceiver;\nuse Symfony\\Component\\Messenger\\", "suffix": " Symfony\\Component\\Messenger\\Transport\\Serialization\\Serializer;\nuse Symfony\\Component\\Serializer as SerializerComponent;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\n\nclass AmazonSqsRe", "middle": "Bridge\\AmazonSqs\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\MessageDecodingFailedException;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsReceiverTest.php", "language": "php", "file_size": 5046, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport;\n\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\Persistence\\ConnectionRegistry;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\EventListener\\PostgreSqlNotifyOnIdleListener;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\nuse Symfon", "suffix": "<vincent.touzet@gmail.com>\n *\n * @implements TransportFactoryInterface<DoctrineTransport>\n */\nclass DoctrineTransportFactory implements TransportFactoryInterface\n{\n public function __construct(\n private ConnectionRegistry $registry,\n priva", "middle": "y\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactoryInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * @author Vincent Touzet ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/DoctrineTransportFactory.php", "language": "php", "file_size": 2743, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Transport;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Tools\\DsnParser;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attrib", "suffix": "tests using PostgreSqlConnection with PgBouncer between pgsql and the application.\n */\n#[RequiresPhpExtension('pdo_pgsql')]\n#[Group('integration')]\nclass DoctrinePostgreSqlPgbouncerIntegrationTest extends TestCase\n{\n private Connection $driverConnection", "middle": "utes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\PostgreSqlConnection;\n\n/**\n * This ", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrinePostgreSqlPgbouncerIntegrationTest.php", "language": "php", "file_size": 2842, "cut_index": 563, "middle_length": 229}} {"prefix": "ient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Exception\\TransportException;\n\nclass ConnectionTest extends TestCase\n{\n public function testExtraOptions()\n {\n $this->expectException(\\InvalidArgumentException::class);\n Connection::fromDsn('sqs://default/queue', [\n 'extra_key',\n ]);\n }\n\n public function testExtraParamsInQuery()\n {\n $this->ex", "suffix": "lue';\n $awsSecret = 'some_aws_secret_value';\n $region = 'eu-west-1';\n $httpClient = new MockHttpClient();\n $this->assertEquals(\n new Connection(['queue_name' => 'queue'], new SqsClient(['region' => $region, 'accessKey", "middle": "pectException(\\InvalidArgumentException::class);\n Connection::fromDsn('sqs://default/queue?extra_param=some_value');\n }\n\n public function testConfigureWithCredentials()\n {\n $awsKey = 'some_aws_access_key_va", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/ConnectionTest.php", "language": "php", "file_size": 26615, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\Re", "suffix": "ase\n{\n public function testSend()\n {\n $envelope = new Envelope(new DummyMessage('Oy'));\n $encoded = ['body' => '...', 'headers' => ['type' => DummyMessage::class]];\n\n $connection = $this->createMock(Connection::class);\n $c", "middle": "disSender;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\n\nclass RedisSenderTest extends TestC", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisSenderTest.php", "language": "php", "file_size": 1697, "cut_index": 537, "middle_length": 229}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests;\n\nuse Symfony\\Component\\Process\\PhpSubprocess;\nuse Symfony\\Component\\Process\\Process;\n\nrequire is_file(\\dirname(__DIR__).'/vendor/autoload.php') ? \\dirname(__DIR__).'/vendor/autoload.php' : \\dirname(__DIR__, 5).'/vendor/autoload.php';\n\n", "suffix": "e' => 'php', 'p' => 'Process'];\n\nif ('Process' === $process) {\n $p = new Process([$php, __DIR__.'/Fixtures/memory.php']);\n} else {\n $p = new PhpSubprocess([__DIR__.'/Fixtures/memory.php'], null, null, 60, [$php]);\n}\n\n$p->mustRun();\necho $p->getOutput", "middle": "['e' => $php, 'p' => $process] = getopt('e:p:') + ['", "meta": {"filepath": "src/Symfony/Component/Process/Tests/OutputMemoryLimitProcess.php", "language": "php", "file_size": 828, "cut_index": 516, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\PhpExecutableFinder;\n\n/**\n * @author Robert Schönthal <seroscho@googlemail.com>\n */\nclass PhpExecutableFinderTest extends TestCase\n{\n /**\n * tests find() with the constant PHP_BINARY.\n */\n public function ", "suffix": "table PHP');\n $this->assertEquals($current, $f->find(false), '::find() returns the executable PHP');\n }\n\n /**\n * tests find() with the env var PHP_PATH.\n */\n public function testFindArguments()\n {\n $f = new PhpExecutableFi", "middle": "testFind()\n {\n $f = new PhpExecutableFinder();\n\n $current = \\PHP_BINARY;\n $args = 'phpdbg' === \\PHP_SAPI ? ' -qrr' : '';\n\n $this->assertEquals($current.$args, $f->find(), '::find() returns the execu", "meta": {"filepath": "src/Symfony/Component/Process/Tests/PhpExecutableFinderTest.php", "language": "php", "file_size": 2578, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\Exception\\LogicException;\nuse Symfony\\Component\\Process\\PhpExecutableFinder;\nuse Symfony\\Component\\Process\\PhpProcess;\n\nclass PhpProcessTest extends TestCase\n{\n public function testNonBlockingWorks()\n {\n $e", "suffix": "s->getOutput());\n }\n\n public function testCommandLine()\n {\n $process = new PhpProcess(<<<'PHP'\n <?php echo phpversion().PHP_SAPI;\n PHP\n );\n\n $commandLine = $process->getCommandLine();\n\n $process->s", "middle": "xpected = 'hello world!';\n $process = new PhpProcess(<<<PHP\n <?php echo '$expected';\n PHP\n );\n $process->start();\n $process->wait();\n $this->assertEquals($expected, $proces", "meta": {"filepath": "src/Symfony/Component/Process/Tests/PhpProcessTest.php", "language": "php", "file_size": 2361, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\PhpExecutableFinder;\nuse Symfony\\Component\\Process\\Process;\n\nclass PhpSubprocessTest extends TestCase\n{\n private static $phpBin;\n\n public static function setUpBeforeC", "suffix": "r')]\n public function testSubprocess(string $processClass, string $memoryLimit, string $expectedMemoryLimit)\n {\n $process = new Process([self::$phpBin,\n '-d',\n 'memory_limit='.$memoryLimit,\n __DIR__.'/OutputMem", "middle": "lass(): void\n {\n $phpBin = new PhpExecutableFinder();\n self::$phpBin = getenv('SYMFONY_PROCESS_PHP_TEST_BINARY') ?: ('phpdbg' === \\PHP_SAPI ? 'php' : $phpBin->find());\n }\n\n #[DataProvider('subprocessProvide", "meta": {"filepath": "src/Symfony/Component/Process/Tests/PhpSubprocessTest.php", "language": "php", "file_size": 2185, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\ndefine('ERR_SELECT_FAILED', 1);\ndefine('ERR_TIMEOUT', 2);\ndefine('ERR_READ_FAILED', 3);\ndefine('ERR_WRITE_FAILED', 4);\n\n$read = [\\STDIN];\n$write = [\\STDOUT, \\STDERR];\n\nstream_set_blocking(\\STDIN, false);\nstream_set_blocking(\\STDOUT, false);\nstream_set_blocking(\\STDERR, false);\n\n$out = $err = '';\nwh", "suffix": " if (in_array(\\STDOUT, $w) && '' !== $out) {\n $written = fwrite(\\STDOUT, (string) $out, 32768);\n if (false === $written) {\n exit(ERR_WRITE_FAILED);\n }\n $out = (string) substr($out, $written);\n }\n if (null === $", "middle": "ile ($read || $write) {\n $r = $read;\n $w = $write;\n $e = null;\n $n = stream_select($r, $w, $e, 5);\n\n if (false === $n) {\n exit(ERR_SELECT_FAILED);\n } elseif ($n < 1) {\n exit(ERR_TIMEOUT);\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Process/Tests/PipeStdinInStdoutStdErrStreamSelect.php", "language": "php", "file_size": 1755, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\Exception\\ProcessFailedException;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * @author Sebastian Marek <proofek@gmail.com>\n */\nclass ProcessFailedExceptionTest extends TestCase\n{\n /**\n * tests ProcessFailedException throws exception if the process was successfu", "suffix": ">expects($this->once())\n ->method('isSuccessful')\n ->willReturn(true);\n\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('Expected a failed process, but the given process was succ", "middle": "l.\n */\n public function testProcessFailedExceptionThrowsException()\n {\n $process = $this->getMockBuilder(Process::class)->onlyMethods(['isSuccessful'])->setConstructorArgs([['php']])->getMock();\n $process-", "meta": {"filepath": "src/Symfony/Component/Process/Tests/ProcessFailedExceptionTest.php", "language": "php", "file_size": 4667, "cut_index": 614, "middle_length": 229}} {"prefix": "\n if (self::$process) {\n self::$process->stop(0);\n self::$process = null;\n }\n }\n\n public function testInvalidCwd()\n {\n $this->expectException(RuntimeException::class);\n $this->expectExceptionMessageMatches('/The provided cwd \".*\" does not exist\\./');\n try {\n // Check that it works fine if the CWD exists\n $cmd = new Process(['echo', 'test'], __DIR__);\n $cmd->run();\n } catch (\\Exception $e) {\n ", "suffix": " {\n // An invalid command should not fail during start\n $this->assertSame('\\\\' === \\DIRECTORY_SEPARATOR ? 1 : 127, $process->run());\n }\n\n public static function invalidProcessProvider(): array\n {\n return [\n [new Pr", "middle": "$this->fail($e);\n }\n\n $cmd = new Process(['echo', 'test'], __DIR__.'/notfound/');\n $cmd->run();\n }\n\n #[DataProvider('invalidProcessProvider')]\n public function testInvalidCommand(Process $process)\n ", "meta": {"filepath": "src/Symfony/Component/Process/Tests/ProcessTest.php", "language": "php", "file_size": 56319, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Process\\PhpExecutableFinder;\nuse Symfony\\Component\\Process\\Process;\n\nclass ProcessWindowsEnvBlockTest extends TestCase\n{\n private static string $phpBin;\n\n public static function setUpBeforeClass(): void\n {\n $phpBin = new PhpExecutableFinder();\n self::$phpBin = getenv('SYMFONY_PROCESS_PHP_TE", "suffix": "ipped('Windows-only.');\n }\n\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('The environment block size (');\n\n // \"KEY=\" (4) + 32767 + \"\\0\" (1) + block terminator (1) = 32773 > 32767\n ", "middle": "ST_BINARY') ?: ('phpdbg' === \\PHP_SAPI ? 'php' : $phpBin->find());\n }\n\n public function testStartThrowsWhenSingleEnvValueExceedsWindowsLimit()\n {\n if ('\\\\' !== \\DIRECTORY_SEPARATOR) {\n $this->markTestSk", "meta": {"filepath": "src/Symfony/Component/Process/Tests/ProcessWindowsEnvBlockTest.php", "language": "php", "file_size": 6527, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests\\Messenger;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\Exception\\RunProcessFailedException;\nuse Symfony\\Component\\Process\\Messenger\\RunProcessMessage;\nuse Symfony\\Component\\Process\\Messenger\\RunProcessMessageHandler;\n\nclass RunProcessMessageHandlerTest extends Tes", "suffix": "is->assertSame(0, $context->exitCode);\n $this->assertStringContainsString(basename(__FILE__), $context->output);\n }\n\n public function testRunFailedProcess()\n {\n try {\n (new RunProcessMessageHandler())(new RunProcessMessage", "middle": "tCase\n{\n public function testRunSuccessfulProcess()\n {\n $context = (new RunProcessMessageHandler())(new RunProcessMessage(['ls'], __DIR__));\n\n $this->assertSame(['ls'], $context->message->command);\n $th", "meta": {"filepath": "src/Symfony/Component/Process/Tests/Messenger/RunProcessMessageHandlerTest.php", "language": "php", "file_size": 2530, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Messenger;\n\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * @author Kevin Bond <kevinbond@gmail.com>\n */\nfinal class RunProcessContext\n{\n public readonly ?int $exitCode;\n public readonly ?string $output;\n public readonly ?string $errorOutput;\n\n public function __construct(\n public readonly RunProcessMessage $mess", "suffix": "->exitCode = $process->getExitCode();\n $this->output = !$process->isStarted() || $process->isOutputDisabled() ? null : $process->getOutput();\n $this->errorOutput = !$process->isStarted() || $process->isOutputDisabled() ? null : $process->getE", "middle": "age,\n Process $process,\n ) {\n $this", "meta": {"filepath": "src/Symfony/Component/Process/Messenger/RunProcessContext.php", "language": "php", "file_size": 936, "cut_index": 606, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Messenger;\n\n/**\n * @author Kevin Bond <kevinbond@gmail.com>\n */\nclass RunProcessMessage implements \\Stringable\n{\n public ?string $commandLine = null;\n\n public function __construct(\n public readonly array $command,\n public readonly", "suffix": "return $this->commandLine ?? implode(' ', $this->command);\n }\n\n /**\n * Create a process message instance that will instantiate a Process using the fromShellCommandline method.\n *\n * @see Process::fromShellCommandline\n */\n public st", "middle": " ?string $cwd = null,\n public readonly ?array $env = null,\n public readonly mixed $input = null,\n public readonly ?float $timeout = 60.0,\n ) {\n }\n\n public function __toString(): string\n {\n ", "meta": {"filepath": "src/Symfony/Component/Process/Messenger/RunProcessMessage.php", "language": "php", "file_size": 1296, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Messenger;\n\nuse Symfony\\Component\\Process\\Exception\\ProcessFailedException;\nuse Symfony\\Component\\Process\\Exception\\RunProcessFailedException;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * @author Kevin Bond <kevinbond@gmail.com>\n */\nfinal cla", "suffix": "$message->env, $message->input, $message->timeout),\n default => Process::fromShellCommandline($message->commandLine, $message->cwd, $message->env, $message->input, $message->timeout),\n };\n\n try {\n return new RunProcessCo", "middle": "ss RunProcessMessageHandler\n{\n public function __invoke(RunProcessMessage $message): RunProcessContext\n {\n $process = match ($message->commandLine) {\n null => new Process($message->command, $message->cwd, ", "meta": {"filepath": "src/Symfony/Component/Process/Messenger/RunProcessMessageHandler.php", "language": "php", "file_size": 1209, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Pipes;\n\nuse Symfony\\Component\\Process\\Exception\\InvalidArgumentException;\n\n/**\n * @author Romain Neutron <imprec@gmail.com>\n *\n * @internal\n */\nabstract class AbstractPipes implements PipesInterface\n{\n public array $pipes = [];\n\n private string $inputBuffer = '';\n /** @var resource|string|\\Iterator */\n private $input;\n private bool $blocked = true;\n private ?string $lastError = null;\n\n /**\n * @param resource|strin", "suffix": "ing) $input;\n }\n }\n\n public function close(): void\n {\n foreach ($this->pipes as $pipe) {\n if (\\is_resource($pipe)) {\n fclose($pipe);\n }\n }\n $this->pipes = [];\n }\n\n /**\n * R", "middle": "g|\\Iterator $input\n */\n public function __construct($input)\n {\n if (\\is_resource($input) || $input instanceof \\Iterator) {\n $this->input = $input;\n } else {\n $this->inputBuffer = (str", "meta": {"filepath": "src/Symfony/Component/Process/Pipes/AbstractPipes.php", "language": "php", "file_size": 6113, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Pipes;\n\n/**\n * PipesInterface manages descriptors and pipes for the use of proc_open.\n *\n * @author Romain Neutron <imprec@gmail.com>\n *\n * @internal\n */\ninterface PipesInterface\n{\n public const CHUNK_SIZE = 16384;\n\n /**\n * Returns an array", "suffix": "return string[]\n */\n public function getFiles(): array;\n\n /**\n * Reads data in file handles and pipes.\n *\n * @param bool $blocking Whether to use blocking calls or not\n * @param bool $close Whether to close pipes if they've rea", "middle": " of descriptors for the use of proc_open.\n */\n public function getDescriptors(): array;\n\n /**\n * Returns an array of filenames indexed by their related stream in case these pipes use temporary files.\n *\n * @", "meta": {"filepath": "src/Symfony/Component/Process/Pipes/PipesInterface.php", "language": "php", "file_size": 1502, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Pipes;\n\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * UnixPipes implementation uses unix pipes as handles.\n *\n * @author Romain Neutron <imprec@gmail.com>\n *\n * @internal\n */\nclass UnixPipes extends AbstractPipes\n{\n public function __construct(\n private ?bool $ttyMode,\n private bool $ptyMode,\n mixed $input,\n ", "suffix": "ion __unserialize(array $data): void\n {\n throw new \\BadMethodCallException('Cannot unserialize '.__CLASS__);\n }\n\n public function __destruct()\n {\n $this->close();\n }\n\n public function getDescriptors(): array\n {\n if", "middle": " private bool $haveReadSupport,\n ) {\n parent::__construct($input);\n }\n\n public function __serialize(): array\n {\n throw new \\BadMethodCallException('Cannot serialize '.__CLASS__);\n }\n\n public funct", "meta": {"filepath": "src/Symfony/Component/Process/Pipes/UnixPipes.php", "language": "php", "file_size": 3739, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Pipes;\n\nuse Symfony\\Component\\Process\\Exception\\RuntimeException;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * WindowsPipes implementation uses temporary files as handles.\n *\n * @see https://bugs.php.net/51800\n * @see https://bugs.php.net/65650\n *\n * @author Romain Neutron <imprec@gmail.com>\n *\n * @internal\n */\nclass WindowsPipes extends AbstractPipes\n{\n private array $files = [];\n private array $fileHandles = [];\n private arra", "suffix": " if ($this->haveReadSupport) {\n // Fix for PHP bug #51800: reading from STDOUT pipe hangs forever on Windows if the output is too big.\n // Workaround for this problem is to use temporary files instead of pipes on Windows platform.\n ", "middle": "y $lockHandles = [];\n private array $readBytes = [\n Process::STDOUT => 0,\n Process::STDERR => 0,\n ];\n\n public function __construct(\n mixed $input,\n private bool $haveReadSupport,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Process/Pipes/WindowsPipes.php", "language": "php", "file_size": 5849, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel;\n\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\ResponseHeaderBag;\nuse Symfony\\Component\\Mime\\Part\\AbstractPart;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\Mime\\Part\\Multipart\\FormDataPar", "suffix": "fony HTTP kernel using a \"real\" HTTP client.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class HttpClientKernel implements HttpKernelInterface\n{\n private HttpClientInterface $client;\n\n public function __construct(?HttpClientInterfac", "middle": "t;\nuse Symfony\\Component\\Mime\\Part\\TextPart;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(ResponseHeaderBag::class);\n\n/**\n * An implementation of a Sym", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpClientKernel.php", "language": "php", "file_size": 4120, "cut_index": 614, "middle_length": 229}} {"prefix": "y\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsMetadata;\nuse Symfony\\Component\\HttpKern", "suffix": "el\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\TerminateEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ViewEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Sy", "middle": "el\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerMetadata;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKern", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpKernel.php", "language": "php", "file_size": 12160, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel;\n\nuse Symfony\\Component\\BrowserKit\\AbstractBrowser;\nuse Symfony\\Component\\BrowserKit\\CookieJar;\nuse Symfony\\Component\\BrowserKit\\History;\nuse Symfony\\Component\\BrowserKit\\Request as DomRequest;\nuse Symfony\\Component\\BrowserKit\\Response as DomResponse;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Simulates a browser and makes ", "suffix": "tions = true;\n\n /**\n * @param array $server The server parameters (equivalent of $_SERVER)\n */\n public function __construct(\n protected HttpKernelInterface $kernel,\n array $server = [],\n ?History $history = null,\n ", "middle": "requests to an HttpKernel instance.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @template-extends AbstractBrowser<Request, Response>\n */\nclass HttpKernelBrowser extends AbstractBrowser\n{\n private bool $catchExcep", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpKernelBrowser.php", "language": "php", "file_size": 6065, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * HttpKernelInterface handles a Request to convert it to a Response.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface HttpK", "suffix": " * and do its best to convert them to a Response instance.\n *\n * @param int $type The type of the request\n * (one of HttpKernelInterface::MAIN_REQUEST or HttpKernelInterface::SUB_REQUEST)\n * @param bool $catch Wheth", "middle": "ernelInterface\n{\n public const MAIN_REQUEST = 1;\n public const SUB_REQUEST = 2;\n\n /**\n * Handles a Request to convert it to a Response.\n *\n * When $catch is true, the implementation must catch all exceptions\n", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpKernelInterface.php", "language": "php", "file_size": 1227, "cut_index": 518, "middle_length": 229}} {"prefix": "ymfony\\Component\\DependencyInjection\\Kernel\\KernelTrait;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Bundle\\BundleAdapter;\nuse Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\WarmableInterface;\n\n/**\n * The Kernel is the heart of the Symfony system.\n *\n * It manages an environment made of bundles.\n *\n * Environment names must always start with a letter and\n * they must only cont", "suffix": "gisterBundles as public;\n registerContainerConfiguration as public;\n initializeBundles as protected doInitializeBundles;\n initializeContainer as protected doInitializeContainer;\n getKernelParameters as private doGetKernelParamet", "middle": "ain letters and numbers.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nabstract class Kernel extends AbstractKernel implements KernelInterface, RebootableInterface, TerminableInterface\n{\n use KernelTrait {\n re", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Kernel.php", "language": "php", "file_size": 9404, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel;\n\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\Response", "suffix": "\n */\nfinal class KernelEvents\n{\n /**\n * The REQUEST event occurs at the very beginning of request\n * dispatching.\n *\n * This event allows you to create a response for a request before any\n * other code in the framework is executed.\n ", "middle": "Event;\nuse Symfony\\Component\\HttpKernel\\Event\\TerminateEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ViewEvent;\n\n/**\n * Contains all events thrown in the HttpKernel component.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>", "meta": {"filepath": "src/Symfony/Component/HttpKernel/KernelEvents.php", "language": "php", "file_size": 4142, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel;\n\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\KernelInterface as BaseKernelInterface;\nuse Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface;\n\n/**\n * The Kernel is the heart of the Symfony", "suffix": "Returns an array of bundles to register.\n *\n * @return iterable<BundleInterface>\n */\n public function registerBundles(): iterable;\n\n /**\n * Loads the container configuration.\n */\n public function registerContainerConfiguration(", "middle": " system.\n *\n * It manages an environment made of application kernel and bundles.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface KernelInterface extends HttpKernelInterface, BaseKernelInterface\n{\n /**\n * ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/KernelInterface.php", "language": "php", "file_size": 1485, "cut_index": 524, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel;\n\n/**\n * Allows the Kernel to be rebooted using a temporary cache directory.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\ninterface RebootableInterface\n{\n /**\n * Reboots a kernel.\n *\n * The getBuildDir() method of a re", "suffix": "l should not be called\n * while building the container. Use the %kernel.build_dir% parameter instead.\n *\n * @param string|null $warmupDir pass null to reboot in the regular build directory\n */\n public function reboot(?string $warmupDir):", "middle": "bootable kerne", "meta": {"filepath": "src/Symfony/Component/HttpKernel/RebootableInterface.php", "language": "php", "file_size": 793, "cut_index": 514, "middle_length": 14}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Terminable extends the Kernel request/response cycle with dispatching a post\n * response event after sending the response and before shutting down the kernel.\n *\n * @author Jordi Boggiano <j.boggiano@seld.be>\n * @author Pierre", "suffix": "ace TerminableInterface\n{\n /**\n * Terminates a request/response cycle.\n *\n * Should be called after sending the response and before shutting down the kernel.\n */\n public function terminate(Request $request, Response $response): void;\n", "middle": " Minnieur <pierre.minnieur@sensiolabs.de>\n */\ninterf", "meta": {"filepath": "src/Symfony/Component/HttpKernel/TerminableInterface.php", "language": "php", "file_size": 916, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\HttpCache;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * Abstract class implementing Surrogate capabilities to Request and Response instances.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Robin Chalas <robin.c", "suffix": " (default: text/html, text/xml, application/xhtml+xml, and application/xml)\n */\n public function __construct(\n protected array $contentTypes = ['text/html', 'text/xml', 'application/xhtml+xml', 'application/xml'],\n ) {\n }\n\n /**\n", "middle": "halas@gmail.com>\n */\nabstract class AbstractSurrogate implements SurrogateInterface\n{\n /**\n * @param array $contentTypes An array of content-type that should be parsed for Surrogate information\n * ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/AbstractSurrogate.php", "language": "php", "file_size": 4414, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\HttpCache;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Esi implements the ESI capabilities to Request and Response instances.\n *\n * For more information, read the following W3C notes:\n *\n * * ESI Language Specification 1.0 (http://www.w3.org/TR/esi-lang)\n *\n * * Edge Architect", "suffix": "function addSurrogateControl(Response $response): void\n {\n if (str_contains($response->getContent(), '<esi:include')) {\n $response->headers->set('Surrogate-Control', 'content=\"ESI/1.0\"');\n }\n }\n\n public function renderIncl", "middle": "ure Specification (http://www.w3.org/TR/edge-arch)\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Esi extends AbstractSurrogate\n{\n public function getName(): string\n {\n return 'esi';\n }\n\n public ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/Esi.php", "language": "php", "file_size": 3280, "cut_index": 614, "middle_length": 229}} {"prefix": "cier <fabien@symfony.com>\n */\nclass HttpCache implements HttpKernelInterface, TerminableInterface\n{\n public const BODY_EVAL_BOUNDARY_LENGTH = 24;\n\n private Request $request;\n private ?ResponseCacheStrategyInterface $surrogateCacheStrategy = null;\n private array $options = [];\n private array $traces = [];\n private ?Request $forwardedRequest = null;\n private ?Request $backendRequest = null;\n\n /**\n * Constructor.\n *\n * The available options are:\n *\n * * debug ", "suffix": "f 'none', 'short' and 'full'. For 'short', a concise trace of the\n * main request will be added as an HTTP header. 'full' will add traces for all\n * requests (including ESI subrequests). (defaul", "middle": " If true, exceptions are thrown when things go wrong. Otherwise, the cache\n * will try to carry on and deliver a meaningful response.\n *\n * * trace_level May be one o", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php", "language": "php", "file_size": 27225, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\HttpCache;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * ResponseCacheStrategy knows how to compute the Response cache HTTP header\n * based on the different response cache headers.\n *\n * This implementation changes the main response TTL to the smallest TTL received\n * or force validation if one of the surrogates has validation cache strategy.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass ResponseCacheStrategy ", "suffix": "'no-store', 'no-transform', 'must-revalidate', 'proxy-revalidate'];\n\n /**\n * Cache-Control headers that are sent to the final response if they appear in ALL of the responses.\n */\n private const INHERIT_DIRECTIVES = ['public', 'immutable'];\n\n ", "middle": "implements ResponseCacheStrategyInterface\n{\n /**\n * Cache-Control headers that are sent to the final response if they appear in ANY of the responses.\n */\n private const OVERRIDE_DIRECTIVES = ['private', 'no-cache', ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/ResponseCacheStrategy.php", "language": "php", "file_size": 8684, "cut_index": 716, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * This code is partially based on the Rack-Cache library by Ryan Tomayko,\n * which is released under the MIT license.\n * (based on commit 02d2b48d75bcb63cf1c0c7149c077ad256542801)\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\HttpCache;\n\nuse Symfony\\Component\\HttpFoundation\\Re", "suffix": " ResponseCacheStrategyInterface\n{\n /**\n * Adds a Response.\n */\n public function add(Response $response): void;\n\n /**\n * Updates the Response HTTP headers based on the embedded Responses.\n */\n public function update(Response $res", "middle": "sponse;\n\n/**\n * ResponseCacheStrategyInterface implementations know how to compute the\n * Response cache HTTP header based on the different response cache headers.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/ResponseCacheStrategyInterface.php", "language": "php", "file_size": 1013, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\HttpCache;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Ssi implements the SSI capabilities to Request and Response instances.\n *\n * @author Sebastian Krebs <krebs.seb@gmail.com>\n */\nclass Ssi extends AbstractSurrogate\n{\n publ", "suffix": "headers->set('Surrogate-Control', 'content=\"SSI/1.0\"');\n }\n }\n\n public function renderIncludeTag(string $uri, ?string $alt = null, bool $ignoreErrors = true, string $comment = ''): string\n {\n return \\sprintf('<!--#include virtual=\"%s", "middle": "ic function getName(): string\n {\n return 'ssi';\n }\n\n public function addSurrogateControl(Response $response): void\n {\n if (str_contains($response->getContent(), '<!--#include')) {\n $response->", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/Ssi.php", "language": "php", "file_size": 2560, "cut_index": 563, "middle_length": 229}} {"prefix": "\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Store implements all the logic for storing cache metadata (Request and Response headers).\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Store implements StoreInterface\n{\n /** @var \\SplObjectStorage<Request, string> */\n private \\SplObjectStorage $keyCache;\n /** @var array<string, resource> */\n private array $locks = [];\n\n /**\n * Constructor.\n *\n * The available opt", "suffix": "c function __construct(\n protected string $root,\n private array $options = [],\n ) {\n if (!is_dir($this->root) && !@mkdir($this->root, 0o777, true) && !is_dir($this->root)) {\n throw new \\RuntimeException(\\sprintf('Unable t", "middle": "ions are:\n *\n * * private_headers Set of response headers that should not be stored\n * when a response is cached. (default: Set-Cookie)\n *\n * @throws \\RuntimeException\n */\n publi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/Store.php", "language": "php", "file_size": 14710, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Relay\\Relay;\n\n#[RequiresPhpExtension('relay')]\n#[Group('time-sensitive')]\n#[Group('integration')]\nclass RelayExtIntegrationTest ext", "suffix": " doesn\\'t work with relay.');\n }\n\n public function testConnectionSendDelayedMessagesWithSameContent()\n {\n self::markTestSkipped('This test doesn\\'t work with relay.');\n }\n\n public function testLazy()\n {\n self::markTestSkippe", "middle": "ends RedisExtIntegrationTest\n{\n protected function createRedisClient(): \\Redis|Relay\n {\n return new Relay();\n }\n\n public function testConnectionSendAndGetDelayed()\n {\n self::markTestSkipped('This test", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RelayExtIntegrationTest.php", "language": "php", "file_size": 1556, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Handler;\n\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Messenger\\Exception\\LogicException;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass Acknowledger\n{\n public readonly ClockInterface $clock;\n\n private ?\\Closure $a", "suffix": "rClass,\n ?\\Closure $ack = null,\n ?ClockInterface $clock = null,\n ) {\n $this->clock = $clock ?? Clock::get();\n $this->ack = $ack ?? static function () {};\n }\n\n /**\n * @param mixed $result\n */\n public function ", "middle": "ck;\n private \\Throwable|false|null $error = null;\n private mixed $result = null;\n\n /**\n * @param \\Closure(\\Throwable|null, mixed):void|null $ack\n */\n public function __construct(\n private string $handle", "meta": {"filepath": "src/Symfony/Component/Messenger/Handler/Acknowledger.php", "language": "php", "file_size": 2177, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Handler;\n\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Clock\\ClockInterface;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\ntrait BatchHandlerTrait\n{\n private array $jobs = [];\n private ?int $lastMessageAt = null;\n private ?ClockInterface $batchClock = null;\n\n ", "suffix": " }\n }\n\n /**\n * @param Acknowledger|null $ack The function to call to ack/nack the $message.\n * The message should be handled synchronously when null.\n *\n * @return mixed The number of pending messag", "middle": " public function flush(bool $force): void\n {\n if (!$force && !$this->shouldFlush()) {\n return;\n }\n\n if ($jobs = $this->jobs) {\n $this->jobs = [];\n $this->process($jobs);\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Handler/BatchHandlerTrait.php", "language": "php", "file_size": 2690, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Handler;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\n\n/**\n * Maps a message to a list of handlers.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\nclass HandlersLocator implements Handler", "suffix": "iterable\n {\n $seen = [];\n\n foreach (self::listTypes($envelope) as $type) {\n foreach ($this->handlers[$type] ?? [] as $handlerDescriptor) {\n if (\\is_callable($handlerDescriptor)) {\n $handlerDescr", "middle": "sLocatorInterface\n{\n /**\n * @param HandlerDescriptor[][]|callable[][] $handlers\n */\n public function __construct(\n private array $handlers,\n ) {\n }\n\n public function getHandlers(Envelope $envelope): ", "meta": {"filepath": "src/Symfony/Component/Messenger/Handler/HandlersLocator.php", "language": "php", "file_size": 2567, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Handler;\n\nuse Symfony\\Component\\Messenger\\Message\\RedispatchMessage;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\HandledStamp;\nuse Symfony\\Component\\Messenger\\Stamp\\TransportNamesStamp;\n\nfinal class RedispatchMessageHandler\n", "suffix": "essageBusInterface $bus,\n ) {\n }\n\n public function __invoke(RedispatchMessage $message): mixed\n {\n $envelope = $this->bus->dispatch($message->envelope, [new TransportNamesStamp($message->transportNames)]);\n\n return $envelope->last", "middle": "{\n public function __construct(\n private M", "meta": {"filepath": "src/Symfony/Component/Messenger/Handler/RedispatchMessageHandler.php", "language": "php", "file_size": 900, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Execution;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\AckStamp;\n\nfinal class SyncMessageExecutionStrategy implements MessageExecutionStrategyInterface\n{\n public functi", "suffix": "\n {\n $acked = false;\n $error = null;\n\n $ack = function (Envelope $handledEnvelope, ?\\Throwable $handledError = null) use (&$envelope, &$acked, &$error, $transportName): void {\n $envelope = $handledEnvelope;\n $a", "middle": "on __construct(\n private readonly MessageBusInterface $bus,\n private readonly \\Closure $onAcknowledge,\n ) {\n }\n\n public function execute(Envelope $envelope, string $transportName, callable $onHandled): void", "meta": {"filepath": "src/Symfony/Component/Messenger/Execution/SyncMessageExecutionStrategy.php", "language": "php", "file_size": 1785, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Retry;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\ninterface RetryStrategyInterface\n{\n /**\n * @param \\Throwable|null $throwable The cause of the failed handling\n */\n ", "suffix": "hrowable $throwable = null): bool;\n\n /**\n * @param \\Throwable|null $throwable The cause of the failed handling\n *\n * @return int The time to delay/wait in milliseconds\n */\n public function getWaitingTime(Envelope $message, ?\\Throwable", "middle": " public function isRetryable(Envelope $message, ?\\T", "meta": {"filepath": "src/Symfony/Component/Messenger/Retry/RetryStrategyInterface.php", "language": "php", "file_size": 943, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process;\n\n/**\n * Generic executable finder.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ExecutableFinder\n{\n private const CMD_BUILTINS = [\n 'assoc', 'break', 'call', 'cd', 'chdir', 'cls', 'color', 'copy', 'date',\n 'del', 'dir', 'echo', 'endlocal', 'erase', 'e", "suffix": " 'time', 'title', 'type', 'ver', 'vol',\n ];\n\n private array $suffixes = [];\n\n /**\n * Replaces default suffixes of executable.\n */\n public function setSuffixes(array $suffixes): void\n {\n $this->suffixes = $suffixes;\n }\n\n ", "middle": "xit', 'for', 'ftype', 'goto',\n 'help', 'if', 'label', 'md', 'mkdir', 'mklink', 'move', 'path', 'pause',\n 'popd', 'prompt', 'pushd', 'rd', 'rem', 'ren', 'rename', 'rmdir', 'set',\n 'setlocal', 'shift', 'start',", "meta": {"filepath": "src/Symfony/Component/Process/ExecutableFinder.php", "language": "php", "file_size": 3575, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process;\n\nuse Symfony\\Component\\Process\\Exception\\RuntimeException;\n\n/**\n * Provides a way to continuously write to the input of a Process until the InputStream is closed.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @implements \\IteratorAggregate<int, string>\n */\nclass InputStream implemen", "suffix": "unction onEmpty(?callable $onEmpty = null): void\n {\n $this->onEmpty = null !== $onEmpty ? $onEmpty(...) : null;\n }\n\n /**\n * Appends an input to the write buffer.\n *\n * @param resource|string|int|float|bool|\\Traversable|null $inp", "middle": "ts \\IteratorAggregate\n{\n private ?\\Closure $onEmpty = null;\n private array $input = [];\n private bool $open = true;\n\n /**\n * Sets a callback that is called when the write buffer becomes empty.\n */\n public f", "meta": {"filepath": "src/Symfony/Component/Process/InputStream.php", "language": "php", "file_size": 2385, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process;\n\nuse Symfony\\Component\\Process\\Exception\\LogicException;\nuse Symfony\\Component\\Process\\Exception\\RuntimeException;\n\n/**\n * PhpProcess runs a PHP script in an independent process.\n *\n * $p = new PhpProcess('<?php echo \"foo\"; ?>');\n * $p->run();\n * print $p->getOutput().\"\\n\";\n ", "suffix": "am string|null $cwd The working directory or null to use the working dir of the current PHP process\n * @param EnvArray|null $env The environment variables or null to use the same environment as the current PHP process\n * @param int ", "middle": "*\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @psalm-import-type EnvArray from Process\n */\nclass PhpProcess extends Process\n{\n /**\n * @param string $script The PHP script to run (as a string)\n * @par", "meta": {"filepath": "src/Symfony/Component/Process/PhpProcess.php", "language": "php", "file_size": 2615, "cut_index": 563, "middle_length": 229}} {"prefix": " blocking call, use this flag to make it non-blocking\n public const ITER_KEEP_OUTPUT = 2; // By default, outputs are cleared while iterating, use this flag to keep them in memory\n public const ITER_SKIP_OUT = 4; // Use this flag to skip STDOUT while iterating\n public const ITER_SKIP_ERR = 8; // Use this flag to skip STDERR while iterating\n\n /**\n * Maximum number of UTF-16 code units allowed in the Windows environment block.\n *\n * The Win32 CreateProcess API encodes env vars ", "suffix": "cessthreadsapi/nf-processthreadsapi-createprocessa\n */\n private const WINDOWS_ENV_BLOCK_MAX_LENGTH = 32767;\n\n /** @var \\Closure('out'|'err', string):bool|null */\n private ?\\Closure $callback = null;\n /** @var string[]|string */\n private ", "middle": "as KEY=VALUE\\0 in UTF-16LE,\n * terminated by an extra \\0. Exceeding this limit causes proc_open() to hang\n * silently rather than returning false.\n *\n * @see https://learn.microsoft.com/en-us/windows/win32/api/pro", "meta": {"filepath": "src/Symfony/Component/Process/Process.php", "language": "php", "file_size": 59616, "cut_index": 2151, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Exception;\n\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Exception that is thrown when a process has been signaled.\n *\n * @author Sullivan Senechal <soullivaneuh@gmail.com>\n */\nfinal class ProcessSignaledException extends RuntimeException\n{\n public function __construc", "suffix": " parent::__construct(\\sprintf('The process has been signaled with signal \"%s\".', $process->getTermSignal()));\n }\n\n public function getProcess(): Process\n {\n return $this->process;\n }\n\n public function getSignal(): int\n {\n re", "middle": "t(\n private Process $process,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Process/Exception/ProcessSignaledException.php", "language": "php", "file_size": 906, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Exception;\n\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Exception that is thrown when a process times out.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ProcessTimedOutException extends RuntimeException\n{\n public const TYPE_GENERAL = 1;", "suffix": "ut of %s seconds.',\n $process->getCommandLine(),\n $this->getExceededTimeout()\n ));\n }\n\n public function getProcess(): Process\n {\n return $this->process;\n }\n\n public function isGeneralTimeout(): bool\n {\n", "middle": "\n public const TYPE_IDLE = 2;\n\n public function __construct(\n private Process $process,\n private int $timeoutType,\n ) {\n parent::__construct(\\sprintf(\n 'The process \"%s\" exceeded the timeo", "meta": {"filepath": "src/Symfony/Component/Process/Exception/ProcessTimedOutException.php", "language": "php", "file_size": 1554, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * @author Andrei Olteanu <andrei@flashsoft.eu>\n */\nclass CreateNewConsoleTest extends TestCase\n{\n public function testOptionCreateNewConsole()\n {\n $this", "suffix": "();\n $process->start();\n } catch (\\Exception $e) {\n $this->fail($e);\n }\n }\n\n public function testItReturnsFastAfterStart()\n {\n // The started process must run in background after the main has finished but", "middle": "->expectNotToPerformAssertions();\n try {\n $process = new Process(['php', __DIR__.'/ThreeSecondProcess.php']);\n $process->setOptions(['create_new_console' => true]);\n $process->disableOutput", "meta": {"filepath": "src/Symfony/Component/Process/Tests/CreateNewConsoleTest.php", "language": "php", "file_size": 1357, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n/**\n * Runs a PHP script that can be stopped only with a SIGKILL (9) signal for 3 seconds.\n *\n * @args duration Run this script with a custom duration\n *\n * @example `php NonStopableProcess.php 42` will run the script for 42 seconds\n */\nfunction handleSignal($signal)\n{\n $name = match ($signal) {\n \\SIGTERM => 'SIGTERM',\n \\SIGI", "suffix": "n)',\n };\n\n echo \"signal $name\\n\";\n}\n\npcntl_signal(\\SIGTERM, 'handleSignal');\npcntl_signal(\\SIGINT, 'handleSignal');\n\necho 'received ';\n\n$duration = isset($argv[1]) ? (int) $argv[1] : 3;\n$start = microtime(true);\n\nwhile ($duration > (microtime(true) -", "middle": "NT => 'SIGINT',\n default => $signal.' (unknow", "meta": {"filepath": "src/Symfony/Component/Process/Tests/NonStopableProcess.php", "language": "php", "file_size": 952, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\RedisTransp", "suffix": "nsion('redis')]\nclass RedisTransportFactoryTest extends TestCase\n{\n use VarDumperTestTrait;\n\n public function testSupportsOnlyRedisTransports()\n {\n $factory = new RedisTransportFactory();\n\n $this->assertTrue($factory->supports('redis", "middle": "ort;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\RedisTransportFactory;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\PhpSerializer;\nuse Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait;\n\n#[RequiresPhpExte", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisTransportFactoryTest.php", "language": "php", "file_size": 3122, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Test\\Middleware;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\Sta", "suffix": "$stack = $this->createMock(StackInterface::class);\n $stack\n ->expects($this->never())\n ->method('next')\n ;\n\n return $stack;\n }\n\n $nextMiddleware = $this->createMock(MiddlewareInte", "middle": "ckMiddleware;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nabstract class MiddlewareTestCase extends TestCase\n{\n protected function getStackMock(bool $nextIsCalled = true)\n {\n if (!$nextIsCalled) {\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Test/Middleware/MiddlewareTestCase.php", "language": "php", "file_size": 1731, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Handler;\n\n/**\n * Describes a handler and the possible associated options, such as `from_transport`, `bus`, etc.\n *\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\nfinal class HandlerDescriptor\n{\n private \\Closure $handler;\n private string $name;\n pr", "suffix": " $r = new \\ReflectionFunction($handler);\n\n if ($r->isAnonymous()) {\n $this->name = 'Closure';\n } elseif (!$handler = $r->getClosureThis()) {\n $class = $r->getClosureCalledClass();\n\n $this->name = ($class", "middle": "ivate ?BatchHandlerInterface $batchHandler = null;\n\n public function __construct(\n callable $handler,\n private array $options = [],\n ) {\n $handler = $handler(...);\n\n $this->handler = $handler;\n\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Handler/HandlerDescriptor.php", "language": "php", "file_size": 1899, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Execution;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Execution\\Message\\DeferredBatchMessage;\n\n/**\n * @internal\n */\nfinal class DeferredBatchMessageQueue\n{\n /** @var \\SplObjectStorage<object, DeferredBatchMessage>|null */\n ", "suffix": "ool &$acked, float $queuedAt): void\n {\n $this->messages ??= new \\SplObjectStorage();\n $this->messages[$batchHandler] = new DeferredBatchMessage($transportName, $envelope, $acked, $queuedAt);\n }\n\n /**\n * @return \\SplObjectStorage<", "middle": "private ?\\SplObjectStorage $messages = null;\n\n public function hasPending(): bool\n {\n return null !== $this->messages;\n }\n\n public function add(object $batchHandler, string $transportName, Envelope $envelope, b", "meta": {"filepath": "src/Symfony/Component/Messenger/Execution/DeferredBatchMessageQueue.php", "language": "php", "file_size": 1881, "cut_index": 537, "middle_length": 229}} {"prefix": "ony\\Component\\Messenger\\Handler\\HandlerDescriptor;\nuse Symfony\\Component\\Messenger\\Handler\\HandlersLocator;\nuse Symfony\\Component\\Messenger\\TraceableMessageBus;\nuse Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface;\n\n/**\n * @author Samuel Roze <samuel.roze@gmail.com>\n */\nclass MessengerPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n $busIds = array_keys($container->findTaggedServiceIds('messenger.bus'));\n\n foreach ($b", "suffix": " $container->getParameterBag()->remove($busMiddlewareParameter);\n }\n\n if ($container->hasDefinition('data_collector.messenger')) {\n $this->registerBusToCollector($container, $busId);\n }\n ", "middle": "usIds as $busId) {\n if ($container->hasParameter($busMiddlewareParameter = $busId.'.middleware')) {\n $this->registerBusMiddleware($container, $busId, $container->getParameter($busMiddlewareParameter));\n\n", "meta": {"filepath": "src/Symfony/Component/Messenger/DependencyInjection/MessengerPass.php", "language": "php", "file_size": 20932, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Process;\n\nuse Symfony\\Component\\Process\\Exception\\LogicException;\nuse Symfony\\Component\\Process\\Exception\\RuntimeException;\n\n/**\n * PhpSubprocess runs a PHP command as a subprocess while keeping the original php.ini settings.\n *\n * For this, it generates a temporary php.ini file taking over all the current settings and disables\n * loading additional .ini files. Basically, your command gets prefixed using \"php -n -c /tmp/temp.ini\".\n *\n * Given you", "suffix": "sses:\n *\n * $p = new Process(['php', '-d', 'memory_limit=256M', 'MemoryTest.php']);\n * $p->run();\n * print $p->getOutput().\"\\n\";\n *\n * This will output \"string(2) \"-1\", because the process is started with the default php.ini settings.\n *\n * ", "middle": "r php.ini contains \"memory_limit=-1\" and you have a \"MemoryTest.php\" with the following content:\n *\n * <?php var_dump(ini_get('memory_limit'));\n *\n * These are the differences between the regular Process and PhpSubprocess cla", "meta": {"filepath": "src/Symfony/Component/Process/PhpSubprocess.php", "language": "php", "file_size": 6205, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Exception;\n\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Exception for failed processes.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ProcessFailedException extends RuntimeException\n{\n public function __construct(\n p", "suffix": "e command \"%s\" failed.'.\"\\n\\nExit Code: %s(%s)\\n\\nWorking directory: %s\",\n $process->getCommandLine(),\n $process->getExitCode(),\n $process->getExitCodeText(),\n $process->getWorkingDirectory()\n );\n\n ", "middle": "rivate Process $process,\n ) {\n if ($process->isSuccessful()) {\n throw new InvalidArgumentException('Expected a failed process, but the given process was successful.');\n }\n\n $error = \\sprintf('Th", "meta": {"filepath": "src/Symfony/Component/Process/Exception/ProcessFailedException.php", "language": "php", "file_size": 1428, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Exception;\n\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Exception for processes failed during startup.\n */\nclass ProcessStartFailedException extends ProcessFailedException\n{\n public function __construct(\n private Process $process,\n", "suffix": " $error = \\sprintf('The command \"%s\" failed.'.\"\\n\\nWorking directory: %s\\n\\nError: %s\",\n $process->getCommandLine(),\n $process->getWorkingDirectory(),\n $message ?? 'unknown'\n );\n\n // Skip parent construc", "middle": " ?string $message,\n ) {\n if ($process->isStarted()) {\n throw new InvalidArgumentException('Expected a process that failed during startup, but the given process was started successfully.');\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Process/Exception/ProcessStartFailedException.php", "language": "php", "file_size": 1148, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Transport;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\Connection;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\RedisReceivedStamp;\nuse Symf", "suffix": "portInterface;\n\nclass RedisTransportTest extends TestCase\n{\n public function testItIsATransport()\n {\n $transport = $this->getTransport();\n\n $this->assertInstanceOf(TransportInterface::class, $transport);\n }\n\n public function testR", "middle": "ony\\Component\\Messenger\\Bridge\\Redis\\Transport\\RedisTransport;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\Trans", "meta": {"filepath": "src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisTransportTest.php", "language": "php", "file_size": 2644, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Execution;\n\nuse Symfony\\Component\\Messenger\\Envelope;\n\ninterface MessageExecutionStrategyInterface\n{\n /**\n * @param callable(Envelope, string, bool, ?\\Throwable): void $onHandled\n */\n public function execute(Envelope $envelope, string $transportName, callable $onHandled): void;\n\n public f", "suffix": " * @param callable(Envelope, string, bool, ?\\Throwable): void $onHandled\n */\n public function wait(callable $onHandled): bool;\n\n /**\n * @param callable(Envelope, string, bool, ?\\Throwable): void $onHandled\n */\n public function flush(c", "middle": "unction shouldPauseConsumption(): bool;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/Messenger/Execution/MessageExecutionStrategyInterface.php", "language": "php", "file_size": 985, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process;\n\n/**\n * An executable finder specifically designed for the PHP executable.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass PhpExecutableFinder\n{\n private ExecutableFinder $executableFinder;\n\n public function __cons", "suffix": "_BINARY')) {\n if (!is_executable($php) && !$php = $this->executableFinder->find($php)) {\n return false;\n }\n\n if (@is_dir($php)) {\n return false;\n }\n\n return $php;\n ", "middle": "truct()\n {\n $this->executableFinder = new ExecutableFinder();\n }\n\n /**\n * Finds The PHP executable.\n */\n public function find(bool $includeArgs = true): string|false\n {\n if ($php = getenv('PHP", "meta": {"filepath": "src/Symfony/Component/Process/PhpExecutableFinder.php", "language": "php", "file_size": 2474, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests;\n\nuse Symfony\\Component\\Process\\Exception\\ProcessTimedOutException;\nuse Symfony\\Component\\Process\\Process;\n\nrequire is_file(\\dirname(__DIR__).'/vendor/autoload.php') ? \\dirname(__DIR__).'/vendor/autoload.php' : \\dirname(__DIR__, 5).'", "suffix": " while (!str_contains($process->getOutput(), 'ready')) {\n usleep(1000);\n }\n $process->isRunning() && $process->signal(\\SIGSTOP);\n $process->wait();\n\n return $process->getExitCode();\n} catch (ProcessTimedOutException $t) {\n echo $t-", "middle": "/vendor/autoload.php';\n\n['e' => $php] = getopt('e:') + ['e' => 'php'];\n\ntry {\n $process = new Process([$php, '-r', \"echo 'ready'; trigger_error('error', E_USER_ERROR);\"]);\n $process->start();\n $process->setTimeout(0.5);\n", "meta": {"filepath": "src/Symfony/Component/Process/Tests/ErrorProcessInitiator.php", "language": "php", "file_size": 1039, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Process\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\RunInSeparateProcess;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Process\\ExecutableFinder;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * @author Chris Smith <chris@cs278.org>\n */\nclass ExecutableFinderTest extends TestCase\n{\n protected function tearDown(): void\n {\n putenv('PATH='.($_SERVER['PATH'] ?? $_SERVER['Path']));\n }\n\n public function testFind()\n {\n if", "suffix": "der->find($this->getPhpBinaryName());\n\n $this->assertSamePath(\\PHP_BINARY, $result);\n }\n\n public function testFindWithDefault()\n {\n if (\\ini_get('open_basedir')) {\n $this->markTestSkipped('Cannot test when open_basedir is ", "middle": " (\\ini_get('open_basedir')) {\n $this->markTestSkipped('Cannot test when open_basedir is set');\n }\n\n putenv('PATH='.\\dirname(\\PHP_BINARY));\n\n $finder = new ExecutableFinder();\n $result = $fin", "meta": {"filepath": "src/Symfony/Component/Process/Tests/ExecutableFinderTest.php", "language": "php", "file_size": 5867, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Retry;\n\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp;\n\n/**\n * A retry strategy with a constant or exponential retry delay.\n *\n * For example, if $delayMilliseconds=10000 & $multiplier=1 (default),\n * each retry will wai", "suffix": "author Ryan Weaver <ryan@symfonycasts.com>\n *\n * @final\n */\nclass MultiplierRetryStrategy implements RetryStrategyInterface\n{\n /**\n * @param int $maxRetries The maximum number of times to retry\n * @param int $delayMilliseconds A", "middle": "t exactly 10 seconds.\n *\n * But if $delayMilliseconds=10000 & $multiplier=2:\n * * Retry 1: 10 second delay\n * * Retry 2: 20 second delay (10000 * 2 = 20000)\n * * Retry 3: 40 second delay (20000 * 2 = 40000)\n *\n * @", "meta": {"filepath": "src/Symfony/Component/Messenger/Retry/MultiplierRetryStrategy.php", "language": "php", "file_size": 3464, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Process;\n\nuse Symfony\\Component\\Process\\Exception\\InvalidArgumentException;\n\n/**\n * ProcessUtils is a bunch of utility methods.\n *\n * This class contains static methods only and is not meant to be instantiated.\n *\n * @author Martin Hasoň <martin.hason@gmail.com>\n */\nclas", "suffix": "of method call that validates the input\n * @param mixed $input The input to validate\n *\n * @throws InvalidArgumentException In case the input is not valid\n */\n public static function validateInput(string $caller, mixed $input): mixed\n ", "middle": "s ProcessUtils\n{\n /**\n * This class should not be instantiated.\n */\n private function __construct()\n {\n }\n\n /**\n * Validates and normalizes a Process input.\n *\n * @param string $caller The name ", "meta": {"filepath": "src/Symfony/Component/Process/ProcessUtils.php", "language": "php", "file_size": 1753, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Messenger\\Handler;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\ninterface BatchHandlerInterface\n{\n /**\n * @param Acknowledger|null $ack The function to call to ack/nack the $message.\n * The message shou", "suffix": "n __invoke(object $message, ?Acknowledger $ack = null): mixed;\n\n /**\n * Flushes any pending buffers.\n *\n * @param bool $force Whether flushing is required; it can be skipped if not\n */\n public function flush(bool $force): void;\n}\n\n// ", "middle": "ld be handled synchronously when null.\n *\n * @return mixed The number of pending messages in the batch if $ack is not null,\n * the result from handling the message otherwise\n */\n // public functio", "meta": {"filepath": "src/Symfony/Component/Messenger/Handler/BatchHandlerInterface.php", "language": "php", "file_size": 1094, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\HttpCache;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\ninterface SurrogateInterface\n{\n /**\n * Returns surrogate name.\n */\n public function getName(): string;\n\n /**\n * Returns a new cache strategy instance.\n */\n", "suffix": " /**\n * Adds Surrogate-capability to the given Request.\n */\n public function addSurrogateCapability(Request $request): void;\n\n /**\n * Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.\n *\n * This m", "middle": " public function createCacheStrategy(): ResponseCacheStrategyInterface;\n\n /**\n * Checks that at least one surrogate has Surrogate capability.\n */\n public function hasSurrogateCapability(Request $request): bool;\n\n", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/SurrogateInterface.php", "language": "php", "file_size": 2116, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DataCollector;\n\nuse Symfony\\Component\\VarDumper\\Caster\\CutStub;\nuse Symfony\\Component\\VarDumper\\Caster\\ReflectionCaster;\nuse Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Cloner\\Stub;\nuse Symfony\\Compone", "suffix": "mfony.com>\n */\nabstract class DataCollector implements DataCollectorInterface\n{\n protected array|Data $data = [];\n\n private ClonerInterface $cloner;\n\n /**\n * Converts the variable into a serializable Data instance.\n *\n * This array can", "middle": "nt\\VarDumper\\Cloner\\VarCloner;\n\n/**\n * DataCollector.\n *\n * Children of this class must store the collected data in the data property.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Bernhard Schussek <bschussek@sy", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php", "language": "php", "file_size": 2857, "cut_index": 563, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * DataCollectorInterface.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface", "suffix": " /**\n * Collects data for the given Request and Response.\n */\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void;\n\n /**\n * Returns the name of the collector.\n */\n public function get", "middle": " DataCollectorInterface extends ResetInterface\n{\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php", "language": "php", "file_size": 855, "cut_index": 529, "middle_length": 52}} {"prefix": "e Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Cloner\\VarCloner;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper;\nuse Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\SourceContextProvider;\nuse Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface;\nuse Symfony\\Component\\VarDumper\\Dumper\\HtmlDumper;\nuse Symfony\\Component\\VarDumper\\Server\\", "suffix": "t $dataCount = 0;\n private bool $isCollected = true;\n private int $clonesCount = 0;\n private int $clonesIndex = 0;\n private array $rootRefs;\n private string $charset;\n private mixed $sourceContextProvider;\n private bool $webMode;\n p", "middle": "Connection;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @final\n */\nclass DumpDataCollector extends DataCollector implements DataDumperInterface\n{\n private string|FileLinkFormatter|false $fileLinkFormat;\n private in", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.php", "language": "php", "file_size": 11412, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DataCollector;\n\nuse Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface", "suffix": "rInterface\n{\n /** @var iterable<EventDispatcherInterface> */\n private iterable $dispatchers;\n private ?Request $currentRequest = null;\n\n /**\n * @param iterable<EventDispatcherInterface>|EventDispatcherInterface|null $dispatchers\n */\n ", "middle": ";\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @see TraceableEventDispatcher\n *\n * @final\n */\nclass EventDataCollector extends DataCollector implements LateDataCollecto", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/EventDataCollector.php", "language": "php", "file_size": 4336, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DataCollector;\n\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass ExceptionDa", "suffix": "ption' => FlattenException::createWithDataRepresentation($exception),\n ];\n }\n }\n\n public function hasException(): bool\n {\n return isset($this->data['exception']);\n }\n\n public function getException(): \\Exception|Flatt", "middle": "taCollector extends DataCollector\n{\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n if (null !== $exception) {\n $this->data = [\n 'exce", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/ExceptionDataCollector.php", "language": "php", "file_size": 1600, "cut_index": 537, "middle_length": 229}} {"prefix": " Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Log\\DebugLoggerConfigurator;\nuse Symfony\\Component\\HttpKernel\\Log\\DebugLoggerInterface;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass LoggerDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n private ?DebugLoggerInterface $logger;\n private ?Request $currentRequest = null;\n ", "suffix": "s->logger = DebugLoggerConfigurator::getDebugLogger($logger);\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n $this->currentRequest = $this->requestStack && $this->requestStack->ge", "middle": "private ?array $processedLogs = null;\n\n public function __construct(\n ?object $logger = null,\n private ?string $containerPathPrefix = null,\n private ?RequestStack $requestStack = null,\n ) {\n $thi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.php", "language": "php", "file_size": 10909, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass MemoryDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n public functio", "suffix": "t(): void\n {\n $this->data = [\n 'memory' => 0,\n 'memory_limit' => $this->convertToBytes(\\ini_get('memory_limit')),\n ];\n }\n\n public function lateCollect(): void\n {\n $this->updateMemoryUsage();\n }\n\n ", "middle": "n __construct()\n {\n $this->reset();\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n $this->updateMemoryUsage();\n }\n\n public function rese", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php", "language": "php", "file_size": 2218, "cut_index": 563, "middle_length": 229}} {"prefix": "t\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Process\\Process;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass RequestDataCollector extends DataCollector implements EventSubscriberInterface, LateDataCollectorInterface\n{\n /**\n * @var \\SplObjectStorage<Request, callable>\n */\n private \\SplObjectStorage $controllers;\n private array $sessionUsages = [];\n\n public function __constru", "suffix": " {\n // attributes are serialized and as they can be anything, they need to be converted to strings.\n $attributes = [];\n $route = '';\n foreach ($request->attributes->all() as $key => $value) {\n if ('_route' === $key)", "middle": "ct(\n private ?RequestStack $requestStack = null,\n ) {\n $this->controllers = new \\SplObjectStorage();\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php", "language": "php", "file_size": 18327, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Ro", "suffix": "/**\n * @final\n */\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n if ($response instanceof RedirectResponse) {\n $this->data['redirect'] = true;\n $this->data[", "middle": "uterDataCollector extends DataCollector\n{\n /**\n * @var \\SplObjectStorage<Request, callable>\n */\n protected \\SplObjectStorage $controllers;\n\n public function __construct()\n {\n $this->reset();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/RouterDataCollector.php", "language": "php", "file_size": 2351, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\Stopwatch\\StopwatchEvent;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass TimeDataCo", "suffix": " $this->data = ['events' => [], 'stopwatch_installed' => false, 'start_time' => 0];\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n if (null !== $this->kernel) {\n $sta", "middle": "llector extends DataCollector implements LateDataCollectorInterface\n{\n public function __construct(\n private readonly ?KernelInterface $kernel = null,\n private readonly ?Stopwatch $stopwatch = null,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php", "language": "php", "file_size": 3348, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\CacheClearer;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass Psr6CacheClearer implements CacheClearerInterface\n{\n private array $pools = [];\n\n /**\n * @param array<string, CacheItemPoolInterface> $pools", "suffix": "s \\InvalidArgumentException If the cache pool with the given name does not exist\n */\n public function getPool(string $name): CacheItemPoolInterface\n {\n if (!$this->hasPool($name)) {\n throw new \\InvalidArgumentException(\\sprintf(", "middle": "\n */\n public function __construct(array $pools = [])\n {\n $this->pools = $pools;\n }\n\n public function hasPool(string $name): bool\n {\n return isset($this->pools[$name]);\n }\n\n /**\n * @throw", "meta": {"filepath": "src/Symfony/Component/HttpKernel/CacheClearer/Psr6CacheClearer.php", "language": "php", "file_size": 1629, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Log;\n\nuse Monolog\\Logger;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass DebugLoggerConfigurator\n{\n private ?object $processor = null;\n\n public function __construct(callable $processor, ?bool $enable = null)\n {\n if ($enab", "suffix": " {\n if ($this->processor) {\n $logger->pushProcessor($this->processor);\n }\n }\n\n public static function getDebugLogger(mixed $logger): ?DebugLoggerInterface\n {\n if ($logger instanceof DebugLoggerInterface) {\n ", "middle": "le ?? !\\in_array(\\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {\n $this->processor = \\is_object($processor) ? $processor : $processor(...);\n }\n }\n\n public function pushDebugLogger(Logger $logger): void\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php", "language": "php", "file_size": 1327, "cut_index": 524, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Log;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * DebugLoggerInterface.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface DebugLoggerInterface\n{\n /**\n * Returns an array of logs.\n *\n * @return ar", "suffix": "ing,\n * }>\n */\n public function getLogs(?Request $request = null): array;\n\n /**\n * Returns the number of errors.\n */\n public function countErrors(?Request $request = null): int;\n\n /**\n * Removes all log records.\n */\n ", "middle": "ray<array{\n * channel: ?string,\n * context: array<string, mixed>,\n * message: string,\n * priority: int,\n * priorityName: string,\n * timestamp: int,\n * timestamp_rfc3339: str", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Log/DebugLoggerInterface.php", "language": "php", "file_size": 1031, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Log;\n\nuse Psr\\Log\\AbstractLogger;\nuse Psr\\Log\\InvalidArgumentException;\nuse Psr\\Log\\LogLevel;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\n\n/**\n * Minimalist PSR-3 logger designed to write in stderr or any other stream.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass Logger extends AbstractLogger implements DebugLoggerInterface\n{\n private const LEVELS = [\n LogLevel", "suffix": " 7,\n ];\n private const PRIORITIES = [\n LogLevel::DEBUG => 100,\n LogLevel::INFO => 200,\n LogLevel::NOTICE => 250,\n LogLevel::WARNING => 300,\n LogLevel::ERROR => 400,\n LogLevel::CRITICAL => 500,\n LogLeve", "middle": "::DEBUG => 0,\n LogLevel::INFO => 1,\n LogLevel::NOTICE => 2,\n LogLevel::WARNING => 3,\n LogLevel::ERROR => 4,\n LogLevel::CRITICAL => 5,\n LogLevel::ALERT => 6,\n LogLevel::EMERGENCY =>", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Log/Logger.php", "language": "php", "file_size": 5835, "cut_index": 716, "middle_length": 229}} {"prefix": "den=\"true\" focusable=\"false\" class=\"icon icon-tabler icon-tabler-box\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5\" />\n <path d=\"M12 12l8 -4.5\" />\n <path d=\"M12 12l0 9\" />\n <path d=\"M12 12l-8 -4.5\" />\n</svg>\nSVG;\n\n$renderFolderIconSvg = <<<SVG\n<svg xmlns=\"http://www.w3.org/2000/svg\" aria-hid", "suffix": "th stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path>\n <path d=\"M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2\"></path>\n</svg>\nSV", "middle": "den=\"true\" focusable=\"false\" class=\"icon icon-tabler icon-tabler-folder-open\" width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <pa", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Resources/welcome.html.php", "language": "php", "file_size": 40436, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\ValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\DefaultValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestAttributeValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestValueResolver;\nuse Symfony\\Component\\Http", "suffix": "\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadataFactoryInterface;\nuse Symfony\\Component\\HttpKernel\\Exception\\NearMissValueResolverException;\nuse Symfony\\Component\\HttpKernel\\Exception\\ResolverNotFoundException;\nuse Symfony\\Contracts\\Service\\Servic", "middle": "Kernel\\Controller\\ArgumentResolver\\SessionValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\VariadicValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadataFactory;\nuse Symfony", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver.php", "language": "php", "file_size": 6148, "cut_index": 716, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * An ArgumentResolverInterface instance knows how to determine the\n * arguments for a specific action.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface ArgumentR", "suffix": "nts to pass to the controller.\n *\n * @throws \\RuntimeException When no value could be provided for a required argument\n */\n public function getArguments(Request $request, callable $controller, ?\\ReflectionFunctionAbstract $reflector = null):", "middle": "esolverInterface\n{\n /**\n * Returns the argume", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolverInterface.php", "language": "php", "file_size": 838, "cut_index": 520, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller;\n\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\n\n/**\n * A controller resolver searching for a controller in a psr-11 container when using the \"service::method\" notation.\n *\n * @author Fabien Potencier ", "suffix": "er,\n ?LoggerInterface $logger = null,\n ) {\n parent::__construct($logger);\n }\n\n protected function instantiateController(string $class): object\n {\n $class = ltrim($class, '\\\\');\n\n if ($this->container->has($class)) {\n", "middle": "<fabien@symfony.com>\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass ContainerControllerResolver extends ControllerResolver\n{\n public function __construct(\n protected ContainerInterface $contain", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ContainerControllerResolver.php", "language": "php", "file_size": 2183, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller;\n\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentRendererInterface;\n\n/**\n * Acts as a marker and a data holder for a Controller.\n *\n * Some methods in Symfony accept both a URI (as a string) or a controller as\n * an argument. In the ", "suffix": "e\n{\n public array $attributes = [];\n public array $query = [];\n\n /**\n * @param string $controller The controller name\n * @param array $attributes An array of parameters to add to the Request attributes\n * @param array $query An ", "middle": "latter case, instead of passing an array representing\n * the controller, you can use an instance of this class.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @see FragmentRendererInterface\n */\nclass ControllerReferenc", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ControllerReference.php", "language": "php", "file_size": 1287, "cut_index": 524, "middle_length": 229}} {"prefix": "HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\AsController;\n\n/**\n * This implementation uses the '_controller' request attribute to determine\n * the controller to execute.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Tobias Schultze <http://tobion.de>\n */\nclass ControllerResolver implements ControllerResolverInterface\n{\n private array $allowedControllerTypes = [];\n private array $allowedControllerAttributes = [AsController::class => AsController::class];\n\n pub", "suffix": "(array $types = [], array $attributes = []): void\n {\n foreach ($types as $type) {\n $this->allowedControllerTypes[$type] = $type;\n }\n\n foreach ($attributes as $attribute) {\n $this->allowedControllerAttributes[$a", "middle": "lic function __construct(\n private ?LoggerInterface $logger = null,\n ) {\n }\n\n /**\n * @param array<class-string> $types\n * @param array<class-string> $attributes\n */\n public function allowControllers", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php", "language": "php", "file_size": 9730, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * A ControllerResolverInterface implementation knows how to determine the\n * controller to execute based on a Request object.\n *\n * A Controller can be any valid PHP callable.\n *\n * ", "suffix": "tion, a resolver must\n * return false when it is not able to determine the controller.\n *\n * The resolver must only throw an exception when it should be able to load a\n * controller but cannot because of some errors made by the developer.\n ", "middle": "@author Fabien Potencier <fabien@symfony.com>\n */\ninterface ControllerResolverInterface\n{\n /**\n * Returns the Controller instance associated with a Request.\n *\n * As several resolvers can exist for a single applica", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php", "language": "php", "file_size": 1372, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller;\n\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\H", "suffix": " public function __construct(\n private HttpKernelInterface $kernel,\n private string|object|array|null $controller,\n private ErrorRendererInterface $errorRenderer,\n ) {\n }\n\n public function __invoke(\\Throwable $exception): R", "middle": "ttpKernel\\HttpKernelInterface;\n\n/**\n * Renders error or exception pages from a given FlattenException.\n *\n * @author Yonel Ceruto <yonelceruto@gmail.com>\n * @author Matthias Pigulla <mp@webfactory.de>\n */\nclass ErrorController\n{\n", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ErrorController.php", "language": "php", "file_size": 1870, "cut_index": 537, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass TraceableArgumentResolver implements ArgumentResolverInterface\n{\n ", "suffix": "bstract $reflector = null): array\n {\n $e = $this->stopwatch->start('controller.get_arguments');\n\n try {\n return $this->resolver->getArguments($request, $controller, $reflector);\n } finally {\n $e->stop();\n ", "middle": "public function __construct(\n private ArgumentResolverInterface $resolver,\n private Stopwatch $stopwatch,\n ) {\n }\n\n public function getArguments(Request $request, callable $controller, ?\\ReflectionFunctionA", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/TraceableArgumentResolver.php", "language": "php", "file_size": 1009, "cut_index": 512, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass TraceableControllerResolver implements ControllerResolverInterface\n{\n public function __construct(\n private ControllerResolverInterface $resolver,\n ", "suffix": "ublic function getController(Request $request): callable|false\n {\n $e = $this->stopwatch->start('controller.get_callable');\n\n try {\n return $this->resolver->getController($request);\n } finally {\n $e->stop();\n ", "middle": " private Stopwatch $stopwatch,\n ) {\n }\n\n p", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/TraceableControllerResolver.php", "language": "php", "file_size": 930, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\n/**\n ", "suffix": "xime.steinhausser@gmail.com>\n */\nfinal class BackedEnumValueResolver implements ValueResolverInterface\n{\n public function resolve(Request $request, ArgumentMetadata $argument): iterable\n {\n if (!is_subclass_of($argument->getType(), \\BackedEnum", "middle": "* Attempt to resolve backed enum cases from request attributes, for a route path parameter,\n * leading to a 404 Not Found if the attribute value isn't a valid backing value for the enum type.\n *\n * @author Maxime Steinhausser <ma", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/BackedEnumValueResolver.php", "language": "php", "file_size": 2436, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\MapDateTime;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\Argu", "suffix": "m@codedmonkey.com>\n */\nfinal class DateTimeValueResolver implements ValueResolverInterface\n{\n public function __construct(\n private readonly ?ClockInterface $clock = null,\n ) {\n }\n\n public function resolve(Request $request, ArgumentMetad", "middle": "mentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\n/**\n * Convert DateTime instances from request attribute variable.\n *\n * @author Benjamin Eberlei <kontakt@beberlei.de>\n * @author Tim Goudriaan <ti", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/DateTimeValueResolver.php", "language": "php", "file_size": 2871, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\n\n/**\n * Yields the defau", "suffix": "st $request, ArgumentMetadata $argument): array\n {\n if ($argument->hasDefaultValue()) {\n return [$argument->getDefaultValue()];\n }\n\n if (null !== $argument->getType() && $argument->isNullable() && !$argument->isVariadic()", "middle": "lt value defined in the action signature when no value has been given.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nfinal class DefaultValueResolver implements ValueResolverInterface\n{\n public function resolve(Reque", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/DefaultValueResolver.php", "language": "php", "file_size": 1069, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\C", "suffix": "llerValueResolver implements ValueResolverInterface\n{\n public function __construct(\n private ContainerInterface $container,\n ) {\n }\n\n public function resolve(Request $request, ArgumentMetadata $argument): array\n {\n $controller ", "middle": "ontrollerMetadata\\ArgumentMetadata;\n\n/**\n * Provides an intuitive error message when controller fails because it is not registered as a service.\n *\n * @author Simeon Kolev <simeon.kolev9@gmail.com>\n */\nfinal class NotTaggedContro", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/NotTaggedControllerValueResolver.php", "language": "php", "file_size": 2124, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\MapQueryParameter;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\Uid\\AbstractUid;\n\n/**\n * Resolve arguments of type: array, string, int, float, bool", "suffix": ".com>\n */\nfinal class QueryParameterValueResolver implements ValueResolverInterface\n{\n public function resolve(Request $request, ArgumentMetadata $argument): array\n {\n if (!$attribute = $argument->getAttributesOfType(MapQueryParameter::class)[", "middle": ", \\BackedEnum from query parameters.\n *\n * @author Ruud Kamphuis <ruud@ticketswap.com>\n * @author Nicolas Grekas <p@tchwork.com>\n * @author Mateusz Anders <anders_mateusz@outlook.com>\n * @author Ionut Enache <i.ovidiuenache@yahoo", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/QueryParameterValueResolver.php", "language": "php", "file_size": 5274, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\n/**\n ", "suffix": "ve(Request $request, ArgumentMetadata $argument): array\n {\n if ($argument->isVariadic()) {\n return [];\n }\n\n $name = $argument->getName();\n if (!$request->attributes->has($name)) {\n return [];\n }\n\n", "middle": "* Yields a non-variadic argument's value from the request attributes.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nfinal class RequestAttributeValueResolver implements ValueResolverInterface\n{\n public function resol", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/RequestAttributeValueResolver.php", "language": "php", "file_size": 2288, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\AcceptHeader;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\MapRequestHeader;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKern", "suffix": "etadata $argument): array\n {\n if (!$attribute = $argument->getAttributesOfType(MapRequestHeader::class)[0] ?? null) {\n return [];\n }\n\n $type = $argument->getType();\n\n if (!\\in_array($type, ['string', 'array', Accep", "middle": "el\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\n\nfinal class RequestHeaderValueResolver implements ValueResolverInterface\n{\n public function resolve(Request $request, ArgumentM", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/RequestHeaderValueResolver.php", "language": "php", "file_size": 2469, "cut_index": 563, "middle_length": 229}} {"prefix": "ge\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\MapQueryString;\nuse Symfony\\Component\\HttpKernel\\Attribute\\MapRequestPayload;\nuse Symfony\\Component\\HttpKernel\\Attribute\\MapUploadedFile;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Com", "suffix": "lueResolverException;\nuse Symfony\\Component\\HttpKernel\\Exception\\UnsupportedMediaTypeHttpException;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Serializer\\Exception\\InvalidArgumentException as SerializerInvalidArgumentException;\nus", "middle": "ponent\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NearMissVa", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/RequestPayloadValueResolver.php", "language": "php", "file_size": 16722, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Exception;\n\n/**\n * HttpException.\n *\n * @author Kris Wallsmith <kris@symfony.com>\n */\nclass HttpException extends \\RuntimeException implements HttpExceptionInterface\n{\n public function __construct(\n private int $statusCode,\n string $message = '',\n ?\\Throwable $p", "suffix": "?\\Throwable $previous = null, array $headers = [], int $code = 0): self\n {\n return match ($statusCode) {\n 400 => new BadRequestHttpException($message, $previous, $code, $headers),\n 403 => new AccessDeniedHttpException($messa", "middle": "revious = null,\n private array $headers = [],\n int $code = 0,\n ) {\n parent::__construct($message, $code, $previous);\n }\n\n public static function fromStatusCode(int $statusCode, string $message = '', ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Exception/HttpException.php", "language": "php", "file_size": 2546, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Exception;\n\n/**\n * @author Ben Ramsey <ben@benramsey.com>\n *\n * @see http://tools.ietf.org/html/rfc6585\n */\nclass TooManyRequestsHttpException extends HttpException\n{\n /**\n * @param int|string|null $retryAfter The number of seconds or HTTP-date after which the re", "suffix": "onstruct(int|string|null $retryAfter = null, string $message = '', ?\\Throwable $previous = null, int $code = 0, array $headers = [])\n {\n if ($retryAfter) {\n $headers['Retry-After'] = $retryAfter;\n }\n\n parent::__construct(", "middle": "quest may be retried\n */\n public function __c", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Exception/TooManyRequestsHttpException.php", "language": "php", "file_size": 907, "cut_index": 547, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Fragment;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\n\n/**\n * Renders a URI that represents a resource f", "suffix": "m>\n *\n * @see FragmentRendererInterface\n */\nclass FragmentHandler\n{\n /** @var array<string, FragmentRendererInterface> */\n private array $renderers = [];\n\n /**\n * @param FragmentRendererInterface[] $renderers An array of FragmentRendererInterf", "middle": "ragment.\n *\n * This class handles the rendering of resource fragments that are included into\n * a main resource. The handling of the rendering is managed by specialized renderers.\n *\n * @author Fabien Potencier <fabien@symfony.co", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php", "language": "php", "file_size": 3624, "cut_index": 614, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Fragment;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\n\n/**\n * Interface implemented by all rendering strategies.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *", "suffix": " * Renders a URI and returns the Response content.\n */\n public function render(string|ControllerReference $uri, Request $request, array $options = []): Response;\n\n /**\n * Gets the name of the strategy.\n */\n public function getName(): s", "middle": "/\ninterface FragmentRendererInterface\n{\n /**\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Fragment/FragmentRendererInterface.php", "language": "php", "file_size": 876, "cut_index": 559, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Fragment;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\n\n/**\n * Interface implemented by rendering strategies able to generate a URL for a fragment.\n *\n * @author Kévin D", "suffix": "bool $strict Whether to allow non-scalar attributes or not\n * @param bool $sign Whether to sign the URL or not\n */\n public function generate(ControllerReference $controller, ?Request $request = null, bool $absolute = false, bool $strict = ", "middle": "unglas <kevin@dunglas.fr>\n */\ninterface FragmentUriGeneratorInterface\n{\n /**\n * Generates a fragment URI for a given controller.\n *\n * @param bool $absolute Whether to generate an absolute URL or not\n * @param ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Fragment/FragmentUriGeneratorInterface.php", "language": "php", "file_size": 1035, "cut_index": 513, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Fragment;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\EventListener\\FragmentListener;\n\n/**\n * Adds the possibility to generate a fragment URI for ", "suffix": "ragment';\n\n /**\n * Sets the fragment path that triggers the fragment listener.\n *\n * @see FragmentListener\n */\n public function setFragmentPath(string $path): void\n {\n $this->fragmentPath = $path;\n }\n\n /**\n * Gener", "middle": "a given Controller.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nabstract class RoutableFragmentRenderer implements FragmentRendererInterface\n{\n /**\n * @internal\n */\n protected string $fragmentPath = '/_f", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Fragment/RoutableFragmentRenderer.php", "language": "php", "file_size": 1498, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * Describes the default HTTP cache headers on controllers.\n * Headers defined in the Cache attribute are ignored if they are already set\n * by the controller.\n *\n * @see https://symfony.com/doc/current/http_cache.html#ma", "suffix": "Cache\n{\n /**\n * @internal\n */\n public public(set) readonly array $variables;\n\n public function __construct(\n /**\n * The expiration date as a valid date for the strtotime() function.\n */\n public ?string $expire", "middle": "king-your-responses-http-cacheable\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::TARGET_FUNCTION | \\Attribute::IS_REPEATABLE)]\nfinal class ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/Cache.php", "language": "php", "file_size": 4972, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\QueryParameterValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\n\n/**\n * Can be used to pass a query paramet", "suffix": "\n{\n /**\n * @see https://php.net/manual/filter.constants for filter, flags and options\n *\n * @param string|null $name The name of the query parameter; if null, the name of the argument in the contro", "middle": "er to a controller argument.\n *\n * @author Ruud Kamphuis <ruud@ticketswap.com>\n * @author Ionut Enache <i.ovidiuenache@yahoo.com>\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nfinal class MapQueryParameter extends ValueResolver", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/MapQueryParameter.php", "language": "php", "file_size": 1842, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestHeaderValueResolver;\n\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nfinal class MapRequestHeader extends ValueResolv", "suffix": "ss name of the resolver to use\n * @param int $validationFailedStatusCode The HTTP code to return if the validation fails\n */\n public function __construct(\n public readonly ?string $name = null,\n string $resolver = RequestH", "middle": "er\n{\n /**\n * @param string|null $name The name of the header parameter; if null, the name of the argument in the controller will be used\n * @param class-string $resolver The cla", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/MapRequestHeader.php", "language": "php", "file_size": 1172, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestPayloadValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Compone", "suffix": "aint>|null */\n public Constraint|array|null $constraints = null,\n public ?string $name = null,\n string $resolver = RequestPayloadValueResolver::class,\n public readonly int $validationFailedStatusCode = Response::HTTP_UNPROCESSAB", "middle": "nt\\Validator\\Constraint;\n\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nclass MapUploadedFile extends ValueResolver\n{\n public ArgumentMetadata $metadata;\n\n public function __construct(\n /** @var Constraint|array<Constr", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/MapUploadedFile.php", "language": "php", "file_size": 1067, "cut_index": 515, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\n/**\n * Controller tag to serialize response.\n *\n * @author Konstantin Myakshin <molodchick@gmail.com>\n */\n#[\\Attribute(\\Attribute::TARGET_METHOD)]\nfinal class Serialize\n{\n /**\n * @param int $code The HTTP status code (200 \"OK\" by default)\n * @param array<string, mixed> $headers Extra h", "suffix": "ring, mixed> $context The serialization context passed to the serializer\n */\n public function __construct(\n public readonly int $code = 200,\n public readonly array $headers = [],\n public readonly array $context = [],\n ) {\n ", "middle": "eaders to set on the response\n * @param array<st", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/Serialize.php", "language": "php", "file_size": 919, "cut_index": 606, "middle_length": 52}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\n/**\n * Defines the HTTP status code applied to an exception.\n *\n * @author Dejan Angelov <angelovdejan@protonmail.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS)]\nclass WithHttpStatus\n{\n /**\n * @param int ", "suffix": "de The HTTP status code to use\n * @param array<string, string> $headers The HTTP headers to add to the response\n */\n public function __construct(\n public readonly int $statusCode,\n public readonly array $headers = [],\n ) {\n ", "middle": " $statusCo", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/WithHttpStatus.php", "language": "php", "file_size": 790, "cut_index": 514, "middle_length": 14}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * @author Bart van den Burg <bart@burgov.nl>\n *\n * @final\n */\nclass AjaxDataCollector extends DataCollector\n{\n public function c", "suffix": "able $exception = null): void\n {\n // all collecting is done client side\n }\n\n public function reset(): void\n {\n // all collecting is done client side\n }\n\n public function getName(): string\n {\n return 'ajax';\n }\n}", "middle": "ollect(Request $request, Response $response, ?\\Throw", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/AjaxDataCollector.php", "language": "php", "file_size": 832, "cut_index": 523, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DataCollector;\n\nuse Composer\\InstalledVersions;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Runtime\\RunnerInterface;\nuse Symfony\\Component\\VarDumper\\Caster\\ClassStub;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @fina", "suffix": "l(KernelInterface $kernel): void\n {\n $this->kernel = $kernel;\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n $eom = \\DateTimeImmutable::createFromFormat('d/m/Y', '01/'.K", "middle": "l\n */\nclass ConfigDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n private KernelInterface $kernel;\n\n /**\n * Sets the Kernel associated with this Request.\n */\n public function setKerne", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php", "language": "php", "file_size": 8902, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * This code is partially based on the Rack-Cache library by Ryan Tomayko,\n * which is released under the MIT license.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\HttpCache;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Interface implemented by HTTP cache stores.\n *\n * @", "suffix": "s a cache entry to the store for the given Request and Response.\n *\n * Existing entries are read and any that match the response are removed. This\n * method calls write with the new list of cache entries.\n *\n * @return string The key un", "middle": "author Fabien Potencier <fabien@symfony.com>\n */\ninterface StoreInterface\n{\n /**\n * Locates a cached Response for the Request provided.\n */\n public function lookup(Request $request): ?Response;\n\n /**\n * Write", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/StoreInterface.php", "language": "php", "file_size": 2186, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Exception;\n\nclass ResolverNotFoundException extends \\RuntimeException\n{\n /**\n * @param string[] $alternatives\n */\n public function __construct(string $name, array $alternatives = [])\n {\n $msg = \\sprintf('You have requested a non-existent resolver", "suffix": " if (1 === \\count($alternatives)) {\n $msg .= ' Did you mean this: \"';\n } else {\n $msg .= ' Did you mean one of these: \"';\n }\n $msg .= implode('\", \"', $alternatives).'\"?';\n }\n\n ", "middle": " \"%s\".', $name);\n if ($alternatives) {\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Exception/ResolverNotFoundException.php", "language": "php", "file_size": 892, "cut_index": 547, "middle_length": 52}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Exception;\n\n/**\n * @author Ben Ramsey <ben@benramsey.com>\n */\nclass ServiceUnavailableHttpException extends HttpException\n{\n /**\n * @param int|string|null $retryAfter The number of seconds or HTTP-date after which the request may be retried\n ", "suffix": "$retryAfter = null, string $message = '', ?\\Throwable $previous = null, int $code = 0, array $headers = [])\n {\n if ($retryAfter) {\n $headers['Retry-After'] = $retryAfter;\n }\n\n parent::__construct(503, $message, $previous,", "middle": " */\n public function __construct(int|string|null ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Exception/ServiceUnavailableHttpException.php", "language": "php", "file_size": 864, "cut_index": 529, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Fragment;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Twig\\Environment;\n\n/**\n * Implements the Hinclude rendering strategy.\n *\n * @author Fabien Potencier <fabien@symfony", "suffix": "n __construct(\n private ?Environment $twig = null,\n private ?UriSigner $signer = null,\n private ?string $globalDefaultTemplate = null,\n private string $charset = 'utf-8',\n ) {\n }\n\n /**\n * Checks if a templating engi", "middle": ".com>\n */\nclass HIncludeFragmentRenderer extends RoutableFragmentRenderer\n{\n /**\n * @param string|null $globalDefaultTemplate The global default content (it can be a template name or the content)\n */\n public functio", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php", "language": "php", "file_size": 3134, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\n/**\n * Validates the request signature for specific HTTP methods.\n *\n * This class determines whether a request's signature should be validated\n * based on the configured HTTP methods. If the request method matches one\n * of the specif", "suffix": "antiago San Martin <sanmartindev@gmail.com>\n */\n#[\\Attribute(\\Attribute::IS_REPEATABLE | \\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::TARGET_FUNCTION)]\nfinal class IsSignatureValid\n{\n /** @var string[] */\n public readonly array ", "middle": "ied methods (or if no methods are specified), the signature\n * is checked.\n *\n * If the signature is invalid, a {@see \\Symfony\\Component\\HttpFoundation\\Exception\\SignedUriException}\n * is thrown during validation.\n *\n * @author S", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/IsSignatureValid.php", "language": "php", "file_size": 1432, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\DateTimeValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\n\n/**\n * Controller parameter tag to configure DateTime arguments.\n */\n#[\\Attribute(", "suffix": "ool $disabled Whether this value resolver is disabled; this allows to enable a value resolver globally while disabling it in specific cases\n * @param class-string<ValueResolverInterface>|string $resolver The name ", "middle": "\\Attribute::TARGET_PARAMETER)]\nclass MapDateTime extends ValueResolver\n{\n /**\n * @param string|null $format The DateTime format to use, @see https://php.net/datetime.format\n * @param b", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/MapDateTime.php", "language": "php", "file_size": 1277, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestPayloadValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Co", "suffix": "antin Myakshin <molodchick@gmail.com>\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nclass MapRequestPayload extends ValueResolver\n{\n public ArgumentMetadata $metadata;\n\n /**\n * @param array<string>|string|null ", "middle": "mponent\\Validator\\Constraints\\GroupSequence;\n\n/**\n * Controller parameter tag to map the request content to typed object and validate it.\n *\n * @psalm-import-type GroupResolver from RequestPayloadValueResolver\n *\n * @author Konst", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/MapRequestPayload.php", "language": "php", "file_size": 2498, "cut_index": 563, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Psr\\Log\\LogLevel;\n\n/**\n * Defines the log level applied to an exception.\n *\n * @author Dejan Angelov <angelovdejan@protonmail.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS)]\nfinal class WithLogLevel\n{\n /**\n * @param Log", "suffix": "n\n */\n public function __construct(public readonly string $level)\n {\n if (!\\defined('Psr\\Log\\LogLevel::'.strtoupper($this->level))) {\n throw new \\InvalidArgumentException(\\sprintf('Invalid log level \"%s\".', $this->level));\n ", "middle": "Level::* $level The level to use to log the exceptio", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/WithLogLevel.php", "language": "php", "file_size": 841, "cut_index": 520, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Exception;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass ControllerDoesNotReturnResponseException extends \\LogicException\n{\n public function __construct(string $message, callable $controller, string $file, int $line)\n {\n parent::__construct($message);\n\n ", "suffix": "r = new \\ReflectionProperty(\\Exception::class, 'trace');\n $r->setValue($this, array_merge([\n [\n 'line' => $line,\n 'file' => $file,\n ],\n ], $this->getTrace()));\n }\n\n private function pa", "middle": " if (!$controllerDefinition = $this->parseControllerDefinition($controller)) {\n return;\n }\n\n $this->file = $controllerDefinition['file'];\n $this->line = $controllerDefinition['line'];\n $", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Exception/ControllerDoesNotReturnResponseException.php", "language": "php", "file_size": 2291, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Fragment;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\n\n/**\n * Generates a fragment URI.\n *\n * @author Kévin Dunglas <kevin@dunglas.fr>\n * @author Fabien Potencier <fabien", "suffix": "estStack $requestStack = null,\n ) {\n }\n\n public function generate(ControllerReference $controller, ?Request $request = null, bool $absolute = false, bool $strict = true, bool $sign = true): string\n {\n if (null === $request && (null === $", "middle": "@symfony.com>\n */\nfinal class FragmentUriGenerator implements FragmentUriGeneratorInterface\n{\n public function __construct(\n private string $fragmentPath,\n private ?UriSigner $signer = null,\n private ?Requ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Fragment/FragmentUriGenerator.php", "language": "php", "file_size": 3362, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestPayloadValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Co", "suffix": "author Konstantin Myakshin <molodchick@gmail.com>\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nclass MapQueryString extends ValueResolver\n{\n public ArgumentMetadata $metadata;\n\n /**\n * @param array<string, mixed> ", "middle": "mponent\\Validator\\Constraints\\GroupSequence;\n\n/**\n * Controller parameter tag to map the query string of the request to typed object and validate it.\n *\n * @psalm-import-type GroupResolver from RequestPayloadValueResolver\n *\n * @", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/MapQueryString.php", "language": "php", "file_size": 2128, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\n/**\n * Rate limits the controller.\n *\n * @see https://symfony.com/doc/current/rate_limiter.html\n *\n * @author Ayyoub AFW-ALLAH <ayyoub.afwallah@gmail.com>\n */\n#[\\Attribute(\\Attribute::IS_REPEATA", "suffix": " $limiter The configured limiter name\n * @param string|Expression|\\Closure|null $key A literal string key, an Expression, or a Closure (defaults to client IP + method + path)\n * @param int $tokens The number of tok", "middle": "BLE | \\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::TARGET_FUNCTION)]\nfinal class RateLimit\n{\n /** @var string[] */\n public readonly array $methods;\n\n /**\n * @param string ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/RateLimit.php", "language": "php", "file_size": 1759, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Fragment;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\SurrogateInterface;\n\n/**\n * Implements Surrogate rendering strategy.\n *\n * @a", "suffix": " instance of InlineFragmentRenderer.\n *\n * @param FragmentRendererInterface $inlineStrategy The inline strategy to use when the surrogate is not supported\n */\n public function __construct(\n private ?SurrogateInterface $surrogate,\n ", "middle": "uthor Fabien Potencier <fabien@symfony.com>\n */\nabstract class AbstractSurrogateFragmentRenderer extends RoutableFragmentRenderer\n{\n /**\n * The \"fallback\" strategy when surrogate is not available should always be an\n *", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php", "language": "php", "file_size": 3712, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Fragment;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\SubRequestHandler;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatche", "suffix": "enderer\n{\n public function __construct(\n private HttpKernelInterface $kernel,\n private ?EventDispatcherInterface $dispatcher = null,\n ) {\n }\n\n /**\n * Additional available options:\n *\n * * alt: an alternative URI to re", "middle": "rInterface;\n\n/**\n * Implements the inline rendering strategy where the Request is rendered by the current HTTP kernel.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass InlineFragmentRenderer extends RoutableFragmentR", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php", "language": "php", "file_size": 5288, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Attribute;\n\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\n\n/**\n * Defines which value resolver should be used for a given parameter.\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER | \\Attribute::IS_REPEATABLE)]\nclass ValueResolver\n{\n /**\n * @param class-string<ValueResolverInte", "suffix": "er to use\n * @param bool $disabled Whether this value resolver is disabled; this allows to enable a value resolver globally while disabling it in specific cases\n */\n public function __construct(\n pub", "middle": "rface>|string $resolver The class name of the resolv", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Attribute/ValueResolver.php", "language": "php", "file_size": 967, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\HttpCache;\n\nuse Symfony\\Component\\HttpFoundation\\IpUtils;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\nclass SubRequestHandler\n{\n public static function handle(HttpK", "suffix": "et = Request::getTrustedHeaderSet();\n\n // remove untrusted values\n $remoteAddr = $request->server->get('REMOTE_ADDR');\n if (!$remoteAddr || !IpUtils::checkIp($remoteAddr, $trustedProxies)) {\n $trustedHeaders = [\n ", "middle": "ernelInterface $kernel, Request $request, int $type, bool $catch): Response\n {\n // save global state related to trusted headers and proxies\n $trustedProxies = Request::getTrustedProxies();\n $trustedHeaderS", "meta": {"filepath": "src/Symfony/Component/HttpKernel/HttpCache/SubRequestHandler.php", "language": "php", "file_size": 3924, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Adds configured formats to each request.\n *\n * @autho", "suffix": "dds request formats.\n */\n public function onKernelRequest(RequestEvent $event): void\n {\n $request = $event->getRequest();\n foreach ($this->formats as $format => $mimeTypes) {\n $request->setFormat($format, $mimeTypes);\n ", "middle": "r Gildas Quemener <gildas.quemener@gmail.com>\n *\n * @final\n */\nclass AddRequestFormatsListener implements EventSubscriberInterface\n{\n public function __construct(\n private array $formats,\n ) {\n }\n\n /**\n * A", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/AddRequestFormatsListener.php", "language": "php", "file_size": 1155, "cut_index": 518, "middle_length": 229}} {"prefix": "mponent\\DependencyInjection\\ServicesResetter;\nuse Symfony\\Component\\Filesystem\\Exception\\IOException;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\nuse Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\WarmableInterface;\nuse Symfony\\Component\\HttpKernel\\HttpKernel;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse ", "suffix": "s KernelTest extends TestCase\n{\n protected function tearDown(): void\n {\n try {\n (new Filesystem())->remove(__DIR__.'/Fixtures/var');\n } catch (IOException $e) {\n }\n }\n\n public function testConstructor()\n {\n ", "middle": "Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\KernelWithoutBundles;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\ResettableService;\n\nclas", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/KernelTest.php", "language": "php", "file_size": 30462, "cut_index": 1331, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests;\n\nuse Psr\\Log\\AbstractLogger;\n\nclass Logger extends AbstractLogger\n{\n protected array $logs;\n\n public function __construct()\n {\n $this->clear();\n }\n\n public function getLogsForLevel(string $level): array\n {\n return $this->logs[$level];\n }\n\n public function clea", "suffix": "'emergency' => [],\n 'alert' => [],\n 'critical' => [],\n 'error' => [],\n 'warning' => [],\n 'notice' => [],\n 'info' => [],\n 'debug' => [],\n ];\n }\n\n public function log($", "middle": "r(): void\n {\n $this->logs = [\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Logger.php", "language": "php", "file_size": 990, "cut_index": 582, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface;\nuse Symfony\\Componen", "suffix": "construct()\n {\n parent::__construct(new EventDispatcher(), $this, null, $this);\n }\n\n public function getController(Request $request): callable|false\n {\n return $this->callController(...);\n }\n\n public function getArguments(Re", "middle": "t\\HttpKernel\\Controller\\ControllerResolverInterface;\nuse Symfony\\Component\\HttpKernel\\HttpKernel;\n\nclass TestHttpKernel extends HttpKernel implements ControllerResolverInterface, ArgumentResolverInterface\n{\n public function __", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/TestHttpKernel.php", "language": "php", "file_size": 1277, "cut_index": 524, "middle_length": 229}} {"prefix": "\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\Esi;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache;\n\nclass EsiTest extends TestCase\n{\n public function testHasSurrogateEsiCapability()\n {\n $esi = new Esi();\n\n $request = Request::create('/');\n $request->headers->set('Surrogate-Capability', 'abc=\"ESI/1.0\"');\n $this->assertTrue($esi->hasSurrogateCapability($request));\n\n $request = Request::create('/');\n $request->headers->set('Surrogate-Capability', 'f", "suffix": "eEsiCapability()\n {\n $esi = new Esi();\n\n $request = Request::create('/');\n $esi->addSurrogateCapability($request);\n $this->assertEquals('symfony=\"ESI/1.0\"', $request->headers->get('Surrogate-Capability'));\n\n $esi->addS", "middle": "oobar');\n $this->assertFalse($esi->hasSurrogateCapability($request));\n\n $request = Request::create('/');\n $this->assertFalse($esi->hasSurrogateCapability($request));\n }\n\n public function testAddSurrogat", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php", "language": "php", "file_size": 9920, "cut_index": 921, "middle_length": 229}} {"prefix": "als(2, $this->response->headers->get('Age'));\n $this->cache->terminate($this->request, $this->response);\n\n $this->assertCount(1, $terminateEvents);\n }\n\n #[DataProvider('provideTerminateBackendRequestCases')]\n public function testTerminateUsesBackendRequestOnCacheMiss(string $method, string $expectedMethod)\n {\n $terminateEvents = [];\n\n $eventDispatcher = $this->createStub(EventDispatcher::class);\n $eventDispatcher\n ->method('dispatch')\n ->w", "suffix": " });\n\n $this->setNextResponse(\n 200,\n ['Cache-Control' => 'public, s-maxage=60'],\n 'Hello World',\n static function (Request $request): void {\n $request->attributes->set('terminate_attr", "middle": "illReturnCallback(static function ($event) use (&$terminateEvents) {\n if ($event instanceof TerminateEvent) {\n $terminateEvents[] = $event;\n }\n\n return $event;\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php", "language": "php", "file_size": 92777, "cut_index": 3790, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\HttpCache;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\Esi;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\Store;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nabstract class HttpCacheTestCase extends TestCase\n{\n protected $kernel;\n pr", "suffix": "ected function setUp(): void\n {\n $this->kernel = null;\n\n $this->cache = null;\n $this->esi = null;\n $this->caches = [];\n $this->cacheConfig = [];\n\n $this->request = null;\n $this->response = null;\n $", "middle": "otected $cache;\n protected $caches;\n protected $cacheConfig;\n protected $request;\n protected $response;\n protected $responses;\n protected $catch;\n protected $esi;\n protected ?Store $store = null;\n\n prot", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTestCase.php", "language": "php", "file_size": 5547, "cut_index": 716, "middle_length": 229}} {"prefix": "response2 = new Response();\n $response2->setSharedMaxAge(3600);\n $cacheStrategy->add($response2);\n\n $response = new Response();\n $response->setSharedMaxAge(86400);\n $cacheStrategy->update($response);\n\n $this->assertSame('60', $response->headers->getCacheControlDirective('s-maxage'));\n }\n\n public function testSharedMaxAgeNotSetIfNotSetInAnyEmbeddedRequest()\n {\n $cacheStrategy = new ResponseCacheStrategy();\n\n $response1 = new Response();\n ", "suffix": "00);\n $cacheStrategy->update($response);\n\n $this->assertFalse($response->headers->hasCacheControlDirective('s-maxage'));\n }\n\n public function testSharedMaxAgeNotSetIfNotSetInMainRequest()\n {\n $cacheStrategy = new ResponseCache", "middle": " $response1->setSharedMaxAge(60);\n $cacheStrategy->add($response1);\n\n $response2 = new Response();\n $cacheStrategy->add($response2);\n\n $response = new Response();\n $response->setSharedMaxAge(864", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpCache/ResponseCacheStrategyTest.php", "language": "php", "file_size": 21860, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\HttpCache;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\Ssi;\n\nclass SsiTest extends TestCase\n{\n public function testHasSurrogateSsiCapability()\n {\n $ssi = new Ssi();\n\n $request = Request::create('/');\n $request->headers->set('Su", "suffix": "assertFalse($ssi->hasSurrogateCapability($request));\n\n $request = Request::create('/');\n $this->assertFalse($ssi->hasSurrogateCapability($request));\n }\n\n public function testAddSurrogateSsiCapability()\n {\n $ssi = new Ssi();\n\n ", "middle": "rrogate-Capability', 'abc=\"SSI/1.0\"');\n $this->assertTrue($ssi->hasSurrogateCapability($request));\n\n $request = Request::create('/');\n $request->headers->set('Surrogate-Capability', 'foobar');\n $this->", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpCache/SsiTest.php", "language": "php", "file_size": 7518, "cut_index": 716, "middle_length": 229}} {"prefix": "estCase::clearDirectory(sys_get_temp_dir().'/http_cache');\n\n $this->store = new Store(sys_get_temp_dir().'/http_cache');\n }\n\n protected function tearDown(): void\n {\n HttpCacheTestCase::clearDirectory(sys_get_temp_dir().'/http_cache');\n }\n\n public function testReadsAnEmptyArrayWithReadWhenNothingCachedAtKey()\n {\n $this->assertSame([], $this->getStoreMetadata('/nothing'));\n }\n\n public function testUnlockFileThatDoesExist()\n {\n $this->storeSimpleEntry();\n ", "suffix": ">request));\n }\n\n public function testRemovesEntriesForKeyWithPurge()\n {\n $request = Request::create('/foo');\n $this->store->write($request, new Response('foo'));\n\n $metadata = $this->getStoreMetadata($request);\n $this->", "middle": " $this->store->lock($this->request);\n\n $this->assertTrue($this->store->unlock($this->request));\n }\n\n public function testUnlockFileThatDoesNotExist()\n {\n $this->assertFalse($this->store->unlock($this-", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php", "language": "php", "file_size": 24321, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\HttpCache;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\SubRequestHandler;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nclass SubRequestHandlerTest extends TestCase\n{\n private static array $globalState;\n\n protected function setUp(): void\n {\n self::$globalState = $this->getGlobalStat", "suffix": "roxies(['10.0.0.1'], -1);\n $globalState = $this->getGlobalState();\n\n $request = Request::create('/');\n $request->server->set('REMOTE_ADDR', '10.0.0.1');\n $request->headers->set('X-Forwarded-For', '10.0.0.2');\n $request->h", "middle": "e();\n }\n\n protected function tearDown(): void\n {\n Request::setTrustedProxies(self::$globalState[0], self::$globalState[1]);\n }\n\n public function testTrustedHeadersAreKept()\n {\n Request::setTrustedP", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpCache/SubRequestHandlerTest.php", "language": "php", "file_size": 6220, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\HttpCache;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface;\nuse Symfony\\Component\\HttpK", "suffix": "d int $status;\n protected array $headers;\n protected bool $called = false;\n protected ?\\Closure $customizer;\n protected bool $catch = false;\n protected array $backendRequest;\n\n public function __construct($body, $status, $headers, ?\\Closu", "middle": "ernel\\HttpKernel;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nclass TestHttpKernel extends HttpKernel implements ControllerResolverInterface, ArgumentResolverInterface\n{\n protected ?string $body = null;\n protecte", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpCache/TestHttpKernel.php", "language": "php", "file_size": 3110, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\HttpCache;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Controller\\Contr", "suffix": "nterface\n{\n protected array $bodies = [];\n protected array $statuses = [];\n protected array $headers = [];\n protected bool $called = false;\n protected Request $backendRequest;\n\n public function __construct($responses)\n {\n foreac", "middle": "ollerResolverInterface;\nuse Symfony\\Component\\HttpKernel\\HttpKernel;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nclass TestMultipleHttpKernel extends HttpKernel implements ControllerResolverInterface, ArgumentResolverI", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpCache/TestMultipleHttpKernel.php", "language": "php", "file_size": 2329, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\n\nclass HttpExceptionTest extends TestCase\n{\n public static function headerDataProvider()\n {\n return [\n [['X", "suffix": "blic function testHeadersDefault()\n {\n $exception = $this->createException();\n $this->assertSame([], $exception->getHeaders());\n }\n\n #[DataProvider('headerDataProvider')]\n public function testHeadersConstructor($headers)\n {\n ", "middle": "-Test' => 'Test']],\n [['X-Test' => 1]],\n [\n [\n ['X-Test' => 'Test'],\n ['X-Test-2' => 'Test-2'],\n ],\n ],\n ];\n }\n\n pu", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Exception/HttpExceptionTest.php", "language": "php", "file_size": 2642, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException;\n\nclass MethodNotAllowedHttpExceptionTest extends HttpExceptionT", "suffix": " testWithHeaderConstruct()\n {\n $headers = [\n 'Cache-Control' => 'public, s-maxage=1200',\n ];\n\n $exception = new MethodNotAllowedHttpException(['get'], '', null, 0, $headers);\n\n $headers['Allow'] = 'GET';\n\n $", "middle": "est\n{\n public function testHeadersDefault()\n {\n $exception = new MethodNotAllowedHttpException(['GET', 'PUT']);\n $this->assertSame(['Allow' => 'GET, PUT'], $exception->getHeaders());\n }\n\n public function", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Exception/MethodNotAllowedHttpExceptionTest.php", "language": "php", "file_size": 1609, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\ServiceUnavailableHttpException;\n\nclass ServiceUnavailableHttpExceptionTest extends HttpExcept", "suffix": "on testWithHeaderConstruct()\n {\n $headers = [\n 'Cache-Control' => 'public, s-maxage=1337',\n ];\n\n $exception = new ServiceUnavailableHttpException(1337, '', null, 0, $headers);\n\n $headers['Retry-After'] = 1337;\n\n ", "middle": "ionTest\n{\n public function testHeadersDefaultRetryAfter()\n {\n $exception = new ServiceUnavailableHttpException(10);\n $this->assertSame(['Retry-After' => 10], $exception->getHeaders());\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Exception/ServiceUnavailableHttpExceptionTest.php", "language": "php", "file_size": 1611, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfon", "suffix": "\\Component\\Routing\\Exception\\MethodNotAllowedException;\nuse Symfony\\Component\\Routing\\Exception\\NoConfigurationException;\nuse Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException;\nuse Symfony\\Component\\Routing\\Matcher\\RequestMatcherInterface;\nuse ", "middle": "y\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/RouterListener.php", "language": "php", "file_size": 7643, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\TooManyRequestsHttpException;\n\nclass TooManyRequestsHttpExceptionTest extends HttpExceptionTes", "suffix": "thHeaderConstruct()\n {\n $headers = [\n 'Cache-Control' => 'public, s-maxage=69',\n ];\n\n $exception = new TooManyRequestsHttpException(69, '', null, 0, $headers);\n\n $headers['Retry-After'] = 69;\n\n $this->assert", "middle": "t\n{\n public function testHeadersDefaultRertyAfter()\n {\n $exception = new TooManyRequestsHttpException(10);\n $this->assertSame(['Retry-After' => 10], $exception->getHeaders());\n }\n\n public function testWi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Exception/TooManyRequestsHttpExceptionTest.php", "language": "php", "file_size": 1587, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\UnauthorizedHttpException;\n\nclass UnauthorizedHttpExceptionTest extends HttpExceptionTest\n{\n ", "suffix": "stWithHeaderConstruct()\n {\n $headers = [\n 'Cache-Control' => 'public, s-maxage=1200',\n ];\n\n $exception = new UnauthorizedHttpException('Challenge', '', null, 0, $headers);\n\n $headers['WWW-Authenticate'] = 'Challeng", "middle": " public function testHeadersDefault()\n {\n $exception = new UnauthorizedHttpException('Challenge');\n $this->assertSame(['WWW-Authenticate' => 'Challenge'], $exception->getHeaders());\n }\n\n public function te", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Exception/UnauthorizedHttpExceptionTest.php", "language": "php", "file_size": 1623, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKernel\\HttpKernelBrowser;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\MockableUp", "suffix": "rnelBrowser(new TestHttpKernel());\n\n $client->request('GET', '/');\n $this->assertEquals('Request: /', $client->getResponse()->getContent(), '->doRequest() uses the request handler to make the request');\n $this->assertInstanceOf(\\Symfon", "middle": "loadFileWithClientSize;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\TestClient;\n\n#[Group('time-sensitive')]\nclass HttpKernelBrowserTest extends TestCase\n{\n public function testDoRequest()\n {\n $client = new HttpKe", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpKernelBrowserTest.php", "language": "php", "file_size": 8375, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\", "suffix": "face\n{\n public function resolve(Request $request, ArgumentMetadata $argument): array\n {\n if ($request->attributes->has($argument->getName())) {\n return [];\n }\n\n if (Request::class === $argument->getType() || is_subclas", "middle": "Exception\\NearMissValueResolverException;\n\n/**\n * Yields the same instance as the request object passed along.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nfinal class RequestValueResolver implements ValueResolverInter", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/RequestValueResolver.php", "language": "php", "file_size": 1417, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\C", "suffix": "l class ServiceValueResolver implements ValueResolverInterface\n{\n public function __construct(\n private ContainerInterface $container,\n ) {\n }\n\n public function resolve(Request $request, ArgumentMetadata $argument): array\n {\n $", "middle": "ontrollerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\NearMissValueResolverException;\n\n/**\n * Yields a service keyed by _controller and argument name.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfina", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/ServiceValueResolver.php", "language": "php", "file_size": 2520, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\", "suffix": " if ($argument->isVariadic()\n || !\\is_string($value = $request->attributes->get($argument->getName()))\n || null === ($uidClass = $argument->getType())\n || !is_subclass_of($uidClass, AbstractUid::class, true)\n ) {\n", "middle": "Exception\\NotFoundHttpException;\nuse Symfony\\Component\\Uid\\AbstractUid;\n\nfinal class UidValueResolver implements ValueResolverInterface\n{\n public function resolve(Request $request, ArgumentMetadata $argument): array\n {\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/UidValueResolver.php", "language": "php", "file_size": 1303, "cut_index": 524, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\CacheWarmer;\n\n/**\n * Abstract cache warmer that knows how to write a file to the cache.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nabstract class CacheWarmer implements CacheWarmerInterface\n{\n protected function writeCacheFile(string $file, $content): vo", "suffix": ", basename($file));\n if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $file)) {\n @chmod($file, 0o666 & ~umask());\n\n return;\n }\n\n throw new \\RuntimeException(\\sprintf('Failed to write cache", "middle": "id\n {\n $tmpFile = @tempnam(\\dirname($file)", "meta": {"filepath": "src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmer.php", "language": "php", "file_size": 886, "cut_index": 547, "middle_length": 52}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\CacheWarmer;\n\n/**\n * Interface for classes that support warming their cache.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface WarmableInterface\n{\n /**\n * Warms up the cache.\n *\n * @param string $cacheDir", "suffix": "ram string|null $buildDir Where read-only artifacts should go; null when called after compile-time\n *\n * @return string[] A list of classes or files to preload\n */\n public function warmUp(string $cacheDir, ?string $buildDir = null): array;\n}", "middle": " Where warm-up artifacts should be stored\n * @pa", "meta": {"filepath": "src/Symfony/Component/HttpKernel/CacheWarmer/WarmableInterface.php", "language": "php", "file_size": 826, "cut_index": 517, "middle_length": 52}} {"prefix": "mponent\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionUtils;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\UnexpectedSessionUsageException;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Sets the session onto", "suffix": "that case.\n * If you have a scenario where caching responses with session information in\n * them makes sense, you can disable this behaviour by setting the header\n * AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER on the response.\n *\n * @author Johan", "middle": " the request on the \"kernel.request\" event and saves\n * it on the \"kernel.response\" event.\n *\n * In addition, if the session has been started it overrides the Cache-Control\n * header in such a way that all caching is disabled in ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php", "language": "php", "file_size": 12458, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\nuse Symfon", "suffix": "lerAttributeEvent::class);\nclass_exists(ExpressionLanguage::class);\n\n/**\n * Dispatches events for controller attributes.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ControllerAttributesListener implements EventSubscriberInterface\n{\n /**\n ", "middle": "y\\Component\\HttpKernel\\Event\\KernelEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(Control", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/ControllerAttributesListener.php", "language": "php", "file_size": 4799, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Ensures that the application is not indexed by se", "suffix": "eEvent $event): void\n {\n if (!$event->getResponse()->headers->has(static::HEADER_NAME)) {\n $event->getResponse()->headers->set(static::HEADER_NAME, 'noindex');\n }\n }\n\n public static function getSubscribedEvents(): array\n ", "middle": "arch engines.\n *\n * @author Gary PEGEOT <garypegeot@gmail.com>\n */\nclass DisallowRobotsIndexingListener implements EventSubscriberInterface\n{\n private const HEADER_NAME = 'X-Robots-Tag';\n\n public function onResponse(Respons", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/DisallowRobotsIndexingListener.php", "language": "php", "file_size": 1100, "cut_index": 515, "middle_length": 229}} {"prefix": "onent\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\WithHttpStatus;\nuse Symfony\\Component\\HttpKernel\\Attribute\\WithLogLevel;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Sym", "suffix": "* @author Fabien Potencier <fabien@symfony.com>\n */\nclass ErrorListener implements EventSubscriberInterface\n{\n /**\n * @param array<class-string, array{log_level: string|null, status_code: int<100,599>|null, log_channel: string|null}> $exceptionsMapp", "middle": "fony\\Component\\HttpKernel\\Exception\\HttpExceptionInterface;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\HttpKernel\\Log\\DebugLoggerConfigurator;\n\n/**\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php", "language": "php", "file_size": 9763, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttp", "suffix": "ows an AccessDeniedHttpException exception if the request\n * is not signed or if it is not an internal sub-request.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass FragmentListener implements EventSubscriberInterface\n{\n /**\n ", "middle": "Exception;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Handles content fragments represented by special URIs.\n *\n * All URL paths starting with /_fragment are handled as\n * content fragments by this listener.\n *\n * Thr", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php", "language": "php", "file_size": 2894, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\KernelEvent", "suffix": "@author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass LocaleListener implements EventSubscriberInterface\n{\n public function __construct(\n private RequestStack $requestStack,\n private string $defaultLocale = 'en',\n pri", "middle": ";\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Routing\\RequestContextAwareInterface;\n\n/**\n * Initializes the locale based on the current request.\n *\n * ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php", "language": "php", "file_size": 3000, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Attribute\\RateLimit;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\TooManyRequestsHttpException;\nuse Symfony\\Co", "suffix": "AFW-ALLAH <ayyoub.afwallah@gmail.com>\n */\nfinal class RateLimitAttributeListener implements EventSubscriberInterface\n{\n /**\n * @param ServiceProviderInterface<RateLimiterFactoryInterface> $limiters\n */\n public function __construct(\n pr", "middle": "mponent\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactoryInterface;\nuse Symfony\\Contracts\\Service\\ServiceProviderInterface;\n\n/**\n * Handles the RateLimit attribute on controllers.\n *\n * @author Ayyoub ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/RateLimitAttributeListener.php", "language": "php", "file_size": 2716, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * ResponseListener fixes the Response headers based on the Request.\n *\n *", "suffix": "geHeader = false,\n ) {\n }\n\n /**\n * Filters the Response.\n */\n public function onKernelResponse(ResponseEvent $event): void\n {\n if (!$event->isMainRequest()) {\n return;\n }\n\n $response = $event->getRespo", "middle": " @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass ResponseListener implements EventSubscriberInterface\n{\n public function __construct(\n private string $charset,\n private bool $addContentLangua", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/ResponseListener.php", "language": "php", "file_size": 1752, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\n\n/**\n * Sets the session in the request.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass Ses", "suffix": "struct($container, $debug, $sessionOptions);\n }\n\n protected function getSession(): ?SessionInterface\n {\n if ($this->container->has('session_factory')) {\n return $this->container->get('session_factory')->createSession();\n }", "middle": "sionListener extends AbstractSessionListener\n{\n public function __construct(\n private ?ContainerInterface $container = null,\n bool $debug = false,\n array $sessionOptions = [],\n ) {\n parent::__con", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/SessionListener.php", "language": "php", "file_size": 1029, "cut_index": 513, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Validates Requests.\n *\n * @author Magnus Nordlander <", "suffix": " (!$event->isMainRequest()) {\n return;\n }\n $request = $event->getRequest();\n\n if ($request::getTrustedProxies()) {\n $request->getClientIps();\n }\n\n $request->getHost();\n }\n\n public static functi", "middle": "magnus@fervo.se>\n *\n * @final\n */\nclass ValidateRequestListener implements EventSubscriberInterface\n{\n /**\n * Performs the validation.\n */\n public function onKernelRequest(RequestEvent $event): void\n {\n if", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/ValidateRequestListener.php", "language": "php", "file_size": 1173, "cut_index": 518, "middle_length": 229}} {"prefix": "\\Component\\HttpKernel\\Controller\\ControllerResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\ControllerDoesNotReturnResponseException;\nuse Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel", "suffix": " * Catch exceptions: true\n * Throwable type: RuntimeException\n * Listener: false.\n */\n public function testHandleWhenControllerThrowsAnExceptionAndCatchIsTrue()\n {\n $this->expectException(\\RuntimeException::class);\n $kernel", "middle": "\\HttpKernel;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Bar;\n\nclass HttpKernelTest extends TestCase\n{\n /**\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php", "language": "php", "file_size": 23634, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\Stopw", "suffix": "(\n private ValueResolverInterface $inner,\n private Stopwatch $stopwatch,\n ) {\n }\n\n public function resolve(Request $request, ArgumentMetadata $argument): iterable\n {\n $method = $this->inner::class.'::'.__FUNCTION__;\n ", "middle": "atch\\Stopwatch;\n\n/**\n * Provides timing information via the stopwatch.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nfinal class TraceableValueResolver implements ValueResolverInterface\n{\n public function __construct", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/TraceableValueResolver.php", "language": "php", "file_size": 1190, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\CacheWarmer;\n\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * Aggregates several cache warmers into a single one.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass CacheWarmerAggregate implements CacheWarmerInterface\n{\n private bool $optionalsEnabled = false;\n private bool $onlyOptionalsEnabled ", "suffix": "tionLogsFilepath = null,\n ) {\n }\n\n public function enableOptionalWarmers(): void\n {\n $this->optionalsEnabled = true;\n }\n\n public function enableOnlyOptionalWarmers(): void\n {\n $this->onlyOptionalsEnabled = $this->optional", "middle": "= false;\n\n /**\n * @param iterable<mixed, CacheWarmerInterface> $warmers\n */\n public function __construct(\n private iterable $warmers = [],\n private bool $debug = false,\n private ?string $depreca", "meta": {"filepath": "src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php", "language": "php", "file_size": 4541, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\SurrogateInterface;\nuse Symfo", "suffix": "SurrogateListener implements EventSubscriberInterface\n{\n public function __construct(\n private ?SurrogateInterface $surrogate = null,\n ) {\n }\n\n /**\n * Filters the Response.\n */\n public function onKernelResponse(ResponseEvent $", "middle": "ny\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * SurrogateListener adds a Surrogate-Control HTTP header when the Response needs to be parsed for Surrogates.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/SurrogateListener.php", "language": "php", "file_size": 1751, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\HttpClientKernel;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nclass HttpClient", "suffix": "$response = $this->createStub(ResponseInterface::class);\n $response->method('getStatusCode')->willReturn(200);\n\n $client = $this->createMock(HttpClientInterface::class);\n $client\n ->expects($this->once())\n ->metho", "middle": "KernelTest extends TestCase\n{\n public function testHandlePassesMaxRedirectsHttpClientOption()\n {\n $request = new Request();\n $request->attributes->set('http_client_options', ['max_redirects' => 50]);\n\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/HttpClientKernelTest.php", "language": "php", "file_size": 1558, "cut_index": 537, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\HeaderBag;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Attribute\\Cache;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Handles HTTP cache h", "suffix": "guage $expressionLanguage = null,\n ) {\n }\n\n public function onKernelControllerAttribute(ControllerAttributeEvent $event): void\n {\n $cache = $event->attribute;\n $kernelEvent = $event->kernelEvent;\n $request = $event->kernelE", "middle": "eaders configured via the Cache attribute.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass CacheAttributeListener implements EventSubscriberInterface\n{\n public function __construct(\n private ?ExpressionLan", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/CacheAttributeListener.php", "language": "php", "file_size": 11044, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleCommandEvent;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface;\nuse Symfony\\Component\\VarDumper\\Dumper\\DataDumpe", "suffix": "criberInterface\n{\n /**\n * @param ?DataDumperInterface $profilerDumper The dumper to use when CLI profiling is enabled.\n * If null, the default $dumper will be used instead.\n */\n public function ", "middle": "rInterface;\nuse Symfony\\Component\\VarDumper\\Server\\Connection;\nuse Symfony\\Component\\VarDumper\\VarDumper;\n\n/**\n * Configures dump() handler.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass DumpListener implements EventSubs", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/DumpListener.php", "language": "php", "file_size": 2311, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEven", "suffix": "terface\n{\n /**\n * @param iterable<mixed, LocaleAwareInterface> $localeAwareServices\n */\n public function __construct(\n private iterable $localeAwareServices,\n private RequestStack $requestStack,\n ) {\n }\n\n public functio", "middle": "ts;\nuse Symfony\\Contracts\\Translation\\LocaleAwareInterface;\n\n/**\n * Pass the current locale to the provided services.\n *\n * @author Pierre Bobiet <pierrebobiet@gmail.com>\n */\nclass LocaleAwareListener implements EventSubscriberIn", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/LocaleAwareListener.php", "language": "php", "file_size": 2296, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\Even", "suffix": "t by listening to the kernel events.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass ProfilerListener implements EventSubscriberInterface\n{\n private ?\\Throwable $exception = null;\n /** @var \\SplObjectStorage<Request, Profil", "middle": "t\\TerminateEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profile;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\n\n/**\n * ProfilerListener collects data for the current reques", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php", "language": "php", "file_size": 5175, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fragment;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentHandler;\nuse Symfony\\Component\\HttpK", "suffix": " $this->requestStack->push(Request::create('/'));\n }\n\n public function testRenderWhenRendererDoesNotExist()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $handler = new FragmentHandler($this->requestStack);\n $", "middle": "ernel\\Fragment\\FragmentRendererInterface;\n\nclass FragmentHandlerTest extends TestCase\n{\n private RequestStack $requestStack;\n\n protected function setUp(): void\n {\n $this->requestStack = new RequestStack();\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php", "language": "php", "file_size": 3717, "cut_index": 614, "middle_length": 229}} {"prefix": "Dispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Fragment\\InlineFragmentRenderer;\nuse Symfony\\Component\\Http", "suffix": "entRendererTest extends TestCase\n{\n public function testRender()\n {\n $strategy = new InlineFragmentRenderer($this->getKernel(new Response('foo')));\n\n $this->assertEquals('foo', $strategy->render('/', Request::create('/'))->getContent())", "middle": "Kernel\\HttpKernel;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n#[Group('time-sensitive')]\nclass InlineFragm", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php", "language": "php", "file_size": 13573, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fragment;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Fragment\\RoutableFragmentRenderer;\n\nclass RoutableFragmentRendererTest extends TestCase\n{\n #[D", "suffix": " #[DataProvider('getGenerateFragmentUriData')]\n public function testGenerateAbsoluteFragmentUri($uri, $controller)\n {\n $this->assertEquals('http://localhost'.$uri, $this->callGenerateFragmentUriMethod($controller, Request::create('/'), true))", "middle": "ataProvider('getGenerateFragmentUriData')]\n public function testGenerateFragmentUri($uri, $controller)\n {\n $this->assertEquals($uri, $this->callGenerateFragmentUriMethod($controller, Request::create('/')));\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php", "language": "php", "file_size": 3756, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpKernel\\Attribute\\RateLimit;\n\nclass RateLimitTest extends TestCase\n{\n public function testDefaults()\n {\n $rl = new RateLimit('api');\n\n $this-", "suffix": "his->expectException(\\InvalidArgumentException::class);\n new RateLimit('api', tokens: 0);\n }\n\n public function testMethodsAreNormalized()\n {\n $rl = new RateLimit('api', methods: ['get', 'post']);\n $this->assertSame(['GET', 'PO", "middle": ">assertSame('api', $rl->limiter);\n $this->assertNull($rl->key);\n $this->assertSame(1, $rl->tokens);\n $this->assertSame([], $rl->methods);\n }\n\n public function testTokensMustBePositive()\n {\n $t", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Attribute/RateLimitTest.php", "language": "php", "file_size": 1035, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DataCollector;\n\nuse Composer\\InstalledVersions;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\ConfigDataCollector;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\nclass ConfigDataCollectorTest extends TestCase\n{\n public function testCollect()\n {\n ", "suffix": "s->assertTrue($c->isDebug());\n $this->assertSame('config', $c->getName());\n $this->assertMatchesRegularExpression('~^'.preg_quote($c->getPhpVersion(), '~').'~', \\PHP_VERSION);\n $this->assertMatchesRegularExpression('~'.preg_quote((stri", "middle": "$kernel = new KernelForTest('test', true);\n $c = new ConfigDataCollector();\n $c->setKernel($kernel);\n $c->collect(new Request(), new Response());\n\n $this->assertSame('test', $c->getEnv());\n $thi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DataCollector/ConfigDataCollectorTest.php", "language": "php", "file_size": 5100, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\Exc", "suffix": "eption::createWithDataRepresentation($e);\n $trace = $flattened->getTrace();\n\n $this->assertFalse($c->hasException());\n\n $c->collect(new Request(), new Response(), $e);\n\n $this->assertTrue($c->hasException());\n $this->asse", "middle": "eptionDataCollector;\n\nclass ExceptionDataCollectorTest extends TestCase\n{\n public function testCollect()\n {\n $e = new \\Exception('foo', 500);\n $c = new ExceptionDataCollector();\n $flattened = FlattenExc", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DataCollector/ExceptionDataCollectorTest.php", "language": "php", "file_size": 1973, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\MemoryDataCollector", "suffix": "collector->getMemory());\n $this->assertIsInt($collector->getMemoryLimit());\n $this->assertSame('memory', $collector->getName());\n }\n\n #[DataProvider('getBytesConversionTestData')]\n public function testBytesConversion($limit, $bytes)\n", "middle": ";\n\nclass MemoryDataCollectorTest extends TestCase\n{\n public function testCollect()\n {\n $collector = new MemoryDataCollector();\n $collector->collect(new Request(), new Response());\n\n $this->assertIsInt($", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DataCollector/MemoryDataCollectorTest.php", "language": "php", "file_size": 1802, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\C", "suffix": "uest, ArgumentMetadata $argument): array\n {\n if (!$request->hasSession()) {\n return [];\n }\n\n $type = $argument->getType();\n if (SessionInterface::class !== $type && !is_subclass_of($type, SessionInterface::class)) ", "middle": "ontrollerMetadata\\ArgumentMetadata;\n\n/**\n * Yields the Session.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nfinal class SessionValueResolver implements ValueResolverInterface\n{\n public function resolve(Request $req", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/SessionValueResolver.php", "language": "php", "file_size": 1232, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\n\n/**\n * Yields a variadic argumen", "suffix": "$argument): array\n {\n if (!$argument->isVariadic() || !$request->attributes->has($argument->getName())) {\n return [];\n }\n\n $values = $request->attributes->get($argument->getName());\n\n if (!\\is_array($values)) {\n ", "middle": "t's values from the request attributes.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nfinal class VariadicValueResolver implements ValueResolverInterface\n{\n public function resolve(Request $request, ArgumentMetadata ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/VariadicValueResolver.php", "language": "php", "file_size": 1281, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Attribute\\Serialize;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeE", "suffix": "portedFormatException;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\n\n/**\n * @author Konstantin Myakshin <molodchick@gmail.com>\n */\nfinal class SerializeControllerResultAttributeListener implements EventSubscriberInterface\n{\n public function __c", "middle": "vent;\nuse Symfony\\Component\\HttpKernel\\Event\\ViewEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\UnsupportedMediaTypeHttpException;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Serializer\\Exception\\Unsup", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/SerializeControllerResultAttributeListener.php", "language": "php", "file_size": 2974, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fragment;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Fragment\\EsiFragmentRenderer;\nuse Symfony\\Component\\HttpKernel\\Fragment\\InlineFragmentRenderer;\n", "suffix": "(), $this->getInlineStrategy(true));\n $strategy->render('/', Request::create('/'));\n }\n\n public function testRenderFallbackWithScalar()\n {\n $strategy = new EsiFragmentRenderer(new Esi(), $this->getInlineStrategy(true), new UriSigner(", "middle": "use Symfony\\Component\\HttpKernel\\HttpCache\\Esi;\n\nclass EsiFragmentRendererTest extends TestCase\n{\n public function testRenderFallbackToInlineStrategyIfEsiNotSupported()\n {\n $strategy = new EsiFragmentRenderer(new Esi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fragment/EsiFragmentRendererTest.php", "language": "php", "file_size": 5071, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LogLevel;\nuse Symfony\\Component\\HttpKernel\\Attribute\\WithLogLevel;\n\n/**\n * @author Dejan Angelov <angelovdejan@protonmail.com>\n */\nclass WithLogLevelTest extends TestCase\n{\n public function testWithValidLogLevel()\n {\n $logLevel = ", "suffix": "evel($logLevel);\n\n $this->assertSame($logLevel, $attribute->level);\n }\n\n public function testWithInvalidLogLevel()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('Invalid log level", "middle": "LogLevel::NOTICE;\n\n $attribute = new WithLogL", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Attribute/WithLogLevelTest.php", "language": "php", "file_size": 951, "cut_index": 582, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DumpDataCollector;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper;\nuse Symfony\\", "suffix": "a->withContext(['label' => 'foo']);\n\n $collector = new DumpDataCollector(null, new FileLinkFormatter([]));\n\n $this->assertSame('dump', $collector->getName());\n\n $collector->dump($data);\n $line = __LINE__ - 1;\n $this->asse", "middle": "Component\\VarDumper\\Server\\Connection;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass DumpDataCollectorTest extends TestCase\n{\n public function testDump()\n {\n $data = new Data([[123]]);\n $data = $dat", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php", "language": "php", "file_size": 7409, "cut_index": 716, "middle_length": 229}} {"prefix": "Session\\SessionInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Compone", "suffix": " testCollect()\n {\n $c = new RequestDataCollector();\n\n $c->collect($request = $this->createRequest(), $this->createResponse());\n $c->lateCollect();\n\n $attributes = $c->getRequestAttributes();\n\n $this->assertSame('reques", "middle": "nt\\HttpKernel\\HttpKernel;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\DataCollector\\DummyController;\n\nclass RequestDataCollectorTest extends TestCase\n{\n public function", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php", "language": "php", "file_size": 20791, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Attribute\\IsSignatureValid;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAr", "suffix": "om>\n */\nclass IsSignatureValidAttributeListener implements EventSubscriberInterface\n{\n public function __construct(\n private readonly UriSigner $uriSigner,\n ) {\n }\n\n public function onKernelControllerAttribute(ControllerAttributeEvent $e", "middle": "gumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Handles the IsSignatureValid attribute.\n *\n * @author Santiago San Martin <sanmartindev@gmail.c", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/IsSignatureValidAttributeListener.php", "language": "php", "file_size": 2419, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fragment;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Fragment\\InlineFragmentRenderer;\nuse Symfony\\Component\\HttpKernel\\Fragment\\SsiFragmentRenderer;\n", "suffix": "(), $this->getInlineStrategy(true));\n $strategy->render('/', Request::create('/'));\n }\n\n public function testRender()\n {\n $strategy = new SsiFragmentRenderer(new Ssi(), $this->getInlineStrategy());\n\n $request = Request::create", "middle": "use Symfony\\Component\\HttpKernel\\HttpCache\\Ssi;\n\nclass SsiFragmentRendererTest extends TestCase\n{\n public function testRenderFallbackToInlineStrategyIfSsiNotSupported()\n {\n $strategy = new SsiFragmentRenderer(new Ssi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fragment/SsiFragmentRendererTest.php", "language": "php", "file_size": 4415, "cut_index": 614, "middle_length": 229}} {"prefix": "ler\\Exception\\SilencedErrorContext;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LoggerDataCollector;\nuse Symfony\\Component\\HttpKernel\\Log\\DebugLoggerInterface;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\n\nclass LoggerDataCollectorTest extends TestCase\n{\n public function testCollectWithUnexpectedFormat()\n {\n $logger = $this\n ->getMockBuild", "suffix": "is->exactly(2))->method('getLogs')->willReturn([]);\n\n $c = new LoggerDataCollector($logger, __DIR__.'/');\n $c->lateCollect();\n $compilerLogs = $c->getCompilerLogs()->getValue(true);\n\n $this->assertSame([\n ['message' =", "middle": "er(DebugLoggerInterface::class)\n ->onlyMethods(['countErrors', 'getLogs', 'clear'])\n ->getMock();\n $logger->expects($this->once())->method('countErrors')->willReturn(123);\n $logger->expects($th", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php", "language": "php", "file_size": 10623, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fragment;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Fragment\\HIncludeFragmentRenderer;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\n\nclass HIn", "suffix": " $strategy->render(new ControllerReference('main_controller', [], []), Request::create('/'));\n }\n\n public function testRenderWithControllerAndSigner()\n {\n $strategy = new HIncludeFragmentRenderer(null, new UriSigner('foo'));\n\n $t", "middle": "cludeFragmentRendererTest extends TestCase\n{\n public function testRenderExceptionWhenControllerAndNoSigner()\n {\n $this->expectException(\\LogicException::class);\n $strategy = new HIncludeFragmentRenderer();\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fragment/HIncludeFragmentRendererTest.php", "language": "php", "file_size": 4003, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestAttributeValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfon", "suffix": "\n $request = new Request();\n $request->attributes->set('id', '123');\n $metadata = new ArgumentMetadata('id', 'int', false, false, null);\n\n $result = iterator_to_array($resolver->resolve($request, $metadata));\n\n $this->ass", "middle": "y\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\nclass RequestAttributeValueResolverTest extends TestCase\n{\n public function testValidIntWithinRangeWorks()\n {\n $resolver = new RequestAttributeValueResolver();", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/RequestAttributeValueResolverTest.php", "language": "php", "file_size": 2372, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\UidValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpK", "suffix": "ss UidValueResolverTest extends TestCase\n{\n #[DataProvider('provideSupports')]\n public function testSupports(bool $expected, Request $request, ArgumentMetadata $argument)\n {\n $this->assertCount((int) $expected, (new UidValueResolver())->res", "middle": "ernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\Uid\\AbstractUid;\nuse Symfony\\Component\\Uid\\Factory\\UlidFactory;\nuse Symfony\\Component\\Uid\\Ulid;\nuse Symfony\\Component\\Uid\\UuidV1;\nuse Symfony\\Component\\Uid\\UuidV4;\n\ncla", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/UidValueResolverTest.php", "language": "php", "file_size": 4993, "cut_index": 614, "middle_length": 229}} {"prefix": "on\\HttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Serializer\\Serializer;\nuse Symfony\\Component\\Validator\\Constraints as Assert;\nuse Symfony\\Component\\Validator\\Exception\\ValidationFailedException;\nuse Symfony\\Component\\Validator\\ValidatorBuilder;\n\nclass UploadedFileValueResolverTest extends TestCase\n{\n private const FIXTURES_BASE_PATH = __DIR__.'/../../Fixtures/Controller/ArgumentResolver/UploadedFile';\n\n #[DataProvider('provideContext')]\n public function", "suffix": "lse,\n false,\n null,\n false,\n [$attribute::class => $attribute]\n );\n $event = new ControllerArgumentsEvent(\n $this->createStub(HttpKernelInterface::class),\n static function () {", "middle": " testDefaults(RequestPayloadValueResolver $resolver, Request $request)\n {\n $attribute = new MapUploadedFile();\n $argument = new ArgumentMetadata(\n 'foo',\n UploadedFile::class,\n fa", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/UploadedFileValueResolverTest.php", "language": "php", "file_size": 18078, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\CacheWarmer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerAggregate;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerInterface;\n\nclass CacheWarmerAggregateTest extends TestCase\n{\n public function testInjectWarmersUsingConstructor()\n {\n $warmer = $this->createMock(CacheWarmerInterface::class);\n $warmer\n ", "suffix": "nableOptionalWarmersIsEnabled()\n {\n $warmer = $this->createMock(CacheWarmerInterface::class);\n $warmer\n ->expects($this->never())\n ->method('isOptional');\n $warmer\n ->expects($this->once())\n ", "middle": " ->expects($this->once())\n ->method('warmUp');\n $aggregate = new CacheWarmerAggregate([$warmer]);\n $aggregate->warmUp(__DIR__);\n }\n\n public function testWarmupDoesCallWarmupOnOptionalWarmersWhenE", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php", "language": "php", "file_size": 5300, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\CacheWarmer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmer;\n\nclass CacheWarmerTest extends TestCase\n{\n protected static string $cacheFile;\n\n public static function setUpBeforeClass(): void\n {\n s", "suffix": "le()\n {\n $warmer = new TestCacheWarmer(self::$cacheFile);\n $warmer->warmUp(\\dirname(self::$cacheFile));\n\n $this->assertFileExists(self::$cacheFile);\n }\n\n public function testWriteNonWritableCacheFileThrowsARuntimeException()\n ", "middle": "elf::$cacheFile = tempnam(sys_get_temp_dir(), 'sf_cache_warmer_dir');\n }\n\n public static function tearDownAfterClass(): void\n {\n @unlink(self::$cacheFile);\n }\n\n public function testWriteCacheFileCreatesTheFi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerTest.php", "language": "php", "file_size": 1677, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\EventListe", "suffix": "st extends TestCase\n{\n private AddRequestFormatsListener $listener;\n\n protected function setUp(): void\n {\n $this->listener = new AddRequestFormatsListener(['csv' => ['text/csv', 'text/plain']]);\n }\n\n public function testIsAnEventSubsc", "middle": "ner\\AddRequestFormatsListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * @author Gildas Quemener <gildas.quemener@gmail.com>\n */\nclass AddRequestFormatsListenerTe", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/AddRequestFormatsListenerTest.php", "language": "php", "file_size": 1769, "cut_index": 537, "middle_length": 229}} {"prefix": "Kernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\CacheAttributeController;\n\nclass CacheAttributeListenerTest extends TestCase\n{\n private CacheAttributeListener $listener;\n private Response $response;\n private Cache $cache;\n private Request $request;\n private ResponseEvent $event;\n\n protected function setUp(): void\n {\n $this->listener = new CacheAttributeListener();\n $this->response = new Response();\n $this->cache = new Cache();\n", "suffix": " $response = $this->event->getResponse();\n\n $this->response->setStatusCode(500);\n\n $this->listener->onKernelResponse($this->event);\n\n $this->assertSame($response, $this->event->getResponse());\n }\n\n public function testWontRe", "middle": " $this->request = $this->createRequest($this->cache);\n $this->event = $this->createEventMock($this->request, $this->response);\n }\n\n public function testWontReassignResponseWhenResponseIsUnsuccessful()\n {\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/CacheAttributeListenerTest.php", "language": "php", "file_size": 26148, "cut_index": 1331, "middle_length": 229}} {"prefix": "ttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsMetadata;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ControllerAttributesListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse", "suffix": "ControllerAttributesController;\n\nclass ControllerAttributesListenerTest extends TestCase\n{\n public function testOnKernelControllerArgumentsDispatchesEventsForEachAttribute()\n {\n $dispatchedEvents = [];\n\n $dispatcher = new EventDispatche", "middle": " Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Buz;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Qux;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/ControllerAttributesListenerTest.php", "language": "php", "file_size": 11693, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleEvent;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Input\\ArgvInput;\nuse", "suffix": "el\\Event\\KernelEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass DebugH", "middle": " Symfony\\Component\\Console\\Output\\ConsoleOutput;\nuse Symfony\\Component\\ErrorHandler\\ErrorHandler;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKern", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/DebugHandlersListenerTest.php", "language": "php", "file_size": 4704, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\", "suffix": "\n{\n #[DataProvider('provideResponses')]\n public function testInvoke(?string $expected, array $responseArgs)\n {\n $response = new Response(...$responseArgs);\n $listener = new DisallowRobotsIndexingListener();\n\n $event = new Resp", "middle": "Component\\HttpKernel\\EventListener\\DisallowRobotsIndexingListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass DisallowRobotsIndexingListenerTest extends TestCase", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/DisallowRobotsIndexingListenerTest.php", "language": "php", "file_size": 1561, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleCommandEvent;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\HttpKernel\\", "suffix": "r;\n\n/**\n * DumpListenerTest.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass DumpListenerTest extends TestCase\n{\n public function testSubscribedEvents()\n {\n $this->assertSame(\n [ConsoleEvents::COMMAND => ['configure', 1024]],", "middle": "EventListener\\DumpListener;\nuse Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface;\nuse Symfony\\Component\\VarDumper\\VarDumpe", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/DumpListenerTest.php", "language": "php", "file_size": 3691, "cut_index": 614, "middle_length": 229}} {"prefix": "estCase;\nuse Psr\\Log\\LogLevel;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Attribute\\WithHttpStatus;\nuse Symfony\\Component\\HttpKernel\\Attribute\\WithLogLevel;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse", "suffix": "face;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\HttpKernel\\Log\\DebugLoggerInterface;\nuse Symfony\\Component\\HttpKernel\\Tests\\Logger;\n\n/**\n * @author Robert Schönthal <seroscho@", "middle": " Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpExceptionInter", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/ErrorListenerTest.php", "language": "php", "file_size": 17316, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\FragmentListener;\nuse Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttpException;\nu", "suffix": "%3Dbar%26_controller%3Dfoo');\n\n $listener = new FragmentListener(new UriSigner('foo'));\n $event = $this->createRequestEvent($request);\n\n $expected = $request->attributes->all();\n\n $listener->onKernelRequest($event);\n\n $th", "middle": "se Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nclass FragmentListenerTest extends TestCase\n{\n public function testOnlyTriggeredOnFragmentRoute()\n {\n $request = Request::create('http://example.com/foo?_path=foo", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/FragmentListenerTest.php", "language": "php", "file_size": 4355, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Exception\\UnsignedUriException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Attribute\\IsSignatureValid;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKerne", "suffix": "roller;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\IsSignatureValidAttributeMethodsController;\n\nclass IsSignatureValidAttributeListenerTest extends TestCase\n{\n public function testSubscribedEvents()\n {\n $events = IsSignatureValidAttribute", "middle": "l\\EventListener\\IsSignatureValidAttributeListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\IsSignatureValidAttributeCont", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/IsSignatureValidAttributeListenerTest.php", "language": "php", "file_size": 8205, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKer", "suffix": "r $listener;\n private MockObject&LocaleAwareInterface $localeAwareService;\n private RequestStack $requestStack;\n\n protected function setUp(): void\n {\n $this->localeAwareService = $this->createMock(LocaleAwareInterface::class);\n $t", "middle": "nel\\EventListener\\LocaleAwareListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Contracts\\Translation\\LocaleAwareInterface;\n\nclass LocaleAwareListenerTest extends TestCase\n{\n private LocaleAwareListene", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/LocaleAwareListenerTest.php", "language": "php", "file_size": 4479, "cut_index": 614, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fixtures;\n\nuse Symfony\\Component\\HttpKernel\\HttpKernelBrowser;\n\nclass TestClient extends HttpKernelBrowser\n{\n protected function getScript($request): string\n {\n $script = parent::getScript($request);\n\n $autoload = ", "suffix": " ? __DIR__.'/../../vendor/autoload.php'\n : __DIR__.'/../../../../../../vendor/autoload.php'\n ;\n\n $script = preg_replace('/(\\->register\\(\\);)/', \"$0\\nrequire_once '$autoload';\\n\", $script);\n\n return $script;\n }\n}\n", "middle": "file_exists(__DIR__.'/../../vendor/autoload.php')\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fixtures/TestClient.php", "language": "php", "file_size": 825, "cut_index": 517, "middle_length": 52}} {"prefix": "mponent\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\RequestContextAwareInterface;\nuse Symfony\\Component\\Routing\\Router;\n\nclass Lo", "suffix": "steredEvent()\n {\n $this->assertEquals(\n [\n KernelEvents::REQUEST => [['setDefaultLocale', 100], ['onKernelRequest', 16]],\n KernelEvents::FINISH_REQUEST => [['onKernelFinishRequest', 0]],\n ],\n ", "middle": "caleListenerTest extends TestCase\n{\n public function testIsAnEventSubscriber()\n {\n $this->assertInstanceOf(EventSubscriberInterface::class, new LocaleListener(new RequestStack()));\n }\n\n public function testRegi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/LocaleListenerTest.php", "language": "php", "file_size": 10980, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Even", "suffix": "ttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profile;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\n\nclass ProfilerListenerTest extends TestCase\n{\n /**\n * Test a main and sub request wi", "middle": "t\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\TerminateEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\H", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/ProfilerListenerTest.php", "language": "php", "file_size": 3578, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\RateLimit;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKernel\\EventLis", "suffix": "onent\\RateLimiter\\RateLimit as RateLimitResult;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactoryInterface;\nuse Symfony\\Contracts\\Service\\ServiceProviderInterface;\n\nclass RateLimitAttributeListenerTest extends TestCase\n{\n private function makeListene", "middle": "tener\\RateLimitAttributeListener;\nuse Symfony\\Component\\HttpKernel\\Exception\\TooManyRequestsHttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\RateLimiter\\LimiterInterface;\nuse Symfony\\Comp", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/RateLimitAttributeListenerTest.php", "language": "php", "file_size": 5872, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\nclass ResponseLi", "suffix": "w ResponseListener('UTF-8');\n $this->dispatcher->addListener(KernelEvents::RESPONSE, $listener->onKernelResponse(...));\n\n $this->kernel = $this->createStub(HttpKernelInterface::class);\n }\n\n public function testFilterDoesNothingForSubReq", "middle": "stenerTest extends TestCase\n{\n private EventDispatcher $dispatcher;\n private HttpKernelInterface $kernel;\n\n protected function setUp(): void\n {\n $this->dispatcher = new EventDispatcher();\n $listener = ne", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/ResponseListenerTest.php", "language": "php", "file_size": 5289, "cut_index": 716, "middle_length": 229}} {"prefix": "e Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Exception\\BadRequestException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerResolver;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener;\nuse Sy", "suffix": "\\Exception\\MethodNotAllowedHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernel;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Routing\\Exception\\MethodNot", "middle": "mfony\\Component\\HttpKernel\\EventListener\\RouterListener;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfony\\Component\\HttpKernel", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php", "language": "php", "file_size": 14051, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\Serialize;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsMetadata;", "suffix": "ontrollerResultAttributeListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\n\nclass SerializeControllerResultListenerTest extends TestCase\n{\n public function testSerializeAttribute()\n {", "middle": "\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ViewEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\SerializeC", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/SerializeControllerResultListenerTest.php", "language": "php", "file_size": 2879, "cut_index": 563, "middle_length": 229}} {"prefix": "UsageException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass SessionListenerTest extends TestCase\n{\n #[DataProvider('provideSessionOptions')]\n #[RunInSeparateProcess]\n public function testSessionCookieOptions(array $phpSessionOptions, array $sessionOptions, array $expectedSessionOptions)\n {\n $session = $this->createStub(Session::class);\n $session->method('getUsageIndex')->willReturn(0, 1);\n $session->method('g", "suffix": "e'])) {\n ini_set('session.cookie_samesite', $phpSessionOptions['samesite']);\n }\n session_set_cookie_params(0, $phpSessionOptions['path'] ?? null, $phpSessionOptions['domain'] ?? null, $phpSessionOptions['secure'] ?? null, $phpSessi", "middle": "etId')->willReturn('123456');\n $session->method('getName')->willReturn('PHPSESSID');\n $session->method('save');\n $session->method('isStarted')->willReturn(true);\n\n if (isset($phpSessionOptions['samesit", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/SessionListenerTest.php", "language": "php", "file_size": 42639, "cut_index": 2151, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKern", "suffix": "e\n{\n public function testFilterDoesNothingForSubRequests()\n {\n $dispatcher = new EventDispatcher();\n $kernel = $this->createStub(HttpKernelInterface::class);\n $response = new Response('foo <esi:include src=\"\" />');\n $liste", "middle": "el\\EventListener\\SurrogateListener;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\Esi;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\nclass SurrogateListenerTest extends TestCas", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/SurrogateListenerTest.php", "language": "php", "file_size": 2749, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Exception\\ConflictingHeadersException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKer", "suffix": "st extends TestCase\n{\n protected function tearDown(): void\n {\n Request::setTrustedProxies([], -1);\n }\n\n public function testListenerThrowsWhenMainRequestHasInconsistentClientIps()\n {\n $this->expectException(ConflictingHeadersEx", "middle": "nel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\nclass ValidateRequestListenerTe", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/EventListener/ValidateRequestListenerTest.php", "language": "php", "file_size": 1744, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Event;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\", "suffix": "EventTest extends TestCase\n{\n public function testControllerArgumentsEvent()\n {\n $event = new ControllerArgumentsEvent(new TestHttpKernel(), static function () {}, ['test'], new Request(), HttpKernelInterface::MAIN_REQUEST);\n $this->ass", "middle": "Bar;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Baz;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\AttributeController;\nuse Symfony\\Component\\HttpKernel\\Tests\\TestHttpKernel;\n\nclass ControllerArguments", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Event/ControllerArgumentsEventTest.php", "language": "php", "file_size": 5937, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Event;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Compone", "suffix": "ymfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\AttributeController;\nuse Symfony\\Component\\HttpKernel\\Tests\\TestHttpKernel;\n\nclass ControllerAttributeEventTest extends TestCase\n{\n public functi", "middle": "nt\\HttpKernel\\Event\\ControllerArgumentsMetadata;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse S", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Event/ControllerAttributeEventTest.php", "language": "php", "file_size": 4609, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Event;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\Control", "suffix": "Fixtures\\Controller\\AttributeController;\nuse Symfony\\Component\\HttpKernel\\Tests\\TestHttpKernel;\n\nclass ControllerEventTest extends TestCase\n{\n #[DataProvider('provideGetAttributes')]\n public function testGetAttributes(callable $controller)\n {\n ", "middle": "lerEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Bar;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Baz;\nuse Symfony\\Component\\HttpKernel\\Tests\\", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Event/ControllerEventTest.php", "language": "php", "file_size": 7830, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Bundle;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\", "suffix": "ction testGetContainerExtension()\n {\n $bundle = new ExtensionPresentBundle();\n\n $this->assertInstanceOf(\n 'Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\ExtensionPresentBundle\\DependencyInjection\\ExtensionPresentExtension',\n ", "middle": "Component\\HttpKernel\\Tests\\Fixtures\\BundleCompilerPass\\BundleAsCompilerPassBundle;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\ExtensionPresentBundle\\ExtensionPresentBundle;\n\nclass BundleTest extends TestCase\n{\n public fun", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php", "language": "php", "file_size": 3102, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Config;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpKernel\\Config\\FileLocator;\nuse Symfony\\Component\\HttpKernel\\KernelInterface", "suffix": ">atLeastOnce())\n ->method('locateResource')\n ->with('@BundleName/some/path')\n ->willReturn('/bundle-name/some/path');\n $locator = new FileLocator($kernel);\n $this->assertEquals('/bundle-name/some/path', $locat", "middle": ";\n\n#[Group('legacy')]\n#[IgnoreDeprecations]\nclass FileLocatorTest extends TestCase\n{\n public function testLocate()\n {\n $kernel = $this->createMock(KernelInterface::class);\n $kernel\n ->expects($this-", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Config/FileLocatorTest.php", "language": "php", "file_size": 1240, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Debug;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LogLevel;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\ErrorHandler\\ErrorHandler;\nuse Symfony\\Component\\HttpKernel\\Debug\\ErrorHandlerConfigurator;\n\nclass ErrorHandlerConfiguratorTest extends TestCase\n{\n public function testConfi", "suffix": "Loggers([]);\n\n $this->assertArrayHasKey(\\E_DEPRECATED, $loggers);\n $this->assertSame([$logger, LogLevel::INFO], $loggers[\\E_DEPRECATED]);\n }\n\n #[DataProvider('provideLevelsAssignedToLoggers')]\n public function testLevelsAssignedToLog", "middle": "gure()\n {\n $logger = new NullLogger();\n $configurator = new ErrorHandlerConfigurator($logger);\n $handler = new ErrorHandler();\n\n $configurator->configure($handler);\n\n $loggers = $handler->set", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Debug/ErrorHandlerConfiguratorTest.php", "language": "php", "file_size": 4056, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Debug;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface;\nuse Symfony\\Component", "suffix": "entDispatcher\\Event;\n\nclass TraceableEventDispatcherTest extends TestCase\n{\n public function testStopwatchSections()\n {\n $dispatcher = new TraceableEventDispatcher(new EventDispatcher(), $stopwatch = new Stopwatch());\n $kernel = $this->", "middle": "\\HttpKernel\\Controller\\ControllerResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher;\nuse Symfony\\Component\\HttpKernel\\HttpKernel;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Contracts\\Ev", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php", "language": "php", "file_size": 4672, "cut_index": 614, "middle_length": 229}} {"prefix": "age = new FileProfilerStorage('file:'.$this->tmpDir);\n $this->storage->purge();\n }\n\n protected function tearDown(): void\n {\n self::cleanDir();\n }\n\n public function testStore()\n {\n for ($i = 0; $i < 10; ++$i) {\n $profile = new Profile('token_'.$i);\n $profile->setIp('127.0.0.1');\n $profile->setUrl('http://foo.bar');\n $profile->setMethod('GET');\n $this->storage->write($profile);\n }\n $this->assertCount(10", "suffix": "le->setIp('127.0.0.1');\n $parentProfile->setUrl('http://foo.bar/parent');\n $parentProfile->setStatusCode(200);\n $parentProfile->setMethod('GET');\n\n $childProfile = new Profile('token_child');\n $childProfile->setIp('127.0.", "middle": ", $this->storage->find('127.0.0.1', 'http://foo.bar', 20, 'GET'), '->write() stores data in the storage');\n }\n\n public function testChildren()\n {\n $parentProfile = new Profile('token_parent');\n $parentProfi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Profiler/FileProfilerStorageTest.php", "language": "php", "file_size": 18767, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\BrowserKit\\Request as RandomRequest;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony", "suffix": "turned()\n {\n $resolver = new RequestValueResolver();\n $expectedRequest = Request::create('/');\n $actualRequest = $resolver->resolve($expectedRequest, new ArgumentMetadata('request', Request::class, false, false, null));\n self", "middle": "\\Component\\HttpKernel\\Exception\\NearMissValueResolverException;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\ExtendingRequest;\n\nclass RequestValueResolverTest extends TestCase\n{\n public function testSameRequestRe", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/RequestValueResolverTest.php", "language": "php", "file_size": 3079, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Mo", "suffix": " public function testResolveReturnsSession()\n {\n $resolver = new SessionValueResolver();\n $session = new Session(new MockArraySessionStorage());\n $request = Request::create('/');\n $request->setSession($session);\n\n $me", "middle": "ckArraySessionStorage;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\SessionValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\n\nclass SessionValueResolverTest extends TestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/SessionValueResolverTest.php", "language": "php", "file_size": 2508, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\DataCollector\\CloneVarDataCollector;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\UsePro", "suffix": "heme()\n {\n $c = new CloneVarDataCollector('scheme://foo');\n $c->collect(new Request(), new Response());\n $cloner = new VarCloner();\n\n $this->assertEquals($cloner->cloneVar('scheme://foo'), $c->getData());\n }\n\n public fu", "middle": "pertyInDestruct;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\WithPublicObjectProperty;\nuse Symfony\\Component\\VarDumper\\Cloner\\VarCloner;\n\nclass DataCollectorTest extends TestCase\n{\n public function testCloneVarStringWithSc", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DataCollector/DataCollectorTest.php", "language": "php", "file_size": 2751, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\RouterDataCollector;\nuse Symfony\\Comp", "suffix": "DataCollector();\n\n $request = Request::create('http://test.com/foo?bar=baz');\n $response = new RedirectResponse('http://test.com/redirect');\n\n $event = $this->createControllerEvent($request);\n\n $collector->onKernelController($ev", "middle": "onent\\HttpKernel\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nclass RouterDataCollectorTest extends TestCase\n{\n public function testRouteRedirectResponse()\n {\n $collector = new Router", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DataCollector/RouterDataCollectorTest.php", "language": "php", "file_size": 2876, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\TimeDataCollector;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Stopwatch\\St", "suffix": " new Request();\n $request->server->set('REQUEST_TIME', 1);\n\n $c->collect($request, new Response());\n\n $this->assertEquals(0, $c->getStartTime());\n\n $request->server->set('REQUEST_TIME_FLOAT', 2);\n\n $c->collect($request, n", "middle": "opwatch;\nuse Symfony\\Component\\Stopwatch\\StopwatchEvent;\n\n#[Group('time-sensitive')]\nclass TimeDataCollectorTest extends TestCase\n{\n public function testCollect()\n {\n $c = new TimeDataCollector();\n\n $request =", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DataCollector/TimeDataCollectorTest.php", "language": "php", "file_size": 4760, "cut_index": 614, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\nclass KernelWithoutBundles extends Kernel\n{\n public function registerBundles(): iterable\n {\n", "suffix": "erContainerConfiguration(LoaderInterface $loader): void\n {\n }\n\n public function getProjectDir(): string\n {\n return __DIR__;\n }\n\n protected function build(ContainerBuilder $container): void\n {\n $container->setParameter('te", "middle": " return [];\n }\n\n public function regist", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fixtures/KernelWithoutBundles.php", "language": "php", "file_size": 884, "cut_index": 547, "middle_length": 52}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\n\nfin", "suffix": "ponse $response, ?\\Throwable $exception = null): void\n {\n $this->data = $this->cloneVar($this->varToClone);\n }\n\n public function getData(): Data\n {\n return $this->data;\n }\n\n public function getName(): string\n {\n re", "middle": "al class CloneVarDataCollector extends DataCollector\n{\n private $varToClone;\n\n public function __construct($varToClone)\n {\n $this->varToClone = $varToClone;\n }\n\n public function collect(Request $request, Res", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fixtures/DataCollector/CloneVarDataCollector.php", "language": "php", "file_size": 1023, "cut_index": 512, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller;\n\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Bar;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Baz;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Foo;\n\n#[Bar('class'), Undefined('class')]\nclass AttributeC", "suffix": "hod')]\n public function __invoke()\n {\n }\n\n public function action(#[Foo('bar')] string $baz)\n {\n }\n\n public function multiAttributeArg(#[Foo('bar'), Undefined('bar')] string $baz)\n {\n }\n\n public function issue41478(#[Foo('bar'", "middle": "ontroller\n{\n #[Bar('method'), Baz, Undefined('met", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fixtures/Controller/AttributeController.php", "language": "php", "file_size": 898, "cut_index": 547, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller;\n\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Buz;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Qux;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\SubBuz;\n\n#[Buz]\nclass Co", "suffix": "utesController\n{\n #[Buz]\n #[Qux]\n public function buzQuxAction()\n {\n }\n\n #[Buz]\n public function buzAction()\n {\n }\n\n #[SubBuz]\n public function subBuzAction()\n {\n }\n\n public function noAttributeAction()\n {\n }", "middle": "ntrollerAttrib", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fixtures/Controller/ControllerAttributesController.php", "language": "php", "file_size": 786, "cut_index": 513, "middle_length": 14}} {"prefix": "eResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestAttributeValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadataFactory;\nuse Symfony\\Component\\HttpKernel\\Exception\\NearMissValueResolverException;\nuse Symfony\\Component\\HttpKernel\\Exception\\ResolverNotFoundException;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\C", "suffix": "es\\Controller\\VariadicController;\n\nclass ArgumentResolverTest extends TestCase\n{\n public static function getResolver(array $chainableResolvers = [], ?array $namedResolvers = null): ArgumentResolver\n {\n if (null !== $namedResolvers) {\n ", "middle": "ontroller\\ExtendingRequest;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\ExtendingSession;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\NullableController;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtur", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolverTest.php", "language": "php", "file_size": 20414, "cut_index": 1331, "middle_length": 229}} {"prefix": "ymfony\\Component\\HttpFoundation\\Exception\\BadRequestException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\AsController;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerResolver;\n\nclass ControllerResolverTest extends TestCase\n{\n public function testGetControllerWithoutControllerParameter()\n {\n $logger = $this->createMock(LoggerInterface::class);\n $logger->expects($this->once())->method('warning')->with('Unable to look for the controller ", "suffix": "() returns false when the request has no _controller attribute');\n }\n\n public function testGetControllerWithLambda()\n {\n $resolver = $this->createControllerResolver();\n\n $request = Request::create('/');\n $request->attributes->", "middle": "as the \"_controller\" parameter is missing.');\n $resolver = $this->createControllerResolver($logger);\n\n $request = Request::create('/');\n $this->assertFalse($resolver->getController($request), '->getController", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ControllerResolverTest.php", "language": "php", "file_size": 13136, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Controller;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Controller\\TraceableArgumentResolver;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n", "suffix": "chEvent::class);\n $stopwatchEvent->expects(self::once())->method('stop');\n\n $stopwatch = $this->createStub(Stopwatch::class);\n $stopwatch->method('start')->willReturn($stopwatchEvent);\n\n $resolver = new class implements Argument", "middle": "use Symfony\\Component\\Stopwatch\\StopwatchEvent;\n\nclass TraceableArgumentResolverTest extends TestCase\n{\n public function testStopwatchEventIsStoppedWhenResolverThrows()\n {\n $stopwatchEvent = $this->createMock(Stopwat", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/TraceableArgumentResolverTest.php", "language": "php", "file_size": 1480, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\BackedEnumValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\IntEnum;", "suffix": "data, bool $expectedSupport)\n {\n $resolver = new BackedEnumValueResolver();\n\n $this->assertCount((int) $expectedSupport, $resolver->resolve($request, $metadata));\n }\n\n public static function provideTestSupportsData(): iterable\n {\n", "middle": "\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Suit;\n\nclass BackedEnumValueResolverTest extends TestCase\n{\n #[DataProvider('provideTestSupportsData')]\n public function testSupports(Request $request, ArgumentMetadata $meta", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/BackedEnumValueResolverTest.php", "language": "php", "file_size": 5370, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\NotTaggedControllerValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\n\nclass NotTaggedControllerValueR", "suffix": "n () => new ServiceLocator([\n 'dummy' => static fn () => new \\stdClass(),\n ]),\n ]));\n $argument = new ArgumentMetadata('dummy', \\stdClass::class, false, false, null);\n $request = $this->requestWithAttributes([", "middle": "esolverTest extends TestCase\n{\n public function testDoNotSupportWhenControllerExists()\n {\n $resolver = new NotTaggedControllerValueResolver(new ServiceLocator([\n 'App\\\\Controller\\\\Mine::method' => static f", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/NotTaggedControllerValueResolverTest.php", "language": "php", "file_size": 5337, "cut_index": 716, "middle_length": 229}} {"prefix": "nent\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Attribute\\MapQueryParameter;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\QueryParameterValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Componen", "suffix": "olver;\n\n protected function setUp(): void\n {\n $this->resolver = new QueryParameterValueResolver();\n }\n\n public function testSkipWhenNoAttribute()\n {\n $metadata = new ArgumentMetadata('firstName', 'string', false, true, false);\n", "middle": "t\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Suit;\nuse Symfony\\Component\\Uid\\Ulid;\n\nclass QueryParameterValueResolverTest extends TestCase\n{\n private ValueResolverInterface $res", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php", "language": "php", "file_size": 15572, "cut_index": 921, "middle_length": 229}} {"prefix": "t, $argument);\n $event = new ControllerArgumentsEvent($kernel, static function () {}, $arguments, $request, HttpKernelInterface::MAIN_REQUEST);\n\n $this->expectException(\\LogicException::class);\n $this->expectExceptionMessage('Could not resolve the \"$notTyped\" controller argument: argument should be typed.');\n\n $resolver->onKernelControllerArguments($event);\n }\n\n public function testDefaultValueArgument()\n {\n $payload = new RequestPayload(50);\n\n $validator =", "suffix": "new ArgumentMetadata('valid', RequestPayload::class, false, true, $payload, false, [\n MapRequestPayload::class => new MapRequestPayload(),\n ]);\n $request = Request::create('/', 'POST', [], [], [], ['CONTENT_TYPE' => 'application/js", "middle": " $this->createMock(ValidatorInterface::class);\n $validator->expects($this->never())\n ->method('validate');\n\n $resolver = new RequestPayloadValueResolver(new Serializer(), $validator);\n\n $argument = ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/RequestPayloadValueResolverTest.php", "language": "php", "file_size": 66945, "cut_index": 3790, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\TraceableValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInte", "suffix": " $stopwatch = new Stopwatch();\n $resolver = new TraceableValueResolver(new ResolverStub(), $stopwatch);\n $argument = new ArgumentMetadata('dummy', 'string', false, false, null);\n $request = new Request();\n\n $iterable = $resolver", "middle": "rface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\nclass TraceableValueResolverTest extends TestCase\n{\n public function testTimingsInResolve()\n {\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/TraceableValueResolverTest.php", "language": "php", "file_size": 1907, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\EventListener;\n\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleEvent;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\ErrorHandler\\ErrorHandler;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\KernelEvent;\n", "suffix": " private string|object|null $earlyHandler;\n private ?\\Closure $exceptionHandler;\n private bool $webMode;\n private bool $firstCall = true;\n private bool $hasTerminatedWithException = false;\n\n /**\n * @param callable|null $exceptionHandler ", "middle": "use Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Sets an exception handler.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @final\n *\n * @internal\n */\nclass DebugHandlersListener implements EventSubscriberInterface\n{\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php", "language": "php", "file_size": 4704, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\CacheClearer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\HttpKernel\\CacheClearer\\Psr6CacheClearer;\n\nclass Psr6CacheClearerTest extends TestCase\n{\n public function testClearPoolsInjectedInC", "suffix": "\n }\n\n public function testClearPool()\n {\n $pool = $this->createMock(CacheItemPoolInterface::class);\n $pool\n ->expects($this->once())\n ->method('clear')\n ->willReturn(true)\n ;\n\n $this->as", "middle": "onstructor()\n {\n $pool = $this->createMock(CacheItemPoolInterface::class);\n $pool\n ->expects($this->once())\n ->method('clear');\n\n (new Psr6CacheClearer(['pool' => $pool]))->clear('');", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/CacheClearer/Psr6CacheClearerTest.php", "language": "php", "file_size": 1367, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\DataCollector;\n\nclass DummyController\n{\n /**\n * Dummy method used as controller callable.\n */\n public static function staticControllerMethod()\n {\n throw new \\LogicException('Unexpected method call');\n ", "suffix": " /**\n * Magic method to allow non existing methods to be called and delegated.\n */\n public static function __callStatic(string $method, array $args)\n {\n throw new \\LogicException('Unexpected method call');\n }\n\n public function", "middle": " }\n\n /**\n * Magic method to allow non existing methods to be called and delegated.\n */\n public function __call(string $method, array $args)\n {\n throw new \\LogicException('Unexpected method call');\n }\n\n", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fixtures/DataCollector/DummyController.php", "language": "php", "file_size": 1202, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Log;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\InvalidArgumentException;\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\LogLevel;\nuse Symfony\\Component\\HttpKernel\\Log\\Logger;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n * @author Jordi Boggiano <j.boggiano@seld.be>\n */\nclass LoggerTest extends TestCase\n{\n private Logger $logger;\n private string $tmpFile;\n\n protected funct", "suffix": "this->tmpFile)) {\n file_put_contents($this->tmpFile, '');\n }\n }\n\n public static function assertLogsMatch(array $expected, array $given)\n {\n foreach ($given as $k => $line) {\n self::assertSame(1, preg_match('/[0-", "middle": "ion setUp(): void\n {\n $this->tmpFile = tempnam(sys_get_temp_dir(), 'log');\n $this->logger = new Logger(LogLevel::DEBUG, $this->tmpFile);\n }\n\n protected function tearDown(): void\n {\n if (!@unlink($", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Log/LoggerTest.php", "language": "php", "file_size": 6962, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ErrorController;\nuse Symfony\\Compo", "suffix": "tInvokeControllerDataProvider')]\n public function testInvokeController(Request $request, \\Exception $exception, int $statusCode, string $content)\n {\n $kernel = $this->createStub(HttpKernelInterface::class);\n $errorRenderer = new HtmlErr", "middle": "nent\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nclass ErrorControllerTest extends TestCase\n{\n #[DataProvider('ge", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ErrorControllerTest.php", "language": "php", "file_size": 3378, "cut_index": 614, "middle_length": 229}} {"prefix": "nent\\Clock\\MockClock;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\MapDateTime;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\DateTimeValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\nclass DateTimeValueResolverTest extends TestCase\n{\n private readonly string $defaultTimezone;\n\n protected function setUp(): void\n {\n $this->defaultTime", "suffix": "e];\n yield ['Pacific/Honolulu', false];\n yield ['America/Toronto', false];\n yield ['UTC', true];\n yield ['Pacific/Honolulu', true];\n yield ['America/Toronto', true];\n }\n\n public static function getClasses()\n {\n ", "middle": "zone = date_default_timezone_get();\n }\n\n protected function tearDown(): void\n {\n date_default_timezone_set($this->defaultTimezone);\n }\n\n public static function getTimeZones()\n {\n yield ['UTC', fals", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/DateTimeValueResolverTest.php", "language": "php", "file_size": 10083, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\CacheClearer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpKernel\\CacheClearer\\CacheClearerInterface;\nuse Symfony\\Component\\HttpKernel\\CacheClearer\\ChainCacheClearer;\n\nclass ChainCacheClearerTest extends TestCase\n{\n pr", "suffix": "id\n {\n @unlink(self::$cacheDir);\n }\n\n public function testInjectClearersInConstructor()\n {\n $clearer = $this->createMock(CacheClearerInterface::class);\n $clearer\n ->expects($this->once())\n ->method('cl", "middle": "otected static string $cacheDir;\n\n public static function setUpBeforeClass(): void\n {\n self::$cacheDir = tempnam(sys_get_temp_dir(), 'sf_cache_clearer_dir');\n }\n\n public static function tearDownAfterClass(): vo", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/CacheClearer/ChainCacheClearerTest.php", "language": "php", "file_size": 1125, "cut_index": 518, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fixtures;\n\nuse Symfony\\Component\\HttpKernel\\Attribute\\IsSignatureValid;\n\nclass IsSignatureValidAttributeMethodsController\n{\n public function noAttribute()\n {\n }\n\n #[IsSignatureValid]\n public function withDefaultBehavior()\n ", "suffix": " #[IsSignatureValid]\n #[IsSignatureValid]\n public function withMultiple()\n {\n }\n\n #[IsSignatureValid(methods: 'POST')]\n public function withPostOnly()\n {\n }\n\n #[IsSignatureValid(methods: ['GET', 'POST'])]\n public function with", "middle": " {\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fixtures/IsSignatureValidAttributeMethodsController.php", "language": "php", "file_size": 819, "cut_index": 522, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ContainerControllerResolver;\n\nclass ContainerControllerResolverTest extends ControllerResolverTest\n{\n public function testGetControllerService()\n {\n $", "suffix": "te('/');\n $request->attributes->set('_controller', 'foo::action');\n\n $controller = $resolver->getController($request);\n\n $this->assertSame($service, $controller[0]);\n $this->assertSame('action', $controller[1]);\n }\n\n publi", "middle": "service = new ControllerTestService('foo');\n\n $container = new Container();\n $container->set('foo', $service);\n\n $resolver = $this->createControllerResolver(null, $container);\n $request = Request::crea", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ContainerControllerResolverTest.php", "language": "php", "file_size": 7311, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\AcceptHeader;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Attribute\\MapRequestHeader;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestHeaderValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Sym", "suffix": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'];\n yield 'with accept-language' => ['accept-language', 'en-us,en;q=0.5'];\n yield 'with host' => ['host', 'localhost'];\n yield 'with user-agent' => ['user-agent', 'Symfony", "middle": "fony\\Component\\HttpKernel\\Exception\\HttpException;\n\nclass RequestHeaderValueResolverTest extends TestCase\n{\n public static function provideHeaderValueWithStringType(): iterable\n {\n yield 'with accept' => ['accept', '", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/RequestHeaderValueResolverTest.php", "language": "php", "file_size": 7283, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Controller\\ArgumentResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\ServiceValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\R", "suffix": " {\n $resolver = new ServiceValueResolver(new ServiceLocator([]));\n $argument = new ArgumentMetadata('dummy', DummyService::class, false, false, null);\n $request = $this->requestWithAttributes(['_controller' => 'my_controller']);\n\n ", "middle": "egisterControllerArgumentLocatorsPass;\nuse Symfony\\Component\\HttpKernel\\Exception\\NearMissValueResolverException;\n\nclass ServiceValueResolverTest extends TestCase\n{\n public function testDoNotSupportWhenControllerDoNotExists()\n", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/ServiceValueResolverTest.php", "language": "php", "file_size": 5172, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\AcmeFooBundle;\n\nuse Symfony\\Component\\Config\\Definition\\Configurator\\DefinitionConfigurator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigur", "suffix": " ->children()\n ->scalarNode('foo')->defaultValue('bar')->end()\n ->end()\n ;\n\n $definition->import('Resources/config/definition.php');\n }\n\n public function prependExtension(ContainerConfigurator $container, Conta", "middle": "ator;\nuse Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle;\n\nclass AcmeFooBundle extends AbstractBundle\n{\n public function configure(DefinitionConfigurator $definition): void\n {\n $definition->rootNode()\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Fixtures/AcmeFooBundle/AcmeFooBundle.php", "language": "php", "file_size": 1495, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Controller;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface;\nuse Symfony\\Component\\HttpKernel\\Controller\\TraceableControllerResolver;\nuse Symfony\\Component\\Stopwatch\\Stopwat", "suffix": "topwatchEvent::class);\n $stopwatchEvent->expects(self::once())->method('stop');\n\n $stopwatch = $this->createStub(Stopwatch::class);\n $stopwatch->method('start')->willReturn($stopwatchEvent);\n\n $resolver = new class implements Co", "middle": "ch;\nuse Symfony\\Component\\Stopwatch\\StopwatchEvent;\n\nclass TraceableControllerResolverTest extends TestCase\n{\n public function testStopwatchEventIsStoppedWhenResolverThrows()\n {\n $stopwatchEvent = $this->createMock(S", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Controller/TraceableControllerResolverTest.php", "language": "php", "file_size": 1407, "cut_index": 524, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResettableServicePass as BaseResettableServicePass;\nuse Symfony\\Component\\Http", "suffix": "[Group('legacy')]\n#[IgnoreDeprecations]\nclass ResettableServicePassTest extends TestCase\n{\n public function testDeprecatedClassExtendsNewClass()\n {\n $this->assertTrue(is_subclass_of(ResettableServicePass::class, BaseResettableServicePass::clas", "middle": "Kernel\\DependencyInjection\\ResettableServicePass;\n\n#", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ResettableServicePassTest.php", "language": "php", "file_size": 880, "cut_index": 559, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Debug;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\n\n/**\n * A stack able to deal with virtual requests.\n *\n * @internal\n *\n * @author Jules Pietri <jules@heahprod.com>\n */\nfinal class VirtualRequestStack ext", "suffix": "{\n if ($this->decorated->getCurrentRequest()) {\n throw new \\LogicException('Cannot mix virtual and HTTP requests.');\n }\n\n parent::push($request);\n\n return;\n }\n\n $this->decorated->push", "middle": "ends RequestStack\n{\n public function __construct(\n private readonly RequestStack $decorated,\n ) {\n }\n\n public function push(Request $request): void\n {\n if ($request->attributes->has('_virtual_type')) ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Debug/VirtualRequestStack.php", "language": "php", "file_size": 1580, "cut_index": 537, "middle_length": 229}} {"prefix": "erStorage implements ProfilerStorageInterface\n{\n /**\n * Folder where profiler data are stored.\n */\n private string $folder;\n\n /**\n * Constructs the file storage using a \"dsn-like\" path.\n *\n * Example : \"file:/path/to/the/storage/folder\"\n *\n * @throws \\RuntimeException\n */\n public function __construct(string $dsn)\n {\n if (!str_starts_with($dsn, 'file:')) {\n throw new \\RuntimeException(\\sprintf('Please check your configuration. You are trying to", "suffix": "der, 0o777, true) && !is_dir($this->folder)) {\n throw new \\RuntimeException(\\sprintf('Unable to create the storage directory (%s).', $this->folder));\n }\n }\n\n /**\n * @param-immediately-invoked-callable $filter\n */\n public ", "middle": " use FileStorage with an invalid dsn \"%s\". The expected format is \"file:/path/to/the/storage/folder\".', $dsn));\n }\n $this->folder = substr($dsn, 5);\n\n if (!is_dir($this->folder) && false === @mkdir($this->fol", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php", "language": "php", "file_size": 10843, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Profiler;\n\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass Profile\n{\n /**\n * @var DataCollectorInterface[]\n */\n private array $collectors = [];\n\n private ?string $ip = null;\n private ?string $method = null;\n private ?string $url = null;\n private ?int $time = null;\n private ?int $statusCode = null;\n private", "suffix": "g $token,\n ) {\n }\n\n public function setToken(string $token): void\n {\n $this->token = $token;\n }\n\n /**\n * Gets the token.\n */\n public function getToken(): string\n {\n return $this->token;\n }\n\n /**\n * Se", "middle": " ?self $parent = null;\n private ?string $virtualType = null;\n private bool $hasErrors = false;\n\n /**\n * @var Profile[]\n */\n private array $children = [];\n\n public function __construct(\n private strin", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Profiler/Profile.php", "language": "php", "file_size": 5733, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Profiler;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Exception\\ConflictingHeadersException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LoggerDataCollector;\nuse Symfony\\Cont", "suffix": " = [];\n\n private bool $initiallyEnabled = true;\n\n public function __construct(\n private ProfilerStorageInterface $storage,\n private ?LoggerInterface $logger = null,\n private bool $enabled = true,\n ) {\n $this->initiallyE", "middle": "racts\\Service\\ResetInterface;\n\n/**\n * Profiler.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Profiler implements ResetInterface\n{\n /**\n * @var DataCollectorInterface[]\n */\n private array $collectors", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Profiler/Profiler.php", "language": "php", "file_size": 7180, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Profiler;\n\n/**\n * ProfilerStorageInterface.\n *\n * This interface exists for historical reasons. The only supported\n * implementation is FileProfilerStorage.\n *\n * As the profiler must only be used on non-production servers, the file storage\n * is more than eno", "suffix": " *\n * @param int|null $limit The maximum number of tokens to return\n * @param int|null $start The start date to search from\n * @param int|null $end The end date to search to\n * @param string|null $statusC", "middle": "ugh and no other implementations will ever be supported.\n *\n * @internal\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface ProfilerStorageInterface\n{\n /**\n * Finds profiler tokens for the given criteria.\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Profiler/ProfilerStorageInterface.php", "language": "php", "file_size": 1769, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\n\n/**\n * This extension sub-class provides first-class integration with the\n * Config/Definition Compon", "suffix": "ependencyInjection sub-folder.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nabstract class ConfigurableExtension extends Extension\n{\n final public function load(array $configs, ContainerBuilder $container): void\n {\n $this->load", "middle": "ent.\n *\n * You can use this as base class if\n *\n * a) you use the Config/Definition component for configuration,\n * b) your configuration class is named \"Configuration\", and\n * c) the configuration class resides in the D", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/ConfigurableExtension.php", "language": "php", "file_size": 1322, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\", "suffix": "r\\TraceableValueResolver;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * Gathers and configures the argument value resolvers.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nclass ControllerArgumentValueResolverPass implements CompilerPassInter", "middle": "DependencyInjection\\Compiler\\PriorityTaggedServiceTrait;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolve", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/ControllerArgumentValueResolverPass.php", "language": "php", "file_size": 3066, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Collects attribute listeners and registers them f", "suffix": " KernelEvents::CONTROLLER_ARGUMENTS,\n KernelEvents::VIEW,\n KernelEvents::RESPONSE,\n KernelEvents::EXCEPTION,\n KernelEvents::FINISH_REQUEST,\n ];\n\n public function process(ContainerBuilder $container): void\n {\n ", "middle": "or ControllerAttributesListener.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ControllerAttributesListenerPass implements CompilerPassInterface\n{\n private const ATTRIBUTE_EVENTS = [\n KernelEvents::CONTROLLER,\n", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/ControllerAttributesListenerPass.php", "language": "php", "file_size": 2011, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension as BaseExtension;\n\ntrigger_deprecation('symfony/http-kernel', '8.1', 'The \"%s\" class is deprecated, use \"%s\" instead.', Extension::class, BaseExtension:", "suffix": " * Allow adding classes to the class cache.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @deprecated since Symfony 8.1; use Symfony\\Component\\DependencyInjection\\Extension\\Extension instead\n */\nabstract class Extension extends BaseExtension\n{\n", "middle": ":class);\n\n/**\n", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/Extension.php", "language": "php", "file_size": 785, "cut_index": 513, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\Inva", "suffix": "egies.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass FragmentRendererPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('fragment.handler')) {\n", "middle": "lidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentRendererInterface;\n\n/**\n * Adds services tagged kernel.fragment_renderer as HTTP content rendering strat", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/FragmentRendererPass.php", "language": "php", "file_size": 2085, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentHandler;\n\n/**\n * Lazi", "suffix": "*/\n private array $initialized = [];\n\n public function __construct(\n private ContainerInterface $container,\n RequestStack $requestStack,\n bool $debug = false,\n ) {\n parent::__construct($requestStack, [], $debug);\n }\n", "middle": "ly loads fragment renderers from the dependency injection container.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass LazyLoadingFragmentHandler extends FragmentHandler\n{\n /**\n * @var array<string, bool>\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/LazyLoadingFragmentHandler.php", "language": "php", "file_size": 1417, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfo", "suffix": "sInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->has(LoggerInterface::class)) {\n $container->setAlias(LoggerInterface::class, 'logger');\n }\n\n if ($container->has('logger')) ", "middle": "ny\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Log\\Logger;\n\n/**\n * Registers the default logger if necessary.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass LoggerPass implements CompilerPas", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/LoggerPass.php", "language": "php", "file_size": 1491, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\MergeExtensionConfigurationPass as BaseMergeExtensionConfigurationPass;\n\ntrigger_deprecation('symfony/http-kernel', '8.1', 'The \"%s\" class is deprecated, use \"%s\" from the DependencyInjection component instead.', MergeExtensionConfi", "suffix": "Pass::class);\n\n/**\n * Ensures certain extensions are always loaded.\n *\n * @author Kris Wallsmith <kris@symfony.com>\n *\n * @deprecated since Symfony 8.1, use MergeExtensionConfigurationPass from the DependencyInjection component instead\n */\nclass MergeExten", "middle": "gurationPass::class, BaseMergeExtensionConfiguration", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php", "language": "php", "file_size": 960, "cut_index": 582, "middle_length": 52}} {"prefix": "ute\\AutowireCallable;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Target;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\D", "suffix": "sionInterface;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\n\n/**\n * Creates the service-locators required by ServiceValueResolver.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass RegisterControllerArgumentLocatorsPass implements CompilerPassInterf", "middle": "ependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\Ses", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/RegisterControllerArgumentLocatorsPass.php", "language": "php", "file_size": 12137, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\", "suffix": "pilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('locale_aware_listener')) {\n return;\n }\n\n $services = [];\n\n foreach ($container->findTaggedServ", "middle": "DependencyInjection\\Reference;\n\n/**\n * Register all services that have the \"kernel.locale_aware\" tag into the listener.\n *\n * @author Pierre Bobiet <pierrebobiet@gmail.com>\n */\nclass RegisterLocaleAwareServicesPass implements Com", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/RegisterLocaleAwareServicesPass.php", "language": "php", "file_size": 1392, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Removes empty service-locators registered for ServiceValueResolver.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass", "suffix": "ler_locator');\n $controllers = $controllerLocator->getArgument(0);\n\n foreach ($controllers as $controller => $argumentRef) {\n $argumentLocator = $container->getDefinition((string) $argumentRef->getValues()[0]);\n\n if ($ar", "middle": " RemoveEmptyControllerArgumentLocatorsPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n $controllerLocator = $container->findDefinition('argument_resolver.control", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/RemoveEmptyControllerArgumentLocatorsPass.php", "language": "php", "file_size": 2778, "cut_index": 563, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResettableServicePass as BaseResettableServicePass;\n\ntrigger_deprecation('symfony/http-kernel', '8.1', 'The \"%s\" class is deprecated, use \"%s\" from the DependencyInjectio", "suffix": " BaseResettableServicePass::class);\n\n/**\n * @author Alexander M. Turek <me@derrabus.de>\n *\n * @deprecated since Symfony 8.1, use ResettableServicePass from the DependencyInjection component instead\n */\nclass ResettableServicePass extends BaseResettableServ", "middle": "n component instead.', ResettableServicePass::class,", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php", "language": "php", "file_size": 840, "cut_index": 520, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ServicesResetter as BaseServicesResetter;\n\ntrigger_deprecation('symfony/http-kernel', '8.1', 'The \"%s\" class is deprecated, use \"%s\" from the DependencyInjection component instead.', ServicesResetter::class", "suffix": "ded services.\n *\n * @author Alexander M. Turek <me@derrabus.de>\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @deprecated since Symfony 8.1, use ServicesResetter from the DependencyInjection component instead\n */\nfinal class ServicesResetter extends Base", "middle": ", BaseServicesResetter::class);\n\n/**\n * Resets provi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/ServicesResetter.php", "language": "php", "file_size": 913, "cut_index": 547, "middle_length": 52}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ServicesResetterInterface as BaseServicesResetterInterface;\n\ntrigger_deprecation('symfony/http-kernel', '8.1', 'The \"%s\" interface is deprecated, use \"%s\" from the DependencyInjection component ", "suffix": "vicesResetterInterface::class);\n\n/**\n * Resets provided services.\n *\n * @deprecated since Symfony 8.1, use ServicesResetterInterface from the DependencyInjection component instead\n */\ninterface ServicesResetterInterface extends BaseServicesResetterInterfac", "middle": "instead.', ServicesResetterInterface::class, BaseSer", "meta": {"filepath": "src/Symfony/Component/HttpKernel/DependencyInjection/ServicesResetterInterface.php", "language": "php", "file_size": 849, "cut_index": 535, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\ControllerMetadata;\n\n/**\n * Responsible for storing metadata of an argument.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nclass ArgumentMetadata\n{\n public const IS_INSTANCEOF = 2;\n\n /**\n * @param object[] $attributes\n */\n public function __construct(\n private string $name,\n private ?string $typ", "suffix": "Name = 'n/a',\n ) {\n $this->isNullable = $isNullable || null === $type || ($hasDefaultValue && null === $defaultValue);\n }\n\n /**\n * Returns the name as given in PHP, $foo would yield \"foo\".\n */\n public function getName(): string\n ", "middle": "e,\n private bool $isVariadic,\n private bool $hasDefaultValue,\n private mixed $defaultValue,\n private bool $isNullable = false,\n private array $attributes = [],\n private string $controller", "meta": {"filepath": "src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadata.php", "language": "php", "file_size": 3527, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\ControllerMetadata;\n\n/**\n * Builds {@see ArgumentMetadata} objects based on the given Controller.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nfinal class ArgumentMetadataFactory implements ArgumentMetadataFactoryInterface\n{\n public function createArgumentMetadata(string|", "suffix": "lector);\n\n foreach ($reflector->getParameters() as $param) {\n $attributes = [];\n foreach ($param->getAttributes() as $reflectionAttribute) {\n if (class_exists($reflectionAttribute->getName())) {\n ", "middle": "object|array $controller, ?\\ReflectionFunctionAbstract $reflector = null): array\n {\n $arguments = [];\n $reflector ??= new \\ReflectionFunction($controller(...));\n $controllerName = $this->getPrettyName($ref", "meta": {"filepath": "src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadataFactory.php", "language": "php", "file_size": 2405, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RemoteEvent\\Event\\Mailer;\n\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nabstract class AbstractMailerEvent extends RemoteEvent\n{\n private \\DateTimeImmutable $date;\n private string $email = '';", "suffix": " return $this->date;\n }\n\n public function setRecipientEmail(string $email): void\n {\n $this->email = $email;\n }\n\n public function getRecipientEmail(): string\n {\n return $this->email;\n }\n\n public function setMetadata(a", "middle": "\n private array $metadata = [];\n private array $tags = [];\n\n public function setDate(\\DateTimeImmutable $date): void\n {\n $this->date = $date;\n }\n\n public function getDate(): \\DateTimeImmutable\n {\n ", "meta": {"filepath": "src/Symfony/Component/RemoteEvent/Event/Mailer/AbstractMailerEvent.php", "language": "php", "file_size": 1335, "cut_index": 524, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RemoteEvent\\Event\\Mailer;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class MailerDeliveryEvent extends AbstractMailerEvent\n{\n public const RECEIVED = 'received';\n public const DROPPED = 'dropped';\n public const DELIVERED ", "suffix": "';\n public const BOUNCE = 'bounce';\n\n private string $reason = '';\n\n public function setReason(string $reason): void\n {\n $this->reason = $reason;\n }\n\n public function getReason(): string\n {\n return $this->reason;\n }\n}\n", "middle": "= 'delivered';\n public const DEFERRED = 'deferred", "meta": {"filepath": "src/Symfony/Component/RemoteEvent/Event/Mailer/MailerDeliveryEvent.php", "language": "php", "file_size": 825, "cut_index": 517, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\RemoteEvent\\Messenger;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\RemoteEvent\\Consumer\\ConsumerInterface;\nuse Symfony\\Component\\RemoteEvent\\Exception\\LogicException;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass ConsumeRem", "suffix": ">has($message->getType())) {\n throw new LogicException(\\sprintf('Unable to find a consumer for message of type \"%s\".', $message->getType()));\n }\n $consumer = $this->consumers->get($message->getType());\n\n if (!$consumer insta", "middle": "oteEventHandler\n{\n public function __construct(\n private readonly ContainerInterface $consumers,\n ) {\n }\n\n public function __invoke(ConsumeRemoteEventMessage $message): void\n {\n if (!$this->consumers-", "meta": {"filepath": "src/Symfony/Component/RemoteEvent/Messenger/ConsumeRemoteEventHandler.php", "language": "php", "file_size": 1294, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\nuse Symfony\\Component\\Workflow\\Exception\\LogicException;\nuse Symfony\\Component\\Workflow\\Metadata\\InMemoryMetadataStore;\nuse Symfony\\Component\\Workflow\\Metadata\\MetadataStoreInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n", "suffix": " $places\n * @param Transition[] $transitions\n * @param string|string[]|null $initialPlaces\n */\n public function __construct(array $places, array $transitions, string|array|null $initialPlaces = null, ?MetadataStoreInterface $metada", "middle": " */\nfinal class Definition\n{\n private array $places = [];\n private array $transitions = [];\n private array $initialPlaces = [];\n private MetadataStoreInterface $metadataStore;\n\n /**\n * @param string[] ", "meta": {"filepath": "src/Symfony/Component/Workflow/Definition.php", "language": "php", "file_size": 3112, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\nuse Symfony\\Component\\Workflow\\Metadata\\MetadataStoreInterface;\n\n/**\n * Builds a definition.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\nclass DefinitionBuilder\n{\n private ", "suffix": "ansition[] $transitions\n */\n public function __construct(array $places = [], array $transitions = [])\n {\n $this->addPlaces($places);\n $this->addTransitions($transitions);\n }\n\n public function build(): Definition\n {\n ", "middle": "array $places = [];\n private array $transitions = [];\n private string|array|null $initialPlaces = null;\n private ?MetadataStoreInterface $metadataStore = null;\n\n /**\n * @param string[] $places\n * @param Tr", "meta": {"filepath": "src/Symfony/Component/Workflow/DefinitionBuilder.php", "language": "php", "file_size": 2877, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\n/**\n * Marking contains the place of every tokens.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass Marking\n{\n /**\n * @var array<string, int<0,max>> Keys are the place names and values are the number of tokens in that place\n */\n private array $places = [];\n\n ", "suffix": " foreach ($representation as $place => $nbToken) {\n $this->mark($place, $nbToken);\n }\n }\n\n /**\n * @psalm-param int<1, max> $nbToken\n */\n public function mark(string $place, int $nbToken = 1): void\n {\n if ($nbTok", "middle": " private ?array $context = null;\n\n /**\n * @param int[] $representation Keys are the place name and values should be superior or equals to 1\n */\n public function __construct(array $representation = [])\n {\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Marking.php", "language": "php", "file_size": 2794, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\nuse Symfony\\Component\\Workflow\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Workflow\\SupportStrategy\\WorkflowSupportStrategyInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass Registry\n{\n private arr", "suffix": "on has(object $subject, ?string $workflowName = null): bool\n {\n foreach ($this->workflows as [$workflow, $supportStrategy]) {\n if ($this->supports($workflow, $supportStrategy, $subject, $workflowName)) {\n return true;\n ", "middle": "ay $workflows = [];\n\n public function addWorkflow(WorkflowInterface $workflow, WorkflowSupportStrategyInterface $supportStrategy): void\n {\n $this->workflows[] = [$workflow, $supportStrategy];\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Component/Workflow/Registry.php", "language": "php", "file_size": 2752, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\nuse Symfony\\Component\\Workflow\\MarkingStore\\MarkingStoreInterface;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MethodMarkingStore;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\nclass StateMachine extends Workflow\n{\n public function __construct(Defi", "suffix": "tore = null, ?EventDispatcherInterface $dispatcher = null, string $name = 'unnamed', ?array $eventsToDispatch = null)\n {\n parent::__construct($definition, $markingStore ?? new MethodMarkingStore(true), $dispatcher, $name, $eventsToDispatch);\n ", "middle": "nition $definition, ?MarkingStoreInterface $markingS", "meta": {"filepath": "src/Symfony/Component/Workflow/StateMachine.php", "language": "php", "file_size": 918, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass Transition\n{\n /**\n * @var Arc[]\n */\n private array $fromArcs;\n\n /**\n * @var Arc[]\n */\n private array $toArcs;\n\n /**\n ", "suffix": "s->fromArcs = array_map($this->normalize(...), (array) $froms);\n $this->toArcs = array_map($this->normalize(...), (array) $tos);\n }\n\n public function getName(): string\n {\n return $this->name;\n }\n\n /**\n * @return $asArc is t", "middle": " * @param string|string[]|Arc[] $froms\n * @param string|string[]|Arc[] $tos\n */\n public function __construct(\n private string $name,\n string|array $froms,\n string|array $tos,\n ) {\n $thi", "meta": {"filepath": "src/Symfony/Component/Workflow/Transition.php", "language": "php", "file_size": 1913, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\n/**\n * A reason why a transition cannot be performed for a subject.\n */\nfinal class TransitionBlocker\n{\n public const BLOCKED_BY_MARKING = '19beefc8-6b1e-4716-9d07-a39bd6d16e34';\n public const BLOCKED_BY_EXPRESSION_GUARD_LISTENER = '326a1e9c-0c12-11e8-ba89-0ed5f89f718b';\n public const UNKNOWN = 'e8b5bbb9-5913-4b98-bfa6-65dbd22", "suffix": " blocked the transition. E.g. for a condition \"distance must be larger than\n * 5 miles\", you might want to pass around the value of 5.\n */\n public function __construct(\n private string $message,\n ", "middle": "8a82a';\n\n /**\n * @param string $code Code is a machine-readable string, usually an UUID\n * @param array $parameters This is useful if you would like to pass around the condition values, that\n * ", "meta": {"filepath": "src/Symfony/Component/Workflow/TransitionBlocker.php", "language": "php", "file_size": 3162, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\n/**\n * A list of transition blockers.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n *\n * @implements \\IteratorAggregate<int, TransitionBlocker>\n */\nfinal class TransitionBlockerList implements \\IteratorAggregate, \\Countable\n{\n private arr", "suffix": "d($blocker);\n }\n }\n\n public function add(TransitionBlocker $blocker): void\n {\n $this->blockers[] = $blocker;\n }\n\n public function has(string $code): bool\n {\n foreach ($this->blockers as $blocker) {\n if ($co", "middle": "ay $blockers;\n\n /**\n * @param TransitionBlocker[] $blockers\n */\n public function __construct(array $blockers = [])\n {\n $this->blockers = [];\n\n foreach ($blockers as $blocker) {\n $this->ad", "meta": {"filepath": "src/Symfony/Component/Workflow/TransitionBlockerList.php", "language": "php", "file_size": 1482, "cut_index": 524, "middle_length": 229}} {"prefix": "low\\Event\\EnteredEvent;\nuse Symfony\\Component\\Workflow\\Event\\EnterEvent;\nuse Symfony\\Component\\Workflow\\Event\\GuardEvent;\nuse Symfony\\Component\\Workflow\\Event\\LeaveEvent;\nuse Symfony\\Component\\Workflow\\Event\\TransitionEvent;\nuse Symfony\\Component\\Workflow\\Exception\\LogicException;\nuse Symfony\\Component\\Workflow\\Exception\\NotEnabledTransitionException;\nuse Symfony\\Component\\Workflow\\Exception\\UndefinedTransitionException;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MarkingStoreInterface;\nuse Symfony\\Componen", "suffix": "@author Grégoire Pineau <lyrixx@lyrixx.info>\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n * @author Carlos Pereira De Amorim <carlos@shauri.fr>\n */\nclass Workflow implements WorkflowInterface\n{\n public const DISABLE_LEAVE_EVENT = 'workflow_disabl", "middle": "t\\Workflow\\MarkingStore\\MethodMarkingStore;\nuse Symfony\\Component\\Workflow\\Metadata\\MetadataStoreInterface;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n * ", "meta": {"filepath": "src/Symfony/Component/Workflow/Workflow.php", "language": "php", "file_size": 16790, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\ControllerMetadata;\n\nuse Fake\\ImportedAndFake;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadataFactory;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Foo;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\AttributeController;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\Basic", "suffix": " private ArgumentMetadataFactory $factory;\n\n protected function setUp(): void\n {\n $this->factory = new ArgumentMetadataFactory();\n }\n\n public function testSignature1()\n {\n $arguments = $this->factory->createArgumentMetadata(", "middle": "TypesController;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\NullableController;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Controller\\VariadicController;\n\nclass ArgumentMetadataFactoryTest extends TestCase\n{\n", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php", "language": "php", "file_size": 7623, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\n\n/**\n * Provides read-only access to controller metadata.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ControllerArgumentsMetadata extends ControllerMetadata\n{\n publ", "suffix": "d>\n */\n public function getArguments(): array\n {\n return $this->controllerArgumentsEvent->getArguments();\n }\n\n /**\n * @return array<string, mixed>\n */\n public function getNamedArguments(): array\n {\n return $this-", "middle": "ic function __construct(\n ControllerEvent $controllerEvent,\n private ControllerArgumentsEvent $controllerArgumentsEvent,\n ) {\n parent::__construct($controllerEvent);\n }\n\n /**\n * @return list<mixe", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/ControllerArgumentsMetadata.php", "language": "php", "file_size": 1256, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * Allows filtering of a controller callable.\n *\n * You can call getController() to retrieve the current controller. With\n * setController() you can set a new controller that is used in the processing\n * of the r", "suffix": "ublic function __construct(HttpKernelInterface $kernel, callable $controller, Request $request, ?int $requestType)\n {\n parent::__construct($kernel, $request, $requestType);\n\n $this->setController($controller);\n }\n\n public function ge", "middle": "equest.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nfinal class ControllerEvent extends KernelEvent\n{\n private string|array|object $controller;\n private \\ReflectionFunctionAbstract $controllerReflector;\n\n p", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/ControllerEvent.php", "language": "php", "file_size": 5796, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * Allows to create a response for a thrown exception.\n *\n * Call setResponse() to set the response that will be returned for the\n * current request. The propagation of this", "suffix": "ernhard Schussek <bschussek@gmail.com>\n */\nfinal class ExceptionEvent extends RequestEvent\n{\n private \\Throwable $throwable;\n private bool $allowCustomResponseCode = false;\n\n public function __construct(\n HttpKernelInterface $kernel,\n ", "middle": " event is stopped as soon as a\n * response is set.\n *\n * You can also call setThrowable() to replace the thrown exception. This\n * exception will be thrown if no response is set during processing of this\n * event.\n *\n * @author B", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/ExceptionEvent.php", "language": "php", "file_size": 2180, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * Base class for events dispatched in the HttpKernel component.\n *\n * @author Bernhard Schussek <bsch", "suffix": "nelInterface::SUB_REQUEST\n */\n public function __construct(\n private HttpKernelInterface $kernel,\n private Request $request,\n private ?int $requestType,\n ) {\n }\n\n /**\n * Returns the kernel in which this event was th", "middle": "ussek@gmail.com>\n */\nclass KernelEvent extends Event\n{\n /**\n * @param int $requestType The request type the kernel is currently processing; one of\n * HttpKernelInterface::MAIN_REQUEST or HttpKer", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/KernelEvent.php", "language": "php", "file_size": 1782, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * Allows to filter a Response object.\n *\n * You can call getResponse() to retrieve the", "suffix": "ction __construct(\n HttpKernelInterface $kernel,\n Request $request,\n int $requestType,\n private Response $response,\n public readonly ?ControllerArgumentsMetadata $controllerMetadata = null,\n ) {\n parent::__const", "middle": " current response. With\n * setResponse() you can set a new response that will be returned to the\n * browser.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nfinal class ResponseEvent extends KernelEvent\n{\n public fun", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/ResponseEvent.php", "language": "php", "file_size": 1253, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * Allows to create a response for the return value of a controller.\n *\n * Call setResponse() to set the response that will be returned for the\n * current request. The propa", "suffix": "etadata;\n\n /**\n * @deprecated since Symfony 8.1, use $controllerMetadata instead\n */\n public private(set) ?ControllerArgumentsEvent $controllerArgumentsEvent {\n get {\n trigger_deprecation('symfony/http-kernel', '8.1', 'Acces", "middle": "gation of this event is stopped as soon as a\n * response is set.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nfinal class ViewEvent extends RequestEvent\n{\n public readonly ?ControllerArgumentsMetadata $controllerM", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/ViewEvent.php", "language": "php", "file_size": 2760, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Bundle;\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\AbstractBundle as BaseAbstractBundle;\n\n/**\n * An implementation of BundleInterface that adds a few conventions ", "suffix": "bundle's container extension.\n *\n * @throws \\LogicException\n */\n public function getContainerExtension(): ?ExtensionInterface\n {\n if (!isset($this->extension)) {\n $extension = $this->createContainerExtension();\n\n ", "middle": "for DependencyInjection extensions.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nabstract class Bundle extends BaseAbstractBundle implements BundleInterface\n{\n private string $namespace;\n\n /**\n * Returns the ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Bundle/Bundle.php", "language": "php", "file_size": 3499, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Debug;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\ErrorHandler\\ErrorHandler;\n\n/**\n * Configures the error handler.\n *\n * @final\n *\n * @internal\n */\nclass ErrorHandlerConfigurator\n{\n private array|int|null $levels;\n private ?int $throwAt;\n\n /**\n * @param array|int|null $levels An array map of E_* to LogLevel::* or", "suffix": "where even silenced errors are logged\n * @param bool $scope Enables/disables scoping mode\n */\n public function __construct(\n private ?LoggerInterface $logger = null,\n array|int|null $levels = \\E_ALL,\n ?int $throw", "middle": " an integer bit field of E_* constants\n * @param int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value\n * @param bool $scream Enables/disables screaming mode, ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Debug/ErrorHandlerConfigurator.php", "language": "php", "file_size": 3520, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\Profiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector;\nuse Symfony\\Component\\HttpKernel\\Profiler\\FileProfilerS", "suffix": "st = new Request();\n $request->query->set('foo', 'bar');\n $request->server->set('REMOTE_ADDR', '127.0.0.1');\n $response = new Response('', 204);\n $collector = new RequestDataCollector();\n\n $profiler = new Profiler($this->", "middle": "torage;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\n\nclass ProfilerTest extends TestCase\n{\n private string $tmp;\n private ?FileProfilerStorage $storage = null;\n\n public function testCollect()\n {\n $reque", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php", "language": "php", "file_size": 3790, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\Contro", "suffix": "ction testCollectsAttributeListenersByKernelEvent()\n {\n $container = new ContainerBuilder();\n\n $dispatcher = new Definition();\n $dispatcher->addMethodCall('addListener', [KernelEvents::CONTROLLER.'.'.TestAttribute::class, [new Refer", "middle": "llerAttributesListenerPass;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ControllerAttributesListener;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\nclass ControllerAttributesListenerPassTest extends TestCase\n{\n public fun", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ControllerAttributesListenerPassTest.php", "language": "php", "file_size": 2758, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\", "suffix": "unction testRender()\n {\n $renderer = $this->createMock(FragmentRendererInterface::class);\n $renderer->expects($this->once())->method('getName')->willReturn('foo');\n $renderer->method('render')->willReturn(new Response());\n\n $", "middle": "Response;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\LazyLoadingFragmentHandler;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentRendererInterface;\n\nclass LazyLoadingFragmentHandlerTest extends TestCase\n{\n public f", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/LazyLoadingFragmentHandlerTest.php", "language": "php", "file_size": 1446, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\LoggerPass;\nuse Symfony\\Component\\HttpKernel\\Log\\Logger;\n\n", "suffix": "er', 'Foo');\n\n (new LoggerPass())->process($container);\n\n $this->assertFalse($container->getAlias(LoggerInterface::class)->isPublic());\n }\n\n public function testDoNotOverrideExistingLogger()\n {\n $container = new ContainerBuild", "middle": "/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass LoggerPassTest extends TestCase\n{\n public function testAlwaysSetAutowiringAlias()\n {\n $container = new ContainerBuilder();\n $container->register('logg", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/LoggerPassTest.php", "language": "php", "file_size": 1985, "cut_index": 537, "middle_length": 229}} {"prefix": "DependencyInjection\\Attribute\\AutowireLocator;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Target;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Com", "suffix": "catorsPass;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\DataCollector\\DummyController;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Suit;\n\nclass RegisterControllerArgumentLocatorsPassTest extends TestCase\n{\n public function testInvalidClass()\n ", "middle": "ponent\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\RegisterControllerArgumentLo", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php", "language": "php", "file_size": 32443, "cut_index": 1331, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ServicesResetter as BaseServicesResetter;\nuse Sy", "suffix": "cesResetter;\n\n#[Group('legacy')]\n#[IgnoreDeprecations]\nclass ServicesResetterTest extends TestCase\n{\n public function testDeprecatedClassExtendsNewClass()\n {\n $this->assertTrue(is_subclass_of(ServicesResetter::class, BaseServicesResetter::clas", "middle": "mfony\\Component\\HttpKernel\\DependencyInjection\\Servi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ServicesResetterTest.php", "language": "php", "file_size": 841, "cut_index": 520, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * Allows filtering of controller arguments.\n *\n * You can call getController() to retrieve the controller and", "suffix": "r.\n *\n * @author Christophe Coevoet <stof@notk.org>\n */\nfinal class ControllerArgumentsEvent extends KernelEvent\n{\n private ControllerEvent $controllerEvent;\n private array $namedArguments;\n\n public function __construct(\n HttpKernelInterfac", "middle": " getArguments\n * to retrieve the current arguments. With setArguments() you can replace\n * arguments that are used to call the controller.\n *\n * Arguments set in the event must be compatible with the signature of the\n * controlle", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/ControllerArgumentsEvent.php", "language": "php", "file_size": 3813, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Psr\\EventDispatcher\\StoppableEventInterface;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\n\n/**\n * Event dispatched for each controller attribute.\n *\n * @template T of object\n *\n * @author Nicolas Grekas <p", "suffix": "* @var T */\n public readonly object $attribute,\n public readonly KernelEvent $kernelEvent,\n private readonly ?ExpressionLanguage $expressionLanguage = null,\n ) {\n $this->controller = match (true) {\n $kernelEvent in", "middle": "@tchwork.com>\n */\nfinal class ControllerAttributeEvent implements StoppableEventInterface\n{\n private string|array|object|null $controller;\n\n /**\n * @param T $attribute\n */\n public function __construct(\n /*", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/ControllerAttributeEvent.php", "language": "php", "file_size": 2522, "cut_index": 563, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * Triggered whenever a request is fully processed.\n *\n * @author Benjamin Eberlei <kontakt@beberlei.de>\n */\nfinal class Finish", "suffix": "on __construct(\n HttpKernelInterface $kernel,\n Request $request,\n ?int $requestType,\n public readonly ?ControllerMetadata $controllerMetadata = null,\n ) {\n parent::__construct($kernel, $request, $requestType);\n }\n}\n", "middle": "RequestEvent extends KernelEvent\n{\n public functi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/FinishRequestEvent.php", "language": "php", "file_size": 825, "cut_index": 517, "middle_length": 52}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Bundle;\n\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\AbstractBundle as BaseAbstractBundle;\n\n/**\n * A Bundle that provides configuration hooks.\n *\n * @author Yonel Cer", "suffix": "actBundle extends Bundle\n{\n public function getContainerExtension(): ?ExtensionInterface\n {\n return BaseAbstractBundle::getContainerExtension();\n }\n\n public function getPath(): string\n {\n return BaseAbstractBundle::getPath();\n ", "middle": "uto <yonelceruto@gmail.com>\n */\nabstract class Abstr", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Bundle/AbstractBundle.php", "language": "php", "file_size": 835, "cut_index": 520, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Debug;\n\nuse Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher as BaseTraceableEventDispatcher;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Collects some data about event listeners.\n *\n * This event dispatcher delegates the dispatching to another one.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclas", "suffix": " switch ($eventName) {\n case KernelEvents::REQUEST:\n $event->getRequest()->attributes->set('_stopwatch_token', bin2hex(random_bytes(3)));\n $this->stopwatch->openSection();\n break;\n case K", "middle": "s TraceableEventDispatcher extends BaseTraceableEventDispatcher\n{\n protected function beforeDispatch(string $eventName, object $event): void\n {\n if ($this->disabled?->__invoke()) {\n return;\n }\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php", "language": "php", "file_size": 3685, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\nuse Symfony\\Component\\HttpKernel\\DependencyInjec", "suffix": "$services = [\n 'n3' => [[]],\n 'n1' => [['priority' => 200]],\n 'n2' => [['priority' => 100]],\n ];\n\n $expected = [\n new Reference('n1'),\n new Reference('n2'),\n new Reference('n3'", "middle": "tion\\ControllerArgumentValueResolverPass;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\nclass ControllerArgumentValueResolverPassTest extends TestCase\n{\n public function testServicesAreOrderedAccordingToPriority()\n {\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ControllerArgumentValueResolverPassTest.php", "language": "php", "file_size": 4804, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfon", "suffix": "p('legacy')]\n#[IgnoreDeprecations]\nclass MergeExtensionConfigurationPassTest extends TestCase\n{\n public function testAutoloadMainExtension()\n {\n $container = new ContainerBuilder();\n $container->registerExtension(new LoadedExtension());", "middle": "y\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\MergeExtensionConfigurationPass;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\AcmeFooBundle\\AcmeFooBundle;\n\n#[Grou", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/MergeExtensionConfigurationPassTest.php", "language": "php", "file_size": 2970, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\ControllerMetadata;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\Attribute\\Foo;\n\nclass ArgumentMetadataTest extends TestCase\n{\n public function t", "suffix": "()\n {\n $argument = new ArgumentMetadata('foo', 'string', false, true, 'default value', true);\n\n $this->assertTrue($argument->isNullable());\n $this->assertTrue($argument->hasDefaultValue());\n $this->assertSame('default value',", "middle": "estWithBcLayerWithDefault()\n {\n $argument = new ArgumentMetadata('foo', 'string', false, true, 'default value');\n\n $this->assertFalse($argument->isNullable());\n }\n\n public function testDefaultValueAvailable", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataTest.php", "language": "php", "file_size": 1921, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\n\n/**\n * Provides read-only access to controller metadata.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ControllerMetadata\n{\n public function __construct(\n pri", "suffix": "act\n {\n return $this->controllerEvent->getControllerReflector();\n }\n\n /**\n * @template T of object\n *\n * @param class-string<T>|'*'|null $className\n *\n * @return ($className is null ? array<class-string, list<object>> : ", "middle": "vate ControllerEvent $controllerEvent,\n ) {\n }\n\n public function getController(): callable\n {\n return $this->controllerEvent->getController();\n }\n\n public function getReflector(): \\ReflectionFunctionAbstr", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/ControllerMetadata.php", "language": "php", "file_size": 1393, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * Allows to execute logic after a response was sent.\n *\n * Since it's only tr", "suffix": "{\n public function __construct(\n HttpKernelInterface $kernel,\n Request $request,\n private Response $response,\n ) {\n parent::__construct($kernel, $request, HttpKernelInterface::MAIN_REQUEST);\n }\n\n public function getR", "middle": "iggered on main requests, the `getRequestType()` method\n * will always return the value of `HttpKernelInterface::MAIN_REQUEST`.\n *\n * @author Jordi Boggiano <j.boggiano@seld.be>\n */\nfinal class TerminateEvent extends KernelEvent\n", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/TerminateEvent.php", "language": "php", "file_size": 1066, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Bundle;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\BundleIn", "suffix": " ) {\n }\n\n public function boot(): void\n {\n $this->bundle->boot();\n }\n\n public function shutdown(): void\n {\n $this->bundle->shutdown();\n }\n\n public function build(ContainerBuilder $container): void\n {\n $this", "middle": "terface as BaseBundleInterface;\n\n/**\n * @internal\n */\nfinal class BundleAdapter implements BundleInterface\n{\n private string $namespace;\n\n public function __construct(\n private readonly BaseBundleInterface $bundle,\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Bundle/BundleAdapter.php", "language": "php", "file_size": 1702, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpKernel\\DependencyI", "suffix": " public function testCompilerPass()\n {\n $container = new ContainerBuilder();\n\n $container->register('locale_aware_listener', LocaleAwareListener::class)\n ->setPublic(true)\n ->setArguments([null, null]);\n", "middle": "njection\\RegisterLocaleAwareServicesPass;\nuse Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener;\nuse Symfony\\Contracts\\Translation\\LocaleAwareInterface;\n\nclass RegisterLocaleAwareServicesPassTest extends TestCase\n{\n ", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterLocaleAwareServicesPassTest.php", "language": "php", "file_size": 2374, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInject", "suffix": "\\FragmentRendererInterface;\n\nclass FragmentRendererPassTest extends TestCase\n{\n /**\n * Tests that content rendering not implementing FragmentRendererInterface\n * triggers an exception.\n */\n public function testContentRendererWithoutInterf", "middle": "ion\\ServiceLocator;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\FragmentRendererPass;\nuse Symfony\\Component\\HttpKernel\\Fragment", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/FragmentRendererPassTest.php", "language": "php", "file_size": 2717, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Allows to create a response for a request.\n *\n * Call setResponse() to set the response that will be returned for the\n * current request. The propagation of this event is stopped as so", "suffix": "c function getResponse(): ?Response\n {\n return $this->response;\n }\n\n /**\n * Sets a response and stops event propagation.\n */\n public function setResponse(Response $response): void\n {\n $this->response = $response;\n\n ", "middle": "on as a\n * response is set.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass RequestEvent extends KernelEvent\n{\n private ?Response $response = null;\n\n /**\n * Returns the response object.\n */\n publi", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Event/RequestEvent.php", "language": "php", "file_size": 1262, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HttpKernel\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveInvalidReferencesPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\RegisterControllerArgumentLoca", "suffix": "ntainer = new ContainerBuilder();\n $resolver = $container->register('argument_resolver.service')->addArgument([]);\n\n $container->register('stdClass', 'stdClass');\n $container->register(TestCase::class, 'stdClass');\n $container->", "middle": "torsPass;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\RemoveEmptyControllerArgumentLocatorsPass;\n\nclass RemoveEmptyControllerArgumentLocatorsPassTest extends TestCase\n{\n public function testProcess()\n {\n $co", "meta": {"filepath": "src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RemoveEmptyControllerArgumentLocatorsPassTest.php", "language": "php", "file_size": 4308, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Attribute;\n\nuse Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener;\n\n/**\n * Defines a listener for the \"entered\" event of a workflow.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute:", "suffix": "ring|null $place The place name to which the listener listens to\n * @param string|null $method The method to run when the listened event is triggered\n * @param int $priority The priority of this listener if several are declared f", "middle": ":TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class AsEnteredListener extends AsEventListener\n{\n use BuildEventNameTrait;\n\n /**\n * @param string|null $workflow The id of the workflow to listen to\n * @param st", "meta": {"filepath": "src/Symfony/Component/Workflow/Attribute/AsEnteredListener.php", "language": "php", "file_size": 1459, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\DataCollector;\n\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\Dat", "suffix": "ableWorkflow;\nuse Symfony\\Component\\Workflow\\Dumper\\MermaidDumper;\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\TransitionBlocker;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.in", "middle": "aCollector\\LateDataCollectorInterface;\nuse Symfony\\Component\\VarDumper\\Caster\\Caster;\nuse Symfony\\Component\\VarDumper\\Cloner\\Stub;\nuse Symfony\\Component\\Workflow\\Debug\\ListenerExtractor;\nuse Symfony\\Component\\Workflow\\Debug\\Trace", "meta": {"filepath": "src/Symfony/Component/Workflow/DataCollector/WorkflowDataCollector.php", "language": "php", "file_size": 4889, "cut_index": 614, "middle_length": 229}} {"prefix": "ow = new Workflow(new Definition([], []), new MethodMarkingStore());\n\n $workflow->getMarking($subject);\n }\n\n public function testGetMarkingWithImpossiblePlace()\n {\n $this->expectException(LogicException::class);\n $this->expectExceptionMessage('Place \"nope\" is not valid for workflow \"unnamed\".');\n $subject = new Subject();\n $subject->setMarking(['nope' => 1]);\n $workflow = new Workflow(new Definition([], []), new MethodMarkingStore());\n\n $workflow->ge", "suffix": "nition, new MethodMarkingStore());\n\n $marking = $workflow->getMarking($subject);\n\n $this->assertInstanceOf(Marking::class, $marking);\n $this->assertTrue($marking->has('a'));\n $this->assertSame(['a' => 1], $subject->getMarking())", "middle": "tMarking($subject);\n }\n\n public function testGetMarkingWithEmptyInitialMarking()\n {\n $definition = $this->createComplexWorkflowDefinition();\n $subject = new Subject();\n $workflow = new Workflow($defi", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/WorkflowTest.php", "language": "php", "file_size": 41723, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\MarkingStore;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MethodMarkingStore;\nuse Symfony\\Component\\Workflow\\Tests\\Subject;\n\nclass MethodMarkingStoreTest extends TestCase\n{\n public function testGetSetMarkingWithMultipleState()\n {\n $subject = new Subject();\n\n $markingStore = new MethodMarkingStore(false);\n\n $marking = $markingStore->getMarking($subject);\n\n $this->ass", "suffix": " $this->assertSame(['foo' => 'bar'], $subject->getContext());\n\n $marking2 = $markingStore->getMarking($subject);\n\n $this->assertEquals($marking, $marking2);\n }\n\n public function testGetSetMarkingWithSingleState()\n {\n $subjec", "middle": "ertCount(0, $marking->getPlaces());\n\n $marking->mark('first_place');\n\n $markingStore->setMarking($subject, $marking, ['foo' => 'bar']);\n\n $this->assertSame(['first_place' => 1], $subject->getMarking());\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/MarkingStore/MethodMarkingStoreTest.php", "language": "php", "file_size": 7798, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\MarkingStore;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MethodMarkingStore;\n\nclass PropertiesMarkingStoreTest extends TestCase\n{\n public function testGetSetMarkingWithMultipleState()\n {\n $subject = new SubjectWithProperties();\n $markingStore = new MethodMarkingStore(false);\n\n $marking = $markingStore->getMarking($subject);\n\n $this->assertCount(0, $marking->getPlac", "suffix": "Marking($subject);\n\n $this->assertEquals($marking, $marking2);\n }\n\n public function testGetSetMarkingWithSingleState()\n {\n $subject = new SubjectWithProperties();\n $markingStore = new MethodMarkingStore(true, 'place', 'placeCo", "middle": "es());\n\n $marking->mark('first_place');\n\n $markingStore->setMarking($subject, $marking, ['foo' => 'bar']);\n\n $this->assertSame(['first_place' => 1], $subject->marking);\n\n $marking2 = $markingStore->get", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/MarkingStore/PropertiesMarkingStoreTest.php", "language": "php", "file_size": 5251, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Attribute;\nuse Symfony\\Component\\Workflow\\Exception\\LogicException;\n\nclass AsListenerTest extends TestCase\n{\n #[DataProvider('provideOkTests')]\n public function testOk(string $class, string $expectedEvent,", "suffix": "\n {\n yield [Attribute\\AsAnnounceListener::class, 'workflow.announce'];\n yield [Attribute\\AsAnnounceListener::class, 'workflow.w.announce', 'w'];\n yield [Attribute\\AsAnnounceListener::class, 'workflow.w.announce.n', 'w', 'n'];\n\n ", "middle": " ?string $workflow = null, ?string $node = null)\n {\n $attribute = new $class($workflow, $node);\n\n $this->assertSame($expectedEvent, $attribute->event);\n }\n\n public static function provideOkTests(): iterable", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Attribute/AsListenerTest.php", "language": "php", "file_size": 3766, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\DataCollector;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenSto", "suffix": "ollector\\WorkflowDataCollector;\nuse Symfony\\Component\\Workflow\\EventListener\\ExpressionLanguage;\nuse Symfony\\Component\\Workflow\\EventListener\\GuardListener;\nuse Symfony\\Component\\Workflow\\Tests\\WorkflowBuilderTrait;\nuse Symfony\\Component\\Workflow\\Workflow;", "middle": "rage;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy;\nuse Symfony\\Component\\Validator\\ValidatorBuilder;\nuse Symfony\\Component\\Workflow\\DataC", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/DataCollector/WorkflowDataCollectorTest.php", "language": "php", "file_size": 4609, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\SupportStrategy;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\SupportStrategy\\InstanceOfSupportStrategy;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\nclass InstanceOfSupportStrategyTest extends TestCase\n{\n ", "suffix": ");\n }\n\n public function testSupportsIfNotClassInstance()\n {\n $strategy = new InstanceOfSupportStrategy(Subject2::class);\n\n $this->assertFalse($strategy->supports($this->createStub(WorkflowInterface::class), new Subject1()));\n }\n}\n", "middle": " public function testSupportsIfClassInstance()\n {\n $strategy = new InstanceOfSupportStrategy(Subject1::class);\n\n $this->assertTrue($strategy->supports($this->createStub(WorkflowInterface::class), new Subject1())", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/SupportStrategy/InstanceOfSupportStrategyTest.php", "language": "php", "file_size": 1037, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Validator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Arc;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Exception\\InvalidDefinitionException;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\Validator\\StateMachineValidator;\n\nclass StateMachineValidatorTest extends TestCase\n{\n public function testWithMultipleTransitionWithSameNameShareInput()\n {\n ", "suffix": "ition('t1', 'a', 'b');\n $transitions[] = new Transition('t1', 'a', 'c');\n $definition = new Definition($places, $transitions);\n\n (new StateMachineValidator())->validate($definition, 'foo');\n\n // The graph looks like:\n //\n", "middle": " $this->expectException(InvalidDefinitionException::class);\n $this->expectExceptionMessage('A transition from a place/state must have an unique name.');\n $places = ['a', 'b', 'c'];\n $transitions[] = new Trans", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Validator/StateMachineValidatorTest.php", "language": "php", "file_size": 5507, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Validator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Arc;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Exception\\InvalidDefinitionException;\nuse Symfony\\Component\\Workflow\\Tests\\WorkflowBuilderTrait;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\Validato", "suffix": "transitions[] = new Transition('t0', 'c', 'b');\n $transitions[] = new Transition('t1', 'a', 'b');\n $transitions[] = new Transition('t1', 'a', 'c');\n\n $definition = new Definition($places, $transitions);\n\n $this->expectException(", "middle": "r\\WorkflowValidator;\n\nclass WorkflowValidatorTest extends TestCase\n{\n use WorkflowBuilderTrait;\n\n public function testWorkflowWithInvalidNames()\n {\n $places = range('a', 'c');\n\n $transitions = [];\n $", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Validator/WorkflowValidatorTest.php", "language": "php", "file_size": 4210, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component", "suffix": "nsition;\nuse Symfony\\Component\\Workflow\\Workflow;\n\nclass WorkflowDumpCommandTest extends TestCase\n{\n #[DataProvider('provideCompletionSuggestions')]\n public function testComplete(array $input, array $expectedSuggestions)\n {\n $application = ", "middle": "\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Workflow\\Command\\WorkflowDumpCommand;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Tra", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Command/WorkflowDumpCommandTest.php", "language": "php", "file_size": 3797, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\AbstractLogger;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MethodMarkingSto", "suffix": "\n public function testItWorks()\n {\n $definition = $this->createSimpleWorkflowDefinition();\n\n $object = new Subject();\n\n $logger = new Logger();\n\n $ed = new EventDispatcher();\n $ed->addSubscriber(new AuditTrailListen", "middle": "re;\nuse Symfony\\Component\\Workflow\\Tests\\Subject;\nuse Symfony\\Component\\Workflow\\Tests\\WorkflowBuilderTrait;\nuse Symfony\\Component\\Workflow\\Workflow;\n\nclass AuditTrailListenerTest extends TestCase\n{\n use WorkflowBuilderTrait;\n", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/EventListener/AuditTrailListenerTest.php", "language": "php", "file_size": 1786, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy;\nus", "suffix": "Symfony\\Component\\Validator\\ValidatorBuilder;\nuse Symfony\\Component\\Workflow\\Event\\GuardEvent;\nuse Symfony\\Component\\Workflow\\EventListener\\ExpressionLanguage;\nuse Symfony\\Component\\Workflow\\EventListener\\GuardExpression;\nuse Symfony\\Component\\Workflow\\Eve", "middle": "e Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Validator\\ConstraintViolation;\nuse Symfony\\Component\\Validator\\ConstraintViolationList;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse ", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/EventListener/GuardListenerTest.php", "language": "php", "file_size": 6650, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Event;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Event\\AnnounceEvent;\nuse Symfony\\Component\\Workflow\\Event\\CompletedEvent;\nuse Symfony\\Component\\Workflow\\Event\\EnteredEvent;\nuse Symfony\\Component\\Workflow\\Event\\En", "suffix": "class-string $class\n */\n #[DataProvider('getEvents')]\n public function testEventNames(string $class, ?string $workflowName, ?string $transitionOrPlaceName, string $expected)\n {\n $name = $class::getName($workflowName, $transitionOrPlaceN", "middle": "terEvent;\nuse Symfony\\Component\\Workflow\\Event\\GuardEvent;\nuse Symfony\\Component\\Workflow\\Event\\LeaveEvent;\nuse Symfony\\Component\\Workflow\\Event\\TransitionEvent;\n\nclass EventNameTraitTest extends TestCase\n{\n /**\n * @param ", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Event/EventNameTraitTest.php", "language": "php", "file_size": 3033, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Debug;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nus", "suffix": "rExtractor;\nuse Symfony\\Component\\Workflow\\EventListener\\ExpressionLanguage;\nuse Symfony\\Component\\Workflow\\EventListener\\GuardListener;\nuse Symfony\\Component\\Workflow\\Tests\\WorkflowBuilderTrait;\nuse Symfony\\Component\\Workflow\\Workflow;\n\nclass ListenerExtr", "middle": "e Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy;\nuse Symfony\\Component\\Validator\\ValidatorBuilder;\nuse Symfony\\Component\\Workflow\\Debug\\Listene", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Debug/ListenerExtractorTest.php", "language": "php", "file_size": 4009, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Debug;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\Workflow\\Debug\\TraceableWorkflow;\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\TransitionBlockerList;\nuse Symf", "suffix": " function setUp(): void\n {\n $this->innerWorkflow = $this->createMock(Workflow::class);\n $this->stopwatch = new Stopwatch();\n\n $this->traceableWorkflow = new TraceableWorkflow(\n $this->innerWorkflow,\n $this->sto", "middle": "ony\\Component\\Workflow\\Workflow;\n\nclass TraceableWorkflowTest extends TestCase\n{\n private MockObject&Workflow $innerWorkflow;\n\n private Stopwatch $stopwatch;\n\n private TraceableWorkflow $traceableWorkflow;\n\n protected", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Debug/TraceableWorkflowTest.php", "language": "php", "file_size": 3490, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Metadata;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Metadata\\InMemoryMetadataStore;\nuse Symfony\\Component\\Workflow\\Transition;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass InMemoryMetadataStoreTest extends TestCase\n{\n private InMemoryMetad", "suffix": "=> [\n 'title' => 'place_a title',\n ],\n ];\n $transitionsMetadata = new \\SplObjectStorage();\n $this->transition = new Transition('transition_1', [], []);\n $transitionsMetadata[$this->transition] = [\n ", "middle": "ataStore $store;\n private Transition $transition;\n\n protected function setUp(): void\n {\n $workflowMetadata = [\n 'title' => 'workflow title',\n ];\n $placesMetadata = [\n 'place_a' ", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Metadata/InMemoryMetadataStoreTest.php", "language": "php", "file_size": 2967, "cut_index": 563, "middle_length": 229}} {"prefix": "c function testDumpWithoutMarking($definition, $expected, $withMetadata)\n {\n $dump = (new GraphvizDumper())->dump($definition, null, ['with-metadata' => $withMetadata]);\n\n $this->assertEquals($expected, $dump);\n }\n\n #[DataProvider('provideWorkflowDefinitionWithMarking')]\n public function testDumpWithMarking($definition, $marking, $expected, $withMetadata)\n {\n $dump = (new GraphvizDumper())->dump($definition, $marking, ['with-metadata' => $withMetadata]);\n\n $this->a", "suffix": ", false];\n yield [self::createSimpleWorkflowDefinition(), self::provideSimpleWorkflowDumpWithoutMarking(), false];\n yield [self::createComplexWorkflowDefinition(), self::provideComplexWorkflowDumpWithoutMarkingWithMetadata(), true];\n y", "middle": "ssertEquals($expected, $dump);\n }\n\n public static function provideWorkflowDefinitionWithoutMarking(): \\Generator\n {\n yield [self::createComplexWorkflowDefinition(), self::provideComplexWorkflowDumpWithoutMarking()", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Dumper/GraphvizDumperTest.php", "language": "php", "file_size": 28485, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\MarkingStore;\n\nuse Symfony\\Component\\Workflow\\Exception\\LogicException;\nuse Symfony\\Component\\Workflow\\Marking;\n\n/**\n * MethodMarkingStore stores the marking with a subject's public method\n * or public property.\n *\n * This store deals with a \"single state\" or \"multiple state\" marking.\n *\n * \"single state\" marking means a subject can be in one and only one state at\n * the same time. Use it with state machine. It uses a string to store the", "suffix": "\nfinal class MethodMarkingStore implements MarkingStoreInterface\n{\n /** @var array<class-string, \\Closure(object): mixed> */\n private array $getters = [];\n /** @var array<class-string, \\Closure(object, mixed, array)> */\n private array $setters ", "middle": "\n * marking.\n *\n * \"multiple state\" marking means a subject can be in many states at the same\n * time. Use it with workflow. It uses an array of strings to store the marking.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */", "meta": {"filepath": "src/Symfony/Component/Workflow/MarkingStore/MethodMarkingStore.php", "language": "php", "file_size": 5458, "cut_index": 716, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\MarkingStore;\n\nuse Symfony\\Component\\Workflow\\Marking;\n\n/**\n * MarkingStoreInterface is the interface between the Workflow Component and a\n * plain old PHP object: the subject.\n *\n * It converts the Marking into something understandable by the subject and vice\n * versa.\n ", "suffix": "/\ninterface MarkingStoreInterface\n{\n /**\n * Gets a Marking from a subject.\n */\n public function getMarking(object $subject): Marking;\n\n /**\n * Sets a Marking to a subject.\n */\n public function setMarking(object $subject, Marking", "middle": "*\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n *", "meta": {"filepath": "src/Symfony/Component/Workflow/MarkingStore/MarkingStoreInterface.php", "language": "php", "file_size": 897, "cut_index": 547, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Exception;\n\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @author Andrew Tch <andrew.tchircoff@gmail.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass TransitionException extends LogicException\n{\n public function __", "suffix": "essage);\n }\n\n public function getSubject(): object\n {\n return $this->subject;\n }\n\n public function getTransitionName(): string\n {\n return $this->transitionName;\n }\n\n public function getWorkflow(): WorkflowInterface\n ", "middle": "construct(\n private object $subject,\n private string $transitionName,\n private WorkflowInterface $workflow,\n string $message,\n private array $context = [],\n ) {\n parent::__construct($m", "meta": {"filepath": "src/Symfony/Component/Workflow/Exception/TransitionException.php", "language": "php", "file_size": 1131, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Attribute;\n\nuse Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener;\n\n/**\n * Defines a listener for the \"completed\" event of a workflow.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribut", "suffix": "m string|null $transition The transition name to which the listener listens to\n * @param string|null $method The method to run when the listened event is triggered\n * @param int $priority The priority of this listener if several are d", "middle": "e::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class AsCompletedListener extends AsEventListener\n{\n use BuildEventNameTrait;\n\n /**\n * @param string|null $workflow The id of the workflow to listen to\n * @para", "meta": {"filepath": "src/Symfony/Component/Workflow/Attribute/AsCompletedListener.php", "language": "php", "file_size": 1490, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Attribute;\n\nuse Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener;\n\n/**\n * Defines a listener for the \"enter\" event of a workflow.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::T", "suffix": "|null $place The place name to which the listener listens to\n * @param string|null $method The method to run when the listened event is triggered\n * @param int $priority The priority of this listener if several are declared for t", "middle": "ARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class AsEnterListener extends AsEventListener\n{\n use BuildEventNameTrait;\n\n /**\n * @param string|null $workflow The id of the workflow to listen to\n * @param string", "meta": {"filepath": "src/Symfony/Component/Workflow/Attribute/AsEnterListener.php", "language": "php", "file_size": 1453, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Attribute;\n\nuse Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener;\n\n/**\n * Defines a listener for a transition event of a workflow.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::", "suffix": "string|null $transition The transition name to which the listener listens to\n * @param string|null $method The method to run when the listened event is triggered\n * @param int $priority The priority of this listener if several are dec", "middle": "TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class AsTransitionListener extends AsEventListener\n{\n use BuildEventNameTrait;\n\n /**\n * @param string|null $workflow The id of the workflow to listen to\n * @param ", "meta": {"filepath": "src/Symfony/Component/Workflow/Attribute/AsTransitionListener.php", "language": "php", "file_size": 1489, "cut_index": 524, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Attribute;\n\nuse Symfony\\Component\\Workflow\\Exception\\LogicException;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n *\n * @internal\n */\ntrait BuildEventNameTrait\n{\n private static function buildEventName(string $keyword, string $ar", "suffix": " without a \"workflow\" argument.', $argument, self::class));\n }\n\n return \\sprintf('workflow.%s', $keyword);\n }\n\n if (null === $node) {\n return \\sprintf('workflow.%s.%s', $workflow, $keyword);\n }\n\n ", "middle": "gument, ?string $workflow = null, ?string $node = null): string\n {\n if (null === $workflow) {\n if (null !== $node) {\n throw new LogicException(\\sprintf('The \"%s\" argument of \"%s\" cannot be used", "meta": {"filepath": "src/Symfony/Component/Workflow/Attribute/BuildEventNameTrait.php", "language": "php", "file_size": 1076, "cut_index": 515, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\SupportStrategy;\n\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @author Andreas Kleemann <akleemann@inviqa.com>\n * @author Amrouche Hamza <hamza.simperfit@gmail.com>\n */\nfinal class InstanceOfSupportStrategy implements WorkflowSupportStrategy", "suffix": " private string $className,\n ) {\n }\n\n public function supports(WorkflowInterface $workflow, object $subject): bool\n {\n return $subject instanceof $this->className;\n }\n\n public function getClassName(): string\n {\n return $t", "middle": "Interface\n{\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/SupportStrategy/InstanceOfSupportStrategy.php", "language": "php", "file_size": 861, "cut_index": 529, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Validator;\n\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Exception\\InvalidDefinitionException;\n\n/**\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass WorkflowValidator implements DefinitionValidatorInterface\n{\n public function __construct(\n ", "suffix": "s($definition->getPlaces(), []);\n foreach ($definition->getTransitions() as $transition) {\n foreach ($transition->getFroms(true) as $arc) {\n $from = $arc->place;\n if (\\in_array($transition->getName(), $places", "middle": "private bool $singlePlace = false,\n ) {\n }\n\n public function validate(Definition $definition, string $name): void\n {\n // Make sure all transitions for one place has unique name.\n $places = array_fill_key", "meta": {"filepath": "src/Symfony/Component/Workflow/Validator/WorkflowValidator.php", "language": "php", "file_size": 3063, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputO", "suffix": "rkflow;\nuse Symfony\\Component\\Workflow\\Dumper\\GraphvizDumper;\nuse Symfony\\Component\\Workflow\\Dumper\\MermaidDumper;\nuse Symfony\\Component\\Workflow\\Dumper\\PlantUmlDumper;\nuse Symfony\\Component\\Workflow\\Dumper\\StateMachineGraphvizDumper;\nuse Symfony\\Component", "middle": "ption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Workflow\\Debug\\ListenerExtractor;\nuse Symfony\\Component\\Workflow\\Debug\\TraceableWo", "meta": {"filepath": "src/Symfony/Component/Workflow/Command/WorkflowDumpCommand.php", "language": "php", "file_size": 6011, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\EventListener;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchyInterface;\n", "suffix": "Listener\n{\n public function __construct(\n private array $configuration,\n private ExpressionLanguage $expressionLanguage,\n private TokenStorageInterface $tokenStorage,\n private AuthorizationCheckerInterface $authorizationCheck", "middle": "use Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Component\\Workflow\\Event\\GuardEvent;\nuse Symfony\\Component\\Workflow\\TransitionBlocker;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass Guard", "meta": {"filepath": "src/Symfony/Component/Workflow/EventListener/GuardListener.php", "language": "php", "file_size": 3367, "cut_index": 614, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Arc;\n\nclass ArcTest extends TestCase\n{\n public function testConstructorWithInvalidPlaceName()\n {\n $this->expectException(\\InvalidArgumentException::class", "suffix": "lass);\n $this->expectExceptionMessage('The weight must be greater than 0, 0 given.');\n\n new Arc('not empty', 0);\n }\n\n public function testConstructorWithZeroPlaceName()\n {\n $arc = new Arc('0', 1);\n $this->assertEquals('", "middle": ");\n $this->expectExceptionMessage('The place name cannot be empty.');\n\n new Arc('', 1);\n }\n\n public function testConstructorWithInvalidWeight()\n {\n $this->expectException(\\InvalidArgumentException::c", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/ArcTest.php", "language": "php", "file_size": 1023, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Exception\\LogicException;\nuse Symfony\\Component\\Workflow\\Transition;\n\nclass DefinitionTest extends TestCase\n{\n public function testAddPlaces()\n {\n $places = rang", "suffix": "tialPlace()\n {\n $places = range('a', 'e');\n $definition = new Definition($places, [], $places[3]);\n\n $this->assertEquals([$places[3]], $definition->getInitialPlaces());\n }\n\n public function testSetInitialPlaces()\n {\n ", "middle": "e('a', 'e');\n $definition = new Definition($places, []);\n\n $this->assertCount(5, $definition->getPlaces());\n\n $this->assertEquals(['a'], $definition->getInitialPlaces());\n }\n\n public function testSetIni", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/DefinitionTest.php", "language": "php", "file_size": 2377, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MarkingStoreInterface;\nuse Symfony\\Component\\Workflow\\Registry;\nuse Symfony\\Component\\Work", "suffix": "istry = new Registry();\n\n $this->registry->addWorkflow(new Workflow(new Definition([], []), $this->createStub(MarkingStoreInterface::class), new EventDispatcher(), 'workflow1'), $this->createWorkflowSupportStrategy(Subject1::class));\n $this->", "middle": "flow\\SupportStrategy\\WorkflowSupportStrategyInterface;\nuse Symfony\\Component\\Workflow\\Workflow;\n\nclass RegistryTest extends TestCase\n{\n private Registry $registry;\n\n protected function setUp(): void\n {\n $this->reg", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/RegistryTest.php", "language": "php", "file_size": 4480, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Arc;\nuse Symfony\\Component\\Workflow\\Transition;\n\nclass TransitionTest extends TestCase\n{\n public static function provideConstructorTests(): i", "suffix": "Tests')]\n public function testConstructor(mixed $froms, mixed $tos)\n {\n $transition = new Transition('name', $froms, $tos);\n\n $this->assertSame('name', $transition->getName());\n $this->assertCount(1, $transition->getFroms(true));", "middle": "terable\n {\n yield 'plain strings' => ['a', 'b'];\n yield 'array of strings' => [['a'], ['b']];\n yield 'array of arcs' => [[new Arc('a', 1)], [new Arc('b', 1)]];\n }\n\n #[DataProvider('provideConstructor", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/TransitionTest.php", "language": "php", "file_size": 1863, "cut_index": 537, "middle_length": 229}} {"prefix": "t\\Workflow\\Transition;\n\ntrait WorkflowBuilderTrait\n{\n private static function createComplexWorkflowDefinition(): Definition\n {\n $places = range('a', 'g');\n\n $transitions = [];\n $transitions[] = new Transition('t1', 'a', ['b', 'c']);\n $transitions[] = new Transition('t2', ['b', 'c'], 'd');\n $transitionWithMetadataDumpStyle = new Transition('t3', 'd', 'e');\n $transitions[] = $transitionWithMetadataDumpStyle;\n $transitions[] = new Transition('t4', 'd', 'f'", "suffix": "pStyle] = [\n 'label' => 'My custom transition label 1',\n 'color' => 'Red',\n 'arrow_color' => 'Green',\n ];\n $inMemoryMetadataStore = new InMemoryMetadataStore([], [], $transitionsMetadata);\n\n return new ", "middle": ");\n $transitions[] = new Transition('t5', 'e', 'g');\n $transitions[] = new Transition('t6', 'f', 'g');\n\n $transitionsMetadata = new \\SplObjectStorage();\n $transitionsMetadata[$transitionWithMetadataDum", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/WorkflowBuilderTrait.php", "language": "php", "file_size": 10867, "cut_index": 921, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Exception;\n\nuse Symfony\\Component\\Workflow\\TransitionBlockerList;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * Thrown when a transition cannot be applied on a subject.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclas", "suffix": "ransitionBlockerList,\n array $context = [],\n ) {\n parent::__construct($subject, $transitionName, $workflow, \\sprintf('Cannot apply transition \"%s\" on workflow \"%s\".', $transitionName, $workflow->getName()), $context);\n }\n\n public fun", "middle": "s NotEnabledTransitionException extends TransitionException\n{\n public function __construct(\n object $subject,\n string $transitionName,\n WorkflowInterface $workflow,\n private TransitionBlockerList $t", "meta": {"filepath": "src/Symfony/Component/Workflow/Exception/NotEnabledTransitionException.php", "language": "php", "file_size": 1116, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Attribute;\n\nuse Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener;\n\n/**\n * Defines a listener for the \"announce\" event of a workflow.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute", "suffix": "string|null $transition The transition name to which the listener listens to\n * @param string|null $method The method to run when the listened event is triggered\n * @param int $priority The priority of this listener if several are dec", "middle": "::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class AsAnnounceListener extends AsEventListener\n{\n use BuildEventNameTrait;\n\n /**\n * @param string|null $workflow The id of the workflow to listen to\n * @param ", "meta": {"filepath": "src/Symfony/Component/Workflow/Attribute/AsAnnounceListener.php", "language": "php", "file_size": 1487, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Attribute;\n\nuse Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener;\n\n/**\n * Defines a listener for the \"leave\" event of a workflow.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::T", "suffix": "|null $place The place name to which the listener listens to\n * @param string|null $method The method to run when the listened event is triggered\n * @param int $priority The priority of this listener if several are declared for t", "middle": "ARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class AsLeaveListener extends AsEventListener\n{\n use BuildEventNameTrait;\n\n /**\n * @param string|null $workflow The id of the workflow to listen to\n * @param string", "meta": {"filepath": "src/Symfony/Component/Workflow/Attribute/AsLeaveListener.php", "language": "php", "file_size": 1453, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Validator;\n\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Exception\\InvalidDefinitionException;\n\n/**\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\nclass StateMachineValidator implements DefinitionValidatorInterface\n{\n public function validate(Definition $definition, string $name): void\n {\n ", "suffix": " throw new InvalidDefinitionException(\\sprintf('A transition in StateMachine can only have one output. But the transition \"%s\" in StateMachine \"%s\" has %d outputs.', $transition->getName(), $name, \\count($transition->getTos(true))));\n }\n ", "middle": " $transitionFromNames = [];\n foreach ($definition->getTransitions() as $transition) {\n // Make sure that each transition has exactly one TO\n if (1 !== \\count($transition->getTos(true))) {\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Validator/StateMachineValidator.php", "language": "php", "file_size": 3316, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\EventListener;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\ExpressionLanguage as BaseExpressionLanguage;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Component\\Workflow\\Exception\\RuntimeException;\n\n/**\n * Adds some function to", "suffix": "rent::registerFunctions();\n\n $this->register('is_granted', static fn ($attributes, $object = 'null') => \\sprintf('$auth_checker->isGranted(%s, %s)', $attributes, $object), static fn (array $variables, $attributes, $object = null) => $variables['auth", "middle": " the default Symfony Security ExpressionLanguage.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass ExpressionLanguage extends BaseExpressionLanguage\n{\n protected function registerFunctions(): void\n {\n pa", "meta": {"filepath": "src/Symfony/Component/Workflow/EventListener/ExpressionLanguage.php", "language": "php", "file_size": 1704, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\DefinitionBuilder;\nuse Symfony\\Component\\Workflow\\Metadata\\InMemoryMetadataStore;\nuse Symfony\\Component\\Workflow\\Transition;\n\nclass DefinitionBuilderTest extends TestCase\n{\n public function testSetInitialPlaces()\n ", "suffix": "function testAddTransition()\n {\n $places = range('a', 'b');\n\n $transition0 = new Transition('name0', $places[0], $places[1]);\n $transition1 = new Transition('name1', $places[0], $places[1]);\n $builder = new DefinitionBuilder(", "middle": " {\n $builder = new DefinitionBuilder(['a', 'b']);\n $builder->setInitialPlaces('b');\n $definition = $builder->build();\n\n $this->assertEquals(['b'], $definition->getInitialPlaces());\n }\n\n public ", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/DefinitionBuilderTest.php", "language": "php", "file_size": 2077, "cut_index": 563, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests;\n\nfinal class Subject\n{\n private string|array|null $marking;\n private array $context = [];\n\n public function __construct($marking = null)\n {\n $this->marking = $marking;\n }\n\n public function getMarking(): string|array|null\n {\n ", "suffix": "this->marking;\n }\n\n public function setMarking($marking, array $context = []): void\n {\n $this->marking = $marking;\n $this->context = $context;\n }\n\n public function getContext(): array\n {\n return $this->context;\n }\n", "middle": " return $", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Subject.php", "language": "php", "file_size": 808, "cut_index": 536, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\nuse Symfony\\Component\\Workflow\\Exception\\LogicException;\nuse Symfony\\Component\\Workflow\\Exception\\UndefinedTransitionException;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MarkingStoreInterface;\nuse Symfony\\Component\\Workflow\\Metadata\\MetadataStoreInterface;\n\n", "suffix": " function getMarking(object $subject): Marking;\n\n /**\n * Returns true if the transition is enabled.\n */\n public function can(object $subject, string $transitionName): bool;\n\n /**\n * Builds a TransitionBlockerList to know why a transiti", "middle": "/**\n * Describes a workflow instance.\n *\n * @author Amrouche Hamza <hamza.simperfit@gmail.com>\n */\ninterface WorkflowInterface\n{\n /**\n * Returns the object's Marking.\n *\n * @throws LogicException\n */\n public", "meta": {"filepath": "src/Symfony/Component/Workflow/WorkflowInterface.php", "language": "php", "file_size": 1921, "cut_index": 537, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Exception;\n\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * Thrown by Workflow when an undefined transition is applied on a subject.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass UndefinedTransitionException extends TransitionExc", "suffix": "ject, string $transitionName, WorkflowInterface $workflow, array $context = [])\n {\n parent::__construct($subject, $transitionName, $workflow, \\sprintf('Transition \"%s\" is not defined for workflow \"%s\".', $transitionName, $workflow->getName()), $c", "middle": "eption\n{\n public function __construct(object $sub", "meta": {"filepath": "src/Symfony/Component/Workflow/Exception/UndefinedTransitionException.php", "language": "php", "file_size": 855, "cut_index": 529, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Workflow\\Event\\GuardEvent;\nuse Symfony\\Component\\Workflow\\Exception\\NotEnabledTransitionException;\nuse Symfony\\Component\\Workflow\\StateMachine;\nuse Symfony\\Component\\Workflow\\TransitionBlocker;\n\nclass StateMachineTest extends TestCase\n{\n use WorkflowBuilderTrait;\n\n public function testCan()\n {\n $definition ", "suffix": "');\n $this->assertTrue($net->can($subject, 't1'));\n $subject->setMarking('d');\n $this->assertTrue($net->can($subject, 't1'));\n\n $subject->setMarking('b');\n $this->assertFalse($net->can($subject, 't1'));\n }\n\n public ", "middle": "= $this->createComplexStateMachineDefinition();\n\n $net = new StateMachine($definition);\n $subject = new Subject();\n\n // If you are in place \"a\" you should be able to apply \"t1\"\n $subject->setMarking('a", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/StateMachineTest.php", "language": "php", "file_size": 5721, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow;\n\nuse Symfony\\Component\\Workflow\\Event\\AnnounceEvent;\nuse Symfony\\Component\\Workflow\\Event\\CompletedEvent;\nuse Symfony\\Component\\Workflow\\Event\\EnteredEvent;\nuse Symfony\\Component\\Workflow\\Event\\EnterEvent;\nuse Symfony\\Component\\Workflow\\Event\\GuardEvent;\nuse Symfony\\Component\\Workflow\\E", "suffix": "nts}.\n */\nfinal class WorkflowEvents\n{\n /**\n * @Event(\"Symfony\\Component\\Workflow\\Event\\GuardEvent\")\n */\n public const GUARD = 'workflow.guard';\n\n /**\n * @Event(\"Symfony\\Component\\Workflow\\Event\\LeaveEvent\")\n */\n public const LE", "middle": "vent\\LeaveEvent;\nuse Symfony\\Component\\Workflow\\Event\\TransitionEvent;\n\n/**\n * To learn more about how workflow events work, check the documentation\n * entry at {@link https://symfony.com/doc/current/workflow/usage.html#using-eve", "meta": {"filepath": "src/Symfony/Component/Workflow/WorkflowEvents.php", "language": "php", "file_size": 2236, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\EventListener;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Workflow\\Event\\Event;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass AuditTrailListener implements EventSubscriberI", "suffix": " $this->logger->info(\\sprintf('Leaving \"%s\" for subject of class \"%s\" in workflow \"%s\".', $arc->place, $event->getSubject()::class, $event->getWorkflowName()));\n }\n }\n\n public function onTransition(Event $event): void\n {\n $this->", "middle": "nterface\n{\n public function __construct(\n private LoggerInterface $logger,\n ) {\n }\n\n public function onLeave(Event $event): void\n {\n foreach ($event->getTransition()->getFroms(true) as $arc) {\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/EventListener/AuditTrailListener.php", "language": "php", "file_size": 1762, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\DefinitionBuilder;\nuse Symfony\\Component\\Workflow\\Dumper\\MermaidDumper;\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Tests\\WorkflowBuilderTrait;\nuse Symfony\\Component\\Workflow\\Transition;\n\nclass MermaidDumperTest extends TestCase\n{\n use Workflo", "suffix": "ON_TYPE_WORKFLOW);\n\n $dump = $dumper->dump($definition);\n\n $this->assertEquals($expected, $dump);\n }\n\n #[DataProvider('provideWorkflowWithReservedWords')]\n public function testDumpWithReservedWordsAsPlacenames(Definition $definition,", "middle": "wBuilderTrait;\n\n #[DataProvider('provideWorkflowDefinitionWithoutMarking')]\n public function testDumpWithoutMarking(Definition $definition, string $expected)\n {\n $dumper = new MermaidDumper(MermaidDumper::TRANSITI", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Dumper/MermaidDumperTest.php", "language": "php", "file_size": 6936, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Dumper\\StateMachineGraphvizDumper;\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Metadata\\InMemoryMetadataStore;\nuse Symfony\\Component\\Workflow\\Tests\\WorkflowBuilderTrait;\nuse Symfony\\Component\\Workflow\\Transition;\n\nclass StateMachineGraphvizDumperTest extends TestCase\n{\n use WorkflowBuilder", "suffix": "PH'\n digraph workflow {\n ratio=\"compress\" rankdir=\"LR\"\n node [fontsize=\"9\" fontname=\"Arial\" color=\"#333333\" fillcolor=\"lightblue\" fixedsize=\"false\" width=\"1\"];\n edge [fontsize=\"9\" fontname=\"Arial\" color=\"#3", "middle": "Trait;\n\n public function testDumpWithoutMarking()\n {\n $definition = $this->createComplexStateMachineDefinition();\n\n $dump = (new StateMachineGraphvizDumper())->dump($definition);\n\n $expected = <<<'EOGRA", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Dumper/StateMachineGraphvizDumperTest.php", "language": "php", "file_size": 5195, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\DependencyInjection\\WorkflowValidatorPass;\nuse Symfony\\Component\\Workflow\\Validator\\Definition", "suffix": "nction setUp(): void\n {\n $this->container = new ContainerBuilder();\n $this->compilerPass = new WorkflowValidatorPass();\n }\n\n public function testNothingToDo()\n {\n $this->compilerPass->process($this->container);\n\n $th", "middle": "ValidatorInterface;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\nclass WorkflowValidatorPassTest extends TestCase\n{\n private ContainerBuilder $container;\n private WorkflowValidatorPass $compilerPass;\n\n protected fu", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/DependencyInjection/WorkflowValidatorPassTest.php", "language": "php", "file_size": 2062, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Event;\n\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @template T of object\n *\n * @extends Event<T>\n */\nfinal class CompletedEvent extends Event\n{\n use EventNameTrait {\n getNameForTransition as public getName;\n }\n use Ha", "suffix": " */\n public function __construct(object $subject, Marking $marking, ?Transition $transition = null, ?WorkflowInterface $workflow = null, array $context = [])\n {\n parent::__construct($subject, $marking, $transition, $workflow);\n\n $this-", "middle": "sContextTrait;\n\n /**\n * @param T $subject\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Event/CompletedEvent.php", "language": "php", "file_size": 943, "cut_index": 606, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Event;\n\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @template T of object\n *\n * @extends Event<T>\n */\nfinal class EnterEvent extends Event\n{\n use EventNameTrait {\n getNameForPlace as public getName;\n }\n use HasContextT", "suffix": "public function __construct(object $subject, Marking $marking, ?Transition $transition = null, ?WorkflowInterface $workflow = null, array $context = [])\n {\n parent::__construct($subject, $marking, $transition, $workflow);\n\n $this->context ", "middle": "rait;\n\n /**\n * @param T $subject\n */\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Event/EnterEvent.php", "language": "php", "file_size": 934, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Event;\n\nuse Symfony\\Component\\Workflow\\Exception\\InvalidArgumentException;\n\n/**\n * @author Nicolas Rigaud <squrious@protonmail.com>\n *\n * @internal\n */\ntrait EventNameTrait\n{\n /**\n * Gets the event name for workflow and transition.\n *\n * @throws I", "suffix": "$workflowName, $transitionName);\n }\n\n /**\n * Gets the event name for workflow and place.\n *\n * @throws InvalidArgumentException If $placeName is provided without $workflowName\n */\n private static function getNameForPlace(?string $w", "middle": "nvalidArgumentException If $transitionName is provided without $workflowName\n */\n private static function getNameForTransition(?string $workflowName, ?string $transitionName): string\n {\n return self::computeName(", "meta": {"filepath": "src/Symfony/Component/Workflow/Event/EventNameTrait.php", "language": "php", "file_size": 1825, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Event;\n\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @template T of object\n *\n * @extends Event<T>\n */\nfinal class LeaveEvent extends Event\n{\n use EventNameTrait {\n getNameForPlace as public getName;\n }\n use HasContextT", "suffix": "public function __construct(object $subject, Marking $marking, ?Transition $transition = null, ?WorkflowInterface $workflow = null, array $context = [])\n {\n parent::__construct($subject, $marking, $transition, $workflow);\n\n $this->context ", "middle": "rait;\n\n /**\n * @param T $subject\n */\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Event/LeaveEvent.php", "language": "php", "file_size": 934, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Debug;\n\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\EventListener\\GuardExpression;\nuse Symfony\\Component\\Workflow\\EventListener\\GuardListener;\nuse Symfony\\Component\\Workflow\\Transition;\n\n/**\n * @internal\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nfinal class Listener", "suffix": "Listeners(string $name, Definition $definition): array\n {\n if (!$this->dispatcher) {\n return [];\n }\n\n $listeners = [];\n foreach ($definition->getPlaces() as $placeId => $place) {\n $eventNames = [];\n ", "middle": "Extractor\n{\n public function __construct(\n private readonly ?EventDispatcherInterface $dispatcher = null,\n private readonly ?FileLinkFormatter $fileLinkFormatter = null,\n ) {\n }\n\n public function extract", "meta": {"filepath": "src/Symfony/Component/Workflow/Debug/ListenerExtractor.php", "language": "php", "file_size": 5346, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Attribute;\n\nuse Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener;\n\n/**\n * Defines a listener for a guard event of a workflow.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGE", "suffix": "l $transition The transition name to which the listener listens to\n * @param string|null $method The method to run when the listened event is triggered\n * @param int $priority The priority of this listener if several are declared for ", "middle": "T_METHOD | \\Attribute::IS_REPEATABLE)]\nfinal class AsGuardListener extends AsEventListener\n{\n use BuildEventNameTrait;\n\n /**\n * @param string|null $workflow The id of the workflow to listen to\n * @param string|nul", "meta": {"filepath": "src/Symfony/Component/Workflow/Attribute/AsGuardListener.php", "language": "php", "file_size": 1474, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Dumper\\PlantUmlDumper;\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Metadata\\InMemoryMetadataStore;\nuse Symfony\\Component\\Workflow\\Tests\\Workflow", "suffix": "lowWithoutMarking($definition, $marking, $expectedFileName, $title)\n {\n $dumper = new PlantUmlDumper(PlantUmlDumper::WORKFLOW_TRANSITION);\n $dump = $dumper->dump($definition, $marking, ['title' => $title]);\n // handle windows, and a", "middle": "BuilderTrait;\nuse Symfony\\Component\\Workflow\\Transition;\n\nclass PlantUmlDumperTest extends TestCase\n{\n use WorkflowBuilderTrait;\n\n #[DataProvider('provideWorkflowDefinitionWithoutMarking')]\n public function testDumpWorkf", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/Dumper/PlantUmlDumperTest.php", "language": "php", "file_size": 4288, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterf", "suffix": "PassTest extends TestCase\n{\n private ContainerBuilder $container;\n private WorkflowGuardListenerPass $compilerPass;\n\n protected function setUp(): void\n {\n $this->container = new ContainerBuilder();\n $this->compilerPass = new Workf", "middle": "ace;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy;\nuse Symfony\\Component\\Validator\\Validator\\ValidatorInterface;\nuse Symfony\\Component\\Workflow\\DependencyInjection\\WorkflowGuardListenerPass;\n\nclass WorkflowGuardListener", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/DependencyInjection/WorkflowGuardListenerPassTest.php", "language": "php", "file_size": 5161, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Event;\n\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event as BaseEvent;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n * @autho", "suffix": "t(\n private object $subject,\n private Marking $marking,\n private ?Transition $transition = null,\n private ?WorkflowInterface $workflow = null,\n ) {\n }\n\n public function getMarking(): Marking\n {\n return $this->", "middle": "r Grégoire Pineau <lyrixx@lyrixx.info>\n * @author Carlos Pereira De Amorim <carlos@shauri.fr>\n *\n * @template T of object\n */\nclass Event extends BaseEvent\n{\n /**\n * @param T $subject\n */\n public function __construc", "meta": {"filepath": "src/Symfony/Component/Workflow/Event/Event.php", "language": "php", "file_size": 1535, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Event;\n\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @template T of object\n *\n * @extends Event<T>\n */\nfinal class TransitionEvent extends Eve", "suffix": " $transition = null, ?WorkflowInterface $workflow = null, array $context = [])\n {\n parent::__construct($subject, $marking, $transition, $workflow);\n\n $this->context = $context;\n }\n\n public function setContext(array $context): void\n ", "middle": "nt\n{\n use EventNameTrait {\n getNameForTransition as public getName;\n }\n use HasContextTrait;\n\n /**\n * @param T $subject\n */\n public function __construct(object $subject, Marking $marking, ?Transition", "meta": {"filepath": "src/Symfony/Component/Workflow/Event/TransitionEvent.php", "language": "php", "file_size": 1045, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Workflow\\Marking;\n\nclass MarkingTest extends TestCase\n{\n public function testMarking()\n {\n $marking = new Marking(['a' => 1]);\n\n $this->assertTrue($marking->has('a'));\n $this->assertFalse($marking->h", "suffix": "=> 1], $marking);\n\n $marking->unmark('a');\n\n $this->assertFalse($marking->has('a'));\n $this->assertTrue($marking->has('b'));\n $this->assertPlaces(['b' => 1], $marking);\n\n $marking->unmark('b');\n\n $this->assertFalse", "middle": "as('b'));\n $this->assertPlaces(['a' => 1], $marking);\n\n $marking->mark('b');\n\n $this->assertTrue($marking->has('a'));\n $this->assertTrue($marking->has('b'));\n $this->assertPlaces(['a' => 1, 'b' ", "meta": {"filepath": "src/Symfony/Component/Workflow/Tests/MarkingTest.php", "language": "php", "file_size": 2592, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Event;\n\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @template T of object\n *\n * @extends Event<T>\n */\nfinal class EnteredEvent extends Event\n{\n use EventNameTrait {\n getNameForPlace as public getName;\n }\n use HasContex", "suffix": " public function __construct(object $subject, Marking $marking, ?Transition $transition = null, ?WorkflowInterface $workflow = null, array $context = [])\n {\n parent::__construct($subject, $marking, $transition, $workflow);\n\n $this->contex", "middle": "tTrait;\n\n /**\n * @param T $subject\n */\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Event/EnteredEvent.php", "language": "php", "file_size": 936, "cut_index": 606, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Event;\n\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @template T of object\n *\n * @extends Event<T>\n */\nfinal class AnnounceEvent extends Event\n{\n use EventNameTrait {\n getNameForTransition as public getName;\n }\n use Has", "suffix": " */\n public function __construct(object $subject, Marking $marking, ?Transition $transition = null, ?WorkflowInterface $workflow = null, array $context = [])\n {\n parent::__construct($subject, $marking, $transition, $workflow);\n\n $this->", "middle": "ContextTrait;\n\n /**\n * @param T $subject\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Event/AnnounceEvent.php", "language": "php", "file_size": 942, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Event;\n\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\TransitionBlocker;\nuse Symfony\\Component\\Workflow\\TransitionBlockerList;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @author F", "suffix": "tion as public getName;\n }\n\n private TransitionBlockerList $transitionBlockerList;\n\n /**\n * @param T $subject\n */\n public function __construct(object $subject, Marking $marking, Transition $transition, ?WorkflowInterface $workflow = nul", "middle": "abien Potencier <fabien@symfony.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n *\n * @template T of object\n *\n * @extends Event<T>\n */\nfinal class GuardEvent extends Event\n{\n use EventNameTrait {\n getNameForTransi", "meta": {"filepath": "src/Symfony/Component/Workflow/Event/GuardEvent.php", "language": "php", "file_size": 1965, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf\\TokenStorage;\n\nuse Symfony\\Component\\HttpFoundation\\Exception\\SessionNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\Security\\Csrf\\Exception\\TokenNotFoundException;\n\n/**\n * Tok", "suffix": "he session.\n */\n public const SESSION_NAMESPACE = '_csrf';\n\n /**\n * Initializes the storage with a RequestStack object and a session namespace.\n *\n * @param string $namespace The namespace under which the token is stored in the reques", "middle": "en storage that uses a Symfony Session object.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass SessionTokenStorage implements ClearableTokenStorageInterface\n{\n /**\n * The namespace used to store values in t", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php", "language": "php", "file_size": 2874, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf\\TokenStorage;\n\nuse Symfony\\Component\\Security\\Csrf\\Exception\\TokenNotFoundException;\n\n/**\n * Stores CSRF tokens.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\ninterface TokenStorageInterface\n{\n /**\n * Reads a stored CSR", "suffix": "$tokenId, #[\\SensitiveParameter] string $token): void;\n\n /**\n * Removes a CSRF token.\n *\n * @return string|null Returns the removed token if one existed, NULL\n * otherwise\n */\n public function removeToken(strin", "middle": "F token.\n *\n * @throws TokenNotFoundException If the token ID does not exist\n */\n public function getToken(string $tokenId): string;\n\n /**\n * Stores a CSRF token.\n */\n public function setToken(string ", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.php", "language": "php", "file_size": 1159, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\PropertyAccess\\Exception\\AccessException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAc", "suffix": "ue.\n *\n * Paths like foo[bar] will be evaluated to find deeper items in nested data structures.\n *\n * @throws InvalidArgumentException when the given path is malformed\n */\n public static function getParameterBagValue(ParameterBag $pa", "middle": "cess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\n\n/**\n * @internal\n */\nfinal class ParameterBagUtils\n{\n private static PropertyAccessorInterface $propertyAccessor;\n\n /**\n * Returns a \"parameter\" val", "meta": {"filepath": "src/Symfony/Component/Security/Http/ParameterBagUtils.php", "language": "php", "file_size": 2921, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http;\n\nuse Symfony\\Component\\Security\\Http\\Event\\InteractiveLoginEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\SwitchUserEvent;\n\nfinal class SecurityEvents\n{\n /**\n * The INTERACTIVE_LOGIN event occurs after a user has actively logged\n ", "suffix": "igest header.\n *\n * @Event(\"Symfony\\Component\\Security\\Http\\Event\\InteractiveLoginEvent\")\n */\n public const INTERACTIVE_LOGIN = 'security.interactive_login';\n\n /**\n * The SWITCH_USER event occurs before switch to another user and\n ", "middle": "* into your website. It is important to distinguish this action from\n * non-interactive authentication methods, such as:\n * - authentication based on your session.\n * - authentication using an HTTP basic or HTTP d", "meta": {"filepath": "src/Symfony/Component/Security/Http/SecurityEvents.php", "language": "php", "file_size": 1461, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EntryPoint;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\n\n/**\n * Implement this interface for any classes that will be calle", "suffix": "er to authenticate.\n *\n * This is called when an anonymous request accesses a resource that\n * requires authentication. The job of this method is to return some\n * response that \"helps\" the user start into the authentication process.\n *", "middle": "d to \"start\"\n * the authentication process (see method for more details).\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface AuthenticationEntryPointInterface\n{\n /**\n * Returns a response that directs the us", "meta": {"filepath": "src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php", "language": "php", "file_size": 1418, "cut_index": 524, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Attribute;\n\nuse Symfony\\Component\\HttpKernel\\Attribute\\ValueResolver;\nuse Symfony\\Component\\Security\\Http\\Controller\\UserValueResolver;\n\n/**\n * Indicates that a controller argument should receive the current logged user.\n */\n#[\\Attr", "suffix": " specific cases\n * @param string $resolver The class name of the resolver to use\n */\n public function __construct(bool $disabled = false, string $resolver = UserValueResolver::class)\n {\n parent::__construct($resolver, $disabled);\n }", "middle": "ibute(\\Attribute::TARGET_PARAMETER)]\nclass CurrentUser extends ValueResolver\n{\n /**\n * @param bool $disabled Whether this value resolver is disabled, which allows to enable a value resolver globally while disabling it in", "meta": {"filepath": "src/Symfony/Component/Security/Http/Attribute/CurrentUser.php", "language": "php", "file_size": 1000, "cut_index": 512, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Attribute;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n#[\\Attribute(\\Attribute::IS_REPEATABLE | \\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::TARGET_FUNCTION)]\nfinal class IsCsrfT", "suffix": "(\n /**\n * Sets the id, or an Expression or a Closure evaluated to the id, used when generating the token.\n *\n * @var string|Expression|\\Closure(array<string,mixed>, Request, ?object):string\n */\n public string|E", "middle": "okenValid\n{\n public const SOURCE_PAYLOAD = 0b0001;\n public const SOURCE_QUERY = 0b0010;\n public const SOURCE_HEADER = 0b0100;\n\n /** @var string[] */\n public readonly array $methods;\n\n public function __construct", "meta": {"filepath": "src/Symfony/Component/Security/Http/Attribute/IsCsrfTokenValid.php", "language": "php", "file_size": 1809, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Attribute;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * Checks if user has permission to access to some resource using security roles and voters.\n *\n * @see https://symfony.com/doc/current/security.html#roles\n *\n * @auth", "suffix": "nly array $methods;\n\n /**\n * @param string|Expression|\\Closure(IsGrantedContext, mixed $subject):bool $attribute The attribute that will be checked against a given authentication token and optional subject\n * @param array|st", "middle": "or Ryan Weaver <ryan@knpuniversity.com>\n */\n#[\\Attribute(\\Attribute::IS_REPEATABLE | \\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::TARGET_FUNCTION)]\nclass IsGranted\n{\n /** @var string[] */\n public reado", "meta": {"filepath": "src/Symfony/Component/Security/Http/Attribute/IsGranted.php", "language": "php", "file_size": 2470, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Attribute;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Sec", "suffix": "y TokenInterface $token,\n public readonly ?UserInterface $user,\n private readonly AuthorizationCheckerInterface $authorizationChecker,\n ) {\n }\n\n public function isGranted(mixed $attribute, mixed $subject = null, ?AccessDecision $acce", "middle": "urity\\Core\\Authorization\\Voter\\AuthenticatedVoter;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass IsGrantedContext implements AuthorizationCheckerInterface\n{\n public function __construct(\n public readonl", "meta": {"filepath": "src/Symfony/Component/Security/Http/Attribute/IsGrantedContext.php", "language": "php", "file_size": 1614, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\RateLimiter;\n\nuse Symfony\\Component\\HttpFoundation\\RateLimiter\\AbstractRequestRateLimiter;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactory;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentExcep", "suffix": "\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nfinal class DefaultLoginRateLimiter extends AbstractRequestRateLimiter\n{\n /**\n * @param non-empty-string $secret A secret to use for hashing the IP address and username\n */\n public functio", "middle": "tion;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\n\n/**\n * A default login throttling limiter.\n *\n * This limiter prevents breadth-first attacks by enforcing\n * a limit on username+IP and a (higher) limit on IP.", "meta": {"filepath": "src/Symfony/Component/Security/Http/RateLimiter/DefaultLoginRateLimiter.php", "language": "php", "file_size": 1977, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Util;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\n\n/**\n * Trait to get (and set) the URL the user last visited before being forced to authenticate.\n */\ntrait TargetPathTrait\n{\n /**\n * Sets the target path the user sho", "suffix": " $session->set('_security.'.$firewallName.'.target_path', $uri);\n }\n\n /**\n * Returns the URL (if any) the user visited that forced them to login.\n */\n private function getTargetPath(SessionInterface $session, string $firewallName): ?string", "middle": "uld be redirected to after authentication.\n *\n * Usually, you do not need to set this directly.\n */\n private function saveTargetPath(SessionInterface $session, string $firewallName, string $uri): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Util/TargetPathTrait.php", "language": "php", "file_size": 1337, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\RememberMe;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\n\n/**\n", "suffix": "ace $userProvider,\n protected RequestStack $requestStack,\n array $options = [],\n protected ?LoggerInterface $logger = null,\n ) {\n $this->options = $options + [\n 'name' => 'REMEMBERME',\n 'lifetime' => 315", "middle": " * @author Wouter de Jong <wouter@wouterj.nl>\n */\nabstract class AbstractRememberMeHandler implements RememberMeHandlerInterface\n{\n protected array $options;\n\n public function __construct(\n private UserProviderInterf", "meta": {"filepath": "src/Symfony/Component/Security/Http/RememberMe/AbstractRememberMeHandler.php", "language": "php", "file_size": 3556, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\RememberMe;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\TokenProviderInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\TokenVerifierInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component", "suffix": "derInterface}.\n *\n * This requires storing remember-me tokens in a database. This allows\n * more control over the invalidation of remember-me tokens. See\n * {@see SignatureRememberMeHandler} if you don't want to use a database.\n *\n * @author Wouter de Jong", "middle": "\\Security\\Core\\Exception\\CookieTheftException;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\n\n/**\n * Implements remember-me tokens using a {@see TokenProvi", "meta": {"filepath": "src/Symfony/Component/Security/Http/RememberMe/PersistentRememberMeHandler.php", "language": "php", "file_size": 6324, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\RememberMe;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass RememberMeDetails\n{\n public const COOKIE_DELIMITER = ':'", "suffix": " if (!str_contains($rawCookie, self::COOKIE_DELIMITER)) {\n $rawCookie = base64_decode($rawCookie);\n }\n\n $cookieParts = explode(self::COOKIE_DELIMITER, $rawCookie, 4);\n\n if (4 !== \\count($cookieParts)) {\n throw n", "middle": ";\n\n public function __construct(\n private string $userIdentifier,\n private int $expires,\n private string $value,\n ) {\n }\n\n public static function fromRawCookie(string $rawCookie): self\n {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/RememberMe/RememberMeDetails.php", "language": "php", "file_size": 2388, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\RememberMe;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * Handles creating and validating remember-me cookies.\n *\n * If you want to add a custom implementation, you wa", "suffix": "ie should be set as an attribute on the main request,\n * which is transformed into a response cookie by {@see ResponseListener}.\n */\n public function createRememberMeCookie(UserInterface $user): void;\n\n /**\n * Validates the remember-me co", "middle": "nt to extend from\n * {@see AbstractRememberMeHandler} instead.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\ninterface RememberMeHandlerInterface\n{\n /**\n * Creates a remember-me cookie.\n *\n * The actual cook", "meta": {"filepath": "src/Symfony/Component/Security/Http/RememberMe/RememberMeHandlerInterface.php", "language": "php", "file_size": 1758, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\RememberMe;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Adds remember-me cookies to the Response.\n *\n * @author Jo", "suffix": " Request when there is no actual Response, yet.\n */\n public const COOKIE_ATTR_NAME = '_security_remember_me_cookie';\n\n public function onKernelResponse(ResponseEvent $event): void\n {\n if (!$event->isMainRequest()) {\n return;\n", "middle": "hannes M. Schmitt <schmittjoh@gmail.com>\n *\n * @final\n */\nclass ResponseListener implements EventSubscriberInterface\n{\n /**\n * This attribute name can be used by the implementation if it needs to set\n * a cookie on the", "meta": {"filepath": "src/Symfony/Component/Security/Http/RememberMe/ResponseListener.php", "language": "php", "file_size": 1414, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\RememberMe;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Signature\\Exception\\ExpiredSignatureException;\nuse Symfony\\Component\\Security\\Core\\Signature\\Exception\\InvalidSignatureException;\nuse ", "suffix": "the {@see SignatureHasher}.\n *\n * This handler doesn't require a database for the remember-me tokens.\n * However, it cannot invalidate a specific user session, all sessions for\n * that user will be invalidated instead. Use {@see PersistentRememberMeHandler", "middle": "Symfony\\Component\\Security\\Core\\Signature\\SignatureHasher;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\n\n/**\n * Implements safe remember-me cookies using ", "meta": {"filepath": "src/Symfony/Component/Security/Http/RememberMe/SignatureRememberMeHandler.php", "language": "php", "file_size": 3138, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Logout;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface;\n\n/**\n * Provides generator functions for the logout URL.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Jeremy Mikola <jmikola@gmail.com>\n */\nclas", "suffix": "stStack = null,\n private ?UrlGeneratorInterface $router = null,\n private ?TokenStorageInterface $tokenStorage = null,\n ) {\n }\n\n /**\n * Registers a firewall's LogoutListener, allowing its URL to be generated.\n *\n * @param ", "middle": "s LogoutUrlGenerator\n{\n private array $listeners = [];\n private ?string $currentFirewallName = null;\n private ?string $currentFirewallContext = null;\n\n public function __construct(\n private ?RequestStack $reque", "meta": {"filepath": "src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php", "language": "php", "file_size": 5701, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Firewall;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Compo", "suffix": "Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Http\\AccessMapInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\LazyResponseEvent;\n\n/**\n * AccessListener enforces access control rules.\n *\n * @author Fabien Potencier <fabien", "middle": "nent\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManagerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AuthenticatedVoter;\nuse Symfony\\Component\\", "meta": {"filepath": "src/Symfony/Component/Security/Http/Firewall/AccessListener.php", "language": "php", "file_size": 3022, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Firewall;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticatorManagerInterface;\n\n/**\n * Firewall authentication listener that ", "suffix": "ace $authenticatorManager,\n ) {\n }\n\n public function supports(Request $request): ?bool\n {\n return $this->authenticatorManager->supports($request);\n }\n\n public function authenticate(RequestEvent $event): void\n {\n $request ", "middle": "delegates to the authenticator system.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass AuthenticatorManagerListener extends AbstractListener\n{\n public function __construct(\n private AuthenticatorManagerInterf", "meta": {"filepath": "src/Symfony/Component/Security/Http/Firewall/AuthenticatorManagerListener.php", "language": "php", "file_size": 1220, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Firewall;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Security\\Http\\AccessMapInterface;\n\n/**\n * ChannelListener switches ", "suffix": "e AccessMapInterface $map,\n private ?LoggerInterface $logger = null,\n private int $httpPort = 80,\n private int $httpsPort = 443,\n ) {\n }\n\n /**\n * Handles channel management.\n */\n public function supports(Request $re", "middle": "the HTTP protocol based on the access control\n * configuration.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass ChannelListener extends AbstractListener\n{\n public function __construct(\n privat", "meta": {"filepath": "src/Symfony/Component/Security/Http/Firewall/ChannelListener.php", "language": "php", "file_size": 2924, "cut_index": 563, "middle_length": 229}} {"prefix": "Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolver;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\Component\\Securit", "suffix": "ecurity\\Core\\Exception\\UnsupportedUserException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\EquatableInterface;\nuse Symfony\\Component\\Security\\Core\\User\\LegacyPasswordAuthenticatedUserInter", "middle": "y\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\S", "meta": {"filepath": "src/Symfony/Component/Security/Http/Firewall/ContextListener.php", "language": "php", "file_size": 14053, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Firewall;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nus", "suffix": "fony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccountStatusException;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\Insuffi", "middle": "e Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Sym", "meta": {"filepath": "src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php", "language": "php", "file_size": 9018, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Firewall;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\n\n/**\n * Can be implemented by firewall listeners.\n *\n * @author Christian Scheb <me@christianscheb.de>\n * @author Nicolas Grekas <p@tc", "suffix": " Returning null means authenticate() can be called lazily when accessing the token storage.\n */\n public function supports(Request $request): ?bool;\n\n /**\n * Does whatever is required to authenticate the request, typically calling $event->setR", "middle": "hwork.com>\n * @author Robin Chalas <robin.chalas@gmail.com>\n */\ninterface FirewallListenerInterface\n{\n /**\n * Tells whether the authenticate() method should be called or not depending on the incoming request.\n *\n *", "meta": {"filepath": "src/Symfony/Component/Security/Http/Firewall/FirewallListenerInterface.php", "language": "php", "file_size": 1277, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Firewall;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\LogoutException;\nuse Symfony\\Component\\Security\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Secu", "suffix": "er\\EventDispatcherInterface;\n\n/**\n * LogoutListener logout users.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass LogoutListener extends AbstractListener\n{\n private array $options;\n\n /**\n * @param array $options An arra", "middle": "rity\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;\nuse Symfony\\Component\\Security\\Http\\ParameterBagUtils;\nuse Symfony\\Contracts\\EventDispatch", "meta": {"filepath": "src/Symfony/Component/Security/Http/Firewall/LogoutListener.php", "language": "php", "file_size": 3600, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Firewall;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Compo", "suffix": "urity\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\User\\UserChecke", "middle": "nent\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManagerInterface;\nuse Symfony\\Component\\Sec", "meta": {"filepath": "src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php", "language": "php", "file_size": 8511, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\LoginLink;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\Signature\\Exception\\ExpiredSignatureException;\nuse Symfony\\Com", "suffix": "serProviderInterface;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\Exception\\ExpiredLoginLinkException;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\Exception\\InvalidLoginLinkException;\nuse Symfony\\Component\\Security\\Http\\ParameterBagUtils;\n\n/**\n * @auth", "middle": "ponent\\Security\\Core\\Signature\\Exception\\InvalidSignatureException;\nuse Symfony\\Component\\Security\\Core\\Signature\\SignatureHasher;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\U", "meta": {"filepath": "src/Symfony/Component/Security/Http/LoginLink/LoginLinkHandler.php", "language": "php", "file_size": 4354, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\LoginLink;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * A class that is able to create and handle \"magic\" login links.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */", "suffix": "ly set\n */\n public function createLoginLink(UserInterface $user, ?Request $request = null, ?int $lifetime = null): LoginLinkDetails;\n\n /**\n * Validates if this request contains a login link and returns the associated User.\n *\n * Throw", "middle": "\ninterface LoginLinkHandlerInterface\n{\n /**\n * Generate a link that can be used to authenticate as the given user.\n *\n * @param int|null $lifetime When not null, the argument overrides any default lifetime previous", "meta": {"filepath": "src/Symfony/Component/Security/Http/LoginLink/LoginLinkHandlerInterface.php", "language": "php", "file_size": 1144, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\LoginLink;\n\nuse Symfony\\Bridge\\Twig\\Mime\\NotificationEmail;\nuse Symfony\\Component\\Notifier\\Message\\EmailMessage;\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Notification\\EmailNotificationInterface;\nuse Symfony\\Component\\Notifier\\Notification\\Not", "suffix": "otification to ease sending login link\n * emails/SMS using the Notifier component.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass LoginLinkNotification extends Notification implements EmailNotificationInterface, SmsNotificationInterface\n{\n p", "middle": "ification;\nuse Symfony\\Component\\Notifier\\Notification\\SmsNotificationInterface;\nuse Symfony\\Component\\Notifier\\Recipient\\EmailRecipientInterface;\nuse Symfony\\Component\\Notifier\\Recipient\\SmsRecipientInterface;\n\n/**\n * Use this n", "meta": {"filepath": "src/Symfony/Component/Security/Http/LoginLink/LoginLinkNotification.php", "language": "php", "file_size": 2711, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Session;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\ClearableTokenStorageInterface;\n\n/**\n * The default session strategy implementa", "suffix": " Schmitt <schmittjoh@gmail.com>\n */\nclass SessionAuthenticationStrategy implements SessionAuthenticationStrategyInterface\n{\n public const NONE = 'none';\n public const MIGRATE = 'migrate';\n public const INVALIDATE = 'invalidate';\n\n private ?Clea", "middle": "tion.\n *\n * Supports the following strategies:\n * NONE: the session is not changed\n * MIGRATE: the session id is updated, attributes are kept\n * INVALIDATE: the session id is updated, attributes are lost\n *\n * @author Johannes M.", "meta": {"filepath": "src/Symfony/Component/Security/Http/Session/SessionAuthenticationStrategy.php", "language": "php", "file_size": 1990, "cut_index": 537, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Session;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * SessionAuthenticationStrategyInterface.\n *\n * Implementation are responsible for updating the s", "suffix": "ges to the session.\n *\n * This method should be called before the TokenStorage is populated with a\n * Token. It should be used by authentication listeners when a session is used.\n */\n public function onAuthentication(Request $request, To", "middle": "ession after an interactive\n * authentication attempt was successful.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\ninterface SessionAuthenticationStrategyInterface\n{\n /**\n * This performs any necessary chan", "meta": {"filepath": "src/Symfony/Component/Security/Http/Session/SessionAuthenticationStrategyInterface.php", "language": "php", "file_size": 1027, "cut_index": 512, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authentication;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\n\n/**\n * Interface for custom authentication failure", "suffix": ". Schmitt <schmittjoh@gmail.com>\n */\ninterface AuthenticationFailureHandlerInterface\n{\n /**\n * This is called when an interactive authentication attempt fails.\n */\n public function onAuthenticationFailure(Request $request, AuthenticationExcep", "middle": " handlers.\n *\n * If you want to customize the failure handling process, instead of\n * overwriting the respective listener globally, you can set a custom failure\n * handler which implements this interface.\n *\n * @author Johannes M", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/AuthenticationFailureHandlerInterface.php", "language": "php", "file_size": 1027, "cut_index": 512, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authentication;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * Interface for a custom authentication succ", "suffix": " M. Schmitt <schmittjoh@gmail.com>\n */\ninterface AuthenticationSuccessHandlerInterface\n{\n /**\n * Usually called by AuthenticatorInterface::onAuthenticationSuccess() implementations.\n */\n public function onAuthenticationSuccess(Request $reques", "middle": "ess handler.\n *\n * If you want to customize the success handling process, instead of\n * overwriting the respective listener globally, you can set a custom success\n * handler which implements this interface.\n *\n * @author Johannes", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php", "language": "php", "file_size": 1038, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authentication;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\n\n/**\n * Extracts Security Errors fr", "suffix": "onError(bool $clearSession = true): ?AuthenticationException\n {\n $request = $this->getRequest();\n $authenticationException = null;\n\n if ($request->attributes->has(SecurityRequestAttributes::AUTHENTICATION_ERROR)) {\n $auth", "middle": "om Request.\n *\n * @author Boris Vujicic <boris.vujicic@gmail.com>\n */\nclass AuthenticationUtils\n{\n public function __construct(\n private RequestStack $requestStack,\n ) {\n }\n\n public function getLastAuthenticati", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/AuthenticationUtils.php", "language": "php", "file_size": 2320, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\n\n/**\n * AccessMap allows configuration of different access control rules for\n * specific parts of the website.\n *\n * @author Fabien Po", "suffix": "s)\n * @param string|null $channel The channel to enforce (http, https, or null)\n */\n public function add(RequestMatcherInterface $requestMatcher, array $attributes = [], ?string $channel = null): void\n {\n $this->map[] = [$requestMat", "middle": "tencier <fabien@symfony.com>\n */\nclass AccessMap implements AccessMapInterface\n{\n private array $map = [];\n\n /**\n * @param array $attributes An array of attributes to pass to the access decision manager (like role", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessMap.php", "language": "php", "file_size": 1344, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInterface;\nuse Symfony", "suffix": "lements FirewallMapInterface\n{\n /**\n * @var list<array{RequestMatcherInterface, list<FirewallListenerInterface>, ExceptionListener|null, LogoutListener|null}>\n */\n private array $map = [];\n\n /**\n * @param list<FirewallListenerInterface", "middle": "\\Component\\Security\\Http\\Firewall\\LogoutListener;\n\n/**\n * FirewallMap allows configuration of different firewalls for specific parts\n * of the website.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass FirewallMap imp", "meta": {"filepath": "src/Symfony/Component/Security/Http/FirewallMap.php", "language": "php", "file_size": 1652, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException;\nuse Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\Matcher\\RequestMatcherInterface;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcherInterface;\n\n/**\n * Encaps", "suffix": "directions must match, scheme included\n * @param $secureDomainRegexp A regexp the target of HTTP redirections must match when the scheme is \"https\"\n *\n * @throws \\InvalidArgumentException\n */\n public function __construct(\n private", "middle": "ulates the logic needed to create sub-requests, redirect the user, and match URLs.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass HttpUtils\n{\n /**\n * @param $domainRegexp A regexp the target of HTTP re", "meta": {"filepath": "src/Symfony/Component/Security/Http/HttpUtils.php", "language": "php", "file_size": 8123, "cut_index": 716, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Metadata;\n\nuse Symfony\\Component\\Workflow\\Transition;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\ntrait GetMetadataTrait\n{\n public function getMetadata(string $key, string|Transition|null $subject = null): mixed\n {\n ", "suffix": "= $subject) {\n return $this->getWorkflowMetadata()[$key] ?? null;\n }\n\n $metadataBag = \\is_string($subject) ? $this->getPlaceMetadata($subject) : $this->getTransitionMetadata($subject);\n\n return $metadataBag[$key] ?? null;\n ", "middle": " if (null ==", "meta": {"filepath": "src/Symfony/Component/Workflow/Metadata/GetMetadataTrait.php", "language": "php", "file_size": 791, "cut_index": 514, "middle_length": 14}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Metadata;\n\nuse Symfony\\Component\\Workflow\\Transition;\n\n/**\n * MetadataStoreInterface is able to fetch metadata for a specific workflow.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\ninterface MetadataStoreInterface\n{\n public functi", "suffix": "\n *\n * This is a proxy method.\n *\n * @param string|Transition|null $subject Use null to get workflow metadata\n * Use a string (the place name) to get place metadata\n * ", "middle": "on getWorkflowMetadata(): array;\n\n public function getPlaceMetadata(string $place): array;\n\n public function getTransitionMetadata(Transition $transition): array;\n\n /**\n * Returns the metadata for a specific subject.", "meta": {"filepath": "src/Symfony/Component/Workflow/Metadata/MetadataStoreInterface.php", "language": "php", "file_size": 1174, "cut_index": 518, "middle_length": 229}} {"prefix": "tadataStoreInterface;\nuse Symfony\\Component\\Workflow\\Transition;\n\n/**\n * PlantUmlDumper dumps a workflow as a PlantUML file.\n *\n * You can convert the generated puml file with the plantuml.jar utility (http://plantuml.com/):\n *\n * php bin/console workflow:dump pull_request travis --dump-format=puml | java -jar plantuml.jar -p > workflow.png\n *\n * @author Sébastien Morel <morel.seb@gmail.com>\n */\nclass PlantUmlDumper implements DumperInterface\n{\n private const INITIAL = '<<initial>>';\n private const M", "suffix": "c const DEFAULT_OPTIONS = [\n 'skinparams' => [\n 'titleBorderRoundCorner' => 15,\n 'titleBorderThickness' => 2,\n 'state' => [\n 'BackgroundColor'.self::INITIAL => '#87b741',\n 'BackgroundCol", "middle": "ARKED = '<<marked>>';\n\n public const STATEMACHINE_TRANSITION = 'arrow';\n public const WORKFLOW_TRANSITION = 'square';\n public const TRANSITION_TYPES = [self::STATEMACHINE_TRANSITION, self::WORKFLOW_TRANSITION];\n publi", "meta": {"filepath": "src/Symfony/Component/Workflow/Dumper/PlantUmlDumper.php", "language": "php", "file_size": 9215, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Dumper;\n\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Marking;\n\nclass StateMachineGraphvizDumper extends GraphvizDumper\n{\n /**\n * Dumps the workflow as a graphviz graph.\n *\n * Available options:\n *\n * * graph: The default options for the whole graph\n * * node: The default options ", "suffix": "a'] ?? false;\n\n $places = $this->findPlaces($definition, $withMetadata, $marking);\n $edges = $this->findEdges($definition);\n\n $options = array_replace_recursive(self::$defaultOptions, $options);\n\n $label = $this->formatLabel($de", "middle": "for nodes (places)\n * * edge: The default options for edges\n */\n public function dump(Definition $definition, ?Marking $marking = null, array $options = []): string\n {\n $withMetadata = $options['with-metadat", "meta": {"filepath": "src/Symfony/Component/Workflow/Dumper/StateMachineGraphvizDumper.php", "language": "php", "file_size": 3150, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Workflow\\Debug\\Tra", "suffix": "cess(ContainerBuilder $container): void\n {\n foreach ($container->findTaggedServiceIds('workflow') as $id => $attributes) {\n $container->register(\"debug.{$id}\", TraceableWorkflow::class)\n ->setDecoratedService($id)\n ", "middle": "ceableWorkflow;\n\n/**\n * Adds all configured security voters to the access decision manager.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass WorkflowDebugPass implements CompilerPassInterface\n{\n public function pro", "meta": {"filepath": "src/Symfony/Component/Workflow/DependencyInjection/WorkflowDebugPass.php", "language": "php", "file_size": 1382, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf;\n\n/**\n * A CSRF token.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass CsrfToken\n{\n private string $value;\n\n public function __construct(\n private string $id,\n #[\\SensitiveParameter] ?string $value,\n ) {\n $this->value = $value ?? '';\n }\n\n /**\n * ", "suffix": " function getId(): string\n {\n return $this->id;\n }\n\n /**\n * Returns the value of the CSRF token.\n */\n public function getValue(): string\n {\n return $this->value;\n }\n\n /**\n * Returns the value of the CSRF token", "middle": "Returns the ID of the CSRF token.\n */\n public", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/CsrfToken.php", "language": "php", "file_size": 984, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf;\n\n/**\n * Manages CSRF tokens.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\ninterface CsrfTokenManagerInterface\n{\n /**\n * Returns a CSRF token for the given ID.\n *\n * If previously no token existed for the given ID, a new token is", "suffix": "or the ID\n */\n public function getToken(string $tokenId): CsrfToken;\n\n /**\n * Generates a new token value for the given ID.\n *\n * This method will generate a new token for the given token ID, independent\n * of whether a token valu", "middle": "\n * generated. Otherwise the existing token is returned (with the same value,\n * not the same instance).\n *\n * @param string $tokenId The token ID. You may choose an arbitrary value\n * f", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php", "language": "php", "file_size": 1738, "cut_index": 537, "middle_length": 229}} {"prefix": "se Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\n\n/**\n * This CSRF token manager uses a combination of cookie and headers to validate non-persistent tokens.\n *\n * This manager is designed to be stateless and compatible with HTTP-caching.\n *\n * Requests are considered secure when either:\n * - the Sec-Fetch-Site header contains 'same-origin';\n * - the Origin or Referer headers contain the same origin as th", "suffix": "ss configuring your reverse proxy to send the X-Forwarded-* / Forwarded headers\n * if you're behind one.\n *\n * The check relying on the double-submit requires a JavaScript snippet on the client side,\n * responsible for generating a cryptographically-secure", "middle": "e request;\n * - a special token was double-submitted in the request payload and as a cookie and/or a header.\n *\n * The check using the Origin/Referer headers relies on the app being able to know its own target\n * origin. Don't mi", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/SameOriginCsrfTokenManager.php", "language": "php", "file_size": 12073, "cut_index": 921, "middle_length": 229}} {"prefix": ">\n */\nclass CsrfTokenManagerTest extends TestCase\n{\n public function testGetNonExistingTokenEmptyNamespace()\n {\n $generator = $this->createMock(TokenGeneratorInterface::class);\n $storage = $this->createMock(TokenStorageInterface::class);\n\n $this->assertGetNonExistingToken('', $this->getEmptyNamespaceMocks($generator, $storage), $storage, $generator);\n }\n\n public function testGetNonExistingTokenHttpsNamespace()\n {\n $generator = $this->createMock(TokenGeneratorInterf", "suffix": "nction testGetNonExistingTokenCustomNamespace()\n {\n $generator = $this->createMock(TokenGeneratorInterface::class);\n $storage = $this->createMock(TokenStorageInterface::class);\n\n $this->assertGetNonExistingToken('aNamespace-', $this", "middle": "ace::class);\n $storage = $this->createMock(TokenStorageInterface::class);\n\n $this->assertGetNonExistingToken('https-', $this->getHttpsNamespaceMocks($generator, $storage), $storage, $generator);\n }\n\n public fu", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php", "language": "php", "file_size": 27495, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Csrf\\Sam", "suffix": "ginCsrfListener('csrf-token');\n }\n\n public function testOnKernelResponseClearsCookies()\n {\n $request = new Request([], [], ['csrf-token' => 2], ['csrf-token_test' => 'csrf-token']);\n $response = new Response();\n $eventMainRequ", "middle": "eOriginCsrfListener;\n\nclass SameOriginCsrfListenerTest extends TestCase\n{\n private SameOriginCsrfListener $sameOriginCsrfListener;\n\n protected function setUp(): void\n {\n $this->sameOriginCsrfListener = new SameOri", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/Tests/SameOriginCsrfListenerTest.php", "language": "php", "file_size": 3160, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf\\Tests\\TokenGenerator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Csrf\\TokenGenerator\\UriSafeTokenGenerator;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass UriSafeTokenGen", "suffix": "setUpBeforeClass(): void\n {\n self::$bytes = base64_decode('aMf+Tct/RLn2WQ==');\n }\n\n protected function setUp(): void\n {\n $this->generator = new UriSafeTokenGenerator(self::ENTROPY);\n }\n\n public function testGenerateToken()\n ", "middle": "eratorTest extends TestCase\n{\n private const ENTROPY = 1000;\n\n /**\n * A non alphanumeric byte string.\n */\n private static string $bytes;\n\n private UriSafeTokenGenerator $generator;\n\n public static function ", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php", "language": "php", "file_size": 1887, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf\\Tests\\TokenStorage;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\Security\\Csrf\\Exception\\TokenN", "suffix": "ACE = 'foobar';\n\n private Session $session;\n private SessionTokenStorage $storage;\n\n protected function setUp(): void\n {\n $this->session = new Session(new MockArraySessionStorage());\n $request = new Request();\n $request->se", "middle": "otFoundException;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\SessionTokenStorage;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass SessionTokenStorageTest extends TestCase\n{\n private const SESSION_NAMESP", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/Tests/TokenStorage/SessionTokenStorageTest.php", "language": "php", "file_size": 4902, "cut_index": 614, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * AccessMap allows configuration of different access control rules for\n * specific parts of the website.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Kris Wallsmith <kris@symfony.com>", "suffix": "eturns security attributes and required channel for the supplied request.\n *\n * @return array{0: array|null, 1: string|null} A tuple of security attributes and the required channel\n */\n public function getPatterns(Request $request): array;\n}", "middle": "\n */\ninterface AccessMapInterface\n{\n /**\n * R", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessMapInterface.php", "language": "php", "file_size": 844, "cut_index": 535, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener;", "suffix": "cation\n * (a Basic authentication for the /api, and a web based authentication for\n * everything else for instance).\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Firewall implements EventSubscriberInterface\n{\n /**\n * @var \\SplObject", "middle": "\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * Firewall uses a FirewallMap to register security listeners for the given\n * request.\n *\n * It allows for different security strategies within the same appli", "meta": {"filepath": "src/Symfony/Component/Security/Http/Firewall.php", "language": "php", "file_size": 3906, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Debug;\n\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Marking;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MarkingStoreInterface;\nuse Symfony\\Component\\Workflow\\Metadata\\MetadataStoreInterface;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\", "suffix": "unction __construct(\n private readonly WorkflowInterface $workflow,\n private readonly Stopwatch $stopwatch,\n protected readonly ?\\Closure $disabled = null,\n ) {\n }\n\n public function getMarking(object $subject, array $context =", "middle": "TransitionBlockerList;\nuse Symfony\\Component\\Workflow\\WorkflowInterface;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass TraceableWorkflow implements WorkflowInterface\n{\n private array $calls = [];\n\n public f", "meta": {"filepath": "src/Symfony/Component/Workflow/Debug/TraceableWorkflow.php", "language": "php", "file_size": 4025, "cut_index": 614, "middle_length": 229}} {"prefix": " a graphviz file.\n *\n * You can convert the generated dot file with the dot utility (https://graphviz.org/):\n *\n * dot -Tpng workflow.dot > workflow.png\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass GraphvizDumper implements DumperInterface\n{\n // All values should be strings\n protected static array $defaultOptions = [\n 'graph' => ['ratio' => 'compress', 'rankdir' => 'LR'],\n 'node' => ['fontsize' => '9', 'fontname' => 'Aria", "suffix": " ];\n\n /**\n * Dumps the workflow as a graphviz graph.\n *\n * Available options:\n *\n * * graph: The default options for the whole graph\n * * node: The default options for nodes (places + transitions)\n * * edge: The default op", "middle": "l', 'color' => '#333333', 'fillcolor' => 'lightblue', 'fixedsize' => 'false', 'width' => '1'],\n 'edge' => ['fontsize' => '9', 'fontname' => 'Arial', 'color' => '#333333', 'arrowhead' => 'normal', 'arrowsize' => '0.5'],\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Dumper/GraphvizDumper.php", "language": "php", "file_size": 13499, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Dumper;\n\nuse Symfony\\Component\\Workflow\\Arc;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Workflow\\Marking;\n\nclass MermaidDumper implements DumperInterface\n{\n public const DIRECTION_TOP_TO_BOTTOM = 'TB';\n public const DIRECTION_TOP_DOWN = 'TD';\n public const DIRECTION_BOTTOM_TO_TOP = 'BT';\n public const DIRECTION_RIGHT_TO_LEFT = 'RL';\n p", "suffix": "LEFT,\n self::DIRECTION_LEFT_TO_RIGHT,\n ];\n\n public const TRANSITION_TYPE_STATEMACHINE = 'statemachine';\n public const TRANSITION_TYPE_WORKFLOW = 'workflow';\n\n private const VALID_TRANSITION_TYPES = [\n self::TRANSITION_TYPE_STATEMA", "middle": "ublic const DIRECTION_LEFT_TO_RIGHT = 'LR';\n\n private const VALID_DIRECTIONS = [\n self::DIRECTION_TOP_TO_BOTTOM,\n self::DIRECTION_TOP_DOWN,\n self::DIRECTION_BOTTOM_TO_TOP,\n self::DIRECTION_RIGHT_TO_", "meta": {"filepath": "src/Symfony/Component/Workflow/Dumper/MermaidDumper.php", "language": "php", "file_size": 8890, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Security\\Csrf\\TokenGenerator\\TokenGeneratorInterface;\nuse Symfony\\Component\\Security\\Csrf\\TokenGenerator\\UriSafeTokenGenerator;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\NativeSessionTokenStorage;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\TokenStorageInterface;\n\n/**\n * Defau", "suffix": "ate TokenGeneratorInterface $generator;\n private TokenStorageInterface $storage;\n private \\Closure|string $namespace;\n\n /**\n * @param $namespace\n * * null: generates a namespace using $_SERVER['HTTPS']\n * ", "middle": "lt implementation of {@link CsrfTokenManagerInterface}.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass CsrfTokenManager implements CsrfTokenManagerInterface\n{\n priv", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/CsrfTokenManager.php", "language": "php", "file_size": 5198, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\n\nfinal class SameOriginCsrfListener\n{\n public function __construct(\n p", "suffix": " $cookieName)) {\n throw new \\InvalidArgumentException('The cookie name contains invalid characters.');\n }\n }\n\n public function onKernelResponse(ResponseEvent $event): void\n {\n if (!$event->isMainRequest()) {\n re", "middle": "rivate readonly string $cookieName = 'csrf-token',\n ) {\n if (!$cookieName) {\n throw new \\InvalidArgumentException('The cookie name cannot be empty.');\n }\n\n if (!preg_match('/^[-a-zA-Z0-9_]+$/D',", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/SameOriginCsrfListener.php", "language": "php", "file_size": 2328, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf\\Tests\\TokenStorage;\n\nuse PHPUnit\\Framework\\Attributes\\Depends;\nuse PHPUnit\\Framework\\Attributes\\PreserveGlobalState;\nuse PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Csrf\\Exception\\TokenNotFoundException;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\Nati", "suffix": "SPACE = 'foobar';\n\n private NativeSessionTokenStorage $storage;\n\n protected function setUp(): void\n {\n $_SESSION = [];\n\n $this->storage = new NativeSessionTokenStorage(self::SESSION_NAMESPACE);\n }\n\n public function testStoreTok", "middle": "veSessionTokenStorage;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\n#[PreserveGlobalState(false)]\n#[RunTestsInSeparateProcesses]\nclass NativeSessionTokenStorageTest extends TestCase\n{\n private const SESSION_NAME", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php", "language": "php", "file_size": 4018, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf\\TokenStorage;\n\nuse Symfony\\Component\\Security\\Csrf\\Exception\\TokenNotFoundException;\n\n/**\n * Token storage that uses PHP's native session handling.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass NativeSessionTokenStorage implements ClearableTokenStorageInterface\n{\n ", "suffix": " *\n * @param string $namespace The namespace under which the token is stored in the session\n */\n public function __construct(\n private string $namespace = self::SESSION_NAMESPACE,\n ) {\n }\n\n public function getToken(string $tok", "middle": " /**\n * The namespace used to store values in the session.\n */\n public const SESSION_NAMESPACE = '_csrf';\n\n private bool $sessionStarted = false;\n\n /**\n * Initializes the storage with a session namespace.\n ", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.php", "language": "php", "file_size": 2626, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInterface;\nuse Symfony\\Component\\Security\\Http\\Firewall\\LogoutListener;", "suffix": "stener to use\n * for the given request.\n *\n * If there are no authentication listeners, the first inner array must be\n * empty.\n *\n * If there is no exception listener, the second element of the outer array\n * must be null.\n ", "middle": "\n\n/**\n * This interface must be implemented by firewall maps.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\ninterface FirewallMapInterface\n{\n /**\n * Returns the authentication listeners, and the exception li", "meta": {"filepath": "src/Symfony/Component/Security/Http/FirewallMapInterface.php", "language": "php", "file_size": 1285, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\n\n/**\n * @author Christian", "suffix": " {\n if (!$container->hasParameter('workflow.has_guard_listeners')) {\n return;\n }\n\n $container->getParameterBag()->remove('workflow.has_guard_listeners');\n\n $servicesNeeded = [\n 'security.token_storage',\n", "middle": " Flothmann <christian.flothmann@sensiolabs.de>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass WorkflowGuardListenerPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n", "meta": {"filepath": "src/Symfony/Component/Workflow/DependencyInjection/WorkflowGuardListenerPass.php", "language": "php", "file_size": 1426, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Csrf\\TokenGenerator;\n\n/**\n * Generates CSRF tokens.\n *\n * @author Bernhard Schussek <bernhard.schussek@symfony.com>\n */\nclass UriSafeTokenGenerator implements TokenGeneratorInterface\n{\n /**\n * Generates URI-safe CSRF tokens.\n *\n ", "suffix": "entException('Entropy should be greater than 7.');\n }\n }\n\n public function generateToken(): string\n {\n // Generate an URI safe base64 encoded string that does not contain \"+\",\n // \"/\" or \"=\" which need to be URL encoded and ma", "middle": " * @param int $entropy The amount of entropy collected for each token (in bits)\n */\n public function __construct(\n private int $entropy = 256,\n ) {\n if ($entropy <= 7) {\n throw new \\InvalidArgum", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/TokenGenerator/UriSafeTokenGenerator.php", "language": "php", "file_size": 1180, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\Metadata;\n\nuse Symfony\\Component\\Workflow\\Transition;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nfinal class InMemoryMetadataStore implements MetadataStoreInterface\n{\n use GetMetadataTrait;\n\n private \\SplObjectStorage $transition", "suffix": " ?\\SplObjectStorage $transitionsMetadata = null,\n ) {\n $this->transitionsMetadata = $transitionsMetadata ?? new \\SplObjectStorage();\n }\n\n public function getWorkflowMetadata(): array\n {\n return $this->workflowMetadata;\n }", "middle": "sMetadata;\n\n /**\n * @param \\SplObjectStorage<Transition, array>|null $transitionsMetadata\n */\n public function __construct(\n private array $workflowMetadata = [],\n private array $placesMetadata = [],\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/Metadata/InMemoryMetadataStore.php", "language": "php", "file_size": 1285, "cut_index": 524, "middle_length": 229}} {"prefix": "utes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Securi", "suffix": "ArgumentException::class);\n new SameOriginCsrfTokenManager(new RequestStack(), new NullLogger(), null, [], SameOriginCsrfTokenManager::CHECK_NO_HEADER, '');\n }\n\n public function testInvalidCookieNameCharacters()\n {\n $this->expectExce", "middle": "ty\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Security\\Csrf\\SameOriginCsrfTokenManager;\n\nclass SameOriginCsrfTokenManagerTest extends TestCase\n{\n public function testInvalidCookieName()\n {\n $this->expectException(\\Invalid", "meta": {"filepath": "src/Symfony/Component/Security/Csrf/Tests/SameOriginCsrfTokenManagerTest.php", "language": "php", "file_size": 13583, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Workflow\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author Grégoire Pineau <lyrixx@l", "suffix": " foreach ($attributes as $attribute) {\n foreach ($attribute['definition_validators'] ?? [] as $validatorClass) {\n $container->addResource(new FileResource($container->getReflectionClass($validatorClass)->getFileN", "middle": "yrixx.info>\n */\nclass WorkflowValidatorPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n foreach ($container->findTaggedServiceIds('workflow') as $attributes) {\n ", "meta": {"filepath": "src/Symfony/Component/Workflow/DependencyInjection/WorkflowValidatorPass.php", "language": "php", "file_size": 1387, "cut_index": 524, "middle_length": 229}} {"prefix": "Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\AuthenticationEvents;\nuse Symfony\\Component\\Security\\Core\\Event\\AuthenticationSuccessEvent;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccountStatusException;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nu", "suffix": "ent\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\InteractiveAuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http", "middle": "se Symfony\\Component\\Security\\Core\\Exception\\CustomUserMessageAccountStatusException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Compon", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/AuthenticatorManager.php", "language": "php", "file_size": 14198, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactoryInterface;\nuse Symfony\\Component\\Security\\Core\\User\\LegacyPasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Compon", "suffix": "onent\\Security\\Http\\Event\\LoginSuccessEvent;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @final\n */\nclass PasswordMigratingListener implements EventSubscriberInterface\n{\n public function __construct(\n private PasswordHasherFactoryInt", "middle": "ent\\Security\\Core\\User\\PasswordUpgraderInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\PasswordUpgradeBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Comp", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/PasswordMigratingListener.php", "language": "php", "file_size": 3101, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\RememberMeBadge;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginFailureEvent;\nuse Symfony\\Component\\Security\\", "suffix": "\n/**\n * The RememberMe *listener* creates and deletes remember-me cookies.\n *\n * Upon login success or failure and support for remember me\n * in the firewall and authenticator, this listener will create\n * a remember-me cookie.\n * Upon login failure, all r", "middle": "Http\\Event\\LoginSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\TokenDeauthenticatedEvent;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\RememberMeHandlerInterface;\n", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/RememberMeListener.php", "language": "php", "file_size": 2733, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\n\n/**\n * Handler for clearing invalidating the current session.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n *\n * @final\n */\nclass SessionLogoutListener im", "suffix": "ion onLogout(LogoutEvent $event): void\n {\n if ($event->getRequest()->hasSession()) {\n $event->getRequest()->getSession()->invalidate();\n }\n }\n\n public static function getSubscribedEvents(): array\n {\n return [\n ", "middle": "plements EventSubscriberInterface\n{\n public funct", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/SessionLogoutListener.php", "language": "php", "file_size": 952, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\Session\\SessionAuthenticationStrategy;\nuse Symfony\\Component\\Security\\Http\\Sessi", "suffix": " @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass SessionStrategyListener implements EventSubscriberInterface\n{\n public function __construct(\n private SessionAuthenticationStrategyInterface $sessionAuthenticationStrategy,\n ) {\n }\n\n p", "middle": "on\\SessionAuthenticationStrategyInterface;\n\n/**\n * Migrates/invalidates the session after successful login.\n *\n * This should be registered as subscriber to any \"stateful\" firewalls.\n *\n * @see SessionAuthenticationStrategy\n *\n *", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/SessionStrategyListener.php", "language": "php", "file_size": 1813, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Core\\Event\\AuthenticationSuccessEvent;\nuse Symfony\\Component\\Security\\Core\\User\\UserCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\User\\Use", "suffix": "\n */\nclass UserCheckerListener implements EventSubscriberInterface\n{\n public function __construct(\n private UserCheckerInterface $userChecker,\n ) {\n }\n\n public function preCheckCredentials(CheckPassportEvent $event): void\n {\n $", "middle": "rInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\PreAuthenticatedUserBadge;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @final", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/UserCheckerListener.php", "language": "php", "file_size": 1794, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\n\n/**\n * Configures t", "suffix": "iderInterface $userProvider,\n ) {\n }\n\n public function checkPassport(CheckPassportEvent $event): void\n {\n $passport = $event->getPassport();\n if (!$passport->hasBadge(UserBadge::class)) {\n return;\n }\n\n /**", "middle": "he user provider as user loader, if no user load\n * has been explicitly set.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @final\n */\nclass UserProviderListener\n{\n public function __construct(\n private UserProv", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/UserProviderListener.php", "language": "php", "file_size": 1251, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\Security\\Http\\AccessMap;\n\nclass AccessMapTest extends TestCase\n{\n public function te", "suffix": " AccessMap();\n $map->add($requestMatcher1, ['ROLE_ADMIN'], 'http');\n $map->add($requestMatcher2, ['ROLE_USER'], 'https');\n\n $this->assertSame([['ROLE_USER'], 'https'], $map->getPatterns($request));\n }\n\n public function testReturn", "middle": "stReturnsFirstMatchedPattern()\n {\n $request = new Request();\n $requestMatcher1 = $this->getRequestMatcher($request, false);\n $requestMatcher2 = $this->getRequestMatcher($request, true);\n\n $map = new", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/AccessMapTest.php", "language": "php", "file_size": 1646, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener;\nuse Symfony\\Component\\Security\\Http\\FirewallMap;\n\nclass FirewallMapTest extends TestCase\n{\n public function testGetList", "suffix": "\n ->method('matches')\n ->with($this->equalTo($request))\n ->willReturn(false)\n ;\n\n $map->add($notMatchingMatcher, [static function () {}]);\n\n $matchingMatcher = $this->createMock(RequestMatcherInterface:", "middle": "eners()\n {\n $map = new FirewallMap();\n\n $request = new Request();\n\n $notMatchingMatcher = $this->createMock(RequestMatcherInterface::class);\n $notMatchingMatcher\n ->expects($this->once())", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/FirewallMapTest.php", "language": "php", "file_size": 3610, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Http\\Firewall;\nuse Symfony\\Component\\Security\\Http\\Firewall\\AbstractListener;\nuse Symfony\\Component\\Security\\H", "suffix": "rnelRequestRegistersExceptionListener()\n {\n $dispatcher = new EventDispatcher();\n\n $listener = $this->createMock(ExceptionListener::class);\n $listener\n ->expects($this->once())\n ->method('register')\n ", "middle": "ttp\\Firewall\\ExceptionListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInterface;\nuse Symfony\\Component\\Security\\Http\\FirewallMapInterface;\n\nclass FirewallTest extends TestCase\n{\n public function testOnKe", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/FirewallTest.php", "language": "php", "file_size": 5187, "cut_index": 716, "middle_length": 229}} {"prefix": "outing\\Matcher\\RequestMatcherInterface;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcherInterface;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\n\nclass HttpUtilsTest extends TestCase\n{\n public function testCreateRedirectResponseWithPath()\n {\n $utils = new HttpUtils($this->getUrlGenerator());\n $res", "suffix": " function testCreateRedirectResponseWithAbsoluteUrl()\n {\n $utils = new HttpUtils($this->getUrlGenerator());\n $response = $utils->createRedirectResponse($this->getRequest(), 'http://symfony.com/');\n\n $this->assertTrue($response->isRe", "middle": "ponse = $utils->createRedirectResponse($this->getRequest(), '/foobar');\n\n $this->assertTrue($response->isRedirect('http://localhost/foobar'));\n $this->assertEquals(302, $response->getStatusCode());\n }\n\n public", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/HttpUtilsTest.php", "language": "php", "file_size": 18217, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Util;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\Security\\Http\\Util\\TargetPathTrait;\n\nclass TargetPathTraitTest extends TestCase\n{\n public function testSetTargetPath()\n {\n $obj = new TestCl", "suffix": " $obj->doSetTargetPath($session, 'firewall_name', '/foo');\n }\n\n public function testGetTargetPath()\n {\n $obj = new TestClassWithTargetPathTrait();\n\n $session = $this->createMock(SessionInterface::class);\n $session->expect", "middle": "assWithTargetPathTrait();\n\n $session = $this->createMock(SessionInterface::class);\n $session->expects($this->once())\n ->method('set')\n ->with('_security.firewall_name.target_path', '/foo');\n\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Util/TargetPathTraitTest.php", "language": "php", "file_size": 2241, "cut_index": 563, "middle_length": 229}} {"prefix": "ion\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\InMemoryTokenProvider;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\TokenProviderInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\TokenVerifierInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Excep", "suffix": "ony\\Component\\Security\\Http\\RememberMe\\RememberMeDetails;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\ResponseListener;\n\nclass PersistentRememberMeHandlerTest extends TestCase\n{\n private TokenProviderInterface $tokenProvider;\n private InMemoryUser", "middle": "tion\\CookieTheftException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\PersistentRememberMeHandler;\nuse Symf", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/RememberMe/PersistentRememberMeHandlerTest.php", "language": "php", "file_size": 13635, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\RememberMe;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\RememberMeDetails;\n\nclass RememberMeDetailsTest extends TestCase\n{\n public function testFromRawCookie()\n {\n $rememberMeDetails = RememberMeDetails::fromRawCookie(self::getRememberMeCookieValu", "suffix": ";\n $this->assertSame('series1:token_value', $rememberMeDetails->getValue());\n }\n\n public function testFromRawCookieChildClassWithNewConstructorSignature()\n {\n $rememberMeDetails = RememberMeDetailsChild::fromRawCookie(self::getRememb", "middle": "e());\n\n $this->assertSame(RememberMeDetails::class, $rememberMeDetails::class);\n $this->assertSame('wouter', $rememberMeDetails->getUserIdentifier());\n $this->assertSame(360, $rememberMeDetails->getExpires())", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/RememberMe/RememberMeDetailsTest.php", "language": "php", "file_size": 6757, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\RememberMe;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\ResponseHeaderBag;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\Ht", "suffix": "esponse()\n {\n $cookie = new Cookie('rememberme', null, 0, '/', null, false, true, false, null);\n\n $request = $this->getRequest([\n ResponseListener::COOKIE_ATTR_NAME => $cookie,\n ]);\n\n $response = $this->getResponse", "middle": "tpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\ResponseListener;\n\nclass ResponseListenerTest extends TestCase\n{\n public function testRememberMeCookieIsSentWithR", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/RememberMe/ResponseListenerTest.php", "language": "php", "file_size": 3261, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\RememberMe;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\Security\\Core\\Exception\\Au", "suffix": "urity\\Http\\RememberMe\\RememberMeDetails;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\ResponseListener;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\SignatureRememberMeHandler;\n\nclass SignatureRememberMeHandlerTest extends TestCase\n{\n private Signat", "middle": "thenticationException;\nuse Symfony\\Component\\Security\\Core\\Signature\\SignatureHasher;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Sec", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/RememberMe/SignatureRememberMeHandlerTest.php", "language": "php", "file_size": 4394, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nfinal class CustomUser implements UserInterface, PasswordAuthenticatedUserInterface\n{\n pub", "suffix": "{\n return $this->username;\n }\n\n public function getRoles(): array\n {\n return $this->roles;\n }\n\n public function getPassword(): ?string\n {\n return $this->password ?? null;\n }\n\n #[\\Deprecated]\n public function ", "middle": "lic function __construct(\n private string $username,\n private array $roles,\n private ?string $password,\n private ?bool $hashPassword,\n ) {\n }\n\n public function getUserIdentifier(): string\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Fixtures/CustomUser.php", "language": "php", "file_size": 1423, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Fixtures;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationE", "suffix": ";\n\n/**\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nclass DummyAuthenticator implements AuthenticatorInterface\n{\n public function supports(Request $request): ?bool\n {\n return null;\n }\n\n public function authenticate(Request $", "middle": "xception;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\PassportInterface", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Fixtures/DummyAuthenticator.php", "language": "php", "file_size": 1440, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Fixtures;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsCsrfTokenValid;\n\nclass IsCsrfTokenValidAttributeMethodsController\n{\n public function noAttribute()\n {\n }\n\n #[IsCsrfTokenValid('", "suffix": "\"foo_\" ~ args.slug'))]\n public function withInvalidExpressionId(string $id)\n {\n }\n\n #[IsCsrfTokenValid('foo', tokenKey: 'my_token_key')]\n public function withCustomTokenKey()\n {\n }\n\n #[IsCsrfTokenValid('foo', tokenKey: 'invalid_toke", "middle": "foo')]\n public function withDefaultTokenKey()\n {\n }\n\n #[IsCsrfTokenValid(new Expression('\"foo_\" ~ args.id'))]\n public function withCustomExpressionId(string $id)\n {\n }\n\n #[IsCsrfTokenValid(new Expression('", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Fixtures/IsCsrfTokenValidAttributeMethodsController.php", "language": "php", "file_size": 1954, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Fixtures;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsGranted;\n\nclass IsGrantedAttributeMethodsController\n{\n public int $id = 42;\n\n public function noAttribute()\n {\n }\n\n #[IsGranted(attribute: 'ROLE_ADMIN", "suffix": "g1Name', 'arg2Name'])]\n public function withSubjectArray($arg1Name, $arg2Name)\n {\n }\n\n #[IsGranted(attribute: 'ROLE_ADMIN', subject: 'non_existent')]\n public function withMissingSubject()\n {\n }\n\n #[IsGranted(attribute: 'ROLE_ADMIN',", "middle": "')]\n public function admin()\n {\n }\n\n #[IsGranted(attribute: 'ROLE_ADMIN', subject: 'arg2Name')]\n public function withSubject($arg1Name, $arg2Name)\n {\n }\n\n #[IsGranted(attribute: 'ROLE_ADMIN', subject: ['ar", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Fixtures/IsGrantedAttributeMethodsController.php", "language": "php", "file_size": 2662, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsGranted;\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsGrantedContext;\n\nclass IsGrantedAttributeMethodsWithClosureController\n{\n public function noAttribute()\n {\n }\n\n #[IsGranted(static function (IsGranted", "suffix": ";\n }, subject: 'arg2Name')]\n public function withSubject($arg1Name, $arg2Name)\n {\n }\n\n #[IsGranted(static function (IsGrantedContext $context) {\n return $context->isGranted('ROLE_ADMIN');\n }, subject: ['arg1Name', 'arg2Name'])]\n ", "middle": "Context $context) {\n return $context->isGranted('ROLE_ADMIN');\n })]\n public function admin()\n {\n }\n\n #[IsGranted(static function (IsGrantedContext $context) {\n return $context->isGranted('ROLE_ADMIN')", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Fixtures/IsGrantedAttributeMethodsWithClosureController.php", "language": "php", "file_size": 2745, "cut_index": 563, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Fixtures;\n\nuse Doctrine\\Persistence\\Proxy;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass LazyDoctrinePersistenceUser implements UserInterface, Proxy\n{\n public bool $initialized = false;\n\n public function __load(): void\n {\n $this", "suffix": "sInitialized(): bool\n {\n return $this->initialized;\n }\n\n public function getRoles(): array\n {\n return ['ROLE_USER'];\n }\n\n public function eraseCredentials(): void\n {\n }\n\n public function getUserIdentifier(): string\n", "middle": "->initialized = true;\n }\n\n public function __i", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Fixtures/LazyDoctrinePersistenceUser.php", "language": "php", "file_size": 892, "cut_index": 547, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\VarExporter\\LazyObjectInterface;\n\nclass LazyVarExporterUser implements UserInterface, LazyObjectInterface\n{\n public bool $initialized = f", "suffix": "return $this;\n }\n\n public function resetLazyObject(): bool\n {\n $this->initialized = false;\n\n return true;\n }\n\n public function getRoles(): array\n {\n return ['ROLE_USER'];\n }\n\n public function eraseCredentials():", "middle": "alse;\n\n public function isLazyObjectInitialized(bool $partial = false): bool\n {\n return $this->initialized;\n }\n\n public function initializeLazyObject(): object\n {\n $this->initialized = true;\n\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Fixtures/LazyVarExporterUser.php", "language": "php", "file_size": 1104, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Logout;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\", "suffix": "ge $tokenStorage;\n private LogoutUrlGenerator $generator;\n\n protected function setUp(): void\n {\n $requestStack = new RequestStack();\n $requestStack->push(new Request());\n\n $this->tokenStorage = new TokenStorage();\n $thi", "middle": "Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Logout\\LogoutUrlGenerator;\n\n/**\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass LogoutUrlGeneratorTest extends TestCase\n{\n private TokenStora", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Logout/LogoutUrlGeneratorTest.php", "language": "php", "file_size": 4110, "cut_index": 614, "middle_length": 229}} {"prefix": "vent\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Ac", "suffix": "dException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\AccessMap;\nuse Symfony\\Component\\Security\\Http\\AccessMapInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\LazyResponseEvent;\nuse Symfony\\Component\\Sec", "middle": "cessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManagerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AuthenticatedVoter;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDenie", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php", "language": "php", "file_size": 10898, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Firewall;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\SchemeRequestMatcher;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse", "suffix": " $request = Request::create('http://symfony.com');\n\n $accessMap = new AccessMap();\n $accessMap->add(new SchemeRequestMatcher('https'), [], 'http');\n\n $listener = new ChannelListener($accessMap);\n $this->assertFalse($listener", "middle": " Symfony\\Component\\Security\\Http\\AccessMap;\nuse Symfony\\Component\\Security\\Http\\Firewall\\ChannelListener;\n\nclass ChannelListenerTest extends TestCase\n{\n public function testHandleWithNotSecuredRequestAndHttpChannel()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Firewall/ChannelListenerTest.php", "language": "php", "file_size": 3324, "cut_index": 614, "middle_length": 229}} {"prefix": "omponent\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\UsageTr", "suffix": "amePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\UnsupportedUserException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\U", "middle": "ackingTokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Usern", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php", "language": "php", "file_size": 26518, "cut_index": 1331, "middle_length": 229}} {"prefix": "cher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenSto", "suffix": "ion;\nuse Symfony\\Component\\Security\\Core\\Exception\\LogoutException;\nuse Symfony\\Component\\Security\\Http\\Authorization\\AccessDeniedHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\EntryPoint\\AuthenticationEntryPointInterface;\nuse Symfony\\Component\\Secu", "middle": "rage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationExcept", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Firewall/ExceptionListenerTest.php", "language": "php", "file_size": 9713, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\n\n/**\n * Handler for Clear-Site-Data header during logout.\n *\n * @author Max Beckers <beckers.maximilian@gmail", "suffix": "er.\n * Can be '*' or a subset of 'cache', 'cookies', 'storage', 'clientHints', 'executionContexts', 'prefetchCache', 'prerenderCache'.\n */\n public function __construct(private readonly array $cookieValue)\n {\n }", "middle": ".com>\n *\n * @final\n */\nclass ClearSiteDataLogoutListener implements EventSubscriberInterface\n{\n private const HEADER_NAME = 'Clear-Site-Data';\n\n /**\n * @param string[] $cookieValue The value for the Clear-Site-Data head", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/ClearSiteDataLogoutListener.php", "language": "php", "file_size": 1453, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Firewall;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Compo", "suffix": "onent\\Security\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\nuse Symfony\\Component\\Security\\Http\\Firewall\\LogoutListener;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;", "middle": "nent\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\LogoutException;\nuse Symfony\\Comp", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php", "language": "php", "file_size": 6784, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authentication;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;\nuse Symfony\\Component\\S", "suffix": "er the behavior\n * while keeping the default behavior.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n * @author Alexander <iam.asm89@gmail.com>\n */\nclass DefaultAuthenticationFailureHandler implem", "middle": "ecurity\\Http\\ParameterBagUtils;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\n\n/**\n * Class with the default authentication failure handling logic.\n *\n * Can be optionally be extended from by the developer to alt", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationFailureHandler.php", "language": "php", "file_size": 3524, "cut_index": 614, "middle_length": 229}} {"prefix": "nstraint\\Constraint;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security", "suffix": "ymfony\\Component\\Security\\Http\\LoginLink\\Exception\\ExpiredLoginLinkException;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\Exception\\InvalidLoginLinkException;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\LoginLinkHandler;\n\nclass LoginLinkHandlerTest ext", "middle": "\\Core\\Signature\\ExpiredSignatureStorage;\nuse Symfony\\Component\\Security\\Core\\Signature\\SignatureHasher;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\nuse S", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/LoginLink/LoginLinkHandlerTest.php", "language": "php", "file_size": 14242, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Session;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\Clearable", "suffix": "$this->createMock(Request::class);\n $request->expects($this->never())->method('getSession');\n\n $strategy = new SessionAuthenticationStrategy(SessionAuthenticationStrategy::NONE);\n $strategy->onAuthentication($request, new NullToken());", "middle": "TokenStorageInterface;\nuse Symfony\\Component\\Security\\Http\\Session\\SessionAuthenticationStrategy;\n\nclass SessionAuthenticationStrategyTest extends TestCase\n{\n public function testSessionIsNotChanged()\n {\n $request = ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Session/SessionAuthenticationStrategyTest.php", "language": "php", "file_size": 3027, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\n\n/**\n * The token handler retrieves the user identifier from the token.\n * In order to get the user identifier, implementations may need to load and validate the tok", "suffix": "ure...).\n *\n * @author Florent Morselli <florent.morselli@spomky-labs.com>\n */\ninterface AccessTokenHandlerInterface\n{\n /**\n * @throws AuthenticationException\n */\n public function getUserBadgeFrom(#[\\SensitiveParameter] string $accessToken): ", "middle": "en (e.g. revocation, expiration time, digital signat", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/AccessTokenHandlerInterface.php", "language": "php", "file_size": 927, "cut_index": 606, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * Extracts a token from the body request.\n *\n * WARNING!\n * Because of the security weaknesses associated with this method,\n * the request body method SHOULD NOT be used except i", "suffix": "html/rfc6750#section-2.2\n */\nfinal class FormEncodedBodyExtractor implements AccessTokenExtractorInterface\n{\n public function __construct(\n private readonly string $parameter = 'access_token',\n ) {\n }\n\n public function extractAccessToken", "middle": "n application contexts\n * where participating browsers do not have access to the \"Authorization\" request header field.\n *\n * @author Florent Morselli <florent.morselli@spomky-labs.com>\n *\n * @see https://datatracker.ietf.org/doc/", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/FormEncodedBodyExtractor.php", "language": "php", "file_size": 1358, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * Extracts a token from a query string parameter.\n *\n * WARNING!\n * Because of the security weaknesses associated with the URI method,\n * including the high likelihood that the U", "suffix": " @see https://datatracker.ietf.org/doc/html/rfc6750#section-2.3\n */\nfinal class QueryAccessTokenExtractor implements AccessTokenExtractorInterface\n{\n public const PARAMETER = 'access_token';\n\n public function __construct(\n private readonly str", "middle": "RL containing the access token will be logged,\n * it SHOULD NOT be used unless it is impossible to transport the access token in the\n * request header field.\n *\n * @author Florent Morselli <florent.morselli@spomky-labs.com>\n *\n *", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/QueryAccessTokenExtractor.php", "language": "php", "file_size": 1259, "cut_index": 524, "middle_length": 229}} {"prefix": "anager;\nuse Jose\\Component\\Core\\JWKSet;\nuse Jose\\Component\\Encryption\\JWEDecrypter;\nuse Jose\\Component\\Encryption\\JWETokenSupport;\nuse Jose\\Component\\Encryption\\Serializer\\CompactSerializer as JweCompactSerializer;\nuse Jose\\Component\\Encryption\\Serializer\\JWESerializerManager;\nuse Jose\\Component\\Signature\\JWSTokenSupport;\nuse Jose\\Component\\Signature\\JWSVerifier;\nuse Jose\\Component\\Signature\\Serializer\\CompactSerializer as JwsCompactSerializer;\nuse Jose\\Component\\Signature\\Serializer\\JWSSerializerManager;\nu", "suffix": "rInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oidc\\Exception\\InvalidSignatureException;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oidc\\Exception\\MissingClaimException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\FallbackUserLoader", "middle": "se Psr\\Clock\\ClockInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenHandle", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTokenHandler.php", "language": "php", "file_size": 14383, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken\\Cas;\n\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenHandlerInterface;\nuse Symfony\\Component\\Secu", "suffix": "tact@nicolasattard.fr>\n */\nfinal class Cas2Handler implements AccessTokenHandlerInterface\n{\n public function __construct(\n private readonly RequestStack $requestStack,\n private readonly string $validationUrl,\n private readonly strin", "middle": "rity\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @see https://apereo.github.io/cas/6.6.x/protocol/CAS-Protocol-V2-Specification.html\n *\n * @author Nicolas Attard <con", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/Cas/Cas2Handler.php", "language": "php", "file_size": 3321, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken\\OAuth2;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\OAuth2User;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenHandlerInterface;\nuse Symfony\\", "suffix": "rver and the Introspection Endpoint.\n *\n * @see https://tools.ietf.org/html/rfc7662\n *\n * @internal\n */\nfinal class Oauth2TokenHandler implements AccessTokenHandlerInterface\n{\n public function __construct(\n private readonly HttpClientInterface $c", "middle": "Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nuse function Symfony\\Component\\String\\u;\n\n/**\n * The token handler validates the token on the authorization se", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/OAuth2/Oauth2TokenHandler.php", "language": "php", "file_size": 3753, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Completion\\Suggestion;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n", "suffix": "#[AsCommand(name: 'security:oidc:generate-token', description: 'Generate an OIDC token for a given user')]\nfinal class OidcTokenGenerateCommand extends Command\n{\n /** @var array<string, OidcTokenGenerator> */\n private array $generators = [];\n /** ", "middle": "use Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oidc\\OidcTokenGenerator;\n\n", "meta": {"filepath": "src/Symfony/Component/Security/Http/Command/OidcTokenGenerateCommand.php", "language": "php", "file_size": 4682, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactoryInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\LegacyPasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Se", "suffix": "\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\PasswordCredentials;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\n\n/**\n * This listeners uses the interfaces of authenticators to\n * determine how to check credentials", "middle": "curity\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\PasswordUpgradeBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\CustomCredentials;", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/CheckCredentialsListener.php", "language": "php", "file_size": 3518, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\n\n/**\n * This listener clears the passed cookies when a user logs out.\n *\n * @author Johannes M. Schmitt <schm", "suffix": "/\n public function __construct(\n private array $cookies,\n ) {\n }\n\n public function onLogout(LogoutEvent $event): void\n {\n if (!$response = $event->getResponse()) {\n return;\n }\n\n foreach ($this->cookies ", "middle": "ittjoh@gmail.com>\n *\n * @final\n */\nclass CookieClearingLogoutListener implements EventSubscriberInterface\n{\n /**\n * @param array $cookies An array of cookies (keys are names, values contain path and domain) to unset\n *", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/CookieClearingLogoutListener.php", "language": "php", "file_size": 1421, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidCsrfTokenException;\nuse Symfony\\Component\\Security\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInter", "suffix": "otectionListener implements EventSubscriberInterface\n{\n public function __construct(\n private CsrfTokenManagerInterface $csrfTokenManager,\n ) {\n }\n\n public function checkPassport(CheckPassportEvent $event): void\n {\n $passport =", "middle": "face;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\CsrfTokenBadge;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @final\n */\nclass CsrfPr", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/CsrfProtectionListener.php", "language": "php", "file_size": 1730, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfon", "suffix": "ecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Core\\Exception\\RuntimeException;\nuse Symfony\\Component\\Security\\Ht", "middle": "y\\Component\\HttpKernel\\EventListener\\ControllerAttributesListener;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessD", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/IsGrantedAttributeListener.php", "language": "php", "file_size": 4895, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;\n\n/**\n * Default logout listener will redirect users to a", "suffix": " private HttpUtils $httpUtils,\n private string $targetUrl = '/',\n ) {\n }\n\n public function onLogout(LogoutEvent $event): void\n {\n if (null !== $event->getResponse()) {\n return;\n }\n\n $event->setRespo", "middle": " configured path.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Alexander <iam.asm89@gmail.com>\n *\n * @final\n */\nclass DefaultLogoutListener implements EventSubscriberInterface\n{\n public function __construct(\n", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/DefaultLogoutListener.php", "language": "php", "file_size": 1247, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authentication;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */", "suffix": "\n private AuthenticationFailureHandlerInterface $handler,\n array $options,\n ) {\n if (method_exists($handler, 'setOptions')) {\n $this->handler->setOptions($options);\n }\n }\n\n public function onAuthenticationFai", "middle": "\nclass CustomAuthenticationFailureHandler implements AuthenticationFailureHandlerInterface\n{\n /**\n * @param array $options Options for processing a successful authentication attempt\n */\n public function __construct(", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/CustomAuthenticationFailureHandler.php", "language": "php", "file_size": 1164, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authentication;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\ncla", "suffix": " private AuthenticationSuccessHandlerInterface $handler,\n array $options,\n string $firewallName,\n ) {\n if (method_exists($handler, 'setOptions')) {\n $this->handler->setOptions($options);\n }\n\n if (method_", "middle": "ss CustomAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface\n{\n /**\n * @param array $options Options for processing a successful authentication attempt\n */\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/CustomAuthenticationSuccessHandler.php", "language": "php", "file_size": 1309, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authentication;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;\nuse Symfony\\Component\\Security\\Http\\ParameterBagUtils;\nuse Symfony\\Componen", "suffix": "ander <iam.asm89@gmail.com>\n */\nclass DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface\n{\n use TargetPathTrait;\n\n protected array $options;\n protected ?string $firewallName = null;\n protected array $defaultOpt", "middle": "t\\Security\\Http\\Util\\TargetPathTrait;\n\n/**\n * Class with the default authentication success handling logic.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n * @author Alex", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php", "language": "php", "file_size": 3876, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * The token extractor retrieves the token from a request.\n *\n * @author Florent Morselli <florent.morselli@spomky-labs.com>\n */\nfinal class ChainAccessTokenExtractor i", "suffix": " }\n\n public function extractAccessToken(Request $request): ?string\n {\n foreach ($this->accessTokenExtractors as $extractor) {\n if ($accessToken = $extractor->extractAccessToken($request)) {\n return $accessToken;\n ", "middle": "mplements AccessTokenExtractorInterface\n{\n /**\n * @param AccessTokenExtractorInterface[] $accessTokenExtractors\n */\n public function __construct(\n private readonly iterable $accessTokenExtractors,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/ChainAccessTokenExtractor.php", "language": "php", "file_size": 1047, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken\\Oidc;\n\nuse Jose\\Component\\Core\\Algorithm;\nuse Jose\\Component\\Core\\AlgorithmManager;\nuse Jose\\Component\\Core\\JWKSet;\nuse Jose\\Component\\Signature\\JWSBuilder;\nuse Jose\\Component\\Signature\\Serializer\\CompactSerializer;\nuse Psr\\Clock\\ClockInterface;\nuse Symfony\\Component\\Clock\\Clock;\n\nclass OidcTokenGenerator\n{\n public fu", "suffix": "y string $claim = 'sub',\n private readonly ClockInterface $clock = new Clock(),\n ) {\n }\n\n public function generate(string $userIdentifier, ?string $algorithmAlias = null, ?string $issuer = null, ?int $ttl = null, ?\\DateTimeImmutable $notBef", "middle": "nction __construct(\n private readonly AlgorithmManager $algorithmManager,\n private readonly JWKSet $jwkset,\n private readonly string $audience,\n private readonly array $issuers,\n private readonl", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTokenGenerator.php", "language": "php", "file_size": 3980, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken\\Oidc;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oidc\\Exception\\MissingClaimException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Fa", "suffix": "he token on the OIDC server and retrieves the user identifier.\n */\nfinal class OidcUserInfoTokenHandler implements AccessTokenHandlerInterface\n{\n use OidcTrait;\n\n private ?CacheInterface $discoveryCache = null;\n private ?string $oidcConfigurationC", "middle": "llbackUserLoader;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * The token handler validates t", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcUserInfoTokenHandler.php", "language": "php", "file_size": 3746, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\RememberMeBadge;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginSuccessEvent;\nuse Symfony\\Component\\Security\\", "suffix": "key under your firewall is configured\n * C) The \"remember me\" functionality is activated. This is usually\n * done by having a _remember_me checkbox in your form, but\n * can be configured by the \"always_remember_me\" and \"remember_me_parameter\"\n *", "middle": "Http\\ParameterBagUtils;\n\n/**\n * Checks if all conditions are met for remember me.\n *\n * The conditions that must be met for this listener to enable remember me:\n * A) This badge is present in the Passport\n * B) The remember_me ", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/CheckRememberMeConditionsListener.php", "language": "php", "file_size": 2557, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface", "suffix": " UserInterface}.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\nfinal class UserValueResolver implements ValueResolverInterface\n{\n public function __construct(\n private TokenStorageInterface $tokenStorage,\n ) {\n }\n\n public funct", "middle": ";\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\Attribute\\CurrentUser;\n\n/**\n * Supports the argument type of {@see", "meta": {"filepath": "src/Symfony/Component/Security/Http/Controller/UserValueResolver.php", "language": "php", "file_size": 2647, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\RateLimiter\\PeekableRequestRateLimiterInterface;\nuse Symfony\\Component\\HttpFoundation\\RateLimiter\\RequestRateLimiterInterface;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Exc", "suffix": "nt\\LoginFailureEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nfinal class LoginThrottlingListener implements EventSub", "middle": "eption\\TooManyLoginAttemptsAuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\nuse Symfony\\Component\\Security\\Http\\Eve", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/LoginThrottlingListener.php", "language": "php", "file_size": 3304, "cut_index": 614, "middle_length": 229}} {"prefix": "rface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManagerInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserChecker;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse ", "suffix": "ents;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\nclass SwitchUserListenerTest extends TestCase\n{\n private TokenStorage $tokenStorage;\n private InMemoryUserProvider $userProvider;\n private UserCheckerInterface $userChecker;\n ", "middle": "Symfony\\Component\\Security\\Core\\User\\UserCheckerInterface;\nuse Symfony\\Component\\Security\\Http\\Event\\SwitchUserEvent;\nuse Symfony\\Component\\Security\\Http\\Firewall\\SwitchUserListener;\nuse Symfony\\Component\\Security\\Http\\SecurityEv", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php", "language": "php", "file_size": 20898, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Impersonate;\n\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\n", "suffix": ".com>\n */\nclass ImpersonateUrlGenerator\n{\n public function __construct(\n private RequestStack $requestStack,\n private FirewallMap $firewallMap,\n private TokenStorageInterface $tokenStorage,\n ) {\n }\n\n public function generat", "middle": "use Symfony\\Component\\Security\\Http\\Firewall\\SwitchUserListener;\n\n/**\n * Provides generator functions for the impersonation urls.\n *\n * @author Amrouche Hamza <hamza.simperfit@gmail.com>\n * @author Damien Fayet <damienf1521@gmail", "meta": {"filepath": "src/Symfony/Component/Security/Http/Impersonate/ImpersonateUrlGenerator.php", "language": "php", "file_size": 2809, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken\\Oidc;\n\nuse Symfony\\Component\\Security\\Core\\User\\OidcUser;\n\nuse function Symfony\\Component\\String\\u;\n\n/**\n * Creates {@see OidcUser} from claims.\n *\n * @internal\n */\ntrait OidcTrait\n{\n private function createUser(array $claims): OidcUser\n {", "suffix": "ny/string\".');\n }\n\n foreach ($claims as $claim => $value) {\n unset($claims[$claim]);\n if ('' === $value || null === $value) {\n continue;\n }\n $claims[u($claim)->camel()->toString()] = ", "middle": "\n if (!\\function_exists('Symfony\\Component\\String\\u')) {\n throw new \\LogicException('You cannot use the \"OidcUserInfoTokenHandler\" since the String component is not installed. Try running \"composer require symfo", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTrait.php", "language": "php", "file_size": 1732, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\ClearableTokenStorageInterface;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\SessionTokenStorage;\nuse Sym", "suffix": "ion __construct(\n private ClearableTokenStorageInterface $csrfTokenStorage,\n ) {\n }\n\n public function onLogout(LogoutEvent $event): void\n {\n if ($this->csrfTokenStorage instanceof SessionTokenStorage && !$event->getRequest()->hasP", "middle": "fony\\Component\\Security\\Http\\Event\\LogoutEvent;\n\n/**\n * @author Christian Flothmann <christian.flothmann@sensiolabs.de>\n *\n * @final\n */\nclass CsrfTokenClearingLogoutListener implements EventSubscriberInterface\n{\n public funct", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/CsrfTokenClearingLogoutListener.php", "language": "php", "file_size": 1247, "cut_index": 518, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authentication;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInterface;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\ninterface Authenti", "suffix": " if authentication should be attempted on this request.\n *\n * @see FirewallListenerInterface::supports()\n */\n public function supports(Request $request): ?bool;\n\n /**\n * Tries to authenticate the request and returns a response - if an", "middle": "catorManagerInterface\n{\n /**\n * Called to see", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/AuthenticatorManagerInterface.php", "language": "php", "file_size": 995, "cut_index": 582, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authentication;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface", "suffix": "y login a user and return a\n * Response *if any* for success.\n *\n * @param BadgeInterface[] $badges Optionally, pass some Passport badges to use for the manual login\n * @param array<string, mixed> $attributes Optionally, pass some P", "middle": ";\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\BadgeInterface;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\ninterface UserAuthenticatorInterface\n{\n /**\n * Convenience method to programmaticall", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authentication/UserAuthenticatorInterface.php", "language": "php", "file_size": 1231, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\C", "suffix": "tin Myakshin <molodchick@gmail.com>\n */\nfinal class SecurityTokenValueResolver implements ValueResolverInterface\n{\n public function __construct(private readonly TokenStorageInterface $tokenStorage)\n {\n }\n\n /**\n * @return TokenInterface[]\n ", "middle": "omponent\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * @author Konstan", "meta": {"filepath": "src/Symfony/Component/Security/Http/Controller/SecurityTokenValueResolver.php", "language": "php", "file_size": 1594, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Compo", "suffix": "onent\\Security\\Http\\Attribute\\IsCsrfTokenValid;\n\n/**\n * Handles the IsCsrfTokenValid attribute on controllers.\n */\nfinal class IsCsrfTokenValidAttributeListener implements EventSubscriberInterface\n{\n public function __construct(\n private readonly", "middle": "nent\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidCsrfTokenException;\nuse Symfony\\Component\\Security\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Comp", "meta": {"filepath": "src/Symfony/Component/Security/Http/EventListener/IsCsrfTokenValidAttributeListener.php", "language": "php", "file_size": 3817, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\AccessToken;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * Extracts a token from the request header.\n *\n * @author Florent Morselli <florent.morselli@spomky-labs.com>\n *\n * @see https://datatracker.ietf.org/doc/html/rfc6750#section-2.1", "suffix": "te readonly string $tokenType = 'Bearer',\n ) {\n $this->regex = \\sprintf(\n '/^%s([a-zA-Z0-9\\-_\\+~\\/\\.]+=*)$/',\n '' === $this->tokenType ? '' : preg_quote($this->tokenType).'\\s+'\n );\n }\n\n public function extractAc", "middle": "\n */\nfinal class HeaderAccessTokenExtractor implements AccessTokenExtractorInterface\n{\n private string $regex;\n\n public function __construct(\n private readonly string $headerParameter = 'Authorization',\n priva", "meta": {"filepath": "src/Symfony/Component/Security/Http/AccessToken/HeaderAccessTokenExtractor.php", "language": "php", "file_size": 1355, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenExtractorInterface;\nuse Symfony\\Component", "suffix": "\\Security\\Http\\Authenticator\\FallbackUserLoader;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\n\nclass AccessTokenAuthenticatorTest extends TestCase\n{\n private InMemoryUserProvider $userProvider;\n\n protected function setU", "middle": "\\Security\\Http\\AccessToken\\AccessTokenHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\HeaderAccessTokenExtractor;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AccessTokenAuthenticator;\nuse Symfony\\Component", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/AccessTokenAuthenticatorTest.php", "language": "php", "file_size": 6864, "cut_index": 716, "middle_length": 229}} {"prefix": "rage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\Exception\\LockedException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticatorManager;\n", "suffix": "erface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\CsrfTokenBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\PasswordCredentials;", "middle": "use Symfony\\Component\\Security\\Http\\Authentication\\ExposeSecurityLevel;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\InteractiveAuthenticatorInt", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php", "language": "php", "file_size": 21462, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authentication;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfo", "suffix": "nt\\Security\\Http\\HttpUtils;\n\nclass DefaultAuthenticationSuccessHandlerTest extends TestCase\n{\n #[DataProvider('getRequestRedirections')]\n public function testRequestRedirections(Request $request, $options, $redirectedUrl)\n {\n $urlGenerator ", "middle": "ny\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Http\\Authentication\\DefaultAuthenticationSuccessHandler;\nuse Symfony\\Compone", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php", "language": "php", "file_size": 7661, "cut_index": 716, "middle_length": 229}} {"prefix": " Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\OidcUser;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oidc\\OidcTokenHandler;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Contracts\\Cache\\ItemInterface;\n\n#[RequiresPhpExtension('openssl')]\nclass OidcTokenHandlerTest extends TestCase\n{\n private const AUDIENCE = 'Symfony OIDC';\n\n #[DataProvi", "suffix": "xp' => $time + 3600,\n 'iss' => 'https://www.example.com',\n 'aud' => self::AUDIENCE,\n 'sub' => 'e21bf182-1538-406e-8ccb-e25a17aba39f',\n 'email' => 'foo@example.com',\n ];\n $token = self::buildJWS(json", "middle": "der('getClaims')]\n public function testGetsUserIdentifierFromSignedToken(string $claim, string $expected)\n {\n $time = time();\n $claims = [\n 'iat' => $time,\n 'nbf' => $time,\n 'e", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php", "language": "php", "file_size": 22658, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\AccessToken\\Cas;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\HttpFoundation\\Exception\\SuspiciousOperationException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security", "suffix": "Hosts(['.*']);\n }\n\n protected function tearDown(): void\n {\n Request::setTrustedHosts([]);\n }\n\n public function testWithValidTicket()\n {\n $response = new MockResponse(<<<BODY\n <cas:serviceResponse xmlns:cas='ht", "middle": "\\Http\\AccessToken\\Cas\\Cas2Handler;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\n\nfinal class Cas2HandlerTest extends TestCase\n{\n protected function setUp(): void\n {\n Request::setTrusted", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/AccessToken/Cas/Cas2HandlerTest.php", "language": "php", "file_size": 7244, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\AccessToken\\OAuth2;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\Security\\Core\\User\\OAuth2User;\nuse Symfony\\Component\\Security\\Http\\Acce", "suffix": " {\n $accessToken = 'a-secret-token';\n $claims = [\n 'active' => true,\n 'client_id' => 'l238j323ds-23ij4',\n 'username' => 'jdoe',\n 'scope' => 'read write dolphin',\n 'sub' => 'Z5O3upPC88Q", "middle": "ssToken\\OAuth2\\Oauth2TokenHandler;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\n\nclass OAuth2TokenHandlerTest extends TestCase\n{\n public function testGetsUserIdentifierFromOAuth2ServerResponse()\n", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/AccessToken/OAuth2/OAuth2TokenHandlerTest.php", "language": "php", "file_size": 1971, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactory;\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\PasswordUpgrade", "suffix": "rt\\Credentials\\PasswordCredentials;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\nuse Sy", "middle": "Badge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\CustomCredentials;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passpo", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/CheckCredentialsListenerTest.php", "language": "php", "file_size": 7103, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\RememberMeBadge;\nuse Symfony\\Component\\Security\\Http\\A", "suffix": "ent\\LoginSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\CheckRememberMeConditionsListener;\nuse Symfony\\Component\\Security\\Http\\Tests\\Fixtures\\DummyAuthenticator;\n\nclass CheckRememberMeConditionsListenerTest extends TestCase\n{\n private C", "middle": "uthenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\Ev", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/CheckRememberMeConditionsListenerTest.php", "language": "php", "file_size": 5369, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidCsrfTokenException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Component\\Security\\Http\\Authen", "suffix": "Http\\Event\\CheckPassportEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\CsrfProtectionListener;\nuse Symfony\\Component\\Security\\Http\\Tests\\Fixtures\\DummyAuthenticator;\n\nclass CsrfProtectionListenerTest extends TestCase\n{\n public function testNoC", "middle": "ticator\\Passport\\Badge\\CsrfTokenBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/CsrfProtectionListenerTest.php", "language": "php", "file_size": 3238, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Exception\\SessionNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Componen", "suffix": "t extends TestCase\n{\n public function testSkipsClearingSessionTokenStorageOnStatelessRequest()\n {\n try {\n (new CsrfTokenClearingLogoutListener(\n new SessionTokenStorage(new RequestStack())\n ))->onLogout(new", "middle": "t\\Security\\Csrf\\TokenStorage\\SessionTokenStorage;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\CsrfTokenClearingLogoutListener;\n\nclass CsrfTokenClearingLogoutListenerTes", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/CsrfTokenClearingLogoutListenerTest.php", "language": "php", "file_size": 1260, "cut_index": 524, "middle_length": 229}} {"prefix": "amework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationChecker;\nuse Symfony\\Component\\Security\\Core\\Authorizati", "suffix": "tedAttributeListener;\nuse Symfony\\Component\\Security\\Http\\Tests\\Fixtures\\IsGrantedAttributeMethodsWithClosureController;\nuse Symfony\\Component\\Security\\Http\\Tests\\Fixtures\\IsGrantedAttributeWithClosureController;\n\n#[RequiresPhp('>=8.5.0')]\nclass IsGrantedA", "middle": "on\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\ClosureVoter;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Http\\EventListener\\IsGran", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/IsGrantedAttributeWithClosureListenerTest.php", "language": "php", "file_size": 14492, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Compone", "suffix": "\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\RememberMeListener;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\RememberMeHandle", "middle": "nt\\Security\\Http\\Authenticator\\Passport\\Badge\\RememberMeBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/RememberMeListenerTest.php", "language": "php", "file_size": 3234, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactory;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactoryInterface;\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Comp", "suffix": "Interface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\PasswordUpgradeBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Compon", "middle": "onent\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordUpgraderInterface;\nuse Symfony\\Component\\Security\\Core\\User\\User", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/PasswordMigratingListenerTest.php", "language": "php", "file_size": 6577, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Event\\AuthenticationSuccessEvent;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\UserCheckerInterfa", "suffix": "t\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Token\\PostAuthenticationToken;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\UserCheckerListener;\nuse Symfony\\Comp", "middle": "ce;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\PreAuthenticatedUserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passpor", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/UserCheckerListenerTest.php", "language": "php", "file_size": 2955, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationExc", "suffix": "nent\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Token\\PostAuthenticationToken;\n\nclass AbstractAuthenticatorTest extends", "middle": "eption;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AbstractAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Compo", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/AbstractAuthenticatorTest.php", "language": "php", "file_size": 2157, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Controller;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\DefaultValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\", "suffix": "ntication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Controller\\SecurityTokenValueResolver;\n\nclass SecurityTokenValueResolverTest extends TestCase\n{\n public function testResolv", "middle": "HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authe", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Controller/SecurityTokenValueResolverTest.php", "language": "php", "file_size": 4421, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\", "suffix": "ruct(\n private parent $event,\n ) {\n }\n\n public function setResponse(Response $response): never\n {\n $this->stopPropagation();\n $this->event->stopPropagation();\n\n throw new LazyResponseException($response);\n }\n\n ", "middle": "Exception\\LazyResponseException;\n\n/**\n * Wraps a lazily computed response in a signaling exception.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfinal class LazyResponseEvent extends RequestEvent\n{\n public function __const", "meta": {"filepath": "src/Symfony/Component/Security/Http/Event/LazyResponseEvent.php", "language": "php", "file_size": 1415, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\A", "suffix": "*\n * Listeners to this event can change state based on authentication\n * failure (e.g. to implement login throttling).\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass LoginFailureEvent extends Event\n{\n public function __construct(\n pri", "middle": "uthenticator\\Debug\\TraceableAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * This event is dispatched after an error during authentication.\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Event/LoginFailureEvent.php", "language": "php", "file_size": 2102, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Aut", "suffix": "vent is dispatched after authentication has successfully completed.\n *\n * At this stage, the authenticator created a token and\n * generated an authentication success response. Listeners to\n * this event can do actions related to successful authentication\n ", "middle": "henticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * This e", "meta": {"filepath": "src/Symfony/Component/Security/Http/Event/LoginSuccessEvent.php", "language": "php", "file_size": 2537, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * @author Wou", "suffix": " }\n\n public function getRequest(): Request\n {\n return $this->request;\n }\n\n public function getToken(): ?TokenInterface\n {\n return $this->token;\n }\n\n public function setResponse(Response $response): void\n {\n $thi", "middle": "ter de Jong <wouter@wouterj.nl>\n */\nclass LogoutEvent extends Event\n{\n private ?Response $response = null;\n\n public function __construct(\n private Request $request,\n private ?TokenInterface $token,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Event/LogoutEvent.php", "language": "php", "file_size": 1126, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * Sw", "suffix": " private ?TokenInterface $token = null,\n ) {\n }\n\n public function getRequest(): Request\n {\n return $this->request;\n }\n\n public function getTargetUser(): UserInterface\n {\n return $this->targetUser;\n }\n\n public fun", "middle": "itchUserEvent.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class SwitchUserEvent extends Event\n{\n public function __construct(\n private Request $request,\n private UserInterface $targetUser,\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Event/SwitchUserEvent.php", "language": "php", "file_size": 1182, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * This event is dispatched when the current security token is deau", "suffix": "u want to trigger some actions whenever a user is\n * deauthenticated and redirected back to the authentication entry point\n * (e.g. clearing all remember-me cookies).\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nfinal class TokenDeauthenticatedEven", "middle": "thenticated\n * when trying to reference the token.\n *\n * This includes changes in the user ({@see DeauthenticatedEvent}), but\n * also cases where there is no user provider available to refresh the user.\n *\n * Use this event if yo", "meta": {"filepath": "src/Symfony/Component/Security/Http/Event/TokenDeauthenticatedEvent.php", "language": "php", "file_size": 1348, "cut_index": 524, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authorization;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\n\n/**\n * This is used by the ExceptionListener to translate an Acc", "suffix": "uthor Johannes M. Schmitt <schmittjoh@gmail.com>\n */\ninterface AccessDeniedHandlerInterface\n{\n /**\n * Handles an access denied failure.\n */\n public function handle(Request $request, AccessDeniedException $accessDeniedException): ?Response;\n}\n", "middle": "essDeniedException\n * to a Response object.\n *\n * @a", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authorization/AccessDeniedHandlerInterface.php", "language": "php", "file_size": 831, "cut_index": 523, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Token\\PostAuthenticationTok", "suffix": "to create a PostAuthenticationToken for you, if you don't really\n * care about which authenticated token you're using.\n */\n public function createToken(Passport $passport, string $firewallName): TokenInterface\n {\n return new PostAuthen", "middle": "en;\n\n/**\n * An optional base class that creates the necessary tokens for you.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nabstract class AbstractAuthenticator implements AuthenticatorInterface\n{\n /**\n * Shortcut ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/AbstractAuthenticator.php", "language": "php", "file_size": 1094, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\EntryPoint\\A", "suffix": "AbstractLoginFormAuthenticator extends AbstractAuthenticator implements AuthenticationEntryPointInterface, InteractiveAuthenticatorInterface\n{\n /**\n * Return the URL to the login page.\n *\n * The default `supports()` implementation below comp", "middle": "uthenticationEntryPointInterface;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\n\n/**\n * A base class to make form login authentication easier!\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nabstract class ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/AbstractLoginFormAuthenticator.php", "language": "php", "file_size": 2906, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\PreAuthenticatedToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Securi", "suffix": "serProviderInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\PreAuthenticatedUserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passpor", "middle": "ty\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\U", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/AbstractPreAuthenticatedAuthenticator.php", "language": "php", "file_size": 4671, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfon", "suffix": "nt\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Secu", "middle": "y\\Component\\Security\\Core\\User\\UserProviderInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenExtractorInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenHandlerInterface;\nuse Symfony\\Compone", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/AccessTokenAuthenticator.php", "language": "php", "file_size": 4781, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\n\n/**\n * The ", "suffix": " /**\n * Does the authenticator support the given Request?\n *\n * If this returns true, authenticate() will be called. If false, the authenticator will be skipped.\n *\n * Returning null means authenticate() can be called lazily when acce", "middle": "interface for all authenticators.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n * @author Amaury Leroux de Lens <amaury@lerouxdelens.com>\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\ninterface AuthenticatorInterface\n{\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/AuthenticatorInterface.php", "language": "php", "file_size": 3322, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\Authen", "suffix": "fony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\CsrfTokenBadge;\nus", "middle": "ticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordUpgraderInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\nuse Sym", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/FormLoginAuthenticator.php", "language": "php", "file_size": 7636, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\AccessToken\\Oidc;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\OidcUser;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oidc\\OidcUserInfoTokenHandler;\n", "suffix": "tCase\n{\n #[DataProvider('getClaims')]\n public function testGetsUserIdentifierFromOidcServerResponse(string $claim, string $expected)\n {\n $accessToken = 'a-secret-token';\n $claims = [\n 'sub' => 'e21bf182-1538-406e-8ccb-e25a", "middle": "use Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\nclass OidcUserInfoTokenHandlerTest extends Tes", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcUserInfoTokenHandlerTest.php", "language": "php", "file_size": 3388, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge", "suffix": "serBadge\n {\n if (!\\array_key_exists($accessToken, $this->accessTokens)) {\n throw new BadCredentialsException('Invalid access token or invalid user.');\n }\n\n return $this->accessTokens[$accessToken];\n }\n\n public funct", "middle": ";\n\nclass InMemoryAccessTokenHandler implements AccessTokenHandlerInterface\n{\n /**\n * @var array<string, UserBadge>\n */\n private array $accessTokens = [];\n\n public function getUserBadgeFrom(string $accessToken): U", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/InMemoryAccessTokenHandler.php", "language": "php", "file_size": 1289, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Comp", "suffix": " Symfony\\Component\\Security\\Http\\HttpUtils;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\Translator;\n\nclass JsonLoginAuthenticatorTest extends TestCase\n{\n private InMemoryUserProvider $userProvider;\n private", "middle": "onent\\Security\\Http\\Authenticator\\JsonLoginAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\PasswordCredentials;\nuse", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/JsonLoginAuthenticatorTest.php", "language": "php", "file_size": 7520, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\PreAuthenticatedToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Securi", "suffix": "Provider('provideAuthenticators')]\n public function testSupport(InMemoryUserProvider $userProvider, RemoteUserAuthenticator $authenticator, $parameterName)\n {\n $request = $this->createRequest([$parameterName => 'TheUsername']);\n\n $this-", "middle": "ty\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\RemoteUserAuthenticator;\n\nclass RemoteUserAuthenticatorTest extends TestCase\n{\n #[Data", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/RemoteUserAuthenticatorTest.php", "language": "php", "file_size": 3122, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\Passport\\Badge;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nus", "suffix": "badge = new UserBadge('dummy', static fn () => null);\n $this->expectException(UserNotFoundException::class);\n $badge->getUser();\n }\n\n public function testEmptyUserIdentifier()\n {\n $this->expectException(BadCredentialsException", "middle": "e Symfony\\Component\\String\\Slugger\\AsciiSlugger;\nuse Symfony\\Component\\String\\UnicodeString;\n\nuse function Symfony\\Component\\String\\u;\n\nclass UserBadgeTest extends TestCase\n{\n public function testUserNotFound()\n {\n $", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php", "language": "php", "file_size": 3135, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\AccessToken;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\FormEncodedBodyExt", "suffix": "tingPassport;\nuse Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\InMemoryAccessTokenHandler;\n\nclass FormEncodedBodyAccessTokenAuthenticatorTest extends TestCase\n{\n private InMemoryUserProvider $userProvider;\n private AccessTokenAuthenticator $au", "middle": "ractor;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AccessTokenAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValida", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/AccessToken/FormEncodedBodyAccessTokenAuthenticatorTest.php", "language": "php", "file_size": 5189, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\AccessToken;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\Acces", "suffix": "ticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\InMemoryAccessTokenHandler;\n\nclass QueryAccessTokenAuthenticatorTest extends TestCa", "middle": "sToken\\AccessTokenHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\QueryAccessTokenExtractor;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AccessTokenAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authen", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/AccessToken/QueryAccessTokenAuthenticatorTest.php", "language": "php", "file_size": 4484, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Event;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * When a newly authenticated security", "suffix": "te TokenInterface $token,\n private Passport $passport,\n ) {\n }\n\n public function getAuthenticatedToken(): TokenInterface\n {\n return $this->token;\n }\n\n public function setAuthenticatedToken(TokenInterface $authenticatedToken)", "middle": " token was created, before it becomes effective in the security system.\n *\n * @author Christian Scheb <me@christianscheb.de>\n */\nclass AuthenticationTokenCreatedEvent extends Event\n{\n public function __construct(\n priva", "meta": {"filepath": "src/Symfony/Component/Security/Http/Event/AuthenticationTokenCreatedEvent.php", "language": "php", "file_size": 1157, "cut_index": 518, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Event;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class InteractiveLoginEvent ext", "suffix": " private Request $request,\n private TokenInterface $authenticationToken,\n ) {\n }\n\n public function getRequest(): Request\n {\n return $this->request;\n }\n\n public function getAuthenticationToken(): TokenInterface\n {\n ", "middle": "ends Event\n{\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Event/InteractiveLoginEvent.php", "language": "php", "file_size": 899, "cut_index": 547, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Controller;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\DefaultValueResolver;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token", "suffix": "e Symfony\\Component\\Security\\Core\\User\\OAuth2User;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\Attribute\\CurrentUser;\nuse Symfony\\Component\\Security\\Http\\Controller\\UserValueResolver;\nuse Symfony\\Component\\Se", "middle": "\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nus", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php", "language": "php", "file_size": 7845, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\nuse Symf", "suffix": "aConfig, string $expectedHeader)\n {\n $response = new Response();\n $event = new LogoutEvent(new Request(), null);\n $event->setResponse($response);\n\n $listener = new ClearSiteDataLogoutListener($clearSiteDataConfig);\n\n $", "middle": "ony\\Component\\Security\\Http\\EventListener\\ClearSiteDataLogoutListener;\n\nclass ClearSiteDataLogoutListenerTest extends TestCase\n{\n #[DataProvider('provideClearSiteDataConfig')]\n public function testLogout(array $clearSiteDat", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/ClearSiteDataLogoutListenerTest.php", "language": "php", "file_size": 1758, "cut_index": 537, "middle_length": 229}} {"prefix": "se Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationChecker;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\ExpressionLanguage;\nuse Symfony", "suffix": "thorization\\Voter\\Voter;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsGranted;\nuse Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener;\nuse Symfony\\Component\\Secur", "middle": "\\Component\\Security\\Core\\Authorization\\Voter\\ExpressionVoter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\RoleVoter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Vote;\nuse Symfony\\Component\\Security\\Core\\Au", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/IsGrantedAttributeListenerTest.php", "language": "php", "file_size": 27253, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\nuse Symfony\\Component\\Security\\Http", "suffix": "ession')->willReturn(false);\n $request->expects($this->never())->method('getSession');\n\n $sessionLogoutListener = new SessionLogoutListener();\n $sessionLogoutListener->onLogout(new LogoutEvent($request, null));\n }\n\n public functi", "middle": "\\EventListener\\SessionLogoutListener;\n\nclass SessionLogoutListenerTest extends TestCase\n{\n public function testOnLogoutIfHasNoSession()\n {\n $request = $this->createMock(Request::class);\n $request->method('hasS", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/SessionLogoutListenerTest.php", "language": "php", "file_size": 1384, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge", "suffix": "use Symfony\\Component\\Security\\Http\\Tests\\Fixtures\\DummyAuthenticator;\n\nclass UserProviderListenerTest extends TestCase\n{\n private InMemoryUserProvider $userProvider;\n private UserProviderListener $listener;\n\n protected function setUp(): void\n ", "middle": "\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\UserProviderListener;\n", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/UserProviderListenerTest.php", "language": "php", "file_size": 2202, "cut_index": 563, "middle_length": 229}} {"prefix": "undation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSucce", "suffix": "port\\Badge\\PasswordUpgradeBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\PasswordCredentials;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;\nuse Symf", "middle": "ssHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\FormLoginAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\CsrfTokenBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Pass", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/FormLoginAuthenticatorTest.php", "language": "php", "file_size": 11673, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authentication;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\Security\\Core\\Exception\\Auth", "suffix": "tLastAuthenticationErrorWhenRequestHasAttribute()\n {\n $authenticationError = new AuthenticationException();\n $request = Request::create('/');\n $request->attributes->set(SecurityRequestAttributes::AUTHENTICATION_ERROR, $authenticatio", "middle": "enticationException;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationUtils;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\n\nclass AuthenticationUtilsTest extends TestCase\n{\n public function tes", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticationUtilsTest.php", "language": "php", "file_size": 4522, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Compon", "suffix": "ials;\nuse Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\Fixtures\\PasswordUpgraderProvider;\n\nclass HttpBasicAuthenticatorTest extends TestCase\n{\n private InMemoryUserProvider $userProvider;\n private HttpBasicAuthenticator $authenticator;\n\n pr", "middle": "ent\\Security\\Http\\Authenticator\\HttpBasicAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\PasswordUpgradeBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\PasswordCredent", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/HttpBasicAuthenticatorTest.php", "language": "php", "file_size": 2968, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Userna", "suffix": "\\Component\\Security\\Http\\RememberMe\\RememberMeDetails;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\RememberMeHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\ResponseListener;\n\nclass RememberMeAuthenticatorTest extends TestCase\n{\n pri", "middle": "mePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\RememberMeAuthenticator;\nuse Symfony", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/RememberMeAuthenticatorTest.php", "language": "php", "file_size": 4787, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\AccessToken;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\Acces", "suffix": "ken\\HeaderAccessTokenExtractor;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\QueryAccessTokenExtractor;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AccessTokenAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadg", "middle": "sToken\\AccessTokenHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\ChainAccessTokenExtractor;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\FormEncodedBodyExtractor;\nuse Symfony\\Component\\Security\\Http\\AccessTo", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/AccessToken/ChainedAccessTokenExtractorsTest.php", "language": "php", "file_size": 4513, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\Debug;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator;\nuse Symfony\\Component\\S", "suffix": " $request = new Request();\n $passport = new SelfValidatingPassport(new UserBadge('robin', static function () {}));\n\n $authenticator = $this->createMock(AuthenticatorInterface::class);\n $authenticator->expects($this->once())\n ", "middle": "ecurity\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\n\nclass TraceableAuthenticatorTest extends TestCase\n{\n public function testGetInfo()\n {\n", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/Debug/TraceableAuthenticatorTest.php", "language": "php", "file_size": 2207, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Event;\n\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\C", "suffix": "n and\n * user checking)\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass CheckPassportEvent extends Event\n{\n public function __construct(\n private AuthenticatorInterface $authenticator,\n private Passport $passport,\n ) {\n }\n", "middle": "ontracts\\EventDispatcher\\Event;\n\n/**\n * This event is dispatched when the credentials have to be checked.\n *\n * Listeners to this event must validate the user and the\n * credentials (e.g. default listeners do password verificatio", "meta": {"filepath": "src/Symfony/Component/Security/Http/Event/CheckPassportEvent.php", "language": "php", "file_size": 1313, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\ResponseHeaderBag;\nuse Symfony\\Component\\Security\\Http", "suffix": "e();\n $event = new LogoutEvent(new Request(), null);\n $event->setResponse($response);\n\n $listener = new CookieClearingLogoutListener(['foo' => ['path' => '/foo', 'domain' => 'foo.foo', 'secure' => true, 'samesite' => Cookie::SAMESITE_S", "middle": "\\Event\\LogoutEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\CookieClearingLogoutListener;\n\nclass CookieClearingLogoutListenerTest extends TestCase\n{\n public function testLogout()\n {\n $response = new Respons", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/CookieClearingLogoutListenerTest.php", "language": "php", "file_size": 2786, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Cor", "suffix": "r\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\SessionStrategyListener;\nuse Symfo", "middle": "e\\Authentication\\Token\\PreAuthenticatedToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Authenticato", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/SessionStrategyListenerTest.php", "language": "php", "file_size": 4729, "cut_index": 614, "middle_length": 229}} {"prefix": "\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authentication\\DefaultAuthent", "suffix": " private SessionInterface $session;\n private AuthenticationException $exception;\n\n protected function setUp(): void\n {\n $this->session = new Session(new MockArraySessionStorage());\n $this->request = Request::create('https://localh", "middle": "icationFailureHandler;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\n\nclass DefaultAuthenticationFailureHandlerTest extends TestCase\n{\n private Request $request;\n", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php", "language": "php", "file_size": 11052, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Logi", "suffix": "assport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\Exception\\ExpiredLoginLinkException;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\Exception\\InvalidLoginLinkAuthenticationExceptio", "middle": "nLinkAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\RememberMeBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\P", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/LoginLinkAuthenticatorTest.php", "language": "php", "file_size": 5517, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\AccessToken;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\AccessTokenHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\HeaderAccessTokenE", "suffix": "datingPassport;\nuse Symfony\\Component\\Security\\Http\\Tests\\Authenticator\\InMemoryAccessTokenHandler;\n\nclass HeaderAccessTokenAuthenticatorTest extends TestCase\n{\n private InMemoryUserProvider $userProvider;\n private AccessTokenAuthenticator $authentic", "middle": "xtractor;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AccessTokenAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfVali", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/AccessToken/HeaderAccessTokenAuthenticatorTest.php", "language": "php", "file_size": 6304, "cut_index": 716, "middle_length": 229}} {"prefix": ";\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidCsrfTokenException;\nuse Symfony\\Component\\Security\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsCsrfTokenValid;\nuse Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener;\nuse Symfony\\Component\\Security\\Http\\Tests\\Fixtures\\IsCsrfTokenValidAttributeController;\nuse Symfony\\Component\\Security\\Http\\", "suffix": "uest([], ['_token' => 'bar']);\n\n $csrfTokenManager = $this->createMock(CsrfTokenManagerInterface::class);\n $csrfTokenManager->expects($this->once())\n ->method('isTokenValid')\n ->with(new CsrfToken('foo', 'bar'))\n ", "middle": "Tests\\Fixtures\\IsCsrfTokenValidAttributeMethodsController;\n\nclass IsCsrfTokenValidAttributeListenerTest extends TestCase\n{\n public function testIsCsrfTokenValidCalledCorrectlyOnInvokableClass()\n {\n $request = new Req", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/IsCsrfTokenValidAttributeListenerTest.php", "language": "php", "file_size": 19629, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AbstractLoginForm", "suffix": "tingPassport;\n\nclass AbstractLoginFormAuthenticatorTest extends TestCase\n{\n #[DataProvider('provideSupportsData')]\n public function testSupports(string $loginUrl, Request $request, bool $expected)\n {\n $authenticator = new ConcreteFormAuthen", "middle": "Authenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValida", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/AbstractLoginFormAuthenticatorTest.php", "language": "php", "file_size": 4254, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\Authenticator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\X509Authenticator;\n\nclass X509Authenticato", "suffix": "$this->authenticator = new X509Authenticator($this->userProvider, new TokenStorage(), 'main');\n }\n\n #[DataProvider('provideServerVars')]\n public function testAuthentication($username, $credentials)\n {\n $serverVars = [];\n if ('' !=", "middle": "rTest extends TestCase\n{\n private InMemoryUserProvider $userProvider;\n private X509Authenticator $authenticator;\n\n protected function setUp(): void\n {\n $this->userProvider = new InMemoryUserProvider();\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/Authenticator/X509AuthenticatorTest.php", "language": "php", "file_size": 7387, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactory;\nuse Symfony\\Component\\RateLimiter\\Storage\\InMemoryStorage;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;", "suffix": "lfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginFailureEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\LoginThrottlingListener;\nuse Symfony\\Component\\Security\\Http\\", "middle": "\nuse Symfony\\Component\\Security\\Core\\Exception\\TooManyLoginAttemptsAuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Se", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/EventListener/LoginThrottlingListenerTest.php", "language": "php", "file_size": 4713, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Tests\\AccessToken\\Oidc;\n\nuse Jose\\Component\\Core\\AlgorithmManager;\nuse Jose\\Component\\Core\\JWK;\nuse Jose\\Component\\Core\\JWKSet;\nuse Jose\\Component\\Signature\\Algorithm\\ES256;\nuse Jose\\Component\\Signature\\Algorithm\\ES512;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\", "suffix": "penssl')]\nclass OidcTokenGeneratorTest extends TestCase\n{\n public function testGenerate()\n {\n $algorithmManager = new AlgorithmManager([new ES256()]);\n $audience = 'Symfony OIDC';\n $issuers = ['https://www.example.com'];\n ", "middle": "Framework\\TestCase;\nuse Symfony\\Component\\Clock\\MockClock;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oidc\\OidcTokenGenerator;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oidc\\OidcTokenHandler;\n\n#[RequiresPhpExtension('o", "meta": {"filepath": "src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenGeneratorTest.php", "language": "php", "file_size": 3813, "cut_index": 614, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\n/**\n * This is an extension of the authenticator interface that may\n * be used by interactive authenticators.\n *\n * Interactive login requires explicit user action (e.g. a login\n * form). Implementing this interface will dispatch the", "suffix": " * @author Wouter de Jong <wouter@wouterj.nl>\n */\ninterface InteractiveAuthenticatorInterface extends AuthenticatorInterface\n{\n /**\n * Should return true to make this authenticator perform\n * an interactive login.\n */\n public function isI", "middle": " InteractiveLoginEvent\n * upon successful login.\n *\n", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/InteractiveAuthenticatorInterface.php", "language": "php", "file_size": 859, "cut_index": 529, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerIn", "suffix": "r\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\nuse Symfony\\Component\\Security\\Http\\HttpUtils;\nuse Symfony\\Component\\Securit", "middle": "terface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\RememberMeBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticato", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/LoginLinkAuthenticator.php", "language": "php", "file_size": 3461, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Sym", "suffix": "Douailin <maxime.douailin@gmail.com>\n *\n * @internal\n */\nfinal class RemoteUserAuthenticator extends AbstractPreAuthenticatedAuthenticator\n{\n public function __construct(\n UserProviderInterface $userProvider,\n TokenStorageInterface $tokenS", "middle": "fony\\Component\\Security\\Core\\User\\UserProviderInterface;\n\n/**\n * This authenticator authenticates a remote user.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Maxime ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/RemoteUserAuthenticator.php", "language": "php", "file_size": 1561, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Co", "suffix": "\n *\n * @final\n */\nclass X509Authenticator extends AbstractPreAuthenticatedAuthenticator\n{\n public function __construct(\n UserProviderInterface $userProvider,\n TokenStorageInterface $tokenStorage,\n string $firewallName,\n priva", "middle": "re\\User\\UserProviderInterface;\n\n/**\n * This authenticator authenticates pre-authenticated (by the\n * webserver) X.509 certificates.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n * @author Fabien Potencier <fabien@symfony.com>", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/X509Authenticator.php", "language": "php", "file_size": 2333, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge;\n\nuse Symfony\\Component\\Security\\Http\\EventListener\\CsrfProtectionListener;\n\n/**\n * Adds automatic CSRF tokens checking capabilities to this authenticator.\n *\n * @see CsrfProtectionListener\n *\n * @author Wouter de J", "suffix": "SRF token.\n * Using a different string for each authenticator improves its security.\n * @param string|null $csrfToken The CSRF token presented in the request, if any\n */\n public function __construct(\n ", "middle": "ong <wouter@wouterj.nl>\n *\n * @final\n */\nclass CsrfTokenBadge implements BadgeInterface\n{\n private bool $resolved = false;\n\n /**\n * @param string $csrfTokenId An arbitrary string used to generate the value of the C", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/CsrfTokenBadge.php", "language": "php", "file_size": 1500, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\LogicException;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordUpgraderInterface;\n\n/**\n * Adds automatic password migration, if enabled and required in the password encoder.\n *\n ", "suffix": "g $plaintextPassword The presented password, used in the rehash\n * @param PasswordUpgraderInterface|null $passwordUpgrader The password upgrader, defaults to the UserProvider if null\n */\n public function __construct(\n ", "middle": "* @see PasswordUpgraderInterface\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @final\n */\nclass PasswordUpgradeBadge implements BadgeInterface\n{\n private ?string $plaintextPassword = null;\n\n /**\n * @param strin", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/PasswordUpgradeBadge.php", "language": "php", "file_size": 1753, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationServiceException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Co", "suffix": "d\n * \"user loader\" to load the related User object.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass UserBadge implements BadgeInterface\n{\n public const MAX_USERNAME_LENGTH = 4096;\n\n /** @var callable|null */\n private $userLoader;\n pr", "middle": "mponent\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\EventListener\\UserProviderListener;\n\n/**\n * Represents the user in the authentication process.\n *\n * It uses an identifier (e.g. email, or username) an", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/UserBadge.php", "language": "php", "file_size": 4624, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Token;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass PostAuthenticationToken extends AbstractToken\n{\n /**\n * @param string[] $roles An array of ro", "suffix": " if ('' === $firewallName) {\n throw new \\InvalidArgumentException('$firewallName must not be empty.');\n }\n\n $this->setUser($user);\n }\n\n /**\n * This is meant to be only a token, where credentials\n * have already ", "middle": "les\n *\n * @throws \\InvalidArgumentException\n */\n public function __construct(\n UserInterface $user,\n private string $firewallName,\n array $roles,\n ) {\n parent::__construct($roles);\n\n ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Token/PostAuthenticationToken.php", "language": "php", "file_size": 1511, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Debug;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Security\\Http\\Firewall\\AbstractListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\AuthenticatorManagerListener;\nuse Symfony\\Contracts\\Se", "suffix": "ner extends AbstractListener implements ResetInterface\n{\n private array $authenticators = [];\n\n public function __construct(private AuthenticatorManagerListener $authenticationManagerListener)\n {\n }\n\n public function supports(Request $reques", "middle": "rvice\\ResetInterface;\n\n/**\n * Decorates the AuthenticatorManagerListener to collect information about security authenticators.\n *\n * @author Robin Chalas <robin.chalas@gmail.com>\n */\nfinal class TraceableAuthenticatorManagerListe", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Debug/TraceableAuthenticatorManagerListener.php", "language": "php", "file_size": 2539, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Excepti", "suffix": "wordUpgradeBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\PasswordCredentials;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nu", "middle": "on\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordUpgraderInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\Pass", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/HttpBasicAuthenticator.php", "language": "php", "file_size": 3298, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\RememberMeToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Cor", "suffix": "portedUserException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component", "middle": "e\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\CookieTheftException;\nuse Symfony\\Component\\Security\\Core\\Exception\\Unsup", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/RememberMeAuthenticator.php", "language": "php", "file_size": 4529, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * Token representing a user who temporarily impersonates another one.\n *\n * @author Christian Flothmann <christian.flothmann@sensiolabs.de>\n */\nclass SwitchUserToken extend", "suffix": "tring method\n * @param $originatedFromUri The URI where was the user at the switch\n *\n * @throws \\InvalidArgumentException\n */\n public function __construct(\n UserInterface $user,\n string $firewallName,\n array $roles,", "middle": "s UsernamePasswordToken\n{\n private ?string $originatedFromUri = null;\n\n /**\n * @param $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toS", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php", "language": "php", "file_size": 2004, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * TokenInterface is the interface for the user authentication information.\n *\n * The __serialize/__unserialize() magic methods can be implemented on the token\n * class to prevent sensitive credentia", "suffix": "g representation of the Token.\n *\n * This is only to be used for debugging purposes.\n */\n public function __toString(): string;\n\n /**\n * Returns the user identifier used during authentication (e.g. a user's email address or username).", "middle": "ls from being put in the session storage.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\ninterface TokenInterface extends \\Stringable\n{\n /**\n * Returns a strin", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.php", "language": "php", "file_size": 2284, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * UsernamePasswordToken implements a username and password token.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass UsernamePasswordToken extends A", "suffix": " throw new \\InvalidArgumentException('$firewallName must not be empty.');\n }\n\n $this->setUser($user);\n }\n\n public function getFirewallName(): string\n {\n return $this->firewallName;\n }\n\n public function __serialize(", "middle": "bstractToken\n{\n public function __construct(\n UserInterface $user,\n private string $firewallName,\n array $roles = [],\n ) {\n parent::__construct($roles);\n\n if ('' === $firewallName) {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/UsernamePasswordToken.php", "language": "php", "file_size": 1263, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * TokenStorage contains a TokenInterface.\n *\n * It gives access to the token representing the current", "suffix": " $token = null;\n private ?\\Closure $initializer = null;\n\n public function getToken(): ?TokenInterface\n {\n if ($initializer = $this->initializer) {\n $this->initializer = null;\n $initializer();\n }\n\n return ", "middle": " user authentication.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass TokenStorage implements TokenStorageInterface, ResetInterface\n{\n private ?TokenInterface", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/Storage/TokenStorage.php", "language": "php", "file_size": 1529, "cut_index": 537, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * The TokenStorageInterface.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\ninterface TokenStorageInterface\n{\n /**\n * Returns the current security t", "suffix": "Interface;\n\n /**\n * Sets the authentication token.\n *\n * @param TokenInterface|null $token A TokenInterface token, or null if no further authentication information should be stored\n */\n public function setToken(?TokenInterface $token)", "middle": "oken.\n */\n public function getToken(): ?Token", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/Storage/TokenStorageInterface.php", "language": "php", "file_size": 877, "cut_index": 559, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Contracts\\Servi", "suffix": "rageInterface, ServiceSubscriberInterface\n{\n private bool $enableUsageTracking = false;\n\n public function __construct(\n private TokenStorageInterface $storage,\n private ContainerInterface $container,\n ) {\n }\n\n public function g", "middle": "ce\\ServiceSubscriberInterface;\n\n/**\n * A token storage that increments the session usage index when the token is accessed.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfinal class UsageTrackingTokenStorage implements TokenSto", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/Storage/UsageTrackingTokenStorage.php", "language": "php", "file_size": 2244, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\n\n/**\n * Overrides UserProviderInterface to add an \"attributes\" argument on loadUserByIdentifier.\n * This is particularly useful with self-contained access toke", "suffix": "ven user identifier (e.g. username or email) and attributes.\n *\n * This method must throw UserNotFoundException if the user is not found.\n *\n * @return TUser\n *\n * @throws UserNotFoundException\n */\n public function loadUserBy", "middle": "ns.\n *\n * @template-covariant TUser of UserInterface\n *\n * @template-extends UserProviderInterface<TUser>\n */\ninterface AttributesBasedUserProviderInterface extends UserProviderInterface\n{\n /**\n * Loads the user for the gi", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/AttributesBasedUserProviderInterface.php", "language": "php", "file_size": 1073, "cut_index": 515, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\nfinal class ChainUserChecker implements UserCheckerInterface\n{\n /**\n * @param iterable<UserCheckerInterface> $checkers\n */\n public function __construct(private readonly iterable $checkers)\n {\n }\n\n p", "suffix": "id\n {\n foreach ($this->checkers as $checker) {\n $checker->checkPreAuth($user);\n }\n }\n\n public function checkPostAuth(UserInterface $user, ?TokenInterface $token = null): void\n {\n foreach ($this->checkers as $chec", "middle": "ublic function checkPreAuth(UserInterface $user): vo", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/ChainUserChecker.php", "language": "php", "file_size": 967, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\UnsupportedUserException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\n\n/**\n * Chain User Provider.\n *\n * This provider calls several leaf providers in a chain until one is able to\n * handle the request.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.c", "suffix": " UserProviderInterface> $providers\n */\n public function __construct(\n private iterable $providers,\n ) {\n }\n\n /**\n * @return UserProviderInterface[]\n */\n public function getProviders(): array\n {\n if ($this->provid", "middle": "om>\n *\n * @template-implements AttributesBasedUserProviderInterface<UserInterface>\n */\nclass ChainUserProvider implements AttributesBasedUserProviderInterface, PasswordUpgraderInterface\n{\n /**\n * @param iterable<array-key,", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/ChainUserProvider.php", "language": "php", "file_size": 3764, "cut_index": 614, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\n/**\n * EquatableInterface used to test if two objects are equal in security\n * and re-authentication context.\n *\n * @author Dariusz Górecki <darek.krk@gmail.com>\n */\ninterface EquatableInterface\n{\n /**\n * The equality comparison should", "suffix": "by comparing identities (i.e. getId() === getId()).\n *\n * However, you do not need to compare every attribute, but only those that\n * are relevant for assessing whether re-authentication is required.\n */\n public function isEqualTo(UserIn", "middle": " neither be done by referential equality\n * nor ", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/EquatableInterface.php", "language": "php", "file_size": 862, "cut_index": 529, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\n/**\n * UserInterface implementation used by the in-memory user provider.\n *\n * This should not be used for anything else.\n *\n * @author Robin Chalas <robin.chalas@gmail.com>\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class InMemoryUser implements UserInterface", "suffix": "[],\n private bool $enabled = true,\n ) {\n if ('' === $username || null === $username) {\n throw new \\InvalidArgumentException('The username cannot be empty.');\n }\n\n $this->username = $username;\n }\n\n public func", "middle": ", PasswordAuthenticatedUserInterface, EquatableInterface, \\Stringable\n{\n private string $username;\n\n public function __construct(\n ?string $username,\n private ?string $password,\n private array $roles = ", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/InMemoryUser.php", "language": "php", "file_size": 2685, "cut_index": 563, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\DisabledException;\n\n/**\n * Checks the state of the in-memory user account.\n *\n * @author Fabien Potencier ", "suffix": " if (!$user->isEnabled()) {\n $ex = new DisabledException('User account is disabled.');\n $ex->setUser($user);\n throw $ex;\n }\n }\n\n public function checkPostAuth(UserInterface $user, ?TokenInterface $token =", "middle": "<fabien@symfony.com>\n */\nclass InMemoryUserChecker implements UserCheckerInterface\n{\n public function checkPreAuth(UserInterface $user): void\n {\n if (!$user instanceof InMemoryUser) {\n return;\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/InMemoryUserChecker.php", "language": "php", "file_size": 1024, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\UnsupportedUserException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\n\n/**\n * InMemoryUserProvider is a simple non persistent user provider.\n *\n * Useful for testing, demonstration, prototyping, and for simple needs\n * (a backend with a unique admin for in", "suffix": "terface>\n */\n private array $users = [];\n\n /**\n * The user array is a hash where the keys are usernames and the values are\n * an array of attributes: 'password', 'enabled', and 'roles'.\n *\n * @param array<string, array{password?: ", "middle": "stance)\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @template-implements UserProviderInterface<InMemoryUser>\n */\nclass InMemoryUserProvider implements UserProviderInterface\n{\n /**\n * @var array<string, UserIn", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/InMemoryUserProvider.php", "language": "php", "file_size": 3557, "cut_index": 614, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\n/**\n * For users that can be authenticated using a password/salt couple.\n *\n * Once all password hashes have been upgraded to a modern algorithm via password migrations,\n * implement {@see PasswordAuthenticatedUserInterface} inste", "suffix": "hor Robin Chalas <robin.chalas@gmail.com>\n */\ninterface LegacyPasswordAuthenticatedUserInterface extends PasswordAuthenticatedUserInterface\n{\n /**\n * Returns the salt that was originally used to hash the password.\n */\n public function getSalt", "middle": "ad.\n *\n * @aut", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/LegacyPasswordAuthenticatedUserInterface.php", "language": "php", "file_size": 802, "cut_index": 517, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\n\n/**\n * MissingUserProvider is a dummy user provider used to throw proper exception\n * when a firewall requires a user provider but none was defined.\n *\n * ", "suffix": " __construct(string $firewall)\n {\n throw new InvalidConfigurationException(\\sprintf('\"%s\" firewall requires a user provider but none was defined.', $firewall));\n }\n\n public function loadUserByUsername(string $username): UserInterface\n {\n", "middle": "@internal\n *\n * @template-implements UserProviderInterface<never>\n */\nclass MissingUserProvider implements UserProviderInterface\n{\n /**\n * @param string $firewall the firewall missing a provider\n */\n public function", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/MissingUserProvider.php", "language": "php", "file_size": 1435, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\n/**\n * UserInterface implementation used by the access-token security workflow with an OIDC server.\n */\nclass OAuth2User implements UserInterface\n{\n public readonly array $additionalClaims;\n\n public function __construct(\n private array $roles = ['ROLE_USER'],\n ", "suffix": ",\n public readonly ?string $tokenType = null,\n public readonly ?int $exp = null,\n public readonly ?int $iat = null,\n public readonly ?int $nbf = null,\n public readonly ?string $sub = null,\n public readonly ?string ", "middle": " // Standard Claims (https://datatracker.ietf.org/doc/html/rfc7662#section-2.2)\n public readonly ?string $scope = null,\n public readonly ?string $clientId = null,\n public readonly ?string $username = null", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/OAuth2User.php", "language": "php", "file_size": 2164, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\n/**\n * UserInterface implementation used by the access-token security workflow with an OIDC server.\n */\nclass OidcUser implements UserInterface\n{\n private array $additionalClaims = [];\n\n public function __construct(\n private ?string $userIdentifier = null,\n private array $roles = ['ROLE_USER'],\n\n //", "suffix": " $familyName = null,\n private ?string $middleName = null,\n private ?string $nickname = null,\n private ?string $preferredUsername = null,\n private ?string $profile = null,\n private ?string $picture = null,\n private ", "middle": " Standard Claims (https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims)\n private ?string $sub = null,\n private ?string $name = null,\n private ?string $givenName = null,\n private ?string", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/OidcUser.php", "language": "php", "file_size": 4300, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\n/**\n * For users that can be authenticated using a password.\n *\n * The __serialize/__unserialize() magic methods can be implemented on the user\n * class to prevent hashed passwords from being put in the session storage.\n * If the password is not stor", "suffix": "ord hash\n * in the session, it's also possible to hash the password hash before\n * serializing it; crc32c is the only algorithm supported.\n * For example:\n *\n * public function __serialize(): array\n * {\n * $data = (array) $this;\n * ", "middle": "ed at all in the session, getPassword() should\n * return null after unserialization, and then, changing the user's password\n * won't invalidate its sessions.\n * In order to invalidate the user sessions while not storing the passw", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/PasswordAuthenticatedUserInterface.php", "language": "php", "file_size": 1565, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\UnsupportedUserException;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\ninterface PasswordUpgraderInterface\n{\n /**\n * Upgrades the hashed password of a user, typically fo", "suffix": "d should be opportunistic:\n * it's fine if it does nothing or if it fails without throwing any exception.\n *\n * @throws UnsupportedUserException if the implementation does not support that user\n */\n public function upgradePassword(Passwo", "middle": "r using a better hash algorithm.\n *\n * This method should persist the new password in the user storage and update the $user object accordingly.\n * Because you don't want your users not being able to log in, this metho", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/PasswordUpgraderInterface.php", "language": "php", "file_size": 1072, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccountStatusException;\n\n/**\n * Implement to throw AccountStatusException during the authentication process.\n *\n", "suffix": " UserCheckerInterface\n{\n /**\n * Checks the user account before authentication.\n *\n * @throws AccountStatusException\n */\n public function checkPreAuth(UserInterface $user): void;\n\n /**\n * Checks the user account after authentica", "middle": " * Can be used when you want to check the account status, e.g when the account is\n * disabled or blocked. This should not be used to make authentication decisions.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/UserCheckerInterface.php", "language": "php", "file_size": 1157, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\n/**\n * Represents the interface that all user classes must implement.\n *\n * This interface is useful because the authentication layer can deal with\n * the object through its lifecycle, assigning roles and so on.\n *\n * Regardless of how your users are", "suffix": " implement UserProviderInterface.\n *\n * The __serialize/__unserialize() magic methods can be implemented on the user\n * class to prevent sensitive credentials from being put in the session storage.\n *\n * @see UserProviderInterface\n *\n * @author Fabien Pote", "middle": " loaded or where they come from (a database,\n * configuration, web service, etc.), you will have a class that implements\n * this interface. Objects that implement this interface are created and\n * loaded by different objects that", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/UserInterface.php", "language": "php", "file_size": 1677, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\User;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\UnsupportedUserException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\n\n/**\n * Represents a class that loads UserInterface objects from some source for the authentication system.\n *\n * In a typical authenti", "suffix": "ad the UserInterface object for the given identifier (via\n * loadUserByIdentifier) so that the rest of the process can continue.\n *\n * Internally, a user provider can load users from any source (databases,\n * configuration, web service). This is totally in", "middle": "cation configuration, a user identifier (e.g. a\n * username or email address) credential enters the system (via form login, or\n * any method). The user provider that is configured with that authentication\n * method is asked to lo", "meta": {"filepath": "src/Symfony/Component/Security/Core/User/UserProviderInterface.php", "language": "php", "file_size": 2293, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\RememberMe;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\TokenNotFoundException;\n\n/**\n * This class is used for testing purposes, and is not really suited for production.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nfinal cl", "suffix": " throw new TokenNotFoundException('No token found.');\n }\n\n return $this->tokens[$series];\n }\n\n public function updateToken(string $series, #[\\SensitiveParameter] string $tokenValue, \\DateTimeInterface $lastUsed): void\n {\n ", "middle": "ass InMemoryTokenProvider implements TokenProviderInterface\n{\n private array $tokens = [];\n\n public function loadTokenBySeries(string $series): PersistentTokenInterface\n {\n if (!isset($this->tokens[$series])) {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/RememberMe/InMemoryTokenProvider.php", "language": "php", "file_size": 1619, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\RememberMe;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\TokenNotFoundException;\n\n/**\n * Interface for TokenProviders.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\ninterface TokenProviderInterface\n{\n /*", "suffix": " Deletes all tokens belonging to series.\n */\n public function deleteTokenBySeries(string $series): void;\n\n /**\n * Updates the token according to this data.\n *\n * @throws TokenNotFoundException if the token is not found\n */\n pub", "middle": "*\n * Loads the active token for the given series.\n *\n * @throws TokenNotFoundException if the token is not found\n */\n public function loadTokenBySeries(string $series): PersistentTokenInterface;\n\n /**\n *", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/RememberMe/TokenProviderInterface.php", "language": "php", "file_size": 1246, "cut_index": 518, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\RememberMe;\n\n/**\n * @author Jordi Boggiano <j.boggiano@seld.be>\n */\ninterface TokenVerifierInterface\n{\n /**\n * Verifies that the given $token is valid.\n *\n * This lets you override the token check logic ", "suffix": "\\SensitiveParameter] string $tokenValue): bool;\n\n /**\n * Updates an existing token with a new token value and lastUsed time.\n */\n public function updateExistingToken(PersistentTokenInterface $token, #[\\SensitiveParameter] string $tokenValue, ", "middle": "to for example accept slightly outdated tokens.\n *\n * Do not forget to implement token comparisons using hash_equals for a secure implementation.\n */\n public function verifyToken(PersistentTokenInterface $token, #[", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/RememberMe/TokenVerifierInterface.php", "language": "php", "file_size": 1037, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass NullToken implements TokenInterface\n{\n public function __toString(): string\n {\n return '';\n }\n\n pu", "suffix": "BadMethodCallException('Cannot set user on a NullToken.');\n }\n\n public function getUserIdentifier(): string\n {\n return '';\n }\n\n public function getAttributes(): array\n {\n return [];\n }\n\n public function setAttributes(a", "middle": "blic function getRoleNames(): array\n {\n return [];\n }\n\n public function getUser(): ?UserInterface\n {\n return null;\n }\n\n public function setUser(UserInterface $user): never\n {\n throw new \\", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/NullToken.php", "language": "php", "file_size": 1620, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * PreAuthenticatedToken implements a pre-authenticated token.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass PreAuthenticatedToken extends Abstr", "suffix": "\n if ('' === $firewallName) {\n throw new \\InvalidArgumentException('$firewallName must not be empty.');\n }\n\n $this->setUser($user);\n }\n\n public function getFirewallName(): string\n {\n return $this->firewallNam", "middle": "actToken\n{\n /**\n * @param string[] $roles\n */\n public function __construct(\n UserInterface $user,\n private string $firewallName,\n array $roles = [],\n ) {\n parent::__construct($roles);\n", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/PreAuthenticatedToken.php", "language": "php", "file_size": 1305, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Passport;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\BadgeInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials\\CredentialsInterface;\n\n/*", "suffix": "<wouter@wouterj.nl>\n */\nclass Passport\n{\n protected UserInterface $user;\n\n private array $badges = [];\n private array $attributes = [];\n\n /**\n * @param CredentialsInterface $credentials The credentials to check for this authentication, use\n", "middle": "*\n * A Passport contains all security-related information that needs to be\n * validated during authentication.\n *\n * A passport badge can be used to add any additional information to the\n * passport.\n *\n * @author Wouter de Jong ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Passport/Passport.php", "language": "php", "file_size": 3594, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge;\n\nuse Symfony\\Component\\Security\\Http\\EventListener\\CheckRememberMeConditionsListener;\n\n/**\n * Adds support for remember me to this authenticator.\n *\n * The presence of this badge doesn't create the remember-me cookie. The actua", "suffix": "RememberMeBadge implements BadgeInterface\n{\n private bool $enabled = false;\n\n public function __construct(\n public readonly array $parameters = [],\n ) {\n }\n\n /**\n * Enables remember-me cookie creation.\n *\n * In most cases,", "middle": "l\n * cookie is only created if this badge is enabled. By default, this is done\n * by the {@see CheckRememberMeConditionsListener} if all conditions are met.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @final\n */\nclass ", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/RememberMeBadge.php", "language": "php", "file_size": 1841, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Debug;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nu", "suffix": "ort;\nuse Symfony\\Component\\Security\\Http\\EntryPoint\\AuthenticationEntryPointInterface;\nuse Symfony\\Component\\Security\\Http\\EntryPoint\\Exception\\NotAnEntryPointException;\nuse Symfony\\Component\\VarDumper\\Caster\\ClassStub;\n\n/**\n * Collects info about an authe", "middle": "se Symfony\\Component\\Security\\Http\\Authenticator\\InteractiveAuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\BadgeInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passp", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Debug/TraceableAuthenticator.php", "language": "php", "file_size": 4527, "cut_index": 614, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core;\n\nuse Symfony\\Component\\Security\\Core\\Event\\AuthenticationSuccessEvent;\n\nfinal class AuthenticationEvents\n{\n /**\n * The AUTHENTICATION_SUCCESS event occurs after a user is authenticated\n * by one provider.\n *\n * @Event(\"Symfony\\Component\\Security\\C", "suffix": "ublic const AUTHENTICATION_SUCCESS = 'security.authentication.success';\n\n /**\n * Event aliases.\n *\n * These aliases can be consumed by RegisterListenersPass.\n */\n public const ALIASES = [\n AuthenticationSuccessEvent::class => s", "middle": "ore\\Event\\AuthenticationSuccessEvent\")\n */\n p", "meta": {"filepath": "src/Symfony/Component/Security/Core/AuthenticationEvents.php", "language": "php", "file_size": 893, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\nuse Symfony\\Component\\HttpKernel\\Attribute\\WithHttpStatus;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\n\n/**\n * AccessDeniedException is thrown when the account has not the required role.\n *\n * @author Fabien Potencier <fabi", "suffix": "lic function __construct(string $message = 'Access Denied.', ?\\Throwable $previous = null, int $code = 403)\n {\n parent::__construct($message, $code, $previous);\n }\n\n public function getAttributes(): array\n {\n return $this->attribu", "middle": "en@symfony.com>\n */\n#[WithHttpStatus(403)]\nclass AccessDeniedException extends RuntimeException\n{\n private array $attributes = [];\n private mixed $subject = null;\n private ?AccessDecision $accessDecision = null;\n\n pub", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/AccessDeniedException.php", "language": "php", "file_size": 1594, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\nuse Symfony\\Component\\HttpKernel\\Attribute\\WithHttpStatus;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * AuthenticationException is the base class for all authentication exceptions.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *", "suffix": " return $this->token;\n }\n\n public function setToken(TokenInterface $token): void\n {\n $this->token = $token;\n }\n\n /**\n * Returns all the necessary state of the object for serialization purposes.\n *\n * There is no need to s", "middle": " @author Alexander <iam.asm89@gmail.com>\n */\n#[WithHttpStatus(401)]\nclass AuthenticationException extends RuntimeException\n{\n private ?TokenInterface $token = null;\n\n public function getToken(): ?TokenInterface\n {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/AuthenticationException.php", "language": "php", "file_size": 2712, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\n/**\n * An authentication exception caused by the user account status\n * where you can control the message shown to the user.\n *\n * Be sure that the message passed to this exception is something that\n * can be shown safely to your user. In other ", "suffix": "n\n{\n private string $messageKey;\n private array $messageData = [];\n\n public function __construct(string $message = '', array $messageData = [], int $code = 0, ?\\Throwable $previous = null)\n {\n parent::__construct($message, $code, $previo", "middle": "words, avoid catching\n * other exceptions and passing their message directly to this class.\n *\n * @author Vincent Langlet <vincentlanglet@github.com>\n */\nclass CustomUserMessageAccountStatusException extends AccountStatusExceptio", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/CustomUserMessageAccountStatusException.php", "language": "php", "file_size": 1980, "cut_index": 537, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\n/**\n * InsufficientAuthenticationException is thrown if the user credentials are not sufficiently trusted.\n *\n * This is the case when a user is anonymous and the resource to be displayed has an access role.\n *\n * @author ", "suffix": "er <fabien@symfony.com>\n * @author Alexander <iam.asm89@gmail.com>\n */\nclass InsufficientAuthenticationException extends AuthenticationException\n{\n public function getMessageKey(): string\n {\n return 'Not privileged to request the resource.';\n ", "middle": "Fabien Potenci", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/InsufficientAuthenticationException.php", "language": "php", "file_size": 791, "cut_index": 514, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\n/**\n * This exception is thrown if there where too many failed login attempts in\n * this session.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass TooManyLoginAttemptsAuthenticationException extends AuthenticationException", "suffix": "int) $this->threshold,\n ];\n }\n\n public function getMessageKey(): string\n {\n return 'Too many failed login attempts, please try again '.($this->threshold ? 'in %minutes% minute'.($this->threshold > 1 ? 's' : '').'.' : 'later.');\n }", "middle": "\n{\n public function __construct(\n private ?int $threshold = null,\n ) {\n }\n\n public function getMessageData(): array\n {\n return [\n '%minutes%' => $this->threshold,\n '%count%' => (", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/TooManyLoginAttemptsAuthenticationException.php", "language": "php", "file_size": 1283, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\n/**\n * UserNotFoundException is thrown if a User cannot be found for the given identifier.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Alexander <iam.asm89@gmail.com>\n */\nclass UserNotFoundException extends Authen", "suffix": "ddress).\n */\n public function getUserIdentifier(): ?string\n {\n return $this->identifier;\n }\n\n /**\n * Set the user identifier (e.g. username or email address).\n */\n public function setUserIdentifier(string $identifier): voi", "middle": "ticationException\n{\n private ?string $identifier = null;\n\n public function getMessageKey(): string\n {\n return 'Username could not be found.';\n }\n\n /**\n * Get the user identifier (e.g. username or email a", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/UserNotFoundException.php", "language": "php", "file_size": 1498, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\RememberMe;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\n\n/**\n * @author Jordi Boggiano <j.boggiano@seld.be>\n */\nclass CacheTokenVerifier implements TokenVerifierInterface\n{\n /**\n * @param int $outdatedTokenTtl How long the outdated token should still be considered v", "suffix": " * but you may use a lower value.\n */\n public function __construct(\n private CacheItemPoolInterface $cache,\n private int $outdatedTokenTtl = 60,\n private string $cacheKeyPrefix = 'rememberme-stale", "middle": "alid. Defaults\n * to 60, which matches how often the PersistentRememberMeHandler will at\n * most refresh tokens. Increasing to more than that is not recommended,\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/RememberMe/CacheTokenVerifier.php", "language": "php", "file_size": 2240, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\RememberMe;\n\n/**\n * Interface to be implemented by persistent token classes (such as\n * Doctrine entities representing a remember-me token).\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\ninterface Persis", "suffix": "me the token was last used.\n *\n * Each call SHOULD return a new distinct DateTime instance.\n */\n public function getLastUsed(): \\DateTime;\n\n /**\n * Returns the identifier used to authenticate (e.g. their email address or username).\n ", "middle": "tentTokenInterface\n{\n /**\n * Returns the series.\n */\n public function getSeries(): string;\n\n /**\n * Returns the token value.\n */\n public function getTokenValue(): string;\n\n /**\n * Returns the ti", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/RememberMe/PersistentTokenInterface.php", "language": "php", "file_size": 1055, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token;\n\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * Base class for Token instances.\n *\n * Note that the token's role names are decoupled from the user's roles on purpose: token roles describe\n * the authentication context, not the user's perman", "suffix": "` and deauthenticating\n * when they diverge.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nabstract class AbstractToken implements TokenInterface\n{\n private ?UserInterface $user = null;\n ", "middle": "ent role assignment. This is why `setUser()` only\n * updates the user reference and leaves the role names untouched. `ContextListener` is the component\n * responsible for comparing the stored role names against `$user->getRoles()", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php", "language": "php", "file_size": 4376, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\Token;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * Authentication Token for \"Remember-Me\".\n *\n * @author Johannes M. Schmitt <schmittjoh", "suffix": " parent::__construct($user->getRoles());\n\n if (!$firewallName) {\n throw new InvalidArgumentException('$firewallName must not be empty.');\n }\n\n $this->setUser($user);\n }\n\n public function getFirewallName(): string\n", "middle": "@gmail.com>\n */\nclass RememberMeToken extends AbstractToken\n{\n /**\n * @throws \\InvalidArgumentException\n */\n public function __construct(\n UserInterface $user,\n private string $firewallName,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php", "language": "php", "file_size": 1344, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * Implements credentials checking using a custom checker function.\n *\n * @author Wouter", "suffix": "erInterface): bool $customCredentialsChecker If the callable does not return `true`, a\n * BadCredentialsException is thrown. You may\n * ", "middle": " de Jong <wouter@wouterj.nl>\n *\n * @final\n */\nclass CustomCredentials implements CredentialsInterface\n{\n private \\Closure $customCredentialsChecker;\n private bool $resolved = false;\n\n /**\n * @param callable(mixed, Us", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Passport/Credentials/CustomCredentials.php", "language": "php", "file_size": 1762, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Credentials;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\LogicException;\n\n/**\n * Implements password credentials.\n *\n * These plaintext passwords are checked by the UserPasswordHasher during\n * authentication.\n *\n * @a", "suffix": "ensitiveParameter] string $password)\n {\n $this->password = $password;\n }\n\n public function getPassword(): string\n {\n if (null === $this->password) {\n throw new LogicException('The credentials are erased as another liste", "middle": "uthor Wouter de Jong <wouter@wouterj.nl>\n *\n * @final\n */\nclass PasswordCredentials implements CredentialsInterface\n{\n private ?string $password = null;\n private bool $resolved = false;\n\n public function __construct(#[\\S", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Passport/Credentials/PasswordCredentials.php", "language": "php", "file_size": 1338, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * AccountStatusException is the base class for authentication exceptions\n * caused by the user account status.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n ", "suffix": "UserInterface\n {\n return $this->user;\n }\n\n public function setUser(UserInterface $user): void\n {\n $this->user = $user;\n }\n\n public function __serialize(): array\n {\n return [$this->user, parent::__serialize()];\n ", "middle": "* @author Alexander <iam.asm89@gmail.com>\n */\nabstract class AccountStatusException extends AuthenticationException\n{\n private ?UserInterface $user = null;\n\n /**\n * Get the user.\n */\n public function getUser(): ?", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/AccountStatusException.php", "language": "php", "file_size": 1161, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\n/**\n * An authentication exception where you can control the message shown to the user.\n *\n * Be sure that the message passed to this exception is something that\n * can be shown safely to your user. In other words, avoid catching\n * other except", "suffix": "ivate array $messageData = [];\n\n public function __construct(string $message = '', array $messageData = [], int $code = 0, ?\\Throwable $previous = null)\n {\n parent::__construct($message, $code, $previous);\n\n $this->setSafeMessage($messa", "middle": "ions and passing their message directly to this class.\n *\n * @author Ryan Weaver <ryan@knpuniversity.com>\n */\nclass CustomUserMessageAuthenticationException extends AuthenticationException\n{\n private string $messageKey;\n pr", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/CustomUserMessageAuthenticationException.php", "language": "php", "file_size": 1937, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\RememberMeToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * The default implementation of the authentication trust resolver", "suffix": " return $token && $token->getUser();\n }\n\n public function isRememberMe(?TokenInterface $token = null): bool\n {\n return $token && $token instanceof RememberMeToken;\n }\n\n public function isFullFledged(?TokenInterface $token = null):", "middle": ".\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass AuthenticationTrustResolver implements AuthenticationTrustResolverInterface\n{\n public function isAuthenticated(?TokenInterface $token = null): bool\n {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/AuthenticationTrustResolver.php", "language": "php", "file_size": 1099, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication\\RememberMe;\n\n/**\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n *\n * @internal\n */\nfinal class PersistentToken implements PersistentTokenInterface\n{\n private \\DateTimeImmutable $lastUsed;\n\n public function __construct(\n p", "suffix": "InvalidArgumentException('$userIdentifier must not be empty.');\n }\n if (!$series) {\n throw new \\InvalidArgumentException('$series must not be empty.');\n }\n if (!$tokenValue) {\n throw new \\InvalidArgumentExc", "middle": "rivate string $userIdentifier,\n private string $series,\n #[\\SensitiveParameter] private string $tokenValue,\n \\DateTimeInterface $lastUsed,\n ) {\n if ('' === $userIdentifier) {\n throw new \\", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/RememberMe/PersistentToken.php", "language": "php", "file_size": 1556, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator\\Passport;\n\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\BadgeInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\n\n/**\n * An implementation used when there are no credentials to be checked (e.g.\n * API token authentication).\n *\n * @author Wouter de Jong <wou", "suffix": "ends Passport\n{\n /**\n * @param BadgeInterface[] $badges\n */\n public function __construct(UserBadge $userBadge, array $badges = [])\n {\n $this->addBadge($userBadge);\n foreach ($badges as $badge) {\n $this->addBadge($b", "middle": "ter@wouterj.nl>\n */\nclass SelfValidatingPassport ext", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/Passport/SelfValidatingPassport.php", "language": "php", "file_size": 939, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Http\\Authenticator;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfony\\Component\\PropertyAccess\\Exception\\AccessException;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccess;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\Secur", "suffix": "ore\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordUpgraderInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterf", "middle": "ity\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\C", "meta": {"filepath": "src/Symfony/Component/Security/Http/Authenticator/JsonLoginAuthenticator.php", "language": "php", "file_size": 7262, "cut_index": 716, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\n/**\n * AuthenticationExpiredException is thrown when an authentication token becomes un-authenticated between requests.\n *\n * In practice, this is due to the User changing between requests (e.g. password changes),\n * cause", "suffix": "r Ryan Weaver <ryan@knpuniversity.com>\n */\nclass AuthenticationExpiredException extends AccountStatusException\n{\n public function getMessageKey(): string\n {\n return 'Authentication expired because your account information has changed.';\n }\n", "middle": "s the token to become un-authenticated.\n *\n * @autho", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/AuthenticationExpiredException.php", "language": "php", "file_size": 824, "cut_index": 514, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authentication;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * Interface for resolving the authentication status of a given token.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\ninterfac", "suffix": " whether the passed token implementation is authenticated\n * using remember-me capabilities.\n */\n public function isRememberMe(?TokenInterface $token = null): bool;\n\n /**\n * Resolves whether the passed token implementation is fully authen", "middle": "e AuthenticationTrustResolverInterface\n{\n /**\n * Resolves whether the passed token implementation is authenticated.\n */\n public function isAuthenticated(?TokenInterface $token = null): bool;\n\n /**\n * Resolves", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authentication/AuthenticationTrustResolverInterface.php", "language": "php", "file_size": 1091, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Role;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass RoleHierarchy implements RoleHierarchyInterface\n{\n /** @var array<string, array<string, string>> */\n protected array $map;\n\n /**\n * @param array<string, list<string>> $hierarchy\n */\n public fun", "suffix": "le) {\n $reachableRoles[$role] = $role;\n\n if (!isset($this->map[$role])) {\n continue;\n }\n\n foreach ($this->map[$role] as $r) {\n $reachableRoles[$r] = $r;\n }\n }\n\n ", "middle": "ction __construct(\n private array $hierarchy,\n ) {\n $this->buildRoleMap();\n }\n\n public function getReachableRoleNames(array $roles): array\n {\n $reachableRoles = [];\n\n foreach ($roles as $ro", "meta": {"filepath": "src/Symfony/Component/Security/Core/Role/RoleHierarchy.php", "language": "php", "file_size": 2553, "cut_index": 563, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Exception;\n\n/**\n * This exception is thrown when no session is available.\n *\n * Possible reasons for this are:\n *\n * a) The session timed out because the user waited too long.\n * b) The user has disabled cookies, and a new session is started on each\n * request.\n *", "suffix": "m>\n * @author Alexander <iam.asm89@gmail.com>\n */\nclass SessionUnavailableException extends AuthenticationException\n{\n public function getMessageKey(): string\n {\n return 'No session available, it either timed out or cookies are not enabled.';\n", "middle": "\n * @author Johannes M. Schmitt <schmittjoh@gmail.co", "meta": {"filepath": "src/Symfony/Component/Security/Core/Exception/SessionUnavailableException.php", "language": "php", "file_size": 875, "cut_index": 559, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\RememberMe;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\CacheTokenVerifier;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Remember", "suffix": "'series1@special:chars=/', 'value', new \\DateTimeImmutable());\n $this->assertTrue($verifier->verifyToken($token, 'value'));\n }\n\n public function testVerifyFailsInvalidToken()\n {\n $verifier = new CacheTokenVerifier(new ArrayAdapter())", "middle": "Me\\PersistentToken;\n\nclass CacheTokenVerifierTest extends TestCase\n{\n public function testVerifyCurrentToken()\n {\n $verifier = new CacheTokenVerifier(new ArrayAdapter());\n $token = new PersistentToken('user', ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/CacheTokenVerifierTest.php", "language": "php", "file_size": 1733, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\RememberMe;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\InMemoryTokenProvider;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\TokenNo", "suffix": "DateTimeImmutable());\n $provider->createNewToken($token);\n\n $this->assertSame($provider->loadTokenBySeries('foo'), $token);\n }\n\n public function testLoadTokenBySeriesThrowsNotFoundException()\n {\n $this->expectException(TokenNo", "middle": "tFoundException;\n\nclass InMemoryTokenProviderTest extends TestCase\n{\n public function testCreateNewToken()\n {\n $provider = new InMemoryTokenProvider();\n\n $token = new PersistentToken('foo', 'foo', 'foo', new \\", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/InMemoryTokenProviderTest.php", "language": "php", "file_size": 2021, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Attribute\\HasNamedArguments;\nuse Symfony\\Component\\Validator\\Constraint;\n\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass UserPassw", "suffix": "string $message = 'This value should be the user\\'s current password.';\n public string $service = 'security.validator.user_password';\n\n #[HasNamedArguments]\n public function __construct(?array $options = null, ?string $message = null, ?string $ser", "middle": "ord extends Constraint\n{\n public const INVALID_PASSWORD_ERROR = '2d2a8bb4-ddc8-45e4-9b0f-8670d3a3e290';\n\n protected const ERROR_NAMES = [\n self::INVALID_PASSWORD_ERROR => 'INVALID_PASSWORD_ERROR',\n ];\n\n public ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Validator/Constraints/UserPassword.php", "language": "php", "file_size": 1333, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Authorization\\Strategy;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\Strategy\\UnanimousStrategy;\nuse Symfony\\Component\\Security\\Core\\Test\\AccessDecisionStrategyTestCase;\n\nclass UnanimousStrategyTest extends AccessDecisionStrategyTestCase\n{\n public static function provideStrategyTests(): iterable\n {\n $strategy = ne", "suffix": "lf::getVoters(1, 0, 0), true];\n yield [$strategy, self::getVoters(1, 0, 1), true];\n yield [$strategy, self::getVoters(1, 1, 0), false];\n\n yield [$strategy, self::getVoters(0, 0, 2), false];\n\n $strategy = new UnanimousStrategy(tr", "middle": "w UnanimousStrategy();\n\n yield [$strategy, se", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Strategy/UnanimousStrategyTest.php", "language": "php", "file_size": 963, "cut_index": 582, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authorization\\Voter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolver;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\OfflineTokenInterface;\nuse Symfony\\Component\\Securit", "suffix": "e\\Authorization\\Voter\\VoterInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\nclass AuthenticatedVoterTest extends TestCase\n{\n #[DataProvider('getVoteTests')]\n pu", "middle": "y\\Core\\Authentication\\Token\\RememberMeToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AuthenticatedVoter;\nuse Symfony\\Component\\Security\\Cor", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AuthenticatedVoterTest.php", "language": "php", "file_size": 5623, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authorization\\Voter;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresMethod;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Secu", "suffix": "ore\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsGrantedContext;\n\n#[RequiresMethod(IsGrantedContext::class, 'isGranted')]\nclass ClosureVoterTest extends TestCase\n{\n private ClosureVoter $voter;\n\n protected function setUp(): void", "middle": "rity\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\ClosureVoter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\nuse Symfony\\Component\\Security\\C", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Voter/ClosureVoterTest.php", "language": "php", "file_size": 2560, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authorization\\Voter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\C", "suffix": "ecurity\\Core\\Authorization\\Voter\\ExpressionVoter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\nclass ExpressionVoterTest extends TestCase\n{\n #[DataProvider('getVoteTests')]\n public function testVoteWithTokenThatReturnsRole", "middle": "omponent\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\ExpressionLanguage;\nuse Symfony\\Component\\S", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Voter/ExpressionVoterTest.php", "language": "php", "file_size": 3291, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authorization\\Voter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\RoleHierarchyVoter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\nuse Symfony\\Component\\Security\\Cor", "suffix": " RoleHierarchyVoter(new RoleHierarchy(['ROLE_FOO' => ['ROLE_FOOBAR']]));\n\n $this->assertSame($expected, $voter->vote($this->getTokenWithRoleNames($roles), null, $attributes));\n }\n\n public static function getVoteTests()\n {\n return arr", "middle": "e\\Role\\RoleHierarchy;\n\nclass RoleHierarchyVoterTest extends RoleVoterTest\n{\n #[DataProvider('getVoteTests')]\n public function testVoteUsingTokenThatReturnsRoleNames($roles, $attributes, $expected)\n {\n $voter = new", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleHierarchyVoterTest.php", "language": "php", "file_size": 1616, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authorization\\Voter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolver;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\Component\\Se", "suffix": "{\n #[DataProvider('getVoteTests')]\n public function testVoteUsingTokenThatReturnsRoleNames($roles, $attributes, $expected)\n {\n $voter = new RoleVoter();\n\n $this->assertSame($expected, $voter->vote($this->getTokenWithRoleNames($roles)", "middle": "curity\\Core\\Authorization\\Voter\\AuthenticatedVoter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\RoleVoter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\nclass RoleVoterTest extends TestCase\n", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleVoterTest.php", "language": "php", "file_size": 2885, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authorization\\Voter;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\CacheableVoterInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\TraceableVoter;\nuse Symfony\\Component\\Security\\Core\\Authorizatio", "suffix": "ass()\n {\n $voter = $this->createStub(VoterInterface::class);\n\n $sut = new TraceableVoter($voter, $this->createStub(EventDispatcherInterface::class));\n $this->assertSame($voter, $sut->getDecoratedVoter());\n }\n\n public function ", "middle": "n\\Voter\\VoterInterface;\nuse Symfony\\Component\\Security\\Core\\Event\\VoteEvent;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\nclass TraceableVoterTest extends TestCase\n{\n public function testGetDecoratedVoterCl", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Voter/TraceableVoterTest.php", "language": "php", "file_size": 3559, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authorization\\Voter;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Vote;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Voter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterIn", "suffix": " $voter = new VoterTest_Voter();\n $integerVoter = new IntegerVoterTest_Voter();\n\n return [\n [$voter, ['EDIT'], VoterInterface::ACCESS_GRANTED, new \\stdClass(), 'ACCESS_GRANTED if attribute and class are supported and attribute gr", "middle": "terface;\n\nclass VoterTest extends TestCase\n{\n protected TokenInterface $token;\n\n protected function setUp(): void\n {\n $this->token = new NullToken();\n }\n\n public static function getTests(): array\n {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Voter/VoterTest.php", "language": "php", "file_size": 6445, "cut_index": 716, "middle_length": 229}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Signature;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Security\\Core\\Signature\\ExpiredSignatureStorage;\n\nclass ExpiredSignatureStorageTest extends TestCase\n{\n public ", "suffix": "yAdapter();\n $storage = new ExpiredSignatureStorage($cache, 600);\n\n $this->assertSame(0, $storage->countUsages('hash+more'));\n $storage->incrementUsages('hash+more');\n $this->assertSame(1, $storage->countUsages('hash+more'));\n ", "middle": "function testUsage()\n {\n $cache = new Arra", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Signature/ExpiredSignatureStorageTest.php", "language": "php", "file_size": 830, "cut_index": 516, "middle_length": 52}} {"prefix": "rity\\Core\\Signature\\Exception\\ExpiredSignatureException;\nuse Symfony\\Component\\Security\\Core\\Signature\\Exception\\InvalidSignatureException;\nuse Symfony\\Component\\Security\\Core\\Signature\\SignatureHasher;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass SignatureHasherTest extends TestCase\n{\n public function testComputeSignatureHash()\n {\n $user = new TestSignatureUser('john', 'my-password');\n $hasher = new SignatureHasher(PropertyAccess::createPropertyAccessor(), ['password']", "suffix": "natureHashValid()\n {\n $user = new TestSignatureUser('john', 'my-password');\n $hasher = new SignatureHasher(PropertyAccess::createPropertyAccessor(), ['password'], 'secret');\n\n $expires = time() + 3600;\n $hash = $hasher->compu", "middle": ", 'secret');\n\n $expires = time() + 3600;\n $hash = $hasher->computeSignatureHash($user, $expires);\n\n $this->assertIsString($hash);\n $this->assertNotEmpty($hash);\n }\n\n public function testVerifySig", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Signature/SignatureHasherTest.php", "language": "php", "file_size": 12027, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Dumper\\MermaidDirection;\nuse Symfony\\Component\\Security\\Core\\Dumper\\MermaidDumper;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy;\n\nclass MermaidDumperTest extends TestCase\n{\n public function testDumpSimpleHierarchy()\n {\n $hierarc", "suffix": "();\n $output = $dumper->dump($roleHierarchy);\n\n $this->assertStringContainsString('graph TB', $output);\n $this->assertStringContainsString('ROLE_ADMIN', $output);\n $this->assertStringContainsString('ROLE_USER', $output);\n ", "middle": "hy = [\n 'ROLE_ADMIN' => ['ROLE_USER'],\n 'ROLE_SUPER_ADMIN' => ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH'],\n ];\n\n $roleHierarchy = new RoleHierarchy($hierarchy);\n $dumper = new MermaidDumper", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Dumper/MermaidDumperTest.php", "language": "php", "file_size": 4820, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Event;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n/**\n * This event is dispatched on voter vote.\n *\n * @author Laurent VOULLEMIER <laurent.voullemier@gmail.com>\n ", "suffix": " private array $reasons = [],\n ) {\n }\n\n public function getVoter(): VoterInterface\n {\n return $this->voter;\n }\n\n public function getSubject(): mixed\n {\n return $this->subject;\n }\n\n public function getAttributes(): ", "middle": "*\n * @internal\n */\nfinal class VoteEvent extends Event\n{\n public function __construct(\n private VoterInterface $voter,\n private mixed $subject,\n private array $attributes,\n private int $vote,\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Event/VoteEvent.php", "language": "php", "file_size": 1217, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Vote;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\n/**\n * Contains the access verdict and all the related votes.\n *\n * @author Dany Maillard <da", "suffix": " public ?string $strategy = null;\n\n public bool $isGranted;\n\n /**\n * @var Vote[]\n */\n public array $votes = [];\n\n public function getMessage(): string\n {\n $message = $this->isGranted ? 'Access Granted.' : 'Access Denied.';\n ", "middle": "nymaillard93b@gmail.com>\n * @author Roman JOLY <eltharin18@outlook.fr>\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass AccessDecision\n{\n /**\n * @var class-string<AccessDecisionStrategyInterface>|string|null\n */\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/AccessDecision.php", "language": "php", "file_size": 1454, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Strategy\\AccessDecisionStrategyInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Strategy\\AffirmativeStrategy;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\CacheableVoterInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\TraceableVoter;\nuse Symfony\\Component\\", "suffix": "ss for all access decision managers\n * that use decision voters.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class AccessDecisionManager implements AccessDecisionManagerInterface\n{\n private const VALID_VOTES = [\n VoterInterface:", "middle": "Security\\Core\\Authorization\\Voter\\Vote;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentException;\n\n/**\n * AccessDecisionManager is the base cla", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php", "language": "php", "file_size": 6066, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * AccessDecisionManagerInterface makes authorization decisions.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface AccessDe", "suffix": " $object The object to secure\n * @param AccessDecision|null $accessDecision Should be used to explain the decision\n */\n public function decide(TokenInterface $token, array $attributes, mixed $object = null, ?AccessDecision $a", "middle": "cisionManagerInterface\n{\n /**\n * Decides whether the access is possible or not.\n *\n * @param array $attributes An array of attributes associated with the method being invoked\n * @param mixed ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/AccessDecisionManagerInterface.php", "language": "php", "file_size": 1029, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\OfflineTokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authenticat", "suffix": "s);\n\n/**\n * AuthorizationChecker is the main authorization point of the Security component.\n *\n * It gives access to the token representing the current user authentication.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt ", "middle": "ion\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(AbstractToken::class);\nclass_exists(OfflineTokenInterface::clas", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php", "language": "php", "file_size": 2615, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization;\n\n/**\n * The AuthorizationCheckerInterface.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\ninterface AuthorizationCheckerInterface\n{\n /**\n * Checks if the attribute is granted against the current authentication token and optionally supplied subject.\n *\n * @pa", "suffix": "ribute to vote on (can be of any type; strings, Expression and Closure instances are supported by the core)\n * @param AccessDecision|null $accessDecision Should be used to explain the decision\n */\n public function isGranted(mixed $attribute, mix", "middle": "ram mixed $attribute A single att", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/AuthorizationCheckerInterface.php", "language": "php", "file_size": 959, "cut_index": 582, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage as BaseExpressionLanguage;\n\nif (!class_exists(BaseExpressionLanguage::class)) {\n throw new \\LogicException(\\sprintf('The \"%s\" c", "suffix": "ressionLanguageProvider::class);\n\n /**\n * Adds some function to the default ExpressionLanguage.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @see ExpressionLanguageProvider\n */\n class ExpressionLanguage extends Ba", "middle": "lass requires the \"ExpressionLanguage\" component. Try running \"composer require symfony/expression-language\".', ExpressionLanguage::class));\n} else {\n // Help opcache.preload discover always-needed symbols\n class_exists(Exp", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/ExpressionLanguage.php", "language": "php", "file_size": 1492, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunction;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface;\n\n/**\n * Define some ExpressionLanguage functions.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n", "suffix": "checker->isGranted(\"IS_AUTHENTICATED\")', static fn (array $variables) => $variables['auth_checker']->isGranted('IS_AUTHENTICATED')),\n\n new ExpressionFunction('is_fully_authenticated', static fn () => '$token && $auth_checker->isGranted(\"IS_AUTHE", "middle": " */\nclass ExpressionLanguageProvider implements ExpressionFunctionProviderInterface\n{\n public function getFunctions(): array\n {\n return [\n new ExpressionFunction('is_authenticated', static fn () => '$auth_", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/ExpressionLanguageProvider.php", "language": "php", "file_size": 1704, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\n/**\n * Decorates the original AccessDecisionManager class to log information\n * about the security voters and the decisions made by them.\n *\n * @author Javier Eguiluz <javi", "suffix": ";\n private array $decisionLog = []; // All decision logs\n private array $currentLog = []; // Logs being filled in\n private array $accessDecisionStack = [];\n\n public function __construct(\n private AccessDecisionManagerInterface $manager,", "middle": "er.eguiluz@gmail.com>\n *\n * @internal\n */\nclass TraceableAccessDecisionManager implements AccessDecisionManagerInterface\n{\n private ?string $strategy = null;\n /** @var array<VoterInterface> */\n private array $voters = []", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php", "language": "php", "file_size": 3204, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * Interface is used to check user authorization without a session.\n *\n * @author Nate Wiebe <nate@northern.co>\n */\ninterface UserAuthorizationCheckerInterf", "suffix": "ance of Expression are supported by the core)\n * @param AccessDecision|null $accessDecision Should be used to explain the decision\n */\n public function isGrantedForUser(UserInterface $user, mixed $attribute, mixed $subject = null, ?AccessDecisio", "middle": "ace\n{\n /**\n * Checks if the attribute is granted against the user and optionally supplied subject.\n *\n * @param mixed $attribute A single attribute to vote on (can be of any type, string and inst", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/UserAuthorizationCheckerInterface.php", "language": "php", "file_size": 1033, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Strategy;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\n/**\n * Grants access if any voter returns an affirmative response.\n *\n * If all voters abstai", "suffix": "ss AffirmativeStrategy implements AccessDecisionStrategyInterface, \\Stringable\n{\n public function __construct(\n private bool $allowIfAllAbstainDecisions = false,\n ) {\n }\n\n public function decide(\\Traversable $results, ?AccessDecision $ac", "middle": "ned from voting, the decision will be based on the\n * allowIfAllAbstainDecisions property value (defaults to false).\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Alexander M. Turek <me@derrabus.de>\n */\nfinal cla", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Strategy/AffirmativeStrategy.php", "language": "php", "file_size": 1535, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Strategy;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\n/**\n * Grants access if there is consensus of granted against denied responses.\n *\n * Consensus means majority-rule (ig", "suffix": "ualGrantedDeniedDecisions property value\n * (defaults to true).\n *\n * If all voters abstained from voting, the decision will be based on the\n * allowIfAllAbstainDecisions property value (defaults to false).\n *\n * @author Fabien Potencier <fabien@symfony.co", "middle": "noring abstains) rather than unanimous\n * agreement (ignoring abstains). If you require unanimity, see\n * UnanimousBased.\n *\n * If there were an equal number of grant and deny votes, the decision will\n * be based on the allowIfEq", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Strategy/ConsensusStrategy.php", "language": "php", "file_size": 2119, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Strategy;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\n/**\n * Grant or deny access depending on the first voter that does not abstain.\n * The priori", "suffix": "n@symfony.com>\n * @author Alexander M. Turek <me@derrabus.de>\n */\nfinal class PriorityStrategy implements AccessDecisionStrategyInterface, \\Stringable\n{\n public function __construct(\n private bool $allowIfAllAbstainDecisions = false,\n ) {\n ", "middle": "ty of voters can be used to overrule a decision.\n *\n * If all voters abstained from voting, the decision will be based on the\n * allowIfAllAbstainDecisions property value (defaults to false).\n *\n * @author Fabien Potencier <fabie", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Strategy/PriorityStrategy.php", "language": "php", "file_size": 1528, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Strategy;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\n/**\n * Grants access if only grant (or abstain) votes were received.\n *\n * If all voters abst", "suffix": "lass UnanimousStrategy implements AccessDecisionStrategyInterface, \\Stringable\n{\n public function __construct(\n private bool $allowIfAllAbstainDecisions = false,\n ) {\n }\n\n public function decide(\\Traversable $results, ?AccessDecision $ac", "middle": "ained from voting, the decision will be based on the\n * allowIfAllAbstainDecisions property value (defaults to false).\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Alexander M. Turek <me@derrabus.de>\n */\nfinal c", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Strategy/UnanimousStrategy.php", "language": "php", "file_size": 1561, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Voter;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\OfflineTokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterfa", "suffix": "t is most restrictive to least restrictive checking.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass AuthenticatedVoter implements CacheableVoterInterface\n{\n public const IS_AUTHENTICAT", "middle": "ce;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentException;\n\n/**\n * AuthenticatedVoter votes if an attribute like IS_AUTHENTICATED_FULLY,\n * IS_AUTHENTICATED_REMEMBERED, IS_AUTHENTICATED is present.\n *\n * This lis", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Voter/AuthenticatedVoter.php", "language": "php", "file_size": 4597, "cut_index": 614, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Voter;\n\n/**\n * Let voters expose the attributes and types they care about.\n *\n * By returning false to either `supportsAttribute` or `supportsType`, the\n * voter will never be called for the specified attribute or subject.\n *\n * @author Jérémy Derussé <jeremy@derus", "suffix": "s VoterInterface\n{\n public function supportsAttribute(string $attribute): bool;\n\n /**\n * @param string $subjectType The type of the subject inferred by `get_class` or `get_debug_type`\n */\n public function supportsType(string $subjectType):", "middle": "se.com>\n */\ninterface CacheableVoterInterface extend", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Voter/CacheableVoterInterface.php", "language": "php", "file_size": 879, "cut_index": 559, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Voter;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsGranted;\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsGr", "suffix": "eVoter implements CacheableVoterInterface\n{\n public function __construct(\n private AuthorizationCheckerInterface $authorizationChecker,\n ) {\n }\n\n public function supportsAttribute(string $attribute): bool\n {\n return false;\n ", "middle": "antedContext;\n\n/**\n * This voter allows using a closure as the attribute being voted on.\n *\n * @see IsGranted doc for the complete closure signature.\n *\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nfinal class Closur", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Voter/ClosureVoter.php", "language": "php", "file_size": 2168, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Voter;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolverInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\A", "suffix": "ession.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass ExpressionVoter implements CacheableVoterInterface\n{\n public function __construct(\n private ExpressionLanguage $expressionLanguage,\n private ?AuthenticationTrustResolver", "middle": "uthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\ExpressionLanguage;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchyInterface;\n\n/**\n * ExpressionVoter votes based on the evaluation of an expr", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Voter/ExpressionVoter.php", "language": "php", "file_size": 3414, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Voter;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchyInterface;\n\n/**\n * RoleHierarchyVoter uses a RoleHierarchy to determine the roles granted to\n * the user before voting.\n *\n * @author Fabien Potencier <f", "suffix": "nds RoleVoter\n{\n public function __construct(\n private RoleHierarchyInterface $roleHierarchy,\n string $prefix = 'ROLE_',\n ) {\n parent::__construct($prefix);\n }\n\n protected function extractRoles(TokenInterface $token): array", "middle": "abien@symfony.com>\n */\nclass RoleHierarchyVoter exte", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Voter/RoleHierarchyVoter.php", "language": "php", "file_size": 989, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Voter;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * RoleVoter votes if any attribute starts with a given prefix.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass RoleVoter implements CacheableV", "suffix": "result = VoterInterface::ACCESS_ABSTAIN;\n $roles = $this->extractRoles($token);\n $missingRoles = [];\n\n foreach ($attributes as $attribute) {\n if (!\\is_string($attribute) || !str_starts_with($attribute, $this->prefix)) {\n ", "middle": "oterInterface\n{\n public function __construct(\n private string $prefix = 'ROLE_',\n ) {\n }\n\n public function vote(TokenInterface $token, mixed $subject, array $attributes, ?Vote $vote = null): int\n {\n $", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Voter/RoleVoter.php", "language": "php", "file_size": 1963, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Voter;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Event\\VoteEvent;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * Decorates voter classes to send resul", "suffix": " private EventDispatcherInterface $eventDispatcher,\n ) {\n }\n\n public function vote(TokenInterface $token, mixed $subject, array $attributes, ?Vote $vote = null): int\n {\n $result = $this->voter->vote($token, $subject, $attributes, $vote", "middle": "t events.\n *\n * @author Laurent VOULLEMIER <laurent.voullemier@gmail.com>\n *\n * @internal\n */\nclass TraceableVoter implements CacheableVoterInterface\n{\n public function __construct(\n private VoterInterface $voter,\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Voter/TraceableVoter.php", "language": "php", "file_size": 1689, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\Token;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\RememberMeToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\nclass RememberMeTokenTest extends TestCase\n{\n public function testConstructor()\n {\n $user = $this-", "suffix": "er, 'fookey');\n\n $this->assertEquals('fookey', $token->getFirewallName());\n $this->assertEquals(['ROLE_FOO'], $token->getRoleNames());\n $this->assertSame($user, $token->getUser());\n }\n\n protected function getUser($roles = ['ROLE_", "middle": ">getUser();\n $token = new RememberMeToken($us", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememberMeTokenTest.php", "language": "php", "file_size": 972, "cut_index": 582, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\Token;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\nclass UsernamePasswordTokenTest extend", "suffix": "s());\n $this->assertEquals('key', $token->getFirewallName());\n }\n\n public function testToString()\n {\n $token = new UsernamePasswordToken(new InMemoryUser('foo', '', ['A', 'B']), 'foo', ['A', 'B']);\n $this->assertEquals('Userna", "middle": "s TestCase\n{\n public function testConstructor()\n {\n $token = new UsernamePasswordToken(new InMemoryUser('foo', 'bar', ['ROLE_FOO']), 'key', ['ROLE_FOO']);\n $this->assertEquals(['ROLE_FOO'], $token->getRoleName", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/Token/UsernamePasswordTokenTest.php", "language": "php", "file_size": 1070, "cut_index": 515, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\Token\\Fixtures;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nfinal class CustomUser implements UserInterface\n{\n public function __construct(\n private string $username,\n private array $rol", "suffix": " }\n\n public function getUserIdentifier(): string\n {\n return $this->username;\n }\n\n public function getRoles(): array\n {\n return $this->roles;\n }\n\n public function getPassword(): ?string\n {\n return null;\n }\n}\n", "middle": "es,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/Token/Fixtures/CustomUser.php", "language": "php", "file_size": 788, "cut_index": 518, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\User;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\User\\ChainUserChecker;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\UserCheckerInterface;\n\nfinal class ChainUserCheckerTest extends TestCase\n{\n publ", "suffix": " ->method('checkPreAuth')\n ->with($user);\n\n $checker2 = $this->createMock(UserCheckerInterface::class);\n $checker2->expects($this->once())\n ->method('checkPreAuth')\n ->with($user);\n\n $checker3 = $th", "middle": "ic function testForwardsPreAuthToAllUserCheckers()\n {\n $user = new InMemoryUser('John', 'password');\n\n $checker1 = $this->createMock(UserCheckerInterface::class);\n $checker1->expects($this->once())\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/User/ChainUserCheckerTest.php", "language": "php", "file_size": 2041, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\User;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Exception\\DisabledException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserChecker;\n\nclass InMe", "suffix": ", 'password')));\n }\n\n public function testCheckPostAuthPass()\n {\n $checker = new InMemoryUserChecker();\n $this->assertNull($checker->checkPostAuth(new InMemoryUser('John', 'password')));\n }\n\n public function testCheckPreAuthDis", "middle": "moryUserCheckerTest extends TestCase\n{\n public function testCheckPostAuthNotAdvancedUserInterface()\n {\n $checker = new InMemoryUserChecker();\n\n $this->assertNull($checker->checkPostAuth(new InMemoryUser('John'", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/User/InMemoryUserCheckerTest.php", "language": "php", "file_size": 1183, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\User;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass InMemoryUserTest extends TestCase\n{\n public function testConstructorEx", "suffix": "\n $this->assertEquals([], $user->getRoles());\n\n $user = new InMemoryUser('fabien', 'superpass', ['ROLE_ADMIN']);\n $this->assertEquals(['ROLE_ADMIN'], $user->getRoles());\n }\n\n public function testGetPassword()\n {\n $user ", "middle": "ception()\n {\n $this->expectException(\\InvalidArgumentException::class);\n new InMemoryUser('', 'superpass');\n }\n\n public function testGetRoles()\n {\n $user = new InMemoryUser('fabien', 'superpass');", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/User/InMemoryUserTest.php", "language": "php", "file_size": 2959, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\User;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\User\\OidcUser;\n\nclass OidcUserTest extends TestCase\n{\n public function testCannotCreateUserWithoutSubProperty()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('The \"sub\" claim cannot be empty.');\n\n new OidcUser();\n }\n\n public function testCreateFullUserWithAdditionalClaimsUsi", "suffix": "hn',\n 'DOE',\n 'Fitzgerald',\n 'Johnny',\n 'john.doe',\n 'https://www.example.com/john-doe',\n 'https://www.example.com/pics/john-doe.jpg',\n 'https://www.example.com',\n 'joh", "middle": "ngPositionalParameters()\n {\n $this->assertEquals(new OidcUser(\n 'john.doe',\n ['ROLE_USER', 'ROLE_ADMIN'],\n 'e21bf182-1538-406e-8ccb-e25a17aba39f',\n 'John DOE',\n 'Jo", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/User/OidcUserTest.php", "language": "php", "file_size": 5805, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Validator\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPassword;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\", "suffix": "straint->validatedBy());\n }\n\n #[DataProvider('provideServiceValidatedConstraints')]\n public function testValidatedByService(UserPassword $constraint)\n {\n self::assertSame('my_service', $constraint->validatedBy());\n }\n\n public stati", "middle": "AttributeLoader;\n\nclass UserPasswordTest extends TestCase\n{\n public function testValidatedByStandardValidator()\n {\n $constraint = new UserPassword();\n\n self::assertSame('security.validator.user_password', $con", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Validator/Constraints/UserPasswordTest.php", "language": "php", "file_size": 2365, "cut_index": 563, "middle_length": 229}} {"prefix": "ation\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Strategy\\AccessDecisionStrategyInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\CacheableVoterInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\nclass AccessDecisionManagerTest", "suffix": "s->getExpectedVoter(VoterInterface::ACCESS_DENIED),\n $this->getExpectedVoter(VoterInterface::ACCESS_GRANTED),\n $this->getUnexpectedVoter(),\n ];\n\n $strategy = new class implements AccessDecisionStrategyInterface {\n ", "middle": " extends TestCase\n{\n public function provideBadVoterResults(): array\n {\n return [\n [3],\n [true],\n ];\n }\n\n public function testVoterCalls()\n {\n $voters = [\n $thi", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php", "language": "php", "file_size": 9348, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authorization;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolver;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\RememberMeToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\n", "suffix": "Symfony\\Component\\Security\\Core\\Authorization\\ExpressionLanguage;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AuthenticatedVoter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\RoleVoter;\nuse Symfony\\Component\\Security\\Core\\User\\InMemo", "middle": "use Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationChecker;\nuse ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/ExpressionLanguageTest.php", "language": "php", "file_size": 3089, "cut_index": 614, "middle_length": 229}} {"prefix": "ty\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManagerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\TraceableAccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentException;\nuse Symfony\\Compon", "suffix": "ct, array $voterVotes, bool $result)\n {\n $token = new NullToken();\n $admMock = $this->createMock(AccessDecisionManagerInterface::class);\n\n $adm = new TraceableAccessDecisionManager($admMock);\n\n $admMock\n ->expects(", "middle": "ent\\Security\\Core\\Tests\\Fixtures\\DummyVoter;\n\nclass TraceableAccessDecisionManagerTest extends TestCase\n{\n #[DataProvider('provideObjectsAndLogs')]\n public function testDecideLog(array $expectedLog, array $attributes, $obje", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/TraceableAccessDecisionManagerTest.php", "language": "php", "file_size": 11413, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Authorization\\Strategy;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\Strategy\\ConsensusStrategy;\nuse Symfony\\Component\\Security\\Core\\Test\\AccessDecisionStrategyTestCase;\n\nclass ConsensusStrategyTest extends AccessDecisionStrategyTestCase\n{\n public static function pro", "suffix": "lf::getVoters(2, 1, 0), true];\n yield [$strategy, self::getVoters(0, 0, 1), false];\n\n yield [$strategy, self::getVoters(2, 2, 0), true];\n yield [$strategy, self::getVoters(2, 2, 1), true];\n\n $strategy = new ConsensusStrategy(tru", "middle": "videStrategyTests(): iterable\n {\n $strategy = new ConsensusStrategy();\n\n yield [$strategy, self::getVoters(1, 0, 0), true];\n yield [$strategy, self::getVoters(1, 2, 0), false];\n yield [$strategy, se", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Strategy/ConsensusStrategyTest.php", "language": "php", "file_size": 1260, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\CustomUserMessageAuthenticationException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\nclass Chi", "suffix": " }\n\n public function __unserialize(array $data): void\n {\n [$this->childMember, $parentData] = $data;\n\n parent::__unserialize($parentData);\n }\n}\n\nclass CustomUserMessageAuthenticationExceptionTest extends TestCase\n{\n public functi", "middle": "ldCustomUserMessageAuthenticationException extends CustomUserMessageAuthenticationException\n{\n public $childMember;\n\n public function __serialize(): array\n {\n return [$this->childMember, parent::__serialize()];\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Exception/CustomUserMessageAuthenticationExceptionTest.php", "language": "php", "file_size": 2798, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolver;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\RememberMeToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUse", "suffix": "is->assertFalse($resolver->isRememberMe(null));\n $this->assertFalse($resolver->isRememberMe(new FakeCustomToken()));\n $this->assertTrue($resolver->isRememberMe(new RealCustomRememberMeToken()));\n $this->assertTrue($resolver->isRemember", "middle": "r;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass AuthenticationTrustResolverTest extends TestCase\n{\n public function testIsRememberMe()\n {\n $resolver = new AuthenticationTrustResolver();\n\n $th", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php", "language": "php", "file_size": 4090, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\RememberMe;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentToken;\n\nclass PersistentTokenTest extends TestCase\n{\n public function testConstructor()\n {\n ", "suffix": "s('fooseries', $token->getSeries());\n $this->assertEquals('footokenvalue', $token->getTokenValue());\n $this->assertEquals($lastUsed, $token->getLastUsed());\n }\n\n public function testDateTime()\n {\n $lastUsed = new \\DateTime();\n", "middle": " $lastUsed = new \\DateTimeImmutable();\n $token = new PersistentToken('fooname', 'fooseries', 'footokenvalue', $lastUsed);\n\n $this->assertEquals('fooname', $token->getUserIdentifier());\n $this->assertEqual", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/PersistentTokenTest.php", "language": "php", "file_size": 1165, "cut_index": 518, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\Token;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\PreAuthenticatedToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\nclass PreAuthenticatedTokenTest ext", "suffix": "ames());\n $this->assertEquals('key', $token->getFirewallName());\n }\n\n public function testGetUser()\n {\n $token = new PreAuthenticatedToken($user = new InMemoryUser('foo', 'bar'), 'key');\n $this->assertEquals($user, $token->get", "middle": "ends TestCase\n{\n public function testConstructor()\n {\n $token = new PreAuthenticatedToken(new InMemoryUser('foo', 'bar', ['ROLE_FOO']), 'key', ['ROLE_FOO']);\n $this->assertEquals(['ROLE_FOO'], $token->getRoleN", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/Token/PreAuthenticatedTokenTest.php", "language": "php", "file_size": 1014, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\Token;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Tests\\Authentication\\Token\\Fixtures\\CustomUser;\nuse Symfony\\Component\\Security\\Core", "suffix": "']), 'provider-key', ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH']);\n $token = new SwitchUserToken(new InMemoryUser('admin', 'bar', ['ROLE_USER']), 'provider-key', ['ROLE_USER'], $originalToken, 'https://symfony.com/blog');\n\n $unserializedToken = ", "middle": "\\User\\InMemoryUser;\n\nclass SwitchUserTokenTest extends TestCase\n{\n public function testSerialize()\n {\n $originalToken = new UsernamePasswordToken(new InMemoryUser('user', 'foo', ['ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/Token/SwitchUserTokenTest.php", "language": "php", "file_size": 3817, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\Token\\Storage;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Compone", "suffix": "ion\\Token\\Storage\\UsageTrackingTokenStorage;\nuse Symfony\\Contracts\\Service\\ServiceLocatorTrait;\n\nclass UsageTrackingTokenStorageTest extends TestCase\n{\n public function testGetSetToken()\n {\n $tokenStorage = new TokenStorage();\n $session", "middle": "nt\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authenticat", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/Token/Storage/UsageTrackingTokenStorageTest.php", "language": "php", "file_size": 2557, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\User;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\n\nclass InMemoryUserProviderTest extends TestCase\n{\n", "suffix": "quals(['ROLE_USER'], $user->getRoles());\n $this->assertFalse($user->isEnabled());\n }\n\n public function testRefresh()\n {\n $user = new InMemoryUser('fabien', 'bar');\n\n $provider = $this->createProvider();\n\n $refreshedUser", "middle": " public function testConstructor()\n {\n $provider = $this->createProvider();\n\n $user = $provider->loadUserByIdentifier('fabien');\n $this->assertEquals('foo', $user->getPassword());\n $this->assertE", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/User/InMemoryUserProviderTest.php", "language": "php", "file_size": 2357, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Resources;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Translation\\Util\\XliffUtils;\n\nclass TranslationFilesTest extends TestCase\n{\n #[DataProvider('provideTranslationFiles')]\n public func", "suffix": "unt(0, $errors, \\sprintf('\"%s\" is invalid:%s', $filePath, \\PHP_EOL.implode(\\PHP_EOL, array_column($errors, 'message'))));\n }\n\n #[DataProvider('provideTranslationFiles')]\n public function testTranslationFileIsValidWithoutEntityLoader($filePath)\n ", "middle": "tion testTranslationFileIsValid($filePath)\n {\n $document = new \\DOMDocument();\n $document->loadXML(file_get_contents($filePath));\n\n $errors = XliffUtils::validateSchema($document);\n\n $this->assertCo", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Resources/TranslationFilesTest.php", "language": "php", "file_size": 1908, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authorization;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\OfflineTokenInterface;\nuse Symfony\\Component\\Security\\Core\\Auth", "suffix": "ty\\Core\\Authorization\\AuthorizationChecker;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\nclass AuthorizationCheckerTest extends TestCase\n{\n private MockObject&AccessDecisionManagerInterface $accessDecisionManager;\n private AuthorizationChe", "middle": "entication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManagerInterface;\nuse Symfony\\Component\\Securi", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/AuthorizationCheckerTest.php", "language": "php", "file_size": 4286, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Authorization\\Strategy;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\Strategy\\PriorityStrategy;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\nuse Symfony\\Component\\Security\\Core\\Test\\AccessDecisionStrategyTestCase;\n\nclass PriorityStrategyTest e", "suffix": "ABSTAIN),\n self::getVoter(VoterInterface::ACCESS_GRANTED),\n self::getVoter(VoterInterface::ACCESS_DENIED),\n self::getVoter(VoterInterface::ACCESS_DENIED),\n ], true];\n\n yield [$strategy, [\n self::get", "middle": "xtends AccessDecisionStrategyTestCase\n{\n public static function provideStrategyTests(): iterable\n {\n $strategy = new PriorityStrategy();\n\n yield [$strategy, [\n self::getVoter(VoterInterface::ACCESS_", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Strategy/PriorityStrategyTest.php", "language": "php", "file_size": 1424, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Role;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy;\n\nclass RoleHierarchyTest extends TestCase\n{\n public function testGetReachableRoleNames()\n {\n $role = new RoleHierarchy([\n 'ROLE_ADMIN' => ['ROLE_USER'],\n 'ROLE_SUPER_ADMIN' => ['ROLE_ADMIN', 'ROLE_F", "suffix": "eNames(['ROLE_FOO']));\n $this->assertEqualsCanonicalizing(['ROLE_ADMIN' => 'ROLE_ADMIN', 'ROLE_USER' => 'ROLE_USER'], $role->getReachableRoleNames(['ROLE_ADMIN']));\n $this->assertEqualsCanonicalizing(['ROLE_FOO' => 'ROLE_FOO', 'ROLE_ADMIN' =>", "middle": "OO'],\n ]);\n\n $this->assertEqualsCanonicalizing(['ROLE_USER' => 'ROLE_USER'], $role->getReachableRoleNames(['ROLE_USER']));\n $this->assertEqualsCanonicalizing(['ROLE_FOO' => 'ROLE_FOO'], $role->getReachableRol", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Role/RoleHierarchyTest.php", "language": "php", "file_size": 3139, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Validator\\Constraints;\n\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactoryInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\User\\LegacyPasswordAuthenticatedUserInterface;\nuse Symfony\\", "suffix": "tion;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\n\nclass UserPasswordValidator extends ConstraintValidator\n{\n public function __construct(\n private TokenStorageInterface $tokenStorage,\n private PasswordHasherFactoryI", "middle": "Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionExcep", "meta": {"filepath": "src/Symfony/Component/Security/Core/Validator/Constraints/UserPasswordValidator.php", "language": "php", "file_size": 2490, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\Token\\Storage;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse S", "suffix": "n());\n $token = new UsernamePasswordToken(new InMemoryUser('username', 'password'), 'provider');\n $tokenStorage->setToken($token);\n $this->assertSame($token, $tokenStorage->getToken());\n $tokenStorage->setToken(null);\n $t", "middle": "ymfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\nclass TokenStorageTest extends TestCase\n{\n public function testGetSetToken()\n {\n $tokenStorage = new TokenStorage();\n $this->assertNull($tokenStorage->getToke", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/Token/Storage/TokenStorageTest.php", "language": "php", "file_size": 1050, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\User;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\User\\OAuth2User;\n\nclass OAuth2UserTest extends TestCase\n{\n public function testCannotCreateUserWithoutSubProperty()\n {\n $this->expectException(\\InvalidArgumentExce", "suffix": "{\n $this->assertEquals(new OAuth2User(\n scope: 'read write dolphin',\n username: 'jdoe',\n exp: 1419356238,\n iat: 1419350238,\n sub: 'Z5O3upPC88QrAjx00dis',\n aud: 'https://protected.exam", "middle": "ption::class);\n $this->expectExceptionMessage('The claim \"sub\" or \"username\" must be provided.');\n\n new OAuth2User();\n }\n\n public function testCreateFullUserWithAdditionalClaimsUsingPositionalParameters()\n ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/User/OAuth2UserTest.php", "language": "php", "file_size": 1629, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Validator\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactoryInterface;\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse ", "suffix": "ption\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nabstract class UserPasswordValidatorTestCase extends ConstraintValidatorTestCase\n{\n privat", "middle": "Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPassword;\nuse Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPasswordValidator;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Exce", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Validator/Constraints/UserPasswordValidatorTestCase.php", "language": "php", "file_size": 5642, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\n\nclass UserNotFoundExceptionTest extends TestCase\n{\n public function testGetMessageData()\n {\n $exceptio", "suffix": "e');\n $this->assertEquals(['{{ username }}' => 'username', '{{ user_identifier }}' => 'username'], $exception->getMessageData());\n }\n\n public function testUserIdentifierIsNotSetByDefault()\n {\n $exception = new UserNotFoundException()", "middle": "n = new UserNotFoundException('Username could not be found.');\n $this->assertEquals(['{{ username }}' => null, '{{ user_identifier }}' => null], $exception->getMessageData());\n $exception->setUserIdentifier('usernam", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Exception/UserNotFoundExceptionTest.php", "language": "php", "file_size": 1071, "cut_index": 515, "middle_length": 229}} {"prefix": "Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\AttributesBasedUserProviderInterface;\nuse Symfony\\Component\\Security\\Core\\User\\ChainUserProvider;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordUpgraderInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProvider", "suffix": "once())\n ->method('loadUserByIdentifier')\n ->with($this->equalTo('foo'))\n ->willThrowException(new UserNotFoundException('not found'))\n ;\n\n $provider2 = $this->createMock(InMemoryUserProvider::class);\n ", "middle": "Interface;\n\nclass ChainUserProviderTest extends TestCase\n{\n public function testLoadUserByIdentifier()\n {\n $provider1 = $this->createMock(InMemoryUserProvider::class);\n $provider1\n ->expects($this->", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/User/ChainUserProviderTest.php", "language": "php", "file_size": 10371, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Tests\\Authentication\\Token;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass AbstractTokenTest extends TestCase\n{", "suffix": ", $token->getUserIdentifier());\n }\n\n public static function provideUsers()\n {\n yield [new InMemoryUser('fabien', null), 'fabien'];\n }\n\n public function testSerialize()\n {\n $token = new ConcreteToken(['ROLE_FOO', 'ROLE_BAR'])", "middle": "\n #[DataProvider('provideUsers')]\n public function testGetUserIdentifier($user, string $username)\n {\n $token = new ConcreteToken(['ROLE_FOO']);\n $token->setUser($user);\n $this->assertEquals($username", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php", "language": "php", "file_size": 3814, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Authorization\\Strategy;\n\nuse Symfony\\Component\\Security\\Core\\Authorization\\Strategy\\AffirmativeStrategy;\nuse Symfony\\Component\\Security\\Core\\Test\\AccessDecisionStrategyTestCase;\n\nclass AffirmativeStrategyTest extends AccessDecisionStrategyTestCase\n{\n public static function provideStrategyTests(): iterable\n {\n $strategy ", "suffix": "gy, self::getVoters(1, 0, 0), true];\n yield [$strategy, self::getVoters(1, 2, 0), true];\n yield [$strategy, self::getVoters(0, 1, 0), false];\n yield [$strategy, self::getVoters(0, 0, 1), false];\n\n $strategy = new AffirmativeStra", "middle": "= new AffirmativeStrategy();\n\n yield [$strate", "meta": {"filepath": "src/Symfony/Component/Security/Core/Tests/Authorization/Strategy/AffirmativeStrategyTest.php", "language": "php", "file_size": 970, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Voter;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * Voter is an abstract default implementation of a voter.\n *\n * @author Roman Marintšenko <inoryy@gmail.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n *\n * @template TAttribute of string\n * @template TSubject of mixed\n */\nabst", "suffix": "ne of the attributes are supported\n $voteResult = self::ACCESS_ABSTAIN;\n\n foreach ($attributes as $attribute) {\n try {\n if (!$this->supports($attribute, $subject)) {\n continue;\n }\n ", "middle": "ract class Voter implements VoterInterface, CacheableVoterInterface\n{\n public function vote(TokenInterface $token, mixed $subject, array $attributes, ?Vote $vote = null): int\n {\n // abstain vote by default in case no", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Voter/Voter.php", "language": "php", "file_size": 3574, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compressor;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Compresses a file using zopfli if possible, or fallback on gzip.\n *\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\nfinal class GzipCompressor implements SupportedCompressorInterface\n{\n use Co", "suffix": " PHP_EXTENSION = 'zlib';\n private const FILE_EXTENSION = 'gz';\n\n public function __construct(\n private readonly ZopfliCompressor $zopfliCompressor = new ZopfliCompressor(),\n ?string $executable = null,\n private ?LoggerInterface $", "middle": "mpressorTrait {\n compress as private baseCompress;\n getUnsupportedReason as private baseGetUnsupportedReason;\n }\n\n private const WRAPPER = 'compress.zlib';\n private const COMMAND = 'gzip';\n private const", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compressor/GzipCompressor.php", "language": "php", "file_size": 2041, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compressor;\n\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Compresses a file using zopfli.\n *\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\nfinal class ZopfliCompressor implements SupportedCompressorInterface\n{\n use CompressorTrait;\n", "suffix": "lic function __construct(\n ?string $executable = null,\n ) {\n $this->executable = $executable;\n }\n\n private function compressWithBinary(string $path): void\n {\n (new Process([$this->executable, '--', $path]))->mustRun();\n ", "middle": "\n private const WRAPPER = ''; // not supported yet https://github.com/kjdev/php-ext-zopfli/issues/23\n private const COMMAND = 'zopfli';\n private const PHP_EXTENSION = '';\n private const FILE_EXTENSION = 'gz';\n\n pub", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compressor/ZopfliCompressor.php", "language": "php", "file_size": 1182, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compressor;\n\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Compresses a file using Zstandard.\n *\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\nfinal class ZstandardCompressor implements SupportedCompressorInterface\n{\n use CompressorT", "suffix": "able = null,\n ) {\n $this->executable = $executable;\n }\n\n /**\n * @return resource\n */\n private function createStreamContext()\n {\n return stream_context_create(['zstd' => ['level' => \\ZSTD_COMPRESS_LEVEL_MAX]]);\n }\n\n ", "middle": "rait;\n\n private const WRAPPER = 'compress.zstd';\n private const COMMAND = 'zstd';\n private const PHP_EXTENSION = 'zstd';\n private const FILE_EXTENSION = 'zst';\n\n public function __construct(\n ?string $execut", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compressor/ZstandardCompressor.php", "language": "php", "file_size": 1199, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Path;\n\nuse Symfony\\Component\\AssetMapper\\Compressor\\CompressorInterface;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass LocalPublicAssetsFilesystem implements PublicAssetsFilesystemInterface\n{\n private Filesystem $filesystem;\n\n /**\n * @param st", "suffix": "ess = [],\n ) {\n $this->filesystem = new Filesystem();\n }\n\n public function write(string $path, string $contents): void\n {\n $targetPath = $this->publicDir.'/'.ltrim($path, '/');\n\n $this->filesystem->dumpFile($targetPath, $co", "middle": "ring[] $extensionsToCompress\n */\n public function __construct(\n private readonly string $publicDir,\n private readonly ?CompressorInterface $compressor = null,\n private readonly array $extensionsToCompr", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Path/LocalPublicAssetsFilesystem.php", "language": "php", "file_size": 1724, "cut_index": 537, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Path;\n\n/**\n * Writes asset files to their public location.\n */\ninterface PublicAssetsFilesystemInterface\n{\n /**\n * Write the contents of a file to the public location.\n */\n public function write(string $path, string $contents", "suffix": "/**\n * Copy a local file to the public location.\n */\n public function copy(string $originPath, string $path): void;\n\n /**\n * A string representation of the public directory, used for feedback.\n */\n public function getDestinationPat", "middle": "): void;\n\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Path/PublicAssetsFilesystemInterface.php", "language": "php", "file_size": 802, "cut_index": 517, "middle_length": 14}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Path;\n\nclass PublicAssetsPathResolver implements PublicAssetsPathResolverInterface\n{\n private readonly string $publicPrefix;\n\n public function __construct(\n string $publicPrefix = '/assets/',\n ) {\n // ensure that the ", "suffix": "always starts and ends with a single slash\n $this->publicPrefix = '/'.trim($publicPrefix, '/').'/';\n }\n\n public function resolvePublicPath(string $logicalPath): string\n {\n return $this->publicPrefix.ltrim($logicalPath, '/');\n }\n}\n", "middle": "public prefix ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Path/PublicAssetsPathResolver.php", "language": "php", "file_size": 788, "cut_index": 518, "middle_length": 14}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compiler;\n\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\n\n/**\n * An asset compiler is responsible for applying any changes to the contents of an asset.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\ninterface AssetCompilerInterface\n{\n pu", "suffix": "lic const MISSING_IMPORT_WARN = 'warn';\n public const MISSING_IMPORT_IGNORE = 'ignore';\n\n public function supports(MappedAsset $asset): bool;\n\n /**\n * Applies any changes to the contents of the asset.\n */\n public function compile(string", "middle": "blic const MISSING_IMPORT_STRICT = 'strict';\n pub", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compiler/AssetCompilerInterface.php", "language": "php", "file_size": 967, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compiler;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\Exception\\RuntimeException;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\nuse Symfony\\Component\\Filesystem\\Path;\n\n/**\n * Resolves url() paths in CSS files.\n *\n * Originally sourced from https://github.com/", "suffix": " {\n (?|\n (url\\()\\s*+[\"']?(?!(?:/|\\#|%23|data|http|//))([^\"')\\s?#]++)(?:[?#][^\"')]++)?[\"']?\\s*+(\\))\n |\n (@import\\s++)[\"'](?!(?:/|\\#|%23|data|http|//))([^\"')\\s?#]++)(?:[?#][^\"')]++)?[\"']\n )\n }", "middle": "rails/propshaft/blob/main/lib/propshaft/compiler/css_asset_urls.rb\n */\nfinal class CssAssetUrlCompiler implements AssetCompilerInterface\n{\n // https://regex101.com/r/BOJ3vG/2\n public const ASSET_URL_PATTERN = <<<'REGEX'\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php", "language": "php", "file_size": 4220, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compiler;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\Compiler\\Parser\\JavascriptSequenceParser;\nuse Symfony\\Component\\AssetMapper\\Exception\\CircularAssetsException;\nuse Symfony\\Component\\AssetMapper\\Exception\\RuntimeException;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapConfigReader;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\JavaScriptImport;\nuse Sy", "suffix": "AssetCompilerInterface\n{\n private const IMPORT_PATTERN = '/\n ^(?:\\/\\/.*) # Lines that start with comments\n |\n (?:\n \\'(?:[^\\'\\\\\\\\\\n]|\\\\\\\\.)*+\\' # Strings enclosed in single quotes\n ", "middle": "mfony\\Component\\AssetMapper\\MappedAsset;\nuse Symfony\\Component\\Filesystem\\Path;\n\n/**\n * Resolves import paths in JS files.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nfinal class JavaScriptImportPathCompiler implements ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compiler/JavaScriptImportPathCompiler.php", "language": "php", "file_size": 9154, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compiler;\n\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\nuse Symfony\\Component\\Filesystem\\Path;\n\n/**\n * Rewrites already-existing source map URLs to their final digested path.\n *\n * Originally sourced f", "suffix": "sourceMappingURL=(.+\\.map)}m';\n\n public function supports(MappedAsset $asset): bool\n {\n return \\in_array($asset->publicExtension, ['css', 'js'], true);\n }\n\n public function compile(string $content, MappedAsset $asset, AssetMapperInterfac", "middle": "rom https://github.com/rails/propshaft/blob/main/lib/propshaft/compiler/source_mapping_urls.rb\n */\nfinal class SourceMappingUrlsCompiler implements AssetCompilerInterface\n{\n private const SOURCE_MAPPING_PATTERN = '{^(//|/\\*)# ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compiler/SourceMappingUrlsCompiler.php", "language": "php", "file_size": 1751, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compiler\\Parser;\n\n/**\n * Parses JavaScript content to identify sequences of strings, comments, etc.\n *\n * @author Simon André <smn.andre@gmail.com>\n *\n * @internal\n */\nfinal class JavascriptSequenceParser\n{\n private const STATE_DEFAULT = 0;\n private const STATE_COMMENT = 1;\n private const STATE_STRING = 2;\n\n private int $cursor = 0;\n\n private int $contentEnd;\n\n private string $pattern;\n\n private int $currentSequen", "suffix": " '\\'', // Single quote\n '`', // Backtick\n ];\n\n public function __construct(\n private readonly string $content,\n ) {\n $this->contentEnd = \\strlen($content);\n\n $this->pattern ??= '/'.implode('|', array_map(\n ", "middle": "ceType = self::STATE_DEFAULT;\n\n private ?int $currentSequenceEnd = null;\n\n private const COMMENT_SEPARATORS = [\n '/*', // Multi-line comment\n '//', // Single-line comment\n '\"', // Double quote\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compiler/Parser/JavascriptSequenceParser.php", "language": "php", "file_size": 5392, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Factory;\n\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\nuse Symfony\\Component\\Config\\ConfigCache;\nuse Symfony\\Component\\Config\\Resource\\DirectoryResource;\nuse Symfony\\Component\\Config\\Resource\\FileExistenceResource;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Comp", "suffix": "toryInterface\n{\n public function __construct(\n private readonly MappedAssetFactoryInterface $innerFactory,\n private readonly string $cacheDir,\n private readonly bool $debug,\n ) {\n }\n\n public function createMappedAsset(strin", "middle": "onent\\Config\\Resource\\ResourceInterface;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * Decorates the asset factory to load MappedAssets from cache when possible.\n */\nclass CachedMappedAssetFactory implements MappedAssetFac", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Factory/CachedMappedAssetFactory.php", "language": "php", "file_size": 2637, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Factory;\n\nuse Symfony\\Component\\AssetMapper\\AssetMapperCompiler;\nuse Symfony\\Component\\AssetMapper\\Exception\\CircularAssetsException;\nuse Symfony\\Component\\AssetMapper\\Exception\\RuntimeException;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\nuse Symfony\\Component\\AssetMapper\\Path\\PublicAssetsPathResolverInterface;\nuse Symfony\\Compone", "suffix": "/-([0-9a-zA-Z]{7,128}\\.digested)/';\n private const PUBLIC_DIGEST_LENGTH = 7;\n\n private array $assetsCache = [];\n private array $assetsBeingCreated = [];\n\n public function __construct(\n private readonly PublicAssetsPathResolverInterface $", "middle": "nt\\Filesystem\\Filesystem;\n\n/**\n * Creates MappedAsset objects by reading their contents & passing it through compilers.\n */\nclass MappedAssetFactory implements MappedAssetFactoryInterface\n{\n private const PREDIGESTED_REGEX = '", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Factory/MappedAssetFactory.php", "language": "php", "file_size": 4811, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nuse Symfony\\Component\\HttpClient\\DecoratorTrait;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * @internal\n */\nclass BatchHttpClient implements HttpClientInterface\n{\n use Decorat", "suffix": "\\WeakMap();\n $pendingRequests = [];\n\n foreach ($this->pendingRequests as $response => $_) {\n if ($response->getInfo('http_code')) {\n $this->pendingRequests->offsetUnset($response);\n } else {\n ", "middle": "orTrait;\n\n private const BATCH_SIZE = 250;\n\n private \\WeakMap $pendingRequests;\n\n public function request(string $method, string $url, array $options = []): ResponseInterface\n {\n $this->pendingRequests ??= new ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/BatchHttpClient.php", "language": "php", "file_size": 1651, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nuse Symfony\\Component\\AssetMapper\\Exception\\RuntimeException;\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass ImportMapAuditor\n{\n private const AUDIT_URL = 'https://api.github.com/advisories';\n\n private readonly HttpClientInterface $httpClient;\n\n public fun", "suffix": "urn list<ImportMapPackageAudit>\n */\n public function audit(): array\n {\n $entries = $this->configReader->getEntries();\n\n /** @var array<string, ImportMapPackageAudit> $packageAudits */\n $packageAudits = [];\n\n /** @var a", "middle": "ction __construct(\n private readonly ImportMapConfigReader $configReader,\n ?HttpClientInterface $httpClient = null,\n ) {\n $this->httpClient = $httpClient ?? HttpClient::create();\n }\n\n /**\n * @ret", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapAuditor.php", "language": "php", "file_size": 4138, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nuse Symfony\\Component\\AssetMapper\\Exception\\RuntimeException;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Filesystem\\Path;\nuse Symfony\\Component\\VarExporter\\VarExporter;\n\n/**\n * Reads/Writes the importmap.php file and returns the list of entries.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass ImportMapConfigReader\n{\n private ImportMapEntries $rootImportMapEntries;\n private readonly", "suffix": "tem();\n }\n\n public function getEntries(): ImportMapEntries\n {\n if (isset($this->rootImportMapEntries)) {\n return $this->rootImportMapEntries;\n }\n\n $configPath = $this->importMapConfigPath;\n $importMapConfig =", "middle": " Filesystem $filesystem;\n\n public function __construct(\n private readonly string $importMapConfigPath,\n private readonly RemotePackageStorage $remotePackageStorage,\n ) {\n $this->filesystem = new Filesys", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapConfigReader.php", "language": "php", "file_size": 7920, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\n/**\n * Holds the collection of importmap entries defined in importmap.php.\n *\n * @template-implements \\IteratorAggregate<ImportMapEntry>\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass ImportMapEntries implements \\IteratorAggregate\n{\n ", "suffix": " }\n\n public function add(ImportMapEntry $entry): void\n {\n $this->entries[$entry->importName] = $entry;\n }\n\n public function has(string $importName): bool\n {\n return isset($this->entries[$importName]);\n }\n\n public funct", "middle": " private array $entries = [];\n\n /**\n * @param ImportMapEntry[] $entries\n */\n public function __construct(array $entries = [])\n {\n foreach ($entries as $entry) {\n $this->add($entry);\n }\n", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapEntries.php", "language": "php", "file_size": 1589, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\n/**\n * Represents an item that should be in the importmap.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nfinal class ImportMapEntry\n{\n private function __construct(\n public readonly string $importName,\n public readonly ImportMapType $type,\n ", "suffix": "ly).\n */\n public readonly ?string $version,\n /**\n * The full \"package-name/path\" (remote only).\n */\n public readonly ?string $packageModuleSpecifier,\n ) {\n }\n\n public static function createLocal(string ", "middle": "/**\n * A logical path, relative path or absolute path to the file.\n */\n public readonly string $path,\n public readonly bool $isEntrypoint,\n /**\n * The version of the package (remote on", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapEntry.php", "language": "php", "file_size": 2623, "cut_index": 563, "middle_length": 229}} {"prefix": "er;\nuse Symfony\\Component\\AssetMapper\\Exception\\LogicException;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\n\n/**\n * Provides data needed to write the importmap & preloads.\n */\nclass ImportMapGenerator\n{\n public const IMPORT_MAP_CACHE_FILENAME = 'importmap.json';\n public const ENTRYPOINT_CACHE_FILENAME_PATTERN = 'entrypoint.%s.json';\n\n public function __construct(\n private readonly AssetMapperInterface $assetMapper,\n private readonly CompiledAssetMapperConfigReader $compiledConfigRe", "suffix": "r->getEntries();\n $entrypointNames = [];\n foreach ($rootEntries as $entry) {\n if ($entry->isEntrypoint) {\n $entrypointNames[] = $entry->importName;\n }\n }\n\n return $entrypointNames;\n }\n\n ", "middle": "ader,\n private readonly ImportMapConfigReader $importMapConfigReader,\n ) {\n }\n\n /**\n * @internal\n */\n public function getEntrypointNames(): array\n {\n $rootEntries = $this->importMapConfigReade", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapGenerator.php", "language": "php", "file_size": 10227, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\Resolver\\PackageResolverInterface;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\n\n/**\n * @author Kévin Dunglas <kevin@dunglas.dev>\n * @author Ryan Weaver <ryan@symfonycasts.com>\n *\n * @final\n */\nclass ImportMapManager\n{\n public function __construct(\n private readonly AssetMapperInterface $assetMapper,\n priv", "suffix": "dates packages.\n *\n * @param PackageRequireOptions[] $packages\n *\n * @return ImportMapEntry[]\n */\n public function require(array $packages): array\n {\n return $this->updateImportMapConfig(false, $packages, [], []);\n }\n\n ", "middle": "ate readonly ImportMapConfigReader $importMapConfigReader,\n private readonly RemotePackageDownloader $packageDownloader,\n private readonly PackageResolverInterface $resolver,\n ) {\n }\n\n /**\n * Adds or up", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapManager.php", "language": "php", "file_size": 7077, "cut_index": 716, "middle_length": 229}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nfinal class ImportMapPackageAudit\n{\n public function __construct(\n public readonly string $package,\n public readonly ?string $version,\n /** @var array<ImportMapPackageAuditVulnerability> */\n publ", "suffix": " }\n\n public function withVulnerability(ImportMapPackageAuditVulnerability $vulnerability): self\n {\n return new self(\n $this->package,\n $this->version,\n [...$this->vulnerabilities, $vulnerability],\n );\n ", "middle": "ic readonly array $vulnerabilities = [],\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapPackageAudit.php", "language": "php", "file_size": 830, "cut_index": 516, "middle_length": 52}} {"prefix": "\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\WebLink\\EventListener\\AddLinkHeaderListener;\nuse Symfony\\Component\\WebLink\\GenericLinkProvider;\nuse Symfony\\Component\\WebLink\\Link;\n\n/**\n * @author Kévin Dunglas <kevin@dunglas.dev>\n * @author Ryan Weaver <ryan@symfonycasts.com>\n *\n * @final\n */\nclass ImportMapRenderer\n{\n // https://generator.jspm.io/#S2NnYGAIzSvJLMlJTWEAAMYOgCAOAA\n private const DEFAULT_ES_MODULE_SHIMS_POLYFILL_URL = 'https://ga.jspm.io/npm:es-module-s", "suffix": "nc()=>await(await fetch('%s')).json())()\";\n private const LOADER_CSS = \"document.head.appendChild(Object.assign(document.createElement('link'),{rel:'stylesheet',href:'%s'}))\";\n\n public function __construct(\n private readonly ImportMapGenerator", "middle": "hims@1.10.0/dist/es-module-shims.js';\n private const DEFAULT_ES_MODULE_SHIMS_POLYFILL_INTEGRITY = 'sha384-ie1x72Xck445i0j4SlNJ5W5iGeL3Dpa0zD48MZopgWsjNB/lt60SuG1iduZGNnJn';\n\n private const LOADER_JSON = \"export default (asy", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapRenderer.php", "language": "php", "file_size": 9492, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass ImportMapUpdateChecker\n{\n private const URL_PACKAGE_METADATA = 'https://registry.npmjs.org/%s';\n\n private readonly HttpClientInterface $httpClient;\n\n public function __construct(\n private readonly Impor", "suffix": "es\n *\n * @return PackageUpdateInfo[]\n */\n public function getAvailableUpdates(array $packages = []): array\n {\n $entries = $this->importMapConfigReader->getEntries();\n $updateInfos = [];\n $responses = [];\n forea", "middle": "tMapConfigReader $importMapConfigReader,\n ?HttpClientInterface $httpClient = null,\n ) {\n $this->httpClient = new BatchHttpClient($httpClient ?? HttpClient::create());\n }\n\n /**\n * @param string[] $packag", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapUpdateChecker.php", "language": "php", "file_size": 3761, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nuse Composer\\Semver\\Semver;\nuse Symfony\\Component\\AssetMapper\\Exception\\RuntimeException;\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass ImportMapVersionChecker\n{\n private const PACKAGE_METADATA_PATTERN = 'https://registry.npmjs.org/%package%/%version%';\n\n private readonly HttpClientInterface ", "suffix": " $this->httpClient = new BatchHttpClient($httpClient ?? HttpClient::create());\n }\n\n /**\n * @return PackageVersionProblem[]\n */\n public function checkVersions(): array\n {\n $entries = $this->importMapConfigReader->getEntries();", "middle": "$httpClient;\n\n public function __construct(\n private ImportMapConfigReader $importMapConfigReader,\n private RemotePackageDownloader $packageDownloader,\n ?HttpClientInterface $httpClient = null,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/ImportMapVersionChecker.php", "language": "php", "file_size": 6392, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\n/**\n * Represents a module that was imported by a JavaScript file.\n */\nfinal class JavaScriptImport\n{\n /**\n * @param string $importName The name of the import needed in the importmap, e.g. \"/foo.js\" or ", "suffix": " public function __construct(\n public readonly string $importName,\n public readonly string $assetLogicalPath,\n public readonly string $assetSourcePath,\n public readonly bool $isLazy = false,\n public bool $addImplicitlyToI", "middle": "\"react\"\n * @param string $assetLogicalPath Logical path to the mapped ass that was imported\n * @param bool $addImplicitlyToImportMap Whether this import should be added to the importmap automatically\n */\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/JavaScriptImport.php", "language": "php", "file_size": 1032, "cut_index": 513, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\n/**\n * Represents a package that should be installed or updated.\n *\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\nfinal class PackageRequireOptions\n{\n public readonly string $importName;\n\n public function __construct(\n /**\n * The \"package-name/path\" of the remote package.\n */\n ", "suffix": " public readonly ?string $versionConstraint = null,\n ?string $importName = null,\n public readonly ?string $path = null,\n public readonly bool $entrypoint = false,\n ) {\n $this->importName = $importName ?: $packageModuleSpe", "middle": " public readonly string $packageModuleSpecifier,\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/PackageRequireOptions.php", "language": "php", "file_size": 931, "cut_index": 606, "middle_length": 52}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nclass PackageUpdateInfo\n{\n public const UPDATE_TYPE_DOWNGRADE = 'downgrade';\n public const UPDATE_TYPE_UP_TO_DATE = 'up-to-date';\n public const UPDATE_TYPE_MAJOR = 'major';\n public const UPDATE_TYPE_MINOR = 'minor';\n public const UPDATE_TYPE_PATCH = 'patch';\n\n public functi", "suffix": "ageName,\n public readonly string $currentVersion,\n public ?string $latestVersion = null,\n public ?string $updateType = null,\n ) {\n }\n\n public function hasUpdate(): bool\n {\n return !\\in_array($this->updateType, [self:", "middle": "on __construct(\n public readonly string $pack", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/PackageUpdateInfo.php", "language": "php", "file_size": 989, "cut_index": 582, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\Resolver\\PackageResolverInterface;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * @final\n */\nclass RemotePackageDownloader\n{\n private array $installed;\n\n private readonly Filesystem $filesystem;\n\n public function __construct(\n private readonly RemotePackageStorage $remotePackageStorage,\n private readonly ImportMapConfigReader $importMapConfigReader,\n ", "suffix": "\n public function downloadPackages(?callable $progressCallback = null): array\n {\n try {\n $installed = $this->loadInstalled();\n } catch (\\InvalidArgumentException) {\n $installed = [];\n }\n $entries = $t", "middle": " private readonly PackageResolverInterface $packageResolver,\n ) {\n $this->filesystem = new Filesystem();\n }\n\n /**\n * Downloads all packages.\n *\n * @return string[] The downloaded packages\n */", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/RemotePackageDownloader.php", "language": "php", "file_size": 5889, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap;\n\nuse Symfony\\Component\\AssetMapper\\Exception\\RuntimeException;\nuse Symfony\\Component\\Filesystem\\Exception\\IOException;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * Manages the local storage of remote/vendor importmap packages.\n */\nclass RemotePackageStorage\n{\n private readonly Filesystem $filesystem;\n\n public ", "suffix": "ownloaded(ImportMapEntry $entry): bool\n {\n if (!$entry->isRemotePackage()) {\n throw new \\InvalidArgumentException(\\sprintf('The entry \"%s\" is not a remote package.', $entry->importName));\n }\n\n return is_file($this->getDow", "middle": "function __construct(private readonly string $vendorDir)\n {\n $this->filesystem = new Filesystem();\n }\n\n public function getStorageDir(): string\n {\n return $this->vendorDir;\n }\n\n public function isD", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/RemotePackageStorage.php", "language": "php", "file_size": 3853, "cut_index": 614, "middle_length": 229}} {"prefix": "ntimeException;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\BatchHttpClient;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\PackageRequireOptions;\nuse Symfony\\Component\\Filesystem\\Path;\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts\\HttpClient\\ResponseInt", "suffix": "sdelivr.net/npm/%s@%s%s';\n public const URL_PATTERN_DIST = self::URL_PATTERN_DIST_CSS.'/+esm';\n public const URL_PATTERN_ENTRYPOINT = 'https://data.jsdelivr.com/v1/packages/npm/%s@%s/entrypoints';\n\n public const IMPORT_REGEX = '#(?:import\\s*(?:[\\w", "middle": "erface;\n\nfinal class JsDelivrEsmResolver implements PackageResolverInterface\n{\n public const URL_PATTERN_VERSION = 'https://data.jsdelivr.com/v1/packages/npm/%s/resolved';\n public const URL_PATTERN_DIST_CSS = 'https://cdn.j", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/Resolver/JsDelivrEsmResolver.php", "language": "php", "file_size": 15169, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\ImportMap\\Resolver;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\PackageRequireOptions;\n\ninterface PackageResolverInterface\n{\n /**\n * Grabs the URLs for the given packages and con", "suffix": " *\n * @return ResolvedImportMapPackage[] The import map entries that should be added\n */\n public function resolvePackages(array $packagesToRequire): array;\n\n /**\n * Downloads the contents of the given packages.\n *\n * The returned", "middle": "verts them to ImportMapEntry objects.\n *\n * If \"download\" is specified in PackageRequireOptions, the resolved package\n * contents should be included.\n *\n * @param PackageRequireOptions[] $packagesToRequire\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/ImportMap/Resolver/PackageResolverInterface.php", "language": "php", "file_size": 1472, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\AssetMapper;\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\CompiledAssetMapperConfigReader;\nuse Symfony\\Component\\AssetMapper\\Event\\PreAssetsCompileEvent;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapGenerator;\nuse Symfony\\Component\\AssetMapper\\Path\\PublicAssetsFilesystemInterface;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symf", "suffix": "her\\EventDispatcherInterface;\n\n/**\n * Compiles the assets in the asset mapper to the final output directory.\n *\n * This command is intended to be used during deployment.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\n#[AsCommand(name: 'asset-map:com", "middle": "ony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Contracts\\EventDispatc", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/AssetMapperCompileCommand.php", "language": "php", "file_size": 5497, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Signature;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\n\n/**\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nfinal class ExpiredSignatureStorage\n{\n public function __construct(\n private CacheItemPoolInterface $cache,\n pri", "suffix": "che->getItem($key)->get();\n }\n\n public function incrementUsages(string $hash): void\n {\n $item = $this->cache->getItem(rawurlencode($hash));\n\n if (!$item->isHit()) {\n $item->expiresAfter($this->lifetime);\n }\n\n ", "middle": "vate int $lifetime,\n ) {\n }\n\n public function countUsages(string $hash): int\n {\n $key = rawurlencode($hash);\n if (!$this->cache->hasItem($key)) {\n return 0;\n }\n\n return $this->ca", "meta": {"filepath": "src/Symfony/Component/Security/Core/Signature/ExpiredSignatureStorage.php", "language": "php", "file_size": 1087, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Dumper;\n\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchyInterface;\n\n/**\n * MermaidDumper dumps a Mermaid flowchart describing role hierarchy.\n *\n * @author Damien Fernandes <damien.fernandes24@gmail.com>\n */\nclass Mermai", "suffix": "the flowchart\n */\n public function dump(RoleHierarchyInterface $roleHierarchy, MermaidDirection $direction = MermaidDirection::TOP_TO_BOTTOM): string\n {\n $hierarchy = $this->extractHierarchy($roleHierarchy);\n\n if (!$hierarchy) {\n ", "middle": "dDumper\n{\n /**\n * Dumps the role hierarchy as a Mermaid flowchart.\n *\n * @param RoleHierarchyInterface $roleHierarchy The role hierarchy to dump\n * @param MermaidDirection $direction The direction of ", "meta": {"filepath": "src/Symfony/Component/Security/Core/Dumper/MermaidDumper.php", "language": "php", "file_size": 2650, "cut_index": 563, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook;\n\nuse Symfony\\Component\\Webhook\\Exception\\InvalidArgumentException;\n\nclass Subscriber\n{\n public function __construct(\n private readonly string $url,\n #[\\SensitiveParameter] private readonly string $secret,\n ) {\n i", "suffix": "\n throw new InvalidArgumentException('A non-empty secret is required.');\n }\n }\n\n public function getUrl(): string\n {\n return $this->url;\n }\n\n public function getSecret(): string\n {\n return $this->secret;\n ", "middle": "f (!$secret) {", "meta": {"filepath": "src/Symfony/Component/Webhook/Subscriber.php", "language": "php", "file_size": 790, "cut_index": 514, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Server;\n\nuse Symfony\\Component\\HttpClient\\HttpOptions;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class JsonBodyConfigurator imp", "suffix": "ializer = $payloadSerializer instanceof SerializerInterface ? new SerializerPayloadSerializer($payloadSerializer) : $payloadSerializer;\n }\n\n public function configure(RemoteEvent $event, #[\\SensitiveParameter] string $secret, HttpOptions $options): v", "middle": "lements RequestConfiguratorInterface\n{\n private PayloadSerializerInterface $payloadSerializer;\n\n public function __construct(SerializerInterface|PayloadSerializerInterface $payloadSerializer)\n {\n $this->payloadSer", "meta": {"filepath": "src/Symfony/Component/Webhook/Server/JsonBodyConfigurator.php", "language": "php", "file_size": 1282, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Client;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWebhookException;\n\n/**\n * @autho", "suffix": "\n $this->validate($request);\n\n return $this->doParse($request, $secret);\n }\n\n public function createSuccessfulResponse(?Request $request = null): Response\n {\n return new Response('', 202);\n }\n\n public function createReje", "middle": "r Fabien Potencier <fabien@symfony.com>\n */\nabstract class AbstractRequestParser implements RequestParserInterface\n{\n public function parse(Request $request, #[\\SensitiveParameter] string $secret): RemoteEvent|array|null\n {", "meta": {"filepath": "src/Symfony/Component/Webhook/Client/AbstractRequestParser.php", "language": "php", "file_size": 2353, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Client;\n\nuse Symfony\\Component\\HttpFoundation\\ChainRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\HeaderBag;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\IsJsonRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\Me", "suffix": "ption\\RejectWebhookException;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass RequestParser extends AbstractRequestParser\n{\n public function __construct(\n private readonly string $algo = 'sha256',\n private readonly string $", "middle": "thodRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Webhook\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Webhook\\Exce", "meta": {"filepath": "src/Symfony/Component/Webhook/Client/RequestParser.php", "language": "php", "file_size": 2788, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Tests\\Server;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpClient\\HttpOptions;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\nuse Symfony\\Component\\Webhook\\Server\\JsonBodyConfigurator;\nuse Symfony\\Component\\Webhook\\Server", "suffix": "loadSerializerInterface::class);\n $payloadSerializer\n ->expects($this->once())\n ->method('serialize')\n ->with($payload)\n ;\n\n $httpOptions = new HttpOptions();\n $httpOptions->setHeaders([\n ", "middle": "\\PayloadSerializerInterface;\n\nclass JsonBodyConfiguratorTest extends TestCase\n{\n public function testPayloadWithPayloadSerializer()\n {\n $payload = ['foo' => 'bar'];\n\n $payloadSerializer = $this->createMock(Pay", "meta": {"filepath": "src/Symfony/Component/Webhook/Tests/Server/JsonBodyConfiguratorTest.php", "language": "php", "file_size": 2139, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Webhook\\Client\\RequestParserInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.", "suffix": "ed)\n {\n $request = $this->createRequest($payload);\n $parser = $this->createRequestParser();\n $wh = $parser->parse($request, $this->getSecret());\n $this->assertEquals($expected, $wh);\n }\n\n /**\n * @return iterable<arr", "middle": "com>\n */\nabstract class AbstractRequestParserTestCase extends TestCase\n{\n /**\n * @dataProvider getPayloads\n */\n #[DataProvider('getPayloads')]\n public function testParse(string $payload, RemoteEvent|array $expect", "meta": {"filepath": "src/Symfony/Component/Webhook/Test/AbstractRequestParserTestCase.php", "language": "php", "file_size": 2289, "cut_index": 563, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Messenger;\n\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Webhook\\Subscriber;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass SendWebhookMessage\n{\n public function __construct(\n private rea", "suffix": "er $subscriber,\n private readonly RemoteEvent $event,\n ) {\n }\n\n public function getSubscriber(): Subscriber\n {\n return $this->subscriber;\n }\n\n public function getEvent(): RemoteEvent\n {\n return $this->event;\n }\n", "middle": "donly Subscrib", "meta": {"filepath": "src/Symfony/Component/Webhook/Messenger/SendWebhookMessage.php", "language": "php", "file_size": 784, "cut_index": 512, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfon", "suffix": "EventSubscriberInterface\n{\n // source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types\n private const EXTENSIONS_MAP = [\n 'aac' => 'audio/aac',\n 'abw' => 'application/x-abiword',\n 'arc' =>", "middle": "y\\Component\\HttpKernel\\Profiler\\Profiler;\n\n/**\n * Functions like a controller that returns assets from the asset mapper.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nfinal class AssetMapperDevServerSubscriber implements ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/AssetMapperDevServerSubscriber.php", "language": "php", "file_size": 7303, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper;\n\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Finder\\Iterator\\RecursiveDirectoryIterator;\n\n/**\n * Finds assets in the asset mapper.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n *\n * @final\n */\nclass AssetMapperRepository\n{\n private ?array $absolutePaths = null;\n\n /**\n * @param string[] $paths Array of assets paths: key is the path, value is the namespace\n * (empty strin", "suffix": "nly bool $excludeDotFiles = true,\n private readonly bool $debug = true,\n ) {\n }\n\n /**\n * Given the logical path - styles/app.css - returns the absolute path to the file.\n */\n public function find(string $logicalPath): ?string\n ", "middle": "g for no namespace)\n */\n public function __construct(\n private readonly array $paths,\n private readonly string $projectRootDir,\n private readonly array $excludedPathPatterns = [],\n private reado", "meta": {"filepath": "src/Symfony/Component/AssetMapper/AssetMapperRepository.php", "language": "php", "file_size": 5907, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper;\n\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Filesystem\\Path;\n\n/**\n * Reads and writes compiled configuration files for asset mapper.\n */\nclass CompiledAssetMapperConfigReader\n{\n private readonly Filesystem $filesystem;", "suffix": "h::join($this->directory, $filename));\n }\n\n public function loadConfig(string $filename): array\n {\n return json_decode($this->filesystem->readFile(Path::join($this->directory, $filename)), true, 512, \\JSON_THROW_ON_ERROR);\n }\n\n public", "middle": "\n\n public function __construct(\n private readonly string $directory,\n ) {\n $this->filesystem = new Filesystem();\n }\n\n public function configExists(string $filename): bool\n {\n return is_file(Pat", "meta": {"filepath": "src/Symfony/Component/AssetMapper/CompiledAssetMapperConfigReader.php", "language": "php", "file_size": 1484, "cut_index": 524, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Exception;\n\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\n\n/**\n * Thrown when a circular reference is detected while creating an asset.\n */\nclass CircularAssetsException extends RuntimeException\n{\n public function __construct(priv", "suffix": "he circular reference was detected.\n *\n * This asset will not be fully initialized: it will be missing some\n * properties like digest and content.\n */\n public function getIncompleteMappedAsset(): MappedAsset\n {\n return $this->m", "middle": "ate MappedAsset $mappedAsset, string $message = '', int $code = 0, ?\\Throwable $previous = null)\n {\n parent::__construct($message, $code, $previous);\n }\n\n /**\n * Returns the asset that was being created when t", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Exception/CircularAssetsException.php", "language": "php", "file_size": 1017, "cut_index": 512, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compressor;\n\nuse Psr\\Log\\LoggerInterface;\n\n/**\n * Calls multiple compressors in a chain.\n *\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\nfinal class ChainCompressor implements CompressorInterface\n{\n /**\n * @param CompressorInterface[] ", "suffix": " if (null === $this->compressors) {\n $this->compressors = [];\n foreach ([new BrotliCompressor(), new ZstandardCompressor(), new GzipCompressor()] as $compressor) {\n $unsupportedReason = $compressor->getUnsupportedRe", "middle": "$compressors\n */\n public function __construct(\n private ?array $compressors = null,\n private readonly ?LoggerInterface $logger = null,\n ) {\n }\n\n public function compress(string $path): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compressor/ChainCompressor.php", "language": "php", "file_size": 1372, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compressor;\n\nuse Symfony\\Component\\Process\\ExecutableFinder;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * @internal\n *\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\ntrait CompressorTrait\n{\n private ?\\Closure $method = null;\n private ?string $executable = null;\n /**\n * @var ?resource\n */\n private $streamContext", "suffix": "essWithExtension(...);\n\n return;\n }\n\n if (!class_exists(Process::class)) {\n if ('' === self::WRAPPER) {\n $this->unsupportedReason = \\sprintf('%s compression is unsupported. Run \"composer require symfony/pr", "middle": ";\n private ?string $unsupportedReason = null;\n\n private function initialize(): void\n {\n if ('' !== self::WRAPPER && \\in_array(self::WRAPPER, stream_get_wrappers(), true)) {\n $this->method = $this->compr", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compressor/CompressorTrait.php", "language": "php", "file_size": 3401, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Test;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Access", "suffix": "terInterface;\n\n/**\n * Abstract test case for access decision strategies.\n *\n * @author Alexander M. Turek <me@derrabus.de>\n */\nabstract class AccessDecisionStrategyTestCase extends TestCase\n{\n /**\n * @dataProvider provideStrategyTests\n *\n * ", "middle": "DecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Strategy\\AccessDecisionStrategyInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Vote;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Vo", "meta": {"filepath": "src/Symfony/Component/Security/Core/Test/AccessDecisionStrategyTestCase.php", "language": "php", "file_size": 2607, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Signature;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Security\\Core\\Signature\\Exception\\ExpiredSignatureException;\nuse Symfony\\Component\\Security\\Core\\Signature\\Exception\\InvalidSignatureException;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * Creates and validates secure hashes used in login links an", "suffix": "rties of the User; the hash is invalidated if these properties change\n * @param ExpiredSignatureStorage|null $expiredSignaturesStorage If provided, secures a sequence of hashes that are expired\n * @param int|null $maxUses ", "middle": "d remember-me cookies.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass SignatureHasher\n{\n /**\n * @param array $signatureProperties Prope", "meta": {"filepath": "src/Symfony/Component/Security/Core/Signature/SignatureHasher.php", "language": "php", "file_size": 5467, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Server;\n\nuse Symfony\\Component\\HttpClient\\HttpOptions;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class HeadersConfigurator implements RequestConfiguratorInterface\n{\n public function __construct(\n private readonly string $eventHea", "suffix": "string $idHeaderName = 'Webhook-Id',\n ) {\n }\n\n public function configure(RemoteEvent $event, #[\\SensitiveParameter] string $secret, HttpOptions $options): void\n {\n $options->setHeaders([\n $this->eventHeaderName => $event->getN", "middle": "derName = 'Webhook-Event',\n private readonly ", "meta": {"filepath": "src/Symfony/Component/Webhook/Server/HeadersConfigurator.php", "language": "php", "file_size": 969, "cut_index": 582, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Client;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Webhook\\Exception\\RejectWebhookException;\n\n/**\n * @author Fabien Potencier <fab", "suffix": " *\n * @throws RejectWebhookException When the payload is rejected (signature issue, parse issue, ...)\n */\n public function parse(Request $request, #[\\SensitiveParameter] string $secret): RemoteEvent|array|null;\n\n /**\n * @param Request|n", "middle": "ien@symfony.com>\n */\ninterface RequestParserInterface\n{\n /**\n * Parses an HTTP Request and converts it into a RemoteEvent.\n *\n * @return RemoteEvent|RemoteEvent[]|null Returns null if the webhook must be ignored\n ", "meta": {"filepath": "src/Symfony/Component/Webhook/Client/RequestParserInterface.php", "language": "php", "file_size": 1393, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Tests\\Controller;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\MessageBus;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\RemoteEvent\\Messenger\\ConsumeRemoteEventMessage;\nuse Symfony\\Component\\RemoteEvent\\RemoteE", "suffix": " $controller = new WebhookController([], new MessageBus());\n\n $response = $controller->handle('foo', new Request());\n\n $this->assertSame(404, $response->getStatusCode());\n }\n\n #[DataProvider('rejectedParseProvider')]\n public funct", "middle": "vent;\nuse Symfony\\Component\\Webhook\\Client\\RequestParserInterface;\nuse Symfony\\Component\\Webhook\\Controller\\WebhookController;\n\nclass WebhookControllerTest extends TestCase\n{\n public function testNoParserAvailable()\n {\n ", "meta": {"filepath": "src/Symfony/Component/Webhook/Tests/Controller/WebhookControllerTest.php", "language": "php", "file_size": 5518, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper;\n\nuse Symfony\\Component\\AssetMapper\\Compiler\\AssetCompilerInterface;\n\n/**\n * Runs a chain of compiles intended to adjust the source of assets.\n *\n * @final\n */\nclass AssetMapperCompiler\n{\n private AssetMapperInterface $assetMapper;\n\n /**\n ", "suffix": "Closure $assetMapperFactory)\n {\n }\n\n public function compile(string $content, MappedAsset $asset): string\n {\n foreach ($this->assetCompilers as $compiler) {\n if (!$compiler->supports($asset)) {\n continue;\n ", "middle": " * @param iterable<AssetCompilerInterface> $assetCompilers\n * @param \\Closure(): AssetMapperInterface $assetMapperFactory\n */\n public function __construct(private readonly iterable $assetCompilers, private readonly \\", "meta": {"filepath": "src/Symfony/Component/AssetMapper/AssetMapperCompiler.php", "language": "php", "file_size": 1423, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\JavaScriptImport;\n\n/**\n * Represents a single asset in the asset mapper system.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nfinal class MappedAsset\n{\n public readonly string $sourcePath;\n public readonly string $publicPath;\n public readonly string $publicPathWithoutDiges", "suffix": "?string $content;\n\n public readonly string $digest;\n public readonly bool $isPredigested;\n\n /**\n * @param MappedAsset[] $dependencies assets that the content of this asset depends on\n * @param string[] $fileDependencies", "middle": "t;\n public readonly string $publicExtension;\n\n /**\n * The final content of this asset if different from the sourcePath.\n *\n * If null, the content should be read from the sourcePath.\n */\n public readonly ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/MappedAsset.php", "language": "php", "file_size": 3214, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compressor;\n\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Compresses a file using Brotli.\n *\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\nfinal class BrotliCompressor implements SupportedCompressorInterface\n{\n use CompressorTrait;\n", "suffix": "ble = null,\n ) {\n $this->executable = $executable;\n }\n\n /**\n * @return resource\n */\n private function createStreamContext()\n {\n return stream_context_create(['brotli' => ['level' => BROTLI_COMPRESS_LEVEL_MAX]]);\n }\n\n", "middle": "\n private const WRAPPER = 'compress.brotli';\n private const COMMAND = 'brotli';\n private const PHP_EXTENSION = 'brotli';\n private const FILE_EXTENSION = 'br';\n\n public function __construct(\n ?string $executa", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compressor/BrotliCompressor.php", "language": "php", "file_size": 1207, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Security\\Core\\Authorization\\Voter;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * VoterInterface is the interface implemented by all voters.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface VoterInter", "suffix": "lowing constants:\n * ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN.\n *\n * @param mixed $subject The subject to secure\n * @param mixed[] $attributes An array of attributes associated with the method being invoked\n * @param Vo", "middle": "face\n{\n public const ACCESS_GRANTED = 1;\n public const ACCESS_ABSTAIN = 0;\n public const ACCESS_DENIED = -1;\n\n /**\n * Returns the vote for the given parameters.\n *\n * This method must return one of the fol", "meta": {"filepath": "src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php", "language": "php", "file_size": 1214, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Server;\n\nuse Symfony\\Component\\HttpClient\\HttpOptions;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Webhook\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Webhook\\Exception\\LogicException;\n\n/**\n * @author Fabien Pot", "suffix": "$signatureHeaderName = 'Webhook-Signature',\n ) {\n }\n\n public function configure(RemoteEvent $event, #[\\SensitiveParameter] string $secret, HttpOptions $options): void\n {\n if (!$secret) {\n throw new InvalidArgumentException('A ", "middle": "encier <fabien@symfony.com>\n */\nfinal class HeaderSignatureConfigurator implements RequestConfiguratorInterface\n{\n public function __construct(\n private readonly string $algo = 'sha256',\n private readonly string ", "meta": {"filepath": "src/Symfony/Component/Webhook/Server/HeaderSignatureConfigurator.php", "language": "php", "file_size": 1453, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\RemoteEvent\\Messenger\\ConsumeRemoteEventMessage;\nuse Symfony\\Component\\Webhook\\Cli", "suffix": "t(\n /** @var array<string, array{parser: RequestParserInterface, secret: string}> $parsers */\n private readonly array $parsers,\n private readonly MessageBusInterface $bus,\n ) {\n }\n\n public function handle(string $type, Request", "middle": "ent\\RequestParserInterface;\n\n/**\n * Receives webhooks from a variety of third-party providers.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @internal\n */\nfinal class WebhookController\n{\n public function __construc", "meta": {"filepath": "src/Symfony/Component/Webhook/Controller/WebhookController.php", "language": "php", "file_size": 1809, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper;\n\n/**\n * Finds and returns assets in the pipeline.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\ninterface AssetMapperInterface\n{\n /**\n * Given the logical path (e.g. path relative to a mapped directory), return the asse", "suffix": " Fetches the asset given its source path (i.e. filesystem path).\n */\n public function getAssetFromSourcePath(string $sourcePath): ?MappedAsset;\n\n /**\n * Returns the public path for this asset, if it can be found.\n */\n public function g", "middle": "t.\n */\n public function getAsset(string $logicalPath): ?MappedAsset;\n\n /**\n * Returns all mapped assets.\n *\n * @return iterable<MappedAsset>\n */\n public function allAssets(): iterable;\n\n /**\n *", "meta": {"filepath": "src/Symfony/Component/AssetMapper/AssetMapperInterface.php", "language": "php", "file_size": 1044, "cut_index": 513, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Compressor;\n\n/**\n * Compresses a file.\n *\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\ninterface CompressorInterface\n{\n // Loosely based on https://caddyserver.com/docs/caddyfile/directives/encode#match\n public const DEFAULT_EXTENSIONS = [\n ", "suffix": "'html',\n 'js',\n 'json',\n 'md',\n 'otc',\n 'otf',\n 'proto',\n 'rss',\n 'rtf',\n 'svg',\n 'ttc',\n 'ttf',\n 'txt',\n 'wasm',\n 'xml',\n ];\n\n public function compress", "middle": " 'css',\n 'cur',\n 'eot',\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Compressor/CompressorInterface.php", "language": "php", "file_size": 862, "cut_index": 529, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper;\n\nuse Symfony\\Component\\AssetMapper\\Factory\\MappedAssetFactoryInterface;\n\n/**\n * Finds and returns assets in the pipeline.\n *\n * @final\n */\nclass AssetMapper implements AssetMapperInterface\n{\n public const MANIFEST_FILE_NAME = 'manifest.json';\n\n private ?array $manifestData = nu", "suffix": "eader $compiledConfigReader,\n ) {\n }\n\n public function getAsset(string $logicalPath): ?MappedAsset\n {\n $filePath = $this->mapperRepository->find($logicalPath);\n if (null === $filePath) {\n return null;\n }\n\n ", "middle": "ll;\n\n public function __construct(\n private readonly AssetMapperRepository $mapperRepository,\n private readonly MappedAssetFactoryInterface $mappedAssetFactory,\n private readonly CompiledAssetMapperConfigR", "meta": {"filepath": "src/Symfony/Component/AssetMapper/AssetMapper.php", "language": "php", "file_size": 2530, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper;\n\nuse Symfony\\Component\\Asset\\PackageInterface;\n\n/**\n * Decorates asset packages to support resolving assets from the asset mapper.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nfinal class MapperAwareAssetPackage implements Pack", "suffix": "ing\n {\n return $this->innerPackage->getVersion($path);\n }\n\n public function getUrl(string $path): string\n {\n $publicPath = $this->assetMapper->getPublicPath($path);\n if ($publicPath) {\n $path = ltrim($publicPath,", "middle": "ageInterface\n{\n public function __construct(\n private readonly PackageInterface $innerPackage,\n private readonly AssetMapperInterface $assetMapper,\n ) {\n }\n\n public function getVersion(string $path): str", "meta": {"filepath": "src/Symfony/Component/AssetMapper/MapperAwareAssetPackage.php", "language": "php", "file_size": 1077, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Webhook\\Server;\n\nuse Symfony\\Component\\HttpClient\\HttpOptions;\nuse Symfony\\Component\\RemoteEvent\\RemoteEvent;\nuse Symfony\\Component\\Webhook\\Subscriber;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com", "suffix": " RequestConfiguratorInterface $body,\n private readonly RequestConfiguratorInterface $signer,\n ) {\n }\n\n public function send(Subscriber $subscriber, RemoteEvent $event): void\n {\n $options = new HttpOptions();\n\n $this->header", "middle": ">\n */\nclass Transport implements TransportInterface\n{\n public function __construct(\n private readonly HttpClientInterface $client,\n private readonly RequestConfiguratorInterface $headers,\n private readonly", "meta": {"filepath": "src/Symfony/Component/Webhook/Server/Transport.php", "language": "php", "file_size": 1314, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\Compressor\\CompressorInterface;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symf", "suffix": "sets:compress', description: 'Pre-compresses files to serve through a web server')]\nfinal class CompressAssetsCommand extends Command\n{\n public function __construct(\n private readonly CompressorInterface $compressor,\n ) {\n parent::__con", "middle": "ony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * Pre-compresses files to serve through a web server.\n *\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\n#[AsCommand(name: 'as", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/CompressAssetsCommand.php", "language": "php", "file_size": 2157, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\ImportMap;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Exception\\RuntimeException;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapAuditor;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapConfigReader;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntries;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetM", "suffix": "e Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass ImportMapAuditorTest extends TestCase\n{\n private ImportMapConfigReader $import", "middle": "apper\\ImportMap\\ImportMapPackageAudit;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapPackageAuditVulnerability;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nus", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapAuditorTest.php", "language": "php", "file_size": 6461, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\ImportMap;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Exception\\RuntimeException;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapConfigReader;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntries;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\nuse Symfony\\Component\\AssetMapp", "suffix": "lesystem = new Filesystem();\n if (!file_exists(__DIR__.'/../Fixtures/importmap_config_reader/assets')) {\n $this->filesystem->mkdir(__DIR__.'/../Fixtures/importmap_config_reader/assets');\n }\n }\n\n protected function tearDown():", "middle": "er\\ImportMap\\RemotePackageStorage;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass ImportMapConfigReaderTest extends TestCase\n{\n private Filesystem $filesystem;\n\n protected function setUp(): void\n {\n $this->fi", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapConfigReaderTest.php", "language": "php", "file_size": 8449, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\ImportMap;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntries;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\n\nclass ImportMapEntriesTest ", "suffix": " 'path2', false);\n\n $entries = new ImportMapEntries([$entry1]);\n $entries->add($entry2);\n\n $this->assertSame([$entry1, $entry2], iterator_to_array($entries));\n }\n\n public function testHas()\n {\n $entries = new ImportMapE", "middle": "extends TestCase\n{\n public function testGetIterator()\n {\n $entry1 = ImportMapEntry::createLocal('entry1', ImportMapType::JS, 'path1', true);\n $entry2 = ImportMapEntry::createLocal('entry2', ImportMapType::CSS,", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapEntriesTest.php", "language": "php", "file_size": 1717, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\ImportMap;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\n\nclass ImportMapEntryTest extends TestCase\n{\n public function test", "suffix": " $this->assertSame('foo.js', $entry->path);\n $this->assertTrue($entry->isEntrypoint);\n $this->assertFalse($entry->isRemotePackage());\n }\n\n public function testCreateRemote()\n {\n $entry = ImportMapEntry::createRemote('foo', Imp", "middle": "CreateLocal()\n {\n $entry = ImportMapEntry::createLocal('foo', ImportMapType::JS, 'foo.js', true);\n $this->assertSame('foo', $entry->importName);\n $this->assertSame(ImportMapType::JS, $entry->type);\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapEntryTest.php", "language": "php", "file_size": 2832, "cut_index": 563, "middle_length": 229}} {"prefix": "ny\\Component\\AssetMapper\\ImportMap\\JavaScriptImport;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Filesystem\\Path;\n\nclass ImportMapGeneratorTest extends TestCase\n{\n private AssetMapperInterface $assetMapper;\n private CompiledAssetMapperConfigReader $compiledConfigReader;\n private ImportMapConfigReader $configReader;\n\n private Filesystem $filesystem;\n private static string $writableRoot = __DIR__.'/../Fixtures/importmap_gener", "suffix": " }\n }\n\n protected function tearDown(): void\n {\n $this->filesystem->remove(self::$writableRoot);\n }\n\n public function testGetEntrypointNames()\n {\n $manager = $this->createImportMapGenerator();\n $this->mockImportMap(", "middle": "ator';\n\n protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n if (!file_exists(self::$writableRoot.'/assets')) {\n $this->filesystem->mkdir(self::$writableRoot.'/assets');\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php", "language": "php", "file_size": 31052, "cut_index": 1331, "middle_length": 229}} {"prefix": "\\ImportMap\\PackageRequireOptions;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\RemotePackageDownloader;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\Resolver\\PackageResolverInterface;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\Resolver\\ResolvedImportMapPackage;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass ImportMapManagerTest extends TestCase\n{\n private AssetMapperInterface $assetMapper;\n private PackageResolverInterface $packageResolver;\n privat", "suffix": "r';\n\n protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n if (!file_exists(__DIR__.'/../Fixtures/importmap_manager/assets')) {\n $this->filesystem->mkdir(self::$writableRoot.'/assets');\n }\n }\n", "middle": "e ImportMapConfigReader&MockObject $configReader;\n private RemotePackageDownloader $remotePackageDownloader;\n\n private Filesystem $filesystem;\n private static string $writableRoot = __DIR__.'/../Fixtures/importmap_manage", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php", "language": "php", "file_size": 18680, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\ImportMap;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Command\\ImportMapOutdatedCommand;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapUpdateChecker;\nuse Symfony\\C", "suffix": "rmat = null)\n {\n $updateChecker = $this->createStub(ImportMapUpdateChecker::class);\n $command = new ImportMapOutdatedCommand($updateChecker);\n\n $commandTester = new CommandTester($command);\n $commandTester->execute(\\is_string", "middle": "omponent\\Console\\Tester\\CommandTester;\n\nclass ImportMapOutdatedCommandTest extends TestCase\n{\n #[DataProvider('provideNoOutdatedPackageCases')]\n public function testCommandWhenNoOutdatedPackages(string $display, ?string $fo", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapOutdatedCommandTest.php", "language": "php", "file_size": 1492, "cut_index": 524, "middle_length": 229}} {"prefix": "\\ImportMapGenerator;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapRenderer;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\WebLink\\GenericLinkProvider;\n\nclass ImportMapRendererTest extends TestCase\n{\n public function testBasicRender()\n {\n $importMapGenerator = $this->createMock(ImportMapGenerator::class);\n $importMapGenerator->expects($this->once())\n ->method('getImportMapData')\n ->with(", "suffix": ",\n 'app_js_no_preload' => [\n 'path' => '/assets/app-nopreload-d1g35t.js',\n 'type' => 'js',\n ],\n 'app_css_preload' => [\n 'path' => '/assets/styles/app-prel", "middle": "['app'])\n ->willReturn([\n 'app_js_preload' => [\n 'path' => '/assets/app-preload-d1g35t.js',\n 'type' => 'js',\n 'preload' => true,\n ]", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapRendererTest.php", "language": "php", "file_size": 11034, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\ImportMap;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapConfigReader;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntries;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapUpdateChecker;\nuse Symfony\\Component\\Ass", "suffix": "kerTest extends TestCase\n{\n private ImportMapConfigReader $importMapConfigReader;\n private ImportMapUpdateChecker $updateChecker;\n\n protected function setUp(): void\n {\n $this->importMapConfigReader = $this->createStub(ImportMapConfigRead", "middle": "etMapper\\ImportMap\\PackageUpdateInfo;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\JsonMockResponse;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\n\nclass ImportMapUpdateChec", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapUpdateCheckerTest.php", "language": "php", "file_size": 7766, "cut_index": 716, "middle_length": 229}} {"prefix": "ImportMap\\ImportMapConfigReader;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntries;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapVersionChecker;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\PackageVersionProblem;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\RemotePackageDownloader;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\Mo", "suffix": "pectedProblems)\n {\n $configReader = $this->createMock(ImportMapConfigReader::class);\n $configReader->expects($this->once())\n ->method('getEntries')\n ->willReturn(new ImportMapEntries($importMapEntries));\n\n $rem", "middle": "ckResponse;\n\nclass ImportMapVersionCheckerTest extends TestCase\n{\n #[DataProvider('getCheckVersionsTests')]\n public function testCheckVersions(array $importMapEntries, array $dependencies, array $expectedRequests, array $ex", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapVersionCheckerTest.php", "language": "php", "file_size": 13070, "cut_index": 921, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\ImportMap;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\JavaScriptImport;\n\nclass JavaScriptImportTest extends TestCase\n{\n public function testBasicConstruction()\n {\n $import = new JavaScriptImport('the-import', 'the-as", "suffix": "his->assertSame('the-import', $import->importName);\n $this->assertTrue($import->isLazy);\n $this->assertSame('the-asset', $import->assetLogicalPath);\n $this->assertSame('/path/to/the-asset', $import->assetSourcePath);\n $this->ass", "middle": "set', '/path/to/the-asset', true, true);\n\n $t", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/JavaScriptImportTest.php", "language": "php", "file_size": 907, "cut_index": 547, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\ImportMap;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\PackageUpdateInfo;\n\nclass PackageUpdateInfoTest extends TestCase\n{\n #[DataProvider('provideValidConstructorArguments')]\n public function t", "suffix": "testVersion: $latestVersion,\n updateType: $updateType,\n );\n\n $this->assertSame($importName, $packageUpdateInfo->packageName);\n $this->assertSame($currentVersion, $packageUpdateInfo->currentVersion);\n $this->assertSame", "middle": "estConstructor($importName, $currentVersion, $latestVersion, $updateType)\n {\n $packageUpdateInfo = new PackageUpdateInfo(\n packageName: $importName,\n currentVersion: $currentVersion,\n la", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/PackageUpdateInfoTest.php", "language": "php", "file_size": 2196, "cut_index": 563, "middle_length": 229}} {"prefix": "mponent\\AssetMapper\\ImportMap\\ImportMapEntries;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\RemotePackageDownloader;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\RemotePackageStorage;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\Resolver\\PackageResolverInterface;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass RemotePackageDownloaderTest extends TestCase\n{\n private Filesystem $filesyst", "suffix": "tableRoot);\n }\n\n protected function tearDown(): void\n {\n $this->filesystem->remove(self::$writableRoot);\n }\n\n public function testDownloadPackagesDownloadsEverythingWithNoInstalled()\n {\n $configReader = $this->createMock(Imp", "middle": "em;\n private static string $writableRoot = __DIR__.'/../Fixtures/remote_package_downloader';\n\n protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n $this->filesystem->mkdir(self::$wri", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageDownloaderTest.php", "language": "php", "file_size": 9466, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\ImportMap;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\RemotePackageStorage;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass RemotePackageStorageTest extends TestCase\n{\n private Filesystem $filesystem;\n private static strin", "suffix": "esystem = new Filesystem();\n $this->filesystem->mkdir(self::$writableRoot);\n }\n\n protected function tearDown(): void\n {\n $this->filesystem->remove(self::$writableRoot);\n }\n\n public function testGetStorageDir()\n {\n $st", "middle": "g $writableRoot;\n private static int $writableRootIndex = 0;\n\n protected function setUp(): void\n {\n self::$writableRoot = sys_get_temp_dir().'/remote_package_storage'.++self::$writableRootIndex;\n $this->fil", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php", "language": "php", "file_size": 6439, "cut_index": 716, "middle_length": 229}} {"prefix": "provideResolvePackagesTests')]\n public function testResolvePackages(array $packages, array $expectedRequests, array $expectedResolvedPackages)\n {\n $responses = [];\n foreach ($expectedRequests as $expectedRequest) {\n $responses[] = function ($method, $url) use ($expectedRequest) {\n $this->assertSame('GET', $method);\n $this->assertStringEndsWith($expectedRequest['url'], $url);\n\n $body = 'any body';\n if (isset($expectedR", "suffix": " return new MockResponse($body);\n };\n }\n\n $httpClient = new MockHttpClient($responses);\n\n $provider = new JsDelivrEsmResolver($httpClient);\n $actualResolvedPackages = $provider->resolvePackages($packages);\n ", "middle": "equest['response']['body'])) {\n $body = \\is_array($expectedRequest['response']['body']) ? json_encode($expectedRequest['response']['body']) : $expectedRequest['response']['body'];\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php", "language": "php", "file_size": 31144, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\AssetMapper\\Event\\PreAssetsCompileEvent;\nuse Symfony\\Component\\AssetMapper\\Tests\\Fixtures\\AssetMapperTestAppKernel;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\File", "suffix": "id\n {\n $this->filesystem = new Filesystem();\n $this->kernel = new AssetMapperTestAppKernel('test', true);\n $this->filesystem->mkdir($this->kernel->getProjectDir().'/public');\n }\n\n protected function tearDown(): void\n {\n ", "middle": "system\\Filesystem;\nuse Symfony\\Component\\Finder\\Finder;\n\nclass AssetMapperCompileCommandTest extends TestCase\n{\n private AssetMapperTestAppKernel $kernel;\n private Filesystem $filesystem;\n\n protected function setUp(): vo", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Command/AssetMapperCompileCommandTest.php", "language": "php", "file_size": 5300, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\AssetMapper\\Tests\\Fixtures\\AssetMapperTestAppKernel;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\nclass DebugAssetsMapperCommandTest extends TestCase\n{\n public function testCommandDumpsInformation()\n", "suffix": "]);\n $this->assertSame(0, $res);\n\n $this->assertStringContainsString('dir1', $tester->getDisplay());\n $this->assertStringContainsString('subdir/file6.js', $tester->getDisplay());\n $this->assertStringContainsString('dir2'.\\DIRECT", "middle": " {\n $application = new Application(new AssetMapperTestAppKernel('test', true));\n\n $command = $application->find('debug:asset-map');\n $tester = new CommandTester($command);\n $res = $tester->execute([", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Command/DebugAssetsMapperCommandTest.php", "language": "php", "file_size": 3539, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase;\nuse Symfony\\Component\\AssetMapper\\Command\\ImportMapRequireCommand;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapManager;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapType;\nuse Symfony\\Com", "suffix": "er;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Finder\\Finder;\n\nclass ImportMapRequireCommandTest extends KernelTestCase\n{\n protected static function getKernelClass(): string\n {\n return ImportMapTestAppKernel::class;\n ", "middle": "ponent\\AssetMapper\\ImportMap\\ImportMapVersionChecker;\nuse Symfony\\Component\\AssetMapper\\Tests\\Fixtures\\ImportMapTestAppKernel;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandTest", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Command/ImportMapRequireCommandTest.php", "language": "php", "file_size": 9043, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\OptionsResolver;\n\nuse Symfony\\Component\\OptionsResolver\\Exception\\AccessException;\n\nfinal class OptionConfigurator\n{\n public function __construct(\n private string $name,\n private OptionsResolver $resolver,\n ) {\n $this->resolver->setDefined($name);\n }\n\n /**\n * Adds allowed types for this option.\n *\n * @", "suffix": "\n\n return $this;\n }\n\n /**\n * Sets allowed values for this option.\n *\n * @param mixed ...$values One or more acceptable values/closures\n *\n * @return $this\n *\n * @throws AccessException If called from a lazy option o", "middle": "return $this\n *\n * @throws AccessException If called from a lazy option or normalizer\n */\n public function allowedTypes(string ...$types): static\n {\n $this->resolver->setAllowedTypes($this->name, $types);", "meta": {"filepath": "src/Symfony/Component/OptionsResolver/OptionConfigurator.php", "language": "php", "file_size": 3889, "cut_index": 614, "middle_length": 229}} {"prefix": "efined options.\n */\n private array $defined = [];\n\n /**\n * The default option values.\n */\n private array $defaults = [];\n\n /**\n * A list of closure for nested options.\n *\n * @var \\Closure[][]\n */\n private array $nested = [];\n\n /**\n * The names of required options.\n */\n private array $required = [];\n\n /**\n * The resolved option values.\n */\n private array $resolved = [];\n\n /**\n * A list of normalizer closures.\n *\n * @var \\Cl", "suffix": " private array $allowedTypes = [];\n\n /**\n * A list of info messages for each option.\n */\n private array $info = [];\n\n /**\n * A list of closures for evaluating lazy options.\n */\n private array $lazy = [];\n\n /**\n * A list ", "middle": "osure[][]\n */\n private array $normalizers = [];\n\n /**\n * A list of accepted values for each option.\n */\n private array $allowedValues = [];\n\n /**\n * A list of accepted types for each option.\n */\n ", "meta": {"filepath": "src/Symfony/Component/OptionsResolver/OptionsResolver.php", "language": "php", "file_size": 47281, "cut_index": 2151, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\OptionsResolver\\Exception;\n\n/**\n * Thrown when trying to read an option that has no value set.\n *\n * When accessing optional options from within a lazy option or normalizer you should first\n * check whether the optional option is set. You can do this with `", "suffix": "{@link UndefinedOptionsException}, this is a runtime exception that can\n * occur when evaluating lazy options.\n *\n * @author Tobias Schultze <http://tobion.de>\n */\nclass NoSuchOptionException extends \\OutOfBoundsException implements ExceptionInterface\n{\n}\n", "middle": "isset($options['optional'])`.\n * In contrast to the ", "meta": {"filepath": "src/Symfony/Component/OptionsResolver/Exception/NoSuchOptionException.php", "language": "php", "file_size": 831, "cut_index": 523, "middle_length": 52}} {"prefix": "();\n }\n\n public function testSetDefaultReturnsThis()\n {\n $this->assertSame($this->resolver, $this->resolver->setDefault('foo', 'bar'));\n }\n\n public function testSetDefault()\n {\n $this->resolver->setDefault('one', '1');\n $this->resolver->setDefault('two', '20');\n\n $this->assertEquals([\n 'one' => '1',\n 'two' => '20',\n ], $this->resolver->resolve());\n }\n\n public function testFailIfSetDefaultFromLazyOption()\n {\n $this->ex", "suffix": "public function testHasDefault()\n {\n $this->assertFalse($this->resolver->hasDefault('foo'));\n $this->resolver->setDefault('foo', 42);\n $this->assertTrue($this->resolver->hasDefault('foo'));\n }\n\n public function testHasDefaultW", "middle": "pectException(AccessException::class);\n $this->resolver->setDefault('lazy', static function (Options $options) {\n $options->setDefault('default', 42);\n });\n\n $this->resolver->resolve();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php", "language": "php", "file_size": 104163, "cut_index": 3790, "middle_length": 229}} {"prefix": "ony\\Component\\OptionsResolver\\Exception\\NoConfigurationException;\nuse Symfony\\Component\\OptionsResolver\\Exception\\UndefinedOptionsException;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass OptionsResolverIntrospectorTest extends TestCase\n{\n public function testGetDefault()\n {\n $resolver = new OptionsResolver();\n $resolver->setDefault($option = 'foo', 'bar');\n\n $debug = new OptionsResolverIntrospector($resolver);\n ", "suffix": "ptionsResolverIntrospector($resolver);\n $this->assertNull($debug->getDefault($option));\n }\n\n public function testGetDefaultThrowsOnNoConfiguredValue()\n {\n $this->expectException(NoConfigurationException::class);\n $this->expect", "middle": "$this->assertSame('bar', $debug->getDefault($option));\n }\n\n public function testGetDefaultNull()\n {\n $resolver = new OptionsResolver();\n $resolver->setDefault($option = 'foo', null);\n\n $debug = new O", "meta": {"filepath": "src/Symfony/Component/OptionsResolver/Tests/Debug/OptionsResolverIntrospectorTest.php", "language": "php", "file_size": 10177, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\OptionsResolver\\Debug;\n\nuse Symfony\\Component\\OptionsResolver\\Exception\\NoConfigurationException;\nuse Symfony\\Component\\OptionsResolver\\Exception\\UndefinedOptionsException;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\n/**\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n *\n * @final\n */\nclass OptionsResolverIntrospector\n{", "suffix": " if (!$this->isDefined($option)) {\n throw new UndefinedOptionsException(\\sprintf('The option \"%s\" does not exist.', $option));\n }\n\n if (!\\array_key_exists($option, $this->{$property})) {\n throw new", "middle": "\n private \\Closure $get;\n\n public function __construct(OptionsResolver $optionsResolver)\n {\n $this->get = \\Closure::bind(function ($property, $option, $message) {\n /** @var OptionsResolver $this */\n ", "meta": {"filepath": "src/Symfony/Component/OptionsResolver/Debug/OptionsResolverIntrospector.php", "language": "php", "file_size": 3513, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Stopwatch;\n\n/**\n * Stopwatch section.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Section\n{\n /**\n * @var StopwatchEvent[]\n */\n private array $events = [];\n\n private ?string $id = null;\n\n /**\n * @var Section[]\n */\n private array $children = [];\n\n /**\n * @param float|null $origin Set th", "suffix": "ion __construct(\n private ?float $origin = null,\n private bool $morePrecision = false,\n ) {\n }\n\n /**\n * Returns the child section.\n */\n public function get(string $id): ?self\n {\n foreach ($this->children as $chil", "middle": "e origin of the events in this section, use null to set their origin to their start time\n * @param bool $morePrecision If true, time is stored as float to keep the original microsecond precision\n */\n public funct", "meta": {"filepath": "src/Symfony/Component/Stopwatch/Section.php", "language": "php", "file_size": 3666, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Stopwatch;\n\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(Section::class);\n\n/**\n * Stopwatch provides a way to profile code.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Stopwatch implements ResetInterface\n{\n public const ROOT = '__root__';\n\n /**\n * @v", "suffix": "ond precision\n */\n public function __construct(\n private bool $morePrecision = false,\n ) {\n $this->reset();\n }\n\n /**\n * @return Section[]\n */\n public function getSections(): array\n {\n return $this->section", "middle": "ar Section[]\n */\n private array $sections;\n\n /**\n * @var Section[]\n */\n private array $activeSections;\n\n /**\n * @param bool $morePrecision If true, time is stored as float to keep the original microsec", "meta": {"filepath": "src/Symfony/Component/Stopwatch/Stopwatch.php", "language": "php", "file_size": 4090, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Stopwatch;\n\n/**\n * Represents an Event managed by Stopwatch.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass StopwatchEvent\n{\n /**\n * @var StopwatchPeriod[]\n */\n private array $periods = [];\n\n private float $origin;\n private string $category;\n\n /**\n * @var float[]\n */\n private array $started = [];\n\n private string $name;\n\n /**\n * @param float $origin The origin time in millise", "suffix": "g|null $name The event name or null to define the name as default\n */\n public function __construct(\n float $origin,\n ?string $category = null,\n private bool $morePrecision = false,\n ?string $name = null,\n ) {\n", "middle": "conds\n * @param string|null $category The event category or null to use the default\n * @param bool $morePrecision If true, time is stored as float to keep the original microsecond precision\n * @param strin", "meta": {"filepath": "src/Symfony/Component/Stopwatch/StopwatchEvent.php", "language": "php", "file_size": 5464, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Stopwatch;\n\n/**\n * Represents a Period for an Event.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass StopwatchPeriod\n{\n private int|float $start;\n private int|float $end;\n private int $memory;\n\n /**\n * @param int|float $start The rel", "suffix": "o keep the original microsecond precision\n */\n public function __construct(int|float $start, int|float $end, bool $morePrecision = false)\n {\n $this->start = $morePrecision ? (float) $start : (int) $start;\n $this->end = $morePrecisio", "middle": "ative time of the start of the period (in milliseconds)\n * @param int|float $end The relative time of the end of the period (in milliseconds)\n * @param bool $morePrecision If true, time is stored as float t", "meta": {"filepath": "src/Symfony/Component/Stopwatch/StopwatchPeriod.php", "language": "php", "file_size": 1924, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Stopwatch\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Stopwatch\\StopwatchEvent;\n\n/**\n * StopwatchEventTest.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\n#[Group('time-sensitive')]\nclass StopwatchEventTest extends TestCase\n{\n private const DELTA = 37;\n\n public function testGetOrigin()\n {\n $event = new StopwatchEvent(12);\n $this->assertEquals(12, $event->get", "suffix": "ime(true) * 1000, 'cat');\n $this->assertEquals('cat', $event->getCategory());\n }\n\n public function testGetPeriods()\n {\n $event = new StopwatchEvent(microtime(true) * 1000);\n $this->assertEquals([], $event->getPeriods());\n\n ", "middle": "Origin());\n }\n\n public function testGetCategory()\n {\n $event = new StopwatchEvent(microtime(true) * 1000);\n $this->assertEquals('default', $event->getCategory());\n\n $event = new StopwatchEvent(microt", "meta": {"filepath": "src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php", "language": "php", "file_size": 6796, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Stopwatch\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Stopwatch\\StopwatchPeriod;\n\nclass StopwatchPeriodTest extends TestCase\n{\n #[DataProvider('provideTimeValues')]\n public function testGetStartTime($", "suffix": " public function testGetEndTime($end, $useMorePrecision, $expected)\n {\n $period = new StopwatchPeriod($end, $end, $useMorePrecision);\n $this->assertSame($expected, $period->getEndTime());\n }\n\n #[DataProvider('provideDurationValues'", "middle": "start, $useMorePrecision, $expected)\n {\n $period = new StopwatchPeriod($start, $start, $useMorePrecision);\n $this->assertSame($expected, $period->getStartTime());\n }\n\n #[DataProvider('provideTimeValues')]\n ", "meta": {"filepath": "src/Symfony/Component/Stopwatch/Tests/StopwatchPeriodTest.php", "language": "php", "file_size": 1935, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Stopwatch\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Stopwatch\\Section;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\Stopwatch\\StopwatchEvent;\n\n/**\n * StopwatchTest.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\n#[Group('time-sensitive')]\nclass StopwatchTest extends TestCase\n{\n private const DELTA = 20;\n\n public function testStart()\n {\n $stopw", "suffix": "t, $stopwatch->getEvent('foo'));\n }\n\n public function testStartWithoutCategory()\n {\n $stopwatch = new Stopwatch();\n $stopwatchEvent = $stopwatch->start('bar');\n $this->assertSame('default', $stopwatchEvent->getCategory());\n ", "middle": "atch = new Stopwatch();\n $event = $stopwatch->start('foo', 'cat');\n\n $this->assertInstanceOf(StopwatchEvent::class, $event);\n $this->assertEquals('cat', $event->getCategory());\n $this->assertSame($even", "meta": {"filepath": "src/Symfony/Component/Stopwatch/Tests/StopwatchTest.php", "language": "php", "file_size": 5284, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer;\n\nuse Symfony\\Component\\HtmlSanitizer\\Parser\\NativeParser;\nuse Symfony\\Component\\HtmlSanitizer\\Parser\\ParserInterface;\nuse Symfony\\Component\\HtmlSanitizer\\Reference\\W3CReference;\nuse Symfony\\Component\\HtmlSanitizer\\TextSanitizer\\StringSanitizer;\nuse Symfony\\Component\\HtmlSanitizer\\Visitor\\DomVisitor;\n\n/**\n * @author Titouan Galopin ", "suffix": "blic function __construct(\n private HtmlSanitizerConfig $config,\n ?ParserInterface $parser = null,\n ) {\n $this->parser = $parser ?? new NativeParser();\n }\n\n public function sanitize(string $input): string\n {\n return ", "middle": "<galopintitouan@gmail.com>\n */\nfinal class HtmlSanitizer implements HtmlSanitizerInterface\n{\n private ParserInterface $parser;\n\n /**\n * @var array<string, DomVisitor>\n */\n private array $domVisitors = [];\n\n pu", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/HtmlSanitizer.php", "language": "php", "file_size": 5040, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\RemotePackageDownloader;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Helper\\ProgressBar;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Sy", "suffix": "Scheiber <contact@jmsche.fr>\n */\n#[AsCommand(name: 'importmap:install', description: 'Download all assets that should be downloaded')]\nfinal class ImportMapInstallCommand extends Command\n{\n public function __construct(\n private readonly RemotePac", "middle": "mfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Contracts\\HttpClient\\ResponseInterface;\n\n/**\n * Downloads all assets that should be downloaded.\n *\n * @author Jonathan ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/ImportMapInstallCommand.php", "language": "php", "file_size": 2583, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapManager;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\", "suffix": "inal class ImportMapRemoveCommand extends Command\n{\n public function __construct(\n protected readonly ImportMapManager $importMapManager,\n ) {\n parent::__construct();\n }\n\n protected function configure(): void\n {\n $this\n ", "middle": "Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\n#[AsCommand(name: 'importmap:remove', description: 'Remove JavaScript packages')]\nf", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/ImportMapRemoveCommand.php", "language": "php", "file_size": 2107, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntries;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapManager;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapVersionChecker;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\PackageRequireOptions;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfon", "suffix": "le\\SymfonyStyle;\nuse Symfony\\Component\\Filesystem\\Path;\n\n/**\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\n#[AsCommand(name: 'importmap:require', description: 'Require JavaScript packages')]\nfinal class ImportMapRequireCommand extends Command\n{\n use ", "middle": "y\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Sty", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/ImportMapRequireCommand.php", "language": "php", "file_size": 6492, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapVersionChecker;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * @internal\n */\ntrait VersionProblemCommandTrait\n{\n private function renderVersionProblems(ImportMapVers", "suffix": "n) {\n $output->writeln(\\sprintf('[warning] <info>%s</info> requires <info>%s</info> but it is not in the importmap.php. You may need to run \"php bin/console importmap:require %s\".', $problem->packageName, $problem->dependencyPackageName, $pr", "middle": "ionChecker $importMapVersionChecker, OutputInterface $output): void\n {\n $problems = $importMapVersionChecker->checkVersions();\n foreach ($problems as $problem) {\n if (null === $problem->installedVersio", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/VersionProblemCommandTrait.php", "language": "php", "file_size": 1386, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\AssetMapperRepository;\nuse Symfony\\Component\\Finder\\Glob;\n\nclass AssetMapperRepositoryTest extends TestCase\n{\n public function testFindWithAbsolutePaths()\n {\n $repository = new AssetMapperRepository([\n __DIR__.'/Fixtures/dir1' => '',\n __DIR__.'/Fixtures/dir2' => '',\n ], __DIR__);\n\n $this->assertSame(realpath(__DIR", "suffix": "bdir/file5.js'), $repository->find('subdir/file5.js'));\n $this->assertNull($repository->find('file5.css'));\n }\n\n public function testFindWithRelativePaths()\n {\n $repository = new AssetMapperRepository([\n 'dir1' => '',\n ", "middle": "__.'/Fixtures/dir1/file1.css'), $repository->find('file1.css'));\n $this->assertSame(realpath(__DIR__.'/Fixtures/dir2/file4.js'), $repository->find('file4.js'));\n $this->assertSame(realpath(__DIR__.'/Fixtures/dir2/su", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/AssetMapperRepositoryTest.php", "language": "php", "file_size": 7345, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\CompiledAssetMapperConfigReader;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass CompiledAssetMapperConfigReaderTest extends TestCase\n{\n private Filesystem $filesystem;\n private string $writableRoot;\n\n", "suffix": "piled_asset_mapper_config_reader')) {\n $this->filesystem->mkdir($this->writableRoot);\n }\n // realpath to help path comparisons in the tests\n $this->writableRoot = realpath($this->writableRoot);\n }\n\n protected function ", "middle": " protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n $this->writableRoot = __DIR__.'/../Fixtures/compiled_asset_mapper_config_reader';\n if (!file_exists(__DIR__.'/../Fixtures/com", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/CompiledAssetMapperConfigReaderTest.php", "language": "php", "file_size": 2509, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\Packages;\nuse Symfony\\Component\\AssetMapper\\Tests\\Fixtures\\AssetMapperTestAppKernel;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass MapperAwareAssetPackageIntegrationTest ex", "suffix": "estAppKernel('test', true);\n $this->kernel->boot();\n }\n\n protected function tearDown(): void\n {\n $this->filesystem->remove($this->kernel->getProjectDir().'/var');\n }\n\n public function testDefaultAssetPackageIsDecorated()\n {\n", "middle": "tends TestCase\n{\n private AssetMapperTestAppKernel $kernel;\n private Filesystem $filesystem;\n\n protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n $this->kernel = new AssetMapperT", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/MapperAwareAssetPackageIntegrationTest.php", "language": "php", "file_size": 1322, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Fixtures;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse ", "suffix": " getProjectDir(): string\n {\n return __DIR__;\n }\n\n public function registerContainerConfiguration(LoaderInterface $loader): void\n {\n $loader->load(static function (ContainerBuilder $container) {\n $container->loadFromExte", "middle": "Symfony\\Component\\HttpKernel\\Kernel;\n\nclass AssetMapperTestAppKernel extends Kernel\n{\n public function registerBundles(): iterable\n {\n return [\n new FrameworkBundle(),\n ];\n }\n\n public function", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Fixtures/AssetMapperTestAppKernel.php", "language": "php", "file_size": 1593, "cut_index": 537, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nreturn [\n '@hotwired/stimulus' => [\n 'version' => '3.2.1',\n ],\n 'lodash' => [\n 'version' => '4.17.21',\n ],\n 'app' => [\n 'path' => 'app.js',\n ],\n 'other_app' => [\n // \"namespaced_assets2\" is defined as a namespaced path in the t", "suffix": "ath' => 'namespaced_assets2/app2.js',\n ],\n 'app.css' => [\n 'path' => 'namespaced_assets2/styles/app.css',\n 'type' => 'css',\n ],\n 'app2.css' => [\n 'path' => 'namespaced_assets2/styles/app2.css',\n 'type' => 'css',\n ", "middle": "est\n 'p", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Fixtures/importmaps/importmap.php", "language": "php", "file_size": 790, "cut_index": 514, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Compressor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Compressor\\BrotliCompressor;\nuse Symfony\\Component\\AssetMapper\\Compressor\\ChainCompressor;\nuse Symfony\\Component\\AssetMapper\\Compressor\\GzipCompressor;\nuse Symfony\\Component\\", "suffix": ".'/../Fixtures/chain_compressor_filesystem';\n\n private Filesystem $filesystem;\n\n protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n if (!file_exists(self::WRITABLE_ROOT)) {\n $this->filesystem->mkdi", "middle": "AssetMapper\\Compressor\\ZstandardCompressor;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\nclass ChainCompressorTest extends TestCase\n{\n private const WRITABLE_ROOT = __DIR__", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Compressor/ChainCompressorTest.php", "language": "php", "file_size": 2018, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Compressor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Compressor\\ZstandardCompressor;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\nclass ZstandardCompressorTest ", "suffix": "(new ZstandardCompressor())->getUnsupportedReason()) {\n $this->markTestSkipped($reason);\n }\n\n $this->filesystem = new Filesystem();\n if (!file_exists(self::WRITABLE_ROOT)) {\n $this->filesystem->mkdir(self::WRITABL", "middle": "extends TestCase\n{\n private const WRITABLE_ROOT = __DIR__.'/../Fixtures/zstandard_compressor_filesystem';\n\n private ?Filesystem $filesystem = null;\n\n protected function setUp(): void\n {\n if (null !== $reason = ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Compressor/ZstandardCompressorTest.php", "language": "php", "file_size": 1433, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Path;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Path\\PublicAssetsPathResolver;\n\nclass PublicAssetsPathResolverTest extends TestCase\n{\n public function testResolvePublicPath()\n {\n $resolver = new PublicA", "suffix": "ar'));\n $this->assertSame('/assets-prefix/foo/bar', $resolver->resolvePublicPath('foo/bar'));\n\n $resolver = new PublicAssetsPathResolver(\n 'assets-prefix', // The leading and trailing slash should be added automatically\n );\n", "middle": "ssetsPathResolver(\n '/assets-prefix/',\n );\n $this->assertSame('/assets-prefix/', $resolver->resolvePublicPath(''));\n $this->assertSame('/assets-prefix/foo/bar', $resolver->resolvePublicPath('/foo/b", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Path/PublicAssetsPathResolverTest.php", "language": "php", "file_size": 1286, "cut_index": 524, "middle_length": 229}} {"prefix": "ule_in_importmap_local_asset', ImportMapType::JS, 'module_in_importmap_local_asset.js', false),\n 'module_in_importmap_remote' => ImportMapEntry::createRemote('module_in_importmap_remote', ImportMapType::JS, './vendor/module_in_importmap_remote.js', '1.2.3', 'could_be_anything', false),\n '@popperjs/core' => ImportMapEntry::createRemote('@popperjs/core', ImportMapType::JS, '/project/assets/vendor/@popperjs/core.js', '1.2.3', 'could_be_anything', false),\n ", "suffix": "th) {\n './vendor/module_in_importmap_remote.js' => '/project/assets/vendor/module_in_importmap_remote.js',\n '/project/assets/vendor/@popperjs/core.js' => '/project/assets/vendor/@popperjs/core.js',\n ", "middle": " default => null,\n };\n });\n $importMapConfigReader\n ->method('convertPathToFilesystemPath')\n ->willReturnCallback(static function ($path) {\n return match ($pa", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Compiler/JavaScriptImportPathCompilerTest.php", "language": "php", "file_size": 39398, "cut_index": 2151, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Compiler\\Parser;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Compiler\\Parser\\JavascriptSequenceParser;\n\nclass JavascriptSequenceParserTest extends TestCase\n{\n public function testParseEmptyContent()\n {\n $parser = new JavascriptSequenceParser('');\n\n $this->assertTrue($parser->isExecutable());\n }\n\n public function testItThrowsWhenOutOfB", "suffix": "parseUntil(1);\n }\n\n public function testItThrowWhenBackward()\n {\n $parser = new JavascriptSequenceParser(' ');\n\n $parser->parseUntil(2);\n\n $this->expectException(\\RuntimeException::class);\n $this->expectExceptionMessag", "middle": "ounds()\n {\n $parser = new JavascriptSequenceParser('');\n\n $this->expectException(\\RuntimeException::class);\n $this->expectExceptionMessage('Cannot parse beyond the end of the content.');\n\n $parser->", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Compiler/Parser/JavascriptSequenceParserTest.php", "language": "php", "file_size": 5527, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Factory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Factory\\CachedMappedAssetFactory;\nuse Symfony\\Component\\AssetMapper\\Factory\\MappedAssetFactoryInterface;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\JavaScriptImport;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\nuse Symfony\\Component\\Config\\ConfigCache;\nuse Symfony\\Component\\Config\\Resource\\DirectoryResource;\nuse Symfony\\Component\\Config\\Resource\\FileE", "suffix": "heDir = __DIR__.'/../Fixtures/var/cache_for_mapped_asset_factory_test';\n\n protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n $this->filesystem->mkdir($this->cacheDir);\n }\n\n protected function tearDown(): v", "middle": "xistenceResource;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass CachedMappedAssetFactoryTest extends TestCase\n{\n private Filesystem $filesystem;\n private string $cac", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Factory/CachedMappedAssetFactoryTest.php", "language": "php", "file_size": 6262, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\AssetMapperRepository;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony", "suffix": " class DebugAssetMapperCommand extends Command\n{\n private bool $didShortenPaths = false;\n\n public function __construct(\n private readonly AssetMapperInterface $assetMapper,\n private readonly AssetMapperRepository $assetMapperRepository,", "middle": "\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * Outputs all the assets in the asset mapper.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\n#[AsCommand(name: 'debug:asset-map', description: 'Output all mapped assets')]\nfinal", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/DebugAssetMapperCommand.php", "language": "php", "file_size": 6468, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapUpdateChecker;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\PackageUpdateInfo;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completio", "suffix": ";\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n#[AsCommand(name: 'importmap:outdated', description: 'List outdated JavaScript packages and their latest versions')]\nfinal class ImportMapOutdatedCommand extends Command\n{\n private const COLOR_MAPPING", "middle": "n\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/ImportMapOutdatedCommand.php", "language": "php", "file_size": 4977, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\AssetMapperCompiler;\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\Compiler\\AssetCompilerInterface;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\n\nclass AssetMapperCo", "suffix": " return 'css' === $asset->publicExtension;\n }\n\n public function compile(string $content, MappedAsset $asset, AssetMapperInterface $assetMapper): string\n {\n return 'should_not_be_called';\n }\n ", "middle": "mpilerTest extends TestCase\n{\n public function testCompile()\n {\n $compiler1 = new class implements AssetCompilerInterface {\n public function supports(MappedAsset $asset): bool\n {\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/AssetMapperCompilerTest.php", "language": "php", "file_size": 2347, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\nuse Symfony\\Component\\AssetMapper\\Tests\\Fixtures\\AssetMapperTestAppKernel;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\n\nclass AssetMapperDevServerSubscriberFunctionalTest extends WebTestCase\n{\n public functio", "suffix": "tusCode());\n $this->assertInstanceOf(BinaryFileResponse::class, $response);\n $this->assertSame(<<<EOF\n /* file1.css */\n body {}\n\n EOF,\n $response->getFile()->getContent()\n );\n $this->a", "middle": "n testGettingAssetWorks()\n {\n $client = static::createClient();\n\n $client->request('GET', '/assets/file1-s0Rct6h.css');\n $response = $client->getResponse();\n $this->assertSame(200, $response->getSta", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/AssetMapperDevServerSubscriberFunctionalTest.php", "language": "php", "file_size": 3043, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\JavaScriptImport;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\n\nclass MappedAssetTest extends TestCase\n{\n public function t", "suffix": "ame, string $expectedExtension)\n {\n $asset = new MappedAsset('anything', publicPathWithoutDigest: $filename);\n\n $this->assertSame($expectedExtension, $asset->publicExtension);\n }\n\n public static function getExtensionTests(): iterable", "middle": "estGetLogicalPath()\n {\n $asset = new MappedAsset('foo.css');\n\n $this->assertSame('foo.css', $asset->logicalPath);\n }\n\n #[DataProvider('getExtensionTests')]\n public function testGetExtension(string $filen", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/MappedAssetTest.php", "language": "php", "file_size": 2011, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Compressor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Compressor\\BrotliCompressor;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * @author Kévin Dunglas <kevin@dunglas.dev>\n */\nclass BrotliCompressorTest extend", "suffix": "liCompressor())->getUnsupportedReason()) {\n $this->markTestSkipped($reason);\n }\n\n $this->filesystem = new Filesystem();\n if (!file_exists(self::WRITABLE_ROOT)) {\n $this->filesystem->mkdir(self::WRITABLE_ROOT);\n ", "middle": "s TestCase\n{\n private const WRITABLE_ROOT = __DIR__.'/../Fixtures/brotli_compressor_filesystem';\n\n private ?Filesystem $filesystem = null;\n\n protected function setUp(): void\n {\n if (null !== $reason = (new Brot", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Compressor/BrotliCompressorTest.php", "language": "php", "file_size": 1417, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Path;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\Compressor\\GzipCompressor;\nuse Symfony\\Component\\AssetMapper\\Path\\LocalPublicAssetsFilesystem;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass LocalPublicAssetsFilesystemTest extends TestCase\n{\n priv", "suffix": "ile_exists(__DIR__.'/../Fixtures/local_public_assets_filesystem')) {\n $this->filesystem->mkdir(self::$writableRoot);\n }\n }\n\n protected function tearDown(): void\n {\n $this->filesystem->remove(self::$writableRoot);\n }\n\n ", "middle": "ate Filesystem $filesystem;\n private static string $writableRoot = __DIR__.'/../Fixtures/local_public_assets_filesystem';\n\n protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n if (!f", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Path/LocalPublicAssetsFilesystemTest.php", "language": "php", "file_size": 2758, "cut_index": 563, "middle_length": 229}} {"prefix": "\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\Compiler\\AssetCompilerInterface;\nuse Symfony\\Component\\AssetMapper\\Compiler\\CssAssetUrlCompiler;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\n\nclass CssAssetUrlCompilerTest extends TestCase\n{\n #[DataProvider('provideCompileTests')]\n public function testCompile(string $input, string $expectedOutput, array $expectedDependencies)\n {\n $assetMapper = $this->createStub(AssetMapperInterface::class);\n $assetMappe", "suffix": "o.png',\n publicPathWithoutDigest: '/assets/images/foo.png',\n publicPath: '/assets/images/foo.123456.png',\n ),\n '/project/assets/more-styles.css' => new MappedAsset('more-st", "middle": "r\n ->method('getAssetFromSourcePath')\n ->willReturnCallback(static function ($path) {\n return match ($path) {\n '/project/assets/images/foo.png' => new MappedAsset('images/fo", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Compiler/CssAssetUrlCompilerTest.php", "language": "php", "file_size": 13616, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapAuditor;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapPackageAuditVulnerability;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Co", "suffix": "ories for dependencies')]\nclass ImportMapAuditCommand extends Command\n{\n private const SEVERITY_COLORS = [\n 'critical' => 'red',\n 'high' => 'red',\n 'medium' => 'yellow',\n 'low' => 'default',\n 'unknown' => 'default',\n ", "middle": "mponent\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n#[AsCommand(name: 'importmap:audit', description: 'Check for security vulnerability advis", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/ImportMapAuditCommand.php", "language": "php", "file_size": 7125, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Command;\n\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapEntry;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapManager;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapVersionChecker;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Com", "suffix": "@author Kévin Dunglas <kevin@dunglas.dev>\n */\n#[AsCommand(name: 'importmap:update', description: 'Update JavaScript packages to their latest versions')]\nfinal class ImportMapUpdateCommand extends Command\n{\n use VersionProblemCommandTrait;\n\n public fu", "middle": "mand\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Command/ImportMapUpdateCommand.php", "language": "php", "file_size": 2698, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Asset\\PackageInterface;\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\MapperAwareAssetPackage;\n\nclass MapperAwareAssetPackageTest ex", "suffix": " ->willReturn('2.0');\n\n $assetMapperPackage = new MapperAwareAssetPackage($inner, $this->createStub(AssetMapperInterface::class));\n\n $this->assertSame('2.0', $assetMapperPackage->getVersion('foo'));\n }\n\n #[DataProvider('getUrlTests')", "middle": "tends TestCase\n{\n public function testGetVersion()\n {\n $inner = $this->createMock(PackageInterface::class);\n $inner->expects($this->once())\n ->method('getVersion')\n ->with('foo')\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/MapperAwareAssetPackageTest.php", "language": "php", "file_size": 2492, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Compressor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\AssetMapper\\Compressor\\GzipCompressor;\nuse Symfony\\Component\\AssetMapper\\Compressor\\ZopfliCompressor;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n/**\n * @author Kévin Dunglas <kevin", "suffix": " $this->filesystem = new Filesystem();\n if (!file_exists(self::WRITABLE_ROOT)) {\n $this->filesystem->mkdir(self::WRITABLE_ROOT);\n }\n }\n\n protected function tearDown(): void\n {\n $this->filesystem->remove(self::", "middle": "@dunglas.dev>\n */\nclass GzipCompressorTest extends TestCase\n{\n private const WRITABLE_ROOT = __DIR__.'/../Fixtures/gzip_compressor_filesystem';\n\n private Filesystem $filesystem;\n\n protected function setUp(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Compressor/GzipCompressorTest.php", "language": "php", "file_size": 2038, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Factory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\AssetMapperCompiler;\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\Compiler\\AssetCompilerInterface;\nuse Symfony\\Component\\AssetMapper\\Compiler\\CssAssetUrlCompiler;\nuse Symfony\\Component\\AssetMapper\\Compiler\\JavaScriptImportPathCompiler;\nuse Symfony\\Component\\AssetMapper\\Exception\\CircularAssetsException;\nuse Sy", "suffix": "lverInterface;\n\nclass MappedAssetFactoryTest extends TestCase\n{\n private const FIXTURES_DIR = __DIR__.'/../Fixtures';\n private const VENDOR_FIXTURES_DIR = self::FIXTURES_DIR.'/assets/vendor';\n\n private AssetMapperInterface $assetMapper;\n\n publi", "middle": "mfony\\Component\\AssetMapper\\Factory\\MappedAssetFactory;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapConfigReader;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\nuse Symfony\\Component\\AssetMapper\\Path\\PublicAssetsPathReso", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Factory/MappedAssetFactoryTest.php", "language": "php", "file_size": 8545, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests;\n\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\AssetMapper;\nuse Symfony\\Component\\AssetMapper\\AssetMapperRepository;\nuse Symfony\\Component\\AssetMapper\\CompiledAssetMapperConfigReader;\nuse Symfony\\Component\\AssetMapper\\Factory\\MappedAssetFactoryInterface;\nuse Symfo", "suffix": "eAssetMapper();\n\n $file1Asset = new MappedAsset('file1.css');\n $this->mappedAssetFactory->expects($this->once())\n ->method('createMappedAsset')\n ->with('file1.css', realpath(__DIR__.'/Fixtures/dir1/file1.css'))\n ", "middle": "ny\\Component\\AssetMapper\\MappedAsset;\n\nclass AssetMapperTest extends TestCase\n{\n private MappedAssetFactoryInterface&MockObject $mappedAssetFactory;\n\n public function testGetAsset()\n {\n $assetMapper = $this->creat", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/AssetMapperTest.php", "language": "php", "file_size": 3905, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\Compiler\\SourceMappingUrlsCompiler;\nuse Symfony\\Component\\AssetMapper\\MappedAsset;\n\nclass SourceMappingUrlsCompilerTest extends TestCase\n{\n #[DataProvider('provideCompileTests')]\n public function testCompile(string $sourceLogicalName, string $inp", "suffix": "static function ($path) {\n return match ($path) {\n '/project/assets/foo.js.map' => new MappedAsset('foo.js.map',\n publicPathWithoutDigest: '/assets/foo.js.map',\n publicPath: '/", "middle": "ut, string $expectedOutput, $expectedDependencies)\n {\n $assetMapper = $this->createStub(AssetMapperInterface::class);\n $assetMapper\n ->method('getAssetFromSourcePath')\n ->willReturnCallback(", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Compiler/SourceMappingUrlsCompilerTest.php", "language": "php", "file_size": 5864, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\AssetMapper\\Tests\\Fixtures;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\Kernel;", "suffix": " return __DIR__;\n }\n\n public function registerContainerConfiguration(LoaderInterface $loader): void\n {\n $loader->load(static function (ContainerBuilder $container) {\n $container->loadFromExtension('framework', [\n '", "middle": "\n\nclass ImportMapTestAppKernel extends Kernel\n{\n public function registerBundles(): iterable\n {\n return [\n new FrameworkBundle(),\n ];\n }\n\n public function getProjectDir(): string\n {\n ", "meta": {"filepath": "src/Symfony/Component/AssetMapper/Tests/Fixtures/ImportMapTestAppKernel.php", "language": "php", "file_size": 1367, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl;\n\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\n\n/**\n * Gives access to script-related ICU data.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nfinal class Scripts extends ResourceBun", "suffix": " try {\n self::readEntry(['Names', $script]);\n\n return true;\n } catch (MissingResourceException) {\n return false;\n }\n }\n\n /**\n * @throws MissingResourceException if the script code does not exist\n ", "middle": "dle\n{\n /**\n * @return string[]\n */\n public static function getScriptCodes(): array\n {\n return self::readEntry(['Scripts'], 'meta');\n }\n\n public static function exists(string $script): bool\n {\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Scripts.php", "language": "php", "file_size": 1539, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Util;\n\n/**\n * @internal\n */\nclass GzipStreamWrapper\n{\n /** @var resource|null */\n public $context;\n\n /** @var resource */\n private $handle;\n private string $path;\n\n public static function require(string $path): array\n {\n if (!\\extension_loaded('zlib')) {\n ", "suffix": "ache_is_script_cached') || !@opcache_is_script_cached($path)) {\n stream_wrapper_unregister('file');\n stream_wrapper_register('file', self::class);\n }\n\n return require $path;\n }\n\n public function stream_open(string ", "middle": " throw new \\LogicException(\\sprintf('The \"zlib\" extension is required to load the \"%s/%s\" map, please enable it in your php.ini file.', basename(\\dirname($path)), basename($path)));\n }\n\n if (!\\function_exists('opc", "meta": {"filepath": "src/Symfony/Component/Intl/Util/GzipStreamWrapper.php", "language": "php", "file_size": 2225, "cut_index": 563, "middle_length": 229}} {"prefix": "ibuteSanitizerInterface;\n\n/**\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nclass HtmlSanitizerConfig\n{\n private HtmlSanitizerAction $defaultAction = HtmlSanitizerAction::Drop;\n\n /**\n * Elements that should be removed.\n *\n * @var array<string, true>\n */\n private array $droppedElements = [];\n\n /**\n * Elements that should be removed but their children should be retained.\n *\n * @var array<string, true>\n */\n private array $blockedElements = [];\n\n /**", "suffix": "d to certain elements.\n *\n * @var array<string, array<string, string>>\n */\n private array $forcedAttributes = [];\n\n /**\n * Links schemes that should be retained, other being dropped.\n *\n * @var list<string>\n */\n private", "middle": "\n * Elements that should be retained, with their allowed attributes.\n *\n * @var array<string, array<string, true>>\n */\n private array $allowedElements = [];\n\n /**\n * Attributes that should always be adde", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/HtmlSanitizerConfig.php", "language": "php", "file_size": 16095, "cut_index": 921, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Parser;\n\n/**\n * Transforms an untrusted HTML input string into a DOM tree.\n *\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\ninterface ParserInterface\n{\n /**\n * Parse a given string and returns a DOMNode tree.\n *", "suffix": "ethod must return null if the string cannot be parsed as HTML.\n *\n * @param string $context The name of the context element in which the HTML is parsed\n */\n public function parse(string $html, string $context = 'body'): \\Dom\\Node|\\DOMNode|nu", "middle": "\n * This m", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Parser/ParserInterface.php", "language": "php", "file_size": 790, "cut_index": 514, "middle_length": 14}} {"prefix": "fault-configuration\n *\n * @author Titouan Galopin <galopintitouan@gmail.com>\n *\n * @internal\n */\nfinal class W3CReference\n{\n /**\n * Sanitizer supported contexts.\n *\n * A parent element name can be passed as an argument to {@see HtmlSanitizer::sanitizeFor()}.\n * When doing so, depending on the given context, different elements will be allowed.\n */\n public const CONTEXT_HEAD = 'head';\n public const CONTEXT_BODY = 'body';\n public const CONTEXT_TEXT = 'text';\n\n // Which contex", "suffix": "* Elements allowed by the Sanitizer standard in <head> as keys, including whether\n * they are safe or not as values (safe meaning no global display/audio/video impact).\n */\n public const HEAD_ELEMENTS = [\n 'head' => true,\n 'link' =", "middle": "t to apply depending on the passed parent element name\n public const CONTEXTS_MAP = [\n 'head' => self::CONTEXT_HEAD,\n 'textarea' => self::CONTEXT_TEXT,\n 'title' => self::CONTEXT_TEXT,\n ];\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Reference/W3CReference.php", "language": "php", "file_size": 10890, "cut_index": 921, "middle_length": 229}} {"prefix": "lSanitizer($config))->sanitizeFor('head', '<div style=\"width: 100px\">Hello world</div>')\n );\n }\n\n public function testSanitizeForTextarea()\n {\n $config = (new HtmlSanitizerConfig())\n ->allowElement('div')\n ;\n\n $this->assertSame(\n '<div style="width: 100px">Hello</div> world',\n (new HtmlSanitizer($config))->sanitizeFor('textarea', '<div style=\"width: 100px\">Hello</div> world')\n );\n }\n\n public function t", "suffix": " (new HtmlSanitizer($config))->sanitizeFor('title', '<div style=\"width: 100px\">Hello</div> world')\n );\n }\n\n public function testSanitizeDeepNestedString()\n {\n $config = (new HtmlSanitizerConfig())\n ->allowElemen", "middle": "estSanitizeForTitle()\n {\n $config = (new HtmlSanitizerConfig())\n ->allowElement('div')\n ;\n\n $this->assertSame(\n '<div style="width: 100px">Hello</div> world',\n", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", "language": "php", "file_size": 20674, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Tests\\Reference;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HtmlSanitizer\\Reference\\W3CReference;\n\n/**\n * Check that the W3CReference class is up to date with the standard resources.\n */\nclass W3CReferenceTest extends TestCase\n{\n ", "suffix": "ertSame(\n $this->getResourceData(__DIR__.'/../Fixtures/baseline-element-allow-list.json'),\n $referenceElements\n );\n }\n\n public function testAttributes()\n {\n $this->assertSame(\n $this->getResourceData(", "middle": " public function testElements()\n {\n $referenceElements = array_values(array_merge(array_keys(W3CReference::HEAD_ELEMENTS), array_keys(W3CReference::BODY_ELEMENTS)));\n sort($referenceElements);\n\n $this->ass", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/Reference/W3CReferenceTest.php", "language": "php", "file_size": 1361, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Tests\\TextSanitizer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HtmlSanitizer\\TextSanitizer\\StringSanitizer;\n\nclass StringSanitizerTest extends TestCase\n{\n public static function provideHtmlLower", "suffix": "es as $input => $expected) {\n yield $input => [$input, $expected];\n }\n }\n\n #[DataProvider('provideHtmlLower')]\n public function testHtmlLower(string $input, string $expected)\n {\n $this->assertSame($expected, StringSanit", "middle": "()\n {\n $cases = [\n 'exampleAttr' => 'exampleattr',\n 'aTTrΔ' => 'attrΔ',\n 'data-attr' => 'data-attr',\n 'test with space' => 'test with space',\n ];\n\n foreach ($cas", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/TextSanitizer/StringSanitizerTest.php", "language": "php", "file_size": 2024, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\TextSanitizer;\n\n/**\n * @internal\n */\nfinal class StringSanitizer\n{\n private const REPLACEMENTS = [\n // \""\" is shorter than \""\"\n '"' => '"',\n\n // Fix several potential issues in how browsers interpret attribute value", "suffix": "in a non-UTF8 field\n '<' => '<',\n '>' => '>',\n '+' => '+',\n '=' => '=',\n '@' => '@',\n '`' => '`',\n ];\n\n /**\n * Applies a transformation to lowercase following W3C", "middle": "s\n '+' => '+',\n '=' => '=',\n '@' => '@',\n '`' => '`',\n\n // Some DB engines will transform UTF8 full-width characters with\n // their classical version if the data is saved ", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/TextSanitizer/StringSanitizer.php", "language": "php", "file_size": 1560, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Visitor\\Node;\n\n/**\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nfinal class BlockedNode implements NodeInterface\n{\n private array $children = [];\n\n public function __construct(\n private NodeInterface $parentNode,\n ) {\n }\n\n public function addChild(NodeInterface $node): void\n {\n $t", "suffix": "getParent(): ?NodeInterface\n {\n return $this->parentNode;\n }\n\n public function render(): string\n {\n $rendered = '';\n foreach ($this->children as $child) {\n $rendered .= $child->render();\n }\n\n return", "middle": "his->children[] = $node;\n }\n\n public function ", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/BlockedNode.php", "language": "php", "file_size": 934, "cut_index": 606, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Visitor\\Node;\n\nuse Symfony\\Component\\HtmlSanitizer\\TextSanitizer\\StringSanitizer;\n\n/**\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nfinal class Node implements NodeInterface\n{\n // HTML5 elements which are self-closing\n private const VOID_ELEMENTS = [\n 'area' => true,\n 'base' => true,\n 'br' => ", "suffix": " 'source' => true,\n 'track' => true,\n 'wbr' => true,\n ];\n\n private array $attributes = [];\n private array $children = [];\n\n public function __construct(\n private NodeInterface $parent,\n private string $tagName,\n ", "middle": "true,\n 'col' => true,\n 'embed' => true,\n 'hr' => true,\n 'img' => true,\n 'input' => true,\n 'keygen' => true,\n 'link' => true,\n 'meta' => true,\n 'param' => true,\n ", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/Node.php", "language": "php", "file_size": 3604, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Visitor\\Node;\n\nuse Symfony\\Component\\HtmlSanitizer\\TextSanitizer\\StringSanitizer;\n\n/**\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nfinal class TextNode implements NodeInterface\n{\n public function __construct(\n private NodeInterface $parentNode,\n private string $text,\n ) {\n }\n\n public f", "suffix": " throw new \\LogicException('Text nodes cannot have children.');\n }\n\n public function getParent(): ?NodeInterface\n {\n return $this->parentNode;\n }\n\n public function render(): string\n {\n return StringSanitizer::encodeHtml", "middle": "unction addChild(NodeInterface $node): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/TextNode.php", "language": "php", "file_size": 945, "cut_index": 606, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Visitor\\AttributeSanitizer;\n\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitizerConfig;\n\n/**\n * Implements attribute-specific sanitization logic.\n *\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\ninterface AttributeSanitizerInter", "suffix": "ist of attributes names supported, or null to support all attributes.\n *\n * @return list<string>|null\n */\n public function getSupportedAttributes(): ?array;\n\n /**\n * Returns the sanitized value of a given attribute for the given eleme", "middle": "face\n{\n /**\n * Returns the list of element names supported, or null to support all elements.\n *\n * @return list<string>|null\n */\n public function getSupportedElements(): ?array;\n\n /**\n * Returns the l", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/AttributeSanitizerInterface.php", "language": "php", "file_size": 1145, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Visitor\\AttributeSanitizer;\n\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitizerConfig;\nuse Symfony\\Component\\HtmlSanitizer\\TextSanitizer\\UrlSanitizer;\n\n/**\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nfinal class UrlAttributeSanitizer implements", "suffix": " return ['src', 'href', 'lowsrc', 'background', 'ping', 'action', 'formaction', 'poster', 'cite', 'data', 'codebase', 'archive', 'longdesc'];\n }\n\n public function sanitizeAttribute(string $element, string $attribute, string $value, HtmlSanitizerCon", "middle": " AttributeSanitizerInterface\n{\n public function getSupportedElements(): ?array\n {\n // Check all elements for URL attributes\n return null;\n }\n\n public function getSupportedAttributes(): ?array\n {\n ", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/UrlAttributeSanitizer.php", "language": "php", "file_size": 1717, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl;\n\n/**\n * Gives access to internationalization data.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nfinal class Intl\n{\n /**\n * The number of resource bundles to buffer. Loading the same resource\n * bundle for n locales takes up n spots in the buffer.\n */\n public const BUFFER_SIZE = 10;\n\n /**\n * The director", "suffix": "f the script data.\n */\n public const SCRIPT_DIR = 'scripts';\n\n /**\n * The directory name of the locale data.\n */\n public const LOCALE_DIR = 'locales';\n\n /**\n * The directory name of the region data.\n */\n public const REGI", "middle": "y name of the currency data.\n */\n public const CURRENCY_DIR = 'currencies';\n\n /**\n * The directory name of the language data.\n */\n public const LANGUAGE_DIR = 'languages';\n\n /**\n * The directory name o", "meta": {"filepath": "src/Symfony/Component/Intl/Intl.php", "language": "php", "file_size": 3175, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl;\n\nif (!class_exists(\\Locale::class)) {\n throw new \\LogicException(\\sprintf('You cannot use the \"%s\\Locale\" class as the \"intl\" extension is not installed. See https://php.net/intl.', __NAMESPACE__));\n}\n\n/**\n * Provides access to locale-related data.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nfinal class Loca", "suffix": "erwise.\n *\n * @see getFallback()\n */\n public static function setDefaultFallback(?string $locale): void\n {\n self::$defaultFallback = $locale;\n }\n\n /**\n * Returns the default fallback locale.\n *\n * @see setDefaultFa", "middle": "le extends \\Locale\n{\n private static ?string $defaultFallback = 'en';\n\n /**\n * Sets the default fallback locale.\n *\n * The default fallback locale is used as fallback for locales that have no\n * fallback oth", "meta": {"filepath": "src/Symfony/Component/Intl/Locale.php", "language": "php", "file_size": 3203, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl;\n\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BufferedBundleReader;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReader;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\PhpBundleReader;\n\n/**\n * @author Rola", "suffix": "try from a resource bundle.\n *\n * @see BundleEntryReaderInterface::readEntry()\n *\n * @param string[] $indices The indices to read from the bundle\n * @param string|null $locale The locale to read\n * @param bool $fallback", "middle": "nd Franssen <franssen.roland@gmail.com>\n *\n * @internal\n */\nabstract class ResourceBundle\n{\n private static BundleEntryReader $entryReader;\n\n abstract protected static function getPath(): string;\n\n /**\n * Reads an en", "meta": {"filepath": "src/Symfony/Component/Intl/ResourceBundle.php", "language": "php", "file_size": 2684, "cut_index": 563, "middle_length": 229}} {"prefix": "zer\\Visitor\\AttributeSanitizer\\AttributeSanitizerInterface;\n\nclass HtmlSanitizerConfigTest extends TestCase\n{\n public function testCreateEmpty()\n {\n $config = new HtmlSanitizerConfig();\n $this->assertSame([], $config->getAllowedElements());\n $this->assertSame([], $config->getBlockedElements());\n $this->assertSame(['http', 'https', 'mailto', 'tel'], $config->getAllowedLinkSchemes());\n $this->assertNull($config->getAllowedLinkHosts());\n $this->assertSame(['http'", "suffix": " $config = new HtmlSanitizerConfig();\n $this->assertSame(['http', 'https', 'mailto', 'tel'], $config->getAllowedLinkSchemes());\n $this->assertNull($config->getAllowedLinkHosts());\n $this->assertSame(['http', 'https', 'data'], $con", "middle": ", 'https', 'data'], $config->getAllowedMediaSchemes());\n $this->assertNull($config->getAllowedMediaHosts());\n $this->assertFalse($config->getForceHttpsUrls());\n }\n\n public function testSimpleOptions()\n {\n ", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerConfigTest.php", "language": "php", "file_size": 12175, "cut_index": 921, "middle_length": 229}} {"prefix": "' => [\n 'AOK',\n 'Angolijska kvanza (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'Angolijska nova kvanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolijska kvanza reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentinski austral',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentinski pezo (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n ", "suffix": "'AWG',\n 'Arubanski florin',\n ],\n 'AZM' => [\n 'AZM',\n 'Azerbejdžanski manat (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'Azerbejdžanski manat',\n ],\n 'BAD' => [\n ", "middle": " 'Argentinski pezos',\n ],\n 'ATS' => [\n 'ATS',\n 'Austrijski šiling',\n ],\n 'AUD' => [\n 'AUD',\n 'Australijski dolar',\n ],\n 'AWG' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bs.php", "language": "php", "file_size": 24667, "cut_index": 1331, "middle_length": 229}} {"prefix": "N' => [\n 'AON',\n 'Анголијска нова кванза (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Анголска кванза реађустадо (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Аргентински аустрал',\n ],\n 'ARP' => [\n 'ARP',\n 'аргентински пезо (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Аргентински пезос',\n ],\n 'ATS' => [\n 'ATS',\n 'Аустријски ", "suffix": " 'Азербејџански манат (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'Азербејџански манат',\n ],\n 'BAD' => [\n 'BAD',\n 'Босанско-Херцеговачки динар',\n ],\n 'BAM' => [\n ", "middle": "шилинг',\n ],\n 'AUD' => [\n 'A$',\n 'Аустралијски долар',\n ],\n 'AWG' => [\n 'AWG',\n 'Арубански флорин',\n ],\n 'AZM' => [\n 'AZM',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bs_Cyrl.php", "language": "php", "file_size": 27124, "cut_index": 1331, "middle_length": 229}} {"prefix": "',\n 'kwanza angolès (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'nou kwanza angolès (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'kwanza angolès reajustat (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'austral argentí',\n ],\n 'ARL' => [\n 'ARL',\n 'peso ley argentí (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'peso argentí (1981–1970)',\n ]", "suffix": "tríac',\n ],\n 'AUD' => [\n 'AU$',\n 'dòlar australià',\n ],\n 'AWG' => [\n 'AWG',\n 'florí d’Aruba',\n ],\n 'AZM' => [\n 'AZM',\n 'manat azerbaidjanès (1993–20", "middle": ",\n 'ARP' => [\n 'ARP',\n 'peso argentí (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'peso argentí',\n ],\n 'ATS' => [\n 'ATS',\n 'xíling aus", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ca.php", "language": "php", "file_size": 24148, "cut_index": 1331, "middle_length": 229}} {"prefix": "идерландин Антилин гульден',\n ],\n 'AOA' => [\n 'AOA',\n 'Анголан кванза',\n ],\n 'ARS' => [\n 'ARS',\n 'Аргентинан песо',\n ],\n 'AUD' => [\n 'A$',\n 'Австралин доллар',\n ],\n 'AWG' => [\n 'AWG',\n 'Арубан флорин',\n ],\n 'AZN' => [\n 'AZN',\n 'Азербайджанан манат',\n ],\n 'BAM' => [\n 'BAM',\n 'Боснин а, Герцеговин", "suffix": "GN',\n 'Болгарин лев',\n ],\n 'BHD' => [\n 'BHD',\n 'Бахрейнан динар',\n ],\n 'BIF' => [\n 'BIF',\n 'Бурундин франк',\n ],\n 'BMD' => [\n 'BMD',\n 'Бе", "middle": "ан а хийцалун марка',\n ],\n 'BBD' => [\n 'BBD',\n 'Барбадосан доллар',\n ],\n 'BDT' => [\n 'BDT',\n 'Бангладешан така',\n ],\n 'BGN' => [\n 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ce.php", "language": "php", "file_size": 15233, "cut_index": 921, "middle_length": 229}} {"prefix": " 'angolská kwanza (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'angolská kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'angolská kwanza (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'argentinský austral',\n ],\n 'ARL' => [\n 'ARL',\n 'argentinské peso ley (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'argentinské peso (1881–1970)',\n ],\n ", "suffix": " šilink',\n ],\n 'AUD' => [\n 'AU$',\n 'australský dolar',\n ],\n 'AWG' => [\n 'AWG',\n 'arubský zlatý',\n ],\n 'AZM' => [\n 'AZM',\n 'ázerbájdžánský manat (199", "middle": " 'ARP' => [\n 'ARP',\n 'argentinské peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinské peso',\n ],\n 'ATS' => [\n 'ATS',\n 'rakouský", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/cs.php", "language": "php", "file_size": 25155, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AOK',\n 'Ангола кванзи (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'Ангола ҫӗнӗ кванзи (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Ангола реюстадо кванзӗ (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Аргентина аустралӗ',\n ],\n 'ARL' => [\n 'ARL',\n 'Аргентина песо-лейӗ (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Аргентина песи (1881", "suffix": " 'Австри шиллингӗ',\n ],\n 'AUD' => [\n 'A$',\n 'Австрали долларӗ',\n ],\n 'AWG' => [\n 'AWG',\n 'Аруба флоринӗ',\n ],\n 'AZM' => [\n 'AZM',\n 'Азерба", "middle": "–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Аргентина песи (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Аргентина песи',\n ],\n 'ATS' => [\n 'ATS',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/cv.php", "language": "php", "file_size": 28751, "cut_index": 1331, "middle_length": 229}} {"prefix": " ],\n 'AOR' => [\n 'AOR',\n 'Kwanza Ailgymhwysedig Angola (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Austral yr Ariannin',\n ],\n 'ARL' => [\n 'ARL',\n 'Peso Ley yr Ariannin (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Peso yr Ariannin (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Peso yr Ariannin (1983–1985)',\n ],\n 'ARS' => [\n 'A", "suffix": " 'AWG',\n 'Fflorin Aruba',\n ],\n 'AZM' => [\n 'AZM',\n 'Manat Azerbaijan (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'Manat Azerbaijan',\n ],\n 'BAM' => [\n ", "middle": "RS',\n 'Peso yr Ariannin',\n ],\n 'ATS' => [\n 'ATS',\n 'Swllt Awstria',\n ],\n 'AUD' => [\n 'A$',\n 'Doler Awstralia',\n ],\n 'AWG' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/cy.php", "language": "php", "file_size": 21175, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AON' => [\n 'AON',\n 'Angolansk nye kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolansk kwanza (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentinsk austral',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentinsk peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinsk peso',\n ],\n 'ATS' => [\n 'ATS',\n 'Østrigsk schilling',\n", "suffix": "jdsjansk manat (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'aserbajdsjansk manat',\n ],\n 'BAD' => [\n 'BAD',\n 'Bosnien-Hercegovinsk dinar',\n ],\n 'BAM' => [\n 'BAM',\n ", "middle": " ],\n 'AUD' => [\n 'AU$',\n 'australsk dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'arubansk florin',\n ],\n 'AZM' => [\n 'AZM',\n 'Aserba", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/da.php", "language": "php", "file_size": 22272, "cut_index": 1331, "middle_length": 229}} {"prefix": "K' => [\n 'AOK',\n 'Angolanischer Kwanza (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'Angolanischer Neuer Kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolanischer Kwanza Reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentinischer Austral',\n ],\n 'ARL' => [\n 'ARL',\n 'Argentinischer Peso Ley (1970–1983)',\n ],\n 'ARM' => [\n ", "suffix": " Peso',\n ],\n 'ATS' => [\n 'öS',\n 'Österreichischer Schilling',\n ],\n 'AUD' => [\n 'AU$',\n 'Australischer Dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruba-Flori", "middle": " 'ARM',\n 'Argentinischer Peso (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentinischer Peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentinischer", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/de.php", "language": "php", "file_size": 25310, "cut_index": 1331, "middle_length": 229}} {"prefix": "ྱི་དངུལ་ ཨཕ་ག་ནི',\n ],\n 'AUD' => [\n 'AU$',\n 'ཨཱོས་ཊྲེ་ལི་ཡ་གི་དངུལ་ ཌོ་ལར',\n ],\n 'BDT' => [\n 'BDT',\n 'བྷང་ལ་དེཤ་གི་དངུལ་ ཏ་ཀ',\n ],\n 'BMD' => [\n 'BMD',\n 'བར་མུ་ཌ་གི་དངུལ་ ཌོ་ལར',\n ],\n 'BRL' => [\n 'R$',\n 'བྲ་ཛིལ་གྱི་དངུལ་ རེ་ཡལ',\n ],\n 'BTN' => [\n 'Nu.',\n 'དངུལ་ཀྲམ',\n ],\n 'CAD' => [\n 'CA$',\n 'ཀེ་ན་", "suffix": " 'CN¥',\n 'རྒྱ་ནག་གི་དངུལ་ ཡུ་ཝཱན',\n ],\n 'COP' => [\n 'COP',\n 'ཀོ་ལོམ་བྷི་ཡ་གི་དངུལ་ པེ་སོ',\n ],\n 'CUP' => [\n 'CUP',\n 'ཀིའུ་བྷ་གི་དངུལ་ པེ་སོ',\n ],\n 'DKK' => [", "middle": "ཌ་གི་དངུལ་ ཌོ་ལར',\n ],\n 'CHF' => [\n 'CHF',\n 'སུ་ཡིས་ཀྱི་དངུལ་ ཕྲངཀ',\n ],\n 'CLP' => [\n 'CLP',\n 'ཅི་ལི་གི་དངུལ་ པེ་སོ',\n ],\n 'CNY' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/dz.php", "language": "php", "file_size": 10062, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AOK' => [\n 'AOK',\n 'angolaga kwanza (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'angolaga kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'angolaga kwanza xoxotɔ (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'argentinaga austral',\n ],\n 'ARL' => [\n 'ARL',\n 'argentinaga peso ley (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'ar", "suffix": "> [\n 'ATS',\n 'ɔstriaga schilling',\n ],\n 'AUD' => [\n 'AU$',\n 'Australiaga dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'arubaga lorin',\n ],\n 'AZM' => [\n ", "middle": "gentinaga peso (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'argentinaga peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinaga peso',\n ],\n 'ATS' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ee.php", "language": "php", "file_size": 23852, "cut_index": 1331, "middle_length": 229}} {"prefix": "N' => [\n 'AON',\n 'Νέα Κουάνζα Ανγκόλας (1990–2000)',\n ],\n 'ARA' => [\n 'ARA',\n 'Ωστράλ Αργετινής',\n ],\n 'ARP' => [\n 'ARP',\n 'Πέσο Αργεντινής (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Πέσο Αργεντινής',\n ],\n 'ATS' => [\n 'ATS',\n 'Σελίνι Αυστρίας',\n ],\n 'AUD' => [\n 'A$',\n 'Δολάριο Αυστραλίας',\n ],\n 'AW", "suffix": "ϊτζάν',\n ],\n 'BAD' => [\n 'BAD',\n 'Δηνάριο Βοσνίας-Ερζεγοβίνης',\n ],\n 'BAM' => [\n 'BAM',\n 'Μετατρέψιμο Μάρκο Βοσνίας-Ερζεγοβίνης',\n ],\n 'BBD' => [\n 'BBD',\n ", "middle": "G' => [\n 'AWG',\n 'Φλορίνι Αρούμπας',\n ],\n 'AZM' => [\n 'AZM',\n 'Μανάτ Αζερμπαϊτζάν (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'Μανάτ Αζερμπα", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/el.php", "language": "php", "file_size": 26588, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AOK',\n 'Angolan Kwanza (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'Angolan New Kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolan Readjusted Kwanza (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentine Austral',\n ],\n 'ARL' => [\n 'ARL',\n 'Argentine Peso Ley (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Argentine Peso (1881–19", "suffix": " 'Austrian Schilling',\n ],\n 'AUD' => [\n 'A$',\n 'Australian Dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruban Florin',\n ],\n 'AZM' => [\n 'AZM',\n 'Azerb", "middle": "70)',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentine Peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentine Peso',\n ],\n 'ATS' => [\n 'ATS',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/en.php", "language": "php", "file_size": 24771, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n 'Bermudian Dollar',\n ],\n 'BYB' => [\n 'BYB',\n 'Belarusian New Rouble (1994–1999)',\n ],\n 'BYN' => [\n 'BYN',\n 'Belarusian Rouble',\n ],\n 'BYR' => [\n 'BYR',\n 'Belarusian Rouble (2000–2016)',\n ],\n 'JPY' => [\n 'JP¥',\n 'Japanese Yen',\n ],\n 'LVR' => [\n 'LVR',\n 'Latvian Rouble',\n ],\n 'RUB' => [\n 'RUB',\n", "suffix": "R' => [\n 'RUR',\n 'Russian Rouble (1991–1998)',\n ],\n 'SHP' => [\n 'SHP',\n 'St Helena Pound',\n ],\n 'TJR' => [\n 'TJR',\n 'Tajikistani Rouble',\n ],\n 'USD'", "middle": " 'Russian Rouble',\n ],\n 'RU", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/en_001.php", "language": "php", "file_size": 968, "cut_index": 582, "middle_length": 52}} {"prefix": "\n '$',\n 'Australian Dollar',\n ],\n 'BAM' => [\n 'BAM',\n 'Bosnia-Herzegovina Convertible Marka',\n ],\n 'BBD' => [\n 'BBD',\n 'Barbados Dollar',\n ],\n 'BMD' => [\n 'BMD',\n 'Bermuda Dollar',\n ],\n 'BOB' => [\n 'BOB',\n 'Bolivian boliviano',\n ],\n 'BRL' => [\n 'BRL',\n 'Brazilian Real',\n ],\n 'CAD' => [\n ", "suffix": "'GBP',\n 'British Pound',\n ],\n 'HKD' => [\n 'HKD',\n 'Hong Kong Dollar',\n ],\n 'ILS' => [\n 'ILS',\n 'Israeli Shekel',\n ],\n 'INR' => [\n 'INR',\n ", "middle": " 'CAD',\n 'Canadian Dollar',\n ],\n 'CNY' => [\n 'CNY',\n 'Chinese Yuan',\n ],\n 'EUR' => [\n 'EUR',\n 'Euro',\n ],\n 'GBP' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/en_AU.php", "language": "php", "file_size": 2479, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Util;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Intl;\n\n/**\n * Helper class for preparing test cases that rely on the Intl component.\n *\n * Any test that tests functionality relying on either the intl classes or\n * the resource bundle data should call either of the methods\n * {@link requireIntl()} or {@link requireFullIntl()", "suffix": "r\n{\n /**\n * Should be called before tests that work fine with the stub implementation.\n */\n public static function requireIntl(TestCase $testCase, ?string $minimumIcuVersion = null): void\n {\n $minimumIcuVersion ??= Intl::getIcuStubV", "middle": "}. Calling\n * {@link requireFullIntl()} is only necessary if you use functionality in the\n * test that is not provided by the stub intl implementation.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass IntlTestHelpe", "meta": {"filepath": "src/Symfony/Component/Intl/Util/IntlTestHelper.php", "language": "php", "file_size": 3536, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Util;\n\n/**\n * Facilitates the comparison of version strings.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass Version\n{\n /**\n * Compares two versions with an operator.\n *\n * This method is identical to {@link version_compare()}, except that you\n * can pass t", "suffix": ", '1.2.4', '==', 2)\n * // => true\n *\n * @param int|null $precision The number of components to compare. Pass\n * NULL to compare the versions unchanged.\n *\n * @see normalize()\n */\n public static ", "middle": "he number of regarded version components in the last argument\n * $precision.\n *\n * Examples:\n *\n * Version::compare('1.2.3', '1.2.4', '==')\n * // => false\n *\n * Version::compare('1.2.3'", "meta": {"filepath": "src/Symfony/Component/Intl/Util/Version.php", "language": "php", "file_size": 2336, "cut_index": 563, "middle_length": 229}} {"prefix": "ጊልደር',\n ],\n 'AOA' => [\n 'AOA',\n 'የአንጎላ ኩዋንዛ',\n ],\n 'ARS' => [\n 'ARS',\n 'የአርጀንቲና ፔሶ',\n ],\n 'AUD' => [\n 'AU$',\n 'የአውስትራሊያ ዶላር',\n ],\n 'AWG' => [\n 'AWG',\n 'አሩባን ፍሎሪን',\n ],\n 'AZN' => [\n 'AZN',\n 'የአዛርባጃን ማናት',\n ],\n 'BAM' => [\n 'BAM',\n 'የቦስኒያ ሄርዞጎቪና የሚመነዘር ማርክ',\n ],\n 'BBD' => [\n ", "suffix": "D',\n 'የባኽሬን ዲናር',\n ],\n 'BIF' => [\n 'BIF',\n 'የብሩንዲ ፍራንክ',\n ],\n 'BMD' => [\n 'BMD',\n 'የቤርሙዳ ዶላር',\n ],\n 'BND' => [\n 'BND',\n 'የብሩኔ ዶላር',\n ", "middle": " 'BBD',\n 'የባርቤዶስ ዶላር',\n ],\n 'BDT' => [\n 'BDT',\n 'የባንግላዲሽ ታካ',\n ],\n 'BGN' => [\n 'BGN',\n 'የቡልጋሪያ ሌቭ',\n ],\n 'BHD' => [\n 'BH", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/am.php", "language": "php", "file_size": 15919, "cut_index": 921, "middle_length": 229}} {"prefix": "1990-2000',\n ],\n 'AOR' => [\n 'AOR',\n 'كوانزا أنجولي معدلة - 1995 - 1999',\n ],\n 'ARA' => [\n 'ARA',\n 'استرال أرجنتيني',\n ],\n 'ARP' => [\n 'ARP',\n 'بيزو أرجنتيني - 1983-1985',\n ],\n 'ARS' => [\n 'ARS',\n 'بيزو أرجنتيني',\n ],\n 'ATS' => [\n 'ATS',\n 'شلن نمساوي',\n ],\n 'AUD' => [\n 'AU$',\n 'دولار أسترالي',\n ", "suffix": "ان',\n ],\n 'BAD' => [\n 'BAD',\n 'دينار البوسنة والهرسك',\n ],\n 'BAM' => [\n 'BAM',\n 'مارك البوسنة والهرسك قابل للتحويل',\n ],\n 'BBD' => [\n 'BBD',\n 'دولار", "middle": " ],\n 'AWG' => [\n 'AWG',\n 'فلورن أروبي',\n ],\n 'AZM' => [\n 'AZM',\n 'مانات أذريبجاني',\n ],\n 'AZN' => [\n 'AZN',\n 'مانات أذربيج", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ar.php", "language": "php", "file_size": 23195, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AOK',\n 'Ангола кванзаһы (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'Ангола яңы кванзаһы (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Ангола көйләнгән кванзаһы (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Аргентина аустралы',\n ],\n 'ARL' => [\n 'ARL',\n 'Аргентина песоһы (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Аргентина песоһы (1", "suffix": "ATS',\n 'Австрия шиллингы',\n ],\n 'AUD' => [\n 'A$',\n 'Австралия доллары',\n ],\n 'AWG' => [\n 'AWG',\n 'Аруба флорины',\n ],\n 'AZM' => [\n 'AZM',\n ", "middle": "881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Аргентина песоһы (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Аргентина песоһы',\n ],\n 'ATS' => [\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ba.php", "language": "php", "file_size": 29252, "cut_index": 1331, "middle_length": 229}} {"prefix": " [\n 'AON',\n 'Анголска нова кванца (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Анголска нова кванца (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Аржентински австрал',\n ],\n 'ARP' => [\n 'ARP',\n 'Аржентинско песо (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Аржентинско песо',\n ],\n 'ATS' => [\n 'ATS',\n 'Австрийски шилинг',\n ", "suffix": "нски манат (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'Азербайджански манат',\n ],\n 'BAD' => [\n 'BAD',\n 'Босна и Херцеговина-динар',\n ],\n 'BAM' => [\n 'BAM',\n ", "middle": " ],\n 'AUD' => [\n 'AUD',\n 'Австралийски долар',\n ],\n 'AWG' => [\n 'AWG',\n 'Арубски флорин',\n ],\n 'AZM' => [\n 'AZM',\n 'Азербайджа", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bg.php", "language": "php", "file_size": 25883, "cut_index": 1331, "middle_length": 229}} {"prefix": "N' => [\n 'AON',\n 'এ্যাঙ্গোলান নতুন কওয়ানজা (১৯৯৫–২০০০)',\n ],\n 'AOR' => [\n 'AOR',\n 'এ্যাঙ্গোলান কওয়ানজা (১৯৯৫–১৯৯৯)',\n ],\n 'ARA' => [\n 'ARA',\n 'আর্জেন্টিনা অস্ট্রাল',\n ],\n 'ARP' => [\n 'ARP',\n 'আর্জেন্টিনা পেসো (১৯৮৩–১৯৮৫)',\n ],\n 'ARS' => [\n 'ARS',\n 'আর্জেন্টিনা পেসো',\n ],\n 'ATS' => [\n 'ATS',\n 'অস্ট্রিয়ান শি", "suffix": "জারবাইজান মানাত (১৯৯৩–২০০৬)',\n ],\n 'AZN' => [\n 'AZN',\n 'আজারবাইজান মানাত',\n ],\n 'BAD' => [\n 'BAD',\n 'বসনিয়া এবং হার্জেগোভিনা দিনার',\n ],\n 'BAM' => [\n 'BAM',\n ", "middle": "লিং',\n ],\n 'AUD' => [\n 'A$',\n 'অস্ট্রেলিয়ান ডলার',\n ],\n 'AWG' => [\n 'AWG',\n 'আরুবা ফ্লোরিন',\n ],\n 'AZM' => [\n 'AZM',\n 'আ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bn.php", "language": "php", "file_size": 32091, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'kwanza Angola (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'kwanza nevez Angola (1990–2000)',\n ],\n 'ARM' => [\n 'ARM',\n 'peso Arcʼhantina (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'peso Arcʼhantina (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'peso Arcʼhantina',\n ],\n 'ATS' => [\n 'ATS',\n 'schilling Aostria',\n ],\n 'AUD' => [", "suffix": " ],\n 'AZN' => [\n 'AZN',\n 'manat Azerbaidjan',\n ],\n 'BAD' => [\n 'BAD',\n 'dinar Bosnia ha Herzegovina (1992–1994)',\n ],\n 'BAM' => [\n 'BAM',\n 'mark kemmadus B", "middle": "\n '$A',\n 'dollar Aostralia',\n ],\n 'AWG' => [\n 'AWG',\n 'florin Aruba',\n ],\n 'AZM' => [\n 'AZM',\n 'manat Azerbaidjan (1993–2006)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/br.php", "language": "php", "file_size": 21156, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Tests\\Parser;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\HtmlSanitizer\\Parser\\NativeParser;\n\nclass NativeParserTest extends TestCase\n{\n public function testParseValid()\n {\n $node = (new NativeParser())->parse('<di", "suffix": "0)->nodeName);\n }\n\n public function testParseHtml()\n {\n $html = '<div><p>Hello <strong>World</strong>!</p></div>';\n $node = (new NativeParser())->parse($html);\n $this->assertInstanceOf(\\Dom\\Node::class, $node);\n $this->", "middle": "v></div>');\n $this->assertInstanceOf(\\Dom\\Node::class, $node);\n $this->assertSame('BODY', $node->nodeName);\n $this->assertCount(1, $node->childNodes);\n $this->assertSame('DIV', $node->childNodes->item(", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/Parser/NativeParserTest.php", "language": "php", "file_size": 1170, "cut_index": 518, "middle_length": 229}} {"prefix": "ted' => 'http://trusted.com/link.php',\n ];\n\n yield [\n 'input' => 'https://trusted.com/link.php',\n 'allowedSchemes' => null,\n 'allowedHosts' => null,\n 'forceHttps' => false,\n 'allowRelative' => false,\n 'expected' => 'https://trusted.com/link.php',\n ];\n\n yield [\n 'input' => 'data:text/plain;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',\n 'allowedSchemes' => null,\n '", "suffix": "d [\n 'input' => 'https://trusted.com/link.php',\n 'allowedSchemes' => ['https'],\n 'allowedHosts' => null,\n 'forceHttps' => false,\n 'allowRelative' => false,\n 'expected' => 'https://trusted.co", "middle": "allowedHosts' => null,\n 'forceHttps' => false,\n 'allowRelative' => false,\n 'expected' => 'data:text/plain;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',\n ];\n\n yiel", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/TextSanitizer/UrlSanitizerTest.php", "language": "php", "file_size": 50649, "cut_index": 2151, "middle_length": 229}} {"prefix": "* This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Visitor\\Node;\n\n/**\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nfinal class DocumentNode implements NodeInterface\n{\n private array $children = [];\n\n public function addChild(NodeInterface $node): void\n {\n $this->ch", "suffix": "nt(): ?NodeInterface\n {\n return null;\n }\n\n public function render(): string\n {\n $rendered = '';\n foreach ($this->children as $child) {\n $rendered .= $child->render();\n }\n\n return $rendered;\n }\n}\n", "middle": "ildren[] = $node;\n }\n\n public function getPare", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/DocumentNode.php", "language": "php", "file_size": 831, "cut_index": 523, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Visitor\\AttributeSanitizer;\n\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitizerConfig;\nuse Symfony\\Component\\HtmlSanitizer\\TextSanitizer\\UrlSanitizer;\n\n/**\n * Sanitizes the URL embedded in the content attribute of a <meta http-equiv=\"refresh\">\n * element, si", "suffix": "nal class MetaRefreshAttributeSanitizer implements AttributeSanitizerInterface\n{\n public function getSupportedElements(): ?array\n {\n return ['meta'];\n }\n\n public function getSupportedAttributes(): ?array\n {\n return ['content'];", "middle": "nce the http-equiv value is not visible from a per-attribute sanitizer.\n *\n * The content attribute carries an unrelated value for other meta types (description,\n * keywords, generator…), which is passed through unchanged.\n */\nfi", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/MetaRefreshAttributeSanitizer.php", "language": "php", "file_size": 1683, "cut_index": 537, "middle_length": 229}} {"prefix": " Schussek <bschussek@gmail.com>\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nfinal class Currencies extends ResourceBundle\n{\n private const INDEX_SYMBOL = 0;\n private const INDEX_NAME = 1;\n private const INDEX_FRACTION_DIGITS = 0;\n private const INDEX_ROUNDING_INCREMENT = 1;\n private const INDEX_CASH_FRACTION_DIGITS = 2;\n private const INDEX_CASH_ROUNDING_INCREMENT = 3;\n\n /**\n * @return string[]\n */\n public static function getCurrencyCodes(): array\n {\n ", "suffix": " } catch (MissingResourceException) {\n return false;\n }\n }\n\n /**\n * @throws MissingResourceException if the currency code does not exist\n */\n public static function getName(string $currency, ?string $displayLocale ", "middle": " return self::readEntry(['Currencies'], 'meta');\n }\n\n public static function exists(string $currency): bool\n {\n try {\n self::readEntry(['Names', $currency, self::INDEX_NAME]);\n\n return true;\n", "meta": {"filepath": "src/Symfony/Component/Intl/Currencies.php", "language": "php", "file_size": 10462, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl;\n\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\n\n/**\n * Gives access to locale-related ICU data.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nfinal class Locales extends ResourceBun", "suffix": "Aliases(): array\n {\n return self::readEntry(['Aliases'], 'meta');\n }\n\n public static function exists(string $locale): bool\n {\n try {\n self::readEntry(['Names', $locale]);\n\n return true;\n } catch (Missi", "middle": "dle\n{\n /**\n * @return string[]\n */\n public static function getLocales(): array\n {\n return self::readEntry(['Locales'], 'meta');\n }\n\n /**\n * @return string[]\n */\n public static function get", "meta": {"filepath": "src/Symfony/Component/Intl/Locales.php", "language": "php", "file_size": 2000, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl;\n\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\nuse Symfony\\Component\\Intl\\Exception\\RuntimeException;\n\n/**\n * Gives access to timezone-related ICU data.\n *\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nfinal class Timezones extends ResourceBundle\n{\n /**\n * @return string[]\n */\n public static funct", "suffix": "urn true;\n } catch (MissingResourceException) {\n try {\n new \\DateTimeZone($timezone);\n\n return true;\n } catch (\\Exception) {\n return false;\n }\n }\n }\n\n /**\n ", "middle": "ion getIds(): array\n {\n return self::readEntry(['Zones'], 'meta');\n }\n\n public static function exists(string $timezone): bool\n {\n try {\n self::readEntry(['Names', $timezone]);\n\n ret", "meta": {"filepath": "src/Symfony/Component/Intl/Timezones.php", "language": "php", "file_size": 3562, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer;\n\n/**\n * Sanitizes an untrusted HTML input for safe insertion into a document's DOM.\n *\n * This interface is inspired by the W3C Standard Draft about a HTML Sanitizer API\n * ({@see https://wicg.github.io/sanitizer-api/}).\n *\n * @author Titouan ", "suffix": "ing\n * will be injected in a \"body\" context, and therefore will drop tags only\n * allowed in the \"head\" element. To sanitize a string for injection\n * in the \"head\" element, use {@see HtmlSanitizerInterface::sanitizeFor()}.\n */\n public f", "middle": "Galopin <galopintitouan@gmail.com>\n */\ninterface HtmlSanitizerInterface\n{\n /**\n * Sanitizes an untrusted HTML input for a <body> context.\n *\n * This method is NOT context sensitive: it assumes the returned HTML str", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/HtmlSanitizerInterface.php", "language": "php", "file_size": 1433, "cut_index": 524, "middle_length": 229}} {"prefix": " 'Nederlands-Antilliaanse gulde',\n ],\n 'AOA' => [\n 'AOA',\n 'Angolese kwanza',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentynse peso',\n ],\n 'AUD' => [\n 'A$',\n 'Australiese dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'Arubaanse floryn',\n ],\n 'AZN' => [\n 'AZN',\n 'Azerbeidjaanse manat',\n ],\n 'BAM' => [\n 'BAM',\n 'Bo", "suffix": "' => [\n 'BGN',\n 'Bulgaarse lev',\n ],\n 'BHD' => [\n 'BHD',\n 'Bahreinse dinar',\n ],\n 'BIF' => [\n 'BIF',\n 'Burundiese frank',\n ],\n 'BMD' => [\n ", "middle": "snies-Herzegowiniese omskakelbare marka',\n ],\n 'BBD' => [\n 'BBD',\n 'Barbados-dollar',\n ],\n 'BDT' => [\n 'BDT',\n 'Bangladesjiese taka',\n ],\n 'BGN", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/af.php", "language": "php", "file_size": 14311, "cut_index": 921, "middle_length": 229}} {"prefix": "'নেডাৰলেণ্ডছ এণ্টিলিয়েন গিল্ডাৰ',\n ],\n 'AOA' => [\n 'AOA',\n 'এংগোলান কোৱাঞ্জা',\n ],\n 'ARS' => [\n 'ARS',\n 'আৰ্জেণ্টাইন পেছো',\n ],\n 'AUD' => [\n 'A$',\n 'অষ্ট্ৰেলিয়ান ডলাৰ',\n ],\n 'AWG' => [\n 'AWG',\n 'আৰুবান ফ্ল’ৰিন',\n ],\n 'AZN' => [\n 'AZN',\n 'আজেৰবাইজানী মানাত',\n ],\n 'BAM' => [\n 'BAM',\n 'ব’ছনিয়া আ", "suffix": " 'BGN',\n 'বুলগেৰীয় লেভ',\n ],\n 'BHD' => [\n 'BHD',\n 'বাহৰেইনী ডিনাৰ',\n ],\n 'BIF' => [\n 'BIF',\n 'বুৰুণ্ডিয়ান ফ্ৰেংক',\n ],\n 'BMD' => [\n 'BMD", "middle": "ৰু হাৰ্জেগ’ভিনা কনভাৰ্টিব্‌ল মাৰ্ক',\n ],\n 'BBD' => [\n 'BBD',\n 'বাৰ্বাডিয়ান ডলাৰ',\n ],\n 'BDT' => [\n 'BDT',\n 'বাংলাদেশী টাকা',\n ],\n 'BGN' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/as.php", "language": "php", "file_size": 18187, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AOK' => [\n 'AOK',\n 'Anqola Kvanzasi (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'Anqola Yeni Kvanzası (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Anqola Kvanzası (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentina avstralı',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentina pesosu (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentina ", "suffix": " 'Aruba Florini',\n ],\n 'AZM' => [\n 'AZM',\n 'Azərbaycan Manatı (1993–2006)',\n ],\n 'AZN' => [\n '₼',\n 'Azərbaycan Manatı',\n ],\n 'BAD' => [\n 'BAD',\n ", "middle": "Pesosu',\n ],\n 'ATS' => [\n 'ATS',\n 'Avstriya Şillinqi',\n ],\n 'AUD' => [\n 'A$',\n 'Avstraliya Dolları',\n ],\n 'AWG' => [\n 'AWG',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/az.php", "language": "php", "file_size": 22559, "cut_index": 1331, "middle_length": 229}} {"prefix": "Diram',\n ],\n 'AOA' => [\n 'AOA',\n 'angola Kwanza',\n ],\n 'AUD' => [\n 'A$',\n 'ositirali Dolar',\n ],\n 'BHD' => [\n 'BHD',\n 'bareyini Dinar',\n ],\n 'BIF' => [\n 'BIF',\n 'burundi Fraŋ',\n ],\n 'BWP' => [\n 'BWP',\n 'bɔtisiwana Pula',\n ],\n 'CAD' => [\n 'CA$',\n 'kanada Dolar',\n ],\n 'CDF' => [\n ", "suffix": " 'CVE',\n 'capivɛrdi Esekudo',\n ],\n 'DJF' => [\n 'DJF',\n 'jibuti Fraŋ',\n ],\n 'DZD' => [\n 'DZD',\n 'alizeri Dinar',\n ],\n 'EGP' => [\n 'EGP',\n ", "middle": " 'CDF',\n 'kongole Fraŋ',\n ],\n 'CHF' => [\n 'CHF',\n 'suwisi Fraŋ',\n ],\n 'CNY' => [\n 'CN¥',\n 'siniwa Yuwan',\n ],\n 'CVE' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bm.php", "language": "php", "file_size": 4747, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\TextSanitizer;\n\nuse League\\Uri\\Exceptions\\SyntaxError;\nuse League\\Uri\\UriString;\n\n/**\n * @internal\n */\nfinal class UrlSanitizer\n{\n /**\n * Characters with no legitimate place in a URL: explicit-direction BiDi\n * formatting marks plus Unicode whitespace and the zero-width no-break\n * space. ASCII space is tolerated and percent-encoded by parse().\n */\n private const DENIED_CHARS_PATTERN = '/[\\t\\n\\v\\f\\r\\x{0085}\\x{0", "suffix": "sanitizer checks that:\n * * the URL's host is allowed ;\n * * the URL's scheme is allowed ;\n * * the URL is allowed to be relative if it is ;\n *\n * It also transforms the URL to HTTPS if requested.\n */\n public static functio", "middle": "0A0}\\x{1680}\\x{2000}-\\x{200A}\\x{2028}\\x{2029}\\x{202F}\\x{205F}\\x{3000}\\x{FEFF}\\x{202A}-\\x{202E}\\x{2066}-\\x{2069}]/u';\n\n /**\n * Sanitizes a given URL string.\n *\n * In addition to ensuring $input is a valid URL, this ", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php", "language": "php", "file_size": 6985, "cut_index": 716, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Visitor\\Node;\n\n/**\n * Represents the sanitized version of a DOM node in the sanitized tree.\n *\n * Once the sanitization is done, nodes are rendered into the final output string.\n *\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\ninterface NodeInterface\n{\n /**\n * Add a child node to this node.\n */\n pub", "suffix": " * Return the parent node of this node, or null if it has no parent node.\n */\n public function getParent(): ?self;\n\n /**\n * Render this node as a string, recursively rendering its children as well.\n */\n public function render(): stri", "middle": "lic function addChild(self $node): void;\n\n /**\n ", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/NodeInterface.php", "language": "php", "file_size": 920, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Intl;\n\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\n\n/**\n * Gives access to region-related ICU data.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nfinal class Countries extends ResourceBundle\n{\n private static bool $withUserAssigned;\n\n /**\n * Returns all available countries.\n *\n * Countries are returned as uppercase ISO 3166 two-letter country c", "suffix": "try codes.\n *\n * @return string[]\n */\n public static function getCountryCodes(): array\n {\n if (!self::withUserAssigned()) {\n return self::readEntry(['Regions'], 'meta');\n }\n\n return array_merge(self::readEn", "middle": "odes.\n *\n * A full table of ISO 3166 country codes can be found here:\n * https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes\n *\n * This list only contains \"officially assigned ISO 3166-1 alpha-2\" coun", "meta": {"filepath": "src/Symfony/Component/Intl/Countries.php", "language": "php", "file_size": 7981, "cut_index": 716, "middle_length": 229}} {"prefix": " ->allowMediaHosts(['trusted.com', 'external.com'])\n ->allowRelativeLinks()\n ->allowRelativeMedias()\n ->forceHttpsUrls()\n );\n }\n\n #[DataProvider('provideSanitizeHead')]\n public function testSanitizeHead(string $input, string $expected)\n {\n $this->assertSame($expected, $this->createSanitizer()->sanitizeFor('head', $input));\n }\n\n public static function provideSanitizeHead()\n {\n $cases = [\n // Scrip", "suffix": "sheet\" href=\"http://trusted.com\" />',\n '<link rel=\"stylesheet\" href=\"https://trusted.com\" />',\n ],\n [\n '<link rel=\"stylesheet\" href=\"http://untrusted.com\" />',\n '<link rel=\"stylesheet\" />',", "middle": "ts\n [\n '<LINK REL=\"stylesheet\" HREF=\"javascript:alert(\\'XSS\\');\">',\n '<link rel=\"stylesheet\" />',\n ],\n\n // Normal tags\n [\n '<link rel=\"style", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerAllTest.php", "language": "php", "file_size": 22343, "cut_index": 1331, "middle_length": 229}} {"prefix": "Nɛdɛlande Antɛlia guuda',\n ],\n 'AOA' => [\n 'AOA',\n 'Angola Kwanza',\n ],\n 'ARS' => [\n 'ARS',\n 'Agɛntina peso',\n ],\n 'AUD' => [\n 'A$',\n 'Ɔstrelia Dɔla',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruba flɔrin',\n ],\n 'AZN' => [\n 'AZN',\n 'Azɛbagyan manat',\n ],\n 'BAM' => [\n 'BAM',\n 'Bɔsnia-Hɛzegɔvina nsesa maake',\n ", "suffix": "ɛv',\n ],\n 'BHD' => [\n 'BHD',\n 'Baren Dina',\n ],\n 'BIF' => [\n 'BIF',\n 'Burundi Frank',\n ],\n 'BMD' => [\n 'BMD',\n 'Bɛɛmuda dɔla',\n ],\n 'B", "middle": " ],\n 'BBD' => [\n 'BBD',\n 'Babadɔso dɔla',\n ],\n 'BDT' => [\n 'BDT',\n 'Bangladehye taka',\n ],\n 'BGN' => [\n 'BGN',\n 'Bɔɔgaria l", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ak.php", "language": "php", "file_size": 13400, "cut_index": 921, "middle_length": 229}} {"prefix": "php\n\nreturn [\n 'Names' => [\n 'ANG' => [\n 'ANG',\n 'নেদারল্যান্ডস অ্যান্টিলিয়ান গিল্ডার',\n ],\n 'AWG' => [\n 'AWG',\n 'আরুবান গিল্ডার',\n ],\n 'BMD' => [\n 'BMD',\n 'বারমুডান ডলার',\n ],\n 'GTQ' => [\n 'GTQ',\n 'গুয়াতেমালান কেৎসাল',\n ],\n 'HNL' => [\n 'HNL',\n 'হন্ডুরান লেম্পিরা',\n ],\n 'HTG' => [\n 'HTG',\n 'হাইতিয", "suffix": " ],\n 'MXN' => [\n 'MX$',\n 'মেক্সিকান পেসো',\n ],\n 'USD' => [\n '$',\n 'মার্কিন ডলার',\n ],\n 'XCD' => [\n 'EC$',\n 'পূর্ব ক্যারিবিয়ান ডলার',\n ],\n ]", "middle": "়ান গুর্দ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bn_IN.php", "language": "php", "file_size": 1093, "cut_index": 514, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Intl;\n\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\n\n/**\n * Gives access to language-related ICU data.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nfinal class Languages extends ResourceBundle\n{\n /**\n * Returns all available languages as two-letter codes.\n *\n * Languages are returned as lowercase ISO 639-1 two-letter language codes.\n * For lan", "suffix": " * @return string[] an array of canonical ISO 639-1 language codes\n */\n public static function getLanguageCodes(): array\n {\n return self::readEntry(['Languages'], 'meta');\n }\n\n public static function exists(string $language): bool\n ", "middle": "guages that don't have a two-letter code, the ISO 639-2\n * three-letter code is used instead.\n *\n * A full table of ISO 639 language codes can be found here:\n * http://www-01.sil.org/iso639-3/codes.asp\n *\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Languages.php", "language": "php", "file_size": 5622, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Util;\n\n/**\n * Facilitates the comparison of ICU version strings.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass IcuVersion\n{\n /**\n * Compares two ICU versions with an operator.\n *\n * This method is identical to {@link version_compare()}, except that you\n *", "suffix": " If no major version\n * is given, it is substituted by zero.\n *\n * Examples:\n *\n * IcuVersion::compare('1.2.3', '1.2.4', '==')\n * // => false\n *\n * IcuVersion::compare('1.2.3', '1.2.4', '==', 2)\n * // => ", "middle": " can pass the number of regarded version components in the last argument\n * $precision.\n *\n * Also, a single digit release version and a single digit major version\n * are contracted to a two digit release version.", "meta": {"filepath": "src/Symfony/Component/Intl/Util/IcuVersion.php", "language": "php", "file_size": 2853, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\HtmlSanitizer\\Visitor;\n\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitizerAction;\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitizerConfig;\nuse Symfony\\Component\\HtmlSanitizer\\TextSanitizer\\StringSanitizer;\nuse Symfony\\Component\\HtmlSanitizer\\Visitor\\AttributeSanitizer\\AttributeSanitizerInterface;\nuse Symfony\\Component\\HtmlSanitizer\\Visitor\\Model\\Cursor;\nuse Symfony\\Component\\HtmlSanitizer\\Visitor\\Node\\BlockedNode;\nuse Symfony\\Component\\HtmlSanitiz", "suffix": " the parsed DOM tree to build the sanitized tree.\n *\n * The DomVisitor iterates over the parsed DOM tree, visits its nodes and build\n * a sanitized tree with their attributes and content.\n *\n * @author Titouan Galopin <galopintitouan@gmail.com>\n *\n * @inte", "middle": "er\\Visitor\\Node\\DocumentNode;\nuse Symfony\\Component\\HtmlSanitizer\\Visitor\\Node\\Node;\nuse Symfony\\Component\\HtmlSanitizer\\Visitor\\Node\\NodeInterface;\nuse Symfony\\Component\\HtmlSanitizer\\Visitor\\Node\\TextNode;\n\n/**\n * Iterates over", "meta": {"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/DomVisitor.php", "language": "php", "file_size": 7660, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Util;\n\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Intl\\Exception\\RuntimeException;\n\n/**\n * @internal\n */\nfinal class GitRepository\n{\n public function __construct(\n private string $path,\n ) {\n $this->getUrl();\n }\n\n public static function downl", "suffix": " $filesystem->remove($targetDir);\n $filesystem->mkdir($targetDir);\n\n self::exec(\\sprintf('git clone %s %s', escapeshellarg($remote), escapeshellarg($targetDir)));\n }\n\n return new self(realpath($targetDir));\n }\n\n ", "middle": "oad(string $remote, string $targetDir): self\n {\n self::exec('which git', 'The command \"git\" is not installed.');\n\n $filesystem = new Filesystem();\n\n if (!$filesystem->exists($targetDir.'/.git')) {\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Util/GitRepository.php", "language": "php", "file_size": 2766, "cut_index": 563, "middle_length": 229}} {"prefix": "тыльскі гульдэн',\n ],\n 'AOA' => [\n 'AOA',\n 'ангольская кванза',\n ],\n 'ARS' => [\n 'ARS',\n 'аргенцінскае песа',\n ],\n 'AUD' => [\n 'A$',\n 'аўстралійскі долар',\n ],\n 'AWG' => [\n 'AWG',\n 'арубанскі фларын',\n ],\n 'AZN' => [\n 'AZN',\n 'азербайджанскі манат',\n ],\n 'BAM' => [\n 'BAM',\n 'канверсоўная марка Б", "suffix": "BGN',\n 'балгарскі леў',\n ],\n 'BHD' => [\n 'BHD',\n 'бахрэйнскі дынар',\n ],\n 'BIF' => [\n 'BIF',\n 'бурундзійскі франк',\n ],\n 'BMD' => [\n 'BMD',\n ", "middle": "осніі і Герцагавіны',\n ],\n 'BBD' => [\n 'BBD',\n 'барбадаскі долар',\n ],\n 'BDT' => [\n 'BDT',\n 'бангладэшская така',\n ],\n 'BGN' => [\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/be.php", "language": "php", "file_size": 15982, "cut_index": 921, "middle_length": 229}} {"prefix": "\n 'AON',\n 'Angolese nieuwe kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolese kwanza reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentynske austral',\n ],\n 'ARL' => [\n 'ARL',\n 'Argentynske peso ley (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Argentynske peso (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Arg", "suffix": " 'AU$',\n 'Australyske dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'Arubaanske gulden',\n ],\n 'AZM' => [\n 'AZM',\n 'Azerbeidzjaanske manat (1993–2006)',\n ],\n 'AZN' =", "middle": "entynske peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentynske peso',\n ],\n 'ATS' => [\n 'ATS',\n 'Eastenrykse schilling',\n ],\n 'AUD' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/fy.php", "language": "php", "file_size": 24231, "cut_index": 1331, "middle_length": 229}} {"prefix": " ],\n 'AON' => [\n 'AON',\n 'アンゴラ 新クワンザ (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'アンゴラ 旧クワンザ (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'アルゼンチン アゥストラール',\n ],\n 'ARL' => [\n 'ARL',\n 'アルゼンチン・ペソ・レイ(1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'アルゼンチン・ペソ(1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'アルゼンチン ペソ (1983–1985)',\n ", "suffix": " 'AWG' => [\n 'AWG',\n 'アルバ フロリン',\n ],\n 'AZM' => [\n 'AZM',\n 'アゼルバイジャン マナト (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'アゼルバイジャン マナト',\n ],\n 'BAD' => ", "middle": " ],\n 'ARS' => [\n 'ARS',\n 'アルゼンチン ペソ',\n ],\n 'ATS' => [\n 'ATS',\n 'オーストリア シリング',\n ],\n 'AUD' => [\n 'A$',\n 'オーストラリア ドル',\n ],\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ja.php", "language": "php", "file_size": 27369, "cut_index": 1331, "middle_length": 229}} {"prefix": "ilder Antilla Walanda',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza Angola',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso Argentina',\n ],\n 'AUD' => [\n 'A$',\n 'Dolar Australia',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin Aruban',\n ],\n 'AZN' => [\n 'AZN',\n 'Manat Azerbaijan',\n ],\n 'BAM' => [\n 'BAM',\n 'Mark Konvertibel Bosnia-Herzego", "suffix": "Lev Bulgaria',\n ],\n 'BHD' => [\n 'BHD',\n 'Bahrain Dinar',\n ],\n 'BIF' => [\n 'BIF',\n 'Franc Burundi',\n ],\n 'BMD' => [\n 'BMD',\n 'Dolar Bermuda',\n ", "middle": "vina',\n ],\n 'BBD' => [\n 'BBD',\n 'Dolar Barbadian',\n ],\n 'BDT' => [\n 'BDT',\n 'Taka Bangladesh',\n ],\n 'BGN' => [\n 'BGN',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/jv.php", "language": "php", "file_size": 12860, "cut_index": 921, "middle_length": 229}} {"prefix": "=> [\n 'AON',\n 'ანგოლური ახალი კვანზა (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'ანგოლური მიტოლებული კვანზა (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'არგენტინული აუსტრალი',\n ],\n 'ARP' => [\n 'ARP',\n 'არგენტინული პესო (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'არგენტინული პესო',\n ],\n 'ATS' => [\n 'ATS',\n 'ავსტრიული შილინ", "suffix": " 'აზერბაიჯანული მანათი (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'აზერბაიჯანული მანათი',\n ],\n 'BAD' => [\n 'BAD',\n 'ბოსნია-ჰერცოგოვინას დინარი',\n ],\n 'BAM' => [\n ", "middle": "გი',\n ],\n 'AUD' => [\n 'AUD',\n 'ავსტრალიური დოლარი',\n ],\n 'AWG' => [\n 'AWG',\n 'არუბანული გულდენი',\n ],\n 'AZM' => [\n 'AZM',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ka.php", "language": "php", "file_size": 28442, "cut_index": 1331, "middle_length": 229}} {"prefix": " Kiarabu',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza ya Angola',\n ],\n 'AUD' => [\n 'A$',\n 'Dola ya Australia',\n ],\n 'BHD' => [\n 'BHD',\n 'Dinari ya Bahareni',\n ],\n 'BIF' => [\n 'BIF',\n 'Faranga ya Burundi',\n ],\n 'BWP' => [\n 'BWP',\n 'Pula ya Botswana',\n ],\n 'CAD' => [\n 'CA$',\n 'Ndora ya Kananda',\n ],\n", "suffix": "a China',\n ],\n 'CVE' => [\n 'CVE',\n 'Eskudo ya Kepuvede',\n ],\n 'DJF' => [\n 'DJF',\n 'Faranga ya Jibuti',\n ],\n 'DZD' => [\n 'DZD',\n 'Dinari ya Aljeria',", "middle": " 'CDF' => [\n 'CDF',\n 'Faranga ya Kongo',\n ],\n 'CHF' => [\n 'CHF',\n 'Faranga ya Uswisi',\n ],\n 'CNY' => [\n 'CN¥',\n 'Yuan Renminbi y", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ki.php", "language": "php", "file_size": 4842, "cut_index": 614, "middle_length": 229}} {"prefix": " 'Нидерланд антиль гульдені',\n ],\n 'AOA' => [\n 'AOA',\n 'Ангола кванзасы',\n ],\n 'ARS' => [\n 'ARS',\n 'Аргентина песосы',\n ],\n 'AUD' => [\n 'A$',\n 'Аустралия доллары',\n ],\n 'AWG' => [\n 'AWG',\n 'Аруба флорині',\n ],\n 'AZN' => [\n 'AZN',\n 'Әзірбайжан манаты',\n ],\n 'BAM' => [\n 'BAM',\n 'Босния ", "suffix": "=> [\n 'BGN',\n 'Болгария леві',\n ],\n 'BHD' => [\n 'BHD',\n 'Бахрейн динары',\n ],\n 'BIF' => [\n 'BIF',\n 'Бурунди франкі',\n ],\n 'BMD' => [\n 'BM", "middle": "және Герцеговина айырбасталмалы маркасы',\n ],\n 'BBD' => [\n 'BBD',\n 'Барбадос доллары',\n ],\n 'BDT' => [\n 'BDT',\n 'Бангладеш такасы',\n ],\n 'BGN' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/kk.php", "language": "php", "file_size": 15810, "cut_index": 921, "middle_length": 229}} {"prefix": " 'نيدەرلاند انتيل گۋلدەنى',\n ],\n 'AOA' => [\n 'AOA',\n 'انگولا كۆانزاسى',\n ],\n 'ARS' => [\n 'ARS',\n 'ارگەنتينا پەسوسى',\n ],\n 'AUD' => [\n 'A$',\n 'اۋستراليا دوللارى',\n ],\n 'AWG' => [\n 'AWG',\n 'ارۋبا فلورينى',\n ],\n 'AZN' => [\n 'AZN',\n 'ءازىربايجان ماناتى',\n ],\n 'BAM' => [\n 'BAM',\n 'بوسنيا ج", "suffix": "=> [\n 'BGN',\n 'ڭولگاريا لەۆى',\n ],\n 'BHD' => [\n 'BHD',\n 'باحرەين دينارى',\n ],\n 'BIF' => [\n 'BIF',\n 'بۋرۋندي فرانكى',\n ],\n 'BMD' => [\n 'BM", "middle": "انە گەرتسەگوۆينا ايىرباستالمالى ماركاسى',\n ],\n 'BBD' => [\n 'BBD',\n 'باربادوس دوللارى',\n ],\n 'BDT' => [\n 'BDT',\n 'بانگلادەش تاكاسى',\n ],\n 'BGN' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/kk_Arab.php", "language": "php", "file_size": 15119, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ហ្គីលឌ័រអាំងទីលហូឡង់',\n ],\n 'AOA' => [\n 'AOA',\n 'ក្វាន់ហ្សា​អង់ហ្គោឡា',\n ],\n 'ARS' => [\n 'ARS',\n 'ប៉េសួអាហ្សង់ទីន',\n ],\n 'AUD' => [\n 'A$',\n 'ដុល្លារ​អូស្ត្រាលី',\n ],\n 'AWG' => [\n 'AWG',\n 'ហ្វ្រ័ររិញ​អារ៉ូបា',\n ],\n 'AZN' => [\n 'AZN',\n 'ម៉ាណាត​អាស៊ែបៃហ្សង់',\n ],\n 'BAM' => [\n 'BAM',\n 'ម៉ាក​អាច​", "suffix": " 'លីវ​ប៊ុលហ្គារី',\n ],\n 'BHD' => [\n 'BHD',\n 'ឌីណា​បារ៉ែន',\n ],\n 'BIF' => [\n 'BIF',\n 'ហ្វ្រង់​ប៊ូរុនឌី',\n ],\n 'BMD' => [\n 'BMD',\n 'ដុល្លារ", "middle": "បម្លែង​បាន​បូស្នី',\n ],\n 'BBD' => [\n 'BBD',\n 'ដុល្លារ​បាបាដុស',\n ],\n 'BDT' => [\n 'BDT',\n 'តាកា​បង់ក្លាដែស',\n ],\n 'BGN' => [\n 'BGN',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/km.php", "language": "php", "file_size": 18447, "cut_index": 921, "middle_length": 229}} {"prefix": "',\n 'ನೆದರ್ಲೆಂಡ್ಸ್ ಆಂಟಿಲಿಯನ್ ಗಿಲ್ಡರ್',\n ],\n 'AOA' => [\n 'AOA',\n 'ಅಂಗೋಲಾದ ಕ್ವಾನ್ಝಾ',\n ],\n 'ARS' => [\n 'ARS',\n 'ಅರ್ಜೆಂಟಿನಾ ಪೆಸೊ',\n ],\n 'AUD' => [\n 'A$',\n 'ಆಸ್ಟ್ರೇಲಿಯನ್ ಡಾಲರ್‌',\n ],\n 'AWG' => [\n 'AWG',\n 'ಅರುಬನ್ ಫ್ಲೊರೀನ್‌‌',\n ],\n 'AZN' => [\n 'AZN',\n 'ಅಝರ್‌ಬೈಜಾನಿ ಮನಾತ್',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": "'BGN' => [\n 'BGN',\n 'ಬಲ್ಗೇರಿಯನ್ ಲೆವ್',\n ],\n 'BHD' => [\n 'BHD',\n 'ಬಹ್‌‌ರೈನಿ ದಿನಾರ್',\n ],\n 'BIF' => [\n 'BIF',\n 'ಬುರುಂದಿಯನ್ ಫ್ರಾಂಕ್',\n ],\n 'BMD' => [\n ", "middle": " 'ಬೋಸ್ನಿಯಾ-ಹರ್ಜ್‌ಗೋವಿನ ಪರಿವರ್ತನೀಯ ಗುರುತು',\n ],\n 'BBD' => [\n 'BBD',\n 'ಬರ್ಬಾಡಿಯನ್ ಡಾಲರ್',\n ],\n 'BDT' => [\n 'BDT',\n 'ಬಾಂಗ್ಲಾದೇಶದ ಟಾಕಾ',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/kn.php", "language": "php", "file_size": 18774, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AOR',\n '앙골라 재조정 콴자 (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n '아르헨티나 오스트랄',\n ],\n 'ARL' => [\n 'ARL',\n '아르헨티나 페소 레이 (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n '아르헨티나 페소 (18810–1970)',\n ],\n 'ARP' => [\n 'ARP',\n '아르헨티나 페소 (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n '아르헨티나 페소',\n ],\n 'ATS' => [\n 'ATS',\n ", "suffix": "젠 마나트(1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n '아제르바이잔 마나트',\n ],\n 'BAD' => [\n 'BAD',\n '보스니아-헤르체고비나 디나르',\n ],\n 'BAM' => [\n 'BAM',\n '보스니아-헤르체고비나 태환 마르크',", "middle": " '호주 실링',\n ],\n 'AUD' => [\n 'AU$',\n '호주 달러',\n ],\n 'AWG' => [\n 'AWG',\n '아루바 플로린',\n ],\n 'AZM' => [\n 'AZM',\n '아제르바이", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ko.php", "language": "php", "file_size": 24927, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'أرجَنٹیٖن پِسو',\n ],\n 'ATS' => [\n 'ATS',\n 'آسٹریَن شِلِنگ',\n ],\n 'AUD' => [\n 'A$',\n 'آسٹریلِیَن ڈالَر',\n ],\n 'AWG' => [\n 'AWG',\n 'اَروبَن فِلورِن',\n ],\n 'AZN' => [\n 'AZN',\n 'آزَرباجانی مَنَٹ',\n ],\n 'BAD' => [\n 'BAD',\n 'بوزنِیاہَرزِگووِنا دیٖنار',\n ],\n 'BAM' => [\n 'BAM',\n 'بوزنِیاہَرز", "suffix": " 'BEF',\n 'بَلجِیَن فرینک',\n ],\n 'BGN' => [\n 'BGN',\n 'بیلگیرِیَن ہاڑ لِو',\n ],\n 'BHD' => [\n 'BHD',\n 'بحریٖنی دیٖنار',\n ],\n 'BIF' => [\n 'BIF',\n ", "middle": "ِگووِنا کَنوٲٹیبٕل مارٕک',\n ],\n 'BBD' => [\n 'BBD',\n 'بابیڑِیَن ڈالَر',\n ],\n 'BDT' => [\n 'BDT',\n 'بَنگلادیٖشی ٹَکا',\n ],\n 'BEF' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ks.php", "language": "php", "file_size": 23717, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AOK' => [\n 'AOK',\n 'kwanzayê angolayî (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'kwanzayê nû ya angolayî (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'kwanza reajustadoyê angolayî (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'australê arjantînî',\n ],\n 'ARL' => [\n 'ARL',\n 'peso leyê arjantînî (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n ", "suffix": " 'ATS' => [\n 'ATS',\n 'şîllîngê awistiryayî',\n ],\n 'AUD' => [\n 'A$',\n 'dolarê awistralyayî',\n ],\n 'AWG' => [\n 'AWG',\n 'florînê arubayî',\n ],\n '", "middle": " 'pesoyê arjantînî (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'pesoyê arjantînî (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'pesoyê arjantînî',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ku.php", "language": "php", "file_size": 26120, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'нидерланд-антил гулдени',\n ],\n 'AOA' => [\n 'AOA',\n 'Ангола кванзасы',\n ],\n 'ARS' => [\n 'ARS',\n 'аргентина песосу',\n ],\n 'AUD' => [\n 'AUD',\n 'Австралия доллары',\n ],\n 'AWG' => [\n 'AWG',\n 'аруба флорини',\n ],\n 'AZN' => [\n 'AZN',\n 'Азербайжан манаты',\n ],\n 'BAM' => [\n 'BAM',\n 'босния-гер", "suffix": "\n 'BGN',\n 'болгар левиси',\n ],\n 'BHD' => [\n 'BHD',\n 'Бахрейн динары',\n ],\n 'BIF' => [\n 'BIF',\n 'Бурунди франкы',\n ],\n 'BMD' => [\n 'BMD',\n", "middle": "цоговина конвертациялануучу маркасы',\n ],\n 'BBD' => [\n 'BBD',\n 'барбадос доллары',\n ],\n 'BDT' => [\n 'BDT',\n 'Бангладеш такасы',\n ],\n 'BGN' => [", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ky.php", "language": "php", "file_size": 15704, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AON',\n 'Angolaneschen Neie Kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolanesche Kwanza Reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentineschen Austral',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentinesche Peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentinesche Peso',\n ],\n 'ATS' => [\n 'öS',\n 'Éisträichesche Sc", "suffix": " 'Aserbaidschan-Manat (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'Aserbaidschan-Manat',\n ],\n 'BAD' => [\n 'BAD',\n 'Bosnien an Herzegowina Dinar (1992–1994)',\n ],\n 'BAM' => ", "middle": "hilling',\n ],\n 'AUD' => [\n 'AU$',\n 'Australeschen Dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruba-Florin',\n ],\n 'AZM' => [\n 'AZM',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lb.php", "language": "php", "file_size": 22868, "cut_index": 1331, "middle_length": 229}} {"prefix": "ti',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza ey’Angola',\n ],\n 'AUD' => [\n 'A$',\n 'Doola ey’Awusiturelya',\n ],\n 'BHD' => [\n 'BHD',\n 'Dinaali ey’eBaareeni',\n ],\n 'BIF' => [\n 'BIF',\n 'Faranga ey’eburundi',\n ],\n 'BWP' => [\n 'BWP',\n 'Pula ey’eBotiswana',\n ],\n 'CAD' => [\n 'CA$',\n 'Doola ey’eKanada',\n ", "suffix": "ni Reniminibi ey’eCayina',\n ],\n 'CVE' => [\n 'CVE',\n 'Esikudo ey’Keepu Veredi',\n ],\n 'DJF' => [\n 'DJF',\n 'Faranga ey’eJjibuti',\n ],\n 'DZD' => [\n 'DZD',\n ", "middle": "],\n 'CDF' => [\n 'CDF',\n 'Faranga ey’eKongo',\n ],\n 'CHF' => [\n 'CHF',\n 'Faranga ey’eSwitizirandi',\n ],\n 'CNY' => [\n 'CN¥',\n 'Yuwa", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lg.php", "language": "php", "file_size": 5167, "cut_index": 614, "middle_length": 229}} {"prefix": " alabo',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza ya Angóla',\n ],\n 'AUD' => [\n 'A$',\n 'Dolarɛ ya Ositali',\n ],\n 'BHD' => [\n 'BHD',\n 'Dinarɛ ya Bahrɛnɛ',\n ],\n 'BIF' => [\n 'BIF',\n 'Falánga ya Burundi',\n ],\n 'BWP' => [\n 'BWP',\n 'Pula ya Botswana',\n ],\n 'CAD' => [\n 'CA$',\n 'Dolarɛ ya Kanadá',\n ],\n ", "suffix": "nɛ',\n ],\n 'CVE' => [\n 'CVE',\n 'Esikudo ya Kapevɛrɛ',\n ],\n 'DJF' => [\n 'DJF',\n 'Falánga ya Dzibuti',\n ],\n 'DZD' => [\n 'DZD',\n 'Dinarɛ ya Alizeri',\n ", "middle": " 'CDF' => [\n 'FC',\n 'Falánga ya Kongó',\n ],\n 'CHF' => [\n 'CHF',\n 'Falánga ya Swisɛ',\n ],\n 'CNY' => [\n 'CN¥',\n 'Yuanɛ Renminbi ya Si", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ln.php", "language": "php", "file_size": 4994, "cut_index": 614, "middle_length": 229}} {"prefix": " 'AON' => [\n 'AON',\n 'ກວານຊາ ແອງໂກລາ ໃໝ່ (1995–1999)',\n ],\n 'AOR' => [\n 'AOR',\n 'ກວານຊາກທີ່ແກ້ໄຂໃໝ່ ແອງກູລາ (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'ອອສຕຣານ ອາກຊັງຕິນ',\n ],\n 'ARL' => [\n 'ARL',\n 'ເປໂຊເລ ອາກຊັງຕິນ (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'ເປໂຊ ອາກຊັງຕິນ (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'ເ", "suffix": " 'A$',\n 'ອອສ​ເຕຣ​ລຽນ ໂດ​ລ່າ',\n ],\n 'AWG' => [\n 'AWG',\n 'ອະຣູແບນ ຟລໍຣິນ',\n ],\n 'AZM' => [\n 'AZM',\n 'ມານັດ ອາແຊກບາຍຊານ (1993–2006)',\n ],\n 'AZN' => [\n ", "middle": "ປໂຊ ອາກຊັງຕິນ (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'ອາ​ເຈນ​ທິ​ນາ ເປ​ໂຊ',\n ],\n 'ATS' => [\n 'ATS',\n 'ຊິລລິງ ອົດສະຕາລີ',\n ],\n 'AUD' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lo.php", "language": "php", "file_size": 32792, "cut_index": 1331, "middle_length": 229}} {"prefix": "'AOK' => [\n 'AOK',\n 'Angolos kvanza (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'Angolos naujoji kvanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolos patikslinta kvanza (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentinos australs',\n ],\n 'ARL' => [\n 'ARL',\n 'Argentinos pesos ley (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n ", "suffix": "'ATS' => [\n 'ATS',\n 'Austrijos šilingas',\n ],\n 'AUD' => [\n 'AUD',\n 'Australijos doleris',\n ],\n 'AWG' => [\n 'AWG',\n 'Arubos guldenas',\n ],\n 'AZM' => ", "middle": " 'Argentinos pesai (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentinos pesas (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentinos pesas',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lt.php", "language": "php", "file_size": 25219, "cut_index": 1331, "middle_length": 229}} {"prefix": "alabu',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza wa Angola',\n ],\n 'AUD' => [\n 'A$',\n 'Ndola wa Ositali',\n ],\n 'BHD' => [\n 'BHD',\n 'Ndina wa Bahrene',\n ],\n 'BIF' => [\n 'BIF',\n 'Nfalanga wa Bulundi',\n ],\n 'BWP' => [\n 'BWP',\n 'Pula wa Botswana',\n ],\n 'CAD' => [\n 'CA$',\n 'Ndola wa Kanada',\n ],\n ", "suffix": "ne',\n ],\n 'CVE' => [\n 'CVE',\n 'Esikuludo wa Kapevere',\n ],\n 'DJF' => [\n 'DJF',\n 'Nfalanga wa Dzibuti',\n ],\n 'DZD' => [\n 'DZD',\n 'Ndina wa Alijeri',\n", "middle": " 'CDF' => [\n 'FC',\n 'Nfalanga wa Kongu',\n ],\n 'CHF' => [\n 'CHF',\n 'Nfalanga wa Swise',\n ],\n 'CNY' => [\n 'CN¥',\n 'Yuani Renminbi wa Shi", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lu.php", "language": "php", "file_size": 4913, "cut_index": 614, "middle_length": 229}} {"prefix": "\n 'Nīderlandes Antiļu guldenis',\n ],\n 'AOA' => [\n 'AOA',\n 'Angolas kvanza',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentīnas peso',\n ],\n 'ATS' => [\n 'ATS',\n 'Austrijas šiliņš',\n ],\n 'AUD' => [\n 'AU$',\n 'Austrālijas dolārs',\n ],\n 'AWG' => [\n 'AWG',\n 'Arubas guldenis',\n ],\n 'AZM' => [\n 'AZM',\n 'Aze", "suffix": " ],\n 'BBD' => [\n 'BBD',\n 'Barbadosas dolārs',\n ],\n 'BDT' => [\n 'BDT',\n 'Bangladešas taka',\n ],\n 'BEF' => [\n 'BEF',\n 'Beļģijas franks',\n ],\n ", "middle": "rbaidžānas manats (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'Azerbaidžānas manats',\n ],\n 'BAM' => [\n 'BAM',\n 'Bosnijas un Hercogovinas konvertējamā marka',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lv.php", "language": "php", "file_size": 16765, "cut_index": 921, "middle_length": 229}} {"prefix": " 'SDD',\n 'SDG',\n 'SDP',\n 'SEK',\n 'SGD',\n 'SHP',\n 'SIT',\n 'SKK',\n 'SLE',\n 'SLL',\n 'SOS',\n 'SRD',\n 'SRG',\n 'SSP',\n 'STD',\n 'STN',\n 'SUR',\n 'SVC',\n 'SYP',\n 'SZL',\n 'THB',\n 'TJR',\n 'TJS',\n 'TMM',\n 'TMT',\n 'TND',\n 'TOP',\n 'TPE',\n 'TRL',\n 'TRY',\n 'TTD',\n 'TWD',\n 'TZS',\n 'UAH',\n ", "suffix": " 'VND',\n 'VNN',\n 'VUV',\n 'WST',\n 'XAF',\n 'XCD',\n 'XCG',\n 'XEU',\n 'XFO',\n 'XFU',\n 'XOF',\n 'XPF',\n 'XRE',\n 'YDD',\n 'YER',\n 'YUD',\n 'YUM',\n ", "middle": " 'UAK',\n 'UGS',\n 'UGX',\n 'USD',\n 'USN',\n 'USS',\n 'UYI',\n 'UYP',\n 'UYU',\n 'UYW',\n 'UZS',\n 'VEB',\n 'VED',\n 'VEF',\n 'VES',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/meta.php", "language": "php", "file_size": 89523, "cut_index": 3790, "middle_length": 229}} {"prefix": ",\n 'AOA' => [\n 'AOA',\n 'kwanza angoley',\n ],\n 'AUD' => [\n 'A$',\n 'Dolara aostralianina',\n ],\n 'BHD' => [\n 'BHD',\n 'dinar bahreïni',\n ],\n 'BIF' => [\n 'BIF',\n 'Farantsa Borondi',\n ],\n 'BWP' => [\n 'BWP',\n 'Pola botsoaney',\n ],\n 'CAD' => [\n 'CA$',\n 'Dôlara Kanadianina',\n ],\n 'CDF' => [\n ", "suffix": "CVE' => [\n 'CVE',\n 'Escudo',\n ],\n 'DJF' => [\n 'DJF',\n 'Farantsa Djibotianina',\n ],\n 'DZD' => [\n 'DZD',\n 'Dinara alzerianina',\n ],\n 'EGP' => [\n ", "middle": " 'CDF',\n 'Farantsa kôngôley',\n ],\n 'CHF' => [\n 'CHF',\n 'Farantsa soisa',\n ],\n 'CNY' => [\n 'CN¥',\n 'Yoan sinoa Renminbi',\n ],\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/mg.php", "language": "php", "file_size": 4851, "cut_index": 614, "middle_length": 229}} {"prefix": "tiri Hōrana',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza Anakora',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso Āketina',\n ],\n 'AUD' => [\n 'A$',\n 'Tāra Ahitereiria',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin Arūpa',\n ],\n 'AZN' => [\n 'AZN',\n 'Manat Atepaihānia',\n ],\n 'BAM' => [\n 'BAM',\n 'Mark Pōngia-Herekōwini takahuri',\n ", "suffix": "\n ],\n 'BHD' => [\n 'BHD',\n 'Dinar Pāreina',\n ],\n 'BIF' => [\n 'BIF',\n 'Franc Puruniti',\n ],\n 'BMD' => [\n 'BMD',\n 'Tāra Pāmura',\n ],\n 'BN", "middle": " ],\n 'BBD' => [\n 'BBD',\n 'Tāra Papatohe',\n ],\n 'BDT' => [\n 'BDT',\n 'Taka Pākaratēhi',\n ],\n 'BGN' => [\n 'BGN',\n 'Leva Purukāria',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/mi.php", "language": "php", "file_size": 12739, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AON',\n 'Анголска нова Кванза (1990–2000)',\n ],\n 'ARP' => [\n 'ARP',\n 'Аргентински Пезос (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Аргентински пезос',\n ],\n 'ATS' => [\n 'ATS',\n 'Австралиски Шилинг',\n ],\n 'AUD' => [\n 'AUD',\n 'Австралиски долар',\n ],\n 'AWG' => [\n 'AWG',\n 'Арубиски флорин',\n ],\n 'AZN' =>", "suffix": "а конвертибилна марка',\n ],\n 'BBD' => [\n 'BBD',\n 'Барбадоски долар',\n ],\n 'BDT' => [\n 'BDT',\n 'Бангладешка така',\n ],\n 'BEC' => [\n 'BEC',\n 'Белгиски", "middle": " [\n 'AZN',\n 'Азербејџански манат',\n ],\n 'BAD' => [\n 'BAD',\n 'Босанско-Херцеговски Динар',\n ],\n 'BAM' => [\n 'BAM',\n 'Босанско-херцеговск", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/mk.php", "language": "php", "file_size": 22643, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AON',\n 'അംഗോളൻ ‍ന്യൂ ക്വാൻസ (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'അംഗോളൻ ‍ക്വാൻസ റിയാജസ്റ്റാഡോ (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'അർജൻറീൻ ഓസ്ട്രൽ',\n ],\n 'ARP' => [\n 'ARP',\n 'അർജൻറീൻ പെയ്സോ (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'അർജന്റീൻ പെസോ',\n ],\n 'ATS' => [\n 'ATS',\n 'ഓസ്ട്രേലിയൻ ഷില്ലിംഗ്',\n ],\n", "suffix": "993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'അസർബൈജാനി മനത്',\n ],\n 'BAD' => [\n 'BAD',\n 'ബോസ്നിയ-ഹെർസഗോവിന ദിനാർ',\n ],\n 'BAM' => [\n 'BAM',\n 'ബോസ്‌നിയ-ഹെർസഗോ", "middle": " 'AUD' => [\n 'A$',\n 'ഓസ്ട്രേലിയൻ ഡോളർ',\n ],\n 'AWG' => [\n 'AWG',\n 'അറൂബൻ ഫ്ലോറിൻ',\n ],\n 'AZM' => [\n 'AZM',\n 'അസർബയ്ജാനിയൻ മനത് (1", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ml.php", "language": "php", "file_size": 31159, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Нидерландын Антиллийн гулдер',\n ],\n 'AOA' => [\n 'AOA',\n 'Анголын кванза',\n ],\n 'ARS' => [\n 'ARS',\n 'Аргентины песо',\n ],\n 'AUD' => [\n 'A$',\n 'Австралийн доллар',\n ],\n 'AWG' => [\n 'AWG',\n 'Арубын флорин',\n ],\n 'AZN' => [\n 'AZN',\n 'Азербайжаны манат',\n ],\n 'BAM' => [\n 'BAM',\n 'Босни-Герцег", "suffix": "',\n 'Болгарын лев',\n ],\n 'BHD' => [\n 'BHD',\n 'Бахрейн динар',\n ],\n 'BIF' => [\n 'BIF',\n 'Бурундийн франк',\n ],\n 'BMD' => [\n 'BMD',\n 'Берму", "middle": "овины хөрвөгч марк',\n ],\n 'BBD' => [\n 'BBD',\n 'барбадос доллар',\n ],\n 'BDT' => [\n 'BDT',\n 'Бангладешийн така',\n ],\n 'BGN' => [\n 'BGN", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/mn.php", "language": "php", "file_size": 15831, "cut_index": 921, "middle_length": 229}} {"prefix": " 'șiling austriac',\n ],\n 'AUD' => [\n 'AUD',\n 'dolar australian',\n ],\n 'AWG' => [\n 'AWG',\n 'florin aruban',\n ],\n 'AZM' => [\n 'AZM',\n 'manat azer (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'manat azer',\n ],\n 'BAD' => [\n 'BAD',\n 'dinar Bosnia-Herțegovina (1992–1994)',\n ],\n 'BAM' => [\n 'BAM',\n '", "suffix": " 'BEC',\n 'franc belgian (convertibil)',\n ],\n 'BEF' => [\n 'BEF',\n 'franc belgian',\n ],\n 'BEL' => [\n 'BEL',\n 'franc belgian (financiar)',\n ],\n 'BGN' => [\n ", "middle": "marcă convertibilă',\n ],\n 'BBD' => [\n 'BBD',\n 'dolar din Barbados',\n ],\n 'BDT' => [\n 'BDT',\n 'taka din Bangladesh',\n ],\n 'BEC' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/mo.php", "language": "php", "file_size": 20132, "cut_index": 1331, "middle_length": 229}} {"prefix": "नेदरलँडचा अँटिलीन गिल्डर',\n ],\n 'AOA' => [\n 'AOA',\n 'अँगोलन क्वॅन्झा',\n ],\n 'ARS' => [\n 'ARS',\n 'अर्जेंटाइन पेसो',\n ],\n 'AUD' => [\n 'A$',\n 'ऑस्ट्रेलियन डॉलर',\n ],\n 'AWG' => [\n 'AWG',\n 'अरुबा फ्लोरिन',\n ],\n 'AZN' => [\n 'AZN',\n 'अझरबैझानी मानाट',\n ],\n 'BAM' => [\n 'BAM',\n 'बोस्निया-हर्जेगोविना विनि", "suffix": " 'बल्गेरियन लेव',\n ],\n 'BHD' => [\n 'BHD',\n 'बाहरिनी दिनार',\n ],\n 'BIF' => [\n 'BIF',\n 'बुरुंडियन फ्रँक',\n ],\n 'BMD' => [\n 'BMD',\n 'बर्मुडा डॉलर',\n ", "middle": "मय मार्क',\n ],\n 'BBD' => [\n 'BBD',\n 'बार्बाडियन डॉलर',\n ],\n 'BDT' => [\n 'BDT',\n 'बांगलादेशी टका',\n ],\n 'BGN' => [\n 'BGN',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/mr.php", "language": "php", "file_size": 17861, "cut_index": 921, "middle_length": 229}} {"prefix": " 'Guilder Antillen Belanda',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza Angola',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso Argentina',\n ],\n 'AUD' => [\n 'A$',\n 'Dolar Australia',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin Aruba',\n ],\n 'AZN' => [\n 'AZN',\n 'Manat Azerbaijan',\n ],\n 'BAM' => [\n 'BAM',\n 'Mark Boleh Tukar Bosnia-H", "suffix": " 'Lev Bulgaria',\n ],\n 'BHD' => [\n 'BHD',\n 'Dinar Bahrain',\n ],\n 'BIF' => [\n 'BIF',\n 'Franc Burundi',\n ],\n 'BMD' => [\n 'BMD',\n 'Dolar Bermuda',\n ", "middle": "erzegovina',\n ],\n 'BBD' => [\n 'BBD',\n 'Dolar Barbados',\n ],\n 'BDT' => [\n 'BDT',\n 'Taka Bangladesh',\n ],\n 'BGN' => [\n 'BGN',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ms.php", "language": "php", "file_size": 13990, "cut_index": 921, "middle_length": 229}} {"prefix": "Af',\n 'နယ်သာလန် အန်တီလန် ဂင်းဒါး',\n ],\n 'AOA' => [\n 'AOA',\n 'အန်ဂိုလာ ကွမ်ဇာ',\n ],\n 'ARP' => [\n 'ARP',\n 'အာဂျင်တီးနား ပီဆို (၁၉၈၃–၁၉၈၅)',\n ],\n 'ARS' => [\n 'ARS',\n 'အာဂျင်တီးနား ပီဆို',\n ],\n 'AUD' => [\n 'A$',\n 'ဩစတြေးလျ ဒေါ်လာ',\n ],\n 'AWG' => [\n 'Afl',\n 'အရူးဗာ ဖလိုရင်း',\n ],\n 'AZN' => [\n 'AZN',\n", "suffix": "',\n ],\n 'BDT' => [\n 'BDT',\n 'ဘင်္ဂလားဒေ့ရှ် တာကာ',\n ],\n 'BEF' => [\n 'BEF',\n 'ဘယ်လ်ဂျီယမ် ဖရန့်',\n ],\n 'BGN' => [\n 'BGN',\n 'ဘူလ်ဂေးရီးယား လက်ဖ်',\n ", "middle": " 'အဇာဘိုင်ဂျန် မာနတ်',\n ],\n 'BAM' => [\n 'BAM',\n 'ဘော့စနီးယားနှင့် ဟာဇီဂိုဘီးနား ငွေလဲနိုင်သော မတ်က်',\n ],\n 'BBD' => [\n 'BBD',\n 'ဘာဘေးဒိုးစ် ဒေါ်လာ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/my.php", "language": "php", "file_size": 20824, "cut_index": 921, "middle_length": 229}} {"prefix": " ],\n 'AOA' => [\n 'AOA',\n 'Kwanza yase Angola',\n ],\n 'AUD' => [\n 'A$',\n 'Dola yase Australia',\n ],\n 'BHD' => [\n 'BHD',\n 'Dinari yase Bhahareni',\n ],\n 'BIF' => [\n 'BIF',\n 'Fulenki yase Bhurundi',\n ],\n 'BWP' => [\n 'BWP',\n 'Phula yase Botswana',\n ],\n 'CAD' => [\n 'CA$',\n 'Dola yase Khanada',\n ],", "suffix": "nbi yase China',\n ],\n 'CVE' => [\n 'CVE',\n 'Escudo Caboverdiano',\n ],\n 'DJF' => [\n 'DJF',\n 'Fulenki yase Jibhuthi',\n ],\n 'DZD' => [\n 'DZD',\n 'Dinali ", "middle": "\n 'CDF' => [\n 'CDF',\n 'Fulenki yase Khongo',\n ],\n 'CHF' => [\n 'CHF',\n 'Fulenki yase Swisi',\n ],\n 'CNY' => [\n 'CN¥',\n 'Yuan Renmi", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/nd.php", "language": "php", "file_size": 5045, "cut_index": 614, "middle_length": 229}} {"prefix": " 'आर्मेनियाली ड्राम',\n ],\n 'ANG' => [\n 'ANG',\n 'नेदरल्याण्ड्स एन्टिलियन गिल्डर',\n ],\n 'AOA' => [\n 'AOA',\n 'एङ्गोलान क्वान्जा',\n ],\n 'ARS' => [\n 'ARS',\n 'अर्जेन्टिनी पेसो',\n ],\n 'AUD' => [\n 'A$',\n 'अष्ट्रेलियन डलर',\n ],\n 'AWG' => [\n 'AWG',\n 'आरूबन फ्लोरिन',\n ],\n 'AZN' => [\n 'AZN',\n 'अजरबैजा", "suffix": " 'BDT',\n 'बङ्गलादेशी टाका',\n ],\n 'BGN' => [\n 'BGN',\n 'बुल्गारियाली लेभ',\n ],\n 'BHD' => [\n 'BHD',\n 'बाहारैनी डिनार',\n ],\n 'BIF' => [\n 'BIF',\n ", "middle": "नी मानात',\n ],\n 'BAM' => [\n 'BAM',\n 'बोस्निया-हर्जगोभिनिया रूपान्तरयोग्य मार्क',\n ],\n 'BBD' => [\n 'BBD',\n 'बर्बाडियन डलर',\n ],\n 'BDT' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ne.php", "language": "php", "file_size": 18727, "cut_index": 921, "middle_length": 229}} {"prefix": "\nreturn [\n 'Names' => [\n 'BMD' => [\n 'BMD',\n 'Bermudian Dollar',\n ],\n 'BYB' => [\n 'BYB',\n 'Belarusian New Rouble (1994–1999)',\n ],\n 'BYR' => [\n 'BYR',\n 'Belarusian Rouble (2000–2016)',\n ],\n 'CAD' => [\n '$',\n 'Canadian Dollar',\n ],\n 'JPY' => [\n 'JP¥',\n 'Japanese Yen',\n ],\n 'LVR' => [\n 'LVR',\n 'Latvia", "suffix": "TN',\n 'São Tomé and Príncipe Dobra',\n ],\n 'TJR' => [\n 'TJR',\n 'Tajikistani Rouble',\n ],\n 'TTD' => [\n 'TTD',\n 'Trinidad and Tobago Dollar',\n ],\n 'USD' => [\n ", "middle": "n Rouble',\n ],\n 'RUR' => [\n 'RUR',\n 'Russian Rouble (1991–1998)',\n ],\n 'SHP' => [\n 'SHP',\n 'Saint Helena Pound',\n ],\n 'STN' => [\n 'S", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/en_CA.php", "language": "php", "file_size": 1155, "cut_index": 518, "middle_length": 229}} {"prefix": " 'nederlandantila guldeno',\n ],\n 'AOA' => [\n 'AOA',\n 'angola kvanzo',\n ],\n 'ARS' => [\n 'ARS',\n 'argentina peso',\n ],\n 'AUD' => [\n 'AUD',\n 'aŭstralia dolaro',\n ],\n 'AWG' => [\n 'AWG',\n 'aruba floreno',\n ],\n 'AZN' => [\n 'AZN',\n 'azerbajĝana manato',\n ],\n 'BAM' => [\n 'BAM',\n 'konvertebla ma", "suffix": " 'BGN',\n 'bulgara levo',\n ],\n 'BHD' => [\n 'BHD',\n 'barejna dinaro',\n ],\n 'BIF' => [\n 'BIF',\n 'burunda franko',\n ],\n 'BMD' => [\n 'BMD',\n ", "middle": "rko de Bosnujo kaj Hercegovino',\n ],\n 'BBD' => [\n 'BBD',\n 'barbada dolaro',\n ],\n 'BDT' => [\n 'BDT',\n 'bangladeŝa tako',\n ],\n 'BGN' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/eo.php", "language": "php", "file_size": 12671, "cut_index": 921, "middle_length": 229}} {"prefix": "hp\n\nreturn [\n 'Names' => [\n 'ANG' => [\n 'ANG',\n 'florín de las Antillas Neerlandesas',\n ],\n 'BMD' => [\n 'BMD',\n 'dólar de Bermudas',\n ],\n 'EUR' => [\n 'EUR',\n 'euro',\n ],\n 'HTG' => [\n 'HTG',\n 'gourde haitiano',\n ],\n 'KZT' => [\n 'KZT',\n 'tenge kazajo',\n ],\n 'MWK' => [\n 'MWK',\n 'kwacha malauí',\n ", "suffix": ",\n ],\n 'THB' => [\n 'THB',\n 'baht tailandes',\n ],\n 'USD' => [\n 'USD',\n 'dólar estadounidense',\n ],\n 'UZS' => [\n 'UZS',\n 'som uzbeko',\n ],\n ", "middle": " ],\n 'NIO' => [\n 'NIO',\n 'córdoba nicaragüense',\n ],\n 'SLE' => [\n 'SLE',\n 'leone',\n ],\n 'SLL' => [\n 'SLL',\n 'leones (1964—2022)'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/es_419.php", "language": "php", "file_size": 1094, "cut_index": 515, "middle_length": 229}} {"prefix": " 'پزوی آرژانتین (۱۸۸۱ تا ۱۹۷۰)',\n ],\n 'ARP' => [\n 'ARP',\n 'پزوی آرژانتین (۱۹۸۳ تا ۱۹۸۵)‏',\n ],\n 'ARS' => [\n 'ARS',\n 'پزوی آرژانتین',\n ],\n 'ATS' => [\n 'ATS',\n 'شیلینگ اتریش',\n ],\n 'AUD' => [\n 'A$',\n 'دلار استرالیا',\n ],\n 'AWG' => [\n 'AWG',\n 'فلورین آروبا',\n ],\n 'AZM' => [\n 'AZM',\n 'منات جمهور", "suffix": " 'BAM' => [\n 'BAM',\n 'مارک تبدیل‌پذیر بوسنی و هرزگوین',\n ],\n 'BBD' => [\n 'BBD',\n 'دلار باربادوس',\n ],\n 'BDT' => [\n 'BDT',\n 'تاکای بنگلادش',\n ],\n ", "middle": "ی آذربایجان (۱۹۹۳ تا ۲۰۰۶)',\n ],\n 'AZN' => [\n 'AZN',\n 'منات جمهوری آذربایجان',\n ],\n 'BAD' => [\n 'BAD',\n 'دینار بوسنی و هرزگوین (۱۹۹۲ تا ۱۹۹۴)',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/fa.php", "language": "php", "file_size": 21590, "cut_index": 1331, "middle_length": 229}} {"prefix": "\nreturn [\n 'Names' => [\n 'AUD' => [\n 'A$',\n 'دالر آسترالیا',\n ],\n 'BND' => [\n 'BND',\n 'دالر برونی',\n ],\n 'BYN' => [\n 'BYN',\n 'روبل روسیهٔ سفید',\n ],\n 'BYR' => [\n 'BYR',\n 'روبل روسیهٔ سفید (۲۰۰۰–۲۰۱۶)',\n ],\n 'CAD' => [\n '$CA',\n 'دالر کانادا',\n ],\n 'CHF' => [\n 'CHF',\n 'فرانک سویس',\n ],\n ", "suffix": "=> [\n 'NLG',\n 'گیلدر هالند',\n ],\n 'NOK' => [\n 'NOK',\n 'کرون ناروی',\n ],\n 'SEK' => [\n 'SEK',\n 'کرون سویدن',\n ],\n 'SGD' => [\n 'SGD',\n ", "middle": "'DKK' => [\n 'DKK',\n 'کرون دنمارک',\n ],\n 'JPY' => [\n '¥',\n 'ین جاپان',\n ],\n 'MXN' => [\n '$MX',\n 'پزوی مکسیکو',\n ],\n 'NLG' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/fa_AF.php", "language": "php", "file_size": 1371, "cut_index": 518, "middle_length": 229}} {"prefix": "> [\n 'AOK',\n 'Angolan kwanza (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'Angolan uusi kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolan kwanza reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentiinan austral',\n ],\n 'ARL' => [\n 'ARL',\n 'Argentiinan ley-peso (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Argent", "suffix": " 'ATS',\n 'Itävallan šillinki',\n ],\n 'AUD' => [\n 'AUD',\n 'Australian dollari',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruban floriini',\n ],\n 'AZM' => [\n ", "middle": "iinan peso (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentiinan peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentiinan peso',\n ],\n 'ATS' => [\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/fi.php", "language": "php", "file_size": 24984, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Niðurlonds Karibia gyllin',\n ],\n 'AOA' => [\n 'AOA',\n 'Angola kwanza',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentina peso',\n ],\n 'AUD' => [\n 'A$',\n 'Avstralskur dollari',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruba florin',\n ],\n 'AZN' => [\n 'AZN',\n 'Aserbadjan manat',\n ],\n 'BAM' => [\n 'BAM',\n 'Bosnia-Hersegovina mar", "suffix": "\n 'Bulgarskur lev',\n ],\n 'BHD' => [\n 'BHD',\n 'Barein dinar',\n ],\n 'BIF' => [\n 'BIF',\n 'Burundi frankur',\n ],\n 'BMD' => [\n 'BMD',\n 'Bermud", "middle": "k (kann vekslast)',\n ],\n 'BBD' => [\n 'BBD',\n 'Barbados dollari',\n ],\n 'BDT' => [\n 'BDT',\n 'Bangladesj taka',\n ],\n 'BGN' => [\n 'BGN',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/fo.php", "language": "php", "file_size": 13228, "cut_index": 921, "middle_length": 229}} {"prefix": " 'dram armenio',\n ],\n 'ANG' => [\n 'ANG',\n 'florín das Antillas Neerlandesas',\n ],\n 'AOA' => [\n 'AOA',\n 'kwanza angolano',\n ],\n 'ARP' => [\n 'ARP',\n 'Peso arxentino (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'peso arxentino',\n ],\n 'AUD' => [\n 'A$',\n 'dólar australiano',\n ],\n 'AWG' => [\n 'AWG',\n '", "suffix": "' => [\n 'BBD',\n 'dólar de Barbados',\n ],\n 'BDT' => [\n 'BDT',\n 'taka de Bangladesh',\n ],\n 'BEC' => [\n 'BEC',\n 'Franco belga (convertible)',\n ],\n 'BEF", "middle": "florín de Aruba',\n ],\n 'AZN' => [\n 'AZN',\n 'manat acerbaixano',\n ],\n 'BAM' => [\n 'BAM',\n 'marco convertible de Bosnia e Hercegovina',\n ],\n 'BBD", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/gl.php", "language": "php", "file_size": 17222, "cut_index": 921, "middle_length": 229}} {"prefix": " 'નેધરલેંડ એંટિલિન ગિલ્ડર',\n ],\n 'AOA' => [\n 'AOA',\n 'અંગોલિયન ક્વાન્ઝા',\n ],\n 'ARS' => [\n 'ARS',\n 'અર્જેન્ટીના પેસો',\n ],\n 'AUD' => [\n 'A$',\n 'ઑસ્ટ્રેલિયન ડૉલર',\n ],\n 'AWG' => [\n 'AWG',\n 'અરુબન ફ્લોરિન',\n ],\n 'AZN' => [\n 'AZN',\n 'અઝરબૈજાની મનાત',\n ],\n 'BAM' => [\n 'BAM',\n 'બોસ્નિયા અને હર્ઝેગોવ", "suffix": "'BGN',\n 'બલ્ગેરીયન લેવ',\n ],\n 'BHD' => [\n 'BHD',\n 'બેહરિની દિનાર',\n ],\n 'BIF' => [\n 'BIF',\n 'બુરુન્ડિયન ફ્રેંક',\n ],\n 'BMD' => [\n 'BMD',\n ", "middle": "િના રૂપાંતર યોગ્ય માર્ક',\n ],\n 'BBD' => [\n 'BBD',\n 'બાર્બાડિયન ડૉલર',\n ],\n 'BDT' => [\n 'BDT',\n 'બાંગ્લાદેશી ટાકા',\n ],\n 'BGN' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/gu.php", "language": "php", "file_size": 18088, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ARP',\n 'פזו ארגנטינאי (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'פסו ארגנטינאי',\n ],\n 'ATS' => [\n 'ATS',\n 'שילינג אוסטרי',\n ],\n 'AUD' => [\n 'A$',\n 'דולר אוסטרלי',\n ],\n 'AWG' => [\n 'AWG',\n 'פלורין של ארובה',\n ],\n 'AZM' => [\n 'AZM',\n 'מנאט אזרביג׳אני (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n ", "suffix": " 'BBD' => [\n 'BBD',\n 'דולר ברבדיאני',\n ],\n 'BDT' => [\n 'BDT',\n 'טאקה בנגלדשי',\n ],\n 'BEC' => [\n 'BEC',\n 'פרנק בלגי (בר המרה)',\n ],\n 'BEF' => [\n ", "middle": " 'מאנאט אזרבייג׳ני',\n ],\n 'BAD' => [\n 'BAD',\n 'דינר של בוסניה־הרצגובינה',\n ],\n 'BAM' => [\n 'BAM',\n 'מארק סחיר של בוסניה והרצגובינה',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/he.php", "language": "php", "file_size": 20388, "cut_index": 1331, "middle_length": 229}} {"prefix": "kwanza (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'Angolai új kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolai kwanza reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentín austral',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentín peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentin peso',\n ],\n 'ATS' => [\n 'ATS", "suffix": " 'AZM',\n 'azerbajdzsáni manat (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'azerbajdzsáni manat',\n ],\n 'BAD' => [\n 'BAD',\n 'Bosznia-hercegovinai dínár (1992–1994)',\n ", "middle": "',\n 'Osztrák schilling',\n ],\n 'AUD' => [\n 'AUD',\n 'ausztrál dollár',\n ],\n 'AWG' => [\n 'AWG',\n 'arubai florin',\n ],\n 'AZM' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/hu.php", "language": "php", "file_size": 23501, "cut_index": 1331, "middle_length": 229}} {"prefix": "rino antillan',\n ],\n 'AOA' => [\n 'AOA',\n 'kwanza angolan',\n ],\n 'ARS' => [\n 'ARS',\n 'peso argentin',\n ],\n 'AUD' => [\n 'A$',\n 'dollar australian',\n ],\n 'AWG' => [\n 'AWG',\n 'florino aruban',\n ],\n 'AZN' => [\n 'AZN',\n 'manat azeri',\n ],\n 'BAM' => [\n 'BAM',\n 'marco convertibile de Bosnia-Herzegovina'", "suffix": "ulgare',\n ],\n 'BHD' => [\n 'BHD',\n 'dinar bahreini',\n ],\n 'BIF' => [\n 'BIF',\n 'franco burundese',\n ],\n 'BMD' => [\n 'BMD',\n 'dollar bermudan',\n ", "middle": ",\n ],\n 'BBD' => [\n 'BBD',\n 'dollar barbadian',\n ],\n 'BDT' => [\n 'BDT',\n 'taka bengalese',\n ],\n 'BGN' => [\n 'BGN',\n 'lev b", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ia.php", "language": "php", "file_size": 13509, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ANG' => [\n 'ANG',\n 'Ego Antillean Guilder obodo Netherlands',\n ],\n 'AOA' => [\n 'AOA',\n 'Ego Kwanza obodo Angola',\n ],\n 'ARS' => [\n 'ARS',\n 'Ego Peso obodo Argentina',\n ],\n 'AUD' => [\n 'A$',\n 'Ego Dollar obodo Australia',\n ],\n 'AWG' => [\n 'AWG',\n 'Ego Florin obodo Aruba',\n ],\n 'AZN' => [\n 'AZN',\n 'Ego Manat ", "suffix": " 'BDT' => [\n 'BDT',\n 'Ego Taka obodo Bangladesh',\n ],\n 'BGN' => [\n 'BGN',\n 'Ego Lev mba Bulgaria',\n ],\n 'BHD' => [\n 'BHD',\n 'Ego Dinar Obodo Bahrain',\n ", "middle": "obodo Azerbaijan',\n ],\n 'BAM' => [\n 'BAM',\n 'Akara mgbanwe ego obodo Bosnia-Herzegovina',\n ],\n 'BBD' => [\n 'BBD',\n 'Ego Dollar obodo Barbados',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ig.php", "language": "php", "file_size": 14136, "cut_index": 921, "middle_length": 229}} {"prefix": "entínskur pesi',\n ],\n 'ATS' => [\n 'ATS',\n 'Austurrískur skildingur',\n ],\n 'AUD' => [\n 'AUD',\n 'ástralskur dalur',\n ],\n 'AWG' => [\n 'AWG',\n 'arúbönsk flórína',\n ],\n 'AZN' => [\n 'AZN',\n 'aserskt manat',\n ],\n 'BAM' => [\n 'BAM',\n 'skiptanlegt Bosníu og Hersegóvínu-mark',\n ],\n 'BBD' => [\n 'BBD',\n 'ba", "suffix": " 'Lef',\n ],\n 'BGN' => [\n 'BGN',\n 'búlgarskt lef',\n ],\n 'BHD' => [\n 'BHD',\n 'bareinskur denari',\n ],\n 'BIF' => [\n 'BIF',\n 'búrúndískur fra", "middle": "rbadoskur dalur',\n ],\n 'BDT' => [\n 'BDT',\n 'bangladessk taka',\n ],\n 'BEF' => [\n 'BEF',\n 'Belgískur franki',\n ],\n 'BGL' => [\n 'BGL',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/is.php", "language": "php", "file_size": 18990, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ARP',\n 'פזו ארגנטינאי (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'פסו ארגנטינאי',\n ],\n 'ATS' => [\n 'ATS',\n 'שילינג אוסטרי',\n ],\n 'AUD' => [\n 'A$',\n 'דולר אוסטרלי',\n ],\n 'AWG' => [\n 'AWG',\n 'פלורין של ארובה',\n ],\n 'AZM' => [\n 'AZM',\n 'מנאט אזרביג׳אני (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n ", "suffix": " 'BBD' => [\n 'BBD',\n 'דולר ברבדיאני',\n ],\n 'BDT' => [\n 'BDT',\n 'טאקה בנגלדשי',\n ],\n 'BEC' => [\n 'BEC',\n 'פרנק בלגי (בר המרה)',\n ],\n 'BEF' => [\n ", "middle": " 'מאנאט אזרבייג׳ני',\n ],\n 'BAD' => [\n 'BAD',\n 'דינר של בוסניה־הרצגובינה',\n ],\n 'BAM' => [\n 'BAM',\n 'מארק סחיר של בוסניה והרצגובינה',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/iw.php", "language": "php", "file_size": 20388, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AOK' => [\n 'AOK',\n 'Kwanza Angólach (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'Kwanza Nua Angólach (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Kwanza Reajustado Angólach (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Austral Airgintíneach',\n ],\n 'ARL' => [\n 'ARL',\n 'Peso Ley na hAirgintíne (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n ", "suffix": " ],\n 'ATS' => [\n 'ATS',\n 'Scilling na hOstaire',\n ],\n 'AUD' => [\n 'A$',\n 'Dollar na hAstráile',\n ],\n 'AWG' => [\n 'AWG',\n 'Flóirín Arúba',\n ],\n ", "middle": " 'Peso na hAirgintíne (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Peso na hAirgintíne (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso na hAirgintíne',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ga.php", "language": "php", "file_size": 23679, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n 'nuevo kwanza angoleño (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'kwanza reajustado angoleño (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'austral argentino',\n ],\n 'ARP' => [\n 'ARP',\n 'peso argentino (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'peso argentino',\n ],\n 'ATS' => [\n 'ATS',\n 'chelín austriaco',\n ],\n 'AUD' =", "suffix": " ],\n 'AZN' => [\n 'AZN',\n 'manat azerbaiyano',\n ],\n 'BAD' => [\n 'BAD',\n 'dinar bosnio',\n ],\n 'BAM' => [\n 'BAM',\n 'marco convertible de Bosnia y Herzegovina", "middle": "> [\n 'AUD',\n 'dólar australiano',\n ],\n 'AWG' => [\n 'AWG',\n 'florín arubeño',\n ],\n 'AZM' => [\n 'AZM',\n 'manat azerí (1993–2006)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/es.php", "language": "php", "file_size": 22653, "cut_index": 1331, "middle_length": 229}} {"prefix": " [\n 'AOK',\n 'Angola kvanza (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'Angola kvanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angola reformitud kvanza, 1995–1999',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentina austral',\n ],\n 'ARM' => [\n 'ARM',\n 'Argentina peeso (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentina peeso (1983–1", "suffix": "Austraalia dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruba kulden',\n ],\n 'AZM' => [\n 'AZM',\n 'Aserbaidžaani manat (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'A", "middle": "985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentina peeso',\n ],\n 'ATS' => [\n 'ATS',\n 'Austria šilling',\n ],\n 'AUD' => [\n 'AU$',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/et.php", "language": "php", "file_size": 22488, "cut_index": 1331, "middle_length": 229}} {"prefix": " '𞤁𞤢𞤪𞤢𞤥𞤵 𞤀𞤪𞤥𞤢𞤲𞤭𞤴𞤢𞤲𞤳𞤮',\n ],\n 'ANG' => [\n 'ANG',\n '𞤊𞤵𞤤𞤮𞤪𞤭𞤲 𞤀𞤲𞤼𞤭𞤴𞤢𞤲𞤳𞤮',\n ],\n 'AOA' => [\n 'AOA',\n '𞤑𞤵𞤱𞤢𞤲𞥁𞤢 𞤀𞤲𞤺𞤮𞤤𞤢𞤲𞤳𞤮',\n ],\n 'ARA' => [\n 'ARA',\n '𞤌𞤧𞤼𞤪𞤢𞤤 𞤀𞤪𞤶𞤢𞤲𞤼𞤭𞤲𞤢𞤲𞤳𞤮',\n ],\n 'ARL' => [\n 'ARL',\n '𞤆𞤫𞥅𞤧𞤮𞥅 𞤂𞤫𞤴 𞤀𞤪𞤶𞤢𞤲𞤼𞤭𞤲𞤢𞤲𞤳𞤮 (𞥑𞥙𞥗𞥐-𞥑𞥙𞥘𞥓)',\n ],\n 'ARM' => [\n 'ARM',\n '𞤆𞤫𞥅𞤧𞤮𞥅 𞤀𞤪𞤶𞤢𞤲𞤼𞤭𞤲𞤢𞤲𞤳𞤮 (𞥑𞥘𞥘𞥑-𞥑𞥙𞥗𞥐)',\n ],\n 'ARP' => [\n ", "suffix": " ],\n 'AWG' => [\n 'AWG',\n '𞤊𞤵𞤤𞤮𞤪𞤭𞤲 𞤀𞤪𞤵𞤦𞤢𞤲𞤳𞤮',\n ],\n 'AZN' => [\n 'AZN',\n '𞤃𞤢𞤲𞤢𞥄𞤼𞤵 𞤀𞥁𞤫𞤪𞤦𞤢𞤴𞤶𞤢𞤲𞤳𞤮',\n ],\n 'BAM' => [\n 'BAM',\n '𞤃𞤢𞤪𞤳 𞤄𞤮𞤧𞤲𞤭𞤴𞤢-𞤖𞤫𞤪𞤶𞤫𞤺𞤮𞤾𞤭𞤲𞤳𞤮 𞤱𞤢𞤴𞤤", "middle": " 'ARP',\n '𞤆𞤫𞥅𞤧𞤮𞥅 𞤀𞤪𞤶𞤢𞤲𞤼𞤭𞤲𞤢𞤲𞤳𞤮 (𞥑𞥙𞥘𞥓-𞥑𞥙𞥘𞥕)',\n ],\n 'ARS' => [\n 'ARS',\n '𞤆𞤫𞥅𞤧𞤮𞥅 𞤀𞤪𞤶𞤢𞤲𞤼𞤭𞤲𞤢𞤲𞤳𞤮',\n ],\n 'AUD' => [\n 'A$',\n '𞤁𞤢𞤤𞤢 𞤌𞤧𞤼𞤢𞤪𞤤𞤭𞤴𞤢𞤲𞤳𞤮',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ff_Adlm.php", "language": "php", "file_size": 26677, "cut_index": 921, "middle_length": 229}} {"prefix": " 'kwanza angolais (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'nouveau kwanza angolais (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'kwanza angolais réajusté (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'austral argentin',\n ],\n 'ARP' => [\n 'ARP',\n 'peso argentin (1983–1985)',\n ],\n 'ARS' => [\n '$AR',\n 'peso argentin',\n ],\n 'ATS", "suffix": " ],\n 'AZM' => [\n 'AZM',\n 'manat azéri (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'manat azéri',\n ],\n 'BAD' => [\n 'BAD',\n 'dinar bosniaque',\n ],\n ", "middle": "' => [\n 'ATS',\n 'schilling autrichien',\n ],\n 'AUD' => [\n '$AU',\n 'dollar australien',\n ],\n 'AWG' => [\n 'AWG',\n 'florin arubais',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/fr.php", "language": "php", "file_size": 22895, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'आर्मेनियाई द्राम',\n ],\n 'ANG' => [\n 'ANG',\n 'नीदरलैंड एंटीलियन गिल्डर',\n ],\n 'AOA' => [\n 'AOA',\n 'अंगोला क्वांज़ा',\n ],\n 'ARS' => [\n 'ARS',\n 'अर्जेंटीनी पेसो',\n ],\n 'AUD' => [\n 'A$',\n 'ऑस्ट्रेलियाई डॉलर',\n ],\n 'AWG' => [\n 'AWG',\n 'अरूबाई फ़्लोरिन',\n ],\n 'AZN' => [\n 'AZN',\n 'अज़रबैजानी मैने", "suffix": "'BDT',\n 'बांग्लादेशी टका',\n ],\n 'BGN' => [\n 'BGN',\n 'बुल्गारियाई लेव',\n ],\n 'BHD' => [\n 'BHD',\n 'बहरीनी दिनार',\n ],\n 'BIF' => [\n 'BIF',\n ", "middle": "ट',\n ],\n 'BAM' => [\n 'BAM',\n 'बोस्निया हर्ज़ेगोविना परिवर्तनीय मार्क',\n ],\n 'BBD' => [\n 'BBD',\n 'बार्बेडियन डॉलर',\n ],\n 'BDT' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/hi.php", "language": "php", "file_size": 20792, "cut_index": 921, "middle_length": 229}} {"prefix": "\n 'նիդեռլանդական անտիլյան գուլդեն',\n ],\n 'AOA' => [\n 'AOA',\n 'անգոլական կվանզա',\n ],\n 'ARS' => [\n 'ARS',\n 'արգենտինական պեսո',\n ],\n 'AUD' => [\n 'A$',\n 'ավստրալիական դոլար',\n ],\n 'AWG' => [\n 'AWG',\n 'արուբական ֆլորին',\n ],\n 'AZN' => [\n 'AZN',\n 'ադրբեջանական մանաթ',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": "GN' => [\n 'BGN',\n 'բուլղարական լև',\n ],\n 'BHD' => [\n 'BHD',\n 'Բահրեյնի դինար',\n ],\n 'BIF' => [\n 'BIF',\n 'բուրունդիական ֆրանկ',\n ],\n 'BMD' => [\n ", "middle": " 'Բոսնիա և Հերցեգովինայի փոխարկվող մարկ',\n ],\n 'BBD' => [\n 'BBD',\n 'բարբադոսյան դոլար',\n ],\n 'BDT' => [\n 'BDT',\n 'Բանգլադեշի տակա',\n ],\n 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/hy.php", "language": "php", "file_size": 16289, "cut_index": 921, "middle_length": 229}} {"prefix": "',\n 'Kwanza Baru Angola (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Kwanza Angola yang Disesuaikan Lagi (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Austral Argentina',\n ],\n 'ARL' => [\n 'ARL',\n 'Peso Ley Argentina (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Peso Argentina (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Peso Argentina (1983–", "suffix": " 'Dolar Australia',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin Aruba',\n ],\n 'AZM' => [\n 'AZM',\n 'Manat Azerbaijan (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'Mana", "middle": "1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso Argentina',\n ],\n 'ATS' => [\n 'ATS',\n 'Schilling Austria',\n ],\n 'AUD' => [\n 'AU$',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/in.php", "language": "php", "file_size": 24088, "cut_index": 1331, "middle_length": 229}} {"prefix": " ],\n 'AOK' => [\n 'AOK',\n 'Kwanza Angòlach (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'Kwanza ùr Angòlach (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Kwanza ath-ghleusaichte Angòlach (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Austral Argantaineach',\n ],\n 'ARL' => [\n 'ARL',\n 'Peso ley Argantaineach (1970–1983)',\n ],\n 'ARM' => [\n ", "suffix": "ntaineach',\n ],\n 'ATS' => [\n 'ATS',\n 'Schilling Ostaireach',\n ],\n 'AUD' => [\n 'A$',\n 'Dolar Astràilianach',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin Arùbach", "middle": " 'ARM',\n 'Peso Argantaineach (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Peso Argantaineach (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso Arga", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/gd.php", "language": "php", "file_size": 25593, "cut_index": 1331, "middle_length": 229}} {"prefix": " => [\n 'AOK',\n 'kwanza angolarra (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'kwanza angolar berria (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'kwanza angolar birdoitua (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'austral argentinarra',\n ],\n 'ARL' => [\n 'ARL',\n 'peso ley argentinarra (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n ", "suffix": "ATS' => [\n 'ATS',\n 'txelin austriarra',\n ],\n 'AUD' => [\n 'A$',\n 'dolar australiarra',\n ],\n 'AWG' => [\n 'AWG',\n 'florin arubarra',\n ],\n 'AZM' => [\n ", "middle": "'peso argentinarra (1981–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'peso argentinarra (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'peso argentinarra',\n ],\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/eu.php", "language": "php", "file_size": 25542, "cut_index": 1331, "middle_length": 229}} {"prefix": " ],\n 'AUD' => [\n '$ AU',\n 'dollar australien',\n ],\n 'AZN' => [\n 'AZN',\n 'manat azerbaïdjanais',\n ],\n 'BMD' => [\n 'BMD',\n 'dollar bermudien',\n ],\n 'BND' => [\n 'BND',\n 'dollar brunéien',\n ],\n 'BZD' => [\n 'BZD',\n 'dollar bélizéen',\n ],\n 'CAD' => [\n '$',\n 'dollar canadien',\n ],\n 'CLP' =>", "suffix": " 'CVE' => [\n 'CVE',\n 'escudo cap-verdien',\n ],\n 'FJD' => [\n 'FJD',\n 'dollar fidjien',\n ],\n 'FKP' => [\n 'FKP',\n 'livre des îles Malouines',\n ],\n ", "middle": " [\n 'CLP',\n 'peso chilien',\n ],\n 'CNY' => [\n 'CN¥',\n 'yuan renminbi chinois',\n ],\n 'COP' => [\n 'COP',\n 'peso colombien',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/fr_CA.php", "language": "php", "file_size": 3623, "cut_index": 614, "middle_length": 229}} {"prefix": " 'angolska kvanza (1977.–1990.)',\n ],\n 'AON' => [\n 'AON',\n 'angolska nova kvanza (1990.–2000.)',\n ],\n 'AOR' => [\n 'AOR',\n 'angolska kvanza (1995.–1999.)',\n ],\n 'ARA' => [\n 'ARA',\n 'argentinski austral',\n ],\n 'ARL' => [\n 'ARL',\n 'argentinski pezo lej (1970.–1983.)',\n ],\n 'ARM' => [\n 'ARM',\n 'argentinski pezo (1881.–1970.)", "suffix": " 'austrijski šiling',\n ],\n 'AUD' => [\n 'AUD',\n 'australski dolar',\n ],\n 'AWG' => [\n 'AWG',\n 'arupski florin',\n ],\n 'AZM' => [\n 'AZM',\n 'az", "middle": "',\n ],\n 'ARP' => [\n 'ARP',\n 'argentinski pezo (1983.–1985.)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinski pezo',\n ],\n 'ATS' => [\n 'ATS',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/hr.php", "language": "php", "file_size": 24545, "cut_index": 1331, "middle_length": 229}} {"prefix": "',\n 'Kwanza Baru Angola (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Kwanza Angola yang Disesuaikan Lagi (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Austral Argentina',\n ],\n 'ARL' => [\n 'ARL',\n 'Peso Ley Argentina (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Peso Argentina (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Peso Argentina (1983–", "suffix": " 'Dolar Australia',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin Aruba',\n ],\n 'AZM' => [\n 'AZM',\n 'Manat Azerbaijan (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'Mana", "middle": "1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso Argentina',\n ],\n 'ATS' => [\n 'ATS',\n 'Schilling Austria',\n ],\n 'AUD' => [\n 'AU$',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/id.php", "language": "php", "file_size": 24088, "cut_index": 1331, "middle_length": 229}} {"prefix": "aab Dentuɗi',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwansaa Anngolaa',\n ],\n 'AUD' => [\n 'A$',\n 'Dolaar Ostaraalii',\n ],\n 'BHD' => [\n 'BHD',\n 'Dinaar Bahrayn',\n ],\n 'BIF' => [\n 'BIF',\n 'Mbuuɗu Burunndi',\n ],\n 'BWP' => [\n 'BWP',\n 'Pulaa Botwanaa',\n ],\n 'CAD' => [\n 'CA$',\n 'Dolaar Kandaaa',\n ],\n ", "suffix": "CVE' => [\n 'CVE',\n 'Eskudoo Kap Weer',\n ],\n 'DJF' => [\n 'DJF',\n 'Faraa Jibutii',\n ],\n 'DZD' => [\n 'DZD',\n 'Dinaar Alaseri',\n ],\n 'EGP' => [\n ", "middle": "'CDF' => [\n 'CDF',\n 'Faraa Konngo',\n ],\n 'CHF' => [\n 'CHF',\n 'Faraa Suwiis',\n ],\n 'CNY' => [\n 'CN¥',\n 'Yuam Siin',\n ],\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ff.php", "language": "php", "file_size": 4754, "cut_index": 614, "middle_length": 229}} {"prefix": "ON',\n 'nuovo kwanza angolano (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'kwanza reajustado angolano (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'austral argentino',\n ],\n 'ARP' => [\n 'ARP',\n 'peso argentino (vecchio Cod.)',\n ],\n 'ARS' => [\n 'ARS',\n 'peso argentino',\n ],\n 'ATS' => [\n 'ATS',\n 'scellino austriaco',\n ],\n ", "suffix": "06)',\n ],\n 'AZN' => [\n 'AZN',\n 'manat azero',\n ],\n 'BAD' => [\n 'BAD',\n 'dinar Bosnia-Herzegovina',\n ],\n 'BAM' => [\n 'BAM',\n 'marco convertibile dell", "middle": " 'AUD' => [\n 'A$',\n 'dollaro australiano',\n ],\n 'AWG' => [\n 'AWG',\n 'fiorino di Aruba',\n ],\n 'AZM' => [\n 'AZM',\n 'manat azero (1993–20", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/it.php", "language": "php", "file_size": 22411, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ANG',\n 'Antillean Guilder na ƙasar Netherlands',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza na Angola',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso na ƙasar Argentina',\n ],\n 'AUD' => [\n 'A$',\n 'Dalar Ostareliya',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin na yankin Aruba',\n ],\n 'AZN' => [\n 'AZN',\n 'Manat na Azebaijan',\n ],\n 'BAM", "suffix": "ar Bangladesh',\n ],\n 'BGN' => [\n 'BGN',\n 'Lev na Bulgeria',\n ],\n 'BHD' => [\n 'BHD',\n 'Zinaren Bahrain',\n ],\n 'BIF' => [\n 'BIF',\n 'Franc na Burundi',", "middle": "' => [\n 'BAM',\n 'Kuɗaɗen Bosnia da Herzegovina',\n ],\n 'BBD' => [\n 'BBD',\n 'Dalar ƙasar Barbados',\n ],\n 'BDT' => [\n 'BDT',\n 'Taka na ƙas", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ha.php", "language": "php", "file_size": 14133, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AOK',\n 'angolanske kwanza (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'angolanske nye kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'angolanske omjusterte kwanza (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'argentinske australer',\n ],\n 'ARL' => [\n 'ARL',\n 'argentinske peso ley',\n ],\n 'ARM' => [\n 'ARM',\n 'argentinsk pesos (", "suffix": " 'ATS',\n 'østerrikske shilling',\n ],\n 'AUD' => [\n 'AUD',\n 'australske dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'arubiske floriner',\n ],\n 'AZM' => [\n 'AZM'", "middle": "1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'argentinske pesos (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinske pesos',\n ],\n 'ATS' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/no.php", "language": "php", "file_size": 25003, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Guilder ya Antili za Kiholanzi',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza ya Angola',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso ya Ajentina',\n ],\n 'AUD' => [\n 'A$',\n 'Dola ya Australia',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin ya Aruba',\n ],\n 'AZN' => [\n 'AZN',\n 'Manat ya Azerbaijan',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": "BGN' => [\n 'BGN',\n 'Lev ya Bulgaria',\n ],\n 'BHD' => [\n 'BHD',\n 'Dinari ya Bahareni',\n ],\n 'BIF' => [\n 'BIF',\n 'Faranga ya Burundi',\n ],\n 'BMD' => [\n", "middle": " 'Convertible Mark ya Bosnia na Hezegovina',\n ],\n 'BBD' => [\n 'BBD',\n 'Dola ya Barbados',\n ],\n 'BDT' => [\n 'BDT',\n 'Taka ya Bangladesh',\n ],\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sw.php", "language": "php", "file_size": 14262, "cut_index": 921, "middle_length": 229}} {"prefix": "ନେଦରଲ୍ୟାଣ୍ଡ୍ ଆଣ୍ଟିଲିୟ ଗିଲଡର୍',\n ],\n 'AOA' => [\n 'AOA',\n 'ଅଙ୍ଗୋଲୀୟ କୱାନଜା',\n ],\n 'ARS' => [\n 'ARS',\n 'ଆର୍ଜେଣ୍ଟାଇନ୍‍ ପେସୋ',\n ],\n 'AUD' => [\n 'A$',\n 'ଅଷ୍ଟ୍ରେଲିୟ ଡଲାର୍',\n ],\n 'AWG' => [\n 'AWG',\n 'ଆରୁବୀୟ ଫ୍ଲୋରିନ୍',\n ],\n 'AZN' => [\n 'AZN',\n 'ଆଜେରବାଇଜାନି ମନତ୍',\n ],\n 'BAM' => [\n 'BAM',\n 'ବୋସନିଆ-ହର୍ଜଗୋଭି", "suffix": "',\n 'ବୁଲଗେରୀୟ ଲେଭ୍',\n ],\n 'BHD' => [\n 'BHD',\n 'ବାଃରେନି ଦିନାର୍',\n ],\n 'BIF' => [\n 'BIF',\n 'ବୁରୁଣ୍ଡିୟ ଫ୍ରାଙ୍କ୍',\n ],\n 'BMD' => [\n 'BMD',\n '", "middle": "ନା କନଭର୍ଟିବଲ୍ ମାର୍କ୍',\n ],\n 'BBD' => [\n 'BBD',\n 'ବାର୍ବାଡୀୟ ଡଲାର୍',\n ],\n 'BDT' => [\n 'BDT',\n 'ବଙ୍ଗଳାଦେଶୀ ଟାକା',\n ],\n 'BGN' => [\n 'BGN", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/or.php", "language": "php", "file_size": 17865, "cut_index": 921, "middle_length": 229}} {"prefix": "anza angolańska (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'kwanza angolańska Reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'austral argentyński',\n ],\n 'ARP' => [\n 'ARP',\n 'peso argentyńskie (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'peso argentyńskie',\n ],\n 'ATS' => [\n 'ATS',\n 'szyling austriacki',\n ],\n 'AUD' => [\n ", "suffix": " 'AZN' => [\n 'AZN',\n 'manat azerski',\n ],\n 'BAD' => [\n 'BAD',\n 'dinar Bośni i Hercegowiny',\n ],\n 'BAM' => [\n 'BAM',\n 'marka zamienna Bośni i Hercegowiny',\n ", "middle": " 'AUD',\n 'dolar australijski',\n ],\n 'AWG' => [\n 'AWG',\n 'florin arubański',\n ],\n 'AZM' => [\n 'AZM',\n 'manat azerbejdżański',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/pl.php", "language": "php", "file_size": 21950, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AOK',\n 'Cuanza angolano (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'Novo cuanza angolano (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Cuanza angolano reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Austral argentino',\n ],\n 'ARL' => [\n 'ARL',\n 'Peso lei argentino (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Peso argentino (188", "suffix": " 'Xelim austríaco',\n ],\n 'AUD' => [\n 'AU$',\n 'Dólar australiano',\n ],\n 'AWG' => [\n 'AWG',\n 'Florim arubano',\n ],\n 'AZM' => [\n 'AZM',\n 'Ma", "middle": "1–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Peso argentino (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso argentino',\n ],\n 'ATS' => [\n 'ATS',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/pt.php", "language": "php", "file_size": 24760, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Florín Antillano Neerlandés',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza Angoleño',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso Argentino',\n ],\n 'AUD' => [\n 'A$',\n 'Dólar Australiano',\n ],\n 'AWG' => [\n 'AWG',\n 'Florín Arubeño',\n ],\n 'AZN' => [\n 'AZN',\n 'Manat Azerbaiyano',\n ],\n 'BAM' => [\n 'BAM',\n 'Marco Bosnioherz", "suffix": " 'Lev',\n ],\n 'BHD' => [\n 'BHD',\n 'Dinar Bareiní',\n ],\n 'BIF' => [\n 'BIF',\n 'Franco Burundés',\n ],\n 'BMD' => [\n 'DBM',\n 'Dólar Bermudeño',\n ", "middle": "egovino',\n ],\n 'BBD' => [\n 'BBG',\n 'Dólar de Barbados',\n ],\n 'BDT' => [\n 'BDT',\n 'Taka Bangladesí',\n ],\n 'BGN' => [\n 'BGN',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/qu.php", "language": "php", "file_size": 12855, "cut_index": 921, "middle_length": 229}} {"prefix": "eta Zunze Ubumwe z’Abarabu',\n ],\n 'AOA' => [\n 'AOA',\n 'Ikwanza ryo muri Angola',\n ],\n 'AUD' => [\n 'A$',\n 'Idolari ryo muri Ositaraliya',\n ],\n 'BHD' => [\n 'BHD',\n 'Idinari ry’iribahireyini',\n ],\n 'BIF' => [\n 'FBu',\n 'Ifaranga ry’Uburundi',\n ],\n 'BWP' => [\n 'BWP',\n 'Ipula ryo muri Botswana',\n ],\n 'CAD' => [\n ", "suffix": " 'CNY' => [\n 'CN¥',\n 'Iyuwani ryo mu Bushinwa',\n ],\n 'CVE' => [\n 'CVE',\n 'Irikaboveridiyano ryo muri Esikudo',\n ],\n 'DJF' => [\n 'DJF',\n 'Ifaranga ryo muri Jibuti'", "middle": " 'CA$',\n 'Idolari rya Kanada',\n ],\n 'CDF' => [\n 'CDF',\n 'Ifaranga rya Kongo',\n ],\n 'CHF' => [\n 'CHF',\n 'Ifaranga ry’Ubusuwisi',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/rn.php", "language": "php", "file_size": 5072, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'AUD' => [\n 'A$',\n 'AUD',\n ],\n 'BRL' => [\n 'R$',\n 'BRL',\n ],\n 'CAD' => [\n 'CA$',\n 'CAD',\n ],\n 'CNY' => [\n 'CN¥',\n 'CNY',\n ],\n 'EUR' => [\n '€',\n 'EUR',\n ],\n 'GBP' => [\n '£',\n 'GBP',\n ],\n 'HKD' => [\n 'HK$',\n 'HKD',\n ],\n 'ILS' => [\n '₪'", "suffix": "],\n 'MXN' => [\n 'MX$',\n 'MXN',\n ],\n 'NZD' => [\n 'NZ$',\n 'NZD',\n ],\n 'PHP' => [\n '₱',\n 'PHP',\n ],\n 'TWD' => [\n 'NT$',\n '", "middle": ",\n 'ILS',\n ],\n 'INR' => [\n '₹',\n 'INR',\n ],\n 'JPY' => [\n 'JP¥',\n 'JPY',\n ],\n 'KRW' => [\n '₩',\n 'KRW',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/root.php", "language": "php", "file_size": 1544, "cut_index": 537, "middle_length": 229}} {"prefix": " [\n 'AOK',\n 'kwanza angolanu (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'kwanza nou angolanu (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'kwanza ri-acontzadu angolanu (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'austral argentinu',\n ],\n 'ARL' => [\n 'ARL',\n 'peso ley argentinu (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'peso ar", "suffix": " 'ATS',\n 'iscellinu austrìacu',\n ],\n 'AUD' => [\n 'A$',\n 'dòllaru australianu',\n ],\n 'AWG' => [\n 'AWG',\n 'fiorinu arubanu',\n ],\n 'AZM' => [\n 'AZM", "middle": "gentinu (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'peso argentinu (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'peso argentinu',\n ],\n 'ATS' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sc.php", "language": "php", "file_size": 25160, "cut_index": 1331, "middle_length": 229}} {"prefix": ",\n 'නෙදර්ලන්ත ඇන්ටිලියන් ගිල්ඩර්',\n ],\n 'AOA' => [\n 'AOA',\n 'ඇන්ගෝලානු ක්වන්සා',\n ],\n 'ARS' => [\n 'ARS',\n 'ආර්ජන්ටිනා පෙසෝ',\n ],\n 'AUD' => [\n 'A$',\n 'ඔස්ට්‍රේලියානු ඩොලර්',\n ],\n 'AWG' => [\n 'AWG',\n 'අරූබානු ෆ්ලෝරින්',\n ],\n 'AZN' => [\n 'AZN',\n 'අසර්බයිජානු මනාට්',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": " => [\n 'BGN',\n 'බල්ගේරියානු ලිව්',\n ],\n 'BHD' => [\n 'BHD',\n 'බහරේන් ඩිනාර්',\n ],\n 'BIF' => [\n 'BIF',\n 'බුරුන්දි ෆ්‍රෑන්ක්',\n ],\n 'BMD' => [\n ", "middle": " 'බොස්නියා හර්සගොවීනා පරිවර්ත්‍ය මාර්ක්',\n ],\n 'BBD' => [\n 'BBD',\n 'බාබේඩියානු ඩොලර්',\n ],\n 'BDT' => [\n 'BDT',\n 'බංග්ලාදේශ් ටකා',\n ],\n 'BGN'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/si.php", "language": "php", "file_size": 18621, "cut_index": 921, "middle_length": 229}} {"prefix": "'angolská kwanza (1977 – 1990)',\n ],\n 'AON' => [\n 'AON',\n 'angolská nová kwanza (1990 – 2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'angolská upravená kwanza (1995 – 1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'argentínsky austral',\n ],\n 'ARL' => [\n 'ARL',\n 'argentínske peso ley (1970 – 1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'argentínske peso (1881 – 1970)',", "suffix": " 'rakúsky šiling',\n ],\n 'AUD' => [\n 'AUD',\n 'austrálsky dolár',\n ],\n 'AWG' => [\n 'AWG',\n 'arubský gulden',\n ],\n 'AZM' => [\n 'AZM',\n 'azerbaj", "middle": "\n ],\n 'ARP' => [\n 'ARP',\n 'argentínske peso (1983 – 1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentínske peso',\n ],\n 'ATS' => [\n 'ATS',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sk.php", "language": "php", "file_size": 25307, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Galdarka Nadarlaan Antiliyaan',\n ],\n 'AOA' => [\n 'AOA',\n 'Kawansada Angola',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentine Austral',\n ],\n 'ARL' => [\n 'ARL',\n 'Beesada Ley ee Arjentiin (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Beesada Ley ee Arjentiin (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Beesada Ley ee Arjentiin (1883–1985)',\n ", "suffix": "loorinta Aruban',\n ],\n 'AZN' => [\n 'AZN',\n 'Manaata Asarbeyjan',\n ],\n 'BAD' => [\n 'BAD',\n 'Diinaarka BBosnia-Hersogofina 1.00 konfatibal maakta Bosnia-Hersogofina 1 konfatibal maaka Bo", "middle": " ],\n 'ARS' => [\n 'ARS',\n 'Beesada Arjentiin',\n ],\n 'AUD' => [\n 'A$',\n 'Doolarka Astaraaliya',\n ],\n 'AWG' => [\n 'AWG',\n 'Fo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/so.php", "language": "php", "file_size": 14334, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AON',\n 'Анголијска нова кванза (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Анголијска кванза реађустадо (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Аргентински аустрал',\n ],\n 'ARP' => [\n 'ARP',\n 'Аргентински пезо (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'аргентински пезос',\n ],\n 'ATS' => [\n 'ATS',\n 'Аустријски шилинг',\n ", "suffix": "ки манат (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'азербејџански манат',\n ],\n 'BAD' => [\n 'BAD',\n 'Босанско-Херцеговачки динар',\n ],\n 'BAM' => [\n 'КМ',\n ", "middle": "],\n 'AUD' => [\n 'AUD',\n 'аустралијски долар',\n ],\n 'AWG' => [\n 'AWG',\n 'арубански флорин',\n ],\n 'AZM' => [\n 'AZM',\n 'Азербејџанс", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sr.php", "language": "php", "file_size": 27467, "cut_index": 1331, "middle_length": 229}} {"prefix": "ansk kwanza (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'angolansk ny kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'angolansk kwanza reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'argentinsk austral',\n ],\n 'ARL' => [\n 'ARL',\n 'argentisk peso (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'argentisk peso (1881–1969)',\n ],\n 'A", "suffix": "lling',\n ],\n 'AUD' => [\n 'AUD',\n 'australisk dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'arubansk florin',\n ],\n 'AZM' => [\n 'AZM',\n 'azerbajdzjansk manat (19", "middle": "RP' => [\n 'ARP',\n 'argentinsk peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinsk peso',\n ],\n 'ATS' => [\n 'ATS',\n 'österrikisk schi", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sv.php", "language": "php", "file_size": 24821, "cut_index": 1331, "middle_length": 229}} {"prefix": " ],\n 'AOK' => [\n 'AOK',\n 'angolske kwanza (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'angolske nye kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'angolske kwanza reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'argentiske austral',\n ],\n 'ARP' => [\n 'ARP',\n 'argentinske peso (1983–1985)',\n ],\n 'ATS' => [\n 'ATS',\n ", "suffix": " ],\n 'BAN' => [\n 'BAN',\n 'nye bosnisk-hercegovinske dinarar (1994–1997)',\n ],\n 'BEC' => [\n 'BEC',\n 'belgiske franc (konvertibel)',\n ],\n 'BEL' => [\n 'BEL',\n ", "middle": " 'austerrikske schilling',\n ],\n 'AWG' => [\n 'AWG',\n 'arubiske florinar',\n ],\n 'BAD' => [\n 'BAD',\n 'bosnisk-hercegovinske dinarar (1992–1994)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/nn.php", "language": "php", "file_size": 8557, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\nreturn [\n 'Names' => [\n 'BMD' => [\n 'BMD',\n 'Doolaara Beermudaa',\n ],\n 'BRL' => [\n 'R$',\n 'Brazilian Real',\n ],\n 'BZD' => [\n 'BZD',\n 'Doolaara Beliizee',\n ],\n 'CAD' => [\n 'CA$',\n 'Doolaara Kanaadaa',\n ],\n 'CNY' => [\n 'CN¥',\n 'Chinese Yuan Renminbi',\n ],\n 'CRC' => [\n 'CRC',\n 'Koloonii Kostaa Rika", "suffix": " ],\n 'INR' => [\n '₹',\n 'Indian Rupee',\n ],\n 'JPY' => [\n 'JP¥',\n 'Japanese Yen',\n ],\n 'RUB' => [\n 'RUB',\n 'Russian Ruble',\n ],\n 'USD' =>", "middle": "a',\n ],\n 'ETB' => [\n 'Br',\n 'Itoophiyaa Birrii',\n ],\n 'EUR' => [\n '€',\n 'Euro',\n ],\n 'GBP' => [\n '£',\n 'British Pound',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/om.php", "language": "php", "file_size": 1084, "cut_index": 515, "middle_length": 229}} {"prefix": "ਦਰਲੈਂਡਸ ਐਂਟੀਲੀਅਨ ਗਿਲਡਰ',\n ],\n 'AOA' => [\n 'AOA',\n 'ਅੰਗੋਲਾ ਕਵਾਂਜਾ',\n ],\n 'ARA' => [\n 'ARA',\n 'ਅਰਜਨਟੀਨੀ ਅਸਟਰਾਲ',\n ],\n 'ARL' => [\n 'ARL',\n 'ਅਰਜਨਟੀਨੀ ਪੇਸੋ ਲੇ (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'ਅਰਜਨਟੀਨੀ ਪੇਸੋ (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'ਅਰਜਨਟੀਨੀ ਪੇਸੋ (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n ", "suffix": " 'ਅਜ਼ਰਬਾਈਜਾਨ ਮਾਨਤ',\n ],\n 'BAM' => [\n 'BAM',\n 'ਬੋਸਨੀਆ-ਹਰਜ਼ੇਗੋਵੀਨਾ ਬਦਲਣਯੋਗ ਮਾਰਕ',\n ],\n 'BBD' => [\n 'BBD',\n 'ਬਾਰਬਾਡੀਅਨ ਡਾਲਰ',\n ],\n 'BDT' => [\n 'BDT',\n ", "middle": " 'ਅਰਜਨਟੀਨੀ ਪੇਸੋ',\n ],\n 'AUD' => [\n 'A$',\n 'ਆਸਟ੍ਰੇਲੀਆਈ ਡਾਲਰ',\n ],\n 'AWG' => [\n 'AWG',\n 'ਅਰੂਬਨ ਫਲੋਰਿਨ',\n ],\n 'AZN' => [\n 'AZN',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/pa.php", "language": "php", "file_size": 19983, "cut_index": 921, "middle_length": 229}} {"prefix": "[\n 'AOK',\n 'kwanza angolan (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'nov kwanza angolan (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'kwanza angolan reagiustà (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'austral argentin',\n ],\n 'ARL' => [\n 'ARL',\n 'peso argentin ley',\n ],\n 'ARM' => [\n 'ARM',\n 'peso argentin moneda naciona", "suffix": " 'schilling austriac',\n ],\n 'AUD' => [\n 'A$',\n 'dollar australian',\n ],\n 'AWG' => [\n 'AWG',\n 'flurin da l’Aruba',\n ],\n 'AZM' => [\n 'AZM',\n 'manat", "middle": "l',\n ],\n 'ARP' => [\n 'ARP',\n 'peso argentin (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'peso argentin',\n ],\n 'ATS' => [\n 'ATS',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/rm.php", "language": "php", "file_size": 24690, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Ангольская новая кванза (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Ангольская кванза реюстадо (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Аргентинский аустрал',\n ],\n 'ARP' => [\n 'ARP',\n 'Аргентинское песо (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'аргентинский песо',\n ],\n 'ATS' => [\n 'ATS',\n 'Австрийский шиллинг',\n ],\n '", "suffix": "й манат',\n ],\n 'AZN' => [\n 'AZN',\n 'азербайджанский манат',\n ],\n 'BAD' => [\n 'BAD',\n 'Динар Боснии и Герцеговины',\n ],\n 'BAM' => [\n 'BAM',\n 'конверт", "middle": "AUD' => [\n 'A$',\n 'австралийский доллар',\n ],\n 'AWG' => [\n 'AWG',\n 'арубанский флорин',\n ],\n 'AZM' => [\n 'AZM',\n 'Старый азербайджански", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ru.php", "language": "php", "file_size": 27385, "cut_index": 1331, "middle_length": 229}} {"prefix": "tî Arâbo Ôko',\n ],\n 'AOA' => [\n 'AOA',\n 'kwânza tî Angoläa',\n ],\n 'AUD' => [\n 'A$',\n 'dolära tî Ostralïi',\n ],\n 'BHD' => [\n 'BHD',\n 'dolùara tî Bahrâina',\n ],\n 'BIF' => [\n 'BIF',\n 'farânga tî Burundïi',\n ],\n 'BWP' => [\n 'BWP',\n 'pûla tî Botswana',\n ],\n 'CAD' => [\n 'CA$',\n 'dolära tî kanadäa',\n ", "suffix": "enminbi tî Shîni',\n ],\n 'CVE' => [\n 'CVE',\n 'eskûêdo tî Kâpo-Vêre',\n ],\n 'DJF' => [\n 'DJF',\n 'farânga tî Dibutïi',\n ],\n 'DZD' => [\n 'DZD',\n 'dinäri ", "middle": " ],\n 'CDF' => [\n 'CDF',\n 'farânga tî Kongöo',\n ],\n 'CHF' => [\n 'CHF',\n 'farânga tî Sûîsi',\n ],\n 'CNY' => [\n 'CN¥',\n 'yuan r", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sg.php", "language": "php", "file_size": 5118, "cut_index": 614, "middle_length": 229}} {"prefix": "AON' => [\n 'AON',\n 'angolska nova kvanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'konvertibilna angolska kvanza (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'argentinski avstral',\n ],\n 'ARP' => [\n 'ARP',\n 'argentinski peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinski peso',\n ],\n 'ATS' => [\n 'ATS',\n 'avstrijsk", "suffix": " 'stari azerbajdžanski manat (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'azerbajdžanski manat',\n ],\n 'BAD' => [\n 'BAD',\n 'bosansko-hercegovski dinar',\n ],\n 'BAM' => [\n ", "middle": "i šiling',\n ],\n 'AUD' => [\n 'AUD',\n 'avstralski dolar',\n ],\n 'AWG' => [\n 'AWG',\n 'arubski florin',\n ],\n 'AZM' => [\n 'AZM',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sl.php", "language": "php", "file_size": 22511, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Gilderi antilian holandez',\n ],\n 'AOA' => [\n 'AOA',\n 'Kuanza e Angolës',\n ],\n 'ARS' => [\n 'ARS',\n 'Pesoja argjentinase',\n ],\n 'AUD' => [\n 'A$',\n 'Dollari australian',\n ],\n 'AWG' => [\n 'AWG',\n 'Florini aruban',\n ],\n 'AZN' => [\n 'AZN',\n 'Manata azerbajxhanase',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": " 'BGN' => [\n 'BGN',\n 'Leva bullgare',\n ],\n 'BHD' => [\n 'BHD',\n 'Dinari i Bahreinit',\n ],\n 'BIF' => [\n 'BIF',\n 'Franga burundiane',\n ],\n 'BMD' =>", "middle": " 'Marka e Bosnjë-Hercegovinës [e shkëmbyeshme]',\n ],\n 'BBD' => [\n 'BBD',\n 'Dollari barbadian',\n ],\n 'BDT' => [\n 'BDT',\n 'Taka e Bangladeshit',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sq.php", "language": "php", "file_size": 13749, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AOK',\n 'Angolese kwanza (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'Angolese nieuwe kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolese kwanza reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentijnse austral',\n ],\n 'ARL' => [\n 'ARL',\n 'Argentijnse peso ley (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Argent", "suffix": " 'ATS',\n 'Oostenrijkse schilling',\n ],\n 'AUD' => [\n 'AU$',\n 'Australische dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'Arubaanse gulden',\n ],\n 'AZM' => [\n ", "middle": "ijnse peso (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentijnse peso (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentijnse peso',\n ],\n 'ATS' => [\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/nl.php", "language": "php", "file_size": 25040, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AON',\n 'Angolijska nova kvanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolijska kvanza reađustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentinski austral',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentinski pezo (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinski pezos',\n ],\n 'ATS' => [\n 'ATS',\n 'Austrijski šiling',\n ", "suffix": "ski manat (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'azerbejdžanski manat',\n ],\n 'BAD' => [\n 'BAD',\n 'Bosansko-Hercegovački dinar',\n ],\n 'BAM' => [\n 'KM',\n ", "middle": "],\n 'AUD' => [\n 'AUD',\n 'australijski dolar',\n ],\n 'AWG' => [\n 'AWG',\n 'arubanski florin',\n ],\n 'AZM' => [\n 'AZM',\n 'Azerbejdžan", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sr_Latn.php", "language": "php", "file_size": 23183, "cut_index": 1331, "middle_length": 229}} {"prefix": " '安哥拉新宽扎 (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n '安哥拉重新调整宽扎 (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n '阿根廷奥斯特拉尔',\n ],\n 'ARL' => [\n 'ARL',\n '阿根廷法定比索 (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n '阿根廷比索 (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n '阿根廷比索 (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n '阿根廷比索',\n ", "suffix": " => [\n 'AZM',\n '阿塞拜疆马纳特 (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n '阿塞拜疆马纳特',\n ],\n 'BAD' => [\n 'BAD',\n '波士尼亚-赫塞哥维纳第纳尔 (1992–1994)',\n ],\n 'BAM' => [\n ", "middle": " ],\n 'ATS' => [\n 'ATS',\n '奥地利先令',\n ],\n 'AUD' => [\n 'AU$',\n '澳大利亚元',\n ],\n 'AWG' => [\n 'AWG',\n '阿鲁巴弗罗林',\n ],\n 'AZM'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/zh.php", "language": "php", "file_size": 24947, "cut_index": 1331, "middle_length": 229}} {"prefix": " ],\n 'AUD' => [\n 'AU$',\n '澳元',\n ],\n 'AWG' => [\n 'AWG',\n '阿魯巴盾',\n ],\n 'AZN' => [\n 'AZN',\n '亞塞拜疆馬納特',\n ],\n 'BAD' => [\n 'BAD',\n '波斯尼亞-赫塞哥維納第納爾',\n ],\n 'BAM' => [\n 'BAM',\n '波斯尼亞-赫塞哥維納可轉換馬克',\n ],\n 'BBD' => [\n 'BBD',\n '巴巴多斯元',\n ],\n 'BEC' => [\n 'BEC',\n '比利時法郎(可兌換)',\n ", "suffix": " => [\n 'BZD',\n '伯利茲元',\n ],\n 'CAD' => [\n 'CA$',\n '加拿大元',\n ],\n 'CRC' => [\n 'CRC',\n '哥斯達黎加科郎',\n ],\n 'CVE' => [\n 'CVE',\n '佛得角埃斯庫多'", "middle": " ],\n 'BIF' => [\n 'BIF',\n '布隆迪法郎',\n ],\n 'BMD' => [\n 'BMD',\n '百慕達元',\n ],\n 'BWP' => [\n 'BWP',\n '博茨瓦納普拉',\n ],\n 'BZD'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/zh_HK.php", "language": "php", "file_size": 5569, "cut_index": 614, "middle_length": 229}} {"prefix": "\n '安哥拉新寬扎 (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n '安哥拉新調寬扎 (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n '阿根廷奧斯特納爾',\n ],\n 'ARL' => [\n 'ARL',\n '阿根廷披索 (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n '阿根廷披索 (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n '阿根廷披索 (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n '阿根廷披索',\n ", "suffix": " [\n 'AZM',\n '亞塞拜然馬納特 (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n '亞塞拜然馬納特',\n ],\n 'BAD' => [\n 'BAD',\n '波士尼亞-赫塞哥維納第納爾',\n ],\n 'BAM' => [\n 'BAM',\n", "middle": " ],\n 'ATS' => [\n 'ATS',\n '奧地利先令',\n ],\n 'AUD' => [\n 'AU$',\n '澳幣',\n ],\n 'AWG' => [\n 'AWG',\n '阿路巴盾',\n ],\n 'AZM' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/zh_Hant.php", "language": "php", "file_size": 24548, "cut_index": 1331, "middle_length": 229}} {"prefix": " ],\n 'AUD' => [\n 'AU$',\n '澳元',\n ],\n 'AWG' => [\n 'AWG',\n '阿魯巴盾',\n ],\n 'AZN' => [\n 'AZN',\n '亞塞拜疆馬納特',\n ],\n 'BAD' => [\n 'BAD',\n '波斯尼亞-赫塞哥維納第納爾',\n ],\n 'BAM' => [\n 'BAM',\n '波斯尼亞-赫塞哥維納可轉換馬克',\n ],\n 'BBD' => [\n 'BBD',\n '巴巴多斯元',\n ],\n 'BEC' => [\n 'BEC',\n '比利時法郎(可兌換)',\n ", "suffix": " => [\n 'BZD',\n '伯利茲元',\n ],\n 'CAD' => [\n 'CA$',\n '加拿大元',\n ],\n 'CRC' => [\n 'CRC',\n '哥斯達黎加科郎',\n ],\n 'CVE' => [\n 'CVE',\n '佛得角埃斯庫多'", "middle": " ],\n 'BIF' => [\n 'BIF',\n '布隆迪法郎',\n ],\n 'BMD' => [\n 'BMD',\n '百慕達元',\n ],\n 'BWP' => [\n 'BWP',\n '博茨瓦納普拉',\n ],\n 'BZD'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/zh_Hant_HK.php", "language": "php", "file_size": 5569, "cut_index": 614, "middle_length": 229}} {"prefix": "\n 'i-Netherlands Antillean Guilder',\n ],\n 'AOA' => [\n 'AOA',\n 'i-Angolan Kwanza',\n ],\n 'ARS' => [\n 'ARS',\n 'i-Argentina Peso',\n ],\n 'AUD' => [\n 'A$',\n 'i-Austrilian Dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'i-Aruban Florin',\n ],\n 'AZN' => [\n 'AZN',\n 'i-Azerbaijani Manat',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": " 'BGN' => [\n 'BGN',\n 'i-Bulgarian Lev',\n ],\n 'BHD' => [\n 'BHD',\n 'i-Bahraini Dinar',\n ],\n 'BIF' => [\n 'BIF',\n 'i-Burundian Franc',\n ],\n 'BMD' => [", "middle": " 'i-Bosnia-Herzegovina Convertible Mark',\n ],\n 'BBD' => [\n 'BBD',\n 'i-Barbadian Dollar',\n ],\n 'BDT' => [\n 'BDT',\n 'i-Bangladeshi Taka',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/zu.php", "language": "php", "file_size": 13830, "cut_index": 921, "middle_length": 229}} {"prefix": "tyd (Kaïro)',\n 'Africa/Casablanca' => 'Wes-Europese tyd (Casablanca)',\n 'Africa/Ceuta' => 'Sentraal-Europese tyd (Ceuta)',\n 'Africa/Conakry' => 'Greenwich-tyd (Conakry)',\n 'Africa/Dakar' => 'Greenwich-tyd (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Oos-Afrika-tyd (Dar es Salaam)',\n 'Africa/Djibouti' => 'Oos-Afrika-tyd (Djiboeti)',\n 'Africa/Douala' => 'Wes-Afrika-tyd (Douala)',\n 'Africa/El_Aaiun' => 'Wes-Europese tyd (El Aaiún)',\n 'Africa/Freetown' => ", "suffix": " 'Africa/Juba' => 'Sentraal-Afrika-tyd (Juba)',\n 'Africa/Kampala' => 'Oos-Afrika-tyd (Kampala)',\n 'Africa/Khartoum' => 'Sentraal-Afrika-tyd (Kartoem)',\n 'Africa/Kigali' => 'Sentraal-Afrika-tyd (Kigali)',\n 'Africa/Kinshasa' =", "middle": "'Greenwich-tyd (Freetown)',\n 'Africa/Gaborone' => 'Sentraal-Afrika-tyd (Gaborone)',\n 'Africa/Harare' => 'Sentraal-Afrika-tyd (Harare)',\n 'Africa/Johannesburg' => 'Suid-Afrika-standaardtyd (Johannesburg)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/af.php", "language": "php", "file_size": 26808, "cut_index": 1331, "middle_length": 229}} {"prefix": "wumbura)',\n 'Africa/Cairo' => 'Yuropu Apueeɛ Berɛ (Kairo)',\n 'Africa/Casablanca' => 'Yuropu Atɔeeɛ Berɛ (Casablanca)',\n 'Africa/Ceuta' => 'Yuropu Mfinimfini Berɛ (kiweta)',\n 'Africa/Conakry' => 'Greenwich Mean Berɛ (Kɔnakri)',\n 'Africa/Dakar' => 'Greenwich Mean Berɛ (Dakaa)',\n 'Africa/Dar_es_Salaam' => 'Afrika Apueeɛ Berɛ (Dar es Salaam)',\n 'Africa/Djibouti' => 'Afrika Apueeɛ Berɛ (Gyibuuti)',\n 'Africa/Douala' => 'Afrika Atɔeɛ Berɛ (Douala)',\n '", "suffix": "(Harare)',\n 'Africa/Johannesburg' => 'Afrika Anaafoɔ Susudua Berɛ (Johannesburg)',\n 'Africa/Juba' => 'Afrika Finimfin Berɛ (Dwuba)',\n 'Africa/Kampala' => 'Afrika Apueeɛ Berɛ (Kampala)',\n 'Africa/Khartoum' => 'Afrika Finimfin Ber", "middle": "Africa/El_Aaiun' => 'Yuropu Atɔeeɛ Berɛ (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich Mean Berɛ (Freetown)',\n 'Africa/Gaborone' => 'Afrika Finimfin Berɛ (Gaborone)',\n 'Africa/Harare' => 'Afrika Finimfin Berɛ ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ak.php", "language": "php", "file_size": 26650, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'CDF' => [\n 'FC',\n 'Faranga ya Kongo',\n ],\n 'CNY' => [\n 'CN¥',\n 'Yuan Renminbi ya China',\n ],\n 'ETB' => [\n 'ETB',\n 'Bir ya Uhabeshi',\n ],\n 'JPY' => [\n 'JP¥',\n 'Sarafu ya Kijapani',\n ],\n 'MGA' => [\n 'MGA',\n 'Ariary ya Bukini',\n ],\n 'MRO' => [\n 'MRO',\n 'Ugwiya ya Moritania (1973–2017)',\n ],\n ", "suffix": "a Moritania',\n ],\n 'SCR' => [\n 'SCR',\n 'Rupia ya Shelisheli',\n ],\n 'XAF' => [\n 'FCFA',\n 'Faranga CFA BEAC',\n ],\n 'XOF' => [\n 'F CFA',\n 'Faranga CFA ", "middle": " 'MRU' => [\n 'MRU',\n 'Ugwiya y", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sw_CD.php", "language": "php", "file_size": 890, "cut_index": 547, "middle_length": 52}} {"prefix": " 'నెదర్లాండ్స్ యాంటిల్లియన్ గిల్‌డర్',\n ],\n 'AOA' => [\n 'AOA',\n 'అంగోలాన్ క్వాన్‌జా',\n ],\n 'ARS' => [\n 'ARS',\n 'అర్జెంటీనా పెసో',\n ],\n 'AUD' => [\n 'A$',\n 'ఆస్ట్రేలియన్ డాలర్',\n ],\n 'AWG' => [\n 'AWG',\n 'అరుబన్ ఫ్లోరిన్',\n ],\n 'AZN' => [\n 'AZN',\n 'అజర్బైజాన్ మానట్',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": " 'BGN' => [\n 'BGN',\n 'బల్గేరియన్ లేవ్',\n ],\n 'BHD' => [\n 'BHD',\n 'బహ్రెయిన్ దినార్',\n ],\n 'BIF' => [\n 'BIF',\n 'బురిండియన్ ఫ్రాంక్',\n ],\n 'BMD' =", "middle": " 'బోస్నియా-హెర్జగోవినా మార్పిడి చెయ్యగలిగే మార్క్',\n ],\n 'BBD' => [\n 'BBD',\n 'బర్బాడియన్ డాలర్',\n ],\n 'BDT' => [\n 'BDT',\n 'బాంగ్లాదేశ్ టాకా',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/te.php", "language": "php", "file_size": 18900, "cut_index": 921, "middle_length": 229}} {"prefix": "[\n 'AON',\n 'นิวกวานซาแองโกลา (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'กวานซารีจัสทาโดแองโกลา (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'ออสตรัลอาร์เจนตินา',\n ],\n 'ARL' => [\n 'ARL',\n 'เปโซเลย์อาร์เจนตินา (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'เปโซอาร์เจนตินา (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'เปโซอาร์เจนตินา", "suffix": " 'ดอลลาร์ออสเตรเลีย',\n ],\n 'AWG' => [\n 'AWG',\n 'ฟลอรินอารูบา',\n ],\n 'AZM' => [\n 'AZM',\n 'มานัตอาเซอร์ไบจาน (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n ", "middle": " (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'เปโซอาร์เจนตินา',\n ],\n 'ATS' => [\n 'ATS',\n 'ชิลลิงออสเตรีย',\n ],\n 'AUD' => [\n 'AU$',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/th.php", "language": "php", "file_size": 32189, "cut_index": 1331, "middle_length": 229}} {"prefix": "ldeni',\n ],\n 'AOA' => [\n 'AOA',\n 'Angola kwanzasy',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentin pesosy',\n ],\n 'AUD' => [\n 'A$',\n 'Awstraliýa dollary',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruba florini',\n ],\n 'AZN' => [\n 'AZN',\n 'Azerbaýjan manady',\n ],\n 'BAM' => [\n 'BAM',\n 'Konwertirlenýän Bosniýa we Gersegowina m", "suffix": " 'Bolgar lewi',\n ],\n 'BHD' => [\n 'BHD',\n 'Bahreýn dinary',\n ],\n 'BIF' => [\n 'BIF',\n 'Burundi franky',\n ],\n 'BMD' => [\n 'BMD',\n 'Bermuda dollary',\n", "middle": "arkasy',\n ],\n 'BBD' => [\n 'BBD',\n 'Barbados dollary',\n ],\n 'BDT' => [\n 'BDT',\n 'Bangladeş takasy',\n ],\n 'BGN' => [\n 'BGN',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/tk.php", "language": "php", "file_size": 13344, "cut_index": 921, "middle_length": 229}} {"prefix": " 'Names' => [\n 'AUD' => [\n 'AUD$',\n 'Tola fakaʻaositelēlia',\n ],\n 'EUR' => [\n '€',\n 'ʻEulo',\n ],\n 'FJD' => [\n 'FJD',\n 'Tola fakafisi',\n ],\n 'NZD' => [\n 'NZD$',\n 'Tola fakanuʻusila',\n ],\n 'PGK' => [\n 'PGK',\n 'Kina fakapapuaniukini',\n ],\n 'SBD' => [\n 'SBD',\n 'Tola fakaʻotusolomone',\n ],\n ", "suffix": "katonga',\n ],\n 'VUV' => [\n 'VUV',\n 'Vatu fakavanuatu',\n ],\n 'WST' => [\n 'WST',\n 'Tala fakahaʻamoa',\n ],\n 'XPF' => [\n 'CFPF',\n 'Falaniki fakapasifika", "middle": "'TOP' => [\n 'T$',\n 'Paʻanga fa", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/to.php", "language": "php", "file_size": 870, "cut_index": 529, "middle_length": 52}} {"prefix": " 'Нидерланд Антиль утраулары гульдены',\n ],\n 'AOA' => [\n 'AOA',\n 'Ангола кванзасы',\n ],\n 'ARS' => [\n 'ARS',\n 'Аргентина песосы',\n ],\n 'AUD' => [\n 'A$',\n 'Австралия доллары',\n ],\n 'AWG' => [\n 'AWG',\n 'Арубан Флорины',\n ],\n 'AZN' => [\n 'AZN',\n 'Әзербайҗан манаты',\n ],\n 'BAM' => [\n 'BAM',\n 'Бо", "suffix": "\n 'BGN' => [\n 'BGN',\n 'Болгар Левы',\n ],\n 'BHD' => [\n 'BHD',\n 'Бахрейн динары',\n ],\n 'BIF' => [\n 'BIF',\n 'Бурунди франкы',\n ],\n 'BMD' => [\n ", "middle": "сния һәм Герцеговинаның конвертацияләнә торган маркасы',\n ],\n 'BBD' => [\n 'BBD',\n 'Барбадос доллары',\n ],\n 'BDT' => [\n 'BDT',\n 'Бангладеш такасы',\n ],", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/tt.php", "language": "php", "file_size": 15247, "cut_index": 921, "middle_length": 229}} {"prefix": ",\n 'AOK' => [\n 'AOK',\n 'ئانگولا كۇۋانزاسى (1977–1991)',\n ],\n 'AON' => [\n 'AON',\n 'ئانگولا يېڭى كۇۋانزاسى (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'ئانگولا قايتا تەڭشەلگەن كۇۋانزاسى (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'ئارگېنتىنا ئاۋسترالى',\n ],\n 'ARL' => [\n 'ARL',\n 'ئارگېنتىنا پېسو لېيى (1970–1983)',\n ],\n 'ARM' => [\n ", "suffix": "سى',\n ],\n 'ATS' => [\n 'ATS',\n 'ئاۋسترىيە شىللىڭى',\n ],\n 'AUD' => [\n 'A$',\n 'ئاۋسترالىيە دوللىرى',\n ],\n 'AWG' => [\n 'AWG',\n 'ئارۇبان فىلورۇنى',\n ", "middle": " 'ARM',\n 'ئارگېنتىنا پېسوسى (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'ئارگېنتىنا پېسوسى (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'ئارگېنتىنا پېسو", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ug.php", "language": "php", "file_size": 29777, "cut_index": 1331, "middle_length": 229}} {"prefix": " لینڈز انٹیلیئن گلڈر',\n ],\n 'AOA' => [\n 'AOA',\n 'انگولا کا کوانزا',\n ],\n 'ARS' => [\n 'ARS',\n 'ارجنٹائن پیسو',\n ],\n 'AUD' => [\n 'A$',\n 'آسٹریلین ڈالر',\n ],\n 'AWG' => [\n 'AWG',\n 'اروبن فلورِن',\n ],\n 'AZN' => [\n 'AZN',\n 'آذربائجانی منات',\n ],\n 'BAM' => [\n 'BAM',\n 'بوسنیا ہرزیگووینا کا قابل منتقلی ن", "suffix": "رین لیو',\n ],\n 'BHD' => [\n 'BHD',\n 'بحرینی دینار',\n ],\n 'BIF' => [\n 'BIF',\n 'برونڈیئن فرانک',\n ],\n 'BMD' => [\n 'BMD',\n 'برموڈا ڈالر',\n ],\n ", "middle": "شان',\n ],\n 'BBD' => [\n 'BBD',\n 'باربیڈین ڈالر',\n ],\n 'BDT' => [\n 'BDT',\n 'بنگلہ دیشی ٹکا',\n ],\n 'BGN' => [\n 'BGN',\n 'بلغا", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ur.php", "language": "php", "file_size": 15804, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ANG',\n 'Niderlandiya antil guldeni',\n ],\n 'AOA' => [\n 'AOA',\n 'Angola kvanzasi',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentina pesosi',\n ],\n 'AUD' => [\n 'A$',\n 'Avstraliya dollari',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruba florini',\n ],\n 'AZN' => [\n 'AZN',\n 'Ozarbayjon manati',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": " 'BGN' => [\n 'BGN',\n 'Bolgariya levi',\n ],\n 'BHD' => [\n 'BHD',\n 'Bahrayn dinori',\n ],\n 'BIF' => [\n 'BIF',\n 'Burundi franki',\n ],\n 'BMD' => [\n ", "middle": " 'Bosniya va Gertsegovina ayirboshlash markasi',\n ],\n 'BBD' => [\n 'BBD',\n 'Barbados dollari',\n ],\n 'BDT' => [\n 'BDT',\n 'Bangladesh takasi',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/uz.php", "language": "php", "file_size": 13584, "cut_index": 921, "middle_length": 229}} {"prefix": "дени',\n ],\n 'ARS' => [\n 'ARS',\n 'Аргентина песоси',\n ],\n 'AWG' => [\n 'AWG',\n 'Аруба флорини',\n ],\n 'BBD' => [\n 'BBD',\n 'Барбадос доллари',\n ],\n 'BMD' => [\n 'BMD',\n 'Бермуда доллари',\n ],\n 'BOB' => [\n 'BOB',\n 'Боливия болвиани',\n ],\n 'BRL' => [\n 'R$',\n 'Бразил реали',\n ],\n 'BSD' => ", "suffix": "LP' => [\n 'CLP',\n 'Чили песоси',\n ],\n 'CNY' => [\n 'CN¥',\n 'Хитой юани',\n ],\n 'COP' => [\n 'COP',\n 'Колумбия песоси',\n ],\n 'CRC' => [\n 'CRC", "middle": "[\n 'BSD',\n 'Багама доллари',\n ],\n 'BZD' => [\n 'BZD',\n 'Белиз доллари',\n ],\n 'CAD' => [\n 'CA$',\n 'Канада доллари',\n ],\n 'C", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/uz_Cyrl.php", "language": "php", "file_size": 4417, "cut_index": 614, "middle_length": 229}} {"prefix": ",\n 'Netherlands Antillean Guilder',\n ],\n 'AOA' => [\n 'AOA',\n 'IKwanza yaseAngola',\n ],\n 'ARS' => [\n 'ARS',\n 'IPeso yase-Argentina',\n ],\n 'AUD' => [\n 'A$',\n 'IDola yase-Australia',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruban Florin',\n ],\n 'AZN' => [\n 'AZN',\n 'I-Manat yase-Azerbeijan',\n ],\n 'BAM' => [\n 'BAM'", "suffix": " ],\n 'BGN' => [\n 'BGN',\n 'I-Lev yaseBulgaria',\n ],\n 'BHD' => [\n 'BHD',\n 'I-Dinar yaseBahrain',\n ],\n 'BIF' => [\n 'BIF',\n 'I-Franc yaseBurundi',\n ", "middle": ",\n 'I-Convertible Mark yaseBosnia-Herzegovina',\n ],\n 'BBD' => [\n 'BBD',\n 'Barbadian Dollar',\n ],\n 'BDT' => [\n 'BDT',\n 'I-Taka yaseBangladesh',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/xh.php", "language": "php", "file_size": 13434, "cut_index": 921, "middle_length": 229}} {"prefix": "G',\n 'Gílídà Netherlands Antillean',\n ],\n 'AOA' => [\n 'AOA',\n 'kíwánsà Angola',\n ],\n 'ARS' => [\n 'ARS',\n 'Pẹ́sò Agẹntínà',\n ],\n 'AUD' => [\n 'A$',\n 'Dọla ti Orílẹ́ède Ástràlìá',\n ],\n 'AWG' => [\n 'AWG',\n 'Fuloríìnì Àrúbà',\n ],\n 'AZN' => [\n 'AZN',\n 'Mánààtì Àsàbáíjáì',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": "GN' => [\n 'BGN',\n 'Owó Lẹ́fì Bọ̀lìgéríà',\n ],\n 'BHD' => [\n 'BHD',\n 'Dina ti Orílẹ́ède Báránì',\n ],\n 'BIF' => [\n 'BIF',\n 'Faransi Bùùrúndì',\n ],\n 'BM", "middle": " 'Àmi Yíyípadà Bosnia-Herzegovina',\n ],\n 'BBD' => [\n 'BBD',\n 'Dọ́là Bábádọ̀ọ̀sì',\n ],\n 'BDT' => [\n 'BDT',\n 'Tákà Báńgíládẹ̀ẹ̀ṣì',\n ],\n 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/yo.php", "language": "php", "file_size": 14900, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AOK',\n 'angolanske kwanza (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'angolanske nye kwanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'angolanske omjusterte kwanza (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'argentinske australer',\n ],\n 'ARL' => [\n 'ARL',\n 'argentinske peso ley',\n ],\n 'ARM' => [\n 'ARM',\n 'argentinsk pesos (", "suffix": " 'ATS',\n 'østerrikske shilling',\n ],\n 'AUD' => [\n 'AUD',\n 'australske dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'arubiske floriner',\n ],\n 'AZM' => [\n 'AZM'", "middle": "1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'argentinske pesos (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinske pesos',\n ],\n 'ATS' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/no_NO.php", "language": "php", "file_size": 25003, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'dram arménio',\n ],\n 'ANG' => [\n 'ANG',\n 'florim das Antilhas Holandesas',\n ],\n 'AOA' => [\n 'AOA',\n 'kwanza angolano',\n ],\n 'ARS' => [\n 'ARS',\n 'peso argentino',\n ],\n 'AUD' => [\n 'AU$',\n 'dólar australiano',\n ],\n 'AWG' => [\n 'AWG',\n 'florim de Aruba',\n ],\n 'AZN' => [\n 'AZN',\n 'manat ", "suffix": "[\n 'BBD',\n 'dólar barbadense',\n ],\n 'BDT' => [\n 'BDT',\n 'taka bengali',\n ],\n 'BEC' => [\n 'BEC',\n 'Franco belga (convertível)',\n ],\n 'BGN' => [\n ", "middle": "azeri',\n ],\n 'BAD' => [\n 'BAD',\n 'Dinar da Bósnia-Herzegóvina',\n ],\n 'BAM' => [\n 'BAM',\n 'marco bósnio-herzegóvino conversível',\n ],\n 'BBD' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/pt_PT.php", "language": "php", "file_size": 14295, "cut_index": 921, "middle_length": 229}} {"prefix": "ليئن گلڊر',\n ],\n 'AOA' => [\n 'AOA',\n 'انگوليائي ڪوانزا',\n ],\n 'ARS' => [\n 'ARS',\n 'ارجنٽائن پيسو',\n ],\n 'AUD' => [\n 'A$',\n 'آسٽريلوي ڊالر',\n ],\n 'AWG' => [\n 'AWG',\n 'اروبن فلورن',\n ],\n 'AZN' => [\n 'AZN',\n 'آذربائيجاني منت',\n ],\n 'BAM' => [\n 'BAM',\n 'بوسنيا هرزگوينا ڪنورٽبل مارڪ',\n ],\n ", "suffix": " 'BHD' => [\n 'BHD',\n 'بحريني دينار',\n ],\n 'BIF' => [\n 'BIF',\n 'برونڊي فرينڪ',\n ],\n 'BMD' => [\n 'BMD',\n 'برمودي ڊالر',\n ],\n 'BND' => [\n ", "middle": " 'BBD' => [\n 'BBD',\n 'باربيڊين ڊالر',\n ],\n 'BDT' => [\n 'BDT',\n 'بنگلاديشي ٽڪا',\n ],\n 'BGN' => [\n 'BGN',\n 'بلغارین لیو',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sd.php", "language": "php", "file_size": 14663, "cut_index": 921, "middle_length": 229}} {"prefix": "rab Emirates',\n ],\n 'AOA' => [\n 'AOA',\n 'Kwanza ye Angola',\n ],\n 'AUD' => [\n 'A$',\n 'Dora re Australia',\n ],\n 'BHD' => [\n 'BHD',\n 'Dhinari re Bhahareni',\n ],\n 'BIF' => [\n 'BIF',\n 'Furenki re Bhurundi',\n ],\n 'BWP' => [\n 'BWP',\n 'Pura re Botswana',\n ],\n 'CAD' => [\n 'CA$',\n 'Dora re Kanada',\n ", "suffix": "bi ye China',\n ],\n 'CVE' => [\n 'CVE',\n 'Dhora re Escudo',\n ],\n 'DJF' => [\n 'DJF',\n 'Furenki re Jibhuti',\n ],\n 'DZD' => [\n 'DZD',\n 'Dhinari re Aljeri", "middle": " ],\n 'CDF' => [\n 'CDF',\n 'Furenki re Kongo',\n ],\n 'CHF' => [\n 'CHF',\n 'Furenki re Swisi',\n ],\n 'CNY' => [\n 'CN¥',\n 'Yuan Renmin", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sn.php", "language": "php", "file_size": 4909, "cut_index": 614, "middle_length": 229}} {"prefix": " ],\n 'ANG' => [\n 'ANG',\n 'Gilda ya Antili ya Uholanzi',\n ],\n 'AZN' => [\n 'AZN',\n 'Manati ya Azabajani',\n ],\n 'BAM' => [\n 'BAM',\n 'Maki ya Bosnia na Hezegovina Inayoweza Kubadilishwa',\n ],\n 'BBD' => [\n 'BBD',\n 'Dola ya Babadosi',\n ],\n 'BDT' => [\n 'BDT',\n 'Taka ya Bangladeshi',\n ],\n 'BMD' => [\n 'BMD',\n ", "suffix": " 'Ngultrumi ya Bhutani',\n ],\n 'BYN' => [\n 'BYN',\n 'Ruble ya Belarusi',\n ],\n 'CAD' => [\n 'CA$',\n 'Dola ya Kanada',\n ],\n 'CNH' => [\n 'CNH',\n ", "middle": " 'Dola ya Bamuda',\n ],\n 'BRL' => [\n 'R$',\n 'Reale ya Brazili',\n ],\n 'BSD' => [\n 'BSD',\n 'Dola ya Bahama',\n ],\n 'BTN' => [\n 'BTN',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sw_KE.php", "language": "php", "file_size": 5567, "cut_index": 716, "middle_length": 229}} {"prefix": "',\n ],\n 'AOA' => [\n 'AOA',\n 'ኣንጎላዊ ክዋንዛ',\n ],\n 'ARS' => [\n 'ARS',\n 'ኣርጀንቲናዊ ፔሶ',\n ],\n 'AUD' => [\n 'A$',\n 'ኣውስትራልያዊ ዶላር',\n ],\n 'AWG' => [\n 'AWG',\n 'ኣሩባን ፍሎሪን',\n ],\n 'AZN' => [\n 'AZN',\n 'ኣዘርባጃናዊ ማናት',\n ],\n 'BAM' => [\n 'BAM',\n 'ቦዝንያ-ሄርዘጎቪና ተቐያሪ ምልክት',\n ],\n 'BBD' => [\n 'BBD'", "suffix": " 'ባሕሬናዊ ዲናር',\n ],\n 'BIF' => [\n 'BIF',\n 'ብሩንዳዊ ፍራንክ',\n ],\n 'BMD' => [\n 'BMD',\n 'በርሙዳን ዶላር',\n ],\n 'BND' => [\n 'BND',\n 'ብሩነይ ዶላር',\n ],\n ", "middle": ",\n 'ባርባዲያን ዶላር',\n ],\n 'BDT' => [\n 'BDT',\n 'ባንግላደሻዊ ታካ',\n ],\n 'BGN' => [\n 'BGN',\n 'ቡልጋርያዊ ሌቭ',\n ],\n 'BHD' => [\n 'BHD',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ti.php", "language": "php", "file_size": 15332, "cut_index": 921, "middle_length": 229}} {"prefix": " 'Antillean Guilder ng Netherlands',\n ],\n 'AOA' => [\n 'AOA',\n 'Angolan Kwanza',\n ],\n 'ARS' => [\n 'ARS',\n 'Piso ng Argentina',\n ],\n 'AUD' => [\n 'A$',\n 'Dolyar ng Australya',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin ng Aruba',\n ],\n 'AZN' => [\n 'AZN',\n 'Azerbaijani Manat',\n ],\n 'BAM' => [\n 'BAM',\n 'Bosnia", "suffix": " 'BGN',\n 'Bulgarian Lev',\n ],\n 'BHD' => [\n 'BHD',\n 'Bahraini Dinar',\n ],\n 'BIF' => [\n 'BIF',\n 'Burundian Franc',\n ],\n 'BMD' => [\n 'BMD',\n ", "middle": "-Herzegovina Convertible Mark',\n ],\n 'BBD' => [\n 'BBD',\n 'Dolyar ng Barbados',\n ],\n 'BDT' => [\n 'BDT',\n 'Bangladeshi Taka',\n ],\n 'BGN' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/tl.php", "language": "php", "file_size": 14131, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AON',\n 'ангольська нова кванза (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'ангольська кванза реаджастадо (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'аргентинський австрал',\n ],\n 'ARP' => [\n 'ARP',\n 'аргентинський песо (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'аргентинський песо',\n ],\n 'ATS' => [\n 'ATS',\n 'австрійський шилінг',", "suffix": "азербайджанський манат (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'азербайджанський манат',\n ],\n 'BAD' => [\n 'BAD',\n 'динар (Боснія і Герцеговина)',\n ],\n 'BAM' => [\n ", "middle": "\n ],\n 'AUD' => [\n 'AUD',\n 'австралійський долар',\n ],\n 'AWG' => [\n 'AWG',\n 'арубський флорин',\n ],\n 'AZM' => [\n 'AZM',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/uk.php", "language": "php", "file_size": 27960, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n 'AON',\n 'Đồng Kwanza Mới của Angola (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Đồng Kwanza Điều chỉnh lại của Angola (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Đồng Austral của Argentina',\n ],\n 'ARL' => [\n 'ARL',\n 'Đồng Peso Ley của Argentina (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n 'Đồng Peso Argentina (1881–1970)',\n ],\n 'ARP' => [\n ", "suffix": " ],\n 'AUD' => [\n 'AU$',\n 'Đô la Australia',\n ],\n 'AWG' => [\n 'AWG',\n 'Florin Aruba',\n ],\n 'AZM' => [\n 'AZM',\n 'Đồng Manat của Azerbaijan (1993–2006)',\n ", "middle": " 'ARP',\n 'Đồng Peso Argentina (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Peso Argentina',\n ],\n 'ATS' => [\n 'ATS',\n 'Đồng Schiling Áo',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/vi.php", "language": "php", "file_size": 25223, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'BRL' => [\n 'R$',\n 'בראזיל רעאל',\n ],\n 'BZD' => [\n 'BZD',\n 'בעליז דאלאַר',\n ],\n 'CHF' => [\n 'CHF',\n 'שווייצער פֿראַנק',\n ],\n 'CNY' => [\n 'CN¥',\n 'כינעזישער יואן',\n ],\n 'EUR' => [\n '€',\n 'איירא',\n ],\n 'GBP' => [\n '£',\n 'פֿונט שטערלינג',\n ],\n 'INR' => [\n '₹',\n 'אינדישער", "suffix": "P¥',\n 'יאפאנעזישער יען',\n ],\n 'RUB' => [\n 'RUB',\n 'רוסישער רובל',\n ],\n 'SEK' => [\n 'SEK',\n 'שוועדישע קראנע',\n ],\n 'USD' => [\n 'US$',\n 'אמ", "middle": " רופי',\n ],\n 'JPY' => [\n 'J", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/yi.php", "language": "php", "file_size": 1032, "cut_index": 547, "middle_length": 52}} {"prefix": " ],\n 'AMD' => [\n 'AMD',\n 'Dírààmù Àmɛ́níà',\n ],\n 'ARS' => [\n 'ARS',\n 'Pɛ́sò Agɛntínà',\n ],\n 'AUD' => [\n 'A$',\n 'Dɔla ti Orílɛ́ède Ástràlìá',\n ],\n 'BBD' => [\n 'BBD',\n 'Dɔ́là Bábádɔ̀ɔ̀sì',\n ],\n 'BDT' => [\n 'BDT',\n 'Tákà Báńgíládɛ̀ɛ̀shì',\n ],\n 'BGN' => [\n 'BGN',\n 'Owó Lɛ́fì Bɔ̀lìgéríà',\n ],\n ", "suffix": " ],\n 'BOB' => [\n 'BOB',\n 'Bɔlifiánò Bɔ̀lífíà',\n ],\n 'BRL' => [\n 'R$',\n 'Owó ti Orílɛ̀-èdè Brazil',\n ],\n 'BSD' => [\n 'BSD',\n 'Dɔ́là Bàhámà',\n ],", "middle": " 'BHD' => [\n 'BHD',\n 'Dina ti Orílɛ́ède Báránì',\n ],\n 'BMD' => [\n 'BMD',\n 'Dɔ́là Bɛ̀múdà',\n ],\n 'BND' => [\n 'BND',\n 'Dɔ́là Bùrùnéì',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/yo_BJ.php", "language": "php", "file_size": 9273, "cut_index": 716, "middle_length": 229}} {"prefix": " 'șiling austriac',\n ],\n 'AUD' => [\n 'AUD',\n 'dolar australian',\n ],\n 'AWG' => [\n 'AWG',\n 'florin aruban',\n ],\n 'AZM' => [\n 'AZM',\n 'manat azer (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'manat azer',\n ],\n 'BAD' => [\n 'BAD',\n 'dinar Bosnia-Herțegovina (1992–1994)',\n ],\n 'BAM' => [\n 'BAM',\n '", "suffix": " 'BEC',\n 'franc belgian (convertibil)',\n ],\n 'BEF' => [\n 'BEF',\n 'franc belgian',\n ],\n 'BEL' => [\n 'BEL',\n 'franc belgian (financiar)',\n ],\n 'BGN' => [\n ", "middle": "marcă convertibilă',\n ],\n 'BBD' => [\n 'BBD',\n 'dolar din Barbados',\n ],\n 'BDT' => [\n 'BDT',\n 'taka din Bangladesh',\n ],\n 'BEC' => [\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ro.php", "language": "php", "file_size": 20132, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'AON',\n 'Angolijska nova kvanza (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angolijska kvanza reađustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Argentinski austral',\n ],\n 'ARP' => [\n 'ARP',\n 'Argentinski pezo (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'argentinski pezos',\n ],\n 'ATS' => [\n 'ATS',\n 'Austrijski šiling',\n ", "suffix": "ski manat (1993–2006)',\n ],\n 'AZN' => [\n 'AZN',\n 'azerbejdžanski manat',\n ],\n 'BAD' => [\n 'BAD',\n 'Bosansko-Hercegovački dinar',\n ],\n 'BAM' => [\n 'KM',\n ", "middle": "],\n 'AUD' => [\n 'AUD',\n 'australijski dolar',\n ],\n 'AWG' => [\n 'AWG',\n 'arubanski florin',\n ],\n 'AZM' => [\n 'AZM',\n 'Azerbejdžan", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/sh.php", "language": "php", "file_size": 23183, "cut_index": 1331, "middle_length": 229}} {"prefix": "нтилии Нидерланд',\n ],\n 'AOA' => [\n 'AOA',\n 'Кванзаи Ангола',\n ],\n 'ARS' => [\n 'ARS',\n 'Песои Аргентина',\n ],\n 'AUD' => [\n 'A$',\n 'Доллари Австралия',\n ],\n 'AWG' => [\n 'AWG',\n 'Флорини Арубан',\n ],\n 'AZN' => [\n 'AZN',\n 'Манати Озарбойҷон',\n ],\n 'BAM' => [\n 'BAM',\n 'Маркаҳои конвертатсияшавандаи ", "suffix": ",\n 'Леви Болгария',\n ],\n 'BHD' => [\n 'BHD',\n 'Динори Баҳрайн',\n ],\n 'BIF' => [\n 'BIF',\n 'Франки Бурунди',\n ],\n 'BMD' => [\n 'BMD',\n 'Долла", "middle": "Босния-Герсеговина',\n ],\n 'BBD' => [\n 'BBD',\n 'Доллари Барбад',\n ],\n 'BDT' => [\n 'BDT',\n 'Такаси Бангладеши',\n ],\n 'BGN' => [\n 'BGN'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/tg.php", "language": "php", "file_size": 14985, "cut_index": 921, "middle_length": 229}} {"prefix": "ام',\n ],\n 'ANG' => [\n 'ANG',\n 'هالېنډي انټيليايي ګيلډر',\n ],\n 'AOA' => [\n 'AOA',\n 'انګولي کوانزا',\n ],\n 'ARS' => [\n 'ARS',\n 'ارجنټاين پسو',\n ],\n 'AUD' => [\n 'A$',\n 'آسترالوي ډالر',\n ],\n 'AWG' => [\n 'AWG',\n 'اروبايي فلورن',\n ],\n 'AZN' => [\n 'AZN',\n 'آزربايجاني منت',\n ],\n 'BAM' => [\n", "suffix": " ],\n 'BGN' => [\n 'BGN',\n 'بلغاري ليو',\n ],\n 'BHD' => [\n 'BHD',\n 'بحريني دينار',\n ],\n 'BIF' => [\n 'BIF',\n 'برونډي فرانک',\n ],\n 'BMD' => [\n ", "middle": " 'BAM',\n 'بوسنيا هرزګوينيايي بدلېدونکې مارک',\n ],\n 'BBD' => [\n 'BBD',\n 'باربيډين ډالر',\n ],\n 'BDT' => [\n 'BDT',\n 'بنګالۍ ټاکه',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ps.php", "language": "php", "file_size": 14452, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AOK' => [\n 'AOK',\n 'Angola Kvanzası (1977–1990)',\n ],\n 'AON' => [\n 'AON',\n 'Yeni Angola Kvanzası (1990–2000)',\n ],\n 'AOR' => [\n 'AOR',\n 'Angola Kvanzası Reajustado (1995–1999)',\n ],\n 'ARA' => [\n 'ARA',\n 'Arjantin Australi',\n ],\n 'ARL' => [\n 'ARL',\n 'Arjantin Peso Leyi (1970–1983)',\n ],\n 'ARM' => [\n 'ARM',\n ", "suffix": "S' => [\n 'ATS',\n 'Avusturya Şilini',\n ],\n 'AUD' => [\n 'AU$',\n 'Avustralya doları',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruba florini',\n ],\n 'AZM' => [\n ", "middle": " 'Arjantin Pesosu (1881–1970)',\n ],\n 'ARP' => [\n 'ARP',\n 'Arjantin Pezosu (1983–1985)',\n ],\n 'ARS' => [\n 'ARS',\n 'Arjantin pesosu',\n ],\n 'AT", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/tr.php", "language": "php", "file_size": 24664, "cut_index": 1331, "middle_length": 229}} {"prefix": "'Netherlands Antillean Guilder',\n ],\n 'AOA' => [\n 'AOA',\n 'Angolan Kwanza',\n ],\n 'ARS' => [\n 'ARS',\n 'Argentine Peso',\n ],\n 'AUD' => [\n 'A$',\n 'Australian Dollar',\n ],\n 'AWG' => [\n 'AWG',\n 'Aruban Florin',\n ],\n 'AZN' => [\n 'AZN',\n 'Azerbaijani Manat',\n ],\n 'BAM' => [\n 'BAM',\n 'Bosnia-Herzegovina", "suffix": ",\n 'Bulgarian Lev',\n ],\n 'BHD' => [\n 'BHD',\n 'Bahraini Dinar',\n ],\n 'BIF' => [\n 'BIF',\n 'Burundian Franc',\n ],\n 'BMD' => [\n 'BMD',\n 'Vote", "middle": " Convertible Mark',\n ],\n 'BBD' => [\n 'BBD',\n 'Barbadian Dollar',\n ],\n 'BDT' => [\n 'BDT',\n 'Bangladeshi Taka',\n ],\n 'BGN' => [\n 'BGN'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/wo.php", "language": "php", "file_size": 12807, "cut_index": 921, "middle_length": 229}} {"prefix": "\n 'நெதர்லேண்ட்ஸ் அன்டிலியன் கில்டர்',\n ],\n 'AOA' => [\n 'AOA',\n 'அங்கோலன் க்வான்ஸா',\n ],\n 'ARS' => [\n 'ARS',\n 'அர்ஜென்டைன் பெசோ',\n ],\n 'AUD' => [\n 'A$',\n 'ஆஸ்திரேலிய டாலர்',\n ],\n 'AWG' => [\n 'AWG',\n 'அருபன் ஃப்ளோரின்',\n ],\n 'AZN' => [\n 'AZN',\n 'அசர்பைஜானி மனத்',\n ],\n 'BAM' => [\n 'BAM',\n ", "suffix": "'BGN' => [\n 'BGN',\n 'பல்கேரியன் லேவ்',\n ],\n 'BHD' => [\n 'BHD',\n 'பஹ்ரைனி தினார்',\n ],\n 'BIF' => [\n 'BIF',\n 'புருண்டியன் ஃப்ராங்க்',\n ],\n 'BMD' => [\n", "middle": " 'போஸ்னியா-ஹெர்ஸேகோவினா கன்வெர்டிபில் மார்க்',\n ],\n 'BBD' => [\n 'BBD',\n 'பார்பேடியன் டாலர்',\n ],\n 'BDT' => [\n 'BDT',\n 'பங்களாதேஷி டாகா',\n ],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ta.php", "language": "php", "file_size": 19035, "cut_index": 921, "middle_length": 229}} {"prefix": " => 'Тухӑҫ Европа вӑхӑчӗ (Каир)',\n 'Africa/Casablanca' => 'Анӑҫ Европа вӑхӑчӗ (Касабланка)',\n 'Africa/Ceuta' => 'Вӑта Европа вӑхӑчӗ (Сеута)',\n 'Africa/Conakry' => 'Гринвич вӑхӑчӗ (Конакри)',\n 'Africa/Dakar' => 'Гринвич вӑхӑчӗ (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Тухӑҫ Африка вӑхӑчӗ (Дар-эс-Салам)',\n 'Africa/Djibouti' => 'Тухӑҫ Африка вӑхӑчӗ (Джибути)',\n 'Africa/Douala' => 'Анӑҫ Африка вӑхӑчӗ (Дуала)',\n 'Africa/El_Aaiun' => 'Анӑҫ Европа вӑхӑчӗ (Эль-Аюн", "suffix": "вӑхӑчӗ (Йоханнесбург)',\n 'Africa/Juba' => 'Вӑта Африка вӑхӑчӗ (Джуба)',\n 'Africa/Kampala' => 'Тухӑҫ Африка вӑхӑчӗ (Кампала)',\n 'Africa/Khartoum' => 'Вӑта Африка вӑхӑчӗ (Хартум)',\n 'Africa/Kigali' => 'Вӑта Африка вӑхӑчӗ (Кигали)'", "middle": ")',\n 'Africa/Freetown' => 'Гринвич вӑхӑчӗ (Фритаун)',\n 'Africa/Gaborone' => 'Вӑта Африка вӑхӑчӗ (Габороне)',\n 'Africa/Harare' => 'Вӑта Африка вӑхӑчӗ (Хараре)',\n 'Africa/Johannesburg' => 'Кӑнтӑр Африка ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/cv.php", "language": "php", "file_size": 36057, "cut_index": 1331, "middle_length": 229}} {"prefix": "ica/Bujumbura' => 'Amser Canolbarth Affrica (Bujumbura)',\n 'Africa/Cairo' => 'Amser Dwyrain Ewrop (Cairo)',\n 'Africa/Casablanca' => 'Amser Gorllewin Ewrop (Casablanca)',\n 'Africa/Ceuta' => 'Amser Canolbarth Ewrop (Ceuta)',\n 'Africa/Conakry' => 'Amser Safonol Greenwich (Conakry)',\n 'Africa/Dakar' => 'Amser Safonol Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Amser Dwyrain Affrica (Dar es Salaam)',\n 'Africa/Djibouti' => 'Amser Dwyrain Affrica (Djibouti)',\n ", "suffix": "Canolbarth Affrica (Gaborone)',\n 'Africa/Harare' => 'Amser Canolbarth Affrica (Harare)',\n 'Africa/Johannesburg' => 'Amser Safonol De Affrica (Johannesburg)',\n 'Africa/Juba' => 'Amser Canolbarth Affrica (Juba)',\n 'Africa/Kampala'", "middle": " 'Africa/Douala' => 'Amser Gorllewin Affrica (Douala)',\n 'Africa/El_Aaiun' => 'Amser Gorllewin Ewrop (El Aaiún)',\n 'Africa/Freetown' => 'Amser Safonol Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Amser ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/cy.php", "language": "php", "file_size": 28048, "cut_index": 1331, "middle_length": 229}} {"prefix": "kan aika (Bujumbura)',\n 'Africa/Cairo' => 'Itä-Euroopan aika (Kairo)',\n 'Africa/Casablanca' => 'Länsi-Euroopan aika (Casablanca)',\n 'Africa/Ceuta' => 'Keski-Euroopan aika (Ceuta)',\n 'Africa/Conakry' => 'Greenwichin normaaliaika (Conakry)',\n 'Africa/Dakar' => 'Greenwichin normaaliaika (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Itä-Afrikan aika (Dar es Salaam)',\n 'Africa/Djibouti' => 'Itä-Afrikan aika (Djibouti)',\n 'Africa/Douala' => 'Länsi-Afrikan aika (Doua", "suffix": "ski-Afrikan aika (Harare)',\n 'Africa/Johannesburg' => 'Etelä-Afrikan aika (Johannesburg)',\n 'Africa/Juba' => 'Keski-Afrikan aika (Juba)',\n 'Africa/Kampala' => 'Itä-Afrikan aika (Kampala)',\n 'Africa/Khartoum' => 'Keski-Afrikan ai", "middle": "la)',\n 'Africa/El_Aaiun' => 'Länsi-Euroopan aika (El Aaiún)',\n 'Africa/Freetown' => 'Greenwichin normaaliaika (Freetown)',\n 'Africa/Gaborone' => 'Keski-Afrikan aika (Gaborone)',\n 'Africa/Harare' => 'Ke", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/fi.php", "language": "php", "file_size": 27558, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Eysturevropa tíð (Cairo)',\n 'Africa/Casablanca' => 'Vesturevropa tíð (Casablanca)',\n 'Africa/Ceuta' => 'Miðevropa tíð (Ceuta)',\n 'Africa/Conakry' => 'Greenwich Mean tíð (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean tíð (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Eysturafrika tíð (Dar es Salaam)',\n 'Africa/Djibouti' => 'Eysturafrika tíð (Djibuti)',\n 'Africa/Douala' => 'Vesturafrika tíð (Douala)',\n 'Africa/El_Aaiun' => 'Vesturevropa tíð (El Aaiún)',\n ", "suffix": "esburg)',\n 'Africa/Juba' => 'Miðafrika tíð (Juba)',\n 'Africa/Kampala' => 'Eysturafrika tíð (Kampala)',\n 'Africa/Khartoum' => 'Miðafrika tíð (Khartoum)',\n 'Africa/Kigali' => 'Miðafrika tíð (Kigali)',\n 'Africa/Kinshasa' => ", "middle": " 'Africa/Freetown' => 'Greenwich Mean tíð (Freetown)',\n 'Africa/Gaborone' => 'Miðafrika tíð (Gaborone)',\n 'Africa/Harare' => 'Miðafrika tíð (Harare)',\n 'Africa/Johannesburg' => 'Suðurafrika vanlig tíð (Johann", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/fo.php", "language": "php", "file_size": 26050, "cut_index": 1331, "middle_length": 229}} {"prefix": "le' => 'heure d’Afrique de l’Ouest (Brazzaville)',\n 'Africa/Bujumbura' => 'heure normale d’Afrique centrale (Bujumbura)',\n 'Africa/Cairo' => 'heure d’Europe de l’Est (Le Caire)',\n 'Africa/Casablanca' => 'heure d’Europe de l’Ouest (Casablanca)',\n 'Africa/Ceuta' => 'heure d’Europe centrale (Ceuta)',\n 'Africa/Conakry' => 'heure moyenne de Greenwich (Conakry)',\n 'Africa/Dakar' => 'heure moyenne de Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'heure normale d’Af", "suffix": "t (Laâyoune)',\n 'Africa/Freetown' => 'heure moyenne de Greenwich (Freetown)',\n 'Africa/Gaborone' => 'heure normale d’Afrique centrale (Gaborone)',\n 'Africa/Harare' => 'heure normale d’Afrique centrale (Harare)',\n 'Africa/Johanne", "middle": "rique de l’Est (Dar es Salaam)',\n 'Africa/Djibouti' => 'heure normale d’Afrique de l’Est (Djibouti)',\n 'Africa/Douala' => 'heure d’Afrique de l’Ouest (Douala)',\n 'Africa/El_Aaiun' => 'heure d’Europe de l’Oues", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/fr.php", "language": "php", "file_size": 29942, "cut_index": 1331, "middle_length": 229}} {"prefix": "d’Afrique centrale (Bujumbura)',\n 'Africa/Cairo' => 'heure de l’Europe de l’Est (Le Caire)',\n 'Africa/Casablanca' => 'heure de l’Europe de l’Ouest (Casablanca)',\n 'Africa/Ceuta' => 'heure de l’Europe centrale (Ceuta)',\n 'Africa/Dar_es_Salaam' => 'heure d’Afrique orientale (Dar es Salaam)',\n 'Africa/Djibouti' => 'heure d’Afrique orientale (Djibouti)',\n 'Africa/El_Aaiun' => 'heure de l’Europe de l’Ouest (Laâyoune)',\n 'Africa/Gaborone' => 'heure d’Afrique centra", "suffix": " 'Africa/Kampala' => 'heure d’Afrique orientale (Kampala)',\n 'Africa/Khartoum' => 'heure d’Afrique centrale (Khartoum)',\n 'Africa/Kigali' => 'heure d’Afrique centrale (Kigali)',\n 'Africa/Lubumbashi' => 'heure d’Afrique centrale (Lubumb", "middle": "le (Gaborone)',\n 'Africa/Harare' => 'heure d’Afrique centrale (Harare)',\n 'Africa/Johannesburg' => 'heure normale d’Afrique du Sud (Johannesburg)',\n 'Africa/Juba' => 'heure d’Afrique centrale (Juba)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/fr_CA.php", "language": "php", "file_size": 10970, "cut_index": 921, "middle_length": 229}} {"prefix": "ntraal-Afrikaanske tiid (Bujumbura)',\n 'Africa/Cairo' => 'East-Europeeske tiid (Caïro)',\n 'Africa/Casablanca' => 'West-Europeeske tiid (Casablanca)',\n 'Africa/Ceuta' => 'Midden-Europeeske tiid (Ceuta)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Dar_es_Salaam' => 'East-Afrikaanske tiid (Dar es Salaam)',\n 'Africa/Djibouti' => 'East-Afrikaanske tiid (Djibouti)',\n 'Africa/Douala' => 'We", "suffix": " 'Africa/Harare' => 'Sintraal-Afrikaanske tiid (Harare)',\n 'Africa/Johannesburg' => 'Sûd-Afrikaanske tiid (Johannesburg)',\n 'Africa/Juba' => 'Sintraal-Afrikaanske tiid (Juba)',\n 'Africa/Kampala' => 'East-Afrikaanske tiid (Kampala)", "middle": "st-Afrikaanske tiid (Douala)',\n 'Africa/El_Aaiun' => 'West-Europeeske tiid (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Gaborone' => 'Sintraal-Afrikaanske tiid (Gaborone)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/fy.php", "language": "php", "file_size": 26590, "cut_index": 1331, "middle_length": 229}} {"prefix": "na hAfraice Láir (Bujumbura)',\n 'Africa/Cairo' => 'Am Oirthear na hEorpa (Caireo)',\n 'Africa/Casablanca' => 'Am Iarthar na hEorpa (Casablanca)',\n 'Africa/Ceuta' => 'Am Lár na hEorpa (Ceuta)',\n 'Africa/Conakry' => 'Meán-Am Greenwich (Conacraí)',\n 'Africa/Dakar' => 'Meán-Am Greenwich (Dacár)',\n 'Africa/Dar_es_Salaam' => 'Am Oirthear na hAfraice (Dárasalám)',\n 'Africa/Djibouti' => 'Am Oirthear na hAfraice (Djibouti)',\n 'Africa/Douala' => 'Am Iarthar na hA", "suffix": "> 'Am na hAfraice Láir (Harare)',\n 'Africa/Johannesburg' => 'Am na hAfraice Theas (Johannesburg)',\n 'Africa/Juba' => 'Am na hAfraice Láir (Juba)',\n 'Africa/Kampala' => 'Am Oirthear na hAfraice (Kampala)',\n 'Africa/Khartoum' => '", "middle": "fraice (Douala)',\n 'Africa/El_Aaiun' => 'Am Iarthar na hEorpa (Láúine)',\n 'Africa/Freetown' => 'Meán-Am Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Am na hAfraice Láir (Gaborone)',\n 'Africa/Harare' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ga.php", "language": "php", "file_size": 28121, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Cairo' => 'Àm na Roinn-Eòrpa an Ear (Cairo)',\n 'Africa/Casablanca' => 'Àm na Roinn-Eòrpa an Iar (Casablanca)',\n 'Africa/Ceuta' => 'Àm Meadhan na Roinn-Eòrpa (Ceuta)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Àm Afraga an Ear (Dàr as-Salàm)',\n 'Africa/Djibouti' => 'Àm Afraga an Ear (Diobùtaidh)',\n 'Africa/Douala' => 'Àm Afraga an Iar (Douala)',\n 'A", "suffix": "Harare)',\n 'Africa/Johannesburg' => 'Àm Afraga a Deas (Hannsaborgh)',\n 'Africa/Juba' => 'Àm Meadhan Afraga (Juba)',\n 'Africa/Kampala' => 'Àm Afraga an Ear (Kampala)',\n 'Africa/Khartoum' => 'Àm Meadhan Afraga (Khartoum)',\n ", "middle": "frica/El_Aaiun' => 'Àm na Roinn-Eòrpa an Iar (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Gaborone' => 'Àm Meadhan Afraga (Gaborone)',\n 'Africa/Harare' => 'Àm Meadhan Afraga (", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/gd.php", "language": "php", "file_size": 27748, "cut_index": 1331, "middle_length": 229}} {"prefix": "a Occidental (Brazzaville)',\n 'Africa/Bujumbura' => 'hora de África Central (Bujumbura)',\n 'Africa/Cairo' => 'hora de Europa Oriental (O Cairo)',\n 'Africa/Casablanca' => 'hora de Europa Occidental (Casablanca)',\n 'Africa/Ceuta' => 'hora de Europa Central (Ceuta)',\n 'Africa/Conakry' => 'hora do meridiano de Greenwich (Conakry)',\n 'Africa/Dakar' => 'hora do meridiano de Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'hora de África Oriental (Dar es Salaam)',\n ", "suffix": "a do meridiano de Greenwich (Freetown)',\n 'Africa/Gaborone' => 'hora de África Central (Gaborone)',\n 'Africa/Harare' => 'hora de África Central (Harare)',\n 'Africa/Johannesburg' => 'hora de África Meridional (Xohanesburgo)',\n 'A", "middle": " 'Africa/Djibouti' => 'hora de África Oriental (Djibuti)',\n 'Africa/Douala' => 'hora de África Occidental (Douala)',\n 'Africa/El_Aaiun' => 'hora de Europa Occidental (O Aiún)',\n 'Africa/Freetown' => 'hor", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/gl.php", "language": "php", "file_size": 28641, "cut_index": 1331, "middle_length": 229}} {"prefix": "'Africa/Cairo' => 'પૂર્વી યુરોપિયન સમય (કૈરો)',\n 'Africa/Casablanca' => 'પશ્ચિમી યુરોપિયન સમય (કાસાબ્લાંકા)',\n 'Africa/Ceuta' => 'મધ્ય યુરોપિયન સમય (ક્વેટા)',\n 'Africa/Conakry' => 'ગ્રીનવિચ મધ્યમ સમય (કોનૅક્રી)',\n 'Africa/Dakar' => 'ગ્રીનવિચ મધ્યમ સમય (ડકાર)',\n 'Africa/Dar_es_Salaam' => 'પૂર્વ આફ્રિકા સમય (દાર એસ સલામ)',\n 'Africa/Djibouti' => 'પૂર્વ આફ્રિકા સમય (જીબુટી)',\n 'Africa/Douala' => 'પશ્ચિમ આફ્રિકા સમય (ડૌઆલા)',\n 'Africa/El_Aaiun' => 'પશ્ચિમી ", "suffix": " => 'દક્ષિણ આફ્રિકા માનક સમય (જોહાન્સબર્ગ)',\n 'Africa/Juba' => 'મધ્ય આફ્રિકા સમય (જુબા)',\n 'Africa/Kampala' => 'પૂર્વ આફ્રિકા સમય (કમ્પાલા)',\n 'Africa/Khartoum' => 'મધ્ય આફ્રિકા સમય (ખાર્ટૂમ)',\n 'Africa/Kigali' => 'મધ્ય આફ્રિકા ", "middle": "યુરોપિયન સમય (એલ ઐઉન)',\n 'Africa/Freetown' => 'ગ્રીનવિચ મધ્યમ સમય (ફ્રીટાઉન)',\n 'Africa/Gaborone' => 'મધ્ય આફ્રિકા સમય (ગૅબોરોન)',\n 'Africa/Harare' => 'મધ્ય આફ્રિકા સમય (હરારે)',\n 'Africa/Johannesburg'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/gu.php", "language": "php", "file_size": 45922, "cut_index": 1331, "middle_length": 229}} {"prefix": "azzaville)',\n 'Africa/Bujumbura' => 'Lokacin Afirka ta Tsakiya (Bujumbura)',\n 'Africa/Cairo' => 'Lokaci a turai gabas (Cairo)',\n 'Africa/Casablanca' => 'Lokaci ta yammacin turai (Casablanca)',\n 'Africa/Ceuta' => 'Tsakiyar a lokaci turai (Ceuta)',\n 'Africa/Conakry' => 'Lokacin Greenwich a Ingila (Conakry)',\n 'Africa/Dakar' => 'Lokacin Greenwich a Ingila (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Lokacin Gabashin Afirka (Dar es Salaam)',\n 'Africa/Djibouti' =>", "suffix": "reetown)',\n 'Africa/Gaborone' => 'Lokacin Afirka ta Tsakiya (Gaborone)',\n 'Africa/Harare' => 'Lokacin Afirka ta Tsakiya (Harare)',\n 'Africa/Johannesburg' => 'Tsayayyen Lokacin Afirka ta Kudu (Johannesburg)',\n 'Africa/Juba' => 'L", "middle": " 'Lokacin Gabashin Afirka (Djibouti)',\n 'Africa/Douala' => 'Lokacin Afirka ta Yamma (Douala)',\n 'Africa/El_Aaiun' => 'Lokaci ta yammacin turai (El Aaiún)',\n 'Africa/Freetown' => 'Lokacin Greenwich a Ingila (F", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ha.php", "language": "php", "file_size": 29499, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Casablanca' => 'שעון מערב אירופה (קזבלנקה)',\n 'Africa/Ceuta' => 'שעון מרכז אירופה (סאוטה)',\n 'Africa/Conakry' => 'שעון גריניץ׳‏ (קונאקרי)',\n 'Africa/Dakar' => 'שעון גריניץ׳‏ (דקאר)',\n 'Africa/Dar_es_Salaam' => 'שעון מזרח אפריקה (דאר א-סלאם)',\n 'Africa/Djibouti' => 'שעון מזרח אפריקה (ג׳יבוטי)',\n 'Africa/Douala' => 'שעון מערב אפריקה (דואלה)',\n 'Africa/El_Aaiun' => 'שעון מערב אירופה (אל עיון)',\n 'Africa/Freetown' => 'שעון גריניץ׳‏ (פריטאון)", "suffix": "בה)',\n 'Africa/Kampala' => 'שעון מזרח אפריקה (קמפאלה)',\n 'Africa/Khartoum' => 'שעון מרכז אפריקה (חרטום)',\n 'Africa/Kigali' => 'שעון מרכז אפריקה (קיגלי)',\n 'Africa/Kinshasa' => 'שעון מערב אפריקה (קינשסה)',\n 'Africa/Lagos' ", "middle": "',\n 'Africa/Gaborone' => 'שעון מרכז אפריקה (גבורונה)',\n 'Africa/Harare' => 'שעון מרכז אפריקה (הרארה)',\n 'Africa/Johannesburg' => 'שעון דרום אפריקה (יוהנסבורג)',\n 'Africa/Juba' => 'שעון מרכז אפריקה (ג׳ו", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/he.php", "language": "php", "file_size": 33871, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Cairo' => 'पूर्वी यूरोपीय समय (कायरो)',\n 'Africa/Casablanca' => 'पश्चिमी यूरोपीय समय (कासाब्लांका)',\n 'Africa/Ceuta' => 'मध्य यूरोपीय समय (सेउटा)',\n 'Africa/Conakry' => 'ग्रीनविच मीन टाइम (कोनाक्री)',\n 'Africa/Dakar' => 'ग्रीनविच मीन टाइम (डकार)',\n 'Africa/Dar_es_Salaam' => 'पूर्वी अफ़्रीका समय (दार अस सलाम)',\n 'Africa/Djibouti' => 'पूर्वी अफ़्रीका समय (जिबूती)',\n 'Africa/Douala' => 'पश्चिम अफ़्रीका समय (डूआला)',\n 'Africa/El_Aaiun' => 'प", "suffix": "annesburg' => 'दक्षिण अफ़्रीका मानक समय (जोहांसबर्ग)',\n 'Africa/Juba' => 'मध्य अफ़्रीका समय (जुबा)',\n 'Africa/Kampala' => 'पूर्वी अफ़्रीका समय (कंपाला)',\n 'Africa/Khartoum' => 'मध्य अफ़्रीका समय (खार्तूम)',\n 'Africa/Kigali' => '", "middle": "श्चिमी यूरोपीय समय (अल आइयून)',\n 'Africa/Freetown' => 'ग्रीनविच मीन टाइम (फ़्रीटाउन)',\n 'Africa/Gaborone' => 'मध्य अफ़्रीका समय (गाबोरोन)',\n 'Africa/Harare' => 'मध्य अफ़्रीका समय (हरारे)',\n 'Africa/Joh", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/hi.php", "language": "php", "file_size": 45470, "cut_index": 1331, "middle_length": 229}} {"prefix": "Porto Novo)',\n 'Africa/Sao_Tome' => 'ग्रीनविच मीन टाइम (Sao Tome)',\n 'America/Asuncion' => 'पैराग्वे समय (Asuncion)',\n 'America/Bahia_Banderas' => 'North America Central Time (Bahia Banderas)',\n 'America/Belize' => 'North America Central Time (बेलीज़)',\n 'America/Blanc-Sablon' => 'अटलांटिक समय (Blanc Sablon)',\n 'America/Boise' => 'North America Mountain Time (बॉइसी)',\n 'America/Cambridge_Bay' => 'North America Mountain Time (कैम्ब्रिज खाड़ी)',\n 'Americ", "suffix": "ca Central Time (चिहुआहुआ)',\n 'America/Ciudad_Juarez' => 'North America Mountain Time (Ciudad Juarez)',\n 'America/Coral_Harbour' => 'North America Eastern Time (Coral Harbour)',\n 'America/Atikokan' => 'North America Eastern Time (Coral", "middle": "a/Cancun' => 'North America Eastern Time (Cancun)',\n 'America/Cayman' => 'North America Eastern Time (कैमेन)',\n 'America/Chicago' => 'North America Central Time (शिकागो)',\n 'America/Chihuahua' => 'North Ameri", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/hi_Latn.php", "language": "php", "file_size": 7762, "cut_index": 716, "middle_length": 229}} {"prefix": "rednjoafričko vrijeme (Bujumbura)',\n 'Africa/Cairo' => 'istočnoeuropsko vrijeme (Kairo)',\n 'Africa/Casablanca' => 'zapadnoeuropsko vrijeme (Casablanca)',\n 'Africa/Ceuta' => 'srednjoeuropsko vrijeme (Ceuta)',\n 'Africa/Conakry' => 'univerzalno vrijeme (Conakry)',\n 'Africa/Dakar' => 'univerzalno vrijeme (Dakar)',\n 'Africa/Dar_es_Salaam' => 'istočnoafričko vrijeme (Dar es Salaam)',\n 'Africa/Djibouti' => 'istočnoafričko vrijeme (Džibuti)',\n 'Africa/Douala' ", "suffix": "e)',\n 'Africa/Harare' => 'srednjoafričko vrijeme (Harare)',\n 'Africa/Johannesburg' => 'južnoafričko vrijeme (Johannesburg)',\n 'Africa/Juba' => 'srednjoafričko vrijeme (Juba)',\n 'Africa/Kampala' => 'istočnoafričko vrijeme (Kampal", "middle": "=> 'zapadnoafričko vrijeme (Douala)',\n 'Africa/El_Aaiun' => 'zapadnoeuropsko vrijeme (El Aaiún)',\n 'Africa/Freetown' => 'univerzalno vrijeme (Freetown)',\n 'Africa/Gaborone' => 'srednjoafričko vrijeme (Gaboron", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/hr.php", "language": "php", "file_size": 28081, "cut_index": 1331, "middle_length": 229}} {"prefix": "Brazzaville)',\n 'Africa/Bujumbura' => 'közép-afrikai téli idő (Bujumbura)',\n 'Africa/Cairo' => 'kelet-európai időzóna (Kairó)',\n 'Africa/Casablanca' => 'nyugat-európai időzóna (Casablanca)',\n 'Africa/Ceuta' => 'közép-európai idő (Ceuta)',\n 'Africa/Conakry' => 'greenwichi középidő, téli idő (Conakry)',\n 'Africa/Dakar' => 'greenwichi középidő, téli idő (Dakar)',\n 'Africa/Dar_es_Salaam' => 'kelet-afrikai téli idő (Dar es-Salaam)',\n 'Africa/Djibouti' => 'k", "suffix": "wn)',\n 'Africa/Gaborone' => 'közép-afrikai téli idő (Gaborone)',\n 'Africa/Harare' => 'közép-afrikai téli idő (Harare)',\n 'Africa/Johannesburg' => 'dél-afrikai téli idő (Johannesburg)',\n 'Africa/Juba' => 'közép-afrikai téli idő (", "middle": "elet-afrikai téli idő (Dzsibuti)',\n 'Africa/Douala' => 'nyugat-afrikai időzóna (Douala)',\n 'Africa/El_Aaiun' => 'nyugat-európai időzóna (El-Ajún)',\n 'Africa/Freetown' => 'greenwichi középidő, téli idő (Freeto", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/hu.php", "language": "php", "file_size": 28393, "cut_index": 1331, "middle_length": 229}} {"prefix": "=> 'Կենտրոնական Աֆրիկայի ժամանակ (Բուժումբուրա)',\n 'Africa/Cairo' => 'Արևելյան Եվրոպայի ժամանակ (Կահիրե)',\n 'Africa/Casablanca' => 'Արևմտյան Եվրոպայի ժամանակ (Կասաբլանկա)',\n 'Africa/Ceuta' => 'Կենտրոնական Եվրոպայի ժամանակ (Սեուտա)',\n 'Africa/Conakry' => 'Գրինվիչի ժամանակ (Կոնակրի)',\n 'Africa/Dakar' => 'Գրինվիչի ժամանակ (Դաքար)',\n 'Africa/Dar_es_Salaam' => 'Արևելյան Աֆրիկայի ժամանակ (Դար-Էս-Սալամ)',\n 'Africa/Djibouti' => 'Արևելյան Աֆրիկայի ժամանակ (Ջիբութի)',\n", "suffix": "ոնական Աֆրիկայի ժամանակ (Գաբորոնե)',\n 'Africa/Harare' => 'Կենտրոնական Աֆրիկայի ժամանակ (Հարարե)',\n 'Africa/Johannesburg' => 'Հարավային Աֆրիկայի ժամանակ (Յոհանեսբուրգ)',\n 'Africa/Juba' => 'Կենտրոնական Աֆրիկայի ժամանակ (Ջուբա)',\n ", "middle": " 'Africa/Douala' => 'Արևմտյան Աֆրիկայի ժամանակ (Դուալա)',\n 'Africa/El_Aaiun' => 'Արևմտյան Եվրոպայի ժամանակ (Էլ Այուն)',\n 'Africa/Freetown' => 'Գրինվիչի ժամանակ (Ֆրիթաուն)',\n 'Africa/Gaborone' => 'Կենտր", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/hy.php", "language": "php", "file_size": 40686, "cut_index": 1331, "middle_length": 229}} {"prefix": "Africa/Bujumbura' => 'hora de Africa Central (Bujumbura)',\n 'Africa/Cairo' => 'hora de Europa oriental (Cairo)',\n 'Africa/Casablanca' => 'hora de Europa occidental (Casablanca)',\n 'Africa/Ceuta' => 'hora de Europa central (Ceuta)',\n 'Africa/Conakry' => 'hora medie de Greenwich (Conakry)',\n 'Africa/Dakar' => 'hora medie de Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'hora de Africa del Est (Dar es Salaam)',\n 'Africa/Djibouti' => 'hora de Africa del Est (Dji", "suffix": "ne' => 'hora de Africa Central (Gaborone)',\n 'Africa/Harare' => 'hora de Africa Central (Harare)',\n 'Africa/Johannesburg' => 'hora normal de Africa del Sud (Johannesburg)',\n 'Africa/Juba' => 'hora de Africa Central (Juba)',\n 'Af", "middle": "buti)',\n 'Africa/Douala' => 'hora de Africa del West (Douala)',\n 'Africa/El_Aaiun' => 'hora de Europa occidental (El Aaiún)',\n 'Africa/Freetown' => 'hora medie de Greenwich (Freetown)',\n 'Africa/Gaboro", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ia.php", "language": "php", "file_size": 27126, "cut_index": 1331, "middle_length": 229}} {"prefix": "a)',\n 'Africa/Cairo' => 'Waktu Eropa Timur (Kairo)',\n 'Africa/Casablanca' => 'Waktu Eropa Barat (Casablanca)',\n 'Africa/Ceuta' => 'Waktu Eropa Tengah (Ceuta)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Waktu Afrika Timur (Dar es Salaam)',\n 'Africa/Djibouti' => 'Waktu Afrika Timur (Djibouti)',\n 'Africa/Douala' => 'Waktu Afrika Barat (Douala)',\n 'Africa/El_Aa", "suffix": " 'Africa/Johannesburg' => 'Waktu Standar Afrika Selatan (Johannesburg)',\n 'Africa/Juba' => 'Waktu Afrika Tengah (Juba)',\n 'Africa/Kampala' => 'Waktu Afrika Timur (Kampala)',\n 'Africa/Khartoum' => 'Waktu Afrika Tengah (Khartoum)',\n ", "middle": "iun' => 'Waktu Eropa Barat (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Gaborone' => 'Waktu Afrika Tengah (Gaborone)',\n 'Africa/Harare' => 'Waktu Afrika Tengah (Harare)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/id.php", "language": "php", "file_size": 26118, "cut_index": 1331, "middle_length": 229}} {"prefix": "or de Etiopia (Addis Ababa)',\n 'Africa/Asmera' => 'témpor de Eritrea (Asmara)',\n 'Africa/Asmara' => 'témpor de Eritrea (Asmara)',\n 'Africa/Bamako' => 'témpore medial de Greenwich (Bamako)',\n 'Africa/Banjul' => 'témpore medial de Greenwich (Banjul)',\n 'Africa/Bissau' => 'témpore medial de Greenwich (Bissau)',\n 'Africa/Ceuta' => 'témpor de Hispania (Ceuta)',\n 'Africa/Conakry' => 'témpore medial de Greenwich (Conakry)',\n 'Africa/Dakar' => 'témpore medial ", "suffix": " 'Africa/Ndjamena' => 'témpor de Tchad (N’Djamena)',\n 'Africa/Nouakchott' => 'témpore medial de Greenwich (Nouakchott)',\n 'Africa/Ouagadougou' => 'témpore medial de Greenwich (Ouagadougou)',\n 'Africa/Sao_Tome' => 'témpore medial ", "middle": "de Greenwich (Dakar)',\n 'Africa/Freetown' => 'témpore medial de Greenwich (Freetown)',\n 'Africa/Lome' => 'témpore medial de Greenwich (Lomé)',\n 'Africa/Monrovia' => 'témpore medial de Greenwich (Monrovia)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ie.php", "language": "php", "file_size": 9223, "cut_index": 716, "middle_length": 229}} {"prefix": "ville' => 'Oge Mpaghara Ọdịda Anyanwụ Afrịka (Brazzaville)',\n 'Africa/Bujumbura' => 'Oge Etiti Afrịka (Bujumbura)',\n 'Africa/Cairo' => 'Oge Mpaghara Ọwụwa Anyanwụ Europe (Cairo)',\n 'Africa/Casablanca' => 'Oge Mpaghara Ọdịda Anyanwụ Europe (Casablanca)',\n 'Africa/Ceuta' => 'Oge Mpaghara Etiti Europe (Ceuta)',\n 'Africa/Conakry' => 'Oge Mpaghara Greemwich Mean (Conakry)',\n 'Africa/Dakar' => 'Oge Mpaghara Greemwich Mean (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Oge M", "suffix": "e Mpaghara Ọdịda Anyanwụ Europe (El Aaiún)',\n 'Africa/Freetown' => 'Oge Mpaghara Greemwich Mean (Freetown)',\n 'Africa/Gaborone' => 'Oge Etiti Afrịka (Gaborone)',\n 'Africa/Harare' => 'Oge Etiti Afrịka (Harare)',\n 'Africa/Johannes", "middle": "paghara Ọwụwa Anyanwụ Afrịka (Dar es Salaam)',\n 'Africa/Djibouti' => 'Oge Mpaghara Ọwụwa Anyanwụ Afrịka (Djibouti)',\n 'Africa/Douala' => 'Oge Mpaghara Ọdịda Anyanwụ Afrịka (Douala)',\n 'Africa/El_Aaiun' => 'Og", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ig.php", "language": "php", "file_size": 28276, "cut_index": 1331, "middle_length": 229}} {"prefix": "anjul)',\n 'Africa/Bissau' => 'ꋧꃅꎕꏦꄮꈉ(Bissau)',\n 'Africa/Conakry' => 'ꋧꃅꎕꏦꄮꈉ(Conakry)',\n 'Africa/Dakar' => 'ꋧꃅꎕꏦꄮꈉ(Dakar)',\n 'Africa/Freetown' => 'ꋧꃅꎕꏦꄮꈉ(Freetown)',\n 'Africa/Lome' => 'ꋧꃅꎕꏦꄮꈉ(Lomé)',\n 'Africa/Monrovia' => 'ꋧꃅꎕꏦꄮꈉ(Monrovia)',\n 'Africa/Nouakchott' => 'ꋧꃅꎕꏦꄮꈉ(Nouakchott)',\n 'Africa/Ouagadougou' => 'ꋧꃅꎕꏦꄮꈉ(Ouagadougou)',\n 'Africa/Sao_Tome' => 'ꋧꃅꎕꏦꄮꈉ(São Tomé)',\n 'America/Adak' => 'ꂰꇩꄮꈉ(Adak)',\n 'America/Anchorage' => '", "suffix": "ica/Boa_Vista' => 'ꀠꑭꄮꈉ(Boa Vista)',\n 'America/Boise' => 'ꂰꇩꄮꈉ(Boise)',\n 'America/Campo_Grande' => 'ꀠꑭꄮꈉ(Campo Grande)',\n 'America/Cancun' => 'ꃀꑭꇬꄮꈉ(Cancún)',\n 'America/Chicago' => 'ꂰꇩꄮꈉ(Chicago)',\n 'America/Chihuahua' =>", "middle": "ꂰꇩꄮꈉ(Anchorage)',\n 'America/Araguaina' => 'ꀠꑭꄮꈉ(Araguaína)',\n 'America/Bahia' => 'ꀠꑭꄮꈉ(Bahia)',\n 'America/Bahia_Banderas' => 'ꃀꑭꇬꄮꈉ(Bahía de Banderas)',\n 'America/Belem' => 'ꀠꑭꄮꈉ(Belém)',\n 'Amer", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ii.php", "language": "php", "file_size": 7568, "cut_index": 716, "middle_length": 229}} {"prefix": " 'Africa/Cairo' => 'Austur-Evróputími (Kaíró)',\n 'Africa/Casablanca' => 'Vestur-Evróputími (Casablanca)',\n 'Africa/Ceuta' => 'Mið-Evróputími (Ceuta)',\n 'Africa/Conakry' => 'Greenwich-staðaltími (Conakry)',\n 'Africa/Dakar' => 'Greenwich-staðaltími (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Austur-Afríkutími (Dar es Salaam)',\n 'Africa/Djibouti' => 'Austur-Afríkutími (Djibútí)',\n 'Africa/Douala' => 'Vestur-Afríkutími (Douala)',\n 'Africa/El_Aaiun' => 'Vestur", "suffix": "' => 'Suður-Afríkutími (Jóhannesarborg)',\n 'Africa/Juba' => 'Mið-Afríkutími (Juba)',\n 'Africa/Kampala' => 'Austur-Afríkutími (Kampala)',\n 'Africa/Khartoum' => 'Mið-Afríkutími (Khartoum)',\n 'Africa/Kigali' => 'Mið-Afríkutími (Kig", "middle": "-Evróputími (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich-staðaltími (Freetown)',\n 'Africa/Gaborone' => 'Mið-Afríkutími (Gaborone)',\n 'Africa/Harare' => 'Mið-Afríkutími (Harare)',\n 'Africa/Johannesburg", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/is.php", "language": "php", "file_size": 28711, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Ora dell’Africa occidentale (Brazzaville)',\n 'Africa/Bujumbura' => 'Ora dell’Africa centrale (Bujumbura)',\n 'Africa/Cairo' => 'Ora dell’Europa orientale (Il Cairo)',\n 'Africa/Casablanca' => 'Ora dell’Europa occidentale (Casablanca)',\n 'Africa/Ceuta' => 'Ora dell’Europa centrale (Ceuta)',\n 'Africa/Conakry' => 'Ora del meridiano di Greenwich (Conakry)',\n 'Africa/Dakar' => 'Ora del meridiano di Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Ora dell’Africa or", "suffix": "\n 'Africa/Freetown' => 'Ora del meridiano di Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Ora dell’Africa centrale (Gaborone)',\n 'Africa/Harare' => 'Ora dell’Africa centrale (Harare)',\n 'Africa/Johannesburg' => 'Ora dell’Africa", "middle": "ientale (Dar es Salaam)',\n 'Africa/Djibouti' => 'Ora dell’Africa orientale (Gibuti)',\n 'Africa/Douala' => 'Ora dell’Africa occidentale (Douala)',\n 'Africa/El_Aaiun' => 'Ora dell’Europa occidentale (El Ayun)',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/it.php", "language": "php", "file_size": 28427, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n 'Africa/Dakar' => 'グリニッジ標準時(ダカール)',\n 'Africa/Dar_es_Salaam' => '東アフリカ時間(ダルエスサラーム)',\n 'Africa/Djibouti' => '東アフリカ時間(ジブチ)',\n 'Africa/Douala' => '西アフリカ時間(ドゥアラ)',\n 'Africa/El_Aaiun' => '西ヨーロッパ時間(アイウン)',\n 'Africa/Freetown' => 'グリニッジ標準時(フリータウン)',\n 'Africa/Gaborone' => '中央アフリカ時間(ハボローネ)',\n 'Africa/Harare' => '中央アフリカ時間(ハラレ)',\n 'Africa/Johannesburg' => '南アフリカ標準時(ヨハネスブルグ)',\n 'Africa/Juba' => '中央アフリカ時間(ジュバ)',\n 'Africa/Kampala' => '東アフリカ時間(カン", "suffix": "ブルヴィル)',\n 'Africa/Lome' => 'グリニッジ標準時(ロメ)',\n 'Africa/Luanda' => '西アフリカ時間(ルアンダ)',\n 'Africa/Lubumbashi' => '中央アフリカ時間(ルブンバシ)',\n 'Africa/Lusaka' => '中央アフリカ時間(ルサカ)',\n 'Africa/Malabo' => '西アフリカ時間(マラボ)',\n 'Africa/Maputo' =", "middle": "パラ)',\n 'Africa/Khartoum' => '中央アフリカ時間(ハルツーム)',\n 'Africa/Kigali' => '中央アフリカ時間(キガリ)',\n 'Africa/Kinshasa' => '西アフリカ時間(キンシャサ)',\n 'Africa/Lagos' => '西アフリカ時間(ラゴス)',\n 'Africa/Libreville' => '西アフリカ時間(リー", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ja.php", "language": "php", "file_size": 32830, "cut_index": 1331, "middle_length": 229}} {"prefix": " Tengah (Bujumbura)',\n 'Africa/Cairo' => 'Wektu Eropa sisih Wetan (Kairo)',\n 'Africa/Casablanca' => 'Wektu Eropa sisih Kulon (Kasablanka)',\n 'Africa/Ceuta' => 'Wektu Eropa Tengah (Ceuta)',\n 'Africa/Conakry' => 'Wektu Rerata Greenwich (Konakri)',\n 'Africa/Dakar' => 'Wektu Rerata Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Wektu Afrika Wetan (Dar es Salaam)',\n 'Africa/Djibouti' => 'Wektu Afrika Wetan (Djibouti)',\n 'Africa/Douala' => 'Wektu Afrika Kul", "suffix": "are' => 'Wektu Afrika Tengah (Harare)',\n 'Africa/Johannesburg' => 'Wektu Standar Afrika Kidul (Johannesburg)',\n 'Africa/Juba' => 'Wektu Afrika Tengah (Juba)',\n 'Africa/Kampala' => 'Wektu Afrika Wetan (Kampala)',\n 'Africa/Khartou", "middle": "on (Douala)',\n 'Africa/El_Aaiun' => 'Wektu Eropa sisih Kulon (El Aaiún)',\n 'Africa/Freetown' => 'Wektu Rerata Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Wektu Afrika Tengah (Gaborone)',\n 'Africa/Har", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/jv.php", "language": "php", "file_size": 26376, "cut_index": 1331, "middle_length": 229}} {"prefix": "es' => [\n 'Africa/Bujumbura' => 'hora de África central (Buyumbura)',\n 'Africa/Dar_es_Salaam' => 'hora de África oriental (Dar es-Salaam)',\n 'America/Rio_Branco' => 'Hora de Acre (Rio Branco)',\n 'Asia/Almaty' => 'hora de Kazajistán (Almatý)',\n 'Asia/Aqtobe' => 'hora de Kazajistán (Aktobé)',\n 'Asia/Atyrau' => 'hora de Kazajistán (Atirau)',\n 'Atlantic/Stanley' => 'hora de Islas Malvinas (Stanley)',\n 'Indian/Christmas' => 'hora de la isla de Navidad',\n ", "suffix": "Easter' => 'hora de Isla de Pascua',\n 'Pacific/Honolulu' => 'hora estándar de Hawái-Aleutianas (Honolulu)',\n 'Pacific/Tarawa' => 'hora de las Islas Gilbert (Tarawa)',\n 'Pacific/Wake' => 'hora de la Isla Wake',\n ],\n 'Meta' => [],\n", "middle": " 'Pacific/", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/es_MX.php", "language": "php", "file_size": 818, "cut_index": 536, "middle_length": 14}} {"prefix": "ცენტრალური აფრიკის დრო (ბუჯუმბურა)',\n 'Africa/Cairo' => 'აღმოსავლეთ ევროპის დრო (კაირო)',\n 'Africa/Casablanca' => 'დასავლეთ ევროპის დრო (კასაბლანკა)',\n 'Africa/Ceuta' => 'ცენტრალური ევროპის დრო (სეუტა)',\n 'Africa/Conakry' => 'გრინვიჩის საშუალო დრო (კონაკრი)',\n 'Africa/Dakar' => 'გრინვიჩის საშუალო დრო (დაკარი)',\n 'Africa/Dar_es_Salaam' => 'აღმოსავლეთ აფრიკის დრო (დარ-ეს-სალამი)',\n 'Africa/Djibouti' => 'აღმოსავლეთ აფრიკის დრო (ჯიბუტი)',\n 'Africa/Douala' ", "suffix": ",\n 'Africa/Harare' => 'ცენტრალური აფრიკის დრო (ჰარარე)',\n 'Africa/Johannesburg' => 'სამხრეთ აფრიკის დრო (იოჰანესბურგი)',\n 'Africa/Juba' => 'ცენტრალური აფრიკის დრო (ჯუბა)',\n 'Africa/Kampala' => 'აღმოსავლეთ აფრიკის დრო (კამპალა)',", "middle": "=> 'დასავლეთ აფრიკის დრო (დუალა)',\n 'Africa/El_Aaiun' => 'დასავლეთ ევროპის დრო (ელ-ააიუნი)',\n 'Africa/Freetown' => 'გრინვიჩის საშუალო დრო (ფრიტაუნი)',\n 'Africa/Gaborone' => 'ცენტრალური აფრიკის დრო (გაბორონე)'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ka.php", "language": "php", "file_size": 50197, "cut_index": 1331, "middle_length": 229}} {"prefix": "rica/Cairo' => 'Шығыс Еуропа уақыты (Каир)',\n 'Africa/Casablanca' => 'Батыс Еуропа уақыты (Касабланка)',\n 'Africa/Ceuta' => 'Орталық Еуропа уақыты (Сеута)',\n 'Africa/Conakry' => 'Гринвич уақыты (Конакри)',\n 'Africa/Dakar' => 'Гринвич уақыты (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Шығыс Африка уақыты (Дар-эс-Салам)',\n 'Africa/Djibouti' => 'Шығыс Африка уақыты (Джибути)',\n 'Africa/Douala' => 'Батыс Африка уақыты (Дуала)',\n 'Africa/El_Aaiun' => 'Батыс Еуроп", "suffix": "urg' => 'Оңтүстік Африка стандартты уақыты (Йоханнесбург)',\n 'Africa/Juba' => 'Орталық Африка уақыты (Джуба)',\n 'Africa/Kampala' => 'Шығыс Африка уақыты (Кампала)',\n 'Africa/Khartoum' => 'Орталық Африка уақыты (Хартум)',\n 'Afric", "middle": "а уақыты (Эль-Аюн)',\n 'Africa/Freetown' => 'Гринвич уақыты (Фритаун)',\n 'Africa/Gaborone' => 'Орталық Африка уақыты (Габороне)',\n 'Africa/Harare' => 'Орталық Африка уақыты (Хараре)',\n 'Africa/Johannesb", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/kk.php", "language": "php", "file_size": 38344, "cut_index": 1331, "middle_length": 229}} {"prefix": "ica/Cairo' => 'شىعىس ەۋروپا ۋاقىتى (كاير)',\n 'Africa/Casablanca' => 'باتىس ەۋروپا ۋاقىتى (كاسابلانكا)',\n 'Africa/Ceuta' => 'ورتالىق ەۋروپا ۋاقىتى (سەۋتا)',\n 'Africa/Conakry' => 'گرينۆيچ ۋاقىتى (كوناكري)',\n 'Africa/Dakar' => 'گرينۆيچ ۋاقىتى (داكار)',\n 'Africa/Dar_es_Salaam' => 'شىعىس افريكا ۋاقىتى (دار-ەس-سالام)',\n 'Africa/Djibouti' => 'شىعىس افريكا ۋاقىتى (جيبۋتي)',\n 'Africa/Douala' => 'باتىس افريكا ۋاقىتى (دۋالا)',\n 'Africa/El_Aaiun' => 'باتىس ەۋروپا ", "suffix": "g' => 'وڭتۇستىك افريكا ستاندارتتى ۋاقىتى (يوحاننەسبۋرگ)',\n 'Africa/Juba' => 'ورتالىق افريكا ۋاقىتى (جۋبا)',\n 'Africa/Kampala' => 'شىعىس افريكا ۋاقىتى (كامپالا)',\n 'Africa/Khartoum' => 'ورتالىق افريكا ۋاقىتى (حارتۋم)',\n 'Africa/K", "middle": "ۋاقىتى (ەل-ايۋن)',\n 'Africa/Freetown' => 'گرينۆيچ ۋاقىتى (فريتاۋن)',\n 'Africa/Gaborone' => 'ورتالىق افريكا ۋاقىتى (گابورونە)',\n 'Africa/Harare' => 'ورتالىق افريكا ۋاقىتى (حارارە)',\n 'Africa/Johannesbur", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/kk_Arab.php", "language": "php", "file_size": 38370, "cut_index": 1331, "middle_length": 229}} {"prefix": "mbura' => 'ម៉ោង​នៅ​អាហ្វ្រិក​កណ្ដាល (ប៊ូយ៉ាំប៊ូរ៉ា)',\n 'Africa/Cairo' => 'ម៉ោង​នៅ​អឺរ៉ុប​​ខាង​កើត​ (គែរ)',\n 'Africa/Casablanca' => 'ម៉ោង​នៅ​អឺរ៉ុប​ខាង​លិច (កាសាប្លាំងកា)',\n 'Africa/Ceuta' => 'ម៉ោង​នៅ​អឺរ៉ុប​កណ្ដាល (ឈៀតា)',\n 'Africa/Conakry' => 'ម៉ោងនៅគ្រីនវិច (កូណាគ្រី)',\n 'Africa/Dakar' => 'ម៉ោងនៅគ្រីនវិច (ដាកា)',\n 'Africa/Dar_es_Salaam' => 'ម៉ោង​នៅ​អាហ្វ្រិក​ខាង​កើត (ដាអ៊ីសាឡាំ)',\n 'Africa/Djibouti' => 'ម៉ោង​នៅ​អាហ្វ្រិក​ខាង​កើត (ជីប៊ូទី)',\n 'Africa/", "suffix": "ដាល (ហ្គាបូរ៉ូន)',\n 'Africa/Harare' => 'ម៉ោង​នៅ​អាហ្វ្រិក​កណ្ដាល (ហារ៉ារ៉េ)',\n 'Africa/Johannesburg' => 'ម៉ោង​នៅ​អាហ្វ្រិក​ខាង​ត្បូង (ជូហានណេប៊ឺហ្គ)',\n 'Africa/Juba' => 'ម៉ោង​នៅ​អាហ្វ្រិក​កណ្ដាល (ជូបា)',\n 'Africa/Kampala' => 'ម៉", "middle": "Douala' => 'ម៉ោង​នៅ​អាហ្វ្រិក​ខាង​លិច (ឌូអ៊ូឡា)',\n 'Africa/El_Aaiun' => 'ម៉ោង​នៅ​អឺរ៉ុប​ខាង​លិច (អែល​អ៊ុយញៀន)',\n 'Africa/Freetown' => 'ម៉ោងនៅគ្រីនវិច (ហ្វ្រីថោន)',\n 'Africa/Gaborone' => 'ម៉ោង​នៅ​អាហ្វ្រិក​កណ្", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/km.php", "language": "php", "file_size": 55223, "cut_index": 1331, "middle_length": 229}} {"prefix": " => 'ಮಧ್ಯ ಆಫ್ರಿಕಾ ಸಮಯ (ಬುಜುಂಬುರಾ)',\n 'Africa/Cairo' => 'ಪೂರ್ವ ಯುರೋಪಿಯನ್ ಸಮಯ (ಕೈರೋ)',\n 'Africa/Casablanca' => 'ಪಶ್ಚಿಮ ಯುರೋಪಿಯನ್ ಸಮಯ (ಕ್ಯಾಸಾಬ್ಲಾಂಕಾ)',\n 'Africa/Ceuta' => 'ಮಧ್ಯ ಯುರೋಪಿಯನ್ ಸಮಯ (ಸೆಯುಟಾ)',\n 'Africa/Conakry' => 'ಗ್ರೀನ್‌ವಿಚ್ ಸರಾಸರಿ ಕಾಲಮಾನ (ಕೊನಾಕ್ರಿ)',\n 'Africa/Dakar' => 'ಗ್ರೀನ್‌ವಿಚ್ ಸರಾಸರಿ ಕಾಲಮಾನ (ಡಾಕರ್)',\n 'Africa/Dar_es_Salaam' => 'ಪೂರ್ವ ಆಫ್ರಿಕಾ ಸಮಯ (ಡಾರ್ ಎಸ್ ಸಲಾಮ್)',\n 'Africa/Djibouti' => 'ಪೂರ್ವ ಆಫ್ರಿಕಾ ಸಮಯ (ಜಿಬೂಟಿ)',\n 'Africa/Douala' => 'ಪಶ", "suffix": "frica/Harare' => 'ಮಧ್ಯ ಆಫ್ರಿಕಾ ಸಮಯ (ಹರಾರೆ)',\n 'Africa/Johannesburg' => 'ದಕ್ಷಿಣ ಆಫ್ರಿಕಾ ಪ್ರಮಾಣಿತ ಸಮಯ (ಜೋಹಾನ್ಸ್‌ಬರ್ಗ್)',\n 'Africa/Juba' => 'ಮಧ್ಯ ಆಫ್ರಿಕಾ ಸಮಯ (ಜುಬಾ)',\n 'Africa/Kampala' => 'ಪೂರ್ವ ಆಫ್ರಿಕಾ ಸಮಯ (ಕಂಪಾಲಾ)',\n 'Africa/Khar", "middle": "್ಚಿಮ ಆಫ್ರಿಕಾ ಸಮಯ (ದೌಲಾ)',\n 'Africa/El_Aaiun' => 'ಪಶ್ಚಿಮ ಯುರೋಪಿಯನ್ ಸಮಯ (ಎಲ್ ಔನ್)',\n 'Africa/Freetown' => 'ಗ್ರೀನ್‌ವಿಚ್ ಸರಾಸರಿ ಕಾಲಮಾನ (ಫ್ರೀಟೌನ್)',\n 'Africa/Gaborone' => 'ಮಧ್ಯ ಆಫ್ರಿಕಾ ಸಮಯ (ಗ್ಯಾಬರೋನೆ)',\n 'A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/kn.php", "language": "php", "file_size": 47832, "cut_index": 1331, "middle_length": 229}} {"prefix": "a/Dakar' => '그리니치 표준시(다카르)',\n 'Africa/Dar_es_Salaam' => '동아프리카 시간(다르에스살람)',\n 'Africa/Djibouti' => '동아프리카 시간(지부티)',\n 'Africa/Douala' => '서아프리카 시간(두알라)',\n 'Africa/El_Aaiun' => '서유럽 시간(엘아이운)',\n 'Africa/Freetown' => '그리니치 표준시(프리타운)',\n 'Africa/Gaborone' => '중앙아프리카 시간(가보로네)',\n 'Africa/Harare' => '중앙아프리카 시간(하라레)',\n 'Africa/Johannesburg' => '남아프리카 시간(요하네스버그)',\n 'Africa/Juba' => '중앙아프리카 시간(주바)',\n 'Africa/Kampala' => '동아프리카 시간(캄팔라)',\n 'Afric", "suffix": "ca/Lome' => '그리니치 표준시(로메)',\n 'Africa/Luanda' => '서아프리카 시간(루안다)',\n 'Africa/Lubumbashi' => '중앙아프리카 시간(루붐바시)',\n 'Africa/Lusaka' => '중앙아프리카 시간(루사카)',\n 'Africa/Malabo' => '서아프리카 시간(말라보)',\n 'Africa/Maputo' => '중앙아프리카 시간(마푸토)',\n", "middle": "a/Khartoum' => '중앙아프리카 시간(카르툼)',\n 'Africa/Kigali' => '중앙아프리카 시간(키갈리)',\n 'Africa/Kinshasa' => '서아프리카 시간(킨샤사)',\n 'Africa/Lagos' => '서아프리카 시간(라고스)',\n 'Africa/Libreville' => '서아프리카 시간(리브르빌)',\n 'Afri", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ko.php", "language": "php", "file_size": 28710, "cut_index": 1331, "middle_length": 229}} {"prefix": " ٹایِم (بُجُمبُرا)',\n 'Africa/Cairo' => 'مشرقی یوٗرپی ٹایِم (کَیرو)',\n 'Africa/Casablanca' => 'مغرِبی یوٗرپی ٹایِم (کؠسابلؠنکا)',\n 'Africa/Ceuta' => 'مرکزی یوٗرپی ٹایِم (کیوٗٹا)',\n 'Africa/Conakry' => 'گریٖن وِچ میٖن ٹایِم (کوناکری)',\n 'Africa/Dakar' => 'گریٖن وِچ میٖن ٹایِم (دَکار)',\n 'Africa/Dar_es_Salaam' => 'مشرقی افریٖقا ٹایِم (دارالسلام)',\n 'Africa/Djibouti' => 'مشرقی افریٖقا ٹایِم (ڈِجیبوٹی)',\n 'Africa/Douala' => 'مغربی افریٖقا ٹایِم (ڈوولا)',\n ", "suffix": " ٹایِم (ہَراریے)',\n 'Africa/Johannesburg' => 'جنوٗبی افریقا ٹایِم (جوہانسبرگ)',\n 'Africa/Juba' => 'مرکزی افریٖقا ٹایِم (جوبا)',\n 'Africa/Kampala' => 'مشرقی افریٖقا ٹایِم (کَمپالا)',\n 'Africa/Khartoum' => 'مرکزی افریٖقا ٹایِم (کھ", "middle": " 'Africa/El_Aaiun' => 'مغرِبی یوٗرپی ٹایِم (ال عیون)',\n 'Africa/Freetown' => 'گریٖن وِچ میٖن ٹایِم (فری ٹاوُن)',\n 'Africa/Gaborone' => 'مرکزی افریٖقا ٹایِم (گؠبورون)',\n 'Africa/Harare' => 'مرکزی افریٖقا", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ks.php", "language": "php", "file_size": 35626, "cut_index": 1331, "middle_length": 229}} {"prefix": "ille' => 'ནུབ་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད། (Brazzaville་)',\n 'Africa/Bujumbura' => 'དབུས་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད། (Bujumbura་)',\n 'Africa/Cairo' => 'ཤར་ཕྱོགས་ཡུ་རོ་པེན་ཆུ་ཚོད། (ཀཱའི་རོ་)',\n 'Africa/Casablanca' => 'ནུབ་ཕྱོགས་ཡུ་རོ་པེན་ཆུ་ཚོད། (Casablanca་)',\n 'Africa/Ceuta' => 'དབུས་ཕྱོགས་ཡུ་རོ་པེན་ཆུ་ཚོད། (Ceuta་)',\n 'Africa/Conakry' => 'གིརིན་ཝིཆ་ལུ་ཡོད་པའི་ཆུ་ཚོད། (Conakry་)',\n 'Africa/Dakar' => 'གིརིན་ཝིཆ་ལུ་ཡོད་པའི་ཆུ་ཚོད། (ཌཱ་ཀར་)',\n 'Africa/Dar_es_Salaam' => 'ཤ", "suffix": "ན་ཆུ་ཚོད། (El Aaiún་)',\n 'Africa/Freetown' => 'གིརིན་ཝིཆ་ལུ་ཡོད་པའི་ཆུ་ཚོད། (Freetown་)',\n 'Africa/Gaborone' => 'དབུས་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད། (Gaborone་)',\n 'Africa/Harare' => 'དབུས་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད། (Harare་)',\n 'Africa/Joh", "middle": "ར་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད། (Dar es Salaam་)',\n 'Africa/Djibouti' => 'ཤར་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད། (Djibouti་)',\n 'Africa/Douala' => 'ནུབ་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད། (Douala་)',\n 'Africa/El_Aaiun' => 'ནུབ་ཕྱོགས་ཡུ་རོ་པེ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/dz.php", "language": "php", "file_size": 53565, "cut_index": 1331, "middle_length": 229}} {"prefix": "frica/Bujumbura' => '[Ώρα Κεντρικής Αφρικής (Μπουζουμπούρα)]',\n 'Africa/Cairo' => '[Ώρα Ανατολικής Ευρώπης (Κάιρο)]',\n 'Africa/Casablanca' => '[Ώρα Δυτικής Ευρώπης (Καζαμπλάνκα)]',\n 'Africa/Ceuta' => '[Ώρα Κεντρικής Ευρώπης (Θέουτα)]',\n 'Africa/Conakry' => '[Μέση ώρα Γκρίνουιτς (Κόνακρι)]',\n 'Africa/Dakar' => '[Μέση ώρα Γκρίνουιτς (Ντακάρ)]',\n 'Africa/Dar_es_Salaam' => '[Ώρα Ανατολικής Αφρικής (Νταρ ες Σαλάμ)]',\n 'Africa/Djibouti' => '[Ώρα Ανατολικής Αφρικής ", "suffix": "one' => '[Ώρα Κεντρικής Αφρικής (Γκαμπορόνε)]',\n 'Africa/Harare' => '[Ώρα Κεντρικής Αφρικής (Χαράρε)]',\n 'Africa/Johannesburg' => '[Χειμερινή ώρα Νότιας Αφρικής (Γιοχάνεσμπουργκ)]',\n 'Africa/Juba' => '[Ώρα Κεντρικής Αφρικής (Τζούμπα)]'", "middle": "(Τζιμπουτί)]',\n 'Africa/Douala' => '[Ώρα Δυτικής Αφρικής (Ντουάλα)]',\n 'Africa/El_Aaiun' => '[Ώρα Δυτικής Ευρώπης (Ελ Αγιούν)]',\n 'Africa/Freetown' => '[Μέση ώρα Γκρίνουιτς (Φρίταουν)]',\n 'Africa/Gabor", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/el.php", "language": "php", "file_size": 38506, "cut_index": 1331, "middle_length": 229}} {"prefix": "ujumbura' => 'centrafrika tempo (Buĵumburo)',\n 'Africa/Cairo' => 'orienteŭropa tempo (Kairo)',\n 'Africa/Casablanca' => 'okcidenteŭropa tempo (Kazablanko)',\n 'Africa/Ceuta' => 'centreŭropa tempo (Ceŭto)',\n 'Africa/Conakry' => 'universala tempo kunordigita (Konakrio)',\n 'Africa/Dakar' => 'universala tempo kunordigita (Dakaro)',\n 'Africa/Dar_es_Salaam' => 'orientafrika tempo (Daresalamo)',\n 'Africa/Djibouti' => 'orientafrika tempo (Ĝibutio)',\n 'Africa/Dou", "suffix": "no)',\n 'Africa/Harare' => 'centrafrika tempo (Harareo)',\n 'Africa/Johannesburg' => 'sudafrika tempo (Johanesburgo)',\n 'Africa/Juba' => 'centrafrika tempo (Ĝubao)',\n 'Africa/Kampala' => 'orientafrika tempo (Kampalo)',\n 'Af", "middle": "ala' => 'okcidentafrika tempo (Dualao)',\n 'Africa/El_Aaiun' => 'okcidenteŭropa tempo (Ajuno)',\n 'Africa/Freetown' => 'universala tempo kunordigita (Fritaŭno)',\n 'Africa/Gaborone' => 'centrafrika tempo (Gaboro", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/eo.php", "language": "php", "file_size": 27826, "cut_index": 1331, "middle_length": 229}} {"prefix": " => 'የምዕራባዊ አውሮፓ ሰዓት (ካዛብላንካ)',\n 'Africa/Ceuta' => 'የመካከለኛው አውሮፓ ሰዓት (ሲኡታ)',\n 'Africa/Conakry' => 'ግሪንዊች ማዕከላዊ ሰዓት (ኮናክሬ)',\n 'Africa/Dakar' => 'ግሪንዊች ማዕከላዊ ሰዓት (ዳካር)',\n 'Africa/Dar_es_Salaam' => 'የምስራቅ አፍሪካ ሰዓት (ዳሬ ሰላም)',\n 'Africa/Djibouti' => 'የምስራቅ አፍሪካ ሰዓት (ጅቡቲ)',\n 'Africa/Douala' => 'የምዕራብ አፍሪካ ሰዓት (ዱአላ)',\n 'Africa/El_Aaiun' => 'የምዕራባዊ አውሮፓ ሰዓት (ኤል አዩአን)',\n 'Africa/Freetown' => 'ግሪንዊች ማዕከላዊ ሰዓት (ፍሪታውን)',\n 'Africa/Gaborone' => 'የመካከለኛው አፍሪካ ሰ", "suffix": ")',\n 'Africa/Khartoum' => 'የመካከለኛው አፍሪካ ሰዓት (ካርቱም)',\n 'Africa/Kigali' => 'የመካከለኛው አፍሪካ ሰዓት (ኪጋሊ)',\n 'Africa/Kinshasa' => 'የምዕራብ አፍሪካ ሰዓት (ኪንሻሳ)',\n 'Africa/Lagos' => 'የምዕራብ አፍሪካ ሰዓት (ሌጎስ)',\n 'Africa/Libreville' => 'የምዕራብ አ", "middle": "ዓት (ጋቦሮን)',\n 'Africa/Harare' => 'የመካከለኛው አፍሪካ ሰዓት (ሃራሬ)',\n 'Africa/Johannesburg' => 'የደቡብ አፍሪካ መደበኛ ሰዓት (ጆሃንስበርግ)',\n 'Africa/Juba' => 'የመካከለኛው አፍሪካ ሰዓት (ጁባ)',\n 'Africa/Kampala' => 'የምስራቅ አፍሪካ ሰዓት (ካምፓላ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/am.php", "language": "php", "file_size": 39992, "cut_index": 1331, "middle_length": 229}} {"prefix": "ৰা)',\n 'Africa/Cairo' => 'প্ৰাচ্য ইউৰোপীয় সময় (কাইৰো)',\n 'Africa/Casablanca' => 'পাশ্চাত্য ইউৰোপীয় সময় (কাছাব্লাংকা)',\n 'Africa/Ceuta' => 'মধ্য ইউৰোপীয় সময় (চেউটা)',\n 'Africa/Conakry' => 'গ্ৰীণউইচ মান সময় (কোনাক্ৰী)',\n 'Africa/Dakar' => 'গ্ৰীণউইচ মান সময় (ডাকাৰ)',\n 'Africa/Dar_es_Salaam' => 'পূব আফ্ৰিকাৰ সময় (ডাৰ এছ ছালাম)',\n 'Africa/Djibouti' => 'পূব আফ্ৰিকাৰ সময় (জিবুটি)',\n 'Africa/Douala' => 'পশ্চিম আফ্ৰিকাৰ সময় (ডুৱালা)',\n 'Africa", "suffix": ")',\n 'Africa/Johannesburg' => 'দক্ষিণ আফ্ৰিকাৰ মান সময় (জোহান্সবাৰ্গ)',\n 'Africa/Juba' => 'মধ্য আফ্ৰিকাৰ সময় (জুবা)',\n 'Africa/Kampala' => 'পূব আফ্ৰিকাৰ সময় (কাম্পালা)',\n 'Africa/Khartoum' => 'মধ্য আফ্ৰিকাৰ সময় (খাৰ্টুম)',\n ", "middle": "/El_Aaiun' => 'পাশ্চাত্য ইউৰোপীয় সময় (এল আইয়ুন)',\n 'Africa/Freetown' => 'গ্ৰীণউইচ মান সময় (ফ্ৰিটাউন)',\n 'Africa/Gaborone' => 'মধ্য আফ্ৰিকাৰ সময় (গাবোৰোণ)',\n 'Africa/Harare' => 'মধ্য আফ্ৰিকাৰ সময় (হাৰাৰে", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/as.php", "language": "php", "file_size": 48530, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n 'Africa/Bujumbura' => 'Үҙәк Африка ваҡыты (Бужумбура)',\n 'Africa/Cairo' => 'Көнсығыш Европа ваҡыты (Ҡаһирә)',\n 'Africa/Casablanca' => 'Көнбайыш Европа ваҡыты (Касабланка)',\n 'Africa/Ceuta' => 'Үҙәк Европа ваҡыты (Сеута)',\n 'Africa/Conakry' => 'Гринвич буйынса уртаса ваҡыт (Конакри)',\n 'Africa/Dakar' => 'Гринвич буйынса уртаса ваҡыт (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Көнсығыш Африка ваҡыты (Дар-эс-Салам)',\n 'Africa/Djibouti' => 'Көнсығыш Африка ваҡ", "suffix": "Gaborone' => 'Үҙәк Африка ваҡыты (Габороне)',\n 'Africa/Harare' => 'Үҙәк Африка ваҡыты (Хараре)',\n 'Africa/Johannesburg' => 'Көньяҡ Африка стандарт ваҡыты (Йоханнесбург)',\n 'Africa/Juba' => 'Үҙәк Африка ваҡыты (Джуба)',\n 'Africa/", "middle": "ыты (Джибути)',\n 'Africa/Douala' => 'Көнбайыш Африка ваҡыты (Дуала)',\n 'Africa/El_Aaiun' => 'Көнбайыш Европа ваҡыты (Эль-Аюн)',\n 'Africa/Freetown' => 'Гринвич буйынса уртаса ваҡыт (Фритаун)',\n 'Africa/", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ba.php", "language": "php", "file_size": 38076, "cut_index": 1331, "middle_length": 229}} {"prefix": "жумбура)',\n 'Africa/Cairo' => 'Усходнееўрапейскі час (Каір)',\n 'Africa/Casablanca' => 'Заходнееўрапейскі час (Касабланка)',\n 'Africa/Ceuta' => 'Цэнтральнаеўрапейскі час (Сеута)',\n 'Africa/Conakry' => 'Час па Грынвічы (Конакры)',\n 'Africa/Dakar' => 'Час па Грынвічы (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Усходнеафрыканскі час (Дар-эс-Салам)',\n 'Africa/Djibouti' => 'Усходнеафрыканскі час (Джыбуці)',\n 'Africa/Douala' => 'Заходнеафрыканскі час (Дуала)',\n ", "suffix": "анскі час (Харарэ)',\n 'Africa/Johannesburg' => 'Паўднёваафрыканскі час (Яганэсбург)',\n 'Africa/Juba' => 'Цэнтральнаафрыканскі час (Джуба)',\n 'Africa/Kampala' => 'Усходнеафрыканскі час (Кампала)',\n 'Africa/Khartoum' => 'Цэнтральн", "middle": " 'Africa/El_Aaiun' => 'Заходнееўрапейскі час (Эль-Аюн)',\n 'Africa/Freetown' => 'Час па Грынвічы (Фрытаўн)',\n 'Africa/Gaborone' => 'Цэнтральнаафрыканскі час (Габаронэ)',\n 'Africa/Harare' => 'Цэнтральнаафрык", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/be.php", "language": "php", "file_size": 38560, "cut_index": 1331, "middle_length": 229}} {"prefix": "rage' => 'ཨ་མེ་རི་ཀ། (Anchorage)',\n 'America/Boise' => 'ཨ་མེ་རི་ཀ། (Boise)',\n 'America/Chicago' => 'ཨ་མེ་རི་ཀ། (Chicago)',\n 'America/Denver' => 'ཨ་མེ་རི་ཀ། (Denver)',\n 'America/Detroit' => 'ཨ་མེ་རི་ཀ། (Detroit)',\n 'America/Indiana/Knox' => 'ཨ་མེ་རི་ཀ། (Knox, Indiana)',\n 'America/Indiana/Marengo' => 'ཨ་མེ་རི་ཀ། (Marengo, Indiana)',\n 'America/Indiana/Petersburg' => 'ཨ་མེ་རི་ཀ། (Petersburg, Indiana)',\n 'America/Indiana/Tell_City' => 'ཨ་མེ་རི་ཀ། (Tell City", "suffix": " 'America/Indianapolis' => 'ཨ་མེ་རི་ཀ། (Indianapolis)',\n 'America/Indiana/Indianapolis' => 'ཨ་མེ་རི་ཀ། (Indianapolis)',\n 'America/Juneau' => 'ཨ་མེ་རི་ཀ། (Juneau)',\n 'America/Kentucky/Monticello' => 'ཨ་མེ་རི་ཀ། (Monticello, Kentucky)',", "middle": ", Indiana)',\n 'America/Indiana/Vevay' => 'ཨ་མེ་རི་ཀ། (Vevay, Indiana)',\n 'America/Indiana/Vincennes' => 'ཨ་མེ་རི་ཀ། (Vincennes, Indiana)',\n 'America/Indiana/Winamac' => 'ཨ་མེ་རི་ཀ། (Winamac, Indiana)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/bo.php", "language": "php", "file_size": 5224, "cut_index": 614, "middle_length": 229}} {"prefix": "fričko vrijeme (Bujumbura)',\n 'Africa/Cairo' => 'Istočnoevropsko vrijeme (Kairo)',\n 'Africa/Casablanca' => 'Zapadnoevropsko vrijeme (Kazablanka)',\n 'Africa/Ceuta' => 'Centralnoevropsko vrijeme (Ceuta)',\n 'Africa/Conakry' => 'Griničko vrijeme (Conakry)',\n 'Africa/Dakar' => 'Griničko vrijeme (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Istočnoafričko vrijeme (Dar es Salaam)',\n 'Africa/Djibouti' => 'Istočnoafričko vrijeme (Džibuti)',\n 'Africa/Douala' => 'Zapadno", "suffix": " 'Africa/Harare' => 'Centralnoafričko vrijeme (Harare)',\n 'Africa/Johannesburg' => 'Južnoafričko standardno vrijeme (Johannesburg)',\n 'Africa/Juba' => 'Centralnoafričko vrijeme (Juba)',\n 'Africa/Kampala' => 'Istočnoafričko vrijeme (Kam", "middle": "afričko vrijeme (Douala)',\n 'Africa/El_Aaiun' => 'Zapadnoevropsko vrijeme (El Aaiún)',\n 'Africa/Freetown' => 'Griničko vrijeme (Freetown)',\n 'Africa/Gaborone' => 'Centralnoafričko vrijeme (Gaborone)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/bs.php", "language": "php", "file_size": 30133, "cut_index": 1331, "middle_length": 229}} {"prefix": " l’Àfrica occidental (Brazzaville)',\n 'Africa/Bujumbura' => 'Hora de l’Àfrica central (Bujumbura)',\n 'Africa/Cairo' => 'Hora d’Europa oriental (Caire, el)',\n 'Africa/Casablanca' => 'Hora d’Europa occidental (Casablanca)',\n 'Africa/Ceuta' => 'Hora d’Europa central (Ceuta)',\n 'Africa/Conakry' => 'Hora del meridià de Greenwich (Conakry)',\n 'Africa/Dakar' => 'Hora del meridià de Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Hora de l’Àfrica oriental (Dar es Sal", "suffix": "eetown' => 'Hora del meridià de Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Hora de l’Àfrica central (Gaborone)',\n 'Africa/Harare' => 'Hora de l’Àfrica central (Harare)',\n 'Africa/Johannesburg' => 'Hora estàndard de l’Àfrica meridion", "middle": "aam)',\n 'Africa/Djibouti' => 'Hora de l’Àfrica oriental (Djibouti)',\n 'Africa/Douala' => 'Hora de l’Àfrica occidental (Douala)',\n 'Africa/El_Aaiun' => 'Hora d’Europa occidental (al-Aaiun)',\n 'Africa/Fr", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ca.php", "language": "php", "file_size": 29451, "cut_index": 1331, "middle_length": 229}} {"prefix": "rický čas (Bujumbura)',\n 'Africa/Cairo' => 'východoevropský čas (Káhira)',\n 'Africa/Casablanca' => 'západoevropský čas (Casablanca)',\n 'Africa/Ceuta' => 'středoevropský čas (Ceuta)',\n 'Africa/Conakry' => 'greenwichský střední čas (Conakry)',\n 'Africa/Dakar' => 'greenwichský střední čas (Dakar)',\n 'Africa/Dar_es_Salaam' => 'východoafrický čas (Dar es Salaam)',\n 'Africa/Djibouti' => 'východoafrický čas (Džibuti)',\n 'Africa/Douala' => 'západoafrický čas (", "suffix": "středoafrický čas (Harare)',\n 'Africa/Johannesburg' => 'jihoafrický čas (Johannesburg)',\n 'Africa/Juba' => 'středoafrický čas (Juba)',\n 'Africa/Kampala' => 'východoafrický čas (Kampala)',\n 'Africa/Khartoum' => 'středoafrický čas", "middle": "Douala)',\n 'Africa/El_Aaiun' => 'západoevropský čas (El Aaiún)',\n 'Africa/Freetown' => 'greenwichský střední čas (Freetown)',\n 'Africa/Gaborone' => 'středoafrický čas (Gaborone)',\n 'Africa/Harare' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/cs.php", "language": "php", "file_size": 28964, "cut_index": 1331, "middle_length": 229}} {"prefix": "es' => [\n 'Africa/Djibouti' => 'hora de África oriental (Yibutí)',\n 'Asia/Pyongyang' => 'hora de Corea (Pionyang)',\n 'Europe/Astrakhan' => 'hora de Samara (Astrakhan)',\n 'Europe/Kirov' => 'hora de Moscú (Kirov)',\n 'Europe/Ulyanovsk' => 'hora de Samara (Ulyanovsk)',\n 'Indian/Chagos' => 'hora del Océano Índico (Chagos)',\n 'Pacific/Enderbury' => 'hora de las islas Fénix (Isla Kanton)',\n 'Pacific/Kanton' => 'hora de las islas Fénix (Isla Kanton)',\n ", "suffix": " => 'hora de Chamorro (Guam)',\n 'Pacific/Honolulu' => 'hora estándar de Hawái-Aleutianas (Honolulu)',\n 'Pacific/Marquesas' => 'hora de las islas Marquesas',\n 'Pacific/Saipan' => 'hora de Chamorro (Saipán)',\n ],\n 'Meta' => [],\n];\n", "middle": "'Pacific/Guam'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/es_US.php", "language": "php", "file_size": 816, "cut_index": 536, "middle_length": 14}} {"prefix": "=> 'Afrikako mendebaldeko ordua (Brazzaville)',\n 'Africa/Bujumbura' => 'Afrikako erdialdeko ordua (Bujumbura)',\n 'Africa/Cairo' => 'Europako ekialdeko ordua (Kairo)',\n 'Africa/Casablanca' => 'Europako mendebaldeko ordua (Casablanca)',\n 'Africa/Ceuta' => 'Europako erdialdeko ordua (Ceuta)',\n 'Africa/Conakry' => 'Greenwichko meridianoaren ordua (Konakry)',\n 'Africa/Dakar' => 'Greenwichko meridianoaren ordua (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Afrikako ekialde", "suffix": " 'Africa/Freetown' => 'Greenwichko meridianoaren ordua (Freetown)',\n 'Africa/Gaborone' => 'Afrikako erdialdeko ordua (Gaborone)',\n 'Africa/Harare' => 'Afrikako erdialdeko ordua (Harare)',\n 'Africa/Johannesburg' => 'Afrikako hegoa", "middle": "ko ordua (Dar es Salaam)',\n 'Africa/Djibouti' => 'Afrikako ekialdeko ordua (Djibuti)',\n 'Africa/Douala' => 'Afrikako mendebaldeko ordua (Duala)',\n 'Africa/El_Aaiun' => 'Europako mendebaldeko ordua (Aaiun)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/eu.php", "language": "php", "file_size": 29421, "cut_index": 1331, "middle_length": 229}} {"prefix": "𞤪𞤲𞤢𞥄𞤲𞤺𞤫 𞤀𞤬𞤪𞤭𞤳𞤢𞥄 (𞤄𞤢𞤪𞥁𞤢𞤾𞤭𞤤)',\n 'Africa/Bujumbura' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤚𞤵𞤥𞤦𞤮𞥅𞤪𞤭 𞤀𞤬𞤪𞤭𞤳𞤢𞥄 (𞤄𞤵𞤶𞤵𞤥𞤦𞤵𞤪𞤢)',\n 'Africa/Cairo' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤊𞤵𞤯𞤲𞤢𞥄𞤲𞥋𞤺𞤫 𞤀𞤪𞤮𞥅𞤦𞤢 (𞤑𞤢𞤴𞤪𞤢)',\n 'Africa/Casablanca' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤖𞤭𞥅𞤪𞤲𞤢𞥄𞤲𞥋𞤺𞤫 𞤀𞤪𞤮𞥅𞤦𞤢 (𞤑𞤢𞥄𞤧𞤢𞤦𞤵𞤤𞤢𞤲𞤳𞤢𞥄)',\n 'Africa/Ceuta' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤚𞤵𞤥𞤦𞤮𞥅𞤪𞤭 𞤀𞤪𞤮𞥅𞤦𞤢 (𞤅𞤭𞥅𞤼𞤢)',\n 'Africa/Conakry' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤖𞤢𞤳𞤭𞤲𞤭𞥅𞤲𞥋𞤣𞤫 𞤘𞤪𞤭𞤲𞤱𞤭𞥅𞤧 (𞤑𞤮𞤲𞤢𞥄𞤳𞤭𞤪𞤭)',\n 'Africa/Dakar' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤖𞤢𞤳𞤭𞤲𞤭𞥅𞤲𞥋𞤣𞤫 𞤘𞤪𞤭𞤲𞤱𞤭𞥅𞤧 (𞤁𞤢𞤳𞤢𞥄𞤪)',\n 'Africa/Dar_es_Salaam' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤊𞤵𞤯𞤲𞤢𞥄𞤲𞤺𞤫 𞤀𞤬𞤪𞤭𞤳𞤢𞥄 (𞤁𞤢𞥄𞤪𞤫-𞤅𞤢𞤤𞤢𞥄", "suffix": "town' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤖𞤢𞤳𞤭𞤲𞤭𞥅𞤲𞥋𞤣𞤫 𞤘𞤪𞤭𞤲𞤱𞤭𞥅𞤧 (𞤊𞤭𞤪𞤼𞤮𞤲)',\n 'Africa/Gaborone' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤚𞤵𞤥𞤦𞤮𞥅𞤪𞤭 𞤀𞤬𞤪𞤭𞤳𞤢𞥄 (𞤘𞤢𞤦𞤮𞤪𞤮𞥅𞤲)',\n 'Africa/Harare' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤚𞤵𞤥𞤦𞤮𞥅𞤪𞤭 𞤀𞤬𞤪𞤭𞤳𞤢𞥄 (𞤖𞤢𞤪𞤢𞤪𞤫)',\n 'Africa/Johannesburg' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤖𞤢𞤱𞤪𞤵𞤲𞥋𞤣𞤫 𞤐𞤢𞤲𞥆𞤢𞥄𞤲𞤺𞤫 𞤀𞤬𞤪𞤭𞤳𞤢𞥄 (𞤔𞤮𞤸", "middle": "𞤥𞤵)',\n 'Africa/Djibouti' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤊𞤵𞤯𞤲𞤢𞥄𞤲𞤺𞤫 𞤀𞤬𞤪𞤭𞤳𞤢𞥄 (𞤔𞤭𞤦𞤵𞥅𞤼𞤭)',\n 'Africa/Douala' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤖𞤭𞥅𞤪𞤲𞤢𞥄𞤲𞤺𞤫 𞤀𞤬𞤪𞤭𞤳𞤢𞥄 (𞤁𞤵𞤱𞤢𞤤𞤢)',\n 'Africa/El_Aaiun' => '𞤑𞤭𞤶𞤮𞥅𞤪𞤫 𞤖𞤭𞥅𞤪𞤲𞤢𞥄𞤲𞥋𞤺𞤫 𞤀𞤪𞤮𞥅𞤦𞤢 (𞤂𞤢𞤴𞤵𞥅𞤲𞤢)',\n 'Africa/Free", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ff_Adlm.php", "language": "php", "file_size": 66035, "cut_index": 1331, "middle_length": 229}} {"prefix": "ca' => 'Vesteuropæisk tid (Casablanca)',\n 'Africa/Ceuta' => 'Centraleuropæisk tid (Ceuta)',\n 'Africa/Conakry' => 'GMT (Conakry)',\n 'Africa/Dakar' => 'GMT (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Østafrikansk tid (Dar es Salaam)',\n 'Africa/Djibouti' => 'Østafrikansk tid (Djibouti)',\n 'Africa/Douala' => 'Vestafrikansk tid (Douala)',\n 'Africa/El_Aaiun' => 'Vesteuropæisk tid (El Aaiún)',\n 'Africa/Freetown' => 'GMT (Freetown)',\n 'Africa/Gaborone' => 'Ce", "suffix": "ca/Kampala' => 'Østafrikansk tid (Kampala)',\n 'Africa/Khartoum' => 'Centralafrikansk tid (Khartoum)',\n 'Africa/Kigali' => 'Centralafrikansk tid (Kigali)',\n 'Africa/Kinshasa' => 'Vestafrikansk tid (Kinshasa)',\n 'Africa/Lagos' => ", "middle": "ntralafrikansk tid (Gaborone)',\n 'Africa/Harare' => 'Centralafrikansk tid (Harare)',\n 'Africa/Johannesburg' => 'Sydafrikansk tid (Johannesburg)',\n 'Africa/Juba' => 'Centralafrikansk tid (Juba)',\n 'Afri", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/da.php", "language": "php", "file_size": 25385, "cut_index": 1331, "middle_length": 229}} {"prefix": "Bujumbura)',\n 'Africa/Cairo' => 'Ɣedzeƒe Europe gaƒoƒome (Cairo)',\n 'Africa/Casablanca' => 'Western Europe gaƒoƒo me (Casablanca)',\n 'Africa/Ceuta' => 'Central Europe gaƒoƒo me (Ceuta)',\n 'Africa/Conakry' => 'Greenwich gaƒoƒo (Conakry)',\n 'Africa/Dakar' => 'Greenwich gaƒoƒo (Dakar)',\n 'Africa/Dar_es_Salaam' => 'East Africa gaƒoƒo me (Dar es Salaam)',\n 'Africa/Djibouti' => 'East Africa gaƒoƒo me (Djibouti)',\n 'Africa/Douala' => 'West Africa game (Douala", "suffix": "entral Africa gaƒoƒo me (Harare)',\n 'Africa/Johannesburg' => 'South Africa nutome gaƒoƒo me (Johannesburg)',\n 'Africa/Juba' => 'Central Africa gaƒoƒo me (Juba)',\n 'Africa/Kampala' => 'East Africa gaƒoƒo me (Kampala)',\n 'Africa/K", "middle": ")',\n 'Africa/El_Aaiun' => 'Western Europe gaƒoƒo me (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich gaƒoƒo (Freetown)',\n 'Africa/Gaborone' => 'Central Africa gaƒoƒo me (Gaborone)',\n 'Africa/Harare' => 'C", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ee.php", "language": "php", "file_size": 28933, "cut_index": 1331, "middle_length": 229}} {"prefix": "rica occidental (Brazzaville)',\n 'Africa/Bujumbura' => 'hora de África central (Bujumbura)',\n 'Africa/Cairo' => 'hora de Europa oriental (El Cairo)',\n 'Africa/Casablanca' => 'hora de Europa occidental (Casablanca)',\n 'Africa/Ceuta' => 'hora de Europa central (Ceuta)',\n 'Africa/Conakry' => 'hora del meridiano de Greenwich (Conakri)',\n 'Africa/Dakar' => 'hora del meridiano de Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'hora de África oriental (Dar es-Salam)", "suffix": " 'hora del meridiano de Greenwich (Freetown)',\n 'Africa/Gaborone' => 'hora de África central (Gaborone)',\n 'Africa/Harare' => 'hora de África central (Harare)',\n 'Africa/Johannesburg' => 'hora de Sudáfrica (Johannesburgo)',\n 'Af", "middle": "',\n 'Africa/Djibouti' => 'hora de África oriental (Yibuti)',\n 'Africa/Douala' => 'hora de África occidental (Duala)',\n 'Africa/El_Aaiun' => 'hora de Europa occidental (El Aaiún)',\n 'Africa/Freetown' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/es.php", "language": "php", "file_size": 27802, "cut_index": 1331, "middle_length": 229}} {"prefix": "قاهرة)',\n 'Africa/Casablanca' => 'توقيت غرب أوروبا (الدار البيضاء)',\n 'Africa/Ceuta' => 'توقيت وسط أوروبا (سيتا)',\n 'Africa/Conakry' => 'توقيت غرينتش (كوناكري)',\n 'Africa/Dakar' => 'توقيت غرينتش (داكار)',\n 'Africa/Dar_es_Salaam' => 'توقيت شرق أفريقيا (دار السلام)',\n 'Africa/Djibouti' => 'توقيت شرق أفريقيا (جيبوتي)',\n 'Africa/Douala' => 'توقيت غرب أفريقيا (دوالا)',\n 'Africa/El_Aaiun' => 'توقيت غرب أوروبا (العيون)',\n 'Africa/Freetown' => 'توقيت غر", "suffix": "قيت وسط أفريقيا (جوبا)',\n 'Africa/Kampala' => 'توقيت شرق أفريقيا (كامبالا)',\n 'Africa/Khartoum' => 'توقيت وسط أفريقيا (الخرطوم)',\n 'Africa/Kigali' => 'توقيت وسط أفريقيا (كيغالي)',\n 'Africa/Kinshasa' => 'توقيت غرب أفريقيا (كينشاس", "middle": "ينتش (فري تاون)',\n 'Africa/Gaborone' => 'توقيت وسط أفريقيا (غابورون)',\n 'Africa/Harare' => 'توقيت وسط أفريقيا (هراري)',\n 'Africa/Johannesburg' => 'توقيت جنوب أفريقيا (جوهانسبرغ)',\n 'Africa/Juba' => 'تو", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ar.php", "language": "php", "file_size": 35928, "cut_index": 1331, "middle_length": 229}} {"prefix": "rica/Bujumbura' => 'Централноафриканско време (Бужумбура)',\n 'Africa/Cairo' => 'Източноевропейско време (Кайро)',\n 'Africa/Casablanca' => 'Западноевропейско време (Казабланка)',\n 'Africa/Ceuta' => 'Централноевропейско време (Сеута)',\n 'Africa/Conakry' => 'Средно гринуичко време (Конакри)',\n 'Africa/Dakar' => 'Средно гринуичко време (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Източноафриканско време (Дар ес Салам)',\n 'Africa/Djibouti' => 'Източноафриканско време (Дж", "suffix": "> 'Централноафриканско време (Габороне)',\n 'Africa/Harare' => 'Централноафриканско време (Хараре)',\n 'Africa/Johannesburg' => 'Южноафриканско време (Йоханесбург)',\n 'Africa/Juba' => 'Централноафриканско време (Джуба)',\n 'Africa/", "middle": "ибути)',\n 'Africa/Douala' => 'Западноафриканско време (Дуала)',\n 'Africa/El_Aaiun' => 'Западноевропейско време (Ел Аюн)',\n 'Africa/Freetown' => 'Средно гринуичко време (Фрийтаун)',\n 'Africa/Gaborone' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/bg.php", "language": "php", "file_size": 40100, "cut_index": 1331, "middle_length": 229}} {"prefix": "ica/Bujumbura' => 'eur Kreizafrika (Bujumbura)',\n 'Africa/Cairo' => 'eur Europa ar Reter (Kaero)',\n 'Africa/Casablanca' => 'eur Europa ar Cʼhornôg (Dar el Beida (Casablanca))',\n 'Africa/Ceuta' => 'eur Kreizeuropa (Ceuta)',\n 'Africa/Conakry' => 'amzer keitat Greenwich (AKG) (Conakry)',\n 'Africa/Dakar' => 'amzer keitat Greenwich (AKG) (Dakar)',\n 'Africa/Dar_es_Salaam' => 'eur Afrika ar Reter (Dar es Salaam)',\n 'Africa/Djibouti' => 'eur Afrika ar Reter (Djibouti", "suffix": "=> 'eur Kreizafrika (Gaborone)',\n 'Africa/Harare' => 'eur Kreizafrika (Harare)',\n 'Africa/Johannesburg' => 'eur cʼhoañv Suafrika (Johannesburg)',\n 'Africa/Juba' => 'eur Kreizafrika (Juba)',\n 'Africa/Kampala' => 'eur Afrika ar Re", "middle": ")',\n 'Africa/Douala' => 'eur Afrika ar Cʼhornôg (Douala)',\n 'Africa/El_Aaiun' => 'eur Europa ar Cʼhornôg (LaʼYoun)',\n 'Africa/Freetown' => 'amzer keitat Greenwich (AKG) (Freetown)',\n 'Africa/Gaborone' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/br.php", "language": "php", "file_size": 26165, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Casablanca' => 'hora de Europa del Oeste (Casablanca)',\n 'Africa/Conakry' => 'hora del meridiano de Greenwich (Conakry)',\n 'Africa/El_Aaiun' => 'hora de Europa del Oeste (El Aaiún)',\n 'Africa/Tripoli' => 'hora de Europa del Este (Trípoli)',\n 'America/Boise' => 'hora de la montaña (Boise)',\n 'America/Cambridge_Bay' => 'hora de la montaña (Cambridge Bay)',\n 'America/Ciudad_Juarez' => 'hora de la montaña (Ciudad Juárez)',\n 'America/Creston' => 'hora d", "suffix": "erica/Fort_Nelson' => 'hora de la montaña (Fuerte Nelson)',\n 'America/Inuvik' => 'hora de la montaña (Inuvik)',\n 'America/Nassau' => 'hora oriental (Nasáu)',\n 'America/Phoenix' => 'hora de la montaña (Phoenix)',\n 'America/Santia", "middle": "e la montaña (Creston)',\n 'America/Dawson_Creek' => 'hora de la montaña (Dawson Creek)',\n 'America/Denver' => 'hora de la montaña (Denver)',\n 'America/Edmonton' => 'hora de la montaña (Edmonton)',\n 'Am", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/es_419.php", "language": "php", "file_size": 4008, "cut_index": 614, "middle_length": 229}} {"prefix": " aeg (Kairo)',\n 'Africa/Casablanca' => 'Lääne-Euroopa aeg (Casablanca)',\n 'Africa/Ceuta' => 'Kesk-Euroopa aeg (Ceuta)',\n 'Africa/Conakry' => 'Greenwichi aeg (Conakry)',\n 'Africa/Dakar' => 'Greenwichi aeg (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Ida-Aafrika aeg (Dar es Salaam)',\n 'Africa/Djibouti' => 'Ida-Aafrika aeg (Djibouti)',\n 'Africa/Douala' => 'Lääne-Aafrika aeg (Douala)',\n 'Africa/El_Aaiun' => 'Lääne-Euroopa aeg (El Aaiún)',\n 'Africa/Freetown", "suffix": " 'Africa/Juba' => 'Kesk-Aafrika aeg (Juba)',\n 'Africa/Kampala' => 'Ida-Aafrika aeg (Kampala)',\n 'Africa/Khartoum' => 'Kesk-Aafrika aeg (Hartum)',\n 'Africa/Kigali' => 'Kesk-Aafrika aeg (Kigali)',\n 'Africa/Kinshasa' => 'Lääne", "middle": "' => 'Greenwichi aeg (Freetown)',\n 'Africa/Gaborone' => 'Kesk-Aafrika aeg (Gaborone)',\n 'Africa/Harare' => 'Kesk-Aafrika aeg (Harare)',\n 'Africa/Johannesburg' => 'Lõuna-Aafrika standardaeg (Johannesburg)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/et.php", "language": "php", "file_size": 25779, "cut_index": 1331, "middle_length": 229}} {"prefix": "jumbura' => 'Zentralafrikanische Zeit (Bujumbura)',\n 'Africa/Cairo' => 'Osteuropäische Zeit (Kairo)',\n 'Africa/Casablanca' => 'Westeuropäische Zeit (Casablanca)',\n 'Africa/Ceuta' => 'Mitteleuropäische Zeit (Ceuta)',\n 'Africa/Conakry' => 'Mittlere Greenwich-Zeit (Conakry)',\n 'Africa/Dakar' => 'Mittlere Greenwich-Zeit (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Ostafrikanische Zeit (Daressalam)',\n 'Africa/Djibouti' => 'Ostafrikanische Zeit (Dschibuti)',\n 'Afri", "suffix": "Zeit (Gaborone)',\n 'Africa/Harare' => 'Zentralafrikanische Zeit (Harare)',\n 'Africa/Johannesburg' => 'Südafrikanische Zeit (Johannesburg)',\n 'Africa/Juba' => 'Zentralafrikanische Zeit (Juba)',\n 'Africa/Kampala' => 'Ostafrikanisc", "middle": "ca/Douala' => 'Westafrikanische Zeit (Douala)',\n 'Africa/El_Aaiun' => 'Westeuropäische Zeit (El Aaiún)',\n 'Africa/Freetown' => 'Mittlere Greenwich-Zeit (Freetown)',\n 'Africa/Gaborone' => 'Zentralafrikanische ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/de.php", "language": "php", "file_size": 27524, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Cairo' => 'Eastern European Time (Cairo)',\n 'Africa/Casablanca' => 'Western European Time (Casablanca)',\n 'Africa/Ceuta' => 'Central European Time (Ceuta)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Dar_es_Salaam' => 'East Africa Time (Dar es Salaam)',\n 'Africa/Djibouti' => 'East Africa Time (Djibouti)',\n 'Africa/Douala' => 'West Africa Time (Douala)',\n 'Africa/El_Aa", "suffix": " 'Africa/Johannesburg' => 'South Africa Standard Time (Johannesburg)',\n 'Africa/Juba' => 'Central Africa Time (Juba)',\n 'Africa/Kampala' => 'East Africa Time (Kampala)',\n 'Africa/Khartoum' => 'Central Africa Time (Khartoum)',\n ", "middle": "iun' => 'Western European Time (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Gaborone' => 'Central Africa Time (Gaborone)',\n 'Africa/Harare' => 'Central Africa Time (Harare)',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/en.php", "language": "php", "file_size": 26178, "cut_index": 1331, "middle_length": 229}} {"prefix": "',\n 'Africa/Cairo' => 'Şərqi Avropa Vaxtı (Qahirə)',\n 'Africa/Casablanca' => 'Qərbi Avropa Vaxtı (Kasablanka)',\n 'Africa/Ceuta' => 'Mərkəzi Avropa Vaxtı (Seuta)',\n 'Africa/Conakry' => 'Qrinviç Orta Vaxtı (Konakri)',\n 'Africa/Dakar' => 'Qrinviç Orta Vaxtı (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Şərqi Afrika Vaxtı (Dar es Salam)',\n 'Africa/Djibouti' => 'Şərqi Afrika Vaxtı (Cibuti)',\n 'Africa/Douala' => 'Qərbi Afrika Vaxtı (Duala)',\n 'Africa/El_Aaiun", "suffix": "'Africa/Johannesburg' => 'Cənubi Afrika Vaxtı (Yohanesburq)',\n 'Africa/Juba' => 'Mərkəzi Afrika Vaxtı (Juba)',\n 'Africa/Kampala' => 'Şərqi Afrika Vaxtı (Kampala)',\n 'Africa/Khartoum' => 'Mərkəzi Afrika Vaxtı (Xartum)',\n 'Africa/", "middle": "' => 'Qərbi Avropa Vaxtı (Əl Əyun)',\n 'Africa/Freetown' => 'Qrinviç Orta Vaxtı (Fritaun)',\n 'Africa/Gaborone' => 'Mərkəzi Afrika Vaxtı (Qaboron)',\n 'Africa/Harare' => 'Mərkəzi Afrika Vaxtı (Harare)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/az.php", "language": "php", "file_size": 28068, "cut_index": 1331, "middle_length": 229}} {"prefix": "ica/Cairo' => 'Малхбален Европа (КъахӀира)',\n 'Africa/Casablanca' => 'Малхбузен Европа (Касабланка)',\n 'Africa/Ceuta' => 'Юккъера Европа (Сеута)',\n 'Africa/Conakry' => 'Гринвичица юкъара хан (Конакри)',\n 'Africa/Dakar' => 'Гринвичица юкъара хан (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Малхбален Африка (Дар-эс-Салам)',\n 'Africa/Djibouti' => 'Малхбален Африка (Джибути)',\n 'Africa/Douala' => 'Малхбузен Африка (Дуала)',\n 'Africa/El_Aaiun' => 'Малхбузен Европа", "suffix": " Африка (Йоханнесбург)',\n 'Africa/Juba' => 'Юккъера Африка (Джуба)',\n 'Africa/Kampala' => 'Малхбален Африка (Кампала)',\n 'Africa/Khartoum' => 'Юккъера Африка (Хартум)',\n 'Africa/Kigali' => 'Юккъера Африка (Кигали)',\n 'Afr", "middle": " (Эль-Аюн)',\n 'Africa/Freetown' => 'Гринвичица юкъара хан (Фритаун)',\n 'Africa/Gaborone' => 'Юккъера Африка (Габороне)',\n 'Africa/Harare' => 'Юккъера Африка (Хараре)',\n 'Africa/Johannesburg' => 'Къилба", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ce.php", "language": "php", "file_size": 33011, "cut_index": 1331, "middle_length": 229}} {"prefix": "জুমবুরহু)',\n 'Africa/Cairo' => 'পূর্ব ইউরোপীয় সময় (কায়রো)',\n 'Africa/Casablanca' => 'পশ্চিম ইউরোপীয় সময় (কাসাব্লাঙ্কা)',\n 'Africa/Ceuta' => 'মধ্য ইউরোপীয় সময় (সেউটা)',\n 'Africa/Conakry' => 'গ্রীনিচ মিন টাইম (কনাক্রি)',\n 'Africa/Dakar' => 'গ্রীনিচ মিন টাইম (ডাকার)',\n 'Africa/Dar_es_Salaam' => 'পূর্ব আফ্রিকা সময় (দার এস সালাম)',\n 'Africa/Djibouti' => 'পূর্ব আফ্রিকা সময় (জিবুটি)',\n 'Africa/Douala' => 'পশ্চিম আফ্রিকা সময় (ডোয়ালা)',\n 'Afri", "suffix": "\n 'Africa/Johannesburg' => 'দক্ষিণ আফ্রিকা মানক সময় (জোহানেসবার্গ)',\n 'Africa/Juba' => 'মধ্য আফ্রিকা সময় (জুবা)',\n 'Africa/Kampala' => 'পূর্ব আফ্রিকা সময় (কামপালা)',\n 'Africa/Khartoum' => 'মধ্য আফ্রিকা সময় (খার্তুম)',\n ", "middle": "ca/El_Aaiun' => 'পশ্চিম ইউরোপীয় সময় (এল আহইউন)',\n 'Africa/Freetown' => 'গ্রীনিচ মিন টাইম (ফ্রীটাউন)',\n 'Africa/Gaborone' => 'মধ্য আফ্রিকা সময় (গ্যাবুরনি)',\n 'Africa/Harare' => 'মধ্য আফ্রিকা সময় (হারারে)',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/bn.php", "language": "php", "file_size": 47014, "cut_index": 1331, "middle_length": 229}} {"prefix": "ca/Bujumbura' => 'Централно-афричко вријеме (Буџумбура)',\n 'Africa/Cairo' => 'Источноевропско вријеме (Каиро)',\n 'Africa/Casablanca' => 'Западноевропско вријеме (Казабланка)',\n 'Africa/Ceuta' => 'Средњеевропско вријеме (Сеута)',\n 'Africa/Conakry' => 'Гриничко средње вријеме (Конакри)',\n 'Africa/Dakar' => 'Гриничко средње вријеме (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Источно-афричко вријеме (Дар-ес-Салам)',\n 'Africa/Djibouti' => 'Источно-афричко вријеме (Џибут", "suffix": "Централно-афричко вријеме (Габорон)',\n 'Africa/Harare' => 'Централно-афричко вријеме (Хараре)',\n 'Africa/Johannesburg' => 'Јужно-афричко вријеме (Јоханесбург)',\n 'Africa/Juba' => 'Централно-афричко вријеме (Џуба)',\n 'Africa/Kamp", "middle": "и)',\n 'Africa/Douala' => 'Западно-афричко вријеме (Дуала)',\n 'Africa/El_Aaiun' => 'Западноевропско вријеме (Ел Ајун)',\n 'Africa/Freetown' => 'Гриничко средње вријеме (Фритаун)',\n 'Africa/Gaborone' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/bs_Cyrl.php", "language": "php", "file_size": 37734, "cut_index": 1331, "middle_length": 229}} {"prefix": "ca' => 'وقت غرب اروپا (کازابلانکا)',\n 'Africa/Ceuta' => 'وقت مرکز اروپا (سبته)',\n 'Africa/Conakry' => 'وقت گرینویچ (کوناکری)',\n 'Africa/Dakar' => 'وقت گرینویچ (داکار)',\n 'Africa/Dar_es_Salaam' => 'وقت شرق افریقا (دارالسلام)',\n 'Africa/Djibouti' => 'وقت شرق افریقا (جیبوتی)',\n 'Africa/Douala' => 'وقت غرب افریقا (دوآلا)',\n 'Africa/El_Aaiun' => 'وقت غرب اروپا (العیون)',\n 'Africa/Freetown' => 'وقت گرینویچ (فری‌تاون)',\n 'Africa/Gaborone' => 'وقت مرکز ", "suffix": "ق افریقا (کامپالا)',\n 'Africa/Khartoum' => 'وقت مرکز آفریقا (خارطوم)',\n 'Africa/Kigali' => 'وقت مرکز آفریقا (کیگالی)',\n 'Africa/Kinshasa' => 'وقت غرب افریقا (کینشاسا)',\n 'Africa/Lagos' => 'وقت غرب افریقا (لاگوس)',\n 'Afric", "middle": "آفریقا (گابورون)',\n 'Africa/Harare' => 'وقت مرکز آفریقا (هراره)',\n 'Africa/Johannesburg' => 'وقت عادی جنوب افریقا (ژوهانسبورگ)',\n 'Africa/Juba' => 'وقت مرکز آفریقا (جوبا)',\n 'Africa/Kampala' => 'وقت شر", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/fa.php", "language": "php", "file_size": 32409, "cut_index": 1331, "middle_length": 229}} {"prefix": "jumbura' => 'အလယ်အာဖရိက အချိန် (ဘူဂျွန်ဘူးရာ)',\n 'Africa/Cairo' => 'အရှေ့ဥရောပ အချိန် (ကိုင်ရို)',\n 'Africa/Casablanca' => 'အနောက်ဥရောပ အချိန် (ကာဆာဘလန်ကာ)',\n 'Africa/Ceuta' => 'ဥရောပအလယ်ပိုင်း အချိန် (ဆီရူးတာ)',\n 'Africa/Conakry' => 'ဂရင်းနစ် စံတော်ချိန် (ကိုနာကရီး)',\n 'Africa/Dakar' => 'ဂရင်းနစ် စံတော်ချိန် (ဒကျကား)',\n 'Africa/Dar_es_Salaam' => 'အရှေ့အာဖရိက အချိန် (ဒါရက်စ်ဆာလမ်)',\n 'Africa/Djibouti' => 'အရှေ့အာဖရိက အချိန် (ဂျီဘူတီ)',\n 'Africa/Douala'", "suffix": "်းနီ)',\n 'Africa/Harare' => 'အလယ်အာဖရိက အချိန် (ဟာရားရဲယ်)',\n 'Africa/Johannesburg' => 'တောင်အာဖရိက အချိန် (ဂျိုဟန်းနက်စဘတ်)',\n 'Africa/Juba' => 'အလယ်အာဖရိက အချိန် (ဂျုဘာ)',\n 'Africa/Kampala' => 'အရှေ့အာဖရိက အချိန် (ကမ်ပါလာ)',\n ", "middle": " => 'အနောက်အာဖရိက အချိန် (ဒိုအူအာလာ)',\n 'Africa/El_Aaiun' => 'အနောက်ဥရောပ အချိန် (အယ်လ်အာယွန်း)',\n 'Africa/Freetown' => 'ဂရင်းနစ် စံတော်ချိန် (ဖရီးတောင်းန်)',\n 'Africa/Gaborone' => 'အလယ်အာဖရိက အချိန် (ဂါဘာရွန", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/my.php", "language": "php", "file_size": 49764, "cut_index": 1331, "middle_length": 229}} {"prefix": "le' => 'temp da l’Africa Occidentala (Brazzaville)',\n 'Africa/Bujumbura' => 'temp da l’Africa Centrala (Bujumbura)',\n 'Africa/Cairo' => 'temp da l’Europa Orientala (Cairo)',\n 'Africa/Casablanca' => 'temp da l’Europa dal Vest (Casablanca)',\n 'Africa/Ceuta' => 'temp da l’Europa Centrala (Ceuta)',\n 'Africa/Conakry' => 'temp dal meridian da Greenwich (Conakry)',\n 'Africa/Dakar' => 'temp dal meridian da Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'temp da l’Afr", "suffix": "aiún)',\n 'Africa/Freetown' => 'temp dal meridian da Greenwich (Freetown)',\n 'Africa/Gaborone' => 'temp da l’Africa Centrala (Gaborone)',\n 'Africa/Harare' => 'temp da l’Africa Centrala (Harare)',\n 'Africa/Johannesburg' => 'temp n", "middle": "ica Orientala (Daressalam)',\n 'Africa/Djibouti' => 'temp da l’Africa Orientala (Dschibuti)',\n 'Africa/Douala' => 'temp da l’Africa Occidentala (Douala)',\n 'Africa/El_Aaiun' => 'temp da l’Europa dal Vest (El A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/rm.php", "language": "php", "file_size": 29163, "cut_index": 1331, "middle_length": 229}} {"prefix": "Bujumbura)',\n 'Africa/Cairo' => 'Ora Europei de Est (Cairo)',\n 'Africa/Casablanca' => 'Ora Europei de Vest (Casablanca)',\n 'Africa/Ceuta' => 'Ora Europei Centrale (Ceuta)',\n 'Africa/Conakry' => 'Ora de Greenwich (Conakry)',\n 'Africa/Dakar' => 'Ora de Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Ora Africii Orientale (Dar es Salaam)',\n 'Africa/Djibouti' => 'Ora Africii Orientale (Djibouti)',\n 'Africa/Douala' => 'Ora Africii Occidentale (Douala)',\n ", "suffix": "ale (Harare)',\n 'Africa/Johannesburg' => 'Ora Africii Meridionale (Johannesburg)',\n 'Africa/Juba' => 'Ora Africii Centrale (Juba)',\n 'Africa/Kampala' => 'Ora Africii Orientale (Kampala)',\n 'Africa/Khartoum' => 'Ora Africii Centr", "middle": " 'Africa/El_Aaiun' => 'Ora Europei de Vest (El Aaiún)',\n 'Africa/Freetown' => 'Ora de Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Ora Africii Centrale (Gaborone)',\n 'Africa/Harare' => 'Ora Africii Centr", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ro.php", "language": "php", "file_size": 28085, "cut_index": 1331, "middle_length": 229}} {"prefix": "ика (Бужумбура)',\n 'Africa/Cairo' => 'Восточная Европа (Каир)',\n 'Africa/Casablanca' => 'Западная Европа (Касабланка)',\n 'Africa/Ceuta' => 'Центральная Европа (Сеута)',\n 'Africa/Conakry' => 'Среднее время по Гринвичу (Конакри)',\n 'Africa/Dakar' => 'Среднее время по Гринвичу (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Восточная Африка (Дар-эс-Салам)',\n 'Africa/Djibouti' => 'Восточная Африка (Джибути)',\n 'Africa/Douala' => 'Западная Африка (Дуала)',\n 'A", "suffix": "аре)',\n 'Africa/Johannesburg' => 'Южная Африка (Йоханнесбург)',\n 'Africa/Juba' => 'Центральная Африка (Джуба)',\n 'Africa/Kampala' => 'Восточная Африка (Кампала)',\n 'Africa/Khartoum' => 'Центральная Африка (Хартум)',\n 'Afr", "middle": "frica/El_Aaiun' => 'Западная Европа (Эль-Аюн)',\n 'Africa/Freetown' => 'Среднее время по Гринвичу (Фритаун)',\n 'Africa/Gaborone' => 'Центральная Африка (Габороне)',\n 'Africa/Harare' => 'Центральная Африка (Хар", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ru.php", "language": "php", "file_size": 34293, "cut_index": 1331, "middle_length": 229}} {"prefix": "s' => [\n 'Africa/Abidjan' => 'Greenwich Mean Time (Abidjan)',\n 'Africa/Accra' => 'Greenwich Mean Time (Accra)',\n 'Africa/Bamako' => 'Greenwich Mean Time (Bamako)',\n 'Africa/Banjul' => 'Greenwich Mean Time (Banjul)',\n 'Africa/Bissau' => 'Greenwich Mean Time (Bissau)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Kigali' => '", "suffix": "gou' => 'Greenwich Mean Time (Ouagadougou)',\n 'Africa/Sao_Tome' => 'Greenwich Mean Time (São Tomé)',\n 'America/Danmarkshavn' => 'Greenwich Mean Time (Danmarkshavn)',\n 'Antarctica/Troll' => 'Greenwich Mean Time (Troll)',\n 'Atlant", "middle": "U Rwanda (Kigali)',\n 'Africa/Lome' => 'Greenwich Mean Time (Lomé)',\n 'Africa/Monrovia' => 'Greenwich Mean Time (Monrovia)',\n 'Africa/Nouakchott' => 'Greenwich Mean Time (Nouakchott)',\n 'Africa/Ouagadou", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/rw.php", "language": "php", "file_size": 1645, "cut_index": 537, "middle_length": 229}} {"prefix": " यूरोपीय समयः (Cairo)',\n 'Africa/Casablanca' => 'पाश्चात्य यूरोपीय समयः (Casablanca)',\n 'Africa/Ceuta' => 'मध्य यूरोपीय समयः (Ceuta)',\n 'Africa/Conakry' => 'ग्रीनविच मीन समयः (Conakry)',\n 'Africa/Dakar' => 'ग्रीनविच मीन समयः (Dakar)',\n 'Africa/El_Aaiun' => 'पाश्चात्य यूरोपीय समयः (El Aaiún)',\n 'Africa/Freetown' => 'ग्रीनविच मीन समयः (Freetown)',\n 'Africa/Lome' => 'ग्रीनविच मीन समयः (Lomé)',\n 'Africa/Monrovia' => 'ग्रीनविच मीन समयः (Monrovia)',\n ", "suffix": "मयः (Tripoli)',\n 'Africa/Tunis' => 'मध्य यूरोपीय समयः (Tunis)',\n 'America/Adak' => 'संयुक्त राज्य: समय: (Adak)',\n 'America/Anchorage' => 'संयुक्त राज्य: समय: (Anchorage)',\n 'America/Anguilla' => 'अटलाण्टिक समयः (Anguilla)',\n ", "middle": "'Africa/Nouakchott' => 'ग्रीनविच मीन समयः (Nouakchott)',\n 'Africa/Ouagadougou' => 'ग्रीनविच मीन समयः (Ouagadougou)',\n 'Africa/Sao_Tome' => 'ग्रीनविच मीन समयः (São Tomé)',\n 'Africa/Tripoli' => 'पौर्व यूरोपीय स", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sa.php", "language": "php", "file_size": 21819, "cut_index": 921, "middle_length": 229}} {"prefix": "zzaville' => 'Ora de s’Àfrica otzidentale (Brazzaville)',\n 'Africa/Bujumbura' => 'Ora de s’Àfrica tzentrale (Bujumbura)',\n 'Africa/Cairo' => 'Ora de s’Europa orientale (Su Càiru)',\n 'Africa/Casablanca' => 'Ora de s’Europa otzidentale (Casablanca)',\n 'Africa/Ceuta' => 'Ora de s’Europa tzentrale (Ceuta)',\n 'Africa/Conakry' => 'Ora de su meridianu de Greenwich (Conakry)',\n 'Africa/Dakar' => 'Ora de su meridianu de Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => '", "suffix": "identale (El Aaiún)',\n 'Africa/Freetown' => 'Ora de su meridianu de Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Ora de s’Àfrica tzentrale (Gaborone)',\n 'Africa/Harare' => 'Ora de s’Àfrica tzentrale (Harare)',\n 'Africa/Johannes", "middle": "Ora de s’Àfrica orientale (Dar es Salaam)',\n 'Africa/Djibouti' => 'Ora de s’Àfrica orientale (Djibouti)',\n 'Africa/Douala' => 'Ora de s’Àfrica otzidentale (Douala)',\n 'Africa/El_Aaiun' => 'Ora de s’Europa otz", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sc.php", "language": "php", "file_size": 28978, "cut_index": 1331, "middle_length": 229}} {"prefix": "a/Cairo' => 'مشرقي يورپي وقت (قائرا)',\n 'Africa/Casablanca' => 'اولهه يورپي وقت (ڪاسابلانڪا)',\n 'Africa/Ceuta' => 'مرڪزي يورپي وقت (سيوٽا)',\n 'Africa/Conakry' => 'گرين وچ مين ٽائيم (ڪوناڪري)',\n 'Africa/Dakar' => 'گرين وچ مين ٽائيم (ڊاڪار)',\n 'Africa/Dar_es_Salaam' => 'اوڀر آفريڪا جو وقت (دارالسلام)',\n 'Africa/Djibouti' => 'اوڀر آفريڪا جو وقت (جبوتي)',\n 'Africa/Douala' => 'اولهه آفريقا جو وقت (دوالا)',\n 'Africa/El_Aaiun' => 'اولهه يورپي وقت (ال ايون)',\n", "suffix": " معياري وقت (جوهانسبرگ)',\n 'Africa/Juba' => 'مرڪزي آفريقا جو وقت (جوبا)',\n 'Africa/Kampala' => 'اوڀر آفريڪا جو وقت (ڪمپالا)',\n 'Africa/Khartoum' => 'مرڪزي آفريقا جو وقت (خرطوم)',\n 'Africa/Kigali' => 'مرڪزي آفريقا جو وقت (ڪيگالي)", "middle": " 'Africa/Freetown' => 'گرين وچ مين ٽائيم (فري ٽائون)',\n 'Africa/Gaborone' => 'مرڪزي آفريقا جو وقت (گيبورون)',\n 'Africa/Harare' => 'مرڪزي آفريقا جو وقت (هراري)',\n 'Africa/Johannesburg' => 'ڏکڻ آفريڪا جو", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sd.php", "language": "php", "file_size": 33484, "cut_index": 1331, "middle_length": 229}} {"prefix": "=> 'ओभरी यूरोपी वक्तु (قائرا)',\n 'Africa/Casablanca' => 'उलहंदो यूरोपी वक्तु (ڪاسابلانڪا)',\n 'Africa/Ceuta' => 'मरकज़ी यूरोपी वक्त (سيوٽا)',\n 'Africa/Conakry' => 'ग्रीनविच मीन वक़्तु (ڪوناڪري)',\n 'Africa/Dakar' => 'ग्रीनविच मीन वक़्तु (ڊاڪار)',\n 'Africa/El_Aaiun' => 'उलहंदो यूरोपी वक्तु (ال ايون)',\n 'Africa/Freetown' => 'ग्रीनविच मीन वक़्तु (فري ٽائون)',\n 'Africa/Lome' => 'ग्रीनविच मीन वक़्तु (لوم)',\n 'Africa/Monrovia' => 'ग्रीनविच मीन वक़्तु (مونروویا", "suffix": "'ओभरी यूरोपी वक्तु (ٽرپولي)',\n 'Africa/Tunis' => 'मरकज़ी यूरोपी वक्त (تيونس)',\n 'America/Anguilla' => 'अटलांटिक वक्त (انگويلا)',\n 'America/Antigua' => 'अटलांटिक वक्त (اينٽيگوا)',\n 'America/Aruba' => 'अटलांटिक वक्त (اروبا)',\n ", "middle": ")',\n 'Africa/Nouakchott' => 'ग्रीनविच मीन वक़्तु (نواڪشوط)',\n 'Africa/Ouagadougou' => 'ग्रीनविच मीन वक़्तु (آئوگو ڊائوگو)',\n 'Africa/Sao_Tome' => 'ग्रीनविच मीन वक़्तु (سائو ٽوم)',\n 'Africa/Tripoli' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sd_Deva.php", "language": "php", "file_size": 17659, "cut_index": 921, "middle_length": 229}} {"prefix": " 'Africa/Cairo' => 'Cairo (nuorti-Eurohpá áigi)',\n 'Africa/Casablanca' => 'Casablanca (oarje-Eurohpá áigi)',\n 'Africa/Ceuta' => 'Ceuta (gaska-Eurohpá áigi)',\n 'Africa/Conakry' => 'Conakry (Greenwich gaskka áigi)',\n 'Africa/Dakar' => 'Dakar (Greenwich gaskka áigi)',\n 'Africa/Dar_es_Salaam' => 'Dar es Salaam (Tanzánia áigi)',\n 'Africa/Djibouti' => 'Djibouti (Djibouti áigi)',\n 'Africa/Douala' => 'Douala (Kamerun áigi)',\n 'Africa/El_Aaiun' => 'El Aai", "suffix": "' => 'Johannesburg (Mátta-Afrihká áigi)',\n 'Africa/Juba' => 'Juba (Máttasudan áigi)',\n 'Africa/Kampala' => 'Kampala (Uganda áigi)',\n 'Africa/Khartoum' => 'Khartoum (Davvisudan áigi)',\n 'Africa/Kigali' => 'Kigali (Rwanda áigi)',\n", "middle": "ún (oarje-Eurohpá áigi)',\n 'Africa/Freetown' => 'Freetown (Greenwich gaskka áigi)',\n 'Africa/Gaborone' => 'Gaborone (Botswana áigi)',\n 'Africa/Harare' => 'Harare (Zimbabwe áigi)',\n 'Africa/Johannesburg", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/se.php", "language": "php", "file_size": 27188, "cut_index": 1331, "middle_length": 229}} {"prefix": "ica/Cairo' => 'Kairo (Nuorta-Eurohpa áigi)',\n 'Africa/Casablanca' => 'Casablanca (Oarje-Eurohpá áigi)',\n 'Africa/Ceuta' => 'Ceuta (Gaska-Eurohpá áigi)',\n 'Africa/Conakry' => 'Conakry (Greenwicha áigi)',\n 'Africa/Dakar' => 'Dakar (Greenwicha áigi)',\n 'Africa/Dar_es_Salaam' => 'Dar es Salaam (Nuorta-Afrihká áigi)',\n 'Africa/Djibouti' => 'Djibouti (Nuorta-Afrihká áigi)',\n 'Africa/Douala' => 'Douala (Oarje-Afrihká áigi)',\n 'Africa/El_Aaiun' => 'El Aaiún (O", "suffix": " => 'Johannesburg (Lulli-Afrihká dálveáigi)',\n 'Africa/Juba' => 'Juba (Gaska-Afrihká áigi)',\n 'Africa/Kampala' => 'Kampala (Nuorta-Afrihká áigi)',\n 'Africa/Khartoum' => 'Khartoum (Gaska-Afrihká áigi)',\n 'Africa/Kigali' => 'Kigal", "middle": "arje-Eurohpá áigi)',\n 'Africa/Freetown' => 'Freetown (Greenwicha áigi)',\n 'Africa/Gaborone' => 'Gaborone (Gaska-Afrihká áigi)',\n 'Africa/Harare' => 'Harare (Gaska-Afrihká áigi)',\n 'Africa/Johannesburg'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/se_FI.php", "language": "php", "file_size": 23641, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Bujumbura' => 'මධ්‍යම අප්‍රිකානු වේලාව (බුජුම්බුරා)',\n 'Africa/Cairo' => 'නැගෙනහිර යුරෝපීය වේලාව (කයිරෝ)',\n 'Africa/Casablanca' => 'බටහිර යුරෝපීය වේලාව (කැසබ්ලන්කා)',\n 'Africa/Ceuta' => 'මධ්‍යම යුරෝපීය වේලාව (සෙයුටා)',\n 'Africa/Conakry' => 'ග්‍රිනිච් මධ්‍යම වේලාව (කොනක්‍රි)',\n 'Africa/Dakar' => 'ග්‍රිනිච් මධ්‍යම වේලාව (ඩකර්)',\n 'Africa/Dar_es_Salaam' => 'නැගෙනහිර අප්‍රිකානු වේලාව (දාර් එස් සලාම්)',\n 'Africa/Djibouti' => 'නැගෙනහිර අප්‍රිකානු වේලාව (", "suffix": "=> 'මධ්‍යම අප්‍රිකානු වේලාව (ගැබරෝන්)',\n 'Africa/Harare' => 'මධ්‍යම අප්‍රිකානු වේලාව (හරාරේ)',\n 'Africa/Johannesburg' => 'දකුණු අප්‍රිකානු වේලාව (ජොහන්නස්බර්ග්)',\n 'Africa/Juba' => 'මධ්‍යම අප්‍රිකානු වේලාව (ජුබා)',\n 'Africa/Kamp", "middle": "ජිබුටි)',\n 'Africa/Douala' => 'බටහිර අප්‍රිකානු වේලාව (දෞඅලා)',\n 'Africa/El_Aaiun' => 'බටහිර යුරෝපීය වේලාව (එල් ආයුන්)',\n 'Africa/Freetown' => 'ග්‍රිනිච් මධ්‍යම වේලාව (ෆ්‍රීටවුන්)',\n 'Africa/Gaborone' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/si.php", "language": "php", "file_size": 50516, "cut_index": 1331, "middle_length": 229}} {"prefix": "Cairo' => 'východoeurópsky čas (Káhira)',\n 'Africa/Casablanca' => 'západoeurópsky čas (Casablanca)',\n 'Africa/Ceuta' => 'stredoeurópsky čas (Ceuta)',\n 'Africa/Conakry' => 'greenwichský čas (Konakry)',\n 'Africa/Dakar' => 'greenwichský čas (Dakar)',\n 'Africa/Dar_es_Salaam' => 'východoafrický čas (Dar es Salaam)',\n 'Africa/Djibouti' => 'východoafrický čas (Džibuti)',\n 'Africa/Douala' => 'západoafrický čas (Douala)',\n 'Africa/El_Aaiun' => 'západoeurópsky č", "suffix": "uhoafrický čas (Johannesburg)',\n 'Africa/Juba' => 'stredoafrický čas (Juba)',\n 'Africa/Kampala' => 'východoafrický čas (Kampala)',\n 'Africa/Khartoum' => 'stredoafrický čas (Chartúm)',\n 'Africa/Kigali' => 'stredoafrický čas (Kiga", "middle": "as (El-Aaiún)',\n 'Africa/Freetown' => 'greenwichský čas (Freetown)',\n 'Africa/Gaborone' => 'stredoafrický čas (Gaborone)',\n 'Africa/Harare' => 'stredoafrický čas (Harare)',\n 'Africa/Johannesburg' => 'j", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sk.php", "language": "php", "file_size": 28398, "cut_index": 1331, "middle_length": 229}} {"prefix": "ki čas (Bujumbura)',\n 'Africa/Cairo' => 'Vzhodnoevropski čas (Kairo)',\n 'Africa/Casablanca' => 'Zahodnoevropski čas (Casablanca)',\n 'Africa/Ceuta' => 'Srednjeevropski čas (Ceuta)',\n 'Africa/Conakry' => 'Greenwiški srednji čas (Conakry)',\n 'Africa/Dakar' => 'Greenwiški srednji čas (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Vzhodnoafriški čas (Dar es Salaam)',\n 'Africa/Djibouti' => 'Vzhodnoafriški čas (Džibuti)',\n 'Africa/Douala' => 'Zahodnoafriški čas (Doual", "suffix": "tralnoafriški čas (Harare)',\n 'Africa/Johannesburg' => 'Južnoafriški čas (Johannesburg)',\n 'Africa/Juba' => 'Centralnoafriški čas (Juba)',\n 'Africa/Kampala' => 'Vzhodnoafriški čas (Kampala)',\n 'Africa/Khartoum' => 'Centralnoafri", "middle": "a)',\n 'Africa/El_Aaiun' => 'Zahodnoevropski čas (El Aaiún)',\n 'Africa/Freetown' => 'Greenwiški srednji čas (Freetown)',\n 'Africa/Gaborone' => 'Centralnoafriški čas (Gaborone)',\n 'Africa/Harare' => 'Cen", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sl.php", "language": "php", "file_size": 27137, "cut_index": 1331, "middle_length": 229}} {"prefix": "aqtiga Bartamaha Afrika (Bujumbura)',\n 'Africa/Cairo' => 'Waqtiga Bariga Yurub (Qaahira)',\n 'Africa/Casablanca' => 'Waqtiga Galbeedka Yurub (Kasabalaanka)',\n 'Africa/Ceuta' => 'Waqtiga Bartamaha Yurub (Seuta)',\n 'Africa/Conakry' => 'Wakhtiga Giriinwij (Conakri)',\n 'Africa/Dakar' => 'Wakhtiga Giriinwij (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Waqtiga Bariga Afrika (Daresalaam)',\n 'Africa/Djibouti' => 'Waqtiga Bariga Afrika (Jibuuti)',\n 'Africa/Douala' => '", "suffix": "on)',\n 'Africa/Harare' => 'Waqtiga Bartamaha Afrika (Haraare)',\n 'Africa/Johannesburg' => 'Waqtiyada Caadiga Ah ee Koonfur Afrika (Johansbaag)',\n 'Africa/Juba' => 'Waqtiga Bartamaha Afrika (Juba)',\n 'Africa/Kampala' => 'Waqtiga ", "middle": "Waqtiga Galbeedka Afrika (Douaala)',\n 'Africa/El_Aaiun' => 'Waqtiga Galbeedka Yurub (El Ceyuun)',\n 'Africa/Freetown' => 'Wakhtiga Giriinwij (Firiitawn)',\n 'Africa/Gaborone' => 'Waqtiga Bartamaha Afrika (Gabro", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/so.php", "language": "php", "file_size": 29739, "cut_index": 1331, "middle_length": 229}} {"prefix": "e (Buxhumburë)',\n 'Africa/Cairo' => 'Ora e Evropës Lindore (Kajro)',\n 'Africa/Casablanca' => 'Ora e Evropës Perëndimore (Kazablankë)',\n 'Africa/Ceuta' => 'Ora e Evropës Qendrore (Theuta)',\n 'Africa/Conakry' => 'Ora e Grinuiçit (Konakri)',\n 'Africa/Dakar' => 'Ora e Grinuiçit (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Ora e Afrikës Lindore (Dar-es-Salam)',\n 'Africa/Djibouti' => 'Ora e Afrikës Lindore (Xhibuti)',\n 'Africa/Douala' => 'Ora e Afrikës Perëndimore ", "suffix": " 'Ora e Afrikës Qendrore (Harare)',\n 'Africa/Johannesburg' => 'Ora standarde e Afrikës Jugore (Johanesburg)',\n 'Africa/Juba' => 'Ora e Afrikës Qendrore (Xhuba)',\n 'Africa/Kampala' => 'Ora e Afrikës Lindore (Kampala)',\n 'Africa/K", "middle": "(Douala)',\n 'Africa/El_Aaiun' => 'Ora e Evropës Perëndimore (El Ajun)',\n 'Africa/Freetown' => 'Ora e Grinuiçit (Fritaun)',\n 'Africa/Gaborone' => 'Ora e Afrikës Qendrore (Gaborone)',\n 'Africa/Harare' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sq.php", "language": "php", "file_size": 28121, "cut_index": 1331, "middle_length": 229}} {"prefix": "=> 'Централно-афричко време (Буџумбура)',\n 'Africa/Cairo' => 'Источноевропско време (Каиро)',\n 'Africa/Casablanca' => 'Западноевропско време (Казабланка)',\n 'Africa/Ceuta' => 'Средњеевропско време (Сеута)',\n 'Africa/Conakry' => 'Средње време по Гриничу (Конакри)',\n 'Africa/Dakar' => 'Средње време по Гриничу (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Источно-афричко време (Дар-ес-Салам)',\n 'Africa/Djibouti' => 'Источно-афричко време (Џибути)',\n 'Africa/Doual", "suffix": "он)',\n 'Africa/Harare' => 'Централно-афричко време (Хараре)',\n 'Africa/Johannesburg' => 'Јужно-афричко време (Јоханесбург)',\n 'Africa/Juba' => 'Централно-афричко време (Џуба)',\n 'Africa/Kampala' => 'Источно-афричко време (Кампал", "middle": "a' => 'Западно-афричко време (Дуала)',\n 'Africa/El_Aaiun' => 'Западноевропско време (Ел Ајун)',\n 'Africa/Freetown' => 'Средње време по Гриничу (Фритаун)',\n 'Africa/Gaborone' => 'Централно-афричко време (Габор", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sr.php", "language": "php", "file_size": 38123, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Bujumbura' => 'Централно-афричко вријеме (Буџумбура)',\n 'Africa/Cairo' => 'Источноевропско вријеме (Каиро)',\n 'Africa/Casablanca' => 'Западноевропско вријеме (Казабланка)',\n 'Africa/Ceuta' => 'Средњоевропско вријеме (Сеута)',\n 'Africa/Conakry' => 'Средње вријеме по Гриничу (Конакри)',\n 'Africa/Dakar' => 'Средње вријеме по Гриничу (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Источно-афричко вријеме (Дар-ес-Салам)',\n 'Africa/Djibouti' => 'Источно-афричко ", "suffix": "a/Gaborone' => 'Централно-афричко вријеме (Габорон)',\n 'Africa/Harare' => 'Централно-афричко вријеме (Хараре)',\n 'Africa/Johannesburg' => 'Јужно-афричко вријеме (Јоханесбург)',\n 'Africa/Juba' => 'Централно-афричко вријеме (Џуба)',\n ", "middle": "вријеме (Џибути)',\n 'Africa/Douala' => 'Западно-афричко вријеме (Дуала)',\n 'Africa/El_Aaiun' => 'Западноевропско вријеме (Ел Ајун)',\n 'Africa/Freetown' => 'Средње вријеме по Гриничу (Фритаун)',\n 'Afric", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sr_Cyrl_BA.php", "language": "php", "file_size": 39897, "cut_index": 1331, "middle_length": 229}} {"prefix": "mbura' => 'Centralno-afričko vreme (Budžumbura)',\n 'Africa/Cairo' => 'Istočnoevropsko vreme (Kairo)',\n 'Africa/Casablanca' => 'Zapadnoevropsko vreme (Kazablanka)',\n 'Africa/Ceuta' => 'Srednjeevropsko vreme (Seuta)',\n 'Africa/Conakry' => 'Srednje vreme po Griniču (Konakri)',\n 'Africa/Dakar' => 'Srednje vreme po Griniču (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Istočno-afričko vreme (Dar-es-Salam)',\n 'Africa/Djibouti' => 'Istočno-afričko vreme (Džibuti)',\n '", "suffix": " vreme (Gaboron)',\n 'Africa/Harare' => 'Centralno-afričko vreme (Harare)',\n 'Africa/Johannesburg' => 'Južno-afričko vreme (Johanesburg)',\n 'Africa/Juba' => 'Centralno-afričko vreme (Džuba)',\n 'Africa/Kampala' => 'Istočno-afričko", "middle": "Africa/Douala' => 'Zapadno-afričko vreme (Duala)',\n 'Africa/El_Aaiun' => 'Zapadnoevropsko vreme (El Ajun)',\n 'Africa/Freetown' => 'Srednje vreme po Griniču (Fritaun)',\n 'Africa/Gaborone' => 'Centralno-afričko", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sr_Latn.php", "language": "php", "file_size": 27751, "cut_index": 1331, "middle_length": 229}} {"prefix": ")',\n 'Africa/Bujumbura' => 'Centralno-afričko vrijeme (Budžumbura)',\n 'Africa/Cairo' => 'Istočnoevropsko vrijeme (Kairo)',\n 'Africa/Casablanca' => 'Zapadnoevropsko vrijeme (Kazablanka)',\n 'Africa/Ceuta' => 'Srednjoevropsko vrijeme (Seuta)',\n 'Africa/Conakry' => 'Srednje vrijeme po Griniču (Konakri)',\n 'Africa/Dakar' => 'Srednje vrijeme po Griniču (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Istočno-afričko vrijeme (Dar-es-Salam)',\n 'Africa/Djibouti' => 'Istoč", "suffix": " 'Africa/Gaborone' => 'Centralno-afričko vrijeme (Gaboron)',\n 'Africa/Harare' => 'Centralno-afričko vrijeme (Harare)',\n 'Africa/Johannesburg' => 'Južno-afričko vrijeme (Johanesburg)',\n 'Africa/Juba' => 'Centralno-afričko vrijeme ", "middle": "no-afričko vrijeme (Džibuti)',\n 'Africa/Douala' => 'Zapadno-afričko vrijeme (Duala)',\n 'Africa/El_Aaiun' => 'Zapadnoevropsko vrijeme (El Ajun)',\n 'Africa/Freetown' => 'Srednje vrijeme po Griniču (Fritaun)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sr_Latn_BA.php", "language": "php", "file_size": 27352, "cut_index": 1331, "middle_length": 229}} {"prefix": "s' => [\n 'Africa/Abidjan' => 'Greenwich Mean Time (Abidjan)',\n 'Africa/Accra' => 'Greenwich Mean Time (Accra)',\n 'Africa/Bamako' => 'Greenwich Mean Time (Bamako)',\n 'Africa/Banjul' => 'Greenwich Mean Time (Banjul)',\n 'Africa/Bissau' => 'Greenwich Mean Time (Bissau)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Johannesburg", "suffix": "uakchott' => 'Greenwich Mean Time (Nouakchott)',\n 'Africa/Ouagadougou' => 'Greenwich Mean Time (Ouagadougou)',\n 'Africa/Sao_Tome' => 'Greenwich Mean Time (São Tomé)',\n 'America/Danmarkshavn' => 'Greenwich Mean Time (Danmarkshavn)',\n ", "middle": "' => 'Afrika Borwa Nako (Johannesburg)',\n 'Africa/Lome' => 'Greenwich Mean Time (Lomé)',\n 'Africa/Maseru' => 'Lesotho Nako (Maseru)',\n 'Africa/Monrovia' => 'Greenwich Mean Time (Monrovia)',\n 'Africa/No", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/st.php", "language": "php", "file_size": 1599, "cut_index": 537, "middle_length": 229}} {"prefix": "mur (Cairo)',\n 'Africa/Casablanca' => 'Waktu Éropa Barat (Casablanca)',\n 'Africa/Ceuta' => 'Waktu Éropa Tengah (Ceuta)',\n 'Africa/Conakry' => 'Waktu Greenwich (Conakry)',\n 'Africa/Dakar' => 'Waktu Greenwich (Dakar)',\n 'Africa/El_Aaiun' => 'Waktu Éropa Barat (El Aaiún)',\n 'Africa/Freetown' => 'Waktu Greenwich (Freetown)',\n 'Africa/Lome' => 'Waktu Greenwich (Lomé)',\n 'Africa/Monrovia' => 'Waktu Greenwich (Monrovia)',\n 'Africa/Nouakchott' => 'Waktu", "suffix": "s' => 'Waktu Éropa Tengah (Tunis)',\n 'America/Adak' => 'Amérika Sarikat (Adak)',\n 'America/Anchorage' => 'Amérika Sarikat (Anchorage)',\n 'America/Anguilla' => 'Waktu Atlantik (Anguilla)',\n 'America/Antigua' => 'Waktu Atlantik (A", "middle": " Greenwich (Nouakchott)',\n 'Africa/Ouagadougou' => 'Waktu Greenwich (Ouagadougou)',\n 'Africa/Sao_Tome' => 'Waktu Greenwich (São Tomé)',\n 'Africa/Tripoli' => 'Waktu Éropa Timur (Tripoli)',\n 'Africa/Tuni", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/su.php", "language": "php", "file_size": 13920, "cut_index": 921, "middle_length": 229}} {"prefix": "peisk tid (Kairo)',\n 'Africa/Casablanca' => 'västeuropeisk tid (Casablanca)',\n 'Africa/Ceuta' => 'centraleuropeisk tid (Ceuta)',\n 'Africa/Conakry' => 'Greenwichtid (Conakry)',\n 'Africa/Dakar' => 'Greenwichtid (Dakar)',\n 'Africa/Dar_es_Salaam' => 'östafrikansk tid (Dar es-Salaam)',\n 'Africa/Djibouti' => 'östafrikansk tid (Djibouti)',\n 'Africa/Douala' => 'västafrikansk tid (Douala)',\n 'Africa/El_Aaiun' => 'västeuropeisk tid (El-Aaiún)',\n 'Africa/F", "suffix": ",\n 'Africa/Juba' => 'centralafrikansk tid (Juba)',\n 'Africa/Kampala' => 'östafrikansk tid (Kampala)',\n 'Africa/Khartoum' => 'centralafrikansk tid (Khartoum)',\n 'Africa/Kigali' => 'centralafrikansk tid (Kigali)',\n 'Africa/", "middle": "reetown' => 'Greenwichtid (Freetown)',\n 'Africa/Gaborone' => 'centralafrikansk tid (Gaborone)',\n 'Africa/Harare' => 'centralafrikansk tid (Harare)',\n 'Africa/Johannesburg' => 'sydafrikansk tid (Johannesburg)'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sv.php", "language": "php", "file_size": 26628, "cut_index": 1331, "middle_length": 229}} {"prefix": " ya Kati (Bujumbura)',\n 'Africa/Cairo' => 'Saa za Mashariki mwa Ulaya (Cairo)',\n 'Africa/Casablanca' => 'Saa za Magharibi mwa Ulaya (Casablanca)',\n 'Africa/Ceuta' => 'Saa za Ulaya ya Kati (Ceuta)',\n 'Africa/Conakry' => 'Saa za Greenwich (Conakry)',\n 'Africa/Dakar' => 'Saa za Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Saa za Afrika Mashariki (Dar es Salaam)',\n 'Africa/Djibouti' => 'Saa za Afrika Mashariki (Djibouti)',\n 'Africa/Douala' => 'Saa za Af", "suffix": "'Africa/Harare' => 'Saa za Afrika ya Kati (Harare)',\n 'Africa/Johannesburg' => 'Saa za Wastani za Afrika Kusini (Johannesburg)',\n 'Africa/Juba' => 'Saa za Afrika ya Kati (Juba)',\n 'Africa/Kampala' => 'Saa za Afrika Mashariki (Kampala)'", "middle": "rika Magharibi (Douala)',\n 'Africa/El_Aaiun' => 'Saa za Magharibi mwa Ulaya (El Aaiún)',\n 'Africa/Freetown' => 'Saa za Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Saa za Afrika ya Kati (Gaborone)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sw.php", "language": "php", "file_size": 27030, "cut_index": 1331, "middle_length": 229}} {"prefix": "'America/Argentina/La_Rioja' => 'Saa za Ajentina (La Rioja)',\n 'America/Argentina/Rio_Gallegos' => 'Saa za Ajentina (Río Gallegos)',\n 'America/Argentina/Salta' => 'Saa za Ajentina (Salta)',\n 'America/Argentina/San_Juan' => 'Saa za Ajentina (San Juan)',\n 'America/Argentina/San_Luis' => 'Saa za Ajentina (San Luis)',\n 'America/Argentina/Tucuman' => 'Saa za Ajentina (Tucumán)',\n 'America/Argentina/Ushuaia' => 'Saa za Ajentina (Ushuaia)',\n 'America/Bahia' => 'Saa ", "suffix": "Buenos_Aires' => 'Saa za Ajentina (Buenos Aires)',\n 'America/Catamarca' => 'Saa za Ajentina (Catamarca)',\n 'America/Argentina/Catamarca' => 'Saa za Ajentina (Catamarca)',\n 'America/Cayenne' => 'Saa za Guiana (Cayenne)',\n 'Americ", "middle": "za Brazili (Bahia)',\n 'America/Barbados' => 'Saa za Atlantiki (Babados)',\n 'America/Belem' => 'Saa za Brazili (Belém)',\n 'America/Buenos_Aires' => 'Saa za Ajentina (Buenos Aires)',\n 'America/Argentina/", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/sw_KE.php", "language": "php", "file_size": 4920, "cut_index": 614, "middle_length": 229}} {"prefix": "வில்லி)',\n 'Africa/Bujumbura' => 'மத்திய ஆப்பிரிக்க நேரம் (புஜும்புரா)',\n 'Africa/Cairo' => 'கிழக்கத்திய ஐரோப்பிய நேரம் (கெய்ரோ)',\n 'Africa/Casablanca' => 'மேற்கத்திய ஐரோப்பிய நேரம் (காஸாபிளான்கா)',\n 'Africa/Ceuta' => 'மத்திய ஐரோப்பிய நேரம் (சியூட்டா)',\n 'Africa/Conakry' => 'கிரீன்விச் சராசரி நேரம் (கோனக்ரே)',\n 'Africa/Dakar' => 'கிரீன்விச் சராசரி நேரம் (டாகர்)',\n 'Africa/Dar_es_Salaam' => 'கிழக்கு ஆப்பிரிக்க நேரம் (தார் எஸ் சலாம்)',\n 'Africa/Djibouti'", "suffix": "(ஃப்ரீடவுன்)',\n 'Africa/Gaborone' => 'மத்திய ஆப்பிரிக்க நேரம் (கபோரோன்)',\n 'Africa/Harare' => 'மத்திய ஆப்பிரிக்க நேரம் (ஹராரே)',\n 'Africa/Johannesburg' => 'தென் ஆப்பிரிக்க நிலையான நேரம் (ஜோஹன்னஸ்பெர்க்)',\n 'Africa/Juba' => 'மத்த", "middle": " => 'கிழக்கு ஆப்பிரிக்க நேரம் (ஜிபௌட்டி)',\n 'Africa/Douala' => 'மேற்கு ஆப்பிரிக்க நேரம் (தவுலா)',\n 'Africa/El_Aaiun' => 'மேற்கத்திய ஐரோப்பிய நேரம் (எல் ஆயுன்)',\n 'Africa/Freetown' => 'கிரீன்விச் சராசரி நேரம் ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ta.php", "language": "php", "file_size": 49243, "cut_index": 1331, "middle_length": 229}} {"prefix": "ura' => 'సెంట్రల్ ఆఫ్రికా సమయం (బుజమ్బురా)',\n 'Africa/Cairo' => 'తూర్పు యూరోపియన్ సమయం (కైరో)',\n 'Africa/Casablanca' => 'పశ్చిమ యూరోపియన్ సమయం (కాసాబ్లాంకా)',\n 'Africa/Ceuta' => 'సెంట్రల్ యూరోపియన్ సమయం (స్యూటా)',\n 'Africa/Conakry' => 'గ్రీన్‌విచ్ సగటు సమయం (కోనాక్రీ)',\n 'Africa/Dakar' => 'గ్రీన్‌విచ్ సగటు సమయం (డకార్)',\n 'Africa/Dar_es_Salaam' => 'తూర్పు ఆఫ్రికా సమయం (దార్ ఎస్ సలామ్)',\n 'Africa/Djibouti' => 'తూర్పు ఆఫ్రికా సమయం (జిబూటి)',\n 'Africa/Dou", "suffix": ")',\n 'Africa/Harare' => 'సెంట్రల్ ఆఫ్రికా సమయం (హరారే)',\n 'Africa/Johannesburg' => 'దక్షిణ ఆఫ్రికా ప్రామాణిక సమయం (జొహెన్స్‌బర్గ్)',\n 'Africa/Juba' => 'సెంట్రల్ ఆఫ్రికా సమయం (జుబా)',\n 'Africa/Kampala' => 'తూర్పు ఆఫ్రికా సమయం (కం", "middle": "ala' => 'పశ్చిమ ఆఫ్రికా సమయం (డౌలా)',\n 'Africa/El_Aaiun' => 'పశ్చిమ యూరోపియన్ సమయం (ఎల్ ఎయున్)',\n 'Africa/Freetown' => 'గ్రీన్‌విచ్ సగటు సమయం (ఫ్రీటౌన్)',\n 'Africa/Gaborone' => 'సెంట్రల్ ఆఫ్రికా సమయం (గబోరోన్", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/te.php", "language": "php", "file_size": 47045, "cut_index": 1331, "middle_length": 229}} {"prefix": " Марказӣ (Буҷумбура)',\n 'Africa/Cairo' => 'Вақти аврупоии шарқӣ (Қоҳира)',\n 'Africa/Casablanca' => 'Вақти аврупоии ғарбӣ (Касабланка)',\n 'Africa/Ceuta' => 'Вақти Аврупоии Марказӣ (Сеута)',\n 'Africa/Conakry' => 'Вақти миёнаи Гринвич (Конакри)',\n 'Africa/Dakar' => 'Вақти миёнаи Гринвич (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Вақти Африқои Шарқӣ (Доруссалом)',\n 'Africa/Djibouti' => 'Вақти Африқои Шарқӣ (Ҷибути)',\n 'Africa/Douala' => 'Вақти Африқои Ғарбӣ (Ду", "suffix": "ти Африқои Марказӣ (Хараре)',\n 'Africa/Johannesburg' => 'Вақти стандартии Африқои Ҷанубӣ (Йоханнесбург)',\n 'Africa/Juba' => 'Вақти Африқои Марказӣ (Ҷуба)',\n 'Africa/Kampala' => 'Вақти Африқои Шарқӣ (Кампала)',\n 'Africa/Khartoum'", "middle": "ала)',\n 'Africa/El_Aaiun' => 'Вақти аврупоии ғарбӣ (Эл Аиун)',\n 'Africa/Freetown' => 'Вақти миёнаи Гринвич (Фритаун)',\n 'Africa/Gaborone' => 'Вақти Африқои Марказӣ (Габороне)',\n 'Africa/Harare' => 'Вақ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/tg.php", "language": "php", "file_size": 35679, "cut_index": 1331, "middle_length": 229}} {"prefix": "frica/Cairo' => 'เวลายุโรปตะวันออก (ไคโร)',\n 'Africa/Casablanca' => 'เวลายุโรปตะวันตก (คาสซาบลางก้า)',\n 'Africa/Ceuta' => 'เวลายุโรปกลาง (เซวตา)',\n 'Africa/Conakry' => 'เวลามาตรฐานกรีนิช (โกนากรี)',\n 'Africa/Dakar' => 'เวลามาตรฐานกรีนิช (ดาการ์)',\n 'Africa/Dar_es_Salaam' => 'เวลาแอฟริกาตะวันออก (ดาร์เอสซาลาม)',\n 'Africa/Djibouti' => 'เวลาแอฟริกาตะวันออก (จิบูตี)',\n 'Africa/Douala' => 'เวลาแอฟริกาตะวันตก (ดูอาลา)',\n 'Africa/El_Aaiun' => 'เวลายุโรปตะวันต", "suffix": "าแอฟริกาใต้ (โจฮันเนสเบอร์ก)',\n 'Africa/Juba' => 'เวลาแอฟริกากลาง (จูบา)',\n 'Africa/Kampala' => 'เวลาแอฟริกาตะวันออก (คัมพาลา)',\n 'Africa/Khartoum' => 'เวลาแอฟริกากลาง (คาร์ทูม)',\n 'Africa/Kigali' => 'เวลาแอฟริกากลาง (คิกาลี)',\n", "middle": "ก (เอลไอย์อุง)',\n 'Africa/Freetown' => 'เวลามาตรฐานกรีนิช (ฟรีทาวน์)',\n 'Africa/Gaborone' => 'เวลาแอฟริกากลาง (กาโบโรเน)',\n 'Africa/Harare' => 'เวลาแอฟริกากลาง (ฮาราเร)',\n 'Africa/Johannesburg' => 'เวล", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/th.php", "language": "php", "file_size": 46577, "cut_index": 1331, "middle_length": 229}} {"prefix": " (ሴውታ)',\n 'Africa/Conakry' => 'GMT (ኮናክሪ)',\n 'Africa/Dakar' => 'GMT (ዳካር)',\n 'Africa/Dar_es_Salaam' => 'ግዜ ምብራቕ ኣፍሪቃ (ዳር ኤስ ሳላም)',\n 'Africa/Djibouti' => 'ግዜ ምብራቕ ኣፍሪቃ (ጅቡቲ)',\n 'Africa/Douala' => 'ግዜ ምዕራብ ኣፍሪቃ (ዱዋላ)',\n 'Africa/El_Aaiun' => 'ናይ ምዕራባዊ ኤውሮጳዊ ግዘ (ኤል ኣዩን)',\n 'Africa/Freetown' => 'GMT (ፍሪታውን)',\n 'Africa/Gaborone' => 'ግዜ ማእከላይ ኣፍሪቃ (ጋቦሮን)',\n 'Africa/Harare' => 'ግዜ ማእከላይ ኣፍሪቃ (ሃራረ)',\n 'Africa/Johannesburg' => 'ግዜ ደቡብ ኣፍሪቃ (ጆሃንስበርግ", "suffix": "' => 'ግዜ ምዕራብ ኣፍሪቃ (ኪንሻሳ)',\n 'Africa/Lagos' => 'ግዜ ምዕራብ ኣፍሪቃ (ሌጎስ)',\n 'Africa/Libreville' => 'ግዜ ምዕራብ ኣፍሪቃ (ሊብረቪል)',\n 'Africa/Lome' => 'GMT (ሎመ)',\n 'Africa/Luanda' => 'ግዜ ምዕራብ ኣፍሪቃ (ሉዋንዳ)',\n 'Africa/Lubumbashi' => 'ግዜ ማእከ", "middle": ")',\n 'Africa/Juba' => 'ግዜ ማእከላይ ኣፍሪቃ (ጁባ)',\n 'Africa/Kampala' => 'ግዜ ምብራቕ ኣፍሪቃ (ካምፓላ)',\n 'Africa/Khartoum' => 'ግዜ ማእከላይ ኣፍሪቃ (ካርቱም)',\n 'Africa/Kigali' => 'ግዜ ማእከላይ ኣፍሪቃ (ኪጋሊ)',\n 'Africa/Kinshasa", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ti.php", "language": "php", "file_size": 34896, "cut_index": 1331, "middle_length": 229}} {"prefix": "rika wagty (Bujumbura)',\n 'Africa/Cairo' => 'Gündogar Ýewropa wagty (Kair)',\n 'Africa/Casablanca' => 'Günbatar Ýewropa wagty (Kasablanka)',\n 'Africa/Ceuta' => 'Merkezi Ýewropa wagty (Seuta)',\n 'Africa/Conakry' => 'Grinwiç ortaça wagty (Konakri)',\n 'Africa/Dakar' => 'Grinwiç ortaça wagty (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Gündogar Afrika wagty (Dar-es-Salam)',\n 'Africa/Djibouti' => 'Gündogar Afrika wagty (Jibuti)',\n 'Africa/Douala' => 'Günbatar Afrik", "suffix": "are' => 'Merkezi Afrika wagty (Harare)',\n 'Africa/Johannesburg' => 'Günorta Afrika standart wagty (Ýohannesburg)',\n 'Africa/Juba' => 'Merkezi Afrika wagty (Juba)',\n 'Africa/Kampala' => 'Gündogar Afrika wagty (Kampala)',\n 'Africa", "middle": "a wagty (Duala)',\n 'Africa/El_Aaiun' => 'Günbatar Ýewropa wagty (El-Aýun)',\n 'Africa/Freetown' => 'Grinwiç ortaça wagty (Fritaun)',\n 'Africa/Gaborone' => 'Merkezi Afrika wagty (Gaborone)',\n 'Africa/Har", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/tk.php", "language": "php", "file_size": 27629, "cut_index": 1331, "middle_length": 229}} {"prefix": "idjan' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Abidjan)',\n 'Africa/Accra' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Accra)',\n 'Africa/Bamako' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Bamako)',\n 'Africa/Banjul' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Banjul)',\n 'Africa/Bissau' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Bissau)',\n 'Africa/Conakry' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Conak", "suffix": "orone)',\n 'Africa/Johannesburg' => 'Aforika Borwa (Johannesburg)',\n 'Africa/Lome' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Lomé)',\n 'Africa/Monrovia' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Monrovia)',\n ", "middle": "ry)',\n 'Africa/Dakar' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Dakar)',\n 'Africa/Freetown' => 'Palogare ya nako ya ngwaga le ngwaga ya Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Botswana (Gab", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/tn.php", "language": "php", "file_size": 2285, "cut_index": 563, "middle_length": 229}} {"prefix": "ille)',\n 'Africa/Bujumbura' => 'houa fakaʻafelika-loto (Bujumbura)',\n 'Africa/Cairo' => 'houa fakaʻeulope-hahake (Cairo)',\n 'Africa/Casablanca' => 'houa fakaʻeulope-hihifo (Casablanca)',\n 'Africa/Ceuta' => 'houa fakaʻeulope-loto (Ceuta)',\n 'Africa/Conakry' => 'houa fakakiliniuisi mālie (Conakry)',\n 'Africa/Dakar' => 'houa fakakiliniuisi mālie (Dakar)',\n 'Africa/Dar_es_Salaam' => 'houa fakaʻafelika-hahake (Dar es Salaam)',\n 'Africa/Djibouti' => 'houa fa", "suffix": ",\n 'Africa/Gaborone' => 'houa fakaʻafelika-loto (Gaborone)',\n 'Africa/Harare' => 'houa fakaʻafelika-loto (Harare)',\n 'Africa/Johannesburg' => 'houa fakaʻafelika-tonga (Johannesburg)',\n 'Africa/Juba' => 'houa fakaʻafelika-loto (J", "middle": "kaʻafelika-hahake (Djibouti)',\n 'Africa/Douala' => 'houa fakaʻafelika-hihifo (Douala)',\n 'Africa/El_Aaiun' => 'houa fakaʻeulope-hihifo (El Aaiún)',\n 'Africa/Freetown' => 'houa fakakiliniuisi mālie (Freetown)'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/to.php", "language": "php", "file_size": 30166, "cut_index": 1331, "middle_length": 229}} {"prefix": "k tid (Kampala)',\n 'Africa/Kinshasa' => 'Kongo-Kinshasa (Kinshasa)',\n 'Africa/Lubumbashi' => 'Kongo-Kinshasa (Lubumbashi)',\n 'Africa/Mogadishu' => 'austafrikansk tid (Mogadishu)',\n 'Africa/Nairobi' => 'austafrikansk tid (Nairobi)',\n 'Africa/Tripoli' => 'austeuropeisk tid (Tripoli)',\n 'Africa/Tunis' => 'sentraleuropeisk tid (Tunis)',\n 'America/Adak' => 'tidssone for Hawaii og Aleutene (Adak)',\n 'America/Anchorage' => 'alaskisk tid (Anchorage)',\n ", "suffix": "asilia (Araguaína)',\n 'America/Argentina/La_Rioja' => 'argentinsk tid (La Rioja)',\n 'America/Argentina/Rio_Gallegos' => 'argentinsk tid (Río Gallegos)',\n 'America/Argentina/Salta' => 'argentinsk tid (Salta)',\n 'America/Argentina", "middle": "'America/Anguilla' => 'tidssone for den nordamerikanske atlanterhavskysten (Anguilla)',\n 'America/Antigua' => 'tidssone for den nordamerikanske atlanterhavskysten (Antigua)',\n 'America/Araguaina' => 'tidssone for Br", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/nn.php", "language": "php", "file_size": 22471, "cut_index": 1331, "middle_length": 229}} {"prefix": "s' => [\n 'Africa/Abidjan' => 'ora al meridian de Greenwich (Abidjan)',\n 'Africa/Accra' => 'ora al meridian de Greenwich (Accra)',\n 'Africa/Bamako' => 'ora al meridian de Greenwich (Bamako)',\n 'Africa/Banjul' => 'ora al meridian de Greenwich (Banjul)',\n 'Africa/Bissau' => 'ora al meridian de Greenwich (Bissau)',\n 'Africa/Ceuta' => 'ora de Espanha (Ceuta)',\n 'Africa/Conakry' => 'ora al meridian de Greenwich (Conakry)',\n 'Africa/Dakar' => 'ora al meridian", "suffix": "',\n 'Africa/Nouakchott' => 'ora al meridian de Greenwich (Nouakchott)',\n 'Africa/Ouagadougou' => 'ora al meridian de Greenwich (Ouagadougou)',\n 'Africa/Sao_Tome' => 'ora al meridian de Greenwich (São Tomé)',\n 'America/Danmarksha", "middle": " de Greenwich (Dakar)',\n 'Africa/Freetown' => 'ora al meridian de Greenwich (Freetown)',\n 'Africa/Lome' => 'ora al meridian de Greenwich (Lomé)',\n 'Africa/Monrovia' => 'ora al meridian de Greenwich (Monrovia)", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/oc.php", "language": "php", "file_size": 1998, "cut_index": 537, "middle_length": 229}} {"prefix": ")',\n 'Africa/Cairo' => 'ପୂର୍ବାଞ୍ଚଳ ୟୁରୋପୀୟ ସମୟ (କାଇରୋ)',\n 'Africa/Casablanca' => 'ପଶ୍ଚିମାଞ୍ଚଳ ୟୁରୋପୀୟ ସମୟ (କାସାବ୍ଲାଙ୍କା)',\n 'Africa/Ceuta' => 'କେନ୍ଦ୍ରୀୟ ୟୁରୋପୀୟ ସମୟ (ସେଉଟା)',\n 'Africa/Conakry' => 'ଗ୍ରୀନୱିଚ୍ ମିନ୍ ସମୟ (କୋନାକ୍ରି)',\n 'Africa/Dakar' => 'ଗ୍ରୀନୱିଚ୍ ମିନ୍ ସମୟ (ଡକାର)',\n 'Africa/Dar_es_Salaam' => 'ପୂର୍ବ ଆଫ୍ରିକା ସମୟ (ଡର୍‌ ଇସ୍‌ ସାଲାମ)',\n 'Africa/Djibouti' => 'ପୂର୍ବ ଆଫ୍ରିକା ସମୟ (ଜିବୋଟି)',\n 'Africa/Douala' => 'ପଶ୍ଚିମ ଆଫ୍ରିକା ସମୟ (ଡଉଲା)',\n 'Afr", "suffix": "ାରେ)',\n 'Africa/Johannesburg' => 'ଦକ୍ଷିଣ ଆଫ୍ରିକା ମାନାଙ୍କ ସମୟ (ଜୋହାନ୍ସବର୍ଗ)',\n 'Africa/Juba' => 'ମଧ୍ୟ ଆଫ୍ରିକା ସମୟ (ଜୁବା)',\n 'Africa/Kampala' => 'ପୂର୍ବ ଆଫ୍ରିକା ସମୟ (କାମ୍ପାଲା)',\n 'Africa/Khartoum' => 'ମଧ୍ୟ ଆଫ୍ରିକା ସମୟ (ଖରଟୌମ୍‌)',\n ", "middle": "ica/El_Aaiun' => 'ପଶ୍ଚିମାଞ୍ଚଳ ୟୁରୋପୀୟ ସମୟ (ଏଲ୍‌ ଏୟନ୍)',\n 'Africa/Freetown' => 'ଗ୍ରୀନୱିଚ୍ ମିନ୍ ସମୟ (ଫ୍ରିଟାଉନ୍‌)',\n 'Africa/Gaborone' => 'ମଧ୍ୟ ଆଫ୍ରିକା ସମୟ (ଗାବୋର୍ଣ୍ଣ)',\n 'Africa/Harare' => 'ମଧ୍ୟ ଆଫ୍ରିକା ସମୟ (ହର", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/or.php", "language": "php", "file_size": 45271, "cut_index": 1331, "middle_length": 229}} {"prefix": "ca/Cairo' => 'ਪੂਰਬੀ ਯੂਰਪੀ ਵੇਲਾ (ਕੈਰੋ)',\n 'Africa/Casablanca' => 'ਪੱਛਮੀ ਯੂਰਪੀ ਵੇਲਾ (ਕਾਸਾਬਲਾਂਕਾ)',\n 'Africa/Ceuta' => 'ਮੱਧ ਯੂਰਪੀ ਵੇਲਾ (ਸੀਊਟਾ)',\n 'Africa/Conakry' => 'ਗ੍ਰੀਨਵਿਚ ਮੀਨ ਵੇਲਾ (ਕੋਨੇਕਰੀ)',\n 'Africa/Dakar' => 'ਗ੍ਰੀਨਵਿਚ ਮੀਨ ਵੇਲਾ (ਡਕਾਰ)',\n 'Africa/Dar_es_Salaam' => 'ਪੂਰਬੀ ਅਫ਼ਰੀਕਾ ਵੇਲਾ (ਦਾਰ ਏਸ ਸਲਾਮ)',\n 'Africa/Djibouti' => 'ਪੂਰਬੀ ਅਫ਼ਰੀਕਾ ਵੇਲਾ (ਜਿਬੂਤੀ)',\n 'Africa/Douala' => 'ਪੱਛਮੀ ਅਫਰੀਕਾ ਵੇਲਾ (ਡੌਆਲਾ)',\n 'Africa/El_Aaiun' => 'ਪੱਛਮੀ ਯੂਰਪੀ ਵੇਲਾ (ਅਲ ਅਯੂਨ)'", "suffix": " ਮਿਆਰੀ ਵੇਲਾ (ਜੋਹਨਸਬਰਗ)',\n 'Africa/Juba' => 'ਕੇਂਦਰੀ ਅਫ਼ਰੀਕਾ ਵੇਲਾ (ਜੂਬਾ)',\n 'Africa/Kampala' => 'ਪੂਰਬੀ ਅਫ਼ਰੀਕਾ ਵੇਲਾ (ਕੰਪਾਲਾ)',\n 'Africa/Khartoum' => 'ਕੇਂਦਰੀ ਅਫ਼ਰੀਕਾ ਵੇਲਾ (ਖਾਰਟੌਮ)',\n 'Africa/Kigali' => 'ਕੇਂਦਰੀ ਅਫ਼ਰੀਕਾ ਵੇਲਾ (ਕਿਗਾਲੀ)", "middle": ",\n 'Africa/Freetown' => 'ਗ੍ਰੀਨਵਿਚ ਮੀਨ ਵੇਲਾ (ਫਰੀਟਾਉਨ)',\n 'Africa/Gaborone' => 'ਕੇਂਦਰੀ ਅਫ਼ਰੀਕਾ ਵੇਲਾ (ਗਾਬੋਰੋਨ)',\n 'Africa/Harare' => 'ਕੇਂਦਰੀ ਅਫ਼ਰੀਕਾ ਵੇਲਾ (ਹਰਾਰੇ)',\n 'Africa/Johannesburg' => 'ਦੱਖਣੀ ਅਫ਼ਰੀਕਾ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/pa.php", "language": "php", "file_size": 43907, "cut_index": 1331, "middle_length": 229}} {"prefix": "ختيځ اروپايي وخت (قاهره)',\n 'Africa/Casablanca' => 'لوېديځ اروپايي وخت (کاسابلانکا)',\n 'Africa/Ceuta' => 'مرکزي اروپايي وخت (سيوټا)',\n 'Africa/Conakry' => 'ګرينويچ معياري وخت (کونکري)',\n 'Africa/Dakar' => 'ګرينويچ معياري وخت (ډاکار)',\n 'Africa/Dar_es_Salaam' => 'ختيځ افريقا وخت (دار السلام)',\n 'Africa/Djibouti' => 'ختيځ افريقا وخت (جبوتي)',\n 'Africa/Douala' => 'لوېديځ افريقا وخت (دوالا)',\n 'Africa/El_Aaiun' => 'لوېديځ اروپايي وخت (الیون)',\n 'Afr", "suffix": ")',\n 'Africa/Juba' => 'منځنی افريقا وخت (جوبا)',\n 'Africa/Kampala' => 'ختيځ افريقا وخت (کمپاله)',\n 'Africa/Khartoum' => 'منځنی افريقا وخت (خرتوم)',\n 'Africa/Kigali' => 'منځنی افريقا وخت (کيگالي)',\n 'Africa/Kinshasa' => 'ل", "middle": "ica/Freetown' => 'ګرينويچ معياري وخت (فریټون)',\n 'Africa/Gaborone' => 'منځنی افريقا وخت (ګابرون)',\n 'Africa/Harare' => 'منځنی افريقا وخت (هرارې)',\n 'Africa/Johannesburg' => 'جنوبي افريقا معياري وخت (جوهانسبرګ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ps.php", "language": "php", "file_size": 32268, "cut_index": 1331, "middle_length": 229}} {"prefix": "a/Brazzaville' => 'Horário da África Ocidental (Brazzaville)',\n 'Africa/Bujumbura' => 'Horário da África Central (Bujumbura)',\n 'Africa/Cairo' => 'Horário da Europa Oriental (Cairo)',\n 'Africa/Casablanca' => 'Horário da Europa Ocidental (Casablanca)',\n 'Africa/Ceuta' => 'Horário da Europa Central (Ceuta)',\n 'Africa/Conakry' => 'Horário do Meridiano de Greenwich (Conacri)',\n 'Africa/Dakar' => 'Horário do Meridiano de Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam'", "suffix": "ropa Ocidental (El Aaiún)',\n 'Africa/Freetown' => 'Horário do Meridiano de Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Horário da África Central (Gaborone)',\n 'Africa/Harare' => 'Horário da África Central (Harare)',\n 'Africa/J", "middle": " => 'Horário da África Oriental (Dar es Salaam)',\n 'Africa/Djibouti' => 'Horário da África Oriental (Djibuti)',\n 'Africa/Douala' => 'Horário da África Ocidental (Douala)',\n 'Africa/El_Aaiun' => 'Horário da Eu", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/pt.php", "language": "php", "file_size": 29391, "cut_index": 1331, "middle_length": 229}} {"prefix": "frica Occidental (Brazzaville)',\n 'Africa/Bujumbura' => 'Hora de Africa Central (Bujumbura)',\n 'Africa/Cairo' => 'Hora de Europa Oriental (El Cairo)',\n 'Africa/Casablanca' => 'Hora de Europa Occidental (Casablanca)',\n 'Africa/Ceuta' => 'Hora de Europa Central (Ceuta)',\n 'Africa/Conakry' => 'Hora del Meridiano de Greenwich (Conakry)',\n 'Africa/Dakar' => 'Hora del Meridiano de Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Hora de Africa Oriental (Dar es Salaa", "suffix": "=> 'Hora del Meridiano de Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Hora de Africa Central (Gaborone)',\n 'Africa/Harare' => 'Hora de Africa Central (Harare)',\n 'Africa/Johannesburg' => 'Hora de Sudafrica (Johannesburgo)',\n '", "middle": "m)',\n 'Africa/Djibouti' => 'Hora de Africa Oriental (Yibuti)',\n 'Africa/Douala' => 'Hora de Africa Occidental (Duala)',\n 'Africa/El_Aaiun' => 'Hora de Europa Occidental (El Aaiún)',\n 'Africa/Freetown' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/qu.php", "language": "php", "file_size": 27442, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n 'Africa/Bujumbura' => 'Saeta Afrîkaya Navîn (Bujumbura)',\n 'Africa/Cairo' => 'Saeta Ewropaya Rojhilat (Qahîre)',\n 'Africa/Casablanca' => 'Saeta Ewropaya Rojava (Kazablanka)',\n 'Africa/Ceuta' => 'Saeta Ewropaya Navîn (Septe)',\n 'Africa/Conakry' => 'Saeta Navînî ya Greenwichê (Konakrî)',\n 'Africa/Dakar' => 'Saeta Navînî ya Greenwichê (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Saeta Afrîkaya Rojhilat (Daruselam)',\n 'Africa/Djibouti' => 'Saeta Afrîkaya Rojhil", "suffix": "orone' => 'Saeta Afrîkaya Navîn (Gaborone)',\n 'Africa/Harare' => 'Saeta Afrîkaya Navîn (Harare)',\n 'Africa/Johannesburg' => 'Saeta Standard a Afrîkaya Başûr (Johannesburg)',\n 'Africa/Juba' => 'Saeta Afrîkaya Navîn (Juba)',\n 'Afr", "middle": "at (Cibûtî)',\n 'Africa/Douala' => 'Saeta Afrîkaya Rojava (Douala)',\n 'Africa/El_Aaiun' => 'Saeta Ewropaya Rojava (El Aaiún)',\n 'Africa/Freetown' => 'Saeta Navînî ya Greenwichê (Freetown)',\n 'Africa/Gab", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ku.php", "language": "php", "file_size": 28888, "cut_index": 1331, "middle_length": 229}} {"prefix": "авилл)',\n 'Africa/Bujumbura' => 'Борбордук Африка убактысы (Бужумбура)',\n 'Africa/Cairo' => 'Чыгыш Европа убактысы (Каир)',\n 'Africa/Casablanca' => 'Батыш Европа убактысы (Касабланка)',\n 'Africa/Ceuta' => 'Борбордук Европа убактысы (Сеута)',\n 'Africa/Conakry' => 'Гринвич боюнча орточо убакыт (Конакри)',\n 'Africa/Dakar' => 'Гринвич боюнча орточо убакыт (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Чыгыш Африка убактысы (Дар эс Салаам)',\n 'Africa/Djibouti' => 'Ч", "suffix": " 'Africa/Gaborone' => 'Борбордук Африка убактысы (Габороне)',\n 'Africa/Harare' => 'Борбордук Африка убактысы (Хараре)',\n 'Africa/Johannesburg' => 'Түштүк Африка убактысы (Йоханнесбург)',\n 'Africa/Juba' => 'Борбордук Африка убактыс", "middle": "ыгыш Африка убактысы (Жибути)',\n 'Africa/Douala' => 'Батыш Африка убактысы (Дуала)',\n 'Africa/El_Aaiun' => 'Батыш Европа убактысы (Эл Айун)',\n 'Africa/Freetown' => 'Гринвич боюнча орточо убакыт (Фритаун)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ky.php", "language": "php", "file_size": 39914, "cut_index": 1331, "middle_length": 229}} {"prefix": "າ​ຟຣິ​ກາ​ກາງ (ບູຈູມບູຣາ)',\n 'Africa/Cairo' => 'ເວ​ລາ​ຢູ​ໂຣບ​ຕາ​ເວັນ​ອອກ (ໄຄໂຣ)',\n 'Africa/Casablanca' => 'ເວ​ລາ​ຢູ​ໂຣບ​ຕາ​ເວັນ​ຕົກ (ຄາຊາບລັງກາ)',\n 'Africa/Ceuta' => 'ເວ​ລາ​ຢູ​ໂຣບ​ກາງ (ຊີວຕາ)',\n 'Africa/Conakry' => 'ເວ​ລາກຣີນ​ວິ​ຊ (ໂຄນາຄຣີ)',\n 'Africa/Dakar' => 'ເວ​ລາກຣີນ​ວິ​ຊ (ດາກາ)',\n 'Africa/Dar_es_Salaam' => 'ເວ​ລາ​ອາ​ຟຣິ​ກາ​ຕາ​ເວັນ​ອອກ (ດາເອສສະລາມ)',\n 'Africa/Djibouti' => 'ເວ​ລາ​ອາ​ຟຣິ​ກາ​ຕາ​ເວັນ​ອອກ (ຈີບູຕິ)',\n 'Africa/Douala' => 'ເວ​ລາ​ອາ​ຟຣິ​ກາ​", "suffix": "are' => 'ເວ​ລາ​ອາ​ຟຣິ​ກາ​ກາງ (ຮາຣາເຣ)',\n 'Africa/Johannesburg' => 'ເວ​ລາ​ອາ​ຟຣິ​ກາ​ໃຕ້ (ໂຈຮັນເນດສເບີກ)',\n 'Africa/Juba' => 'ເວ​ລາ​ອາ​ຟຣິ​ກາ​ກາງ (ຈູບາ)',\n 'Africa/Kampala' => 'ເວ​ລາ​ອາ​ຟຣິ​ກາ​ຕາ​ເວັນ​ອອກ (ຄຳປາລາ)',\n 'Africa/Khart", "middle": "ຕາ​ເວັນ​ຕົກ (ດູອາລາ)',\n 'Africa/El_Aaiun' => 'ເວ​ລາ​ຢູ​ໂຣບ​ຕາ​ເວັນ​ຕົກ (ເອວ ອາຢູນ)',\n 'Africa/Freetown' => 'ເວ​ລາກຣີນ​ວິ​ຊ (ຟຣີທາວ)',\n 'Africa/Gaborone' => 'ເວ​ລາ​ອາ​ຟຣິ​ກາ​ກາງ (ກາບໍໂຣນ)',\n 'Africa/Har", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/lo.php", "language": "php", "file_size": 46481, "cut_index": 1331, "middle_length": 229}} {"prefix": "Africa/Cairo' => 'Kaira (Austrumeiropas laiks)',\n 'Africa/Casablanca' => 'Kasablanka (Rietumeiropas laiks)',\n 'Africa/Ceuta' => 'Seuta (Centrāleiropas laiks)',\n 'Africa/Conakry' => 'Konakri (Griničas laiks)',\n 'Africa/Dakar' => 'Dakara (Griničas laiks)',\n 'Africa/Dar_es_Salaam' => 'Dāresalāma (Austrumāfrikas laiks)',\n 'Africa/Djibouti' => 'Džibutija (Austrumāfrikas laiks)',\n 'Africa/Douala' => 'Duala (Rietumāfrikas laiks)',\n 'Africa/El_Aaiun' => 'Ajūna", "suffix": "esburg' => 'Johannesburga (Dienvidāfrikas ziemas laiks)',\n 'Africa/Juba' => 'Džūba (Centrālāfrikas laiks)',\n 'Africa/Kampala' => 'Kampala (Austrumāfrikas laiks)',\n 'Africa/Khartoum' => 'Hartūma (Centrālāfrikas laiks)',\n 'Africa/", "middle": " (Rietumeiropas laiks)',\n 'Africa/Freetown' => 'Frītauna (Griničas laiks)',\n 'Africa/Gaborone' => 'Gaborone (Centrālāfrikas laiks)',\n 'Africa/Harare' => 'Harare (Centrālāfrikas laiks)',\n 'Africa/Johann", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/lv.php", "language": "php", "file_size": 27220, "cut_index": 1331, "middle_length": 229}} {"prefix": "/Bujumbura' => 'Wā o Te Puku o Āwherika (Bujumbura)',\n 'Africa/Cairo' => 'Wā Uropi Rāwhiti (Kairo)',\n 'Africa/Casablanca' => 'Wā Uropi Uru (Casablanca)',\n 'Africa/Ceuta' => 'Wā Uropi Waenga (Ceuta)',\n 'Africa/Conakry' => 'Wā Toharite Kiriwīti (Conakry)',\n 'Africa/Dakar' => 'Wā Toharite Kiriwīti (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Wā o Āwherika ki te rāwhiti (Dar es Salaam)',\n 'Africa/Djibouti' => 'Wā o Āwherika ki te rāwhiti (Djibouti)',\n 'Africa/Dou", "suffix": ",\n 'Africa/Harare' => 'Wā o Te Puku o Āwherika (Harare)',\n 'Africa/Johannesburg' => 'Wā Arowhānui o Āwherika ki te tonga (Johannesburg)',\n 'Africa/Juba' => 'Wā o Te Puku o Āwherika (Juba)',\n 'Africa/Kampala' => 'Wā o Āwherika ki", "middle": "ala' => 'Wā o Āwherika ki te uru (Douala)',\n 'Africa/El_Aaiun' => 'Wā Uropi Uru (El Aaiún)',\n 'Africa/Freetown' => 'Wā Toharite Kiriwīti (Freetown)',\n 'Africa/Gaborone' => 'Wā o Te Puku o Āwherika (Gaborone)'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/mi.php", "language": "php", "file_size": 26014, "cut_index": 1331, "middle_length": 229}} {"prefix": "a' => 'മധ്യ ആഫ്രിക്ക സമയം (ബുജും‌ബുര)',\n 'Africa/Cairo' => 'കിഴക്കൻ യൂറോപ്യൻ സമയം (കെയ്‌റോ)',\n 'Africa/Casablanca' => 'പടിഞ്ഞാറൻ യൂറോപ്യൻ സമയം (കാസബ്ലാങ്ക)',\n 'Africa/Ceuta' => 'സെൻട്രൽ യൂറോപ്യൻ സമയം (ക്യൂട്ട)',\n 'Africa/Conakry' => 'ഗ്രീൻവിച്ച് മീൻ സമയം (കൊണാക്രി)',\n 'Africa/Dakar' => 'ഗ്രീൻവിച്ച് മീൻ സമയം (ഡാക്കർ‌)',\n 'Africa/Dar_es_Salaam' => 'കിഴക്കൻ ആഫ്രിക്ക സമയം (ദാർ എസ് സലാം)',\n 'Africa/Djibouti' => 'കിഴക്കൻ ആഫ്രിക്ക സമയം (ദിജിബൗട്ടി)',\n 'Africa", "suffix": "റോൺ)',\n 'Africa/Harare' => 'മധ്യ ആഫ്രിക്ക സമയം (ഹരാരെ)',\n 'Africa/Johannesburg' => 'ദക്ഷിണാഫ്രിക്ക സ്റ്റാൻഡേർഡ് സമയം (ജോഹന്നാസ്ബർ‌ഗ്)',\n 'Africa/Juba' => 'മധ്യ ആഫ്രിക്ക സമയം (ജുബ)',\n 'Africa/Kampala' => 'കിഴക്കൻ ആഫ്രിക്ക സമയം (ക", "middle": "/Douala' => 'പടിഞ്ഞാറൻ ആഫ്രിക്ക സമയം (ഡൗല)',\n 'Africa/El_Aaiun' => 'പടിഞ്ഞാറൻ യൂറോപ്യൻ സമയം (എൽ‌ ഐയുൻ‌)',\n 'Africa/Freetown' => 'ഗ്രീൻവിച്ച് മീൻ സമയം (ഫ്രീടൗൺ)',\n 'Africa/Gaborone' => 'മധ്യ ആഫ്രിക്ക സമയം (ഗാബ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ml.php", "language": "php", "file_size": 48004, "cut_index": 1331, "middle_length": 229}} {"prefix": "Европын цаг (Каир)',\n 'Africa/Casablanca' => 'Баруун Европын цаг (Касабланка)',\n 'Africa/Ceuta' => 'Төв Европын цаг (Сеута)',\n 'Africa/Conakry' => 'Гринвичийн цаг (Конакри)',\n 'Africa/Dakar' => 'Гринвичийн цаг (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Зүүн Африкийн цаг (Дар-эс-Салам)',\n 'Africa/Djibouti' => 'Зүүн Африкийн цаг (Жибути)',\n 'Africa/Douala' => 'Баруун Африкийн цаг (Дуала)',\n 'Africa/El_Aaiun' => 'Баруун Европын цаг (Эль-Аюн)',\n 'Africa/", "suffix": "ург)',\n 'Africa/Juba' => 'Төв Африкийн цаг (Жуба)',\n 'Africa/Kampala' => 'Зүүн Африкийн цаг (Кампала)',\n 'Africa/Khartoum' => 'Төв Африкийн цаг (Хартум)',\n 'Africa/Kigali' => 'Төв Африкийн цаг (Кигали)',\n 'Africa/Kinshasa", "middle": "Freetown' => 'Гринвичийн цаг (Фритаун)',\n 'Africa/Gaborone' => 'Төв Африкийн цаг (Габороне)',\n 'Africa/Harare' => 'Төв Африкийн цаг (Хараре)',\n 'Africa/Johannesburg' => 'Өмнөд Африкийн стандарт цаг (Йоханнесб", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/mn.php", "language": "php", "file_size": 33967, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Ħin ta’ il-Burundi (Bujumbura)',\n 'Africa/Cairo' => 'Ħin ta’ l-Eġittu (Cairo)',\n 'Africa/Casablanca' => 'Ħin ta’ il-Marokk (Casablanca)',\n 'Africa/Ceuta' => 'Ħin Ċentrali Ewropew (Ceuta)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Ħin ta’ it-Tanzanija (Dar es Salaam)',\n 'Africa/Djibouti' => 'Ħin ta’ il-Djibouti (Djibouti)',\n 'Africa/Douala' => 'Ħin ta’ il-Kameru", "suffix": "rare' => 'Ħin ta’ iż-Żimbabwe (Harare)',\n 'Africa/Johannesburg' => 'Ħin ta’ l-Afrika t’Isfel (Johannesburg)',\n 'Africa/Juba' => 'Ħin ta’ is-Sudan t’Isfel (Juba)',\n 'Africa/Kampala' => 'Ħin ta’ l-Uganda (Kampala)',\n 'Africa/Khart", "middle": "n (Douala)',\n 'Africa/El_Aaiun' => 'Ħin ta’ is-Saħara tal-Punent (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Gaborone' => 'Ħin ta’ il-Botswana (Gaborone)',\n 'Africa/Ha", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/mt.php", "language": "php", "file_size": 29683, "cut_index": 1331, "middle_length": 229}} {"prefix": "frikaanse tijd (Bujumbura)',\n 'Africa/Cairo' => 'Oost-Europese tijd (Caïro)',\n 'Africa/Casablanca' => 'West-Europese tijd (Casablanca)',\n 'Africa/Ceuta' => 'Midden-Europese tijd (Ceuta)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Oost-Afrikaanse tijd (Dar es Salaam)',\n 'Africa/Djibouti' => 'Oost-Afrikaanse tijd (Djibouti)',\n 'Africa/Douala' => 'West-Afrikaanse tij", "suffix": " => 'Centraal-Afrikaanse tijd (Harare)',\n 'Africa/Johannesburg' => 'Zuid-Afrikaanse tijd (Johannesburg)',\n 'Africa/Juba' => 'Centraal-Afrikaanse tijd (Juba)',\n 'Africa/Kampala' => 'Oost-Afrikaanse tijd (Kampala)',\n 'Africa/Khart", "middle": "d (Douala)',\n 'Africa/El_Aaiun' => 'West-Europese tijd (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Gaborone' => 'Centraal-Afrikaanse tijd (Gaborone)',\n 'Africa/Harare'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/nl.php", "language": "php", "file_size": 26456, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n 'Africa/Cairo' => 'østeuropeisk tid (Kairo)',\n 'Africa/Casablanca' => 'vesteuropeisk tid (Casablanca)',\n 'Africa/Ceuta' => 'sentraleuropeisk tid (Ceuta)',\n 'Africa/Conakry' => 'Greenwich middeltid (Conakry)',\n 'Africa/Dakar' => 'Greenwich middeltid (Dakar)',\n 'Africa/Dar_es_Salaam' => 'østafrikansk tid (Dar-es-Salaam)',\n 'Africa/Djibouti' => 'østafrikansk tid (Djibouti)',\n 'Africa/Douala' => 'vestafrikansk tid (Douala)',\n 'Africa/El_Aaiun' => ", "suffix": "frica/Johannesburg' => 'sørafrikansk tid (Johannesburg)',\n 'Africa/Juba' => 'sentralafrikansk tid (Juba)',\n 'Africa/Kampala' => 'østafrikansk tid (Kampala)',\n 'Africa/Khartoum' => 'sentralafrikansk tid (Khartoum)',\n 'Africa/Kiga", "middle": "'vesteuropeisk tid (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich middeltid (Freetown)',\n 'Africa/Gaborone' => 'sentralafrikansk tid (Gaborone)',\n 'Africa/Harare' => 'sentralafrikansk tid (Harare)',\n 'A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/no.php", "language": "php", "file_size": 29419, "cut_index": 1331, "middle_length": 229}} {"prefix": "',\n 'Africa/Brazzaville' => 'Sa’aatii Afrikaa Dhihaa (Brazzaville)',\n 'Africa/Bujumbura' => 'Sa’aatii Afrikaa Gidduugaleessaa (Bujumbura)',\n 'Africa/Cairo' => 'Saaatii Awurooppaa Bahaa (Cairo)',\n 'Africa/Casablanca' => 'Sa’aatii Awurooppaa Dhihaa (Casablanca)',\n 'Africa/Ceuta' => 'Sa’aatii Awurooppaa Gidduugaleessaa (Ceuta)',\n 'Africa/Conakry' => 'Sa’aatii Giriinwiich Gidduugaleessaa (Conakry)',\n 'Africa/Dakar' => 'Sa’aatii Giriinwiich Gidduugaleessaa (Dakar)", "suffix": "n' => 'Sa’aatii Awurooppaa Dhihaa (El Aaiún)',\n 'Africa/Freetown' => 'Sa’aatii Giriinwiich Gidduugaleessaa (Freetown)',\n 'Africa/Gaborone' => 'Sa’aatii Afrikaa Gidduugaleessaa (Gaborone)',\n 'Africa/Harare' => 'Sa’aatii Afrikaa Gidduuga", "middle": "',\n 'Africa/Dar_es_Salaam' => 'Sa’aatii Baha Afrikaa (Dar es Salaam)',\n 'Africa/Djibouti' => 'Sa’aatii Baha Afrikaa (Djibouti)',\n 'Africa/Douala' => 'Sa’aatii Afrikaa Dhihaa (Douala)',\n 'Africa/El_Aaiu", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/om.php", "language": "php", "file_size": 30344, "cut_index": 1331, "middle_length": 229}} {"prefix": "वख (کَیرو)',\n 'Africa/Casablanca' => 'मगरीबी यूरपी वख (کؠسابلؠنکا)',\n 'Africa/Ceuta' => 'मरकज़ी यूरपी वख (کیوٗٹا)',\n 'Africa/Conakry' => 'ग्रीनविच ओसत वख (کوناکری)',\n 'Africa/Dakar' => 'ग्रीनविच ओसत वख (دَکار)',\n 'Africa/El_Aaiun' => 'मगरीबी यूरपी वख (ال عیون)',\n 'Africa/Freetown' => 'ग्रीनविच ओसत वख (فری ٹاوُن)',\n 'Africa/Lome' => 'ग्रीनविच ओसत वख (لوم)',\n 'Africa/Monrovia' => 'ग्रीनविच ओसत वख (مونرووِیا)',\n 'Africa/Nouakchott' => 'ग्रीनविच ओसत", "suffix": "ूरपी वख (ٹوٗنِس)',\n 'America/Anguilla' => 'अटलांटिक वख (اؠنگِولا)',\n 'America/Antigua' => 'अटलांटिक वख (اؠنٹِگُوا)',\n 'America/Aruba' => 'अटलांटिक वख (اَروٗبا)',\n 'America/Bahia_Banderas' => 'सेंट्रल वख (باہیا بندارس)',\n ", "middle": " वख (نوواکچھوت)',\n 'Africa/Ouagadougou' => 'ग्रीनविच ओसत वख (اوآگدوگو)',\n 'Africa/Sao_Tome' => 'ग्रीनविच ओसत वख (ساو ٹوم)',\n 'Africa/Tripoli' => 'मशरिकी यूरपी वख (ترپولی)',\n 'Africa/Tunis' => 'मरकज़ी य", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ks_Deva.php", "language": "php", "file_size": 16522, "cut_index": 921, "middle_length": 229}} {"prefix": "Zentralafrikanesch Zäit (Bujumbura)',\n 'Africa/Cairo' => 'Osteuropäesch Zäit (Kairo)',\n 'Africa/Casablanca' => 'Westeuropäesch Zäit (Casablanca)',\n 'Africa/Ceuta' => 'Mëtteleuropäesch Zäit (Ceuta)',\n 'Africa/Conakry' => 'Mëttler Greenwich-Zäit (Conakry)',\n 'Africa/Dakar' => 'Mëttler Greenwich-Zäit (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Ostafrikanesch Zäit (Dar es Salaam)',\n 'Africa/Djibouti' => 'Ostafrikanesch Zäit (Dschibuti)',\n 'Africa/Douala' => 'Wes", "suffix": " 'Africa/Harare' => 'Zentralafrikanesch Zäit (Harare)',\n 'Africa/Johannesburg' => 'Südafrikanesch Zäit (Johannesburg)',\n 'Africa/Juba' => 'Zentralafrikanesch Zäit (Juba)',\n 'Africa/Kampala' => 'Ostafrikanesch Zäit (Kampala)',\n ", "middle": "tafrikanesch Zäit (Douala)',\n 'Africa/El_Aaiun' => 'Westeuropäesch Zäit (El Aaiún)',\n 'Africa/Freetown' => 'Mëttler Greenwich-Zäit (Freetown)',\n 'Africa/Gaborone' => 'Zentralafrikanesch Zäit (Gaborone)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/lb.php", "language": "php", "file_size": 27661, "cut_index": 1331, "middle_length": 229}} {"prefix": "(Bužumbūra)',\n 'Africa/Cairo' => 'Rytų Europos laikas (Kairas)',\n 'Africa/Casablanca' => 'Vakarų Europos laikas (Kasablanka)',\n 'Africa/Ceuta' => 'Vidurio Europos laikas (Seuta)',\n 'Africa/Conakry' => 'Grinvičo laikas (Konakris)',\n 'Africa/Dakar' => 'Grinvičo laikas (Dakaras)',\n 'Africa/Dar_es_Salaam' => 'Rytų Afrikos laikas (Dar es Salamas)',\n 'Africa/Djibouti' => 'Rytų Afrikos laikas (Džibutis)',\n 'Africa/Douala' => 'Vakarų Afrikos laikas (Duala)',\n ", "suffix": "ės Afrikos laikas (Hararė)',\n 'Africa/Johannesburg' => 'Pietų Afrikos laikas (Johanesburgas)',\n 'Africa/Juba' => 'Centrinės Afrikos laikas (Džuba)',\n 'Africa/Kampala' => 'Rytų Afrikos laikas (Kampala)',\n 'Africa/Khartoum' => 'Ce", "middle": " 'Africa/El_Aaiun' => 'Vakarų Europos laikas (al Ajūnas)',\n 'Africa/Freetown' => 'Grinvičo laikas (Fritaunas)',\n 'Africa/Gaborone' => 'Centrinės Afrikos laikas (Gaboronas)',\n 'Africa/Harare' => 'Centrin", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/lt.php", "language": "php", "file_size": 29052, "cut_index": 1331, "middle_length": 229}} {"prefix": "ra' => 'Средноафриканско време (Буџумбура)',\n 'Africa/Cairo' => 'Источноевропско време (Каиро)',\n 'Africa/Casablanca' => 'Западноевропско време (Казабланка)',\n 'Africa/Ceuta' => 'Средноевропско време (Сеута)',\n 'Africa/Conakry' => 'Средно време по Гринич (Конакри)',\n 'Africa/Dakar' => 'Средно време по Гринич (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Источноафриканско време (Дар ес Салам)',\n 'Africa/Djibouti' => 'Источноафриканско време (Џибути)',\n 'Africa/", "suffix": "Габороне)',\n 'Africa/Harare' => 'Средноафриканско време (Хараре)',\n 'Africa/Johannesburg' => 'Време во Јужноафриканска Република (Јоханесбург)',\n 'Africa/Juba' => 'Средноафриканско време (Џуба)',\n 'Africa/Kampala' => 'Источноафр", "middle": "Douala' => 'Западноафриканско време (Дуала)',\n 'Africa/El_Aaiun' => 'Западноевропско време (Ел Ајун)',\n 'Africa/Freetown' => 'Средно време по Гринич (Фритаун)',\n 'Africa/Gaborone' => 'Средноафриканско време (", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/mk.php", "language": "php", "file_size": 39561, "cut_index": 1331, "middle_length": 229}} {"prefix": "bura)',\n 'Africa/Cairo' => 'Waktu Eropah Timur (Kaherah)',\n 'Africa/Casablanca' => 'Waktu Eropah Barat (Casablanca)',\n 'Africa/Ceuta' => 'Waktu Eropah Tengah (Ceuta)',\n 'Africa/Conakry' => 'Waktu Min Greenwich (Conakry)',\n 'Africa/Dakar' => 'Waktu Min Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Waktu Afrika Timur (Dar es Salaam)',\n 'Africa/Djibouti' => 'Waktu Afrika Timur (Djibouti)',\n 'Africa/Douala' => 'Waktu Afrika Barat (Douala)',\n 'Afri", "suffix": "e)',\n 'Africa/Johannesburg' => 'Waktu Piawai Afrika Selatan (Johannesburg)',\n 'Africa/Juba' => 'Waktu Afrika Tengah (Juba)',\n 'Africa/Kampala' => 'Waktu Afrika Timur (Kampala)',\n 'Africa/Khartoum' => 'Waktu Afrika Tengah (Kharto", "middle": "ca/El_Aaiun' => 'Waktu Eropah Barat (El Aaiún)',\n 'Africa/Freetown' => 'Waktu Min Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Waktu Afrika Tengah (Gaborone)',\n 'Africa/Harare' => 'Waktu Afrika Tengah (Harar", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ms.php", "language": "php", "file_size": 26125, "cut_index": 1331, "middle_length": 229}} {"prefix": "ӕстӕг (Bissau)',\n 'Africa/Cairo' => 'Скӕсӕн Европӕйаг рӕстӕг (Cairo)',\n 'Africa/Casablanca' => 'Ныгъуылӕн Европӕйаг рӕстӕг (Casablanca)',\n 'Africa/Ceuta' => 'Астӕуккаг Европӕйаг рӕстӕг (Ceuta)',\n 'Africa/Conakry' => 'Гринвичы рӕстӕмбис рӕстӕг (Conakry)',\n 'Africa/Dakar' => 'Гринвичы рӕстӕмбис рӕстӕг (Dakar)',\n 'Africa/El_Aaiun' => 'Ныгъуылӕн Европӕйаг рӕстӕг (El Aaiún)',\n 'Africa/Freetown' => 'Гринвичы рӕстӕмбис рӕстӕг (Freetown)',\n 'Africa/Lome' => 'Г", "suffix": "ӕстӕг (Ouagadougou)',\n 'Africa/Sao_Tome' => 'Гринвичы рӕстӕмбис рӕстӕг (São Tomé)',\n 'Africa/Tripoli' => 'Скӕсӕн Европӕйаг рӕстӕг (Tripoli)',\n 'Africa/Tunis' => 'Астӕуккаг Европӕйаг рӕстӕг (Tunis)',\n 'America/Adak' => 'АИШ рӕстӕ", "middle": "ринвичы рӕстӕмбис рӕстӕг (Lomé)',\n 'Africa/Monrovia' => 'Гринвичы рӕстӕмбис рӕстӕг (Monrovia)',\n 'Africa/Nouakchott' => 'Гринвичы рӕстӕмбис рӕстӕг (Nouakchott)',\n 'Africa/Ouagadougou' => 'Гринвичы рӕстӕмбис р", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/os.php", "language": "php", "file_size": 13414, "cut_index": 921, "middle_length": 229}} {"prefix": "środkowoafrykański (Bużumbura)',\n 'Africa/Cairo' => 'czas wschodnioeuropejski (Kair)',\n 'Africa/Casablanca' => 'czas zachodnioeuropejski (Casablanca)',\n 'Africa/Ceuta' => 'czas środkowoeuropejski (Ceuta)',\n 'Africa/Conakry' => 'czas uniwersalny (Konakry)',\n 'Africa/Dakar' => 'czas uniwersalny (Dakar)',\n 'Africa/Dar_es_Salaam' => 'czas wschodnioafrykański (Dar es Salaam)',\n 'Africa/Djibouti' => 'czas wschodnioafrykański (Dżibuti)',\n 'Africa/Douala' => '", "suffix": " 'Africa/Harare' => 'czas środkowoafrykański (Harare)',\n 'Africa/Johannesburg' => 'czas południowoafrykański (Johannesburg)',\n 'Africa/Juba' => 'czas środkowoafrykański (Dżuba)',\n 'Africa/Kampala' => 'czas wschodnioafrykański (K", "middle": "czas zachodnioafrykański (Duala)',\n 'Africa/El_Aaiun' => 'czas zachodnioeuropejski (Al-Ujun)',\n 'Africa/Freetown' => 'czas uniwersalny (Freetown)',\n 'Africa/Gaborone' => 'czas środkowoafrykański (Gaborone)',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/pl.php", "language": "php", "file_size": 27370, "cut_index": 1331, "middle_length": 229}} {"prefix": "tamarca',\n 'America/Argentina/Cordoba',\n 'America/Argentina/Jujuy',\n 'America/Argentina/La_Rioja',\n 'America/Argentina/Mendoza',\n 'America/Argentina/Rio_Gallegos',\n 'America/Argentina/Salta',\n 'America/Argentina/San_Juan',\n 'America/Argentina/San_Luis',\n 'America/Argentina/Tucuman',\n 'America/Argentina/Ushuaia',\n 'America/Aruba',\n 'America/Asuncion',\n 'America/Atikokan',\n 'America/Bahia',\n 'America/Bahia", "suffix": "res',\n 'America/Cambridge_Bay',\n 'America/Campo_Grande',\n 'America/Cancun',\n 'America/Caracas',\n 'America/Catamarca',\n 'America/Cayenne',\n 'America/Cayman',\n 'America/Chicago',\n 'America/Chihua", "middle": "_Banderas',\n 'America/Barbados',\n 'America/Belem',\n 'America/Belize',\n 'America/Blanc-Sablon',\n 'America/Boa_Vista',\n 'America/Bogota',\n 'America/Boise',\n 'America/Buenos_Ai", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/meta.php", "language": "php", "file_size": 48514, "cut_index": 2151, "middle_length": 229}} {"prefix": "ुम्बुरा)',\n 'Africa/Cairo' => 'पूर्वी युरोपेली समय (काइरो)',\n 'Africa/Casablanca' => 'पश्चिमी युरोपेली समय (कासाब्लान्का)',\n 'Africa/Ceuta' => 'केन्द्रीय युरोपेली समय (सेउटा)',\n 'Africa/Conakry' => 'ग्रीनविच मिन समय (कोनाक्री)',\n 'Africa/Dakar' => 'ग्रीनविच मिन समय (डाकार)',\n 'Africa/Dar_es_Salaam' => 'पूर्वी अफ्रिकी समय (डार एस् सलाम)',\n 'Africa/Djibouti' => 'पूर्वी अफ्रिकी समय (जिबौंटी)',\n 'Africa/Douala' => 'पश्चिम अफ्रिकी समय (डोउआला)',\n 'Af", "suffix": "हरारे)',\n 'Africa/Johannesburg' => 'दक्षिण अफ्रिकी समय (जोहानेसवर्ग)',\n 'Africa/Juba' => 'केन्द्रीय अफ्रिकी समय (जुबा)',\n 'Africa/Kampala' => 'पूर्वी अफ्रिकी समय (काम्पाला)',\n 'Africa/Khartoum' => 'केन्द्रीय अफ्रिकी समय (खार्टउम", "middle": "rica/El_Aaiun' => 'पश्चिमी युरोपेली समय (एल् आइयुन)',\n 'Africa/Freetown' => 'ग्रीनविच मिन समय (फ्रिटाउन)',\n 'Africa/Gaborone' => 'केन्द्रीय अफ्रिकी समय (गावोरोन)',\n 'Africa/Harare' => 'केन्द्रीय अफ्रिकी समय (", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ne.php", "language": "php", "file_size": 44631, "cut_index": 1331, "middle_length": 229}} {"prefix": " África Central (Bujumbura)',\n 'Africa/Cairo' => 'Hora da Europa Oriental (Cairo)',\n 'Africa/Casablanca' => 'Hora da Europa Ocidental (Casablanca)',\n 'Africa/Ceuta' => 'Hora da Europa Central (Ceuta)',\n 'Africa/Conakry' => 'Hora de Greenwich (Conacri)',\n 'Africa/Dakar' => 'Hora de Greenwich (Dacar)',\n 'Africa/Dar_es_Salaam' => 'Hora da África Oriental (Dar es Salaam)',\n 'Africa/Djibouti' => 'Hora da África Oriental (Jibuti)',\n 'Africa/Douala' => 'Hora ", "suffix": " 'Africa/Harare' => 'Hora da África Central (Harare)',\n 'Africa/Johannesburg' => 'Hora da África do Sul (Joanesburgo)',\n 'Africa/Juba' => 'Hora da África Central (Juba)',\n 'Africa/Kampala' => 'Hora da África Oriental (Campala)',\n ", "middle": "da África Ocidental (Douala)',\n 'Africa/El_Aaiun' => 'Hora da Europa Ocidental (El Aaiún)',\n 'Africa/Freetown' => 'Hora de Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Hora da África Central (Gaborone)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/pt_PT.php", "language": "php", "file_size": 28542, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n 'Africa/Cairo' => 'Ngonga ya Ezípite (Cairo)',\n 'Africa/Casablanca' => 'Ngonga ya Marokɛ (Casablanca)',\n 'Africa/Ceuta' => 'Ngonga ya Esipanye (Ceuta)',\n 'Africa/Conakry' => 'Ngonga ya Ginɛ (Conakry)',\n 'Africa/Dakar' => 'Ngonga ya Senegalɛ (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Ngonga ya Tanzani (Dar es Salaam)',\n 'Africa/Djibouti' => 'Ngonga ya Dzibuti (Djibouti)',\n 'Africa/Douala' => 'Ngonga ya Kamɛrune (Douala)',\n 'Africa/Freetown' => 'Ngon", "suffix": " 'Africa/Kampala' => 'Ngonga ya Uganda (Kampala)',\n 'Africa/Khartoum' => 'Ngonga ya Sudá (Khartoum)',\n 'Africa/Kigali' => 'Ngonga ya Rwanda (Kigali)',\n 'Africa/Kinshasa' => 'Ngonga ya Republíki ya Kongó Demokratíki (Kinshasa)',\n ", "middle": "ga ya Siera Leonɛ (Freetown)',\n 'Africa/Gaborone' => 'Ngonga ya Botswana (Gaborone)',\n 'Africa/Harare' => 'Ngonga ya Zimbabwe (Harare)',\n 'Africa/Johannesburg' => 'Ngonga ya Afríka ya Súdi (Johannesburg)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ln.php", "language": "php", "file_size": 26621, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Cairo' => 'पूर्व युरोपियन वेळ (कैरो)',\n 'Africa/Casablanca' => 'पश्चिम युरोपियन वेळ (कॅसाब्लान्का)',\n 'Africa/Ceuta' => 'मध्‍य युरोपियन वेळ (सेउटा)',\n 'Africa/Conakry' => 'ग्रीनिच प्रमाण वेळ (कोनाक्रि)',\n 'Africa/Dakar' => 'ग्रीनिच प्रमाण वेळ (डकर)',\n 'Africa/Dar_es_Salaam' => 'पूर्व आफ्रिका वेळ (दार ए सलाम)',\n 'Africa/Djibouti' => 'पूर्व आफ्रिका वेळ (जिबौटी)',\n 'Africa/Douala' => 'पश्चिम आफ्रिका वेळ (दोउआला)',\n 'Africa/El_Aaiun' => 'पश्", "suffix": "sburg' => 'दक्षिण आफ्रिका प्रमाण वेळ (जोहान्सबर्ग)',\n 'Africa/Juba' => 'मध्‍य आफ्रिका वेळ (जुबा)',\n 'Africa/Kampala' => 'पूर्व आफ्रिका वेळ (कंपाला)',\n 'Africa/Khartoum' => 'मध्‍य आफ्रिका वेळ (खार्टुम)',\n 'Africa/Kigali' => 'मध्‍", "middle": "चिम युरोपियन वेळ (एल ऐउन)',\n 'Africa/Freetown' => 'ग्रीनिच प्रमाण वेळ (फ्रीटाउन)',\n 'Africa/Gaborone' => 'मध्‍य आफ्रिका वेळ (गाबोरोन)',\n 'Africa/Harare' => 'मध्‍य आफ्रिका वेळ (हरारे)',\n 'Africa/Johanne", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/mr.php", "language": "php", "file_size": 43452, "cut_index": 1331, "middle_length": 229}} {"prefix": " => 'за центральноафриканським часом (Бужумбура)',\n 'Africa/Cairo' => 'за східноєвропейським часом (Каїр)',\n 'Africa/Casablanca' => 'за західноєвропейським часом (Касабланка)',\n 'Africa/Ceuta' => 'за центральноєвропейським часом (Сеута)',\n 'Africa/Conakry' => 'за Гринвічем (Конакрі)',\n 'Africa/Dakar' => 'за Гринвічем (Дакар)',\n 'Africa/Dar_es_Salaam' => 'за східноафриканським часом (Дар-ес-Салам)',\n 'Africa/Djibouti' => 'за східноафриканським часом (Джібуті)'", "suffix": "ентральноафриканським часом (Ґабороне)',\n 'Africa/Harare' => 'за центральноафриканським часом (Хараре)',\n 'Africa/Johannesburg' => 'за південноафриканським часом (Йоганнесбурґ)',\n 'Africa/Juba' => 'за центральноафриканським часом (Джуб", "middle": ",\n 'Africa/Douala' => 'за західноафриканським часом (Дуала)',\n 'Africa/El_Aaiun' => 'за західноєвропейським часом (Ель-Аюн)',\n 'Africa/Freetown' => 'за Гринвічем (Фрітаун)',\n 'Africa/Gaborone' => 'за ц", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/uk.php", "language": "php", "file_size": 44213, "cut_index": 1331, "middle_length": 229}} {"prefix": "алик писмо',\n 'Armi' => 'империјско арамејско писмо',\n 'Armn' => 'јерменско писмо',\n 'Avst' => 'авестанско писмо',\n 'Bali' => 'балијско писмо',\n 'Bamu' => 'бамум писмо',\n 'Bass' => 'баса вах писмо',\n 'Batk' => 'батак писмо',\n 'Beng' => 'бенгалско писмо',\n 'Bhks' => 'баиксуки писмо',\n 'Blis' => 'блисимболично писмо',\n 'Bopo' => 'бопомофо писмо',\n 'Brah' => 'браманско писмо',\n 'Brai' => 'брајево писмо',\n 'Bugi' =", "suffix": " 'Cher' => 'Чероки',\n 'Chrs' => 'чорамсианско писмо',\n 'Cirt' => 'цирт писмо',\n 'Copt' => 'коптичко писмо',\n 'Cpmn' => 'кипро-миноанско писмо',\n 'Cprt' => 'кипарско писмо',\n 'Cyrl' => 'ћирилица',\n 'Cyrs' =", "middle": "> 'бугинско писмо',\n 'Buhd' => 'бухидско писмо',\n 'Cakm' => 'чакманско писмо',\n 'Cans' => 'уједињени канадски абориџински силабици',\n 'Cari' => 'каријско писмо',\n 'Cham' => 'чамско писмо',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/bs_Cyrl.php", "language": "php", "file_size": 9752, "cut_index": 716, "middle_length": 229}} {"prefix": "=> 'Markaziy Afrika vaqti (Bujumbura)',\n 'Africa/Cairo' => 'Sharqiy Yevropa vaqti (Qohira)',\n 'Africa/Casablanca' => 'G‘arbiy Yevropa vaqti (Kasablanka)',\n 'Africa/Ceuta' => 'Markaziy Yevropa vaqti (Seuta)',\n 'Africa/Conakry' => 'Grinvich o‘rtacha vaqti (Konakri)',\n 'Africa/Dakar' => 'Grinvich o‘rtacha vaqti (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Sharqiy Afrika vaqti (Dor-us-Salom)',\n 'Africa/Djibouti' => 'Sharqiy Afrika vaqti (Jibuti)',\n 'Africa/Douala", "suffix": "',\n 'Africa/Harare' => 'Markaziy Afrika vaqti (Xarare)',\n 'Africa/Johannesburg' => 'Janubiy Afrika standart vaqti (Yoxannesburg)',\n 'Africa/Juba' => 'Markaziy Afrika vaqti (Juba)',\n 'Africa/Kampala' => 'Sharqiy Afrika vaqti (Kam", "middle": "' => 'Gʻarbiy Afrika vaqti (Duala)',\n 'Africa/El_Aaiun' => 'G‘arbiy Yevropa vaqti (Al-Ayun)',\n 'Africa/Freetown' => 'Grinvich o‘rtacha vaqti (Fritaun)',\n 'Africa/Gaborone' => 'Markaziy Afrika vaqti (Gaborone)", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/uz.php", "language": "php", "file_size": 27310, "cut_index": 1331, "middle_length": 229}} {"prefix": "iro' => 'Giờ Đông Âu (Cairo)',\n 'Africa/Casablanca' => 'Giờ Tây Âu (Casablanca)',\n 'Africa/Ceuta' => 'Giờ Trung Âu (Ceuta)',\n 'Africa/Conakry' => 'Giờ Trung bình Greenwich (Conakry)',\n 'Africa/Dakar' => 'Giờ Trung bình Greenwich (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Giờ Đông Phi (Dar es Salaam)',\n 'Africa/Djibouti' => 'Giờ Đông Phi (Djibouti)',\n 'Africa/Douala' => 'Giờ Tây Phi (Douala)',\n 'Africa/El_Aaiun' => 'Giờ Tây Âu (El Aaiún)',\n 'Africa/Fr", "suffix": " 'Africa/Juba' => 'Giờ Trung Phi (Juba)',\n 'Africa/Kampala' => 'Giờ Đông Phi (Kampala)',\n 'Africa/Khartoum' => 'Giờ Trung Phi (Khartoum)',\n 'Africa/Kigali' => 'Giờ Trung Phi (Kigali)',\n 'Africa/Kinshasa' => 'Giờ Tây Phi (", "middle": "eetown' => 'Giờ Trung bình Greenwich (Freetown)',\n 'Africa/Gaborone' => 'Giờ Trung Phi (Gaborone)',\n 'Africa/Harare' => 'Giờ Trung Phi (Harare)',\n 'Africa/Johannesburg' => 'Giờ Chuẩn Nam Phi (Johannesburg)',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/vi.php", "language": "php", "file_size": 27025, "cut_index": 1331, "middle_length": 229}} {"prefix": "Bujumbura' => 'Waxtu Afrique Centrale (Bujumbura)',\n 'Africa/Cairo' => 'EET (waxtu ëroop u penku) (Cairo)',\n 'Africa/Casablanca' => 'WET (waxtu ëroop u sowwu-jant (Casablanca)',\n 'Africa/Ceuta' => 'CTE (waxtu ëroop sàntaraal) (Ceuta)',\n 'Africa/Conakry' => 'GMT (waxtu Greenwich) (Conakry)',\n 'Africa/Dakar' => 'GMT (waxtu Greenwich) (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Waxtu Afrique sowwu jant (Dar es Salaam)',\n 'Africa/Djibouti' => 'Waxtu Afrique sowwu jant ", "suffix": "orone' => 'Waxtu Afrique Centrale (Gaborone)',\n 'Africa/Harare' => 'Waxtu Afrique Centrale (Harare)',\n 'Africa/Johannesburg' => 'Afrique du Sud (Johannesburg)',\n 'Africa/Juba' => 'Waxtu Afrique Centrale (Juba)',\n 'Africa/Kampala", "middle": "(Djibouti)',\n 'Africa/Douala' => 'Waxtu sowwu Afrique (Douala)',\n 'Africa/El_Aaiun' => 'WET (waxtu ëroop u sowwu-jant (El Aaiún)',\n 'Africa/Freetown' => 'GMT (waxtu Greenwich) (Freetown)',\n 'Africa/Gab", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/wo.php", "language": "php", "file_size": 27136, "cut_index": 1331, "middle_length": 229}} {"prefix": "Àkókò Àárín Afírikà (Bujumbura)',\n 'Africa/Cairo' => 'Àkókò Ìhà Ìlà Oòrùn Europe (Cairo)',\n 'Africa/Casablanca' => 'Àkókò Ìwọ Oòrùn Europe (Casablanca)',\n 'Africa/Ceuta' => 'Àkókò Àárin Europe (Ceuta)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Àkókò Ìlà-Oòrùn Afírikà (Dar es Salaam)',\n 'Africa/Djibouti' => 'Àkókò Ìlà-Oòrùn Afírikà (Djibouti)',\n 'Africa/Douala' =>", "suffix": "\n 'Africa/Harare' => 'Àkókò Àárín Afírikà (Harare)',\n 'Africa/Johannesburg' => 'South Africa Standard Time (Johannesburg)',\n 'Africa/Juba' => 'Àkókò Àárín Afírikà (Juba)',\n 'Africa/Kampala' => 'Àkókò Ìlà-Oòrùn Afírikà (Kampala)'", "middle": " 'Àkókò Ìwọ̀-Oòrùn Afírikà (Douala)',\n 'Africa/El_Aaiun' => 'Àkókò Ìwọ Oòrùn Europe (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Gaborone' => 'Àkókò Àárín Afírikà (Gaborone)',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/yo.php", "language": "php", "file_size": 30442, "cut_index": 1331, "middle_length": 229}} {"prefix": "s' => [\n 'Africa/Abidjan' => 'Gwzlinzveihci Byauhcunj Sizgenh (Abidjan)',\n 'Africa/Accra' => 'Gwzlinzveihci Byauhcunj Sizgenh (Accra)',\n 'Africa/Bamako' => 'Gwzlinzveihci Byauhcunj Sizgenh (Bamako)',\n 'Africa/Banjul' => 'Gwzlinzveihci Byauhcunj Sizgenh (Banjul)',\n 'Africa/Bissau' => 'Gwzlinzveihci Byauhcunj Sizgenh (Bissau)',\n 'Africa/Conakry' => 'Gwzlinzveihci Byauhcunj Sizgenh (Conakry)',\n 'Africa/Dakar' => 'Gwzlinzveihci Byauhcunj Sizgenh (Dakar)',\n ", "suffix": "akchott' => 'Gwzlinzveihci Byauhcunj Sizgenh (Nouakchott)',\n 'Africa/Ouagadougou' => 'Gwzlinzveihci Byauhcunj Sizgenh (Ouagadougou)',\n 'Africa/Sao_Tome' => 'Gwzlinzveihci Byauhcunj Sizgenh (São Tomé)',\n 'America/Danmarkshavn' => 'Gwzli", "middle": " 'Africa/Freetown' => 'Gwzlinzveihci Byauhcunj Sizgenh (Freetown)',\n 'Africa/Lome' => 'Gwzlinzveihci Byauhcunj Sizgenh (Lomé)',\n 'Africa/Monrovia' => 'Gwzlinzveihci Byauhcunj Sizgenh (Monrovia)',\n 'Africa/Nou", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/za.php", "language": "php", "file_size": 1868, "cut_index": 537, "middle_length": 229}} {"prefix": "',\n 'Africa/Dar_es_Salaam' => '东部非洲时间(达累斯萨拉姆)',\n 'Africa/Djibouti' => '东部非洲时间(吉布提)',\n 'Africa/Douala' => '西部非洲时间(杜阿拉)',\n 'Africa/El_Aaiun' => '西欧时间(阿尤恩)',\n 'Africa/Freetown' => '格林尼治标准时间(弗里敦)',\n 'Africa/Gaborone' => '中部非洲时间(哈博罗内)',\n 'Africa/Harare' => '中部非洲时间(哈拉雷)',\n 'Africa/Johannesburg' => '南非标准时间(约翰内斯堡)',\n 'Africa/Juba' => '中部非洲时间(朱巴)',\n 'Africa/Kampala' => '东部非洲时间(坎帕拉)',\n 'Africa/Khartoum' => '中部非洲时间(喀土穆)',\n 'Africa/Kiga", "suffix": "(罗安达)',\n 'Africa/Lubumbashi' => '中部非洲时间(卢本巴希)',\n 'Africa/Lusaka' => '中部非洲时间(卢萨卡)',\n 'Africa/Malabo' => '西部非洲时间(马拉博)',\n 'Africa/Maputo' => '中部非洲时间(马普托)',\n 'Africa/Maseru' => '南非标准时间(马塞卢)',\n 'Africa/Mbabane' => '南非标准", "middle": "li' => '中部非洲时间(基加利)',\n 'Africa/Kinshasa' => '西部非洲时间(金沙萨)',\n 'Africa/Lagos' => '西部非洲时间(拉各斯)',\n 'Africa/Libreville' => '西部非洲时间(利伯维尔)',\n 'Africa/Lome' => '格林尼治标准时间(洛美)',\n 'Africa/Luanda' => '西部非洲时间", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/zh_Hans_SG.php", "language": "php", "file_size": 28970, "cut_index": 1331, "middle_length": 229}} {"prefix": "' => '西非時間(金沙薩)',\n 'Africa/Lagos' => '西非時間(拉各斯)',\n 'Africa/Libreville' => '西非時間(利布維)',\n 'Africa/Luanda' => '西非時間(盧安達)',\n 'Africa/Lusaka' => '中非時間(盧薩卡)',\n 'Africa/Maseru' => '南非時間(馬塞魯)',\n 'Africa/Mbabane' => '南非時間(墨巴本)',\n 'Africa/Mogadishu' => '東非時間(摩加迪沙)',\n 'Africa/Nairobi' => '東非時間(內羅畢)',\n 'Africa/Nouakchott' => '格林威治標準時間(努瓦克肖特)',\n 'Africa/Windhoek' => '中非時間(溫特和克)',\n 'America/Adak' => '夏威夷-阿留申時間(埃達克)',\n 'America/Anchorage' ", "suffix": "ba' => '大西洋時間(阿魯巴)',\n 'America/Asuncion' => '巴拉圭時間(阿松森)',\n 'America/Bahia' => '巴西利亞時間(巴希雅)',\n 'America/Bahia_Banderas' => '北美中部時間(巴伊亞德班德拉斯)',\n 'America/Barbados' => '大西洋時間(巴巴多斯)',\n 'America/Belize' => '北美中部時間(伯利茲)',\n ", "middle": "=> '阿拉斯加時間(安克雷奇)',\n 'America/Anguilla' => '大西洋時間(安圭拉)',\n 'America/Antigua' => '大西洋時間(安提瓜)',\n 'America/Araguaina' => '巴西利亞時間(阿拉瓜伊納)',\n 'America/Argentina/La_Rioja' => '阿根廷時間(拉里奧哈)',\n 'America/Aru", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/zh_Hant_HK.php", "language": "php", "file_size": 14345, "cut_index": 921, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Adlam',\n 'Arab' => 'Arabies',\n 'Aran' => 'Nastaliq',\n 'Armn' => 'Armeens',\n 'Beng' => 'Bengaals',\n 'Bopo' => 'Bopomofo',\n 'Brai' => 'Braille',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Verenigde Kanadese Inheemse Lettergreepskrif',\n 'Cher' => 'Cherokee',\n 'Cyrl' => 'Cyrillies',\n 'Deva' => 'Devanagari',\n 'Ethi' => 'Etiopies',\n 'Geor' => 'Georgies',\n 'Grek' => 'Grieks',\n 'Gujr' => 'Goedja", "suffix": " 'Hira' => 'Hiragana',\n 'Hrkt' => 'Japannese lettergreepskrif',\n 'Jpan' => 'Japannees',\n 'Kana' => 'Katakana',\n 'Khmr' => 'Khmer',\n 'Knda' => 'Kannada',\n 'Kore' => 'Koreaans',\n 'Laoo' => 'Lao',\n '", "middle": "rati',\n 'Guru' => 'Gurmukhi',\n 'Hanb' => 'Han met Bopomofo',\n 'Hang' => 'Hangul',\n 'Hani' => 'Han',\n 'Hans' => 'Vereenvoudig',\n 'Hant' => 'Tradisioneel',\n 'Hebr' => 'Hebreeus',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/af.php", "language": "php", "file_size": 1729, "cut_index": 537, "middle_length": 229}} {"prefix": "'አድላም',\n 'Arab' => 'ዓረብኛ',\n 'Aran' => 'ናስታሊክ',\n 'Armn' => 'አርሜንያዊ',\n 'Beng' => 'ቤንጋሊ',\n 'Bopo' => 'ቦፖሞፎ',\n 'Brai' => 'ብሬይል',\n 'Buhd' => 'ቡሂድ',\n 'Cakm' => 'ቻክማ',\n 'Cans' => 'የተዋሐዱ የካናዳ አቦሪጂኖች ፊደላት',\n 'Cher' => 'ቼሮኪ',\n 'Copt' => 'ኮፕቲክ',\n 'Cprt' => 'ሲፕሪኦት',\n 'Cyrl' => 'ሲይሪልክ',\n 'Deva' => 'ደቫንጋሪ',\n 'Dsrt' => 'ዴዘረት',\n 'Ethi' => 'ኢትዮፒክ',\n 'Geor' => 'ጆርጂያኛ',\n 'Goth' => 'ጐቲክ',\n 'Grek'", "suffix": " 'Hebr' => 'እብራይስጥ',\n 'Hira' => 'ሂራጋና',\n 'Hrkt' => 'ጃፓንኛ ፊደላት',\n 'Jamo' => 'ጃሞ',\n 'Jpan' => 'ጃፓንኛ',\n 'Kana' => 'ካታካና',\n 'Khmr' => 'ክህመር',\n 'Knda' => 'ካናዳ',\n 'Kore' => 'ኮሪያኛ',\n 'Laoo' => 'ላኦ'", "middle": " => 'ግሪክ',\n 'Gujr' => 'ጉጃራቲ',\n 'Guru' => 'ጉርሙኪ',\n 'Hanb' => 'ሃን ከቦፖሞፎ ጋር',\n 'Hang' => 'ሐንጉል',\n 'Hani' => 'ሃን',\n 'Hano' => 'ሀኑኦ',\n 'Hans' => 'ቀለል ያለ',\n 'Hant' => 'ባህላዊ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/am.php", "language": "php", "file_size": 2718, "cut_index": 563, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'এডলাম',\n 'Arab' => 'আৰবী',\n 'Aran' => 'নাষ্টালিক',\n 'Armn' => 'আৰ্মেনীয়',\n 'Beng' => 'বাংলা',\n 'Bopo' => 'বোপোমোফো',\n 'Brai' => 'ব্ৰেইল',\n 'Cakm' => 'চাকমা',\n 'Cans' => 'ইউনিফাইড কানাডিয়ান এব’ৰিজিনেল ছিলেবিকছ',\n 'Cher' => 'চেৰ’কী',\n 'Cyrl' => 'চিৰিলিক',\n 'Deva' => 'দেৱনাগৰী',\n 'Ethi' => 'ইথিঅ’পিক',\n 'Geor' => 'জৰ্জিয়ান',\n 'Grek' => 'গ্ৰীক',\n 'Gujr' => 'গুজৰাটী',\n 'Gur", "suffix": "\n 'Hrkt' => 'জাপানী ছিলেবেৰিজ',\n 'Jamo' => 'জামো',\n 'Jpan' => 'জাপানী',\n 'Kana' => 'কাটাকানা',\n 'Khmr' => 'খমেৰ',\n 'Knda' => 'কানাড়া',\n 'Kore' => 'কোৰিয়ান',\n 'Laoo' => 'লাও',\n 'Latn' => 'লেটি", "middle": "u' => 'গুৰুমুখী',\n 'Hanb' => 'বোপোমোফোৰ সৈতে হান',\n 'Hang' => 'হেঙ্গুল',\n 'Hani' => 'হান',\n 'Hans' => 'সৰলীকৃত',\n 'Hant' => 'পৰম্পৰাগত',\n 'Hebr' => 'হিব্ৰু',\n 'Hira' => 'হিৰাগানা',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/as.php", "language": "php", "file_size": 2566, "cut_index": 537, "middle_length": 229}} {"prefix": "р арамей',\n 'Armn' => 'әрмән',\n 'Avst' => 'авестий',\n 'Bali' => 'бали',\n 'Bamu' => 'бамум',\n 'Bass' => 'басса Вах',\n 'Batk' => 'батак',\n 'Beng' => 'бенгал',\n 'Berf' => 'берия эрфе',\n 'Bhks' => 'бхаиксуки',\n 'Bopo' => 'бопомофо',\n 'Brah' => 'брахми',\n 'Brai' => 'брайль шрифты',\n 'Bugi' => 'буги',\n 'Buhd' => 'бухид',\n 'Cakm' => 'чакма',\n 'Cans' => 'берҙәм Канада аборигендарҙың ижектәре',\n 'Ca", "suffix": "'иҫке сиркәү славян кириллицаһы',\n 'Deva' => 'деванагари',\n 'Diak' => 'дивес акуру',\n 'Dogr' => 'догра',\n 'Dsrt' => 'дезерет',\n 'Dupl' => 'дюплойе ҡыҫҡа',\n 'Egyp' => 'мысыр иероглифтары',\n 'Elba' => 'эльбаса", "middle": "ri' => 'кари',\n 'Cham' => 'чам',\n 'Cher' => 'чероки',\n 'Chrs' => 'хәрәзм',\n 'Copt' => 'копт',\n 'Cpmn' => 'кипр-миной',\n 'Cprt' => 'кипр',\n 'Cyrl' => 'кириллица',\n 'Cyrs' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ba.php", "language": "php", "file_size": 7430, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'aранска',\n 'Armi' => 'Арамейска',\n 'Armn' => 'арменска',\n 'Avst' => 'Авестанска',\n 'Bali' => 'Балийски',\n 'Batk' => 'Батакска',\n 'Beng' => 'бенгалска',\n 'Blis' => 'Блис символи',\n 'Bopo' => 'бопомофо',\n 'Brah' => 'Брахми',\n 'Brai' => 'брайлова',\n 'Bugi' => 'Бугинска',\n 'Buhd' => 'Бухид',\n 'Cakm' => 'чакма',\n 'Cans' => 'унифицирани символи на канадски аборигени',\n 'Cari' => 'Карийска',\n 'Cham", "suffix": "'Egyd' => 'Египетско демотично писмо',\n 'Egyh' => 'Египетско йератично писмо',\n 'Egyp' => 'Египетски йероглифи',\n 'Ethi' => 'етиопска',\n 'Geok' => 'Грузинска хуцури',\n 'Geor' => 'грузинска',\n 'Glag' => 'Глаголическ", "middle": "' => 'Хамитска',\n 'Cher' => 'чероки',\n 'Cirt' => 'Кирт',\n 'Copt' => 'Коптска',\n 'Cprt' => 'Кипърска',\n 'Cyrl' => 'кирилица',\n 'Deva' => 'деванагари',\n 'Dsrt' => 'Дезерет',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/bg.php", "language": "php", "file_size": 5108, "cut_index": 614, "middle_length": 229}} {"prefix": "'adlam',\n 'Arab' => 'arabek',\n 'Armi' => 'arameek impalaerel',\n 'Armn' => 'armenianek',\n 'Avst' => 'avestek',\n 'Bali' => 'balinek',\n 'Bamu' => 'bamounek',\n 'Batk' => 'batak',\n 'Beng' => 'bengali',\n 'Bopo' => 'bopomofo',\n 'Brai' => 'Braille',\n 'Bugi' => 'bougiek',\n 'Cakm' => 'chakmaek',\n 'Cans' => 'silabennaoueg engenidik unvan Kanada',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Copt' => 'koptek',", "suffix": "k',\n 'Ethi' => 'etiopek',\n 'Geor' => 'jorjianek',\n 'Glag' => 'glagolitek',\n 'Goth' => 'gotek',\n 'Grek' => 'gresianek',\n 'Gujr' => 'gujarati',\n 'Guru' => 'gurmukhi',\n 'Hanb' => 'han gant bopomofo',\n ", "middle": "\n 'Cprt' => 'silabennaoueg kipriek',\n 'Cyrl' => 'kirillek',\n 'Cyrs' => 'kirillek henslavonek',\n 'Deva' => 'devanagari',\n 'Dupl' => 'berrskriverezh Duployé',\n 'Egyp' => 'hieroglifoù egipte", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/br.php", "language": "php", "file_size": 2848, "cut_index": 563, "middle_length": 229}} {"prefix": "o pismo',\n 'Aran' => 'nastalik pismo',\n 'Armi' => 'imperijsko aramejsko pismo',\n 'Armn' => 'armensko pismo',\n 'Avst' => 'avestansko pismo',\n 'Bali' => 'balijsko pismo',\n 'Bamu' => 'bamum pismo',\n 'Bass' => 'bassa vah pismo',\n 'Batk' => 'batak pismo',\n 'Beng' => 'bengalsko pismo',\n 'Bhks' => 'baiksuki pismo',\n 'Blis' => 'blisimbolično pismo',\n 'Bopo' => 'pismo bopomofo',\n 'Brah' => 'bramansko pismo',\n 'Brai' => ", "suffix": " 'Cham' => 'čamsko pismo',\n 'Cher' => 'čeroki pismo',\n 'Chrs' => 'korasmijansko pismo',\n 'Cirt' => 'cirt pismo',\n 'Copt' => 'koptičko pismo',\n 'Cpmn' => 'ciprominojsko pismo',\n 'Cprt' => 'kiparsko pismo',\n ", "middle": "'brajevo pismo',\n 'Bugi' => 'buginsko pismo',\n 'Buhd' => 'buhidsko pismo',\n 'Cakm' => 'čakmansko pismo',\n 'Cans' => 'ujedinjeni kanadski aboridžinski slogovi',\n 'Cari' => 'karijsko pismo',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/bs.php", "language": "php", "file_size": 7526, "cut_index": 716, "middle_length": 229}} {"prefix": " 'Africa/Cairo' => 'شەرقىي ياۋروپا ۋاقتى (Cairo)',\n 'Africa/Casablanca' => 'غەربىي ياۋروپا ۋاقتى (Casablanca)',\n 'Africa/Ceuta' => 'ئوتتۇرا ياۋروپا ۋاقتى (Ceuta)',\n 'Africa/Conakry' => 'گىرىنۋىچ ۋاقتى (Conakry)',\n 'Africa/Dakar' => 'گىرىنۋىچ ۋاقتى (Dakar)',\n 'Africa/Dar_es_Salaam' => 'شەرقىي ئافرىقا ۋاقتى (Dar es Salaam)',\n 'Africa/Djibouti' => 'شەرقىي ئافرىقا ۋاقتى (Djibouti)',\n 'Africa/Douala' => 'غەربىي ئافرىقا ۋاقتى (Douala)',\n 'Africa/El_Aai", "suffix": " 'Africa/Johannesburg' => 'جەنۇبىي ئافرىقا ئۆلچەملىك ۋاقتى (Johannesburg)',\n 'Africa/Juba' => 'ئوتتۇرا ئافرىقا ۋاقتى (Juba)',\n 'Africa/Kampala' => 'شەرقىي ئافرىقا ۋاقتى (Kampala)',\n 'Africa/Khartoum' => 'ئوتتۇرا ئافرىقا ۋاقتى (Khar", "middle": "un' => 'غەربىي ياۋروپا ۋاقتى (El Aaiún)',\n 'Africa/Freetown' => 'گىرىنۋىچ ۋاقتى (Freetown)',\n 'Africa/Gaborone' => 'ئوتتۇرا ئافرىقا ۋاقتى (Gaborone)',\n 'Africa/Harare' => 'ئوتتۇرا ئافرىقا ۋاقتى (Harare)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ug.php", "language": "php", "file_size": 34584, "cut_index": 1331, "middle_length": 229}} {"prefix": "> 'aran',\n 'Armi' => 'armi',\n 'Armn' => 'erməni',\n 'Avst' => 'avestan',\n 'Bali' => 'bali',\n 'Batk' => 'batak',\n 'Beng' => 'benqal',\n 'Blis' => 'blissymbols',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'brayl',\n 'Bugi' => 'buqin',\n 'Buhd' => 'buhid',\n 'Cakm' => 'çakma',\n 'Cans' => 'birləşmiş kanada yerli yazısı',\n 'Cari' => 'kariyan',\n 'Cham' => 'çam',\n 'Cher' => 'çiroki',\n ", "suffix": "emotik',\n 'Egyh' => 'misir hiyeratik',\n 'Egyp' => 'misir hiyeroqlif',\n 'Ethi' => 'efiop',\n 'Geok' => 'gürcü xutsuri',\n 'Geor' => 'gürcü',\n 'Glag' => 'qlaqolitik',\n 'Goth' => 'qotik',\n 'Grek' => 'yunan", "middle": " 'Cirt' => 'sirt',\n 'Copt' => 'koptik',\n 'Cprt' => 'kipr',\n 'Cyrl' => 'kiril',\n 'Cyrs' => 'qədimi kilsa kirili',\n 'Deva' => 'devanaqari',\n 'Dsrt' => 'deseret',\n 'Egyd' => 'misir d", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/az.php", "language": "php", "file_size": 3960, "cut_index": 614, "middle_length": 229}} {"prefix": "> 'নাস্তালিক',\n 'Armi' => 'আরমি',\n 'Armn' => 'আর্মেনীয়',\n 'Avst' => 'আভেসতান',\n 'Bali' => 'বালীয়',\n 'Batk' => 'বাটাক',\n 'Beng' => 'বাংলা',\n 'Blis' => 'ব্লিসপ্রতীক',\n 'Bopo' => 'বোপোমোফো',\n 'Brah' => 'ব্রাহ্মী',\n 'Brai' => 'ব্রেইল',\n 'Bugi' => 'বুগি',\n 'Buhd' => 'বুহিড',\n 'Cakm' => 'চাকমা',\n 'Cans' => 'সংযুক্ত কানাডিয়ান অ্যাবোরিজিনাল সিলেবিক্স',\n 'Cari' => 'ক্যারিয়ান',\n 'Cham' => 'চ্যাম',\n ", "suffix": " 'Dsrt' => 'দেসেরাত',\n 'Egyd' => 'মিশরীয় ডেমোটিক',\n 'Egyh' => 'মিশরীয় হায়রেটিক',\n 'Egyp' => 'মিশরীয় হায়ারোগ্লিপ',\n 'Ethi' => 'ইথিওপিয়',\n 'Geok' => 'জর্জিয় খুৎসুরি',\n 'Geor' => 'জর্জীয়',\n 'Glag' => ", "middle": " 'Cher' => 'চেরোকি',\n 'Cirt' => 'কির্ট',\n 'Copt' => 'কোপ্টিক',\n 'Cprt' => 'সাইপ্রোয়েট',\n 'Cyrl' => 'সিরিলিক',\n 'Cyrs' => 'প্রাচীন চার্চ স্লাভোনিক সিরিলিক',\n 'Deva' => 'দেবনাগরী',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/bn.php", "language": "php", "file_size": 6612, "cut_index": 614, "middle_length": 229}} {"prefix": "к Африка вакыты (Бөҗүмбура)',\n 'Africa/Cairo' => 'Көнчыгыш Европа вакыты (Каһирә)',\n 'Africa/Casablanca' => 'Көнбатыш Европа вакыты (Касабланка)',\n 'Africa/Ceuta' => 'Үзәк Европа вакыты (Сеута)',\n 'Africa/Conakry' => 'Гринвич уртача вакыты (Конакри)',\n 'Africa/Dakar' => 'Гринвич уртача вакыты (Дакар)',\n 'Africa/Dar_es_Salaam' => 'Көнчыгыш Африка вакыты (Дар-эс-Салам)',\n 'Africa/Djibouti' => 'Көнчыгыш Африка вакыты (Джибути)',\n 'Africa/Douala' => 'Көнба", "suffix": "frica/Harare' => 'Үзәк Африка вакыты (Хараре)',\n 'Africa/Johannesburg' => 'Көньяк Африка вакыты (Йоханнесбург)',\n 'Africa/Juba' => 'Үзәк Африка вакыты (Җуба)',\n 'Africa/Kampala' => 'Көнчыгыш Африка вакыты (Кампала)',\n 'Africa/Kh", "middle": "тыш Африка вакыты (Дуала)',\n 'Africa/El_Aaiun' => 'Көнбатыш Европа вакыты (Эль-Аюн)',\n 'Africa/Freetown' => 'Гринвич уртача вакыты (Фритаун)',\n 'Africa/Gaborone' => 'Үзәк Африка вакыты (Габороне)',\n 'A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/tt.php", "language": "php", "file_size": 38740, "cut_index": 1331, "middle_length": 229}} {"prefix": "' => 'مشرقی یورپ کا وقت (قاہرہ)',\n 'Africa/Casablanca' => 'مغربی یورپ کا وقت (کیسا بلانکا)',\n 'Africa/Ceuta' => 'وسط یورپ کا وقت (سیوٹا)',\n 'Africa/Conakry' => 'گرین وچ کا اصل وقت (کونکری)',\n 'Africa/Dakar' => 'گرین وچ کا اصل وقت (ڈکار)',\n 'Africa/Dar_es_Salaam' => 'مشرقی افریقہ ٹائم (دار السلام)',\n 'Africa/Djibouti' => 'مشرقی افریقہ ٹائم (جبوتی)',\n 'Africa/Douala' => 'مغربی افریقہ ٹائم (ڈوآلا)',\n 'Africa/El_Aaiun' => 'مغربی یورپ کا وقت (العیون)',\n ", "suffix": " (جوہانسبرگ)',\n 'Africa/Juba' => 'وسطی افریقہ ٹائم (جوبا)',\n 'Africa/Kampala' => 'مشرقی افریقہ ٹائم (کیمپالا)',\n 'Africa/Khartoum' => 'وسطی افریقہ ٹائم (خرطوم)',\n 'Africa/Kigali' => 'وسطی افریقہ ٹائم (کگالی)',\n 'Africa/Ki", "middle": " 'Africa/Freetown' => 'گرین وچ کا اصل وقت (فری ٹاؤن)',\n 'Africa/Gaborone' => 'وسطی افریقہ ٹائم (گبرون)',\n 'Africa/Harare' => 'وسطی افریقہ ٹائم (ہرارے)',\n 'Africa/Johannesburg' => 'جنوبی افریقہ سٹینڈرڈ ٹائم", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ur.php", "language": "php", "file_size": 33432, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Cairo' => 'Eastern European Time (Cairo)',\n 'Africa/Casablanca' => 'Western European Time (Casablanca)',\n 'Africa/Ceuta' => 'Central European Time (Ceuta)',\n 'Africa/Conakry' => 'Greenwich Mean Time (Conakry)',\n 'Africa/Dakar' => 'Greenwich Mean Time (Dakar)',\n 'Africa/Dar_es_Salaam' => 'East Africa Time (Dar es Salaam)',\n 'Africa/Djibouti' => 'East Africa Time (Djibouti)',\n 'Africa/Douala' => 'West Africa Time (Douala)',\n 'Africa/El_Aa", "suffix": " 'Africa/Johannesburg' => 'South Africa Standard Time (Johannesburg)',\n 'Africa/Juba' => 'Central Africa Time (Juba)',\n 'Africa/Kampala' => 'East Africa Time (Kampala)',\n 'Africa/Khartoum' => 'Central Africa Time (Khartoum)',\n ", "middle": "iun' => 'Western European Time (El Aaiún)',\n 'Africa/Freetown' => 'Greenwich Mean Time (Freetown)',\n 'Africa/Gaborone' => 'Central Africa Time (Gaborone)',\n 'Africa/Harare' => 'Central Africa Time (Harare)',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/xh.php", "language": "php", "file_size": 25965, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Africa/Dakar' => 'סענעגאַל (Dakar)',\n 'Africa/Dar_es_Salaam' => 'טאַנזאַניע (Dar es Salaam)',\n 'Africa/Djibouti' => 'דזשיבוטי (Djibouti)',\n 'Africa/Douala' => 'קאַמערון (Douala)',\n 'Africa/Freetown' => 'סיערע לעאנע (Freetown)',\n 'Africa/Gaborone' => 'באצוואַנע (Gaborone)',\n 'Africa/Harare' => 'זימבאַבווע (Harare)',\n 'Africa/Johannesburg' => 'דרום־אַפֿריקע (Johannesburg)',\n 'Africa/Juba' => 'דרום־סודאַן (Juba)',\n 'Africa/Kampala' => 'אוגאַנדע ", "suffix": "Libreville' => 'גאַבאן (Libreville)',\n 'Africa/Lome' => 'טאגא (Lomé)',\n 'Africa/Luanda' => 'אַנגאלע (Luanda)',\n 'Africa/Lubumbashi' => 'קאנגא־קינשאַזע (Lubumbashi)',\n 'Africa/Lusaka' => 'זאַמביע (Lusaka)',\n 'Africa/Malabo", "middle": "(Kampala)',\n 'Africa/Khartoum' => 'סודאַן (Khartoum)',\n 'Africa/Kigali' => 'רוואַנדע (Kigali)',\n 'Africa/Kinshasa' => 'קאנגא־קינשאַזע (Kinshasa)',\n 'Africa/Lagos' => 'ניגעריע (Lagos)',\n 'Africa/", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/yi.php", "language": "php", "file_size": 24571, "cut_index": 1331, "middle_length": 229}} {"prefix": "ica/Dar_es_Salaam' => '東非時間(沙蘭港)',\n 'Africa/Djibouti' => '東非時間(吉布地)',\n 'Africa/Douala' => '西非時間(杜阿拉)',\n 'Africa/El_Aaiun' => '西歐時間(阿尤恩)',\n 'Africa/Freetown' => '格林威治標準時間(自由城)',\n 'Africa/Gaborone' => '中非時間(嘉柏隆里)',\n 'Africa/Harare' => '中非時間(哈拉雷)',\n 'Africa/Johannesburg' => '南非標準時間(約翰尼斯堡)',\n 'Africa/Juba' => '中非時間(朱巴)',\n 'Africa/Kampala' => '東非時間(坎帕拉)',\n 'Africa/Khartoum' => '中非時間(喀土穆)',\n 'Africa/Kigali' => '中非時間(基加利)',\n 'Afric", "suffix": "盧本巴希)',\n 'Africa/Lusaka' => '中非時間(路沙卡)',\n 'Africa/Malabo' => '西非時間(馬拉博)',\n 'Africa/Maputo' => '中非時間(馬普托)',\n 'Africa/Maseru' => '南非標準時間(馬賽魯)',\n 'Africa/Mbabane' => '南非標準時間(墨巴本)',\n 'Africa/Mogadishu' => '東非時間(摩加迪休)',", "middle": "a/Kinshasa' => '西非時間(金夏沙)',\n 'Africa/Lagos' => '西非時間(拉哥斯)',\n 'Africa/Libreville' => '西非時間(自由市)',\n 'Africa/Lome' => '格林威治標準時間(洛美)',\n 'Africa/Luanda' => '西非時間(羅安達)',\n 'Africa/Lubumbashi' => '中非時間(", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/zh_Hant.php", "language": "php", "file_size": 28179, "cut_index": 1331, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Adlam kasa',\n 'Arab' => 'Arabeke',\n 'Aran' => 'Nastaliki kasa',\n 'Armn' => 'Amenia kasa',\n 'Beng' => 'Bangala kasa',\n 'Bopo' => 'Bopomofo kasa',\n 'Brai' => 'Anifrafoɔ kasa',\n 'Cakm' => 'Kyakma kasa',\n 'Cans' => 'Kanadafoɔ Kann Kasa a Wɔakeka Abom',\n 'Cher' => 'Kɛroki',\n 'Cyrl' => 'Kreleke',\n 'Deva' => 'Dɛvanagari kasa',\n 'Ethi' => 'Yitiopia kasa',\n 'Geor' => 'Dwɔɔgyia kasa',\n 'Grek' =", "suffix": "se',\n 'Hant' => 'Tete',\n 'Hebr' => 'Hibri kasa',\n 'Hira' => 'Hiragana kasa',\n 'Hrkt' => 'Gyapanfoɔ selabolo kasa',\n 'Jamo' => 'Gyamo kasa',\n 'Jpan' => 'Gyapanfoɔ kasa',\n 'Kana' => 'Katakana kasa',\n 'K", "middle": "> 'Griiki kasa',\n 'Gujr' => 'Gudwurati kasa',\n 'Guru' => 'Gurumuki kasa',\n 'Hanb' => 'Hanse a Bopomofo kasa ka ho',\n 'Hang' => 'Hangul kasa',\n 'Hani' => 'Han',\n 'Hans' => 'Kyaena Kasa Han", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ak.php", "language": "php", "file_size": 2010, "cut_index": 537, "middle_length": 229}} {"prefix": "Cairo' => 'Шарқий Европа вақти (Qohira)',\n 'Africa/Casablanca' => 'Ғарбий Европа вақти (Kasablanka)',\n 'Africa/Ceuta' => 'Марказий Европа вақти (Seuta)',\n 'Africa/Conakry' => 'Гринвич вақти (Konakri)',\n 'Africa/Dakar' => 'Гринвич вақти (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Шарқий Африка вақти (Dor-us-Salom)',\n 'Africa/Djibouti' => 'Шарқий Африка вақти (Jibuti)',\n 'Africa/Douala' => 'Ғарбий Африка вақти (Duala)',\n 'Africa/El_Aaiun' => 'Ғарбий Европа вақ", "suffix": " 'Жанубий Африка вақти (Yoxannesburg)',\n 'Africa/Juba' => 'Марказий Африка вақти (Juba)',\n 'Africa/Kampala' => 'Шарқий Африка вақти (Kampala)',\n 'Africa/Khartoum' => 'Марказий Африка вақти (Xartum)',\n 'Africa/Kigali' => 'Маркази", "middle": "ти (Al-Ayun)',\n 'Africa/Freetown' => 'Гринвич вақти (Fritaun)',\n 'Africa/Gaborone' => 'Марказий Африка вақти (Gaborone)',\n 'Africa/Harare' => 'Марказий Африка вақти (Xarare)',\n 'Africa/Johannesburg' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/uz_Cyrl.php", "language": "php", "file_size": 33155, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'નસ્તાલીક',\n 'Armi' => 'ઇમ્પિરિયલ આર્મનિક',\n 'Armn' => 'અર્મેનિયન',\n 'Avst' => 'અવેસ્તન',\n 'Bali' => 'બાલીનીઝ',\n 'Batk' => 'બટાક',\n 'Beng' => 'બંગાળી',\n 'Blis' => 'બ્લિસિમ્બોલ્સ',\n 'Bopo' => 'બોપોમોફો',\n 'Brah' => 'બ્રહ્મી',\n 'Brai' => 'બ્રેલ',\n 'Bugi' => 'બગિનીસ',\n 'Buhd' => 'બુહિદ',\n 'Cakm' => 'ચકમા',\n 'Cans' => 'યુનાઇટેડ કેનેડિયન એબોરિજનલ સિલેબિક્સ',\n 'Cari' => 'કરૈન',\n 'Cher' => 'ચેરોકી',\n ", "suffix": "gyd' => 'ઇજિપ્શિયન ડેમોટિક',\n 'Egyh' => 'ઇજિપ્શિયન હાઇરેટિક',\n 'Egyp' => 'ઇજિપ્શિયન હાઇરોગ્લિફ્સ',\n 'Ethi' => 'ઇથિયોપિક',\n 'Geok' => 'જ્યોર્જિઅન ખુતસુરી',\n 'Geor' => 'જ્યોર્જિઅન',\n 'Glag' => 'ગ્લેગોલિટિક',\n ", "middle": " 'Cirt' => 'સિર્થ',\n 'Copt' => 'કોપ્ટિક',\n 'Cprt' => 'સિપ્રાયટ',\n 'Cyrl' => 'સિરિલિક',\n 'Cyrs' => 'ઓલ્ડ ચર્ચ સ્લાવોનિક સિરિલિક',\n 'Deva' => 'દેવનાગરી',\n 'Dsrt' => 'ડેસરેટ',\n 'E", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/gu.php", "language": "php", "file_size": 6348, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Adlam',\n 'Arab' => 'Larabci',\n 'Aran' => 'Rubutun Nastaliq',\n 'Armn' => 'Armeniyanci',\n 'Beng' => 'Bangla',\n 'Bopo' => 'Bopomofo',\n 'Brai' => 'Rubutun Makafi',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Haɗaɗɗun Gaɓoɓin harshe na Asali na Kanada',\n 'Cher' => 'Cherokee',\n 'Cyrl' => 'Cyrillic',\n 'Deva' => 'Devanagari',\n 'Ethi' => 'Ethiopic',\n 'Geor' => 'Georgian',\n 'Grek' => 'Girkanci',\n '", "suffix": "rgajiya',\n 'Hebr' => 'Ibrananci',\n 'Hira' => 'Tsarin Rubutun Hiragana',\n 'Hrkt' => 'kalaman Jafananci',\n 'Jpan' => 'Jafanis',\n 'Kana' => 'Tsarin Rubutun Katakana',\n 'Khmr' => 'Yaren Khmer',\n 'Knda' => 'Yaren", "middle": "Gujr' => 'Gujarati',\n 'Guru' => 'Gurmukhi',\n 'Hanb' => 'Han tare da Bopomofo',\n 'Hang' => 'Yaren Hangul',\n 'Hani' => 'Mutanen Han na ƙasar Sin',\n 'Hans' => 'Sauƙaƙaƙƙe',\n 'Hant' => 'Na ga", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ha.php", "language": "php", "file_size": 1887, "cut_index": 537, "middle_length": 229}} {"prefix": "',\n 'Armn' => 'ארמני',\n 'Avst' => 'אווסטן',\n 'Bali' => 'באלינזי',\n 'Bamu' => 'במום',\n 'Bass' => 'באסה ואה',\n 'Batk' => 'בטק',\n 'Beng' => 'בנגלי',\n 'Bhks' => 'בהיקסוקי',\n 'Bopo' => 'בופומופו',\n 'Brah' => 'ברהמי',\n 'Brai' => 'ברייל',\n 'Bugi' => 'בוגינזי',\n 'Buhd' => 'בוהיד',\n 'Cakm' => 'צ׳אקמה',\n 'Cans' => 'כתב הברתי קנדי ילידי מאוחד',\n 'Cari' => 'קריאן',\n 'Cham' => 'צ׳אם',\n 'Cher' => ", "suffix": "אנגרי',\n 'Diak' => 'אותיות אי',\n 'Dogr' => 'דוגרה',\n 'Dsrt' => 'דסרט',\n 'Dupl' => 'קיצור של דובילרן',\n 'Egyp' => 'כתב חרטומים',\n 'Elba' => 'אלבסאן',\n 'Elym' => 'אלימי',\n 'Ethi' => 'אתיופי',\n 'G", "middle": "'צ׳רוקי',\n 'Chrs' => 'כורזמיאן',\n 'Copt' => 'קופטי',\n 'Cpmn' => 'ציפרו-מינואן',\n 'Cprt' => 'קפריסאי',\n 'Cyrl' => 'קירילי',\n 'Cyrs' => 'קירילי סלאבוני כנסייתי עתיק',\n 'Deva' => 'דוו", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/he.php", "language": "php", "file_size": 6561, "cut_index": 716, "middle_length": 229}} {"prefix": " 'नस्तालीक़',\n 'Armi' => 'इम्पिरियल आर्मेनिक',\n 'Armn' => 'आर्मेनियाई',\n 'Avst' => 'अवेस्तन',\n 'Bali' => 'बाली',\n 'Batk' => 'बटकी',\n 'Beng' => 'बांग्ला',\n 'Blis' => 'ब्लिसिम्बॉल्स',\n 'Bopo' => 'बोपोमोफ़ो',\n 'Brah' => 'ब्रह्मी',\n 'Brai' => 'ब्रेल',\n 'Bugi' => 'बगिनीस',\n 'Buhd' => 'बुहिद',\n 'Cakm' => 'चकमा',\n 'Cans' => 'यूनिफ़ाइड कैनेडियन एबोरिजनल सिलेबिक्स',\n 'Cari' => 'करैन',\n 'Cham' => 'चाम',\n ", "suffix": "Dsrt' => 'डेसरेट',\n 'Egyd' => 'इजिप्शियन डेमोटिक',\n 'Egyh' => 'इजिप्शियन हाइरेटिक',\n 'Egyp' => 'इजिप्शियन हाइरोग्लिफ्स',\n 'Ethi' => 'इथियोपियाई',\n 'Geok' => 'जॉर्जियन खुतसुरी',\n 'Geor' => 'जॉर्जियन',\n 'Glag'", "middle": " 'Cher' => 'चेरोकी',\n 'Cirt' => 'किर्थ',\n 'Copt' => 'कॉप्टिक',\n 'Cprt' => 'काइप्रायट',\n 'Cyrl' => 'सिरिलिक',\n 'Cyrs' => 'ओल्ड चर्च स्लावोनिक सिरिलिक',\n 'Deva' => 'देवनागरी',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/hi.php", "language": "php", "file_size": 6450, "cut_index": 614, "middle_length": 229}} {"prefix": "',\n 'Armn' => 'armensko pismo',\n 'Avst' => 'avestansko pismo',\n 'Bali' => 'balijsko pismo',\n 'Bamu' => 'bamum pismo',\n 'Bass' => 'bassa vah pismo',\n 'Batk' => 'batak pismo',\n 'Beng' => 'bengalsko pismo',\n 'Blis' => 'blissymbols',\n 'Bopo' => 'bopomofo pismo',\n 'Brah' => 'brahmi pismo',\n 'Brai' => 'brajica',\n 'Bugi' => 'buginsko pismo',\n 'Buhd' => 'buhid pismo',\n 'Cakm' => 'čakmansko pismo',\n 'Cans' => 'un", "suffix": "> 'cypriot pismo',\n 'Cyrl' => 'ćirilica',\n 'Cyrs' => 'staroslavenska crkvena čirilica',\n 'Deva' => 'devangari pismo',\n 'Dsrt' => 'deseret pismo',\n 'Egyd' => 'egipatsko narodno pismo',\n 'Egyh' => 'egipatsko hijerats", "middle": "ificirani kanadski aboriđinski slogovi',\n 'Cari' => 'karijsko pismo',\n 'Cham' => 'čamsko pismo',\n 'Cher' => 'čeroki pismo',\n 'Cirt' => 'cirth pismo',\n 'Copt' => 'koptsko pismo',\n 'Cprt' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/hr.php", "language": "php", "file_size": 6051, "cut_index": 716, "middle_length": 229}} {"prefix": " 'Aran' => 'Nasztalik',\n 'Armi' => 'Birodalmi arámi',\n 'Armn' => 'Örmény',\n 'Avst' => 'Avesztán',\n 'Bali' => 'Balinéz',\n 'Batk' => 'Batak',\n 'Beng' => 'Bengáli',\n 'Blis' => 'Bliss jelképrendszer',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brámi',\n 'Brai' => 'Vakírás',\n 'Bugi' => 'Buginéz',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Csakma',\n 'Cans' => 'Egyesített kanadai őslakos jelek',\n 'Cari' => 'Kari',\n 'Ch", "suffix": "anagári',\n 'Dsrt' => 'Deseret',\n 'Egyd' => 'Egyiptomi demotikus',\n 'Egyh' => 'Egyiptomi hieratikus',\n 'Egyp' => 'Egyiptomi hieroglifák',\n 'Ethi' => 'Etióp',\n 'Geok' => 'Grúz kucsuri',\n 'Geor' => 'Grúz',\n ", "middle": "am' => 'Csám',\n 'Cher' => 'Cseroki',\n 'Copt' => 'Kopt',\n 'Cpmn' => 'Ciprusi-minószi',\n 'Cprt' => 'Ciprusi',\n 'Cyrl' => 'Cirill',\n 'Cyrs' => 'Óegyházi szláv cirill',\n 'Deva' => 'Dev", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/hu.php", "language": "php", "file_size": 4460, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'ադլամ',\n 'Arab' => 'արաբական',\n 'Aran' => 'նաստալիք',\n 'Armn' => 'հայկական',\n 'Beng' => 'բենգալական',\n 'Bopo' => 'բոպոմոֆո',\n 'Brai' => 'Բրայլ',\n 'Cakm' => 'չակմա',\n 'Cans' => 'կանադական միասնական վանկագիր',\n 'Cher' => 'չերոկի',\n 'Cyrl' => 'կյուրեղագիր',\n 'Deva' => 'դեւանագարի',\n 'Ethi' => 'եթովպական',\n 'Geor' => 'վրացական',\n 'Grek' => 'հունական',\n 'Gujr' => 'գուջարաթի',\n ", "suffix": ",\n 'Hrkt' => 'ճապոնական վանկագիր',\n 'Jamo' => 'ջամո',\n 'Jpan' => 'ճապոնական',\n 'Kana' => 'կատականա',\n 'Khmr' => 'քմերական',\n 'Knda' => 'կաննադա',\n 'Kore' => 'կորեական',\n 'Laoo' => 'լաոսական',\n ", "middle": " 'Guru' => 'գուրմուխի',\n 'Hanb' => 'հանբ',\n 'Hang' => 'հանգըլ',\n 'Hani' => 'չինական',\n 'Hans' => 'պարզեցված',\n 'Hant' => 'ավանդական',\n 'Hebr' => 'եբրայական',\n 'Hira' => 'հիրագանա'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/hy.php", "language": "php", "file_size": 2244, "cut_index": 537, "middle_length": 229}} {"prefix": "q',\n 'Armi' => 'arameu imperial',\n 'Armn' => 'armeni',\n 'Avst' => 'avèstic',\n 'Bali' => 'balinès',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengalí',\n 'Bhks' => 'bhaiksuki',\n 'Blis' => 'símbols Bliss',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'braille',\n 'Bugi' => 'buginès',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'sil·labari abor", "suffix": " 'Cyrs' => 'ciríl·lic de l’antic eslau eclesiàstic',\n 'Deva' => 'devanagari',\n 'Dsrt' => 'deseret',\n 'Dupl' => 'taquigrafia Duployé',\n 'Egyd' => 'demòtic egipci',\n 'Egyh' => 'hieràtic egipci',\n 'Egyp' => 'jeroglíf", "middle": "igen canadenc unificat',\n 'Cari' => 'carià',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Cirt' => 'cirth',\n 'Copt' => 'copte',\n 'Cprt' => 'xipriota',\n 'Cyrl' => 'ciríl·lic',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ca.php", "language": "php", "file_size": 5528, "cut_index": 716, "middle_length": 229}} {"prefix": "ырулӑхӗ',\n 'Armi' => 'арамей ҫырулӑхӗ',\n 'Armn' => 'эрмен ҫырулӑхӗ',\n 'Avst' => 'авести ҫырулӑхӗ',\n 'Bali' => 'бали ҫырулӑхӗ',\n 'Bamu' => 'бамум ҫырулӑхӗ',\n 'Bass' => 'басса (вах) ҫырулӑхӗ',\n 'Batk' => 'батак ҫырулӑхӗ',\n 'Beng' => 'бенгал ҫырулӑхӗ',\n 'Berf' => 'бэри ҫырулӑхӗ',\n 'Bhks' => 'бхайксуки ҫырулӑхӗ',\n 'Bopo' => 'бопомофо ҫырулӑхӗ',\n 'Brah' => 'брахми ҫырулӑхӗ',\n 'Brai' => 'брайль ҫырулӑхӗ',\n 'Bugi' => ", "suffix": "оки ҫырулӑхӗ',\n 'Chrs' => 'хорезм ҫырулӑхӗ',\n 'Copt' => 'копт ҫырулӑхӗ',\n 'Cpmn' => 'кипр-миной ҫырулӑхӗ',\n 'Cprt' => 'кипр ҫырулӑхӗ',\n 'Cyrl' => 'кирилл ҫырулӑхӗ',\n 'Cyrs' => 'авалхи славян ҫырулӑхӗ',\n 'Dev", "middle": "'бугинизи ҫырулӑхӗ',\n 'Buhd' => 'бухид ҫырулӑхӗ',\n 'Cakm' => 'чакма ҫырулӑхӗ',\n 'Cans' => 'канада сыпӑклӑ ҫырулӑхӗ',\n 'Cari' => 'кари ҫырулӑхӗ',\n 'Cham' => 'чам ҫырулӑхӗ',\n 'Cher' => 'чер", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/cv.php", "language": "php", "file_size": 10323, "cut_index": 716, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Adlam',\n 'Arab' => 'Arabaidd',\n 'Aran' => 'Nastaliq',\n 'Armn' => 'Armenaidd',\n 'Beng' => 'Bangla',\n 'Bopo' => 'Bopomofo',\n 'Brai' => 'Braille',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Meysydd Llafur Cynfrodorol Unedig Canada',\n 'Cher' => 'Cherokee',\n 'Cyrl' => 'Cyrilig',\n 'Deva' => 'Devanagari',\n 'Ethi' => 'Ethiopig',\n 'Geor' => 'Georgaidd',\n 'Grek' => 'Groegaidd',\n 'Gujr' => 'Gwjarat", "suffix": "'Hira' => 'Hiragana',\n 'Hrkt' => 'Syllwyddor Japaneaidd',\n 'Jpan' => 'Japaneaidd',\n 'Kana' => 'Catacana',\n 'Khmr' => 'Chmeraidd',\n 'Knda' => 'Canaraidd',\n 'Kore' => 'Coreaidd',\n 'Laoo' => 'Laoaidd',\n ", "middle": "aidd',\n 'Guru' => 'Gwrmwci',\n 'Hanb' => 'Han gyda Bopomofo',\n 'Hang' => 'Hangul',\n 'Hani' => 'Han',\n 'Hans' => 'Symledig',\n 'Hant' => 'Traddodiadol',\n 'Hebr' => 'Hebreig',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/cy.php", "language": "php", "file_size": 1780, "cut_index": 537, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'Arab' => 'ཨེ་ར་བིཀ་ཡིག་གུ',\n 'Armn' => 'ཨར་མི་ནི་ཡཱན་ཡིག་གུ',\n 'Beng' => 'བངྒ་ལ་ཡིག་གུ',\n 'Bopo' => 'བོ་པོ་མོ་ཕཱོ་ཡིག་གུ',\n 'Brai' => 'འབུར་ཡིག',\n 'Cyrl' => 'སིརིལ་ལིཀ་ཡིག་གུ',\n 'Deva' => 'དེ་ཝ་ན་ག་རི་ཡིག་གུ',\n 'Ethi' => 'ཨི་ཐི་ཡོ་པིཀ྄་ཡིག་གུ',\n 'Geor' => 'ཇཽ་ཇི་ཡཱན་ཡིག་གུ',\n 'Grek' => 'གྲིཀ་ཡིག་གུ',\n 'Gujr' => 'གུ་ཇ་ར་ཏི་ཡིག་གུ',\n 'Guru' => 'གུ་རུ་མུ་ཁ་ཡིག་གུ',\n 'Hang' => 'ཧཱན་གུལ་ཡིག་གུ',\n ", "suffix": " 'Kana' => 'ཇ་པཱན་གྱི་ཀ་ཏ་ཀ་ན་ཡིག་གུ',\n 'Khmr' => 'ཁེ་མེར་ཡིག་གུ',\n 'Knda' => 'ཀ་ན་ཌ་ཡིག་གུ',\n 'Kore' => 'ཀོ་རི་ཡཱན་ཡིག་གུ',\n 'Laoo' => 'ལའོ་ཡིག་གུ',\n 'Latn' => 'ལེ་ཊིན་ཡིག་གུ',\n 'Mlym' => 'མ་ལ་ཡ་ལམ་ཡིག་གུ',\n ", "middle": " 'Hani' => 'རྒྱ་ནག་ཡིག་གུ',\n 'Hans' => 'རྒྱ་ཡིག་ ལུགས་གསར་',\n 'Hant' => 'ལུགས་རྙིང་ རྒྱ་ཡིག',\n 'Hebr' => 'ཧེ་བྲུ་ཡིག་གུ',\n 'Hira' => 'ཇ་པཱན་གྱི་ཧི་ར་ག་ན་ཡིག་གུ',\n 'Jpan' => 'ཇ་པཱན་ཡིག་གུ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/dz.php", "language": "php", "file_size": 2537, "cut_index": 524, "middle_length": 229}} {"prefix": "n' => 'Νασταλίκ',\n 'Armi' => 'Αυτοκρατορικό Αραμαϊκό',\n 'Armn' => 'Αρμενικό',\n 'Avst' => 'Αβεστάν',\n 'Bali' => 'Μπαλινίζ',\n 'Batk' => 'Μπατάκ',\n 'Beng' => 'Μπενγκάλι',\n 'Blis' => 'Σύμβολα Bliss',\n 'Bopo' => 'Μποπομόφο',\n 'Brah' => 'Μπραχμί',\n 'Brai' => 'Μπράιγ',\n 'Bugi' => 'Μπούγκις',\n 'Buhd' => 'Μπουχίντ',\n 'Cakm' => 'Τσάκμα',\n 'Cans' => 'Ενοποιημένοι Καναδεζικοί Συλλαβισμοί Ιθαγενών',\n 'Cari' => 'Καριά", "suffix": "ικό',\n 'Deva' => 'Ντεβαναγκάρι',\n 'Dsrt' => 'Ντεσερέ',\n 'Egyd' => 'Λαϊκό Αιγυπτιακό',\n 'Egyh' => 'Ιερατικό Αιγυπτιακό',\n 'Egyp' => 'Αιγυπτιακά Ιερογλυφικά',\n 'Ethi' => 'Αιθιοπικό',\n 'Geok' => 'Γεωργιανό Κχου", "middle": "ν',\n 'Cham' => 'Τσαμ',\n 'Cher' => 'Τσερόκι',\n 'Cirt' => 'Σερθ',\n 'Copt' => 'Κοπτικό',\n 'Cprt' => 'Κυπριακό',\n 'Cyrl' => 'Κυριλλικό',\n 'Cyrs' => 'Παλαιό Εκκλησιαστικό Σλαβικό Κυριλλ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/el.php", "language": "php", "file_size": 5684, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'adlam',\n 'Arab' => 'araba',\n 'Aran' => 'nastalika',\n 'Armn' => 'armena',\n 'Beng' => 'bengala',\n 'Bopo' => 'bopomofo',\n 'Brai' => 'brajlo',\n 'Cakm' => 'ĉakma',\n 'Cans' => 'unuecigita indiĝen-kanadana silabaro',\n 'Cher' => 'ĉeroka',\n 'Cyrl' => 'cirila',\n 'Deva' => 'devanagara',\n 'Ethi' => 'etiopa',\n 'Geor' => 'kartvela',\n 'Grek' => 'greka',\n 'Gujr' => 'guĝarata',\n 'Guru' =", "suffix": "',\n 'Hrkt' => 'japanaj silabaroj',\n 'Jamo' => 'jamo',\n 'Java' => 'java',\n 'Jpan' => 'japana',\n 'Kana' => 'strekaj kanaoj',\n 'Khmr' => 'kmera',\n 'Knda' => 'kanara',\n 'Kore' => 'korea',\n 'Laoo' =", "middle": "> 'gurmuka',\n 'Hanb' => 'ĉina kun bopomofo',\n 'Hang' => 'hangulo',\n 'Hani' => 'ĉina',\n 'Hans' => 'simpligita',\n 'Hant' => 'tradicia',\n 'Hebr' => 'hebrea',\n 'Hira' => 'rondaj kanaoj", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/eo.php", "language": "php", "file_size": 1720, "cut_index": 537, "middle_length": 229}} {"prefix": " 'Armi' => 'vanaaramea',\n 'Armn' => 'armeenia',\n 'Avst' => 'avesta',\n 'Bali' => 'bali',\n 'Bamu' => 'bamumi',\n 'Bass' => 'bassa',\n 'Batk' => 'bataki',\n 'Beng' => 'bengali',\n 'Berf' => 'zaghava',\n 'Bhks' => 'bhaiksuki',\n 'Blis' => 'Blissi sümbolid',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'braahmi',\n 'Brai' => 'punktkiri',\n 'Bugi' => 'bugi',\n 'Buhd' => 'buhidi',\n 'Cakm' => 'tšaakma',\n 'Cans'", "suffix": "pmn' => 'Küprose minose',\n 'Cprt' => 'Küprose silpkiri',\n 'Cyrl' => 'kirillitsa',\n 'Cyrs' => 'kürilliline kirikuslaavi',\n 'Deva' => 'devanaagari',\n 'Diak' => 'divehi',\n 'Dogr' => 'dogri',\n 'Dsrt' => 'deseret", "middle": " => 'Kanada põlisrahvaste ühtlustatud silpkiri',\n 'Cari' => 'kaaria',\n 'Cham' => 'tšaami',\n 'Cher' => 'tšerokii',\n 'Chrs' => 'horezmi',\n 'Cirt' => 'Cirthi',\n 'Copt' => 'kopti',\n 'C", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/et.php", "language": "php", "file_size": 6586, "cut_index": 716, "middle_length": 229}} {"prefix": "mi' => 'aramiera inperiarra',\n 'Armn' => 'armeniarra',\n 'Avst' => 'avestera',\n 'Bali' => 'baliera',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengalarra',\n 'Bhks' => 'bhaiksuki',\n 'Bopo' => 'bopomofoa',\n 'Brah' => 'brahmiera',\n 'Brai' => 'braillea',\n 'Bugi' => 'buginera',\n 'Buhd' => 'buhid',\n 'Cakm' => 'txakma',\n 'Cans' => 'Kanadako aborigenen silabario bateratua',\n ", "suffix": "> 'zirilikoa',\n 'Deva' => 'devanagaria',\n 'Diak' => 'dives akuru',\n 'Dogr' => 'dogrera',\n 'Dsrt' => 'deseret',\n 'Dupl' => 'duployiar takigrafia',\n 'Egyp' => 'egiptoar hieroglifikoak',\n 'Elba' => 'elbasanera'", "middle": " 'Cari' => 'kariera',\n 'Cham' => 'txamera',\n 'Cher' => 'txerokiarra',\n 'Chrs' => 'korasmiera',\n 'Copt' => 'koptikera',\n 'Cpmn' => 'zipro-minoera',\n 'Cprt' => 'ziprera',\n 'Cyrl' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/eu.php", "language": "php", "file_size": 5823, "cut_index": 716, "middle_length": 229}} {"prefix": "n',\n 'Aran' => 'nastaliq',\n 'Armi' => 'valtakunnanaramealainen',\n 'Armn' => 'armenialainen',\n 'Avst' => 'avestalainen',\n 'Bali' => 'balilainen',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa',\n 'Batk' => 'batakilainen',\n 'Beng' => 'bengalilainen',\n 'Berf' => 'beria-aakkosto',\n 'Bhks' => 'sanskritin bhaiksuki-aakkosto',\n 'Blis' => 'bliss-symbolit',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'braille-p", "suffix": "',\n 'Cham' => 'tšamilainen',\n 'Cher' => 'cherokeelainen',\n 'Chrs' => 'horemzi',\n 'Cirt' => 'cirth',\n 'Copt' => 'koptilainen',\n 'Cpmn' => 'kypro-minolainen',\n 'Cprt' => 'muinaiskyproslainen',\n 'Cyrl' =", "middle": "istekirjoitus',\n 'Bugi' => 'bugilainen',\n 'Buhd' => 'buhidilainen',\n 'Cakm' => 'chakmalainen',\n 'Cans' => 'kanadalaisten alkuperäiskansojen yhtenäistetty tavukirjoitus',\n 'Cari' => 'kaarialainen", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/fi.php", "language": "php", "file_size": 7451, "cut_index": 716, "middle_length": 229}} {"prefix": "=> 'nastaliq',\n 'Armi' => 'araméen impérial',\n 'Armn' => 'arménien',\n 'Avst' => 'avestique',\n 'Bali' => 'balinais',\n 'Batk' => 'batak',\n 'Beng' => 'bengali',\n 'Blis' => 'symboles Bliss',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brâhmî',\n 'Brai' => 'braille',\n 'Bugi' => 'bouguis',\n 'Buhd' => 'bouhide',\n 'Cakm' => 'chakma',\n 'Cans' => 'syllabaire autochtone canadien unifié',\n 'Cari' => 'carien',\n 'Cham' =", "suffix": "Deva' => 'dévanagari',\n 'Dsrt' => 'déséret',\n 'Egyd' => 'démotique égyptien',\n 'Egyh' => 'hiératique égyptien',\n 'Egyp' => 'hiéroglyphes égyptiens',\n 'Elym' => 'élymaïque',\n 'Ethi' => 'éthiopique',\n 'Geok' =", "middle": "> 'cham',\n 'Cher' => 'cherokee',\n 'Cirt' => 'cirth',\n 'Copt' => 'copte',\n 'Cprt' => 'syllabaire chypriote',\n 'Cyrl' => 'cyrillique',\n 'Cyrs' => 'cyrillique (variante slavonne)',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/fr.php", "language": "php", "file_size": 4621, "cut_index": 614, "middle_length": 229}} {"prefix": " 'Arab' => 'Arabach',\n 'Aran' => 'Nastaliq',\n 'Armi' => 'Aramach Impiriúil',\n 'Armn' => 'Airméanach',\n 'Avst' => 'Aivéisteach',\n 'Bali' => 'Bailíoch',\n 'Bamu' => 'Bamum',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batacach',\n 'Beng' => 'Beangálach',\n 'Bhks' => 'Bhaiksuki',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brámais',\n 'Brai' => 'Braille',\n 'Bugi' => 'Buigineach',\n 'Buhd' => 'Buthaideach',\n 'Cakm' => ", "suffix": "ch',\n 'Deva' => 'Déiveanágrach',\n 'Dsrt' => 'Deseret',\n 'Dupl' => 'Gearrscríobh Duployan',\n 'Egyd' => 'Éigipteach coiteann',\n 'Egyh' => 'Éigipteach cliarúil',\n 'Egyp' => 'Iairiglifí Éigipteacha',\n 'Elba' => ", "middle": "'Seácmais',\n 'Cans' => 'Siollach Bundúchasach Ceanadach Aontaithe',\n 'Cari' => 'Cló Cairiach',\n 'Cher' => 'Seiricíoch',\n 'Copt' => 'Coptach',\n 'Cprt' => 'Cipireach',\n 'Cyrl' => 'Coirealla", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ga.php", "language": "php", "file_size": 5111, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'adlam',\n 'Arab' => 'árabe',\n 'Aran' => 'nastaliq',\n 'Armn' => 'armenio',\n 'Beng' => 'bengalí',\n 'Bopo' => 'bopomofo',\n 'Brai' => 'braille',\n 'Cakm' => 'chakma',\n 'Cans' => 'silabario aborixe canadense unificado',\n 'Cher' => 'cherokee',\n 'Cyrl' => 'cirílico',\n 'Deva' => 'devanágari',\n 'Ethi' => 'etíope',\n 'Geor' => 'xeorxiano',\n 'Grek' => 'grego',\n 'Gujr' => 'guxarati',\n ", "suffix": "ragana',\n 'Hrkt' => 'silabarios xaponeses',\n 'Jamo' => 'jamo',\n 'Jpan' => 'xaponés',\n 'Kana' => 'katakana',\n 'Khmr' => 'khmer',\n 'Knda' => 'kannará',\n 'Kore' => 'coreano',\n 'Laoo' => 'laosiano',\n ", "middle": "'Guru' => 'gurmukhi',\n 'Hanb' => 'han con bopomofo',\n 'Hang' => 'hangul',\n 'Hani' => 'han',\n 'Hans' => 'simplificado',\n 'Hant' => 'tradicional',\n 'Hebr' => 'hebreo',\n 'Hira' => 'hi", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/gl.php", "language": "php", "file_size": 1775, "cut_index": 537, "middle_length": 229}} {"prefix": "kókò Ìwɔ Oòrùn Europe (Casablanca)',\n 'Africa/Douala' => 'Àkókò Ìwɔ̀-Oòrùn Afírikà (Douala)',\n 'Africa/El_Aaiun' => 'Àkókò Ìwɔ Oòrùn Europe (El Aaiún)',\n 'Africa/Kinshasa' => 'Àkókò Ìwɔ̀-Oòrùn Afírikà (Kinshasa)',\n 'Africa/Lagos' => 'Àkókò Ìwɔ̀-Oòrùn Afírikà (Lagos)',\n 'Africa/Libreville' => 'Àkókò Ìwɔ̀-Oòrùn Afírikà (Libreville)',\n 'Africa/Luanda' => 'Àkókò Ìwɔ̀-Oòrùn Afírikà (Luanda)',\n 'Africa/Malabo' => 'Àkókò Ìwɔ̀-Oòrùn Afírikà (Malabo)',\n 'Africa", "suffix": "lásíkà (ìlú Ankɔ́réèjì)',\n 'America/Argentina/La_Rioja' => 'Aago Ajɛntìnà (La Rioja)',\n 'America/Argentina/Rio_Gallegos' => 'Aago Ajɛntìnà (Río Gallegos)',\n 'America/Argentina/Salta' => 'Aago Ajɛntìnà (Salta)',\n 'America/Argenti", "middle": "/Ndjamena' => 'Àkókò Ìwɔ̀-Oòrùn Afírikà (N’Djamena)',\n 'Africa/Niamey' => 'Àkókò Ìwɔ̀-Oòrùn Afírikà (Niamey)',\n 'Africa/Porto-Novo' => 'Àkókò Ìwɔ̀-Oòrùn Afírikà (Porto-Novo)',\n 'America/Anchorage' => 'Àkókò A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/yo_BJ.php", "language": "php", "file_size": 7968, "cut_index": 716, "middle_length": 229}} {"prefix": "frica (i-Blantyre)',\n 'Africa/Brazzaville' => 'Isikhathi saseNtshonalanga Afrika (i-Brazzaville)',\n 'Africa/Bujumbura' => 'Isikhathi sase-Central Africa (i-Bujumbura)',\n 'Africa/Cairo' => 'Isikhathi sase-Eastern Europe (i-Cairo)',\n 'Africa/Casablanca' => 'Isikhathi sase-Western Europe (i-Casablanca)',\n 'Africa/Ceuta' => 'Isikhathi sase-Central Europe (i-Ceuta)',\n 'Africa/Conakry' => 'Isikhathi sase-Greenwich Mean (i-Conakry)',\n 'Africa/Dakar' => 'Isikhathi sa", "suffix": "hi saseNtshonalanga Afrika (i-Douala)',\n 'Africa/El_Aaiun' => 'Isikhathi sase-Western Europe (i-El Aaiun)',\n 'Africa/Freetown' => 'Isikhathi sase-Greenwich Mean (i-Freetown)',\n 'Africa/Gaborone' => 'Isikhathi sase-Central Africa (i-Gab", "middle": "se-Greenwich Mean (i-Dakar)',\n 'Africa/Dar_es_Salaam' => 'Isikhathi saseMpumalanga Afrika (i-Dar es Salaam)',\n 'Africa/Djibouti' => 'Isikhathi saseMpumalanga Afrika (i-Djibouti)',\n 'Africa/Douala' => 'Isikhat", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/zu.php", "language": "php", "file_size": 32480, "cut_index": 1331, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'адлам',\n 'Arab' => 'арабскае',\n 'Aran' => 'насталік',\n 'Armn' => 'армянскае',\n 'Beng' => 'бенгальскае',\n 'Bopo' => 'бапамофа',\n 'Brai' => 'шрыфт Брайля',\n 'Cakm' => 'чакма',\n 'Cans' => 'складавае пісьмо канадскіх абарыгенаў',\n 'Cher' => 'чэрокі',\n 'Cyrl' => 'кірыліца',\n 'Deva' => 'дэванагары',\n 'Ethi' => 'эфіопскае',\n 'Geor' => 'грузінскае',\n 'Grek' => 'грэчаскае',\n 'Gujr' => '", "suffix": "r' => 'яўрэйскае',\n 'Hira' => 'хірагана',\n 'Hrkt' => 'японскія складовыя пісьмы',\n 'Jamo' => 'чамо',\n 'Jpan' => 'японскае',\n 'Kana' => 'катакана',\n 'Khmr' => 'кхмерскае',\n 'Knda' => 'канада',\n 'Kore' ", "middle": "гуджараці',\n 'Guru' => 'гурмукхі',\n 'Hanb' => 'хан з бапамофа',\n 'Hang' => 'хангыль',\n 'Hani' => 'хан',\n 'Hans' => 'спрошчанае кітайскае',\n 'Hant' => 'традыцыйнае кітайскае',\n 'Heb", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/be.php", "language": "php", "file_size": 2351, "cut_index": 537, "middle_length": 229}} {"prefix": " 'Africa/Bamako' => 'گرین وچ مین ٹائم (بماکو)',\n 'Africa/Banjul' => 'گرین وچ مین ٹائم (بنجول)',\n 'Africa/Bissau' => 'گرین وچ مین ٹائم (بِساؤ)',\n 'Africa/Ceuta' => 'وسطی یورپ کا وقت (سیوٹا)',\n 'Africa/Conakry' => 'گرین وچ مین ٹائم (کونکری)',\n 'Africa/Dakar' => 'گرین وچ مین ٹائم (ڈکار)',\n 'Africa/Freetown' => 'گرین وچ مین ٹائم (فری ٹاؤن)',\n 'Africa/Lome' => 'گرین وچ مین ٹائم (لوم)',\n 'Africa/Monrovia' => 'گرین وچ مین ٹائم (مونروویا)',\n 'Afric", "suffix": " 'America/Asuncion' => 'پیراگوئے ٹائم (اسنسیئن)',\n 'America/Boa_Vista' => 'ایمیزون ٹائم (بوآ وسٹا)',\n 'America/Cambridge_Bay' => 'ماؤنٹین ٹائم (کیمبرج بے)',\n 'America/Campo_Grande' => 'ایمیزون ٹائم (کیمپو گرینڈ)',\n 'America/Ca", "middle": "a/Nouakchott' => 'گرین وچ مین ٹائم (نواکشوط)',\n 'Africa/Ouagadougou' => 'گرین وچ مین ٹائم (اؤگاڈؤگوو)',\n 'Africa/Sao_Tome' => 'گرین وچ مین ٹائم (ساؤ ٹوم)',\n 'Africa/Tunis' => 'وسطی یورپ کا وقت (تیونس)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/ur_IN.php", "language": "php", "file_size": 8798, "cut_index": 716, "middle_length": 229}} {"prefix": "aramejské (imperiální)',\n 'Armn' => 'arménské',\n 'Avst' => 'avestánské',\n 'Bali' => 'balijské',\n 'Bamu' => 'bamumské',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batacké',\n 'Beng' => 'bengálské',\n 'Blis' => 'Blissovo písmo',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'bráhmí',\n 'Brai' => 'Braillovo písmo',\n 'Bugi' => 'buginské',\n 'Buhd' => 'buhidské',\n 'Cakm' => 'čakma',\n 'Cans' => 'slabičné písmo kanadských domorodců',", "suffix": "taroslověnská',\n 'Deva' => 'dévanágarí',\n 'Dsrt' => 'deseret',\n 'Dupl' => 'Duployého těsnopis',\n 'Egyd' => 'egyptské démotické',\n 'Egyh' => 'egyptské hieratické',\n 'Egyp' => 'egyptské hieroglyfy',\n 'Elba' =>", "middle": "\n 'Cari' => 'karijské',\n 'Cham' => 'čam',\n 'Cher' => 'čerokí',\n 'Cirt' => 'kirt',\n 'Copt' => 'koptské',\n 'Cprt' => 'kyperské',\n 'Cyrl' => 'cyrilice',\n 'Cyrs' => 'cyrilce - s", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/cs.php", "language": "php", "file_size": 5784, "cut_index": 716, "middle_length": 229}} {"prefix": "=> 'Armenisch',\n 'Avst' => 'Avestisch',\n 'Bali' => 'Balinesisch',\n 'Bamu' => 'Bamun',\n 'Bass' => 'Bassa',\n 'Batk' => 'Battakisch',\n 'Beng' => 'Bengalisch',\n 'Blis' => 'Bliss-Symbole',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'Buginesisch',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Kanadische Aborigine-Silbenschrift',\n 'Cari' => 'Karisch',\n 'Cher' => '", "suffix": "et',\n 'Dupl' => 'Duployanisch',\n 'Egyd' => 'Ägyptisch - Demotisch',\n 'Egyh' => 'Ägyptisch - Hieratisch',\n 'Egyp' => 'Ägyptische Hieroglyphen',\n 'Elba' => 'Elbasanisch',\n 'Ethi' => 'Äthiopisch',\n 'Geok' => 'K", "middle": "Cherokee',\n 'Cirt' => 'Cirth',\n 'Copt' => 'Koptisch',\n 'Cprt' => 'Zypriotisch',\n 'Cyrl' => 'Kyrillisch',\n 'Cyrs' => 'Altkirchenslawisch',\n 'Deva' => 'Devanagari',\n 'Dsrt' => 'Deser", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/de.php", "language": "php", "file_size": 5375, "cut_index": 716, "middle_length": 229}} {"prefix": "aliq',\n 'Armi' => 'Imperial Aramaic',\n 'Armn' => 'Armenian',\n 'Avst' => 'Avestan',\n 'Bali' => 'Balinese',\n 'Bamu' => 'Bamum',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Bangla',\n 'Berf' => 'Beria Erfe',\n 'Bhks' => 'Bhaiksuki',\n 'Blis' => 'Blissymbols',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'Buginese',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma", "suffix": "c',\n 'Cpmn' => 'Cypro-Minoan',\n 'Cprt' => 'Cypriot',\n 'Cyrl' => 'Cyrillic',\n 'Cyrs' => 'Old Church Slavonic Cyrillic',\n 'Deva' => 'Devanagari',\n 'Diak' => 'Dives Akuru',\n 'Dogr' => 'Dogra',\n 'Dsrt' =>", "middle": "',\n 'Cans' => 'Unified Canadian Aboriginal Syllabics',\n 'Cari' => 'Carian',\n 'Cham' => 'Cham',\n 'Cher' => 'Cherokee',\n 'Chrs' => 'Chorasmian',\n 'Cirt' => 'Cirth',\n 'Copt' => 'Copti", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/en.php", "language": "php", "file_size": 6620, "cut_index": 716, "middle_length": 229}} {"prefix": " 'Arab' => 'عربی',\n 'Aran' => 'آران',\n 'Armi' => 'آرامی هخامنشی',\n 'Armn' => 'ارمنی',\n 'Avst' => 'اوستایی',\n 'Bali' => 'بالیایی',\n 'Batk' => 'باتاکی',\n 'Beng' => 'بنگالی',\n 'Blis' => 'نمادهای بلیس',\n 'Bopo' => 'بوپوموفو',\n 'Brah' => 'براهمی',\n 'Brai' => 'بریل',\n 'Bugi' => 'بوگیایی',\n 'Buhd' => 'بوهید',\n 'Cakm' => 'چاکمایی',\n 'Cans' => 'زبان‌های سیلابی بومی‌های متحد کانادایی',\n 'Cari' => 'کاری',", "suffix": "' => 'کاهنی مصری',\n 'Egyp' => 'هیروگلیف مصری',\n 'Ethi' => 'اتیوپیایی',\n 'Geok' => 'گرجی خوتسوری',\n 'Geor' => 'گرجی',\n 'Glag' => 'گلاگولیتی',\n 'Goth' => 'گوتی',\n 'Grek' => 'یونانی',\n 'Gujr' => 'گجراتی'", "middle": "\n 'Cham' => 'چمی',\n 'Cher' => 'چروکی',\n 'Cirt' => 'کرت',\n 'Copt' => 'قبطی',\n 'Cprt' => 'قبرسی',\n 'Cyrl' => 'سیریلی',\n 'Deva' => 'دوناگری',\n 'Dsrt' => 'دیسرتی',\n 'Egyh", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/fa.php", "language": "php", "file_size": 4860, "cut_index": 614, "middle_length": 229}} {"prefix": "> 'arabisk',\n 'Aran' => 'nastaliq',\n 'Armn' => 'armenskt',\n 'Avst' => 'avestanskt',\n 'Bali' => 'baliskt',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batak',\n 'Beng' => 'bangla',\n 'Bhks' => 'bhaiksuki',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'blindaskrift',\n 'Bugi' => 'buginskt',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'sameindir kanadiskir uppruna stavir',\n", "suffix": "kyrilliskt',\n 'Deva' => 'devanagari',\n 'Diak' => 'dives akuru',\n 'Dogr' => 'dogra',\n 'Dsrt' => 'deseret',\n 'Egyp' => 'egyptiskar hieroglyffur',\n 'Elba' => 'elbasan',\n 'Elym' => 'elymaic',\n 'Ethi' => '", "middle": " 'Cari' => 'carian',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Chrs' => 'chorasmian',\n 'Copt' => 'koptiskt',\n 'Cpmn' => 'cypro-minoan',\n 'Cprt' => 'kýpriskt',\n 'Cyrl' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/fo.php", "language": "php", "file_size": 4428, "cut_index": 614, "middle_length": 229}} {"prefix": "> 'Aramais impireil',\n 'Armn' => 'Airmeinis',\n 'Avst' => 'Avestanais',\n 'Bamu' => 'Bamum',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Beangailis',\n 'Berf' => 'Beria Erfe',\n 'Bhks' => 'Bhaiksuki',\n 'Blis' => 'Comharran Bliss',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'Lontara',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Sgrìobhadh Lideach A", "suffix": "rt' => 'Cìoprasais',\n 'Cyrl' => 'Cirilis',\n 'Cyrs' => 'Cirilis Seann-Slàbhais na h-Eaglaise',\n 'Deva' => 'Devanagari',\n 'Diak' => 'Dives Akuru',\n 'Dogr' => 'Dogra',\n 'Dsrt' => 'Deseret',\n 'Dupl' => 'Gearr-sg", "middle": "onaichte nan Tùsanach Canadach',\n 'Cari' => 'Carian',\n 'Cher' => 'Cherokee',\n 'Chrs' => 'Khwarazm',\n 'Cirt' => 'Cirth',\n 'Copt' => 'Coptais',\n 'Cpmn' => 'Mìneothais Chìopras',\n 'Cp", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/gd.php", "language": "php", "file_size": 6512, "cut_index": 716, "middle_length": 229}} {"prefix": "',\n 'Africa/Dar_es_Salaam' => '东部非洲时间(达累斯萨拉姆)',\n 'Africa/Djibouti' => '东部非洲时间(吉布提)',\n 'Africa/Douala' => '西部非洲时间(杜阿拉)',\n 'Africa/El_Aaiun' => '西欧时间(阿尤恩)',\n 'Africa/Freetown' => '格林尼治标准时间(弗里敦)',\n 'Africa/Gaborone' => '中部非洲时间(哈博罗内)',\n 'Africa/Harare' => '中部非洲时间(哈拉雷)',\n 'Africa/Johannesburg' => '南非标准时间(约翰内斯堡)',\n 'Africa/Juba' => '中部非洲时间(朱巴)',\n 'Africa/Kampala' => '东部非洲时间(坎帕拉)',\n 'Africa/Khartoum' => '中部非洲时间(喀土穆)',\n 'Africa/Kiga", "suffix": "(罗安达)',\n 'Africa/Lubumbashi' => '中部非洲时间(卢本巴希)',\n 'Africa/Lusaka' => '中部非洲时间(卢萨卡)',\n 'Africa/Malabo' => '西部非洲时间(马拉博)',\n 'Africa/Maputo' => '中部非洲时间(马普托)',\n 'Africa/Maseru' => '南非标准时间(马塞卢)',\n 'Africa/Mbabane' => '南非标准", "middle": "li' => '中部非洲时间(基加利)',\n 'Africa/Kinshasa' => '西部非洲时间(金沙萨)',\n 'Africa/Lagos' => '西部非洲时间(拉各斯)',\n 'Africa/Libreville' => '西部非洲时间(利伯维尔)',\n 'Africa/Lome' => '格林尼治标准时间(洛美)',\n 'Africa/Luanda' => '西部非洲时间", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/zh.php", "language": "php", "file_size": 28973, "cut_index": 1331, "middle_length": 229}} {"prefix": "aati (Bujumbura)',\n 'Africa/Cairo' => 'Doğu Avrupa Saati (Kahire)',\n 'Africa/Casablanca' => 'Batı Avrupa Saati (Kazablanka)',\n 'Africa/Ceuta' => 'Orta Avrupa Saati (Septe)',\n 'Africa/Conakry' => 'Greenwich Ortalama Saati (Konakri)',\n 'Africa/Dakar' => 'Greenwich Ortalama Saati (Dakar)',\n 'Africa/Dar_es_Salaam' => 'Doğu Afrika Saati (Darüsselam)',\n 'Africa/Djibouti' => 'Doğu Afrika Saati (Cibuti)',\n 'Africa/Douala' => 'Batı Afrika Saati (Douala)',\n ", "suffix": "Harare)',\n 'Africa/Johannesburg' => 'Güney Afrika Standart Saati (Johannesburg)',\n 'Africa/Juba' => 'Orta Afrika Saati (Cuba)',\n 'Africa/Kampala' => 'Doğu Afrika Saati (Kampala)',\n 'Africa/Khartoum' => 'Orta Afrika Saati (Hartum", "middle": " 'Africa/El_Aaiun' => 'Batı Avrupa Saati (Layun)',\n 'Africa/Freetown' => 'Greenwich Ortalama Saati (Freetown)',\n 'Africa/Gaborone' => 'Orta Afrika Saati (Gaborone)',\n 'Africa/Harare' => 'Orta Afrika Saati (", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/timezones/tr.php", "language": "php", "file_size": 27007, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'Avst' => 'avestansk',\n 'Bali' => 'balinesisk',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa',\n 'Batk' => 'batak',\n 'Beng' => 'bengali',\n 'Blis' => 'blissymboler',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'bramisk',\n 'Brai' => 'punktskrift',\n 'Bugi' => 'buginesisk',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'oprindelige canadiske symboler',\n 'Cari' => 'kariansk',\n 'Cham' => 'cham',\n 'Cher' => 'ch", "suffix": "' => 'deseret',\n 'Dupl' => 'Duploya-stenografi',\n 'Egyd' => 'egyptisk demotisk',\n 'Egyh' => 'egyptisk hieratisk',\n 'Egyp' => 'egyptiske hieroglyffer',\n 'Ethi' => 'etiopisk',\n 'Geok' => 'georgisk kutsuri',\n '", "middle": "erokee',\n 'Cirt' => 'cirt',\n 'Copt' => 'koptisk',\n 'Cprt' => 'cypriotisk',\n 'Cyrl' => 'kyrillisk',\n 'Cyrs' => 'kyrillisk - oldkirkeslavisk variant',\n 'Deva' => 'devanagari',\n 'Dsrt", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/da.php", "language": "php", "file_size": 5133, "cut_index": 716, "middle_length": 229}} {"prefix": "=> 'nastaliq',\n 'Armn' => 'armenio',\n 'Avst' => 'avéstico',\n 'Bali' => 'balinés',\n 'Batk' => 'batak',\n 'Beng' => 'bengalí',\n 'Blis' => 'símbolos blis',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'braille',\n 'Bugi' => 'buginés',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'silabarios aborígenes canadienses unificados',\n 'Cari' => 'cario',\n 'Cham' => 'cham',\n 'Cher' => 'cheroqui'", "suffix": "'deseret',\n 'Egyd' => 'egipcio demótico',\n 'Egyh' => 'egipcio hierático',\n 'Egyp' => 'jeroglíficos egipcios',\n 'Ethi' => 'etiópico',\n 'Geok' => 'georgiano eclesiástico',\n 'Geor' => 'georgiano',\n 'Glag' => 'g", "middle": ",\n 'Cirt' => 'cirth',\n 'Copt' => 'copto',\n 'Cprt' => 'chipriota',\n 'Cyrl' => 'cirílico',\n 'Cyrs' => 'cirílico del antiguo eslavo eclesiástico',\n 'Deva' => 'devanagari',\n 'Dsrt' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/es.php", "language": "php", "file_size": 4060, "cut_index": 614, "middle_length": 229}} {"prefix": "i' => 'Keizerlijk Aramees',\n 'Armn' => 'Armeens',\n 'Avst' => 'Avestaansk',\n 'Bali' => 'Balineesk',\n 'Bamu' => 'Bamoun',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Bengalees',\n 'Blis' => 'Blissymbolen',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'Bugineesk',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Verenigde Canadese Aboriginal-symbolen',\n ", "suffix": "illysk',\n 'Deva' => 'Devanagari',\n 'Dsrt' => 'Deseret',\n 'Dupl' => 'Duployan snelschrift',\n 'Egyd' => 'Egyptysk demotysk',\n 'Egyh' => 'Egyptysk hiëratysk',\n 'Egyp' => 'Egyptyske hiërogliefen',\n 'Ethi' => 'Et", "middle": "'Cari' => 'Karysk',\n 'Cham' => 'Cham',\n 'Cher' => 'Cherokee',\n 'Cirt' => 'Cirth',\n 'Copt' => 'Koptysk',\n 'Cprt' => 'Syprysk',\n 'Cyrl' => 'Syrillysk',\n 'Cyrs' => 'Aldkerkslavysk Syr", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/fy.php", "language": "php", "file_size": 5010, "cut_index": 614, "middle_length": 229}} {"prefix": " => 'نستعليق',\n 'Armn' => 'الأرمينية',\n 'Bali' => 'البالية',\n 'Batk' => 'الباتاك',\n 'Beng' => 'البنغالية',\n 'Blis' => 'رموز بليس',\n 'Bopo' => 'البوبوموفو',\n 'Brah' => 'الهندوسية',\n 'Brai' => 'البرايل',\n 'Bugi' => 'البجينيز',\n 'Buhd' => 'البهيدية',\n 'Cakm' => 'شاكما',\n 'Cans' => 'مقاطع كندية أصلية موحدة',\n 'Cari' => 'الكارية',\n 'Cham' => 'التشامية',\n 'Cher' => 'الشيروكي',\n 'Cirt' => 'السيرث',\n ", "suffix": "موطيقية',\n 'Egyh' => 'الهيراطيقية',\n 'Egyp' => 'الهيروغليفية',\n 'Ethi' => 'الأثيوبية',\n 'Geok' => 'الأبجدية الجورجية - أسومتافرلي و نسخري',\n 'Geor' => 'الجورجية',\n 'Glag' => 'الجلاجوليتيك',\n 'Goth' => 'القوط", "middle": " 'Copt' => 'القبطية',\n 'Cprt' => 'القبرصية',\n 'Cyrl' => 'السيريلية',\n 'Cyrs' => 'السيريلية السلافية الكنسية القديمة',\n 'Deva' => 'الديفاناجاري',\n 'Dsrt' => 'الديسيريت',\n 'Egyd' => 'الدي", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ar.php", "language": "php", "file_size": 5303, "cut_index": 614, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'Arab' => 'Arabiagbeŋɔŋlɔ',\n 'Armn' => 'armeniagbeŋɔŋlɔ',\n 'Beng' => 'bengaligbeŋɔŋlɔ',\n 'Bopo' => 'bopomfogbeŋɔŋlɔ',\n 'Brai' => 'braillegbeŋɔŋlɔ',\n 'Cyrl' => 'Cyrillicgbeŋɔŋlɔ',\n 'Deva' => 'devanagarigbeŋɔŋlɔ',\n 'Ethi' => 'ethiopiagbeŋɔŋlɔ',\n 'Geor' => 'gɔgiagbeŋɔŋlɔ',\n 'Grek' => 'grisigbeŋɔŋlɔ',\n 'Gujr' => 'gudzaratigbeŋɔŋlɔ',\n 'Guru' => 'gurmukhigbeŋɔŋlɔ',\n 'Hang' => 'hangulgbeŋɔŋlɔ',\n ", "suffix": "' => 'katakanagbeŋɔŋlɔ',\n 'Khmr' => 'khmergbeŋɔŋlɔ',\n 'Knda' => 'kannadagbeŋɔŋlɔ',\n 'Kore' => 'Koreagbeŋɔŋlɔ',\n 'Laoo' => 'laogbeŋɔŋlɔ',\n 'Latn' => 'latingbeŋɔŋlɔ',\n 'Mlym' => 'malayagbeŋɔŋlɔ',\n 'Mong' => 'm", "middle": "'Hani' => 'hangbeŋɔŋlɔ',\n 'Hans' => 'Chinesegbeŋɔŋlɔ',\n 'Hant' => 'Blema Chinesegbeŋɔŋlɔ',\n 'Hebr' => 'hebrigbeŋɔŋlɔ',\n 'Hira' => 'hiraganagbeŋɔŋlɔ',\n 'Jpan' => 'Japanesegbeŋɔŋlɔ',\n 'Kana", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ee.php", "language": "php", "file_size": 1573, "cut_index": 524, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'Arab' => 'Ӏаьрбийн',\n 'Armn' => 'эрмалойн',\n 'Beng' => 'бенгалхойн',\n 'Bopo' => 'бопомофо',\n 'Brai' => 'брайля',\n 'Cyrl' => 'кириллица',\n 'Deva' => 'деванагари',\n 'Ethi' => 'эфиопин',\n 'Geor' => 'гуьржийн',\n 'Grek' => 'грекийн',\n 'Gujr' => 'гуджарати',\n 'Guru' => 'гурмукхи',\n 'Hanb' => 'ханьб',\n 'Hang' => 'хангыль',\n 'Hani' => 'китайн',\n 'Hans' => 'атта китайн',\n 'Han", "suffix": "'кхмерийн',\n 'Knda' => 'каннада',\n 'Kore' => 'корейн',\n 'Laoo' => 'лаоссийн',\n 'Latn' => 'латинан',\n 'Mlym' => 'малаялийн',\n 'Mong' => 'монголийн',\n 'Mymr' => 'мьянманийн',\n 'Orya' => 'ори',\n '", "middle": "t' => 'ламастан китайн',\n 'Hebr' => 'жугтийн',\n 'Hira' => 'хирагана',\n 'Hrkt' => 'катакана я хирагана',\n 'Jamo' => 'джамо',\n 'Jpan' => 'японийн',\n 'Kana' => 'катакана',\n 'Khmr' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ce.php", "language": "php", "file_size": 1709, "cut_index": 524, "middle_length": 229}} {"prefix": "'អាតឡាម',\n 'Aghb' => 'អាល់បានីកៅកាស៊ី',\n 'Ahom' => 'អាហូម',\n 'Arab' => 'អារ៉ាប់',\n 'Aran' => 'អារ៉ាន',\n 'Armi' => 'អារ៉ាម៉ាអ៊ីមភើរៀល',\n 'Armn' => 'អាមេនី',\n 'Avst' => 'អាវេស្ថាន',\n 'Bali' => 'បាលី',\n 'Bamu' => 'បាមុន',\n 'Bass' => 'បាសាវ៉ះ',\n 'Batk' => 'បាតាក',\n 'Beng' => 'បង់ក្លាដែស',\n 'Bhks' => 'ប៉ៃស៊ូគី',\n 'Bopo' => 'បូផូម៉ូហ្វូ',\n 'Brah' => 'ប្រាមិ',\n 'Brai' => 'អក្សរ​សម្រាប់មនុស្ស​ពិការ​ភ្នែក'", "suffix": "s' => 'ខូរ៉ាស្មី',\n 'Copt' => 'ខូប្ទ',\n 'Cpmn' => 'ស៊ីប្រូមីណូ',\n 'Cprt' => 'ស៊ីប',\n 'Cyrl' => 'ស៊ីរីលីក',\n 'Deva' => 'ដាវ៉ាន់ណាការិ',\n 'Ethi' => 'អេត្យូពី',\n 'Geor' => 'ហ្សកហ្ស៊ី',\n 'Gong' => 'គុនចាឡ", "middle": ",\n 'Bugi' => 'ប៊ូគីនេ',\n 'Buhd' => 'ប៊ូហ៊ីដ',\n 'Cakm' => 'ចាក់ម៉ា',\n 'Cans' => 'ព្យាង្គអាបូរីជីន​កាណាដារួម',\n 'Cari' => 'ខារី',\n 'Cham' => 'ចាម',\n 'Cher' => 'ឆេរ៉ូគី',\n 'Chr", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/km.php", "language": "php", "file_size": 4355, "cut_index": 563, "middle_length": 229}} {"prefix": "ran' => 'ನಸ್ಟಾಲಿಕ್',\n 'Armi' => 'ಇಂಪೀರಿಯಲ್ ಅರೆಮಾಯಿಕ್',\n 'Armn' => 'ಅರ್ಮೇನಿಯನ್',\n 'Avst' => 'ಅವೆಸ್ತಾನ್',\n 'Bali' => 'ಬಾಲಿನೀಸ್',\n 'Batk' => 'ಬಾಟಕ್',\n 'Beng' => 'ಬೆಂಗಾಲಿ',\n 'Blis' => 'ಬ್ಲಿಸ್‌ಸಿಂಬಲ್ಸ್',\n 'Bopo' => 'ಬೋಪೊಮೋಫೋ',\n 'Brah' => 'ಬ್ರಾಹ್ಮಿ',\n 'Brai' => 'ಬ್ರೈಲ್',\n 'Bugi' => 'ಬಗಿನೀಸ್',\n 'Buhd' => 'ಬುಹಿದ್',\n 'Cakm' => 'ಚಕ್ಮಾ',\n 'Cans' => 'ಯುನಿಫೈಯ್ಡ್ ಕೆನೆಡಿಯನ್ ಅಬೊರಿಜಿನಲ್ ಸಿಲ್ಯಾಬಿಕ್ಸ್',\n 'Cari' => 'ಕರೇನ್',", "suffix": "\n 'Deva' => 'ದೇವನಾಗರಿ',\n 'Dsrt' => 'ಡಸರ್ಟ್',\n 'Egyd' => 'ಈಜಿಪ್ಟಿಯನ್ ಡೆಮೋಟಿಕ್',\n 'Egyh' => 'ಈಜಿಪ್ಟಿಯನ್ ಹಯಾರಿಟಿಕ್',\n 'Egyp' => 'ಈಜಿಪ್ಟಿಯನ್ ಹೀರೋಗ್ಲಿಫ್ಸ್',\n 'Ethi' => 'ಇಥಿಯೋಪಿಕ್',\n 'Geok' => 'ಜಾರ್ಜಿಯನ್ ಖುಸ್ತುರಿ'", "middle": "\n 'Cham' => 'ಚಾಮ್',\n 'Cher' => 'ಚೆರೋಕೀ',\n 'Cirt' => 'ಸಿರ್ಥ್',\n 'Copt' => 'ಕಾಪ್ಟಿಕ್',\n 'Cprt' => 'ಸಿಪ್ರಿಯಾಟ್',\n 'Cyrl' => 'ಸಿರಿಲಿಕ್',\n 'Cyrs' => 'ಪ್ರಾಚೀನ ಚರ್ಚ್ ಸ್ಲೋವಾನಿಕ್ ಸಿರಿಲಿಕ್',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/kn.php", "language": "php", "file_size": 6883, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'အက်ဒ်လမ်',\n 'Arab' => 'အာရေဗျ',\n 'Aran' => 'နက်စ်တာလိခ်',\n 'Armn' => 'အာမေးနီးယား',\n 'Beng' => 'ဘင်္ဂါလီ',\n 'Bopo' => 'ဘိုပို',\n 'Brah' => 'ဗွဟ်မမီ',\n 'Brai' => 'ဘရေ',\n 'Cakm' => 'ချပ်ခ်မာ',\n 'Cans' => 'ကင်န်စ်',\n 'Cher' => 'ချာရိုကီး',\n 'Cyrl' => 'စစ်ရိလစ်',\n 'Deva' => 'ဒီဗနာဂရီ',\n 'Ethi' => 'အီသီယိုးပီးယား',\n 'Geor' => 'ဂျော်ဂျီယာ',\n 'Grek' => 'ဂရိ',\n 'Gujr' => 'ဂုဂျာရ", "suffix": " 'Hrkt' => 'ဂျပန် အက္ခရာ',\n 'Jamo' => 'ဂျမို',\n 'Java' => 'ဂျာဗားနီးစ်',\n 'Jpan' => 'ဂျပန်',\n 'Kali' => 'ကယားလီ',\n 'Kana' => 'ခတခန',\n 'Khmr' => 'ခမာ',\n 'Knda' => 'ခန်နာဒါ',\n 'Kore' => 'ကိုရီးယား'", "middle": "သီ',\n 'Guru' => 'ဂူရူ',\n 'Hanb' => 'ဟန်ဘ်',\n 'Hang' => 'ဟန်ဂူးလ်',\n 'Hani' => 'ဟန်',\n 'Hans' => 'ရိုးရှင်း',\n 'Hant' => 'ရိုးရာ',\n 'Hebr' => 'ဟီဗရူး',\n 'Hira' => 'ဟီရဂန',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/my.php", "language": "php", "file_size": 2960, "cut_index": 537, "middle_length": 229}} {"prefix": "> 'नास्टालिक',\n 'Armi' => 'आर्मी',\n 'Armn' => 'आर्मेनियाली',\n 'Avst' => 'आभेस्टान',\n 'Bali' => 'बाली',\n 'Batk' => 'बाटक',\n 'Beng' => 'बङ्गाली',\n 'Blis' => 'ब्लिजसिम्बोल्स',\n 'Bopo' => 'बोपोमोफो',\n 'Brah' => 'ब्राह्मी',\n 'Brai' => 'ब्रेल',\n 'Bugi' => 'बुगिनिज',\n 'Buhd' => 'बुहिद',\n 'Cakm' => 'काक्म्',\n 'Cans' => 'एकीकृत क्यानेडाली आदिवादीको सिलाबिक्स',\n 'Cari' => 'कारियन',\n 'Cham' => 'चाम',\n ", "suffix": "क',\n 'Egyh' => 'इजिप्टियन हाइरटिक',\n 'Egyp' => 'इजिप्टियन हाइरोग्लिफ्स',\n 'Ethi' => 'इथियोपिक',\n 'Geok' => 'ग्रुजियाली खुट्सुरी',\n 'Geor' => 'जर्जियाली',\n 'Glag' => 'ग्लागोलिटिक',\n 'Goth' => 'गोथिक',\n ", "middle": " 'Cher' => 'चेरोकी',\n 'Cirt' => 'किर्थ',\n 'Copt' => 'कप्टिक',\n 'Cprt' => 'कप्रियट',\n 'Cyrl' => 'सिरिलिक',\n 'Deva' => 'देवानागरी',\n 'Dsrt' => 'डेसेरेट',\n 'Egyd' => 'इजिप्टियन डेमोटि", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ne.php", "language": "php", "file_size": 6165, "cut_index": 614, "middle_length": 229}} {"prefix": "=> 'Keizerlijk Aramees',\n 'Armn' => 'Armeens',\n 'Avst' => 'Avestaans',\n 'Bali' => 'Balinees',\n 'Bamu' => 'Bamoun',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Bengaals',\n 'Berf' => 'Beria Erfe',\n 'Bhks' => 'Bhaiksuki',\n 'Blis' => 'Blissymbolen',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'braille',\n 'Bugi' => 'Buginees',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma',\n 'Can", "suffix": "h',\n 'Cprt' => 'Cyprisch',\n 'Cyrl' => 'Cyrillisch',\n 'Cyrs' => 'Oudkerkslavisch Cyrillisch',\n 'Deva' => 'Devanagari',\n 'Diak' => 'Dives Akuru',\n 'Dogr' => 'Dogra',\n 'Dsrt' => 'Deseret',\n 'Dupl' => 'Du", "middle": "s' => 'Verenigde Canadese Aboriginal-symbolen',\n 'Cari' => 'Carisch',\n 'Cher' => 'Cherokee',\n 'Chrs' => 'Chorasmisch',\n 'Cirt' => 'Cirth',\n 'Copt' => 'Koptisch',\n 'Cpmn' => 'Cypro-Minoïsc", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/nl.php", "language": "php", "file_size": 6614, "cut_index": 716, "middle_length": 229}} {"prefix": "\nreturn [\n 'Names' => [\n 'Armi' => 'armisk',\n 'Cans' => 'felles kanadiske urspråksstavingar',\n 'Cyrs' => 'kyrillisk (kyrkjeslavisk variant)',\n 'Egyp' => 'egyptiske hieroglyfar',\n 'Geok' => 'khutsuri (asomtavruli og nuskhuri)',\n 'Hanb' => 'hanb',\n 'Hans' => 'forenkla',\n 'Hmng' => 'pahawk hmong',\n 'Hrkt' => 'japanske stavingsskrifter',\n 'Hung' => 'gammalungarsk',\n 'Ital' => 'gammalitalisk',\n 'Latf' => 'latinsk (frakturvaria", "suffix": "yre' => 'syriakisk (estrangelo-variant)',\n 'Syrj' => 'syriakisk (vestleg variant)',\n 'Syrn' => 'syriakisk (austleg variant)',\n 'Thaa' => 'thaana',\n 'Visp' => 'synleg tale',\n 'Xpeo' => 'gammalpersisk',\n 'Xsux' => 's", "middle": "nt)',\n 'Latg' => 'latinsk (gælisk variant)',\n 'Limb' => 'lumbu',\n 'Maya' => 'maya-hieroglyfar',\n 'Perm' => 'gammalpermisk',\n 'Phlp' => 'salmepahlavi',\n 'Sgnw' => 'teiknskrift',\n 'S", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/nn.php", "language": "php", "file_size": 1140, "cut_index": 518, "middle_length": 229}} {"prefix": "liq',\n 'Armi' => 'arameisk',\n 'Armn' => 'armensk',\n 'Avst' => 'avestisk',\n 'Bali' => 'balinesisk',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengalsk',\n 'Blis' => 'blissymbol',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'punktskrift',\n 'Bugi' => 'buginesisk',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'felles kanadiske urspråksstavelser',\n ", "suffix": "k kyrillisk',\n 'Deva' => 'devanagari',\n 'Dsrt' => 'deseret',\n 'Dupl' => 'duployan stenografi',\n 'Egyd' => 'egyptisk demotisk',\n 'Egyh' => 'egyptisk hieratisk',\n 'Egyp' => 'egyptiske hieroglyfer',\n 'Elba' => ", "middle": " 'Cari' => 'karisk',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Cirt' => 'cirth',\n 'Copt' => 'koptisk',\n 'Cprt' => 'kypriotisk',\n 'Cyrl' => 'kyrillisk',\n 'Cyrs' => 'kirkeslavis", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/no.php", "language": "php", "file_size": 5486, "cut_index": 716, "middle_length": 229}} {"prefix": "liq',\n 'Armi' => 'arameisk',\n 'Armn' => 'armensk',\n 'Avst' => 'avestisk',\n 'Bali' => 'balinesisk',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengalsk',\n 'Blis' => 'blissymbol',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'punktskrift',\n 'Bugi' => 'buginesisk',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'felles kanadiske urspråksstavelser',\n ", "suffix": "k kyrillisk',\n 'Deva' => 'devanagari',\n 'Dsrt' => 'deseret',\n 'Dupl' => 'duployan stenografi',\n 'Egyd' => 'egyptisk demotisk',\n 'Egyh' => 'egyptisk hieratisk',\n 'Egyp' => 'egyptiske hieroglyfer',\n 'Elba' => ", "middle": " 'Cari' => 'karisk',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Cirt' => 'cirth',\n 'Copt' => 'koptisk',\n 'Cprt' => 'kypriotisk',\n 'Cyrl' => 'kyrillisk',\n 'Cyrs' => 'kirkeslavis", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/no_NO.php", "language": "php", "file_size": 5486, "cut_index": 716, "middle_length": 229}} {"prefix": " => 'ନାଷ୍ଟାଲିକ୍‌',\n 'Armi' => 'ଇମ୍ପେରିଆଲ୍ ଆରମିକ୍',\n 'Armn' => 'ଆର୍ମେନୀୟ',\n 'Avst' => 'ଆବେସ୍ଥାନ୍',\n 'Bali' => 'ବାଲିନୀଜ୍',\n 'Batk' => 'ବାଟାକ୍',\n 'Beng' => 'ବଙ୍ଗାଳୀ',\n 'Blis' => 'ବ୍ଲିସିମ୍ବଲସ୍',\n 'Bopo' => 'ବୋପୋମୋଫୋ',\n 'Brah' => 'ବ୍ରାହ୍ମୀ',\n 'Brai' => 'ବ୍ରେଲ୍',\n 'Bugi' => 'ବୁଗାନୀଜ୍',\n 'Buhd' => 'ବୁହିଦ୍',\n 'Cakm' => 'ଚକମା',\n 'Cans' => 'ୟୁନିଫାଏଡ୍ କାନାଡିଆନ୍ ଆବ୍ରୋଜିନାଲ୍ ସିଲାବିକସ୍',\n 'Cari' => 'କୈରନ୍',\n 'C", "suffix": "ଦେବନାଗରୀ',\n 'Dsrt' => 'ଡେସର୍ଟ',\n 'Egyd' => 'ଇଜିପ୍ଟିଆନ୍ ଡେମୋଟିକ୍',\n 'Egyh' => 'ଇଜିପ୍ଟିଆନ୍ ହାଇଅରଟିକ୍',\n 'Egyp' => 'ଇଜିପ୍ଟିଆନ୍ ହାଅରଗ୍ଲିପସ୍',\n 'Ethi' => 'ଇଥିଓପିକ୍‌',\n 'Geok' => 'ଜର୍ଜିଆନ୍ ଖୁଟସୁରୀ',\n 'Geor' => 'ଜର", "middle": "ham' => 'ଛମ୍',\n 'Cher' => 'ଚିରୁକୀ',\n 'Cirt' => 'ସିର୍ଥ',\n 'Copt' => 'କପଟିକ୍',\n 'Cprt' => 'ସିପ୍ରଅଟ୍',\n 'Cyrl' => 'ସିରିଲିକ୍',\n 'Cyrs' => 'ଓଲ୍ଡ ଚର୍ଚ୍ଚ ସାଲଭୋନିକ୍ ସିରିଲିକ୍',\n 'Deva' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/or.php", "language": "php", "file_size": 6719, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'ਅਦਲਾਮ',\n 'Arab' => 'ਅਰਬੀ',\n 'Aran' => 'ਨਸਤਾਲੀਕ',\n 'Armn' => 'ਅਰਮੀਨੀਆਈ',\n 'Beng' => 'ਬੰਗਾਲੀ',\n 'Bopo' => 'ਬੋਪੋਮੋਫੋ',\n 'Brai' => 'ਬਰੇਲ',\n 'Cakm' => 'ਚਕਮਾ',\n 'Cans' => 'ਯੂਨੀਫਾਈਡ ਕੈਨੇਡੀਅਨ ਐਬੋਰਿਜਿਨਲ ਸਿਲੇਬਿਕਸ',\n 'Cher' => 'ਚੈਰੋਕੀ',\n 'Cyrl' => 'ਸਿਰਿਲਿਕ',\n 'Deva' => 'ਦੇਵਨਾਗਰੀ',\n 'Ethi' => 'ਇਥੀਓਪਿਕ',\n 'Geor' => 'ਜਾਰਜੀਆਈ',\n 'Grek' => 'ਯੂਨਾਨੀ',\n 'Gujr' => 'ਗੁਜਰਾਤੀ',\n 'Guru' => 'ਗੁਰ", "suffix": "਼',\n 'Jamo' => 'ਜਾਮੋ',\n 'Jpan' => 'ਜਪਾਨੀ',\n 'Kana' => 'ਕਾਟਾਕਾਨਾ',\n 'Khmr' => 'ਖਮੇਰ',\n 'Knda' => 'ਕੰਨੜ',\n 'Kore' => 'ਕੋਰੀਆਈ',\n 'Laoo' => 'ਲਾਓ',\n 'Latn' => 'ਲਾਤੀਨੀ',\n 'Mlym' => 'ਮਲਿਆਲਮ',\n ", "middle": "ਮੁਖੀ',\n 'Hanb' => 'ਹਾਂਬ',\n 'Hang' => 'ਹੰਗੁਲ',\n 'Hani' => 'ਹਾਨ',\n 'Hans' => 'ਸਰਲ',\n 'Hant' => 'ਰਵਾਇਤੀ',\n 'Hebr' => 'ਹਿਬਰੂ',\n 'Hira' => 'ਹਿਰਾਗਾਨਾ',\n 'Hrkt' => 'ਜਾਪਾਨੀ ਸਿਲੇਬਰੀਜ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/pa.php", "language": "php", "file_size": 2391, "cut_index": 537, "middle_length": 229}} {"prefix": "n' => 'nastaliq',\n 'Armi' => 'armi',\n 'Armn' => 'ormiańskie',\n 'Avst' => 'awestyjskie',\n 'Bali' => 'balijskie',\n 'Bamu' => 'bamun',\n 'Batk' => 'batak',\n 'Beng' => 'bengalskie',\n 'Blis' => 'symbole Blissa',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'Braille’a',\n 'Bugi' => 'bugińskie',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'zunifikowane symbole kanadyjskich autochtonów',\n ", "suffix": "ylica staro-cerkiewno-słowiańska',\n 'Deva' => 'dewanagari',\n 'Dsrt' => 'deseret',\n 'Egyd' => 'egipskie demotyczne',\n 'Egyh' => 'egipskie hieratyczne',\n 'Egyp' => 'hieroglify egipskie',\n 'Ethi' => 'etiopskie',\n ", "middle": "'Cari' => 'karyjskie',\n 'Cham' => 'czamskie',\n 'Cher' => 'czirokeskie',\n 'Cirt' => 'cirth',\n 'Copt' => 'koptyjskie',\n 'Cprt' => 'cypryjskie',\n 'Cyrl' => 'cyrylica',\n 'Cyrs' => 'cyr", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/pl.php", "language": "php", "file_size": 4568, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'اډلام',\n 'Arab' => 'عربي',\n 'Aran' => 'نستعلیق',\n 'Armn' => 'ارمانیایي',\n 'Beng' => 'بنګله',\n 'Bopo' => 'بوپوموفو',\n 'Brai' => 'بریلي',\n 'Cakm' => 'چکما',\n 'Cans' => 'متحد کاناډایی ابوریجینل سلیبکس',\n 'Cher' => 'چیروکي',\n 'Cyrl' => 'سیریلیک',\n 'Deva' => 'دیواناګري',\n 'Ethi' => 'ایتوپي',\n 'Geor' => 'ګرجستاني',\n 'Grek' => 'یوناني',\n 'Gujr' => 'ګجراتي',\n 'Guru' => 'ګرومي',\n", "suffix": "ني سیلابري',\n 'Jamo' => 'جامو',\n 'Jpan' => 'جاپاني',\n 'Kana' => 'کاتاکانا',\n 'Khmr' => 'خمر',\n 'Knda' => 'کناډا',\n 'Kore' => 'کوریایی',\n 'Laoo' => 'لاوو',\n 'Latn' => 'لاتين/لاتيني',\n 'Mlym' => ", "middle": " 'Hanb' => 'هن او بوپوفومو',\n 'Hang' => 'هنګولي',\n 'Hani' => 'هن',\n 'Hans' => 'ساده شوی',\n 'Hant' => 'دودیزه',\n 'Hebr' => 'عبراني',\n 'Hira' => 'هیراګانا',\n 'Hrkt' => 'د جاپا", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ps.php", "language": "php", "file_size": 2074, "cut_index": 537, "middle_length": 229}} {"prefix": "=> 'nastaliq',\n 'Armi' => 'armi',\n 'Armn' => 'armênio',\n 'Avst' => 'avéstico',\n 'Bali' => 'balinês',\n 'Bamu' => 'bamum',\n 'Batk' => 'bataque',\n 'Beng' => 'bengali',\n 'Blis' => 'símbolos bliss',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'braille',\n 'Bugi' => 'buginês',\n 'Buhd' => 'buhid',\n 'Cakm' => 'cakm',\n 'Cans' => 'escrita silábica unificada dos aborígenes canadenses',\n 'Cari' => '", "suffix": "',\n 'Deva' => 'devanágari',\n 'Dsrt' => 'deseret',\n 'Egyd' => 'demótico egípcio',\n 'Egyh' => 'hierático egípcio',\n 'Egyp' => 'hieróglifos egípcios',\n 'Ethi' => 'etiópico',\n 'Geok' => 'khutsuri georgiano',\n ", "middle": "cariano',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Cirt' => 'cirth',\n 'Copt' => 'cóptico',\n 'Cprt' => 'cipriota',\n 'Cyrl' => 'cirílico',\n 'Cyrs' => 'cirílico eslavo eclesiástico", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/pt.php", "language": "php", "file_size": 4380, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Adlam Simi',\n 'Arab' => 'Arabe Simi',\n 'Aran' => 'Nastaliq qillqa',\n 'Armn' => 'Armenio Simi',\n 'Beng' => 'Bangla Simi',\n 'Bopo' => 'Bopomofo Simi',\n 'Brai' => 'Braile',\n 'Cakm' => 'Chakma Simi',\n 'Cans' => 'Silabeo aborigen Simi (Canadiense unificado)',\n 'Cher' => 'Cherokee Simi',\n 'Cyrl' => 'Cirilico',\n 'Deva' => 'Devanagari',\n 'Ethi' => 'Etiope',\n 'Geor' => 'Georgiano',\n 'Grek' => ", "suffix": "'Tradicional',\n 'Hebr' => 'Hebreo Simi',\n 'Hira' => 'Hiragana',\n 'Hrkt' => 'Japones silabico sananpakuna',\n 'Jpan' => 'Japones Simi',\n 'Kana' => 'Katakana',\n 'Khmr' => 'Khmer',\n 'Knda' => 'Kannada Simi',\n ", "middle": "'Griego Simi',\n 'Gujr' => 'Gujarati Simi',\n 'Guru' => 'Gurmukhi Simi',\n 'Hanb' => 'Han with Bopomofo',\n 'Hang' => 'Hangul',\n 'Hani' => 'Han',\n 'Hans' => 'Simplificado',\n 'Hant' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/qu.php", "language": "php", "file_size": 1928, "cut_index": 537, "middle_length": 229}} {"prefix": "\n 'Ahom' => 'ahom',\n 'Arab' => 'arab',\n 'Aran' => 'nastaliq',\n 'Armi' => 'arameic imperial',\n 'Armn' => 'armen',\n 'Avst' => 'avestic',\n 'Bali' => 'balinais',\n 'Batk' => 'batak',\n 'Beng' => 'bengal',\n 'Blis' => 'simbols da Bliss',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'buginais',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'simbols da silbas uni", "suffix": " => 'cirillic',\n 'Cyrs' => 'slav da baselgia vegl',\n 'Deva' => 'devanagari',\n 'Dsrt' => 'deseret',\n 'Egyd' => 'egipzian demotic',\n 'Egyh' => 'egipzian ieratic',\n 'Egyp' => 'ieroglifas egipzianas',\n 'Ethi' =>", "middle": "fitgads da la populaziun autoctona canadaisa',\n 'Cari' => 'carian',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Cirt' => 'cirth',\n 'Copt' => 'coptic',\n 'Cprt' => 'cipriot',\n 'Cyrl'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/rm.php", "language": "php", "file_size": 4496, "cut_index": 614, "middle_length": 229}} {"prefix": "aramaică imperială',\n 'Armn' => 'armeană',\n 'Avst' => 'avestică',\n 'Bali' => 'balineză',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengaleză',\n 'Bhks' => 'bhaiksuki',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmanică',\n 'Brai' => 'braille',\n 'Bugi' => 'bugineză',\n 'Buhd' => 'buhidă',\n 'Cakm' => 'chakma',\n 'Cans' => 'silabică aborigenă canadiană unificată',\n 'Cari' => ", "suffix": " 'Cyrs' => 'chirilică slavonă bisericească veche',\n 'Deva' => 'devanagari',\n 'Diak' => 'dives akuru',\n 'Dogr' => 'dogra',\n 'Dsrt' => 'mormonă',\n 'Dupl' => 'stenografie duployană',\n 'Egyd' => 'demotică egipteană',\n", "middle": "'cariană',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Chrs' => 'khorezmiană',\n 'Copt' => 'coptă',\n 'Cpmn' => 'cipro-minoană',\n 'Cprt' => 'cipriotă',\n 'Cyrl' => 'chirilică',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ro.php", "language": "php", "file_size": 6048, "cut_index": 716, "middle_length": 229}} {"prefix": "ая',\n 'Avst' => 'авестийская',\n 'Bali' => 'балийская',\n 'Bamu' => 'бамум',\n 'Bass' => 'басса (вах)',\n 'Batk' => 'батакская',\n 'Beng' => 'бенгальская',\n 'Blis' => 'блиссимволика',\n 'Bopo' => 'бопомофо',\n 'Brah' => 'брахми',\n 'Brai' => 'шрифт Брайля',\n 'Bugi' => 'бугинизийская',\n 'Buhd' => 'бухид',\n 'Cakm' => 'чакмийская',\n 'Cans' => 'канадское слоговое письмо',\n 'Cari' => 'карийская',\n 'Cham' => 'ч", "suffix": " 'Dsrt' => 'дезерет',\n 'Dupl' => 'дуплоянская скоропись',\n 'Egyd' => 'египетская демотическая',\n 'Egyh' => 'египетская иератическая',\n 'Egyp' => 'египетская иероглифическая',\n 'Ethi' => 'эфиопская',\n 'Geok' => 'гр", "middle": "амская',\n 'Cher' => 'чероки',\n 'Cirt' => 'кирт',\n 'Copt' => 'коптская',\n 'Cprt' => 'кипрская',\n 'Cyrl' => 'кириллица',\n 'Cyrs' => 'старославянская',\n 'Deva' => 'деванагари',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ru.php", "language": "php", "file_size": 7042, "cut_index": 716, "middle_length": 229}} {"prefix": "ramàicu imperiale',\n 'Armn' => 'armenu',\n 'Avst' => 'avèsticu',\n 'Bali' => 'balinesu',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengalesu',\n 'Bhks' => 'bhaiksuki',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'braille',\n 'Bugi' => 'buginesu',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'sillabàriu aborìgenu canadesu unificadu',\n 'Cari' => 'caria", "suffix": "' => 'devanagari',\n 'Diak' => 'dives akuru',\n 'Dogr' => 'dogra',\n 'Dsrt' => 'deseret',\n 'Dupl' => 'istenografia duployan',\n 'Egyp' => 'geroglìficos egitzianos',\n 'Elba' => 'elbasan',\n 'Elym' => 'elimàicu',\n ", "middle": "n',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Chrs' => 'coràsmiu',\n 'Copt' => 'coptu',\n 'Cpmn' => 'tzipro-minòicu',\n 'Cprt' => 'tzipriotu',\n 'Cyrl' => 'tzirìllicu',\n 'Deva", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sc.php", "language": "php", "file_size": 5607, "cut_index": 716, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'ايڊلام',\n 'Arab' => 'عربي',\n 'Aran' => 'نستعلیق',\n 'Armn' => 'عرماني',\n 'Beng' => 'بنگلا',\n 'Bopo' => 'بوپوموفو',\n 'Brai' => 'بريل',\n 'Cakm' => 'چڪما',\n 'Cans' => 'يونيفائيڊ ڪينيڊيئن ابارجيني سليبڪس',\n 'Cher' => 'چيروڪي',\n 'Cyrl' => 'سيريلي',\n 'Deva' => 'ديوناگري',\n 'Ethi' => 'ايٿوپيائي',\n 'Geor' => 'جيورجيائي',\n 'Grek' => 'يوناني',\n 'Gujr' => 'گجراتي',\n 'Guru' => 'گرمکي", "suffix": "لکت',\n 'Ital' => 'قديم اطالوي',\n 'Jamo' => 'جامو',\n 'Java' => 'جاوانيز',\n 'Jpan' => 'جاپاني',\n 'Kana' => 'ڪٽاڪانا',\n 'Khmr' => 'خمر',\n 'Knda' => 'ڪناڊا',\n 'Kore' => 'ڪوريائي',\n 'Laoo' => 'لائو'", "middle": "',\n 'Hanb' => 'بوپوموفو سان هين',\n 'Hang' => 'هنگول',\n 'Hani' => 'هين',\n 'Hans' => 'سادي',\n 'Hant' => 'روايتي',\n 'Hebr' => 'عبراني',\n 'Hira' => 'هراگنا',\n 'Hrkt' => 'جاپاني ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sd.php", "language": "php", "file_size": 2234, "cut_index": 537, "middle_length": 229}} {"prefix": " 'Aran' => 'nastalik',\n 'Armi' => 'imperijsko aramejsko pismo',\n 'Armn' => 'jermensko pismo',\n 'Avst' => 'avestansko pismo',\n 'Bali' => 'balijsko pismo',\n 'Batk' => 'batak pismo',\n 'Beng' => 'bengalsko pismo',\n 'Blis' => 'blisimbolično pismo',\n 'Bopo' => 'bopomofo pismo',\n 'Brah' => 'bramansko pismo',\n 'Brai' => 'brajevo pismo',\n 'Bugi' => 'buginsko pismo',\n 'Buhd' => 'buhidsko pismo',\n 'Cakm' => 'čakma',\n 'Can", "suffix": "t' => 'kiparsko pismo',\n 'Cyrl' => 'ćirilica',\n 'Cyrs' => 'Staroslovenska crkvena ćirilica',\n 'Deva' => 'devanagari',\n 'Dsrt' => 'Dezeret',\n 'Egyd' => 'egipatsko narodno pismo',\n 'Egyh' => 'egipatsko hijeratsko pis", "middle": "s' => 'ujedinjeni kanadski aboridžinski silabici',\n 'Cari' => 'karijsko pismo',\n 'Cham' => 'čamsko pismo',\n 'Cher' => 'čeroki',\n 'Cirt' => 'cirt pismo',\n 'Copt' => 'koptičko pismo',\n 'Cpr", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sh.php", "language": "php", "file_size": 4950, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'ඇඩ්ලම්',\n 'Arab' => 'අරාබි',\n 'Aran' => 'නස්ටාලික්',\n 'Armn' => 'ආර්මේනියානු',\n 'Beng' => 'බෙංගාලි',\n 'Bopo' => 'බොපොමොෆෝ',\n 'Brai' => 'බ්‍රේල්',\n 'Cakm' => 'චක්මා',\n 'Cans' => 'ඒකාබද්ධ කැනේඩියානු ආදිවාසී විෂය නිර්දේශ',\n 'Cher' => 'චෙරෝකී',\n 'Cyrl' => 'සිරිලික්',\n 'Deva' => 'දේවනාගරී',\n 'Ethi' => 'ඉතියෝපියානු',\n 'Geor' => 'ජෝර්ජියානු',\n 'Grek' => 'ග්‍රීක',\n 'Gujr' => 'ගුජරාටි',", "suffix": "ා',\n 'Hrkt' => 'ජෑපනීස් සිලබරීස්',\n 'Jamo' => 'ජාමො',\n 'Jpan' => 'ජපන්',\n 'Kana' => 'කතකනා',\n 'Khmr' => 'කමර්',\n 'Knda' => 'කණ්ණඩ',\n 'Kore' => 'කොරියානු',\n 'Laoo' => 'ලාඕ',\n 'Latn' => 'ලතින්',\n", "middle": "\n 'Guru' => 'ගුර්මුඛි',\n 'Hanb' => 'හැන්ඩ්බ්',\n 'Hang' => 'හැන්ගුල්',\n 'Hani' => 'හන්',\n 'Hans' => 'සුළුකළ',\n 'Hant' => 'සාම්ප්‍රදායික',\n 'Hebr' => 'හීබෲ',\n 'Hira' => 'හිරඟන", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/si.php", "language": "php", "file_size": 2535, "cut_index": 537, "middle_length": 229}} {"prefix": "'adlam',\n 'Arab' => 'arabské',\n 'Aran' => 'nastaliq',\n 'Armn' => 'arménske',\n 'Bali' => 'balijský',\n 'Beng' => 'bengálske',\n 'Bopo' => 'bopomofo',\n 'Brai' => 'braillovo',\n 'Cakm' => 'čakma',\n 'Cans' => 'zjednotené kanadské domorodé slabiky',\n 'Cher' => 'čerokézčina',\n 'Cyrl' => 'cyrilika',\n 'Deva' => 'dévanágarí',\n 'Egyp' => 'egyptské hieroglyfy',\n 'Ethi' => 'etiópske',\n 'Geor' => 'gruzínske',\n 'G", "suffix": "ke',\n 'Hans' => 'zjednodušené',\n 'Hant' => 'tradičné',\n 'Hebr' => 'hebrejské',\n 'Hira' => 'hiragana',\n 'Hrkt' => 'kana',\n 'Jamo' => 'jamo',\n 'Jpan' => 'japonské',\n 'Kana' => 'katakana',\n 'Khmr'", "middle": "lag' => 'hlaholika',\n 'Goth' => 'gotický',\n 'Grek' => 'grécke',\n 'Gujr' => 'gudžarátí',\n 'Guru' => 'gurmukhi',\n 'Hanb' => 'čínske a bopomofo',\n 'Hang' => 'hangul',\n 'Hani' => 'číns", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sk.php", "language": "php", "file_size": 2197, "cut_index": 563, "middle_length": 229}} {"prefix": "ran' => 'nastalik',\n 'Armi' => 'imperialno-aramejski',\n 'Armn' => 'armenski',\n 'Avst' => 'avestanski',\n 'Bali' => 'balijski',\n 'Batk' => 'bataški',\n 'Beng' => 'bengalski',\n 'Blis' => 'znakovna pisava Bliss',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'bramanski',\n 'Brai' => 'braillova pisava',\n 'Bugi' => 'buginski',\n 'Buhd' => 'buhidski',\n 'Cakm' => 'čakmajski',\n 'Cans' => 'poenotena zlogovna pisava kanadskih staroselce", "suffix": "rščica',\n 'Dsrt' => 'fonetska pisava deseret',\n 'Egyd' => 'demotska egipčanska pisava',\n 'Egyh' => 'hieratska egipčanska pisava',\n 'Egyp' => 'egipčanska slikovna pisava',\n 'Ethi' => 'etiopski',\n 'Geok' => 'cerkveno", "middle": "v',\n 'Cher' => 'čerokeški',\n 'Cirt' => 'kirt',\n 'Copt' => 'koptski',\n 'Cprt' => 'ciprski',\n 'Cyrl' => 'cirilica',\n 'Cyrs' => 'starocerkvenoslovanska cirilica',\n 'Deva' => 'devanaga", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sl.php", "language": "php", "file_size": 4357, "cut_index": 614, "middle_length": 229}} {"prefix": "uqada Faarsiga',\n 'Armi' => 'Luuqada Imperial Aramaic',\n 'Armn' => 'Armeeniyaan',\n 'Avst' => 'Luuqada Avestan',\n 'Bali' => 'Baliniis',\n 'Bamu' => 'Bamum',\n 'Bass' => 'Qoraalka Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Baangla',\n 'Bhks' => 'Qoraalka Bhaiksuki',\n 'Bopo' => 'Bobomofo',\n 'Brah' => 'Dhirta Brahmi',\n 'Brai' => 'Qoraalka Indhoolaha',\n 'Bugi' => 'Luuqada Buginiiska',\n 'Buhd' => 'Luuqada Buhid',\n 'Ca", "suffix": "=> 'Dadka Kotiga',\n 'Cprt' => 'sibraas dhalad ah',\n 'Cyrl' => 'Siriylik',\n 'Deva' => 'Dhefangaari',\n 'Diak' => 'Luuqadaha Dives Akuru',\n 'Dogr' => 'Dadka Dogra',\n 'Dsrt' => 'Gobalka Deseret',\n 'Dupl' => 'Qor", "middle": "km' => 'Jakma',\n 'Cans' => 'Qoraalka Luuqada Aborajiinka ee Kanada',\n 'Cari' => 'Luuqada kaariyaanka',\n 'Cham' => 'Jam',\n 'Cher' => 'Jerokee',\n 'Chrs' => 'Luuqada Korasmiyaanka',\n 'Copt' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/so.php", "language": "php", "file_size": 6036, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'aramaishte perandorake',\n 'Armn' => 'armen',\n 'Avst' => 'avestanisht',\n 'Bali' => 'bali',\n 'Bamu' => 'bamu',\n 'Bass' => 'basavahisht',\n 'Batk' => 'batak',\n 'Beng' => 'bengal',\n 'Bhks' => 'baiksukisht',\n 'Bopo' => 'bopomof',\n 'Brah' => 'brahmisht',\n 'Brai' => 'brailisht',\n 'Bugi' => 'buginisht',\n 'Buhd' => 'buhidisht',\n 'Cakm' => 'çakma',\n 'Cans' => 'rrokje të unifikuara aborigjene kanadeze',\n ", "suffix": "l' => 'cirilik',\n 'Deva' => 'devanagar',\n 'Diak' => 'divesakuruisht',\n 'Dogr' => 'dograisht',\n 'Dsrt' => 'deseretisht',\n 'Dupl' => 'duplojanisht - formë e shkurtër',\n 'Egyp' => 'hieroglife egjiptiane',\n 'Elb", "middle": " 'Cari' => 'karianisht',\n 'Cham' => 'çam',\n 'Cher' => 'çeroki',\n 'Chrs' => 'korasmianisht',\n 'Copt' => 'koptisht',\n 'Cpmn' => 'minoishte e Qipros',\n 'Cprt' => 'qipriotisht',\n 'Cyr", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sq.php", "language": "php", "file_size": 5718, "cut_index": 716, "middle_length": 229}} {"prefix": " 'Aran' => 'насталик',\n 'Armi' => 'империјско арамејско писмо',\n 'Armn' => 'јерменско писмо',\n 'Avst' => 'авестанско писмо',\n 'Bali' => 'балијско писмо',\n 'Batk' => 'батак писмо',\n 'Beng' => 'бенгалско писмо',\n 'Blis' => 'блисимболично писмо',\n 'Bopo' => 'бопомофо писмо',\n 'Brah' => 'браманско писмо',\n 'Brai' => 'брајево писмо',\n 'Bugi' => 'бугинско писмо',\n 'Buhd' => 'бухидско писмо',\n 'Cakm' => 'чакма',\n 'Can", "suffix": " => 'кипарско писмо',\n 'Cyrl' => 'ћирилица',\n 'Cyrs' => 'Старословенска црквена ћирилица',\n 'Deva' => 'деванагари',\n 'Dsrt' => 'Дезерет',\n 'Egyd' => 'египатско народно писмо',\n 'Egyh' => 'египатско хијератско писмо", "middle": "s' => 'уједињени канадски абориџински силабици',\n 'Cari' => 'каријско писмо',\n 'Cham' => 'чамско писмо',\n 'Cher' => 'чероки',\n 'Cirt' => 'цирт писмо',\n 'Copt' => 'коптичко писмо',\n 'Cprt'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sr.php", "language": "php", "file_size": 6682, "cut_index": 614, "middle_length": 229}} {"prefix": " 'Aran' => 'nastalik',\n 'Armi' => 'imperijsko aramejsko pismo',\n 'Armn' => 'jermensko pismo',\n 'Avst' => 'avestansko pismo',\n 'Bali' => 'balijsko pismo',\n 'Batk' => 'batak pismo',\n 'Beng' => 'bengalsko pismo',\n 'Blis' => 'blisimbolično pismo',\n 'Bopo' => 'bopomofo pismo',\n 'Brah' => 'bramansko pismo',\n 'Brai' => 'brajevo pismo',\n 'Bugi' => 'buginsko pismo',\n 'Buhd' => 'buhidsko pismo',\n 'Cakm' => 'čakma',\n 'Can", "suffix": "t' => 'kiparsko pismo',\n 'Cyrl' => 'ćirilica',\n 'Cyrs' => 'Staroslovenska crkvena ćirilica',\n 'Deva' => 'devanagari',\n 'Dsrt' => 'Dezeret',\n 'Egyd' => 'egipatsko narodno pismo',\n 'Egyh' => 'egipatsko hijeratsko pis", "middle": "s' => 'ujedinjeni kanadski aboridžinski silabici',\n 'Cari' => 'karijsko pismo',\n 'Cham' => 'čamsko pismo',\n 'Cher' => 'čeroki',\n 'Cirt' => 'cirt pismo',\n 'Copt' => 'koptičko pismo',\n 'Cpr", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sr_Latn.php", "language": "php", "file_size": 4950, "cut_index": 614, "middle_length": 229}} {"prefix": "' => 'nastaliq',\n 'Armi' => 'imperisk arameiska',\n 'Armn' => 'armeniska',\n 'Avst' => 'avestiska',\n 'Bali' => 'balinesiska',\n 'Bamu' => 'bamunska',\n 'Bass' => 'bassaiska vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengaliska',\n 'Bhks' => 'bhaiksukiska',\n 'Blis' => 'blissymboler',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brami',\n 'Brai' => 'punktskrift',\n 'Bugi' => 'buginesiska',\n 'Buhd' => 'buhid',\n 'Cakm' => ", "suffix": "ka',\n 'Cpmn' => 'cypro-minoisk skrift',\n 'Cprt' => 'cypriotiska',\n 'Cyrl' => 'kyrilliska',\n 'Cyrs' => 'fornkyrkoslavisk kyrilliska',\n 'Deva' => 'devanagari',\n 'Diak' => 'dives akuru',\n 'Dogr' => 'dogriska',\n", "middle": "'chakma',\n 'Cans' => 'kanadensiska stavelsetecken',\n 'Cari' => 'kariska',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Chrs' => 'khwarezmiska',\n 'Cirt' => 'cirt',\n 'Copt' => 'koptis", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sv.php", "language": "php", "file_size": 6272, "cut_index": 716, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Kiadlamu',\n 'Arab' => 'Kiarabu',\n 'Aran' => 'Kinastaliki',\n 'Armn' => 'Kiarmenia',\n 'Beng' => 'Kibengali',\n 'Bopo' => 'Kibopomofo',\n 'Brai' => 'Nukta nundu',\n 'Cakm' => 'Kichakma',\n 'Cans' => 'Silabi Zilizounganishwa za Wakazi Asili wa Kanada',\n 'Cher' => 'Kicherokee',\n 'Cyrl' => 'Kisiriliki',\n 'Deva' => 'Kidevanagari',\n 'Ethi' => 'Kiethiopia',\n 'Geor' => 'Kijojia',\n 'Grek' => 'Kigiri", "suffix": " 'Hebr' => 'Kiebrania',\n 'Hira' => 'Hiragana',\n 'Hrkt' => 'Hati za Kijapani',\n 'Jpan' => 'Kijapani',\n 'Kana' => 'Kikatakana',\n 'Khmr' => 'Kikambodia',\n 'Knda' => 'Kikannada',\n 'Kore' => 'Kikorea',\n ", "middle": "ki',\n 'Gujr' => 'Kigujarati',\n 'Guru' => 'Kigurmukhi',\n 'Hanb' => 'Kihan chenye Bopomofo',\n 'Hang' => 'Kihangul',\n 'Hani' => 'Kihan',\n 'Hans' => 'Rahisi',\n 'Hant' => 'Cha jadi',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sw.php", "language": "php", "file_size": 1812, "cut_index": 537, "middle_length": 229}} {"prefix": "<?php\n\nreturn [\n 'Names' => [\n 'Beng' => 'Kibangla',\n 'Brai' => 'Breli',\n 'Cans' => 'Silabi za Asili Zilizounganishwa za Kanada',\n 'Cher' => 'Kicherokii',\n 'Cyrl' => 'Kikrili',\n 'Ethi' => 'Kihabeshi',\n 'Hanb' => 'Kihan chenye Kibopomofo',\n 'Hans' => 'Kilichorahisishwa',\n 'Hira' => 'Kihiragana',\n 'Hrkt' => 'Silabi za Kijapani',\n 'Jamo' => 'Kijamo',\n 'Khmr' => 'Kikhema',\n 'Mtei' => 'Kimeiteimayek',\n 'Mymr' => ", "suffix": " 'Nkoo' => 'Kiin’ko',\n 'Olck' => 'Kiolchiki',\n 'Orya' => 'Kiodia',\n 'Sund' => 'Kisundani',\n 'Syrc' => 'Kisiria',\n 'Taml' => 'Kitamili',\n 'Yiii' => 'Kiiyi',\n 'Zmth' => 'Mwandiko wa kihisabati',\n ],\n];", "middle": "'Kimyanma',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/sw_KE.php", "language": "php", "file_size": 785, "cut_index": 512, "middle_length": 14}} {"prefix": "n' => 'நஸ்டாலிக்',\n 'Armi' => 'இம்பேரியல் அரமெய்க்',\n 'Armn' => 'அர்மேனியன்',\n 'Avst' => 'அவெஸ்தான்',\n 'Bali' => 'பாலினீஸ்',\n 'Batk' => 'பாடாக்',\n 'Beng' => 'வங்காளம்',\n 'Blis' => 'ப்லிஸ்ஸிமிபால்ஸ்',\n 'Bopo' => 'போபோமோஃபோ',\n 'Brah' => 'பிரம்மி',\n 'Brai' => 'பிரெயில்',\n 'Bugi' => 'புகினீஸ்',\n 'Buhd' => 'புகித்',\n 'Cakm' => 'சக்மா',\n 'Cans' => 'ஒருங்கிணைக்கப்பட்ட கனடிய பழங்குடி எழுத்துகள்',\n 'Cari' => 'கரி", "suffix": "்',\n 'Deva' => 'தேவநாகரி',\n 'Dsrt' => 'டெசராட்',\n 'Egyd' => 'எகிப்தியன் டெமோட்டிக்',\n 'Egyh' => 'எகிப்தியன் ஹைரேட்டிக்',\n 'Egyp' => 'எகிப்தியன் ஹைரோகிளிப்ஸ்',\n 'Ethi' => 'எத்தியோபிக்',\n 'Geok' => 'ஜியார்ஜியன", "middle": "யன்',\n 'Cham' => 'சாம்',\n 'Cher' => 'செரோக்கி',\n 'Cirt' => 'கிர்த்',\n 'Copt' => 'காப்டிக்',\n 'Cprt' => 'சைப்ரியாட்',\n 'Cyrl' => 'சிரிலிக்',\n 'Cyrs' => 'பழைய சர்ச் ஸ்லவோனிக் சிரிலிக", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ta.php", "language": "php", "file_size": 6982, "cut_index": 614, "middle_length": 229}} {"prefix": "n' => 'నాస్టాలిక్',\n 'Armi' => 'ఇంపీరియల్ అరామాక్',\n 'Armn' => 'అర్మేనియన్',\n 'Avst' => 'అవేస్టాన్',\n 'Bali' => 'బాలినీస్',\n 'Batk' => 'బాటక్',\n 'Beng' => 'బాంగ్లా',\n 'Blis' => 'బ్లిస్సింబల్స్',\n 'Bopo' => 'బోపోమోఫో',\n 'Brah' => 'బ్రాహ్మి',\n 'Brai' => 'బ్రెయిలీ',\n 'Bugi' => 'బ్యుగినీస్',\n 'Buhd' => 'బుహిడ్',\n 'Cakm' => 'చక్మా',\n 'Cans' => 'యునిఫైడ్ కెనెడియన్ అబొరిజినల్ సిలబిక్స్',\n 'Cari' => 'కారియన్',\n ", "suffix": " 'Deva' => 'దేవనాగరి',\n 'Dsrt' => 'డేసెరెట్',\n 'Egyd' => 'ఇజిప్షియన్ డెమోటిక్',\n 'Egyh' => 'ఇజిప్షియన్ హైరాటిక్',\n 'Egyp' => 'ఇజిప్షియన్ హైరోగ్లైఫ్స్',\n 'Ethi' => 'ఇథియోపిక్',\n 'Geok' => 'జార్జియన్ ఖట్సూరి',\n ", "middle": " 'Cham' => 'చామ్',\n 'Cher' => 'చెరకీ',\n 'Cirt' => 'సిర్థ్',\n 'Copt' => 'కోప్టిక్',\n 'Cprt' => 'సైప్రోట్',\n 'Cyrl' => 'సిరిలిక్',\n 'Cyrs' => 'ప్రాచీన చర్చ స్లావోనిక్ సిరిలిక్',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/te.php", "language": "php", "file_size": 6769, "cut_index": 614, "middle_length": 229}} {"prefix": "мейкии Империалӣ',\n 'Armn' => 'Арманӣ',\n 'Avst' => 'Авестоӣ',\n 'Bali' => 'Балинесӣ',\n 'Bamu' => 'Бамумӣ',\n 'Bass' => 'Басса Вахӣ',\n 'Batk' => 'Батакӣ',\n 'Beng' => 'Бангладешӣ',\n 'Bhks' => 'Бхайксукӣ',\n 'Bopo' => 'Бопомофоӣ',\n 'Brah' => 'Брахмӣ',\n 'Brai' => 'Брайл',\n 'Bugi' => 'Бугинӣ',\n 'Buhd' => 'Бухидӣ',\n 'Cakm' => 'Чакама',\n 'Cans' => 'Низоми ягонаи ҳиҷои аборигении каннадӣ',\n 'Cari' => 'Кариан", "suffix": "ванагарӣ',\n 'Diak' => 'Дивс Акуру',\n 'Dogr' => 'Догра',\n 'Dsrt' => 'Дезерет',\n 'Dupl' => 'Стенографияи Дуплоянӣ',\n 'Egyp' => 'Иероглифҳои Мисрӣ',\n 'Elba' => 'Элбасан',\n 'Elym' => 'Элимайӣ',\n 'Ethi' =>", "middle": "ӣ',\n 'Cham' => 'Чамӣ',\n 'Cher' => 'Черокӣ',\n 'Chrs' => 'Хоразмиёнӣ',\n 'Copt' => 'Коптӣ',\n 'Cpmn' => 'Кипро-Миноанӣ',\n 'Cprt' => 'Кипрӣ',\n 'Cyrl' => 'Кириллӣ',\n 'Deva' => 'Де", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/tg.php", "language": "php", "file_size": 6799, "cut_index": 716, "middle_length": 229}} {"prefix": " => 'اَرمانیَن',\n 'Avst' => 'اَویستَن',\n 'Bali' => 'بالَنیٖز',\n 'Batk' => 'باتَک',\n 'Beng' => 'بینگٲلؠ',\n 'Blis' => 'بِلِس سِمبلز',\n 'Bopo' => 'بوپوموفو',\n 'Brah' => 'براہمی',\n 'Brai' => 'بریل',\n 'Bugi' => 'بُگِنیٖز',\n 'Buhd' => 'بُہِد',\n 'Cans' => 'یُنِفایِڑ کنیڑِیَن ایب آرجِنَل سِلیبِک',\n 'Cari' => 'کاریَن',\n 'Cham' => 'چَم',\n 'Cher' => 'چیروکی',\n 'Cirt' => 'کِرتھ',\n 'Copt' => 'کاپٹِک',\n ", "suffix": "ریٹِک',\n 'Egyp' => 'اِجِپشَن ہَیروگلِپھس',\n 'Ethi' => 'اِتھیوپِک',\n 'Geok' => 'جارجِیَن کھتسوری',\n 'Geor' => 'جارجِیَن',\n 'Glag' => 'گلیگولِٹِک',\n 'Goth' => 'گوتھِک',\n 'Grek' => 'گرَنتھا',\n 'Gujr' => ", "middle": "'Cprt' => 'کِپرایِٹ',\n 'Cyrl' => 'سَیرِلِک',\n 'Cyrs' => 'پرون چٔرچسلیوونِک سَیرِلِک',\n 'Deva' => 'دیوناگری',\n 'Dsrt' => 'ڈیسٔریٹ',\n 'Egyd' => 'اِجپشِیَن ڈِماٹِک',\n 'Egyh' => 'اِجِپشَن ہَی", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ks.php", "language": "php", "file_size": 5121, "cut_index": 614, "middle_length": 229}} {"prefix": "'Avst' => 'Avestesch',\n 'Bali' => 'Balinesesch',\n 'Batk' => 'Battakesch',\n 'Beng' => 'Bengalesch',\n 'Blis' => 'Bliss-Symboler',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Blanneschrëft',\n 'Bugi' => 'Buginesesch',\n 'Buhd' => 'Buhid',\n 'Cans' => 'UCAS',\n 'Cari' => 'Karesch',\n 'Cher' => 'Cherokee',\n 'Cirt' => 'Cirth',\n 'Copt' => 'Koptesch',\n 'Cprt' => 'Zypriotesch',\n 'Cyrl' => 'Kyrillesc", "suffix": ",\n 'Ethi' => 'Ethiopesch',\n 'Geok' => 'Khutsuri',\n 'Geor' => 'Georgesch',\n 'Glag' => 'Glagolitesch',\n 'Goth' => 'Gotesch',\n 'Grek' => 'Griichesch',\n 'Gujr' => 'Gujarati',\n 'Guru' => 'Gurmukhi',\n ", "middle": "h',\n 'Cyrs' => 'Alkiercheslawesch',\n 'Deva' => 'Devanagari',\n 'Dsrt' => 'Deseret',\n 'Egyd' => 'Egyptesch-Demotesch',\n 'Egyh' => 'Egyptesch-Hieratesch',\n 'Egyp' => 'Egyptesch Hieroglyphen'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/lb.php", "language": "php", "file_size": 3884, "cut_index": 614, "middle_length": 229}} {"prefix": "b' => 'ອາຣາບິກ',\n 'Aran' => 'ນາສຕໍລິກ (ຄຳໃບ້ການແປ: ລະຫັດພິເສດກຳນົດຮູບແບບຕົວໜັງສືອາຣັບ.)',\n 'Armi' => 'ອິມພີຮຽນ ອາເມອິກ',\n 'Armn' => 'ອາເມນຽນ',\n 'Avst' => 'ອະເວສຕະ',\n 'Bali' => 'ບາລີ',\n 'Bamu' => 'ບາມູມ',\n 'Bass' => 'ບັດຊາ',\n 'Batk' => 'ບາຕັກ',\n 'Beng' => 'ເບັງກາ',\n 'Blis' => 'ບລິກຊິມໂບລສ',\n 'Bopo' => 'ຈູ້ອິນ',\n 'Brah' => 'ພຮາຫມີ',\n 'Brai' => 'ເບຣວ',\n 'Bugi' => 'ບູກິສ',\n 'Buhd' => 'ບູຮິດ',\n 'Cakm' ", "suffix": " 'Cyrl' => 'ຊີຣິວລິກ',\n 'Cyrs' => 'ເຊຮັດສລາ ໂວນິກຊີຮິກລິກໂບຮານ',\n 'Deva' => 'ດີວານາກາຣີ',\n 'Dsrt' => 'ເດເຊເຮ',\n 'Dupl' => 'ຊົວເລດັບໂລຍັນ',\n 'Egyd' => 'ດີໂມຕິກອີຍິບ',\n 'Egyh' => 'ເຮຍຮາຕິກອີຍິບ',\n 'Egyp' ", "middle": "=> 'ຊາກມາ',\n 'Cans' => 'ສັນຍາລັກຊົນເຜົ່າພື້ນເມືອງແຄນນາດາ',\n 'Cari' => 'ຄາເຮຍ',\n 'Cham' => 'ຈາມ',\n 'Cher' => 'ເຊໂຣກີ',\n 'Cirt' => 'ເຊີຮ',\n 'Copt' => 'ຄອບຕິກ',\n 'Cprt' => 'ໄຊເປຍ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/lo.php", "language": "php", "file_size": 7682, "cut_index": 614, "middle_length": 229}} {"prefix": " 'Arab',\n 'Aran',\n 'Armi',\n 'Armn',\n 'Avst',\n 'Bali',\n 'Bamu',\n 'Bass',\n 'Batk',\n 'Beng',\n 'Berf',\n 'Bhks',\n 'Blis',\n 'Bopo',\n 'Brah',\n 'Brai',\n 'Bugi',\n 'Buhd',\n 'Cakm',\n 'Cans',\n 'Cari',\n 'Cham',\n 'Cher',\n 'Chrs',\n 'Cirt',\n 'Copt',\n 'Cpmn',\n 'Cprt',\n 'Cyrl',\n 'Cyrs',\n 'Deva',\n 'Diak',\n ", "suffix": "'Gonm',\n 'Goth',\n 'Gran',\n 'Grek',\n 'Gujr',\n 'Gukh',\n 'Guru',\n 'Hanb',\n 'Hang',\n 'Hani',\n 'Hano',\n 'Hans',\n 'Hant',\n 'Hatr',\n 'Hebr',\n 'Hira',\n ", "middle": " 'Dogr',\n 'Dsrt',\n 'Dupl',\n 'Egyd',\n 'Egyh',\n 'Egyp',\n 'Elba',\n 'Elym',\n 'Ethi',\n 'Gara',\n 'Geok',\n 'Geor',\n 'Glag',\n 'Gong',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/meta.php", "language": "php", "file_size": 3437, "cut_index": 614, "middle_length": 229}} {"prefix": "𞤫𞤪𞤭𞤴𞤢𞤤',\n 'Armn' => '𞤀𞤪𞤥𞤫𞤲𞤭𞤴𞤢𞤲',\n 'Avst' => '𞤀𞤾𞤫𞤧𞤼𞤢𞤲',\n 'Bali' => '𞤄𞤢𞤤𞤭𞤲𞤭𞥅𞤧',\n 'Bamu' => '𞤄𞤢𞤥𞤵',\n 'Bass' => '𞤄𞤢𞤧𞤢𞥄 𞤜𞤢𞥄',\n 'Batk' => '𞤄𞤢𞤼𞤢𞤳',\n 'Beng' => '𞤄𞤫𞤲𞤺𞤢𞤤𞤭',\n 'Bhks' => '𞤄𞤢𞤴𞤳𞤵𞤧𞤵𞤳𞤭',\n 'Bopo' => '𞤄𞤮𞤨𞤮𞤥𞤮𞤬𞤮',\n 'Brah' => '𞤄𞤪𞤢𞤸𞤢𞤥𞤭',\n 'Brai' => '𞤄𞤢𞤪𞤢𞤭𞥅𞤤𞤵',\n 'Bugi' => '𞤄𞤵𞤺𞤭𞤲𞤭𞤴𞤢',\n 'Buhd' => '𞤄𞤵𞤸𞤭𞤣',\n 'Cakm' => '𞤕𞤢𞤳𞤥𞤢',\n 'Cans' => '𞤑𞤢𞤱𞤪𞤢𞤤 𞤅𞤭𞤺𞤢𞤲𞤯𞤫 𞤚𞤢𞥄𞤳𞤢𞤲𞤶𞤫 𞤑𞤢𞤲𞤢𞤣𞤢𞥄',\n 'Cari' => '𞤑𞤢𞤪𞤭𞤴𞤢𞤲',\n 'Cham'", "suffix": " 'Diak' => '𞤁𞤭𞤾𞤫𞥅𞤧 𞤀𞤳𞤵𞤪𞤵',\n 'Dogr' => '𞤁𞤮𞤺𞤪𞤢',\n 'Dsrt' => '𞤁𞤫𞤧𞤫𞤪𞤫𞤼',\n 'Dupl' => '𞤁𞤵𞤨𞤤𞤮𞤴𞤢𞤲 𞤅𞤮𞥅𞤪𞤼𞤤𞤢𞤲𞤣',\n 'Egyp' => '𞤖𞤭𞤪𞤮𞤺𞤭𞤪𞤬𞤵 𞤃𞤭𞤧𞤭𞤪𞤢',\n 'Elba' => '𞤉𞤤𞤦𞤢𞤧𞤢𞤲',\n 'Elym' => '𞤉𞤤𞤴𞤥𞤢𞤴𞤳',\n 'Ethi' => '𞤖𞤢𞤦𞤢𞤧𞤭𞤲𞤳𞤮',\n ", "middle": " => '𞤕𞤢𞥄𞤥',\n 'Cher' => '𞤕𞤫𞤪𞤮𞤳𞤭𞥅',\n 'Chrs' => '𞤑𞤮𞤪𞤢𞥄𞤧𞤥𞤭𞤴𞤢',\n 'Copt' => '𞤑𞤭𞤦𞤯𞤭𞤲𞤳𞤮',\n 'Cpmn' => '𞤅𞤭𞥅𞤨𞤪𞤮 𞤃𞤭𞤲𞤮𞤴𞤢',\n 'Cprt' => '𞤑𞤵𞤦𞤭𞤪𞤧𞤵',\n 'Cyrl' => '𞤅𞤭𞤪𞤤𞤭𞤳',\n 'Deva' => '𞤁𞤫𞤾𞤢𞤲𞤢𞤺𞤢𞤪𞤭',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ff_Adlm.php", "language": "php", "file_size": 9922, "cut_index": 716, "middle_length": 229}} {"prefix": " => 'Armenia',\n 'Avst' => 'Avesta',\n 'Bamu' => 'Bamum',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Bengali',\n 'Bhks' => 'Bhaiksuki',\n 'Blis' => 'Blissymbol',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'Bugis',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Simbol Aborigin Kanada Kesatuan',\n 'Cari' => 'Karia',\n 'Cher' => 'Cherokee',\n 'Chrs", "suffix": " => 'Dewanagari',\n 'Diak' => 'Dives Akuru',\n 'Dogr' => 'Dogra',\n 'Dsrt' => 'Deseret',\n 'Dupl' => 'Stenografi Duployan',\n 'Egyd' => 'Demotik Mesir',\n 'Egyh' => 'Hieratik Mesir',\n 'Egyp' => 'Hieroglip Mesir',\n", "middle": "' => 'Chorasmian',\n 'Cirt' => 'Cirth',\n 'Copt' => 'Koptik',\n 'Cpmn' => 'Cypro-Minoan',\n 'Cprt' => 'Siprus',\n 'Cyrl' => 'Sirilik',\n 'Cyrs' => 'Gereja Slavonia Sirilik Lama',\n 'Deva'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/id.php", "language": "php", "file_size": 5936, "cut_index": 716, "middle_length": 229}} {"prefix": " => 'Armenia',\n 'Avst' => 'Avesta',\n 'Bamu' => 'Bamum',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Bengali',\n 'Bhks' => 'Bhaiksuki',\n 'Blis' => 'Blissymbol',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'Bugis',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Simbol Aborigin Kanada Kesatuan',\n 'Cari' => 'Karia',\n 'Cher' => 'Cherokee',\n 'Chrs", "suffix": " => 'Dewanagari',\n 'Diak' => 'Dives Akuru',\n 'Dogr' => 'Dogra',\n 'Dsrt' => 'Deseret',\n 'Dupl' => 'Stenografi Duployan',\n 'Egyd' => 'Demotik Mesir',\n 'Egyh' => 'Hieratik Mesir',\n 'Egyp' => 'Hieroglip Mesir',\n", "middle": "' => 'Chorasmian',\n 'Cirt' => 'Cirth',\n 'Copt' => 'Koptik',\n 'Cpmn' => 'Cypro-Minoan',\n 'Cprt' => 'Siprus',\n 'Cyrl' => 'Sirilik',\n 'Cyrs' => 'Gereja Slavonia Sirilik Lama',\n 'Deva'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/in.php", "language": "php", "file_size": 5936, "cut_index": 716, "middle_length": 229}} {"prefix": "ramaico imperiale',\n 'Armn' => 'armeno',\n 'Avst' => 'avestico',\n 'Bali' => 'balinese',\n 'Bamu' => 'bamum',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengalese',\n 'Blis' => 'simboli bliss',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'braille',\n 'Bugi' => 'buginese',\n 'Buhd' => 'buhid',\n 'Cakm' => 'chakma',\n 'Cans' => 'sillabario aborigeno canadese unificato',\n 'Cari' => 'c", "suffix": "ca',\n 'Deva' => 'devanagari',\n 'Dsrt' => 'deseret',\n 'Dupl' => 'stenografia duployan',\n 'Egyd' => 'egiziano demotico',\n 'Egyh' => 'ieratico egiziano',\n 'Egyp' => 'geroglifici egiziani',\n 'Ethi' => 'etiope',\n", "middle": "arian',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Cirt' => 'cirth',\n 'Copt' => 'copto',\n 'Cprt' => 'cipriota',\n 'Cyrl' => 'cirillico',\n 'Cyrs' => 'cirillico antica chiesa slavoni", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/it.php", "language": "php", "file_size": 5273, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'カフカス・アルバニア文字',\n 'Arab' => 'アラビア文字',\n 'Aran' => 'ナスタアリーク体',\n 'Armi' => '帝国アラム文字',\n 'Armn' => 'アルメニア文字',\n 'Avst' => 'アヴェスター文字',\n 'Bali' => 'バリ文字',\n 'Bamu' => 'バムン文字',\n 'Bass' => 'バサ文字',\n 'Batk' => 'バタク文字',\n 'Beng' => 'ベンガル文字',\n 'Blis' => 'ブリスシンボル',\n 'Bopo' => '注音字母',\n 'Brah' => 'ブラーフミー文字',\n 'Brai' => 'ブライユ点字',\n 'Bugi' => 'ブギス文字',\n 'Buhd' => 'ブヒッド文字',\n 'Cakm' => 'チャクマ文字',\n 'Cans' ", "suffix": "'古代教会スラブ語キリル文字',\n 'Deva' => 'デーバナーガリー文字',\n 'Dsrt' => 'デセレット文字',\n 'Dupl' => 'デュプロワエ式速記',\n 'Egyd' => 'エジプト民衆文字',\n 'Egyh' => 'エジプト神官文字',\n 'Egyp' => 'エジプト聖刻文字',\n 'Elba' => 'エルバサン文字',\n 'Ethi' => 'エチオピア文字',", "middle": "=> '統合カナダ先住民音節文字',\n 'Cari' => 'カリア文字',\n 'Cham' => 'チャム文字',\n 'Cher' => 'チェロキー文字',\n 'Cirt' => 'キアス文字',\n 'Copt' => 'コプト文字',\n 'Cprt' => 'キプロス文字',\n 'Cyrl' => 'キリル文字',\n 'Cyrs' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ja.php", "language": "php", "file_size": 7076, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Adlam',\n 'Arab' => 'hija’iyah',\n 'Aran' => 'Nastalik',\n 'Armn' => 'Armenia',\n 'Beng' => 'Bangla',\n 'Bopo' => 'Bopomofo',\n 'Brai' => 'Braille',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Wanda Manunggal Aborigin Kanada',\n 'Cher' => 'Sherokee',\n 'Cyrl' => 'Sirilik',\n 'Deva' => 'Devanagari',\n 'Ethi' => 'Ethiopik',\n 'Geor' => 'Georgia',\n 'Grek' => 'Yunani',\n 'Gujr' => 'Gujarati',\n 'Gu", "suffix": "ana',\n 'Hrkt' => 'Silabaris Jepang',\n 'Jpan' => 'Jepang',\n 'Kana' => 'Katakana',\n 'Khmr' => 'Khmer',\n 'Knda' => 'Kannada',\n 'Kore' => 'Korea',\n 'Laoo' => 'Lao',\n 'Latn' => 'Latin',\n 'Mlym' => '", "middle": "ru' => 'Gurmukhi',\n 'Hanb' => 'Han nganggo Bopomofo',\n 'Hang' => 'Hangul',\n 'Hani' => 'Han',\n 'Hans' => 'Prasaja',\n 'Hant' => 'Tradhisional',\n 'Hebr' => 'Ibrani',\n 'Hira' => 'Hirag", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/jv.php", "language": "php", "file_size": 1706, "cut_index": 537, "middle_length": 229}} {"prefix": " 'Armi' => 'ارامەي جازۋى',\n 'Armn' => 'ارميان جازۋى',\n 'Avst' => 'اۆەستا جازۋى',\n 'Bali' => 'بالي جازۋى',\n 'Bamu' => 'بامۋم جازۋى',\n 'Bass' => 'باسسا جازۋى',\n 'Batk' => 'باتاك جازۋى',\n 'Beng' => 'بەنگال جازۋى',\n 'Berf' => 'زاگاۋا جازۋى',\n 'Bhks' => 'بحايسۋكى جازۋى',\n 'Bopo' => 'بوپوموفو جازۋى',\n 'Brah' => 'براحمي جازۋى',\n 'Brai' => 'برايل جازۋى',\n 'Bugi' => 'بۋگي جازۋى',\n 'Buhd' => 'بۋحيد جازۋى',\n 'Cak", "suffix": "',\n 'Cpmn' => 'كيپر-مينوي جازۋى',\n 'Cprt' => 'كيپر جازۋى',\n 'Cyrl' => 'كيريل جازۋى',\n 'Cyrs' => 'كونە ورىس جازۋى',\n 'Deva' => 'دەۆاناگاري جازۋى',\n 'Diak' => 'ديۆەحي اكۋرۋ جازۋى',\n 'Dogr' => 'دوگرا جازۋى',\n ", "middle": "m' => 'چاكما جازۋى',\n 'Cans' => 'كانادالىق بۋىن جۇيەلى جازۋ',\n 'Cari' => 'كاري جازۋى',\n 'Cham' => 'چام جازۋى',\n 'Cher' => 'چەروكي جازۋى',\n 'Chrs' => 'حورەزم جازۋى',\n 'Copt' => 'كوپت جازۋى", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/kk_Arab.php", "language": "php", "file_size": 9053, "cut_index": 716, "middle_length": 229}} {"prefix": "n' => 'നസ്‌റ്റാലിക്',\n 'Armi' => 'അർമി',\n 'Armn' => 'അർമേനിയൻ',\n 'Avst' => 'അവെസ്ഥൻ',\n 'Bali' => 'ബാലിനീസ്',\n 'Batk' => 'ബട്ടക്',\n 'Beng' => 'ബംഗാളി',\n 'Blis' => 'ബ്ലിസ് ചിത്ര ലിപി',\n 'Bopo' => 'ബോപ്പോമോഫോ',\n 'Brah' => 'ബ്രാഹ്മി',\n 'Brai' => 'ബ്രെയ്‌ലി',\n 'Bugi' => 'ബുഗിനീസ്',\n 'Buhd' => 'ബുഹിഡ്',\n 'Cakm' => 'ചക്മ',\n 'Cans' => 'ഏകീകൃത കനേഡിയൻ ഗോത്രലിപി',\n 'Cari' => 'ചരിയൻ',\n 'Cham' => 'ഛം',\n ", "suffix": "ി',\n 'Dsrt' => 'ഡെസെർട്ട്',\n 'Egyd' => 'ഈജിപ്ഷ്യൻ ഡിമോട്ടിക്',\n 'Egyh' => 'ഈജിപ്ഷ്യൻ ഹിരാറ്റിക്',\n 'Egyp' => 'ഈജിപ്ഷ്യൻ ചിത്രലിപി',\n 'Ethi' => 'എത്യോപിക്',\n 'Geok' => 'ജോർജ്ജിയൻ ഖുട്സുരി',\n 'Geor' => 'ജോർജ്ജ", "middle": " 'Cher' => 'ചെറോക്കി',\n 'Cirt' => 'ചിർത്ത്',\n 'Copt' => 'കോപ്റ്റിക്',\n 'Cprt' => 'സൈപ്രിയോട്ട്',\n 'Cyrl' => 'സിറിലിക്',\n 'Cyrs' => 'പുരാതന ചർച്ച് സ്ലവോണിക് സിറിലിക്',\n 'Deva' => 'ദേവനാഗര", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ml.php", "language": "php", "file_size": 6559, "cut_index": 614, "middle_length": 229}} {"prefix": "aramaică imperială',\n 'Armn' => 'armeană',\n 'Avst' => 'avestică',\n 'Bali' => 'balineză',\n 'Bamu' => 'bamum',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengaleză',\n 'Bhks' => 'bhaiksuki',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmanică',\n 'Brai' => 'braille',\n 'Bugi' => 'bugineză',\n 'Buhd' => 'buhidă',\n 'Cakm' => 'chakma',\n 'Cans' => 'silabică aborigenă canadiană unificată',\n 'Cari' => ", "suffix": " 'Cyrs' => 'chirilică slavonă bisericească veche',\n 'Deva' => 'devanagari',\n 'Diak' => 'dives akuru',\n 'Dogr' => 'dogra',\n 'Dsrt' => 'mormonă',\n 'Dupl' => 'stenografie duployană',\n 'Egyd' => 'demotică egipteană',\n", "middle": "'cariană',\n 'Cham' => 'cham',\n 'Cher' => 'cherokee',\n 'Chrs' => 'khorezmiană',\n 'Copt' => 'coptă',\n 'Cpmn' => 'cipro-minoană',\n 'Cprt' => 'cipriotă',\n 'Cyrl' => 'chirilică',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/mo.php", "language": "php", "file_size": 6048, "cut_index": 716, "middle_length": 229}} {"prefix": " 'Aran' => 'Nastaliq',\n 'Armi' => 'Aramia Imperial',\n 'Armn' => 'Armenia',\n 'Avst' => 'Avestan',\n 'Bali' => 'Bali',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Benggala',\n 'Bhks' => 'Bhaisuki',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'Bugis',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Suku Kata Orang Asli Kanada Bersatu',\n 'Cari' => 'Ca", "suffix": "ret',\n 'Dupl' => 'Trengkas Duployan',\n 'Egyp' => 'Hiroglif Mesir',\n 'Elba' => 'Elbasan',\n 'Elym' => 'Elymaic',\n 'Ethi' => 'Ethiopia',\n 'Geor' => 'Georgia',\n 'Glag' => 'Glagolitik',\n 'Gong' => 'Gunjala", "middle": "rian',\n 'Cham' => 'Cham',\n 'Cher' => 'Cherokee',\n 'Copt' => 'Coptic',\n 'Cprt' => 'Cypriot',\n 'Cyrl' => 'Cyril',\n 'Deva' => 'Devanagari',\n 'Dogr' => 'Dogra',\n 'Dsrt' => 'Dese", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ms.php", "language": "php", "file_size": 4912, "cut_index": 614, "middle_length": 229}} {"prefix": "' => '코카시안 알바니아 문자',\n 'Arab' => '아랍 문자',\n 'Aran' => '나스탈리크체',\n 'Armi' => '아랍제국 문자',\n 'Armn' => '아르메니아 문자',\n 'Avst' => '아베스타 문자',\n 'Bali' => '발리 문자',\n 'Bamu' => '바뭄 문자',\n 'Bass' => '바사바흐 문자',\n 'Batk' => '바타크 문자',\n 'Beng' => '벵골 문자',\n 'Blis' => '블리스기호 문자',\n 'Bopo' => '주음부호',\n 'Brah' => '브라미',\n 'Brai' => '브라유 점자',\n 'Bugi' => '부기 문자',\n 'Buhd' => '부히드 문자',\n 'Cakm' => '차크마 문자',\n 'Cans' => ", "suffix": "교회슬라브어 키릴문자',\n 'Deva' => '데바나가리 문자',\n 'Dsrt' => '디저렛 문자',\n 'Dupl' => '듀플로이안 문자',\n 'Egyd' => '고대 이집트 민중문자',\n 'Egyh' => '고대 이집트 신관문자',\n 'Egyp' => '고대 이집트 신성문자',\n 'Elba' => '엘바산 문자',\n 'Ethi' => '에티오피아 문자", "middle": "'통합 캐나다 원주민 음절문자',\n 'Cari' => '카리 문자',\n 'Cham' => '칸 고어',\n 'Cher' => '체로키 문자',\n 'Cirt' => '키르쓰',\n 'Copt' => '콥트 문자',\n 'Cprt' => '키프로스 문자',\n 'Cyrl' => '키릴 문자',\n 'Cyrs' => '고대", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ko.php", "language": "php", "file_size": 6587, "cut_index": 614, "middle_length": 229}} {"prefix": "amîya împeratorî',\n 'Armn' => 'ermenî',\n 'Avst' => 'avestayî',\n 'Bali' => 'balînî',\n 'Bamu' => 'bamumî',\n 'Bass' => 'bassa vah',\n 'Batk' => 'batakî',\n 'Beng' => 'bengalî',\n 'Berf' => 'beria erfe',\n 'Bhks' => 'bhaîksukî',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmî',\n 'Brai' => 'braille',\n 'Bugi' => 'bugî',\n 'Buhd' => 'buhid',\n 'Cakm' => 'çakmayî',\n 'Cans' => 'heceyên aborjînî yên kanadî yên yekgirtî", "suffix": "îlî',\n 'Cyrs' => 'slavonîka krîlî ya dêrê ya kevn',\n 'Deva' => 'devanagarî',\n 'Diak' => 'dives akuruyî',\n 'Dogr' => 'dograyî',\n 'Dsrt' => 'deseret',\n 'Dupl' => 'duployé stenografî',\n 'Egyp' => 'hîyeroglîfên ", "middle": "',\n 'Cari' => 'carian',\n 'Cham' => 'çamî',\n 'Cher' => 'çerokî',\n 'Chrs' => 'xwarezmî',\n 'Copt' => 'qiptî',\n 'Cpmn' => 'qibris-mînoanî',\n 'Cprt' => 'qibrisî',\n 'Cyrl' => 'kir", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ku.php", "language": "php", "file_size": 6328, "cut_index": 716, "middle_length": 229}} {"prefix": "perinė aramaikų',\n 'Armn' => 'armėnų',\n 'Avst' => 'avestano',\n 'Bali' => 'Baliečių',\n 'Bamu' => 'Bamum',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'batak',\n 'Beng' => 'bengalų',\n 'Blis' => '„Bliss“ simboliai',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'brailio',\n 'Bugi' => 'buginezų',\n 'Buhd' => 'buhid',\n 'Cakm' => 'čakma',\n 'Cans' => 'suvienodinti Kanados aborigenų silabiniai',\n 'Cari' => '", "suffix": " 'Deva' => 'devanagari',\n 'Dsrt' => 'deseretas',\n 'Dupl' => 'Duplojė stenografija',\n 'Egyd' => 'Egipto liaudies',\n 'Egyh' => 'Egipto žynių',\n 'Egyp' => 'egipto hieroglifai',\n 'Elba' => 'Elbasano',\n 'Ethi'", "middle": "karių',\n 'Cham' => 'čam',\n 'Cher' => 'čerokių',\n 'Cirt' => 'kirt',\n 'Copt' => 'koptų',\n 'Cprt' => 'kipro',\n 'Cyrl' => 'kirilica',\n 'Cyrs' => 'senoji bažnytinė slavų kirilica',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/lt.php", "language": "php", "file_size": 5390, "cut_index": 716, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'Arab' => 'arabe',\n 'Armn' => 'armenie',\n 'Beng' => 'bengalese',\n 'Bopo' => 'bopomofo',\n 'Brai' => 'braille',\n 'Cyrl' => 'cyrillic',\n 'Deva' => 'devanagari',\n 'Ethi' => 'ethiope',\n 'Geor' => 'georgian',\n 'Grek' => 'grec',\n 'Gujr' => 'gujarati',\n 'Guru' => 'gurmukhi',\n 'Hanb' => 'han con bopomofo',\n 'Hang' => 'hangul',\n 'Hani' => 'han',\n 'Hans' => 'simplificate',\n 'Hant", "suffix": "er',\n 'Knda' => 'kannada',\n 'Kore' => 'corean',\n 'Laoo' => 'lao',\n 'Latn' => 'latin',\n 'Mlym' => 'malayalam',\n 'Mong' => 'mongol',\n 'Mymr' => 'birman',\n 'Orya' => 'orya',\n 'Sinh' => 'cingalese'", "middle": "' => 'traditional',\n 'Hebr' => 'hebraic',\n 'Hira' => 'hiragana',\n 'Hrkt' => 'syllabarios japonese',\n 'Jamo' => 'jamo',\n 'Jpan' => 'japonese',\n 'Kana' => 'katakana',\n 'Khmr' => 'khm", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ia.php", "language": "php", "file_size": 1357, "cut_index": 524, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'adlam',\n 'Arab' => 'arabískt',\n 'Aran' => 'nastaliq',\n 'Armn' => 'armenskt',\n 'Bali' => 'balinesíska',\n 'Batk' => 'batakíska',\n 'Beng' => 'bengalskt',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmíska',\n 'Brai' => 'blindraletur',\n 'Cakm' => 'chakma',\n 'Cans' => 'samræmt kanadískt samstöfuletur frumbyggja',\n 'Cher' => 'cherokí',\n 'Copt' => 'koptíska',\n 'Cyrl' => 'kyrillískt',\n 'Deva'", "suffix": " 'Hani' => 'kínverskt',\n 'Hans' => 'einfaldað',\n 'Hant' => 'hefðbundið',\n 'Hebr' => 'hebreskt',\n 'Hira' => 'hiragana',\n 'Hrkt' => 'japönsk samstöfuletur',\n 'Jamo' => 'jamo',\n 'Java' => 'javanesíska',\n ", "middle": " => 'devanagari',\n 'Ethi' => 'eþíópískt',\n 'Geor' => 'georgískt',\n 'Grek' => 'grískt',\n 'Gujr' => 'gújaratí',\n 'Guru' => 'gurmukhi',\n 'Hanb' => 'hanb',\n 'Hang' => 'hangul',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/is.php", "language": "php", "file_size": 2013, "cut_index": 537, "middle_length": 229}} {"prefix": " => 'არაბული',\n 'Aran' => 'ნასტალიქი',\n 'Armi' => 'იმპერიული არამეული',\n 'Armn' => 'სომხური',\n 'Avst' => 'ავესტური',\n 'Bali' => 'ბალიური',\n 'Bamu' => 'ბამუმი',\n 'Bass' => 'ბასა ვაჰი',\n 'Batk' => 'ბატაკი',\n 'Beng' => 'ბენგალური',\n 'Blis' => 'ბლისსიმბოლოები',\n 'Bopo' => 'ბოპომოფო',\n 'Brah' => 'ბრაჰმი',\n 'Brai' => 'ბრაილი',\n 'Buhd' => 'ბუჰიდი',\n 'Cakm' => 'ჩაკმა',\n 'Cans' => 'გაერთიანებული კანადური ს", "suffix": "'ძველი სლავური კირილიცა',\n 'Deva' => 'დევანაგარი',\n 'Dsrt' => 'დეზერეტის',\n 'Dupl' => 'დუპლოის სტენოგრაფია',\n 'Egyd' => 'ეგვიპტური დემოტიკური',\n 'Egyh' => 'ეგვიპტური იერატიკული',\n 'Egyp' => 'ეგვიპტური იეროგლიფური',", "middle": "ილაბური',\n 'Cari' => 'კარიული',\n 'Cham' => 'ჩამი',\n 'Cher' => 'ჩეროკი',\n 'Cirt' => 'კირთი',\n 'Copt' => 'კოპტური',\n 'Cprt' => 'კვიპროსული',\n 'Cyrl' => 'კირილიცა',\n 'Cyrs' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ka.php", "language": "php", "file_size": 7530, "cut_index": 614, "middle_length": 229}} {"prefix": "mi' => 'царскоарамејски',\n 'Armn' => 'ерменско писмо',\n 'Avst' => 'авестанско',\n 'Bali' => 'балиско',\n 'Bamu' => 'бамумско',\n 'Bass' => 'баса',\n 'Batk' => 'батачко',\n 'Beng' => 'бенгалско писмо',\n 'Blis' => 'блиссимболи',\n 'Bopo' => 'бопомофо',\n 'Brah' => 'брами',\n 'Brai' => 'брајово писмо',\n 'Bugi' => 'бугиско',\n 'Buhd' => 'бухидско',\n 'Cakm' => 'чакманско',\n 'Cans' => 'канадско слоговно',\n 'Cari", "suffix": " кирилица',\n 'Deva' => 'деванагари',\n 'Dsrt' => 'дезеретско',\n 'Dupl' => 'Диплојеево стенографско',\n 'Egyd' => 'египетско демотско',\n 'Egyh' => 'египетско хиератско',\n 'Egyp' => 'египетски хиероглифи',\n 'Elb", "middle": "' => 'кариско',\n 'Cham' => 'чамско',\n 'Cher' => 'черокиско',\n 'Cirt' => 'кирт',\n 'Copt' => 'коптско',\n 'Cprt' => 'кипарско',\n 'Cyrl' => 'кирилско писмо',\n 'Cyrs' => 'старословенска", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/mk.php", "language": "php", "file_size": 7266, "cut_index": 716, "middle_length": 229}} {"prefix": " 'नस्तालीक',\n 'Armi' => 'इम्पिरियल आर्मेनिक',\n 'Armn' => 'अर्मेनियन',\n 'Avst' => 'अवेस्तान',\n 'Bali' => 'बाली',\n 'Batk' => 'बटाक',\n 'Beng' => 'बंगाली',\n 'Blis' => 'ब्लिसिम्बॉल्स',\n 'Bopo' => 'बोपोमोफो',\n 'Brah' => 'ब्रह्मी',\n 'Brai' => 'ब्रेल',\n 'Bugi' => 'बूगी',\n 'Buhd' => 'बुहिद',\n 'Cakm' => 'चकमा',\n 'Cans' => 'यूनिफाइड कॅनेडियन अ‍ॅबोरिजनल सिलॅबिक्स',\n 'Cari' => 'कॅरियन',\n 'Cham' => 'चाम',\n ", "suffix": " 'Dsrt' => 'डेसर्ट',\n 'Egyd' => 'इजिप्शियन डेमोटिक',\n 'Egyh' => 'इजिप्शियन हायरेटिक',\n 'Egyp' => 'इजिप्शियन हायरोग्लिफ्स',\n 'Ethi' => 'ईथिओपिक',\n 'Geok' => 'जॉर्जियन खुत्सुरी',\n 'Geor' => 'जॉर्जियन',\n 'Glag'", "middle": " 'Cher' => 'चेरोकी',\n 'Cirt' => 'किर्थ',\n 'Copt' => 'कॉप्टिक',\n 'Cprt' => 'सायप्रिऑट',\n 'Cyrl' => 'सीरिलिक',\n 'Cyrs' => 'पुरातन चर्च स्लाव्होनिक सिरिलिक',\n 'Deva' => 'देवनागरी',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/mr.php", "language": "php", "file_size": 6456, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Адлам (жазуу)',\n 'Arab' => 'Араб',\n 'Aran' => 'Насталик (Араб жазуусу)',\n 'Armn' => 'Армян',\n 'Beng' => 'Бенгал',\n 'Bopo' => 'Бопомофо',\n 'Brai' => 'Брейл',\n 'Cakm' => 'Чакма (жазуу)',\n 'Cans' => 'канадалык муун жазуусу',\n 'Cher' => 'чероки (жазуу)',\n 'Cyrl' => 'Кирилл',\n 'Deva' => 'Деванагари',\n 'Ethi' => 'Эфиоп',\n 'Geor' => 'Грузин',\n 'Grek' => 'Грек',\n 'Gujr' => 'Гужарати',\n", "suffix": "ана',\n 'Hrkt' => 'Жапон силлабографиясы',\n 'Jamo' => 'Джамо',\n 'Jpan' => 'Жапан',\n 'Kana' => 'Катакана',\n 'Khmr' => 'Кмер',\n 'Knda' => 'Каннада',\n 'Kore' => 'Корей',\n 'Laoo' => 'Лао',\n 'Latn' =", "middle": " 'Guru' => 'Гурмухи',\n 'Hanb' => 'Ханб',\n 'Hang' => 'Хангул',\n 'Hani' => 'Хань',\n 'Hans' => 'Жөнөкөйлөштүрүлгөн',\n 'Hant' => 'Салттуу',\n 'Hebr' => 'Иврит',\n 'Hira' => 'Хираг", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ky.php", "language": "php", "file_size": 2261, "cut_index": 537, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Atarama',\n 'Arab' => 'Arapika',\n 'Aran' => 'Nātarika',\n 'Armn' => 'Āmeniana',\n 'Beng' => 'Pāngara',\n 'Bopo' => 'Papamawha',\n 'Brai' => 'Tuhi Matapō',\n 'Cakm' => 'Tiakamā',\n 'Cans' => 'Ngā Kūoro o ngā Iwi Taketake o Kānata kua paiheretia',\n 'Cher' => 'Terokī',\n 'Cyrl' => 'Hīririki',\n 'Deva' => 'Tewhangāngari',\n 'Ethi' => 'Etiopika',\n 'Geor' => 'Hōriana',\n 'Grek' => 'Kariki',\n 'G", "suffix": " 'Hira' => 'Hirakana',\n 'Hrkt' => 'Kūoro Hapanihi',\n 'Jamo' => 'Hamo',\n 'Jpan' => 'Hapanihi',\n 'Kana' => 'Katakana',\n 'Khmr' => 'Kimēra',\n 'Knda' => 'Kanāra',\n 'Kore' => 'Kōreana',\n 'Laoo' => 'Ra", "middle": "ujr' => 'Kutarāti',\n 'Guru' => 'Kūmuki',\n 'Hanb' => 'Hana me te Papamawha',\n 'Hang' => 'Hāngū',\n 'Hani' => 'Hana',\n 'Hans' => 'Māmā',\n 'Hant' => 'Tuku iho',\n 'Hebr' => 'Hīperu',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/mi.php", "language": "php", "file_size": 1786, "cut_index": 537, "middle_length": 229}} {"prefix": "c',\n 'Armn' => 'Mkpụrụ ọkwụ Armenịan',\n 'Avst' => 'Avestan',\n 'Bali' => 'Balinese',\n 'Bamu' => 'Bamum',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Mkpụrụ ọkwụ Bangla',\n 'Bhks' => 'Bhaiksuki',\n 'Bopo' => 'Mkpụrụ ọkwụ Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'Buginese',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Unified Canadian Aboriginal Syllabics',\n ", "suffix": "rch Slavonic Cyrillic',\n 'Deva' => 'Mkpụrụ ọkwụ Devangarị',\n 'Diak' => 'Dives Akuru',\n 'Dogr' => 'Dogra',\n 'Dsrt' => 'Deseret',\n 'Dupl' => 'Duployan shorthand',\n 'Egyp' => 'Egyptian hieroglyphs',\n 'Elba' => ", "middle": "'Cari' => 'Carian',\n 'Cher' => 'Cherokee',\n 'Chrs' => 'Chorasmian',\n 'Copt' => 'Coptic',\n 'Cpmn' => 'Cypro-Minoan',\n 'Cprt' => 'Cypriot',\n 'Cyrl' => 'Cyrillic',\n 'Cyrs' => 'Old Chu", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ig.php", "language": "php", "file_size": 6037, "cut_index": 716, "middle_length": 229}} {"prefix": "i' => 'Арамайк',\n 'Armn' => 'армени',\n 'Avst' => 'Авестан',\n 'Bali' => 'Бали',\n 'Bamu' => 'Баму',\n 'Bass' => 'Басс',\n 'Batk' => 'Батк',\n 'Beng' => 'бенгал',\n 'Bhks' => 'Байксуки',\n 'Bopo' => 'вопомофо',\n 'Brah' => 'Брахми',\n 'Brai' => 'брайл',\n 'Bugi' => 'Бугинез',\n 'Buhd' => 'Бухид',\n 'Cakm' => 'Чакма бичиг',\n 'Cans' => 'Канадын уугуул иргэдийн тэмдэгт бичиг',\n 'Cari' => 'Кари',\n 'Cham' =>", "suffix": "'Diak' => 'Диак',\n 'Dogr' => 'Догра',\n 'Dsrt' => 'Дезерет',\n 'Dupl' => 'Дуплоян',\n 'Egyp' => 'Египетийн дүрс бичиг',\n 'Elba' => 'Элбасан',\n 'Elym' => 'Элимайк',\n 'Ethi' => 'этиоп',\n 'Geor' => 'гүрж',\n", "middle": " 'Чам',\n 'Cher' => 'Чероки бичиг',\n 'Chrs' => 'Корасми',\n 'Copt' => 'Коптик',\n 'Cpmn' => 'Кипр-Миноан',\n 'Cprt' => 'Киприот',\n 'Cyrl' => 'кирилл',\n 'Deva' => 'деванагари',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/mn.php", "language": "php", "file_size": 6700, "cut_index": 716, "middle_length": 229}} {"prefix": "'adlama',\n 'Arab' => 'arābu',\n 'Aran' => 'nastaliku',\n 'Armi' => 'aramiešu',\n 'Armn' => 'armēņu',\n 'Bali' => 'baliešu',\n 'Beng' => 'bengāļu',\n 'Bopo' => 'bopomofo',\n 'Brah' => 'brahmi',\n 'Brai' => 'Braila raksts',\n 'Cakm' => 'čakmu',\n 'Cans' => 'vienotā Kanādas aborigēnu zilbju rakstība',\n 'Cher' => 'irokēzu',\n 'Copt' => 'koptu',\n 'Cyrl' => 'kirilica',\n 'Cyrs' => 'senslāvu',\n 'Deva' => 'dēvanāgari", "suffix": " 'grieķu',\n 'Gujr' => 'gudžaratu',\n 'Guru' => 'pandžabu',\n 'Hanb' => 'haņu ar bopomofo',\n 'Hang' => 'hangils',\n 'Hani' => 'haņu',\n 'Hans' => 'vienkāršotā',\n 'Hant' => 'tradicionālā',\n 'Hebr' => 'ivrit", "middle": "',\n 'Egyd' => 'demotiskais raksts',\n 'Egyh' => 'hierātiskais raksts',\n 'Egyp' => 'ēģiptiešu hieroglifi',\n 'Ethi' => 'etiopiešu',\n 'Geor' => 'gruzīnu',\n 'Goth' => 'gotu',\n 'Grek' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/lv.php", "language": "php", "file_size": 2806, "cut_index": 563, "middle_length": 229}} {"prefix": " 'Armi' => 'арамей жазуы',\n 'Armn' => 'армян жазуы',\n 'Avst' => 'авеста жазуы',\n 'Bali' => 'балий жазуы',\n 'Bamu' => 'бамум жазуы',\n 'Bass' => 'басса жазуы',\n 'Batk' => 'батак жазуы',\n 'Beng' => 'бенгал жазуы',\n 'Bhks' => 'бхайксуки жазуы',\n 'Bopo' => 'бопомофо жазуы',\n 'Brah' => 'брахми жазуы',\n 'Brai' => 'Брайль жазуы',\n 'Bugi' => 'бугий жазуы',\n 'Buhd' => 'бухид жазуы',\n 'Cakm' => 'чакма жазуы',\n 'C", "suffix": "ой жазуы',\n 'Cprt' => 'кипр жазуы',\n 'Cyrl' => 'кирилл жазуы',\n 'Deva' => 'деванагари жазуы',\n 'Diak' => 'дивехи акуру жазуы',\n 'Dogr' => 'догри жазуы',\n 'Dsrt' => 'дезерет жазуы',\n 'Dupl' => 'дюплойе жазуы'", "middle": "ans' => 'канадалық буын жүйелі жазу',\n 'Cari' => 'карий жазуы',\n 'Cham' => 'чам жазуы',\n 'Cher' => 'чероки жазуы',\n 'Chrs' => 'хорезм жазуы',\n 'Copt' => 'копт жазуы',\n 'Cpmn' => 'кипр-мин", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/kk.php", "language": "php", "file_size": 8270, "cut_index": 716, "middle_length": 229}} {"prefix": "',\n 'Armn' => 'ארמני',\n 'Avst' => 'אווסטן',\n 'Bali' => 'באלינזי',\n 'Bamu' => 'במום',\n 'Bass' => 'באסה ואה',\n 'Batk' => 'בטק',\n 'Beng' => 'בנגלי',\n 'Bhks' => 'בהיקסוקי',\n 'Bopo' => 'בופומופו',\n 'Brah' => 'ברהמי',\n 'Brai' => 'ברייל',\n 'Bugi' => 'בוגינזי',\n 'Buhd' => 'בוהיד',\n 'Cakm' => 'צ׳אקמה',\n 'Cans' => 'כתב הברתי קנדי ילידי מאוחד',\n 'Cari' => 'קריאן',\n 'Cham' => 'צ׳אם',\n 'Cher' => ", "suffix": "אנגרי',\n 'Diak' => 'אותיות אי',\n 'Dogr' => 'דוגרה',\n 'Dsrt' => 'דסרט',\n 'Dupl' => 'קיצור של דובילרן',\n 'Egyp' => 'כתב חרטומים',\n 'Elba' => 'אלבסאן',\n 'Elym' => 'אלימי',\n 'Ethi' => 'אתיופי',\n 'G", "middle": "'צ׳רוקי',\n 'Chrs' => 'כורזמיאן',\n 'Copt' => 'קופטי',\n 'Cpmn' => 'ציפרו-מינואן',\n 'Cprt' => 'קפריסאי',\n 'Cyrl' => 'קירילי',\n 'Cyrs' => 'קירילי סלאבוני כנסייתי עתיק',\n 'Deva' => 'דוו", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/iw.php", "language": "php", "file_size": 6561, "cut_index": 716, "middle_length": 229}} {"prefix": " '高加索阿爾巴尼亞文',\n 'Ahom' => '阿洪姆文',\n 'Arab' => '阿拉伯字母',\n 'Aran' => '波斯體',\n 'Armi' => '皇室亞美尼亞文',\n 'Armn' => '亞美尼亞文',\n 'Avst' => '阿維斯陀文',\n 'Bali' => '峇里文',\n 'Bamu' => '巴姆穆文',\n 'Bass' => '巴薩文',\n 'Batk' => '巴塔克文',\n 'Beng' => '孟加拉文',\n 'Bhks' => '梵文',\n 'Blis' => '布列斯文',\n 'Bopo' => '注音符號',\n 'Brah' => '婆羅米文',\n 'Brai' => '盲人用點字',\n 'Bugi' => '布吉斯文',\n 'Buhd' => '布希德文',\n 'Cakm' => '查克馬文',\n ", "suffix": "'西里爾文(古教會斯拉夫文變體)',\n 'Deva' => '天城文',\n 'Dsrt' => '德瑟雷特文',\n 'Dupl' => '杜普洛伊速記',\n 'Egyd' => '古埃及世俗體',\n 'Egyh' => '古埃及僧侶體',\n 'Egyp' => '古埃及聖書體',\n 'Elba' => '愛爾巴桑文',\n 'Ethi' => '衣索比亞文',\n 'Geok' => '", "middle": " 'Cans' => '加拿大原住民通用字符',\n 'Cari' => '卡里亞文',\n 'Cham' => '占文',\n 'Cher' => '柴羅基文',\n 'Cirt' => '色斯文',\n 'Copt' => '科普特文',\n 'Cprt' => '塞浦路斯文',\n 'Cyrl' => '西里爾文字',\n 'Cyrs' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/zh_Hant.php", "language": "php", "file_size": 6704, "cut_index": 614, "middle_length": 229}} {"prefix": " 'ar_KW' => 'arapski (Kuvajt)',\n 'ar_LB' => 'arapski (Liban)',\n 'ar_LY' => 'arapski (Libija)',\n 'ar_MA' => 'arapski (Maroko)',\n 'ar_MR' => 'arapski (Mauritanija)',\n 'ar_OM' => 'arapski (Oman)',\n 'ar_PS' => 'arapski (Palestinska Teritorija)',\n 'ar_QA' => 'arapski (Katar)',\n 'ar_SA' => 'arapski (Saudijska Arabija)',\n 'ar_SD' => 'arapski (Sudan)',\n 'ar_SO' => 'arapski (Somalija)',\n 'ar_SS' => 'arapski (Južni Sudan)',\n 'ar_SY' =", "suffix": "ki',\n 'az_AZ' => 'azerbejdžanski (Azerbejdžan)',\n 'az_Cyrl' => 'azerbejdžanski (ćirilica)',\n 'az_Cyrl_AZ' => 'azerbejdžanski (ćirilica, Azerbejdžan)',\n 'az_Latn' => 'azerbejdžanski (latinica)',\n 'az_Latn_AZ' => 'azerbejdž", "middle": "> 'arapski (Sirija)',\n 'ar_TD' => 'arapski (Čad)',\n 'ar_TN' => 'arapski (Tunis)',\n 'ar_YE' => 'arapski (Jemen)',\n 'as' => 'asamski',\n 'as_IN' => 'asamski (Indija)',\n 'az' => 'azerbejdžans", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/bs.php", "language": "php", "file_size": 28773, "cut_index": 1331, "middle_length": 229}} {"prefix": "ar_KW' => 'арапски (Кувајт)',\n 'ar_LB' => 'арапски (Либан)',\n 'ar_LY' => 'арапски (Либија)',\n 'ar_MA' => 'арапски (Мароко)',\n 'ar_MR' => 'арапски (Мауританија)',\n 'ar_OM' => 'арапски (Оман)',\n 'ar_PS' => 'арапски (Палестинске територије)',\n 'ar_QA' => 'арапски (Катар)',\n 'ar_SA' => 'арапски (Саудијска Арабија)',\n 'ar_SD' => 'арапски (Судан)',\n 'ar_SO' => 'арапски (Сомалија)',\n 'ar_SS' => 'арапски (Јужни Судан)',\n 'ar_SY' => ", "suffix": "ски',\n 'az_AZ' => 'азербејџански (Азербејџан)',\n 'az_Cyrl' => 'азербејџански (ћирилица)',\n 'az_Cyrl_AZ' => 'азербејџански (ћирилица, Азербејџан)',\n 'az_Latn' => 'азербејџански (латиница)',\n 'az_Latn_AZ' => 'азербејџански ", "middle": "'арапски (Сирија)',\n 'ar_TD' => 'арапски (Чад)',\n 'ar_TN' => 'арапски (Тунис)',\n 'ar_YE' => 'арапски (Јемен)',\n 'as' => 'асемијски',\n 'as_IN' => 'асемијски (Индија)',\n 'az' => 'азербејџан", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/bs_Cyrl.php", "language": "php", "file_size": 39315, "cut_index": 1331, "middle_length": 229}} {"prefix": " (Líban)',\n 'ar_LY' => 'àrab (Líbia)',\n 'ar_MA' => 'àrab (Marroc)',\n 'ar_MR' => 'àrab (Mauritània)',\n 'ar_OM' => 'àrab (Oman)',\n 'ar_PS' => 'àrab (Territoris palestins)',\n 'ar_QA' => 'àrab (Qatar)',\n 'ar_SA' => 'àrab (Aràbia Saudí)',\n 'ar_SD' => 'àrab (Sudan)',\n 'ar_SO' => 'àrab (Somàlia)',\n 'ar_SS' => 'àrab (Sudan del Sud)',\n 'ar_SY' => 'àrab (Síria)',\n 'ar_TD' => 'àrab (Txad)',\n 'ar_TN' => 'àrab (Tunísia)',\n ", "suffix": " 'az_Cyrl_AZ' => 'azerbaidjanès (ciríl·lic, Azerbaidjan)',\n 'az_Latn' => 'azerbaidjanès (llatí)',\n 'az_Latn_AZ' => 'azerbaidjanès (llatí, Azerbaidjan)',\n 'ba' => 'baixkir',\n 'ba_RU' => 'baixkir (Rússia)',\n 'be' => 'bel", "middle": "'ar_YE' => 'àrab (Iemen)',\n 'as' => 'assamès',\n 'as_IN' => 'assamès (Índia)',\n 'az' => 'azerbaidjanès',\n 'az_AZ' => 'azerbaidjanès (Azerbaidjan)',\n 'az_Cyrl' => 'azerbaidjanès (ciríl·lic)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ca.php", "language": "php", "file_size": 27630, "cut_index": 1331, "middle_length": 229}} {"prefix": "> 'Ӏаьрбийн (Комораш)',\n 'ar_KW' => 'Ӏаьрбийн (Кувейт)',\n 'ar_LB' => 'Ӏаьрбийн (Ливан)',\n 'ar_LY' => 'Ӏаьрбийн (Ливи)',\n 'ar_MA' => 'Ӏаьрбийн (Марокко)',\n 'ar_MR' => 'Ӏаьрбийн (Мавритани)',\n 'ar_OM' => 'Ӏаьрбийн (Ӏоман)',\n 'ar_PS' => 'Ӏаьрбийн (ПалестӀинан латтанаш)',\n 'ar_QA' => 'Ӏаьрбийн (Катар)',\n 'ar_SA' => 'Ӏаьрбийн (СаӀудийн Ӏаьрбийчоь)',\n 'ar_SD' => 'Ӏаьрбийн (Судан)',\n 'ar_SO' => 'Ӏаьрбийн (Сомали)',\n 'ar_SS' => 'Ӏаь", "suffix": "ийн (ХӀинди)',\n 'az' => 'азербайджанийн',\n 'az_AZ' => 'азербайджанийн (Азербайджан)',\n 'az_Cyrl' => 'азербайджанийн (кириллица)',\n 'az_Cyrl_AZ' => 'азербайджанийн (кириллица, Азербайджан)',\n 'az_Latn' => 'азербайджанийн (", "middle": "рбийн (Къилба Судан)',\n 'ar_SY' => 'Ӏаьрбийн (Шема)',\n 'ar_TD' => 'Ӏаьрбийн (Чад)',\n 'ar_TN' => 'Ӏаьрбийн (Тунис)',\n 'ar_YE' => 'Ӏаьрбийн (Йемен)',\n 'as' => 'ассамийн',\n 'as_IN' => 'ассам", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ce.php", "language": "php", "file_size": 37929, "cut_index": 1331, "middle_length": 229}} {"prefix": "',\n 'ar_KM' => 'arabština (Komory)',\n 'ar_KW' => 'arabština (Kuvajt)',\n 'ar_LB' => 'arabština (Libanon)',\n 'ar_LY' => 'arabština (Libye)',\n 'ar_MA' => 'arabština (Maroko)',\n 'ar_MR' => 'arabština (Mauritánie)',\n 'ar_OM' => 'arabština (Omán)',\n 'ar_PS' => 'arabština (Palestinská území)',\n 'ar_QA' => 'arabština (Katar)',\n 'ar_SA' => 'arabština (Saúdská Arábie)',\n 'ar_SD' => 'arabština (Súdán)',\n 'ar_SO' => 'arabština (Somálsko", "suffix": "ámština',\n 'as_IN' => 'ásámština (Indie)',\n 'az' => 'ázerbájdžánština',\n 'az_AZ' => 'ázerbájdžánština (Ázerbájdžán)',\n 'az_Cyrl' => 'ázerbájdžánština (cyrilice)',\n 'az_Cyrl_AZ' => 'ázerbájdžánština (cyrilice, Ázerbájdžán)", "middle": ")',\n 'ar_SS' => 'arabština (Jižní Súdán)',\n 'ar_SY' => 'arabština (Sýrie)',\n 'ar_TD' => 'arabština (Čad)',\n 'ar_TN' => 'arabština (Tunisko)',\n 'ar_YE' => 'arabština (Jemen)',\n 'as' => 'ás", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/cs.php", "language": "php", "file_size": 31182, "cut_index": 1331, "middle_length": 229}} {"prefix": "раб чӗлхи (Иордани)',\n 'ar_KM' => 'араб чӗлхи (Комор утравӗсем)',\n 'ar_KW' => 'араб чӗлхи (Кувейт)',\n 'ar_LB' => 'араб чӗлхи (Ливан)',\n 'ar_LY' => 'араб чӗлхи (Ливи)',\n 'ar_MA' => 'араб чӗлхи (Марокко)',\n 'ar_MR' => 'араб чӗлхи (Мавритани)',\n 'ar_OM' => 'араб чӗлхи (Оман)',\n 'ar_PS' => 'араб чӗлхи (Палестина территорийӗсем)',\n 'ar_QA' => 'араб чӗлхи (Катар)',\n 'ar_SA' => 'араб чӗлхи (Сауд Аравийӗ)',\n 'ar_SD' => 'араб чӗлхи (Судан)'", "suffix": "> 'араб чӗлхи (Йемен)',\n 'as' => 'ассам чӗлхи',\n 'as_IN' => 'ассам чӗлхи (Инди)',\n 'az' => 'азербайджан чӗлхи',\n 'az_AZ' => 'азербайджан чӗлхи (Азербайджан)',\n 'az_Cyrl' => 'азербайджан чӗлхи (кирилл ҫырулӑхӗ)',\n '", "middle": ",\n 'ar_SO' => 'араб чӗлхи (Сомали)',\n 'ar_SS' => 'араб чӗлхи (Кӑнтӑр Судан)',\n 'ar_SY' => 'араб чӗлхи (Сири)',\n 'ar_TD' => 'араб чӗлхи (Чад)',\n 'ar_TN' => 'араб чӗлхи (Тунис)',\n 'ar_YE' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/cv.php", "language": "php", "file_size": 44182, "cut_index": 1331, "middle_length": 229}} {"prefix": "_KW' => 'Arabeg (Kuwait)',\n 'ar_LB' => 'Arabeg (Libanus)',\n 'ar_LY' => 'Arabeg (Libya)',\n 'ar_MA' => 'Arabeg (Moroco)',\n 'ar_MR' => 'Arabeg (Mauritania)',\n 'ar_OM' => 'Arabeg (Oman)',\n 'ar_PS' => 'Arabeg (Tiriogaethau Palesteinaidd)',\n 'ar_QA' => 'Arabeg (Qatar)',\n 'ar_SA' => 'Arabeg (Saudi Arabia)',\n 'ar_SD' => 'Arabeg (Swdan)',\n 'ar_SO' => 'Arabeg (Somalia)',\n 'ar_SS' => 'Arabeg (De Swdan)',\n 'ar_SY' => 'Arabeg (Syria)',\n ", "suffix": "serbaijaneg (Aserbaijan)',\n 'az_Cyrl' => 'Aserbaijaneg (Cyrilig)',\n 'az_Cyrl_AZ' => 'Aserbaijaneg (Cyrilig, Aserbaijan)',\n 'az_Latn' => 'Aserbaijaneg (Lladin)',\n 'az_Latn_AZ' => 'Aserbaijaneg (Lladin, Aserbaijan)',\n 'ba' ", "middle": " 'ar_TD' => 'Arabeg (Tsiad)',\n 'ar_TN' => 'Arabeg (Tiwnisia)',\n 'ar_YE' => 'Arabeg (Yemen)',\n 'as' => 'Asameg',\n 'as_IN' => 'Asameg (India)',\n 'az' => 'Aserbaijaneg',\n 'az_AZ' => 'A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/cy.php", "language": "php", "file_size": 27892, "cut_index": 1331, "middle_length": 229}} {"prefix": "_KW' => 'arabisk (Kuwait)',\n 'ar_LB' => 'arabisk (Libanon)',\n 'ar_LY' => 'arabisk (Libyen)',\n 'ar_MA' => 'arabisk (Marokko)',\n 'ar_MR' => 'arabisk (Mauretanien)',\n 'ar_OM' => 'arabisk (Oman)',\n 'ar_PS' => 'arabisk (De palæstinensiske områder)',\n 'ar_QA' => 'arabisk (Qatar)',\n 'ar_SA' => 'arabisk (Saudi-Arabien)',\n 'ar_SD' => 'arabisk (Sudan)',\n 'ar_SO' => 'arabisk (Somalia)',\n 'ar_SS' => 'arabisk (Sydsudan)',\n 'ar_SY' => 'ar", "suffix": "jdsjansk',\n 'az_AZ' => 'aserbajdsjansk (Aserbajdsjan)',\n 'az_Cyrl' => 'aserbajdsjansk (kyrillisk)',\n 'az_Cyrl_AZ' => 'aserbajdsjansk (kyrillisk, Aserbajdsjan)',\n 'az_Latn' => 'aserbajdsjansk (latinsk)',\n 'az_Latn_AZ' => '", "middle": "abisk (Syrien)',\n 'ar_TD' => 'arabisk (Tchad)',\n 'ar_TN' => 'arabisk (Tunesien)',\n 'ar_YE' => 'arabisk (Yemen)',\n 'as' => 'assamesisk',\n 'as_IN' => 'assamesisk (Indien)',\n 'az' => 'aserba", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/da.php", "language": "php", "file_size": 27614, "cut_index": 1331, "middle_length": 229}} {"prefix": ")',\n 'ar_KW' => 'Arabisch (Kuwait)',\n 'ar_LB' => 'Arabisch (Libanon)',\n 'ar_LY' => 'Arabisch (Libyen)',\n 'ar_MA' => 'Arabisch (Marokko)',\n 'ar_MR' => 'Arabisch (Mauretanien)',\n 'ar_OM' => 'Arabisch (Oman)',\n 'ar_PS' => 'Arabisch (Palästinensische Autonomiegebiete)',\n 'ar_QA' => 'Arabisch (Katar)',\n 'ar_SA' => 'Arabisch (Saudi-Arabien)',\n 'ar_SD' => 'Arabisch (Sudan)',\n 'ar_SO' => 'Arabisch (Somalia)',\n 'ar_SS' => 'Arabisch (", "suffix": "esisch (Indien)',\n 'az' => 'Aserbaidschanisch',\n 'az_AZ' => 'Aserbaidschanisch (Aserbaidschan)',\n 'az_Cyrl' => 'Aserbaidschanisch (Kyrillisch)',\n 'az_Cyrl_AZ' => 'Aserbaidschanisch (Kyrillisch, Aserbaidschan)',\n 'az_Latn'", "middle": "Südsudan)',\n 'ar_SY' => 'Arabisch (Syrien)',\n 'ar_TD' => 'Arabisch (Tschad)',\n 'ar_TN' => 'Arabisch (Tunesien)',\n 'ar_YE' => 'Arabisch (Jemen)',\n 'as' => 'Assamesisch',\n 'as_IN' => 'Assam", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/de.php", "language": "php", "file_size": 29173, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_KM' => 'ཨེ་ར་བིཀ་ཁ། (ཀོ་མོ་རོས།)',\n 'ar_KW' => 'ཨེ་ར་བིཀ་ཁ། (ཀུ་ཝེཊ།)',\n 'ar_LB' => 'ཨེ་ར་བིཀ་ཁ། (ལེ་བ་ནོན།)',\n 'ar_LY' => 'ཨེ་ར་བིཀ་ཁ། (ལི་བི་ཡ།)',\n 'ar_MA' => 'ཨེ་ར་བིཀ་ཁ། (མོ་རོ་ཀོ།)',\n 'ar_MR' => 'ཨེ་ར་བིཀ་ཁ། (མོ་རི་ཊེ་ནི་ཡ།)',\n 'ar_OM' => 'ཨེ་ར་བིཀ་ཁ། (ཨོ་མཱན།)',\n 'ar_PS' => 'ཨེ་ར་བིཀ་ཁ། (པེ་ལིསི་ཊི་ནི་ཡན་ཊེ་རི་ཐོ་རི།)',\n 'ar_QA' => 'ཨེ་ར་བིཀ་ཁ། (ཀ་ཊར།)',\n 'ar_SA' => 'ཨེ་ར་བིཀ་ཁ། (སཱཝ་དི་ ཨ་རེ་བྷི་ཡ།)',\n 'ar_SD' => 'ཨེ་ར་བ", "suffix": "ཀ་ཁ། (ཊུ་ནི་ཤི་ཡ།)',\n 'ar_YE' => 'ཨེ་ར་བིཀ་ཁ། (ཡེ་མེན།)',\n 'as' => 'ཨ་ས་མིས་ཁ',\n 'as_IN' => 'ཨ་ས་མིས་ཁ། (རྒྱ་གར།)',\n 'az' => 'ཨ་ཛར་བྷའི་ཇཱན་ཁ',\n 'az_AZ' => 'ཨ་ཛར་བྷའི་ཇཱན་ཁ། (ཨ་ཛར་བྷའི་ཇཱན།)',\n 'az_Cyrl' => 'ཨ་ཛར་བ", "middle": "ིཀ་ཁ། (སུ་ཌཱན།)',\n 'ar_SO' => 'ཨེ་ར་བིཀ་ཁ། (སོ་མ་ལི་ཡ།)',\n 'ar_SS' => 'ཨེ་ར་བིཀ་ཁ། (སཱའུཐ་ སུ་ཌཱན།)',\n 'ar_SY' => 'ཨེ་ར་བིཀ་ཁ། (སི་རི་ཡ།)',\n 'ar_TD' => 'ཨེ་ར་བིཀ་ཁ། (ཅཱཌ།)',\n 'ar_TN' => 'ཨེ་ར་བི", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/dz.php", "language": "php", "file_size": 50604, "cut_index": 1331, "middle_length": 229}} {"prefix": "' => 'Arabiagbe (iraqdukɔ)',\n 'ar_JO' => 'Arabiagbe (Yordan nutome)',\n 'ar_KM' => 'Arabiagbe (Komoros nutome)',\n 'ar_KW' => 'Arabiagbe (Kuwait nutome)',\n 'ar_LB' => 'Arabiagbe (Lebanɔn nutome)',\n 'ar_LY' => 'Arabiagbe (Libya nutome)',\n 'ar_MA' => 'Arabiagbe (Moroko nutome)',\n 'ar_MR' => 'Arabiagbe (Mauritania nutome)',\n 'ar_OM' => 'Arabiagbe (Oman nutome)',\n 'ar_PS' => 'Arabiagbe (Palestinia nutome)',\n 'ar_QA' => 'Arabiagbe (Katar nutome)", "suffix": " (Tsad nutome)',\n 'ar_TN' => 'Arabiagbe (Tunisia nutome)',\n 'ar_YE' => 'Arabiagbe (Yemen nutome)',\n 'as' => 'assamegbe',\n 'as_IN' => 'assamegbe (India nutome)',\n 'az' => 'azerbaijangbe',\n 'az_AZ' => 'azerbaijangbe ", "middle": "',\n 'ar_SA' => 'Arabiagbe (Saudi Arabia nutome)',\n 'ar_SD' => 'Arabiagbe (Sudan nutome)',\n 'ar_SO' => 'Arabiagbe (Somalia nutome)',\n 'ar_SY' => 'Arabiagbe (Siria nutome)',\n 'ar_TD' => 'Arabiagbe", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ee.php", "language": "php", "file_size": 28997, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_KW' => 'Αραβικά (Κουβέιτ)',\n 'ar_LB' => 'Αραβικά (Λίβανος)',\n 'ar_LY' => 'Αραβικά (Λιβύη)',\n 'ar_MA' => 'Αραβικά (Μαρόκο)',\n 'ar_MR' => 'Αραβικά (Μαυριτανία)',\n 'ar_OM' => 'Αραβικά (Ομάν)',\n 'ar_PS' => 'Αραβικά (Παλαιστινιακά Εδάφη)',\n 'ar_QA' => 'Αραβικά (Κατάρ)',\n 'ar_SA' => 'Αραβικά (Σαουδική Αραβία)',\n 'ar_SD' => 'Αραβικά (Σουδάν)',\n 'ar_SO' => 'Αραβικά (Σομαλία)',\n 'ar_SS' => 'Αραβικά (Νότιο Σουδάν)',\n 'ar_SY' => '", "suffix": "ικά',\n 'az_AZ' => 'Αζερμπαϊτζανικά (Αζερμπαϊτζάν)',\n 'az_Cyrl' => 'Αζερμπαϊτζανικά (Κυριλλικό)',\n 'az_Cyrl_AZ' => 'Αζερμπαϊτζανικά (Κυριλλικό, Αζερμπαϊτζάν)',\n 'az_Latn' => 'Αζερμπαϊτζανικά (Λατινικό)',\n 'az_Latn_AZ' => '", "middle": "Αραβικά (Συρία)',\n 'ar_TD' => 'Αραβικά (Τσαντ)',\n 'ar_TN' => 'Αραβικά (Τυνησία)',\n 'ar_YE' => 'Αραβικά (Υεμένη)',\n 'as' => 'Ασαμικά',\n 'as_IN' => 'Ασαμικά (Ινδία)',\n 'az' => 'Αζερμπαϊτζαν", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/el.php", "language": "php", "file_size": 39397, "cut_index": 1331, "middle_length": 229}} {"prefix": ")',\n 'ar_LB' => 'Arabic (Lebanon)',\n 'ar_LY' => 'Arabic (Libya)',\n 'ar_MA' => 'Arabic (Morocco)',\n 'ar_MR' => 'Arabic (Mauritania)',\n 'ar_OM' => 'Arabic (Oman)',\n 'ar_PS' => 'Arabic (Palestinian Territories)',\n 'ar_QA' => 'Arabic (Qatar)',\n 'ar_SA' => 'Arabic (Saudi Arabia)',\n 'ar_SD' => 'Arabic (Sudan)',\n 'ar_SO' => 'Arabic (Somalia)',\n 'ar_SS' => 'Arabic (South Sudan)',\n 'ar_SY' => 'Arabic (Syria)',\n 'ar_TD' => 'Ara", "suffix": "n)',\n 'az_Cyrl' => 'Azerbaijani (Cyrillic)',\n 'az_Cyrl_AZ' => 'Azerbaijani (Cyrillic, Azerbaijan)',\n 'az_Latn' => 'Azerbaijani (Latin)',\n 'az_Latn_AZ' => 'Azerbaijani (Latin, Azerbaijan)',\n 'ba' => 'Bashkir',\n 'ba_", "middle": "bic (Chad)',\n 'ar_TN' => 'Arabic (Tunisia)',\n 'ar_YE' => 'Arabic (Yemen)',\n 'as' => 'Assamese',\n 'as_IN' => 'Assamese (India)',\n 'az' => 'Azerbaijani',\n 'az_AZ' => 'Azerbaijani (Azerbaija", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/en.php", "language": "php", "file_size": 27295, "cut_index": 1331, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ar_001' => 'Arabic (World)',\n 'bn' => 'Bengali',\n 'bn_BD' => 'Bengali (Bangladesh)',\n 'bn_IN' => 'Bengali (India)',\n 'bs_BA' => 'Bosnian (Bosnia and Herzegovina)',\n 'bs_Cyrl_BA' => 'Bosnian (Cyrillic, Bosnia and Herzegovina)',\n 'bs_Latn_BA' => 'Bosnian (Latin, Bosnia and Herzegovina)',\n 'en_001' => 'English (World)',\n 'en_AG' => 'English (Antigua and Barbuda)',\n 'en_GS' => 'English (South Georgia and South Sandwich ", "suffix": ")',\n 'eo_001' => 'Esperanto (World)',\n 'fr_PM' => 'French (St Pierre and Miquelon)',\n 'fr_WF' => 'French (Wallis and Futuna)',\n 'hr_BA' => 'Croatian (Bosnia and Herzegovina)',\n 'ia_001' => 'Interlingua (World)',\n '", "middle": "Islands)',\n 'en_KN' => 'English (St Kitts and Nevis)',\n 'en_TC' => 'English (Turks and Caicos Islands)',\n 'en_TT' => 'English (Trinidad and Tobago)',\n 'en_VC' => 'English (St Vincent and the Grenadines", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/en_AU.php", "language": "php", "file_size": 1389, "cut_index": 524, "middle_length": 229}} {"prefix": "s' => [\n 'ar_PS' => 'Arabic (Palestinian territories)',\n 'bn' => 'Bengali',\n 'bn_BD' => 'Bengali (Bangladesh)',\n 'bn_IN' => 'Bengali (India)',\n 'bs_BA' => 'Bosnian (Bosnia and Herzegovina)',\n 'bs_Cyrl_BA' => 'Bosnian (Cyrillic, Bosnia and Herzegovina)',\n 'bs_Latn_BA' => 'Bosnian (Latin, Bosnia and Herzegovina)',\n 'en_AG' => 'English (Antigua and Barbuda)',\n 'en_GS' => 'English (South Georgia and South Sandwich Islands)',\n 'en_KN' => 'Engl", "suffix": " 'en_UM' => 'English (US Outlying Islands)',\n 'en_VC' => 'English (Saint Vincent and the Grenadines)',\n 'en_VI' => 'English (US Virgin Islands)',\n 'fr_BL' => 'French (Saint-Barthélemy)',\n 'fr_MF' => 'French (Saint Martin)'", "middle": "ish (Saint Kitts and Nevis)',\n 'en_LC' => 'English (Saint Lucia)',\n 'en_SH' => 'English (Saint Helena)',\n 'en_TC' => 'English (Turks and Caicos Islands)',\n 'en_TT' => 'English (Trinidad and Tobago)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/en_CA.php", "language": "php", "file_size": 1575, "cut_index": 537, "middle_length": 229}} {"prefix": "s' => [\n 'ff' => 'Fulah',\n 'ff_Adlm' => 'Fulah (Adlam)',\n 'ff_Adlm_BF' => 'Fulah (Adlam, Burkina Faso)',\n 'ff_Adlm_CM' => 'Fulah (Adlam, Cameroon)',\n 'ff_Adlm_GH' => 'Fulah (Adlam, Ghana)',\n 'ff_Adlm_GM' => 'Fulah (Adlam, Gambia)',\n 'ff_Adlm_GN' => 'Fulah (Adlam, Guinea)',\n 'ff_Adlm_GW' => 'Fulah (Adlam, Guinea-Bissau)',\n 'ff_Adlm_LR' => 'Fulah (Adlam, Liberia)',\n 'ff_Adlm_MR' => 'Fulah (Adlam, Mauritania)',\n 'ff_Adlm_NE' => 'Fulah", "suffix": "> 'Fulah (Guinea)',\n 'ff_Latn' => 'Fulah (Latin)',\n 'ff_Latn_BF' => 'Fulah (Latin, Burkina Faso)',\n 'ff_Latn_CM' => 'Fulah (Latin, Cameroon)',\n 'ff_Latn_GH' => 'Fulah (Latin, Ghana)',\n 'ff_Latn_GM' => 'Fulah (Latin, Gambi", "middle": " (Adlam, Niger)',\n 'ff_Adlm_NG' => 'Fulah (Adlam, Nigeria)',\n 'ff_Adlm_SL' => 'Fulah (Adlam, Sierra Leone)',\n 'ff_Adlm_SN' => 'Fulah (Adlam, Senegal)',\n 'ff_CM' => 'Fulah (Cameroon)',\n 'ff_GN' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/en_GB.php", "language": "php", "file_size": 1527, "cut_index": 537, "middle_length": 229}} {"prefix": "o)',\n 'ar_LB' => 'araba (Libano)',\n 'ar_LY' => 'araba (Libio)',\n 'ar_MA' => 'araba (Maroko)',\n 'ar_MR' => 'araba (Maŭritanio)',\n 'ar_OM' => 'araba (Omano)',\n 'ar_PS' => 'araba (Palestinaj teritorioj)',\n 'ar_QA' => 'araba (Kataro)',\n 'ar_SA' => 'araba (Sauda Arabujo)',\n 'ar_SD' => 'araba (Sudano)',\n 'ar_SO' => 'araba (Somalujo)',\n 'ar_SS' => 'araba (Sud-Sudano)',\n 'ar_SY' => 'araba (Sirio)',\n 'ar_TD' => 'araba (Ĉado)',", "suffix": "_Cyrl' => 'azerbajĝana (cirila)',\n 'az_Cyrl_AZ' => 'azerbajĝana (cirila, Azerbajĝano)',\n 'az_Latn' => 'azerbajĝana (latina)',\n 'az_Latn_AZ' => 'azerbajĝana (latina, Azerbajĝano)',\n 'ba' => 'baŝkira',\n 'ba_RU' => 'baŝkira ", "middle": "\n 'ar_TN' => 'araba (Tunizio)',\n 'ar_YE' => 'araba (Jemeno)',\n 'as' => 'asama',\n 'as_IN' => 'asama (Hindujo)',\n 'az' => 'azerbajĝana',\n 'az_AZ' => 'azerbajĝana (Azerbajĝano)',\n 'az", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/eo.php", "language": "php", "file_size": 26927, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'อิมพีเรียล อราเมอิก',\n 'Armn' => 'อาร์เมเนีย',\n 'Avst' => 'อเวสตะ',\n 'Bali' => 'บาหลี',\n 'Bamu' => 'บามุม',\n 'Bass' => 'บัสซา',\n 'Batk' => 'บาตัก',\n 'Beng' => 'เบงกาลี',\n 'Blis' => 'บลิสซิมโบลส์',\n 'Bopo' => 'ปอพอมอฟอ',\n 'Brah' => 'พราหมี',\n 'Brai' => 'เบรลล์',\n 'Bugi' => 'บูกิส',\n 'Buhd' => 'บูฮิด',\n 'Cakm' => 'จักม่า',\n 'Cans' => 'อักษรพยางค์ของชาวอะบอริจินในแคนาดา',\n 'Cari' => 'คาเรีย',\n ", "suffix": "=> 'เทวนาครี',\n 'Dsrt' => 'เดเซเรท',\n 'Dupl' => 'ชวเลขดัปโลยัน',\n 'Egyd' => 'ดีโมติกอียิปต์',\n 'Egyh' => 'เฮียราติกอียิปต์',\n 'Egyp' => 'เฮียโรกลิฟส์อียิปต์',\n 'Elba' => 'เอลบ์ซาน',\n 'Ethi' => 'เอธิโอปิก',\n ", "middle": " 'Cham' => 'จาม',\n 'Cher' => 'เชอโรกี',\n 'Cirt' => 'เซิร์ท',\n 'Copt' => 'คอปติก',\n 'Cprt' => 'ไซเปรียท',\n 'Cyrl' => 'ซีริลลิก',\n 'Cyrs' => 'เชอร์ชสลาโวนิกซีริลลิกโบราณ',\n 'Deva' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/th.php", "language": "php", "file_size": 8126, "cut_index": 716, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'Adlam',\n 'Arab' => 'Arabic',\n 'Aran' => 'Nastaliq',\n 'Armn' => 'Armenian',\n 'Beng' => 'Bangla',\n 'Bopo' => 'Bopomofo',\n 'Brai' => 'Braille',\n 'Cakm' => 'Chakma',\n 'Cans' => 'Unified Canadian Aboriginal Syllabics',\n 'Cher' => 'Cherokee',\n 'Cyrl' => 'Cyrillic',\n 'Deva' => 'Devanagari',\n 'Ethi' => 'Ethiopic',\n 'Geor' => 'Georgian',\n 'Grek' => 'Greek',\n 'Gujr' => 'Gujarati',\n ", "suffix": "'Hiragana',\n 'Hrkt' => 'Japanese syllabaries',\n 'Jpan' => 'Japanese',\n 'Kana' => 'Katakana',\n 'Khmr' => 'Khmer',\n 'Knda' => 'Kannada',\n 'Kore' => 'Korean',\n 'Laoo' => 'Lao',\n 'Latn' => 'Latin',\n ", "middle": " 'Guru' => 'Gurmukhi',\n 'Hanb' => 'Han na may Bopomofo',\n 'Hang' => 'Hangul',\n 'Hani' => 'Han',\n 'Hans' => 'Pinasimple',\n 'Hant' => 'Tradisyonal',\n 'Hebr' => 'Hebrew',\n 'Hira' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/tl.php", "language": "php", "file_size": 1713, "cut_index": 537, "middle_length": 229}} {"prefix": "lepea',\n 'Aran' => 'tohinima fakanasatalīki',\n 'Armi' => 'tohinima fakaʻalāmiti-ʻemipaea',\n 'Armn' => 'tohinima fakaʻāmenia',\n 'Avst' => 'tohinima fakaʻavesitani',\n 'Bali' => 'tohinima fakapali',\n 'Bamu' => 'tohinima fakapamumi',\n 'Bass' => 'tohinima fakapasa-vā',\n 'Batk' => 'tohinima fakapātaki',\n 'Beng' => 'tohinima fakapāngilā',\n 'Blis' => 'tohinima fakaʻilonga-pilisi',\n 'Bopo' => 'tohinima fakapopomofo',\n 'Brah' => 'tohi", "suffix": "kānata-fakatahataha',\n 'Cari' => 'tohinima fakakali',\n 'Cham' => 'tohinima fakasami',\n 'Cher' => 'tohinima fakaselokī',\n 'Cirt' => 'tohinima fakakīliti',\n 'Copt' => 'tohinima fakakopitika',\n 'Cprt' => 'tohinima fak", "middle": "nima fakapalāmī',\n 'Brai' => 'tohinima laukonga ki he kui',\n 'Bugi' => 'tohinima fakapukisi',\n 'Buhd' => 'tohinima fakapuhiti',\n 'Cakm' => 'tohinima fakasakimā',\n 'Cans' => 'tohinima fakatupuʻi-", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/to.php", "language": "php", "file_size": 7646, "cut_index": 716, "middle_length": 229}} {"prefix": "=> 'кавказька албанська',\n 'Ahom' => 'ахом',\n 'Arab' => 'арабиця',\n 'Aran' => 'насталік',\n 'Armi' => 'армі',\n 'Armn' => 'вірменська',\n 'Avst' => 'авестійський',\n 'Bali' => 'балійський',\n 'Bamu' => 'бамум',\n 'Bass' => 'басса',\n 'Batk' => 'батак',\n 'Beng' => 'бенгальська',\n 'Blis' => 'символи Блісса',\n 'Bopo' => 'бопомофо',\n 'Brah' => 'брахмі',\n 'Brai' => 'шрифт Брайля',\n 'Bugi' => 'бугійський',\n ", "suffix": "',\n 'Copt' => 'коптський',\n 'Cprt' => 'кіпрський',\n 'Cyrl' => 'кирилиця',\n 'Cyrs' => 'давньоцерковнословʼянський',\n 'Deva' => 'деванагарі',\n 'Dsrt' => 'дезерет',\n 'Egyd' => 'єгипетський демотичний',\n ", "middle": " 'Buhd' => 'бухід',\n 'Cakm' => 'чакма',\n 'Cans' => 'уніфіковані символи канадських тубільців',\n 'Cari' => 'каріанський',\n 'Cham' => 'хамітський',\n 'Cher' => 'черокі',\n 'Cirt' => 'кирт", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/uk.php", "language": "php", "file_size": 6186, "cut_index": 614, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'adlam',\n 'Arab' => 'arab',\n 'Aran' => 'nastaʼliq',\n 'Armn' => 'arman',\n 'Beng' => 'bengal',\n 'Bopo' => 'bopomofo',\n 'Brai' => 'brayl',\n 'Cakm' => 'chakma',\n 'Cans' => 'kanada boʻgʻin yozuvi',\n 'Cher' => 'cheroki',\n 'Cyrl' => 'kirill',\n 'Deva' => 'devanagari',\n 'Ethi' => 'habash',\n 'Geor' => 'gruzin',\n 'Grek' => 'grek',\n 'Gujr' => 'gujarot',\n 'Guru' => 'gurmukxi',\n ", "suffix": "hiragana',\n 'Jamo' => 'jamo',\n 'Jpan' => 'yapon',\n 'Kana' => 'katakana',\n 'Khmr' => 'kxmer',\n 'Knda' => 'kannada',\n 'Kore' => 'koreys',\n 'Laoo' => 'laos',\n 'Latn' => 'lotin',\n 'Mlym' => 'malaya", "middle": " 'Hanb' => 'hanb',\n 'Hang' => 'hangul',\n 'Hani' => 'xitoy',\n 'Hans' => 'soddalashgan',\n 'Hant' => 'anʼanaviy',\n 'Hebr' => 'ivrit',\n 'Hira' => 'hiragana',\n 'Hrkt' => 'katakana yoki ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/uz.php", "language": "php", "file_size": 1690, "cut_index": 537, "middle_length": 229}} {"prefix": " 'Armn' => 'Chữ Armenia',\n 'Avst' => 'Chữ Avestan',\n 'Bali' => 'Chữ Bali',\n 'Bamu' => 'Chữ Bamum',\n 'Bass' => 'Chữ Bassa Vah',\n 'Batk' => 'Chữ Batak',\n 'Beng' => 'Chữ Bangla',\n 'Blis' => 'Chữ Blissymbols',\n 'Bopo' => 'Chữ Bopomofo',\n 'Brah' => 'Chữ Brahmi',\n 'Brai' => 'Chữ nổi Braille',\n 'Bugi' => 'Chữ Bugin',\n 'Buhd' => 'Chữ Buhid',\n 'Cakm' => 'Chữ Chakma',\n 'Cans' => 'Âm tiết Thổ dân Canada Hợp nhất',\n ", "suffix": "' => 'Chữ Kirin Slavơ Nhà thờ cổ',\n 'Deva' => 'Chữ Devanagari',\n 'Dsrt' => 'Chữ Deseret',\n 'Dupl' => 'Chữ tốc ký Duployan',\n 'Egyd' => 'Chữ Ai Cập bình dân',\n 'Egyh' => 'Chữ Ai Cập thày tu',\n 'Egyp' => 'Chữ tượng h", "middle": " 'Cari' => 'Chữ Caria',\n 'Cham' => 'Chữ Chăm',\n 'Cher' => 'Chữ Cherokee',\n 'Cirt' => 'Chữ Cirth',\n 'Copt' => 'Chữ Coptic',\n 'Cprt' => 'Chứ Síp',\n 'Cyrl' => 'Chữ Kirin',\n 'Cyrs", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/vi.php", "language": "php", "file_size": 6211, "cut_index": 716, "middle_length": 229}} {"prefix": "rmi' => '皇室亚拉姆文',\n 'Armn' => '亚美尼亚文',\n 'Avst' => '阿维斯陀文',\n 'Bali' => '巴厘文',\n 'Bamu' => '巴姆穆文',\n 'Bass' => '巴萨文',\n 'Batk' => '巴塔克文',\n 'Beng' => '孟加拉文',\n 'Bhks' => '拜克舒克文',\n 'Blis' => '布列斯符号',\n 'Bopo' => '注音符号',\n 'Brah' => '婆罗米文字',\n 'Brai' => '布莱叶盲文',\n 'Bugi' => '布吉文',\n 'Buhd' => '布希德文',\n 'Cakm' => '查克马文',\n 'Cans' => '加拿大土著统一音节',\n 'Cari' => '卡里亚文',\n 'Cham' => '占文',\n 'Cher' => '切", "suffix": ",\n 'Diak' => '迪维西阿库鲁文',\n 'Dogr' => '多格拉文',\n 'Dsrt' => '德塞莱特文',\n 'Dupl' => '杜普洛伊速记',\n 'Egyd' => '后期埃及文',\n 'Egyh' => '古埃及僧侣书写体',\n 'Egyp' => '古埃及象形文',\n 'Elba' => '爱尔巴桑文',\n 'Elym' => '埃利迈文',\n ", "middle": "罗基文',\n 'Chrs' => '花拉子模文',\n 'Cirt' => '色斯文',\n 'Copt' => '克普特文',\n 'Cpmn' => '塞浦路斯米诺斯文',\n 'Cprt' => '塞浦路斯文',\n 'Cyrl' => '西里尔文',\n 'Cyrs' => '西里尔文字(古教会斯拉夫文的变体)',\n 'Deva' => '天城文'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/zh.php", "language": "php", "file_size": 7127, "cut_index": 716, "middle_length": 229}} {"prefix": " 'Armi' => 'isi-Imperial Aramaic',\n 'Armn' => 'isi-Armenian',\n 'Avst' => 'isi-Avestan',\n 'Bali' => 'isi-Balinese',\n 'Bamu' => 'isi-Bamum',\n 'Bass' => 'isi-Bassa Vah',\n 'Batk' => 'isi-Batak',\n 'Beng' => 'isi-Bangla',\n 'Bhks' => 'isi-Bhaiksuki',\n 'Bopo' => 'isi-Bopomofo',\n 'Brah' => 'isi-Brahmi',\n 'Brai' => 'i-Braille',\n 'Bugi' => 'isi-Buginese',\n 'Buhd' => 'isi-Buhid',\n 'Cakm' => 'isi-Chakma',\n 'Cans", "suffix": " 'isi-Cypriot',\n 'Cyrl' => 'isi-Cyrillic',\n 'Deva' => 'isi-Devanagari',\n 'Diak' => 'isi-Dives Akuru',\n 'Dogr' => 'isi-Dogra',\n 'Dsrt' => 'isi-Deseret',\n 'Dupl' => 'isi-Duployan shorthand',\n 'Egyp' => 'i-Egyp", "middle": "' => 'i-Unified Canadian Aboriginal Syllabics',\n 'Cari' => 'isi-Carian',\n 'Cham' => 'isi-Cham',\n 'Cher' => 'isi-Cherokee',\n 'Chrs' => 'isi-Chorasmian',\n 'Copt' => 'isi-Coptic',\n 'Cprt' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/zu.php", "language": "php", "file_size": 5746, "cut_index": 716, "middle_length": 229}} {"prefix": "ረብኛ (ሞሮኮ)',\n 'ar_MR' => 'ዓረብኛ (ሞሪቴኒያ)',\n 'ar_OM' => 'ዓረብኛ (ኦማን)',\n 'ar_PS' => 'ዓረብኛ (የፍልስጤም ግዛት)',\n 'ar_QA' => 'ዓረብኛ (ኳታር)',\n 'ar_SA' => 'ዓረብኛ (ሳውድአረቢያ)',\n 'ar_SD' => 'ዓረብኛ (ሱዳን)',\n 'ar_SO' => 'ዓረብኛ (ሶማሊያ)',\n 'ar_SS' => 'ዓረብኛ (ደቡብ ሱዳን)',\n 'ar_SY' => 'ዓረብኛ (ሶሪያ)',\n 'ar_TD' => 'ዓረብኛ (ቻድ)',\n 'ar_TN' => 'ዓረብኛ (ቱኒዚያ)',\n 'ar_YE' => 'ዓረብኛ (የመን)',\n 'as' => 'አሳሜዝ',\n 'as_IN' => 'አሳሜዝ (ህንድ)',\n 'az' => 'አዘርባጃንኛ',\n ", "suffix": "> 'ባስኪርኛ',\n 'ba_RU' => 'ባስኪርኛ (ሩስያ)',\n 'be' => 'ቤላራሻኛ',\n 'be_BY' => 'ቤላራሻኛ (ቤላሩስ)',\n 'bg' => 'ቡልጋሪኛ',\n 'bg_BG' => 'ቡልጋሪኛ (ቡልጋሪያ)',\n 'bm' => 'ባምባርኛ',\n 'bm_ML' => 'ባምባርኛ (ማሊ)',\n 'bn' => 'ቤንጋሊኛ',\n ", "middle": " 'az_AZ' => 'አዘርባጃንኛ (አዘርባጃን)',\n 'az_Cyrl' => 'አዘርባጃንኛ (ሲይሪልክ)',\n 'az_Cyrl_AZ' => 'አዘርባጃንኛ (ሲይሪልክ፣ አዘርባጃን)',\n 'az_Latn' => 'አዘርባጃንኛ (ላቲን)',\n 'az_Latn_AZ' => 'አዘርባጃንኛ (ላቲን፣ አዘርባጃን)',\n 'ba' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/am.php", "language": "php", "file_size": 37186, "cut_index": 1331, "middle_length": 229}} {"prefix": "LB' => 'আৰবী (লেবানন)',\n 'ar_LY' => 'আৰবী (লিবিয়া)',\n 'ar_MA' => 'আৰবী (মৰক্কো)',\n 'ar_MR' => 'আৰবী (মাউৰিটানিয়া)',\n 'ar_OM' => 'আৰবী (ওমান)',\n 'ar_PS' => 'আৰবী (ফিলিস্তিন অঞ্চল)',\n 'ar_QA' => 'আৰবী (কাটাৰ)',\n 'ar_SA' => 'আৰবী (চৌডি আৰবিয়া)',\n 'ar_SD' => 'আৰবী (চুডান)',\n 'ar_SO' => 'আৰবী (চোমালিয়া)',\n 'ar_SS' => 'আৰবী (দক্ষিণ চুডান)',\n 'ar_SY' => 'আৰবী (চিৰিয়া)',\n 'ar_TD' => 'আৰবী (চাড)',\n 'ar_TN' => 'আৰবী (টুনিচ", "suffix": "',\n 'az_Cyrl_AZ' => 'আজেৰবাইজানী (চিৰিলিক, আজাৰবেইজান)',\n 'az_Latn' => 'আজেৰবাইজানী (লেটিন)',\n 'az_Latn_AZ' => 'আজেৰবাইজানী (লেটিন, আজাৰবেইজান)',\n 'ba' => 'বাছখিৰ',\n 'ba_RU' => 'বাছখিৰ (ৰাছিয়া)',\n 'be' => 'বেলাৰুছ", "middle": "িয়া)',\n 'ar_YE' => 'আৰবী (য়েমেন)',\n 'as' => 'অসমীয়া',\n 'as_IN' => 'অসমীয়া (ভাৰত)',\n 'az' => 'আজেৰবাইজানী',\n 'az_AZ' => 'আজেৰবাইজানী (আজাৰবেইজান)',\n 'az_Cyrl' => 'আজেৰবাইজানী (চিৰিলিক)", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/as.php", "language": "php", "file_size": 47054, "cut_index": 1331, "middle_length": 229}} {"prefix": " => 'ərəb (Livan)',\n 'ar_LY' => 'ərəb (Liviya)',\n 'ar_MA' => 'ərəb (Mərakeş)',\n 'ar_MR' => 'ərəb (Mavritaniya)',\n 'ar_OM' => 'ərəb (Oman)',\n 'ar_PS' => 'ərəb (Fələstin Əraziləri)',\n 'ar_QA' => 'ərəb (Qətər)',\n 'ar_SA' => 'ərəb (Səudiyyə Ərəbistanı)',\n 'ar_SD' => 'ərəb (Sudan)',\n 'ar_SO' => 'ərəb (Somali)',\n 'ar_SS' => 'ərəb (Cənubi Sudan)',\n 'ar_SY' => 'ərəb (Suriya)',\n 'ar_TD' => 'ərəb (Çad)',\n 'ar_TN' => 'ərəb (Tuni", "suffix": " 'az_Cyrl_AZ' => 'azərbaycan (kiril, Azərbaycan)',\n 'az_Latn' => 'azərbaycan (latın)',\n 'az_Latn_AZ' => 'azərbaycan (latın, Azərbaycan)',\n 'ba' => 'başqırd',\n 'ba_RU' => 'başqırd (Rusiya)',\n 'be' => 'belarus',\n '", "middle": "s)',\n 'ar_YE' => 'ərəb (Yəmən)',\n 'as' => 'assam',\n 'as_IN' => 'assam (Hindistan)',\n 'az' => 'azərbaycan',\n 'az_AZ' => 'azərbaycan (Azərbaycan)',\n 'az_Cyrl' => 'azərbaycan (kiril)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/az.php", "language": "php", "file_size": 27612, "cut_index": 1331, "middle_length": 229}} {"prefix": "арабская (Каморскія астравы)',\n 'ar_KW' => 'арабская (Кувейт)',\n 'ar_LB' => 'арабская (Ліван)',\n 'ar_LY' => 'арабская (Лівія)',\n 'ar_MA' => 'арабская (Марока)',\n 'ar_MR' => 'арабская (Маўрытанія)',\n 'ar_OM' => 'арабская (Аман)',\n 'ar_PS' => 'арабская (Палесцінскія Тэрыторыі)',\n 'ar_QA' => 'арабская (Катар)',\n 'ar_SA' => 'арабская (Саудаўская Аравія)',\n 'ar_SD' => 'арабская (Судан)',\n 'ar_SO' => 'арабская (Самалі)',\n 'ar_SS' ", "suffix": "=> 'асамская (Індыя)',\n 'az' => 'азербайджанская',\n 'az_AZ' => 'азербайджанская (Азербайджан)',\n 'az_Cyrl' => 'азербайджанская (кірыліца)',\n 'az_Cyrl_AZ' => 'азербайджанская (кірыліца, Азербайджан)',\n 'az_Latn' => 'азерба", "middle": "=> 'арабская (Паўднёвы Судан)',\n 'ar_SY' => 'арабская (Сірыя)',\n 'ar_TD' => 'арабская (Чад)',\n 'ar_TN' => 'арабская (Туніс)',\n 'ar_YE' => 'арабская (Емен)',\n 'as' => 'асамская',\n 'as_IN' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/be.php", "language": "php", "file_size": 40714, "cut_index": 1331, "middle_length": 229}} {"prefix": "iputi)',\n 'ar_ER' => 'larabukan (Eritere)',\n 'ar_IL' => 'larabukan (Isirayeli)',\n 'ar_IQ' => 'larabukan (Iraki)',\n 'ar_JO' => 'larabukan (Zɔrdani)',\n 'ar_KM' => 'larabukan (Komɔri)',\n 'ar_KW' => 'larabukan (Kowɛti)',\n 'ar_LB' => 'larabukan (Libaŋ)',\n 'ar_LY' => 'larabukan (Libi)',\n 'ar_MA' => 'larabukan (Marɔku)',\n 'ar_MR' => 'larabukan (Mɔritani)',\n 'ar_OM' => 'larabukan (Omaŋ)',\n 'ar_PS' => 'larabukan (Palesitini)',\n ", "suffix": "abukan (Cadi)',\n 'ar_TN' => 'larabukan (Tunizi)',\n 'ar_YE' => 'larabukan (Yemɛni)',\n 'be' => 'biyelorisikan',\n 'be_BY' => 'biyelorisikan (Belarusi)',\n 'bg' => 'buligarikan',\n 'bg_BG' => 'buligarikan (Buligari)',\n ", "middle": " 'ar_QA' => 'larabukan (Katari)',\n 'ar_SA' => 'larabukan (Arabiya Sawudiya)',\n 'ar_SD' => 'larabukan (Sudaŋ)',\n 'ar_SO' => 'larabukan (Somali)',\n 'ar_SY' => 'larabukan (Siri)',\n 'ar_TD' => 'lar", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/bm.php", "language": "php", "file_size": 14637, "cut_index": 921, "middle_length": 229}} {"prefix": "hp\n\nreturn [\n 'Names' => [\n 'bo' => 'བོད་སྐད་',\n 'bo_CN' => 'བོད་སྐད་ (རྒྱ་ནག)',\n 'bo_IN' => 'བོད་སྐད་ (རྒྱ་གར་)',\n 'dz' => 'རྫོང་ཁ',\n 'en' => 'དབྱིན་ཇིའི་སྐད།',\n 'en_001' => 'དབྱིན་ཇིའི་སྐད། (འཛམ་གླིང་།)',\n 'en_DE' => 'དབྱིན་ཇིའི་སྐད། (འཇར་མན་)',\n 'en_GB' => 'དབྱིན་ཇིའི་སྐད། (དབྱིན་ཇི་)',\n 'en_IN' => 'དབྱིན་ཇིའི་སྐད། (རྒྱ་གར་)',\n 'en_IT' => 'དབྱིན་ཇིའི་སྐད། (ཨི་ཀྲར་ལི་)',\n 'en_JP' => 'དབྱིན་ཇིའི་སྐད། (ཉི་ཧོང་)',\n 'en_US'", "suffix": "ི (རྒྱ་གར་)',\n 'ne_NP' => 'ནེ་པ་ལི (བལ་ཡུལ་)',\n 'ru' => 'ཨུ་རུ་སུ་སྐད་',\n 'ru_RU' => 'ཨུ་རུ་སུ་སྐད་ (ཨུ་རུ་སུ་)',\n 'zh' => 'རྒྱ་སྐད་',\n 'zh_CN' => 'རྒྱ་སྐད་ (རྒྱ་ནག)',\n 'zh_Hans' => 'རྒྱ་སྐད་ (རྒྱ་ཡིག་གསར་པ།)',\n ", "middle": " => 'དབྱིན་ཇིའི་སྐད། (ཨ་མེ་རི་ཀ།)',\n 'hi' => 'ཧིན་དི',\n 'hi_IN' => 'ཧིན་དི (རྒྱ་གར་)',\n 'ja' => 'ཉི་ཧོང་སྐད་',\n 'ja_JP' => 'ཉི་ཧོང་སྐད་ (ཉི་ཧོང་)',\n 'ne' => 'ནེ་པ་ལི',\n 'ne_IN' => 'ནེ་པ་ལ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/bo.php", "language": "php", "file_size": 1991, "cut_index": 515, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'አድላም',\n 'Arab' => 'ዓረብኛ',\n 'Aran' => 'ናስታሊ',\n 'Armn' => 'ዓይቡቤን',\n 'Beng' => 'ቋንቋ ቤንጋል',\n 'Bopo' => 'ቦፖሞፎ',\n 'Brai' => 'ብሬል',\n 'Cakm' => 'ቻክማ',\n 'Cans' => 'ውሁድ ካናዳዊ ኣቦርጅናል ሲላቢክስ',\n 'Cher' => 'ቼሪዮክ',\n 'Cyrl' => 'ቋንቋ ሲሪል',\n 'Deva' => 'ዴቫንጋሪ',\n 'Ethi' => 'እትዮጵያዊ',\n 'Geor' => 'ናይ ጆርጅያ',\n 'Grek' => 'ግሪክ',\n 'Gujr' => 'ጉጃርቲ',\n 'Guru' => 'ጉርሙኪ',\n 'Hanb' => 'ሃን ምስ ቦፖሞፎ',\n ", "suffix": " 'ጃፓናዊ',\n 'Kana' => 'ካታካና',\n 'Khmr' => 'ክመር',\n 'Knda' => 'ካናዳ',\n 'Kore' => 'ኮርያዊ',\n 'Laoo' => 'ሌኦ',\n 'Latn' => 'ላቲን',\n 'Mlym' => 'ማላያላም',\n 'Mong' => 'ማኦንጎላዊ',\n 'Mtei' => 'መይተይ ማየክ',\n 'My", "middle": " 'Hang' => 'ሃንጉል',\n 'Hani' => 'ሃን',\n 'Hans' => 'ዝተቐለለ',\n 'Hant' => 'ባህላዊ',\n 'Hebr' => 'ኢብራይስጥ',\n 'Hira' => 'ሂራጋና',\n 'Hrkt' => 'ጃፓናዊ ሲለባሪታት',\n 'Jamo' => 'ጃሞ',\n 'Jpan' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ti.php", "language": "php", "file_size": 2069, "cut_index": 537, "middle_length": 229}} {"prefix": "ratorluk Aramicesi',\n 'Armn' => 'Ermeni',\n 'Avst' => 'Avesta',\n 'Bali' => 'Bali Dili',\n 'Bamu' => 'Bamum',\n 'Bass' => 'Bassa Vah',\n 'Batk' => 'Batak',\n 'Beng' => 'Bengal',\n 'Blis' => 'Blis Sembolleri',\n 'Bopo' => 'Bopomofo',\n 'Brah' => 'Brahmi',\n 'Brai' => 'Braille',\n 'Bugi' => 'Bugis',\n 'Buhd' => 'Buhid',\n 'Cakm' => 'Chakma',\n 'Cans' => 'UCAS',\n 'Cari' => 'Karya',\n 'Cher' => 'Çeroki',\n ", "suffix": "=> 'Duployé Stenografi',\n 'Egyd' => 'Demotik Mısır',\n 'Egyh' => 'Hiyeratik Mısır',\n 'Egyp' => 'Mısır Hiyeroglifleri',\n 'Elba' => 'Elbasan',\n 'Ethi' => 'Etiyopya',\n 'Geok' => 'Hutsuri Gürcü',\n 'Geor' => 'Gürc", "middle": " 'Cirt' => 'Cirth',\n 'Copt' => 'Kıpti',\n 'Cprt' => 'Kıbrıs',\n 'Cyrl' => 'Kiril',\n 'Cyrs' => 'Eski Kilise Slavcası Kiril',\n 'Deva' => 'Devanagari',\n 'Dsrt' => 'Deseret',\n 'Dupl' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/tr.php", "language": "php", "file_size": 5225, "cut_index": 716, "middle_length": 229}} {"prefix": "s' => [\n 'Adlm' => 'ایڈلم',\n 'Arab' => 'عربی',\n 'Aran' => 'نستعلیق',\n 'Armn' => 'آرمینیائی',\n 'Beng' => 'بنگالی',\n 'Bopo' => 'بوپوموفو',\n 'Brai' => 'بریل',\n 'Cakm' => 'چکما',\n 'Cans' => 'متحدہ کینیڈین ایبوریجنل سلیبکس',\n 'Cher' => 'چیروکی',\n 'Cyrl' => 'سیریلک',\n 'Deva' => 'دیوناگری',\n 'Ethi' => 'ایتھوپیائی',\n 'Geor' => 'جارجیائی',\n 'Grek' => 'یونانی',\n 'Gujr' => 'گجراتی',\n 'Guru' => 'گرمکھی", "suffix": "\n 'Jamo' => 'جامو',\n 'Jpan' => 'جاپانی',\n 'Kana' => 'کٹاکانا',\n 'Khmr' => 'خمیر',\n 'Knda' => 'کنڑ',\n 'Kore' => 'کوریائی',\n 'Laoo' => 'لاؤ',\n 'Latn' => 'لاطینی',\n 'Mlym' => 'ملیالم',\n 'Mo", "middle": "',\n 'Hanb' => 'ہینب',\n 'Hang' => 'ہنگول',\n 'Hani' => 'ہان',\n 'Hans' => 'آسان',\n 'Hant' => 'روایتی',\n 'Hebr' => 'عبرانی',\n 'Hira' => 'ہیراگینا',\n 'Hrkt' => 'جاپانی سیلابریز',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ur.php", "language": "php", "file_size": 2025, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\nreturn [\n 'Names' => [\n 'Arab' => 'Араб',\n 'Armn' => 'Арман',\n 'Beng' => 'Бенгали',\n 'Bopo' => 'Бопомофо',\n 'Brai' => 'Браилле',\n 'Cyrl' => 'Кирил',\n 'Deva' => 'Девангари',\n 'Ethi' => 'Ҳабаш',\n 'Geor' => 'Грузин',\n 'Grek' => 'Юнон',\n 'Gujr' => 'Гужарати',\n 'Guru' => 'Гурмухи',\n 'Hang' => 'Хангул',\n 'Hani' => 'Хан',\n 'Hans' => 'Соддалаштирилган',\n 'Hant' => 'Анъанавий',\n 'Hebr' => 'Иб", "suffix": " 'Mlym' => 'Малайалам',\n 'Mong' => 'Мўғулча',\n 'Mymr' => 'Мьянма',\n 'Orya' => 'Ория',\n 'Sinh' => 'Синхала',\n 'Taml' => 'Тамил',\n 'Telu' => 'Телугу',\n 'Thaa' => 'Таана',\n 'Thai' => 'Тай',\n ", "middle": "роний',\n 'Hira' => 'Хирагана',\n 'Jpan' => 'Япон',\n 'Kana' => 'Катакана',\n 'Khmr' => 'Хмер',\n 'Knda' => 'Каннада',\n 'Kore' => 'Корейс',\n 'Laoo' => 'Лао',\n 'Latn' => 'Лотин',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/uz_Cyrl.php", "language": "php", "file_size": 1359, "cut_index": 515, "middle_length": 229}} {"prefix": "rabeke (Kuweti)',\n 'ar_LB' => 'Arabeke (Lɛbanɔn)',\n 'ar_LY' => 'Arabeke (Libya)',\n 'ar_MA' => 'Arabeke (Moroko)',\n 'ar_MR' => 'Arabeke (Mɔretenia)',\n 'ar_OM' => 'Arabeke (Oman)',\n 'ar_PS' => 'Arabeke (Palestaen West Bank ne Gaza)',\n 'ar_QA' => 'Arabeke (Kata)',\n 'ar_SA' => 'Arabeke (Saudi Arabia)',\n 'ar_SD' => 'Arabeke (Sudan)',\n 'ar_SO' => 'Arabeke (Somalia)',\n 'ar_SS' => 'Arabeke (Sudan Anaafoɔ)',\n 'ar_SY' => 'Arabeke (Sir", "suffix": "_AZ' => 'Asabegyanni (Asabegyan)',\n 'az_Cyrl' => 'Asabegyanni (Kreleke)',\n 'az_Cyrl_AZ' => 'Asabegyanni (Kreleke, Asabegyan)',\n 'az_Latn' => 'Asabegyanni (Laatin)',\n 'az_Latn_AZ' => 'Asabegyanni (Laatin, Asabegyan)',\n 'be", "middle": "ia)',\n 'ar_TD' => 'Arabeke (Kyad)',\n 'ar_TN' => 'Arabeke (Tunihyia)',\n 'ar_YE' => 'Arabeke (Yɛmɛn)',\n 'as' => 'Asamese',\n 'as_IN' => 'Asamese (India)',\n 'az' => 'Asabegyanni',\n 'az", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ak.php", "language": "php", "file_size": 26598, "cut_index": 1331, "middle_length": 229}} {"prefix": "?php\n\nreturn [\n 'Names' => [\n 'en_MO' => 'الإنجليزية (ماكاو الصينية [منطقة إدارية خاصة])',\n 'en_MS' => 'الإنجليزية (مونتيسيرات)',\n 'es_UY' => 'الإسبانية (أوروغواي)',\n 'lo' => 'اللاوو',\n 'lo_LA' => 'اللاوو (لاوس)',\n 'pt_MO' => 'البرتغالية (ماكاو الصينية [منطقة إدارية خاصة])',\n 'sh' => 'الكرواتية الصربية',\n 'sh_BA' => 'الكرواتية الصربية (البوسنة والهرسك)',\n 'sw' => 'السواحيلية',\n 'sw_CD' => 'السواحيلية (الكونغو - كينشاسا)',\n 'sw_K", "suffix": "'التيغرينية (إريتريا)',\n 'ti_ET' => 'التيغرينية (إثيوبيا)',\n 'zh_Hans_MO' => 'الصينية (المبسطة، ماكاو الصينية [منطقة إدارية خاصة])',\n 'zh_Hant_MO' => 'الصينية (التقليدية، ماكاو الصينية [منطقة إدارية خاصة])',\n 'zh_MO' => 'الصينية", "middle": "E' => 'السواحيلية (كينيا)',\n 'sw_TZ' => 'السواحيلية (تنزانيا)',\n 'sw_UG' => 'السواحيلية (أوغندا)',\n 'te' => 'التيلوجو',\n 'te_IN' => 'التيلوجو (الهند)',\n 'ti' => 'التيغرينية',\n 'ti_ER' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ar_SA.php", "language": "php", "file_size": 1487, "cut_index": 513, "middle_length": 229}} {"prefix": "әп (Кувейт)',\n 'ar_LB' => 'ғәрәп (Ливан)',\n 'ar_LY' => 'ғәрәп (Ливия)',\n 'ar_MA' => 'ғәрәп (Марокко)',\n 'ar_MR' => 'ғәрәп (Мавритания)',\n 'ar_OM' => 'ғәрәп (Оман)',\n 'ar_PS' => 'ғәрәп (Фәләстин территориялары)',\n 'ar_QA' => 'ғәрәп (Катар)',\n 'ar_SA' => 'ғәрәп (Сәғүд Ғәрәбстаны)',\n 'ar_SD' => 'ғәрәп (Судан)',\n 'ar_SO' => 'ғәрәп (Сомали)',\n 'ar_SS' => 'ғәрәп (Көньяҡ Судан)',\n 'ar_SY' => 'ғәрәп (Сүриә)',\n 'ar_TD' => 'ғәр", "suffix": " 'az_Cyrl' => 'әзербайжан (кириллица)',\n 'az_Cyrl_AZ' => 'әзербайжан (кириллица, Әзербайжан)',\n 'az_Latn' => 'әзербайжан (латиница)',\n 'az_Latn_AZ' => 'әзербайжан (латиница, Әзербайжан)',\n 'ba' => 'башҡорт',\n 'ba_RU' =>", "middle": "әп (Чад)',\n 'ar_TN' => 'ғәрәп (Тунис)',\n 'ar_YE' => 'ғәрәп (Йәмән)',\n 'as' => 'ассам',\n 'as_IN' => 'ассам (Һиндостан)',\n 'az' => 'әзербайжан',\n 'az_AZ' => 'әзербайжан (Әзербайжан)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ba.php", "language": "php", "file_size": 36226, "cut_index": 1331, "middle_length": 229}} {"prefix": "ি (লেবানন)',\n 'ar_LY' => 'আরবি (লিবিয়া)',\n 'ar_MA' => 'আরবি (মরক্কো)',\n 'ar_MR' => 'আরবি (মরিতানিয়া)',\n 'ar_OM' => 'আরবি (ওমান)',\n 'ar_PS' => 'আরবি (প্যালেস্টাইন ভূখণ্ড)',\n 'ar_QA' => 'আরবি (কাতার)',\n 'ar_SA' => 'আরবি (সৌদি আরব)',\n 'ar_SD' => 'আরবি (সুদান)',\n 'ar_SO' => 'আরবি (সোমালিয়া)',\n 'ar_SS' => 'আরবি (দক্ষিণ সুদান)',\n 'ar_SY' => 'আরবি (সিরিয়া)',\n 'ar_TD' => 'আরবি (চাদ)',\n 'ar_TN' => 'আরবি (তিউনিসিয়া)',\n ", "suffix": "'az_Cyrl_AZ' => 'আজারবাইজানী (সিরিলিক, আজারবাইজান)',\n 'az_Latn' => 'আজারবাইজানী (ল্যাটিন)',\n 'az_Latn_AZ' => 'আজারবাইজানী (ল্যাটিন, আজারবাইজান)',\n 'ba' => 'বাশকির',\n 'ba_RU' => 'বাশকির (রাশিয়া)',\n 'be' => 'বেলারুশীয়',\n ", "middle": " 'ar_YE' => 'আরবি (ইয়েমেন)',\n 'as' => 'অসমীয়া',\n 'as_IN' => 'অসমীয়া (ভারত)',\n 'az' => 'আজারবাইজানী',\n 'az_AZ' => 'আজারবাইজানী (আজারবাইজান)',\n 'az_Cyrl' => 'আজারবাইজানী (সিরিলিক)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/bn.php", "language": "php", "file_size": 47612, "cut_index": 1331, "middle_length": 229}} {"prefix": "eg (Koweit)',\n 'ar_LB' => 'arabeg (Liban)',\n 'ar_LY' => 'arabeg (Libia)',\n 'ar_MA' => 'arabeg (Maroko)',\n 'ar_MR' => 'arabeg (Maouritania)',\n 'ar_OM' => 'arabeg (Oman)',\n 'ar_PS' => 'arabeg (Tiriadoù Palestina)',\n 'ar_QA' => 'arabeg (Qatar)',\n 'ar_SA' => 'arabeg (Arabia Saoudat)',\n 'ar_SD' => 'arabeg (Soudan)',\n 'ar_SO' => 'arabeg (Somalia)',\n 'ar_SS' => 'arabeg (Soudan ar Su)',\n 'ar_SY' => 'arabeg (Siria)',\n 'ar_TD' ", "suffix": "zerbaidjan)',\n 'az_Cyrl' => 'azerbaidjaneg (kirillek)',\n 'az_Cyrl_AZ' => 'azerbaidjaneg (kirillek, Azerbaidjan)',\n 'az_Latn' => 'azerbaidjaneg (latin)',\n 'az_Latn_AZ' => 'azerbaidjaneg (latin, Azerbaidjan)',\n 'ba' => 'bac", "middle": "=> 'arabeg (Tchad)',\n 'ar_TN' => 'arabeg (Tunizia)',\n 'ar_YE' => 'arabeg (Yemen)',\n 'as' => 'asameg',\n 'as_IN' => 'asameg (India)',\n 'az' => 'azerbaidjaneg',\n 'az_AZ' => 'azerbaidjaneg (A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/br.php", "language": "php", "file_size": 27710, "cut_index": 1331, "middle_length": 229}} {"prefix": "الى',\n 'Bamu' => 'بامۇم',\n 'Bass' => 'باسسا',\n 'Batk' => 'باتاك',\n 'Beng' => 'بېنگال',\n 'Blis' => 'بىلىس بەلگىلىرى',\n 'Bopo' => 'خەنچە پىنيىن',\n 'Brah' => 'براخمى',\n 'Brai' => 'برائىل ئەمالار يېزىقى',\n 'Bugi' => 'بۇگى',\n 'Buhd' => 'بۇخىت',\n 'Cakm' => 'چاكما',\n 'Cans' => 'بىرلىككە كەلگەن كانادا يەرلىك بوغۇم جەدۋىلى',\n 'Cari' => 'كارىيا',\n 'Cham' => 'چام',\n 'Cher' => 'چېروكى',\n 'Cirt' => 'كىرسچە',\n ", "suffix": "اتىرىلەش',\n 'Egyd' => 'دېموتىكچە مىسىر',\n 'Egyh' => 'خىيەراتىكچە مىسىر',\n 'Egyp' => 'تەسۋىرىي يېزىق مىسىر',\n 'Ethi' => 'ئېفىيوپىيەچە',\n 'Geok' => 'خۇتسۇرى گىرۇزىنچە',\n 'Geor' => 'گىرۇزىنچە',\n 'Glag' => 'گىلا", "middle": " 'Copt' => 'كوپتىك',\n 'Cprt' => 'سىپرۇس',\n 'Cyrl' => 'كىرىل',\n 'Cyrs' => 'قەدىمكى چىركاۋ سىلاۋيانچە كىرىل',\n 'Deva' => 'دېۋاناگارى',\n 'Dsrt' => 'دېزېرېت',\n 'Dupl' => 'دۇپلويان تېز خ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/ug.php", "language": "php", "file_size": 6661, "cut_index": 716, "middle_length": 229}} {"prefix": " 'ar_KW' => 'العربية (الكويت)',\n 'ar_LB' => 'العربية (لبنان)',\n 'ar_LY' => 'العربية (ليبيا)',\n 'ar_MA' => 'العربية (المغرب)',\n 'ar_MR' => 'العربية (موريتانيا)',\n 'ar_OM' => 'العربية (عُمان)',\n 'ar_PS' => 'العربية (الأراضي الفلسطينية)',\n 'ar_QA' => 'العربية (قطر)',\n 'ar_SA' => 'العربية (المملكة العربية السعودية)',\n 'ar_SD' => 'العربية (السودان)',\n 'ar_SO' => 'العربية (الصومال)',\n 'ar_SS' => 'العربية (جنوب السودان)',\n '", "suffix": "ربيجانية',\n 'az_AZ' => 'الأذربيجانية (أذربيجان)',\n 'az_Cyrl' => 'الأذربيجانية (السيريلية)',\n 'az_Cyrl_AZ' => 'الأذربيجانية (السيريلية، أذربيجان)',\n 'az_Latn' => 'الأذربيجانية (اللاتينية)',\n 'az_Latn_AZ' => 'الأذربيجانية (", "middle": "ar_SY' => 'العربية (سوريا)',\n 'ar_TD' => 'العربية (تشاد)',\n 'ar_TN' => 'العربية (تونس)',\n 'ar_YE' => 'العربية (اليمن)',\n 'as' => 'الأسامية',\n 'as_IN' => 'الأسامية (الهند)',\n 'az' => 'الأذ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ar.php", "language": "php", "file_size": 39811, "cut_index": 1331, "middle_length": 229}} {"prefix": " => 'әрәб (Ливан)',\n 'ar_LY' => 'әрәб (Ливија)',\n 'ar_MA' => 'әрәб (Мәракеш)',\n 'ar_MR' => 'әрәб (Мавританија)',\n 'ar_OM' => 'әрәб (Оман)',\n 'ar_PS' => 'әрәб (Fələstin Əraziləri)',\n 'ar_QA' => 'әрәб (Гәтәр)',\n 'ar_SA' => 'әрәб (Сәудијјә Әрәбистаны)',\n 'ar_SD' => 'әрәб (Судан)',\n 'ar_SO' => 'әрәб (Сомали)',\n 'ar_SS' => 'әрәб (Ҹәнуби Судан)',\n 'ar_SY' => 'әрәб (Сурија)',\n 'ar_TD' => 'әрәб (Чад)',\n 'ar_TN' => 'әрәб (Туни", "suffix": " 'az_Cyrl_AZ' => 'азәрбајҹан (Кирил, Азәрбајҹан)',\n 'az_Latn' => 'азәрбајҹан (latın)',\n 'az_Latn_AZ' => 'азәрбајҹан (latın, Азәрбајҹан)',\n 'ba' => 'башгырд',\n 'ba_RU' => 'башгырд (Русија)',\n 'be' => 'беларус',\n '", "middle": "с)',\n 'ar_YE' => 'әрәб (Јәмән)',\n 'as' => 'ассам',\n 'as_IN' => 'ассам (Һиндистан)',\n 'az' => 'азәрбајҹан',\n 'az_AZ' => 'азәрбајҹан (Азәрбајҹан)',\n 'az_Cyrl' => 'азәрбајҹан (Кирил)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/az_Cyrl.php", "language": "php", "file_size": 35700, "cut_index": 1331, "middle_length": 229}} {"prefix": "'Èdè Adam',\n 'Arab' => 'èdè Lárúbáwá',\n 'Aran' => 'Èdè Aran',\n 'Armn' => 'Àmẹ́níà',\n 'Bamu' => 'Bamumu',\n 'Batk' => 'Bataki',\n 'Beng' => 'Báńgílà',\n 'Bopo' => 'Bopomófò',\n 'Brai' => 'Bíráìlè',\n 'Cakm' => 'Kami',\n 'Cans' => 'Èdè Apapo Onile Onisilebu ti Kanada',\n 'Cher' => 'Èdè Sheroki',\n 'Cyrl' => 'èdè ilẹ̀ Rọ́ṣíà',\n 'Deva' => 'Dẹfanagárì',\n 'Ethi' => 'Ẹtiópíìkì',\n 'Geor' => 'Jọ́jíànù',\n 'Gong' =>", "suffix": " mú rọrùn.',\n 'Hant' => 'Àbáláyé',\n 'Hebr' => 'Hébérù',\n 'Hira' => 'Hiragánà',\n 'Hmnp' => 'Nyiakengi Puase Himongi',\n 'Hrkt' => 'ìlànà àfọwọ́kọ ará Jàpánù',\n 'Java' => 'Èdè Jafaniisi',\n 'Jpan' => 'èdè jàpáàn", "middle": " 'Gunjala Gondi',\n 'Grek' => 'Gíríkì',\n 'Gujr' => 'Gujaráti',\n 'Guru' => 'Gurumúkhì',\n 'Hanb' => 'Han pẹ̀lú Bopomófò',\n 'Hang' => 'Háńgùlù',\n 'Hani' => 'Háànù',\n 'Hans' => 'tí wọ́n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/yo.php", "language": "php", "file_size": 2513, "cut_index": 563, "middle_length": 229}} {"prefix": "_KW' => 'арабски (Кувейт)',\n 'ar_LB' => 'арабски (Ливан)',\n 'ar_LY' => 'арабски (Либия)',\n 'ar_MA' => 'арабски (Мароко)',\n 'ar_MR' => 'арабски (Мавритания)',\n 'ar_OM' => 'арабски (Оман)',\n 'ar_PS' => 'арабски (Палестински територии)',\n 'ar_QA' => 'арабски (Катар)',\n 'ar_SA' => 'арабски (Саудитска Арабия)',\n 'ar_SD' => 'арабски (Судан)',\n 'ar_SO' => 'арабски (Сомалия)',\n 'ar_SS' => 'арабски (Южен Судан)',\n 'ar_SY' => 'арабски", "suffix": " 'az_AZ' => 'азербайджански (Азербайджан)',\n 'az_Cyrl' => 'азербайджански (кирилица)',\n 'az_Cyrl_AZ' => 'азербайджански (кирилица, Азербайджан)',\n 'az_Latn' => 'азербайджански (латиница)',\n 'az_Latn_AZ' => 'азербайджански (латин", "middle": " (Сирия)',\n 'ar_TD' => 'арабски (Чад)',\n 'ar_TN' => 'арабски (Тунис)',\n 'ar_YE' => 'арабски (Йемен)',\n 'as' => 'асамски',\n 'as_IN' => 'асамски (Индия)',\n 'az' => 'азербайджански',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/bg.php", "language": "php", "file_size": 38787, "cut_index": 1331, "middle_length": 229}} {"prefix": " => 'Arabies (Koeweit)',\n 'ar_LB' => 'Arabies (Libanon)',\n 'ar_LY' => 'Arabies (Libië)',\n 'ar_MA' => 'Arabies (Marokko)',\n 'ar_MR' => 'Arabies (Mauritanië)',\n 'ar_OM' => 'Arabies (Oman)',\n 'ar_PS' => 'Arabies (Palestynse Grondgebiede)',\n 'ar_QA' => 'Arabies (Katar)',\n 'ar_SA' => 'Arabies (Saoedi-Arabië)',\n 'ar_SD' => 'Arabies (Soedan)',\n 'ar_SO' => 'Arabies (Somalië)',\n 'ar_SS' => 'Arabies (Suid-Soedan)',\n 'ar_SY' => 'Arabie", "suffix": " 'az_AZ' => 'Azerbeidjans (Azerbeidjan)',\n 'az_Cyrl' => 'Azerbeidjans (Cyrillies)',\n 'az_Cyrl_AZ' => 'Azerbeidjans (Cyrillies, Azerbeidjan)',\n 'az_Latn' => 'Azerbeidjans (Latyn)',\n 'az_Latn_AZ' => 'Azerbeidjans (Latyn, Azer", "middle": "s (Sirië)',\n 'ar_TD' => 'Arabies (Tsjad)',\n 'ar_TN' => 'Arabies (Tunisië)',\n 'ar_YE' => 'Arabies (Jemen)',\n 'as' => 'Assamees',\n 'as_IN' => 'Assamees (Indië)',\n 'az' => 'Azerbeidjans',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/af.php", "language": "php", "file_size": 27568, "cut_index": 1331, "middle_length": 229}} {"prefix": "'adlam',\n 'Arab' => 'Arap elipbiýi',\n 'Aran' => 'Nastalik ýazuwy',\n 'Armn' => 'Ermeni elipbiýi',\n 'Beng' => 'Bengal elipbiýi',\n 'Bopo' => 'Bopomofo elipbiýi',\n 'Brai' => 'Braýl elipbiýi',\n 'Cakm' => 'çakma',\n 'Cans' => 'Kanadanyň ýerlileriniň bogunlarynyň bitewileşdirilen ulgamy',\n 'Cher' => 'çeroki',\n 'Cyrl' => 'Kiril elipbiýi',\n 'Deva' => 'Dewanagari elipbiýi',\n 'Ethi' => 'Efiop elipbiýi',\n 'Geor' => 'Gruzin elipbiý", "suffix": "\n 'Hans' => 'Ýönekeýleşdirilen',\n 'Hant' => 'Adaty',\n 'Hebr' => 'Ýewreý elipbiýi',\n 'Hira' => 'Hiragana elipbiýi',\n 'Hrkt' => 'Ýapon bogun elipbiýleri',\n 'Jamo' => 'Jamo elipbiýi',\n 'Jpan' => 'Ýapon elipbiýi", "middle": "i',\n 'Grek' => 'Grek elipbiýi',\n 'Gujr' => 'Gujarati elipbiýi',\n 'Guru' => 'Gurmuhi elipbiýi',\n 'Hanb' => 'Bopomofo han elipbiýi',\n 'Hang' => 'Hangyl elipbiýi',\n 'Hani' => 'Han elipbiýi',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/scripts/tk.php", "language": "php", "file_size": 2161, "cut_index": 563, "middle_length": 229}} {"prefix": "l' => 'آذربایجانی (سیریلی)',\n 'az_Cyrl_AZ' => 'آذربایجانی (سیریلی، جمهوری آذربایجان)',\n 'az_Latn' => 'آذربایجانی (لاتین)',\n 'az_Latn_AZ' => 'آذربایجانی (لاتین، جمهوری آذربایجان)',\n 'bg_BG' => 'بلغاری (بلغاریا)',\n 'bn_BD' => 'بنگالی (بنگله‌دیش)',\n 'bs_BA' => 'بوسنیایی (بوسنیا و هرزه‌گوینا)',\n 'bs_Cyrl_BA' => 'بوسنیایی (سیریلی، بوسنیا و هرزه‌گوینا)',\n 'bs_Latn_BA' => 'بوسنیایی (لاتین، بوسنیا و هرزه‌گوینا)',\n 'ca_AD' => 'کاتالان (اندورا)',\n ", "suffix": ",\n 'en_BE' => 'انگلیسی (بلجیم)',\n 'en_BS' => 'انگلیسی (بهاماس)',\n 'en_CH' => 'انگلیسی (سویس)',\n 'en_DK' => 'انگلیسی (دنمارک)',\n 'en_EE' => 'انگلیسی (استونیا)',\n 'en_ER' => 'انگلیسی (اریتریا)',\n 'en_ES' => 'ا", "middle": "'ca_ES' => 'کاتالان (هسپانیه)',\n 'da_DK' => 'دانمارکی (دنمارک)',\n 'de_BE' => 'آلمانی (بلجیم)',\n 'de_CH' => 'آلمانی (سویس)',\n 'ee_GH' => 'اوه‌ای (گانا)',\n 'en_AG' => 'انگلیسی (انتیگوا و باربودا)'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/fa_AF.php", "language": "php", "file_size": 14573, "cut_index": 921, "middle_length": 229}} {"prefix": "\n 'ar_ER' => 'Aarabeere (Eriteree)',\n 'ar_IL' => 'Aarabeere (Israa’iila)',\n 'ar_IQ' => 'Aarabeere (Iraak)',\n 'ar_JO' => 'Aarabeere (Jordani)',\n 'ar_KM' => 'Aarabeere (Komoor)',\n 'ar_KW' => 'Aarabeere (Kuweyti)',\n 'ar_LB' => 'Aarabeere (Libaa)',\n 'ar_LY' => 'Aarabeere (Libi)',\n 'ar_MA' => 'Aarabeere (Maruk)',\n 'ar_MR' => 'Aarabeere (Muritani)',\n 'ar_OM' => 'Aarabeere (Omaan)',\n 'ar_PS' => 'Aarabeere (Palestiin Sisjordani e Ga", "suffix": "ar_TD' => 'Aarabeere (Caad)',\n 'ar_TN' => 'Aarabeere (Tunisii)',\n 'ar_YE' => 'Aarabeere (Yemen)',\n 'be' => 'Belaruuse',\n 'be_BY' => 'Belaruuse (Belaruus)',\n 'bg' => 'Bulgariire',\n 'bg_BG' => 'Bulgariire (Bulgarii)'", "middle": "asaa)',\n 'ar_QA' => 'Aarabeere (Kataar)',\n 'ar_SA' => 'Aarabeere (Arabii Sawdit)',\n 'ar_SD' => 'Aarabeere (Sudaan)',\n 'ar_SO' => 'Aarabeere (Somalii)',\n 'ar_SY' => 'Aarabeere (Sirii)',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ff.php", "language": "php", "file_size": 14405, "cut_index": 921, "middle_length": 229}} {"prefix": "'ar_MA' => 'アラビア語 (モロッコ)',\n 'ar_MR' => 'アラビア語 (モーリタニア)',\n 'ar_OM' => 'アラビア語 (オマーン)',\n 'ar_PS' => 'アラビア語 (パレスチナ自治区)',\n 'ar_QA' => 'アラビア語 (カタール)',\n 'ar_SA' => 'アラビア語 (サウジアラビア)',\n 'ar_SD' => 'アラビア語 (スーダン)',\n 'ar_SO' => 'アラビア語 (ソマリア)',\n 'ar_SS' => 'アラビア語 (南スーダン)',\n 'ar_SY' => 'アラビア語 (シリア)',\n 'ar_TD' => 'アラビア語 (チャド)',\n 'ar_TN' => 'アラビア語 (チュニジア)',\n 'ar_YE' => 'アラビア語 (イエメン)',\n 'as' => 'アッサム語',\n 'as_IN' => 'アッサム語 (インド)", "suffix": "_AZ' => 'アゼルバイジャン語 (ラテン文字、アゼルバイジャン)',\n 'ba' => 'バシキール語',\n 'ba_RU' => 'バシキール語 (ロシア)',\n 'be' => 'ベラルーシ語',\n 'be_BY' => 'ベラルーシ語 (ベラルーシ)',\n 'bg' => 'ブルガリア語',\n 'bg_BG' => 'ブルガリア語 (ブルガリア)',\n 'bm' => 'バンバラ語',\n ", "middle": "',\n 'az' => 'アゼルバイジャン語',\n 'az_AZ' => 'アゼルバイジャン語 (アゼルバイジャン)',\n 'az_Cyrl' => 'アゼルバイジャン語 (キリル文字)',\n 'az_Cyrl_AZ' => 'アゼルバイジャン語 (キリル文字、アゼルバイジャン)',\n 'az_Latn' => 'アゼルバイジャン語 (ラテン文字)',\n 'az_Latn", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ja.php", "language": "php", "file_size": 36244, "cut_index": 1331, "middle_length": 229}} {"prefix": "n)',\n 'ar_LY' => 'Arab (Libya)',\n 'ar_MA' => 'Arab (Maroko)',\n 'ar_MR' => 'Arab (Mauritania)',\n 'ar_OM' => 'Arab (Oman)',\n 'ar_PS' => 'Arab (Tlatah Palèstina)',\n 'ar_QA' => 'Arab (Katar)',\n 'ar_SA' => 'Arab (Arab Saudi)',\n 'ar_SD' => 'Arab (Sudan)',\n 'ar_SO' => 'Arab (Somalia)',\n 'ar_SS' => 'Arab (Sudan Kidul)',\n 'ar_SY' => 'Arab (Suriah)',\n 'ar_TD' => 'Arab (Chad)',\n 'ar_TN' => 'Arab (Tunisia)',\n 'ar_YE' => 'A", "suffix": "jan (Sirilik, Azerbaijan)',\n 'az_Latn' => 'Azerbaijan (Latin)',\n 'az_Latn_AZ' => 'Azerbaijan (Latin, Azerbaijan)',\n 'ba' => 'Bashkir',\n 'ba_RU' => 'Bashkir (Rusia)',\n 'be' => 'Belarus',\n 'be_BY' => 'Belarus (Bélaru", "middle": "rab (Yaman)',\n 'as' => 'Assam',\n 'as_IN' => 'Assam (Indhia)',\n 'az' => 'Azerbaijan',\n 'az_AZ' => 'Azerbaijan (Azerbaijan)',\n 'az_Cyrl' => 'Azerbaijan (Sirilik)',\n 'az_Cyrl_AZ' => 'Azerbai", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/jv.php", "language": "php", "file_size": 27511, "cut_index": 1331, "middle_length": 229}} {"prefix": "ული (კომორის კუნძულები)',\n 'ar_KW' => 'არაბული (ქუვეითი)',\n 'ar_LB' => 'არაბული (ლიბანი)',\n 'ar_LY' => 'არაბული (ლიბია)',\n 'ar_MA' => 'არაბული (მაროკო)',\n 'ar_MR' => 'არაბული (მავრიტანია)',\n 'ar_OM' => 'არაბული (ომანი)',\n 'ar_PS' => 'არაბული (პალესტინის ტერიტორიები)',\n 'ar_QA' => 'არაბული (კატარი)',\n 'ar_SA' => 'არაბული (საუდის არაბეთი)',\n 'ar_SD' => 'არაბული (სუდანი)',\n 'ar_SO' => 'არაბული (სომალი)',\n 'ar_SS' => 'არაბული (ს", "suffix": "ოეთი)',\n 'az' => 'აზერბაიჯანული',\n 'az_AZ' => 'აზერბაიჯანული (აზერბაიჯანი)',\n 'az_Cyrl' => 'აზერბაიჯანული (კირილიცა)',\n 'az_Cyrl_AZ' => 'აზერბაიჯანული (კირილიცა, აზერბაიჯანი)',\n 'az_Latn' => 'აზერბაიჯანული (ლათინური)',\n ", "middle": "ამხრეთ სუდანი)',\n 'ar_SY' => 'არაბული (სირია)',\n 'ar_TD' => 'არაბული (ჩადი)',\n 'ar_TN' => 'არაბული (ტუნისი)',\n 'ar_YE' => 'არაბული (იემენი)',\n 'as' => 'ასამური',\n 'as_IN' => 'ასამური (ინდ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ka.php", "language": "php", "file_size": 51834, "cut_index": 1331, "middle_length": 229}} {"prefix": "ar_ER' => 'Kĩarabu (Eritrea)',\n 'ar_IL' => 'Kĩarabu (Israeli)',\n 'ar_IQ' => 'Kĩarabu (Iraki)',\n 'ar_JO' => 'Kĩarabu (Njorondani)',\n 'ar_KM' => 'Kĩarabu (Komoro)',\n 'ar_KW' => 'Kĩarabu (Kuwaiti)',\n 'ar_LB' => 'Kĩarabu (Lebanoni)',\n 'ar_LY' => 'Kĩarabu (Libya)',\n 'ar_MA' => 'Kĩarabu (Moroko)',\n 'ar_MR' => 'Kĩarabu (Moritania)',\n 'ar_OM' => 'Kĩarabu (Omani)',\n 'ar_PS' => 'Kĩarabu (Ukingo wa Magharibi na Ukanda wa Gaza wa Palestina)',\n", "suffix": "',\n 'ar_TN' => 'Kĩarabu (Tunisia)',\n 'ar_YE' => 'Kĩarabu (Yemeni)',\n 'be' => 'Kibelarusi',\n 'be_BY' => 'Kibelarusi (Belarusi)',\n 'bg' => 'Kibulgaria',\n 'bg_BG' => 'Kibulgaria (Bulgaria)',\n 'bn' => 'Kibangla'", "middle": " 'ar_QA' => 'Kĩarabu (Katari)',\n 'ar_SA' => 'Kĩarabu (Saudi)',\n 'ar_SD' => 'Kĩarabu (Sudani)',\n 'ar_SO' => 'Kĩarabu (Somaria)',\n 'ar_SY' => 'Kĩarabu (Siria)',\n 'ar_TD' => 'Kĩarabu (Chadi)", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ki.php", "language": "php", "file_size": 14320, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ar_KM' => 'араб тілі (Комор аралдары)',\n 'ar_KW' => 'араб тілі (Кувейт)',\n 'ar_LB' => 'араб тілі (Ливан)',\n 'ar_LY' => 'араб тілі (Ливия)',\n 'ar_MA' => 'араб тілі (Марокко)',\n 'ar_MR' => 'араб тілі (Мавритания)',\n 'ar_OM' => 'араб тілі (Оман)',\n 'ar_PS' => 'араб тілі (Палестина аймақтары)',\n 'ar_QA' => 'араб тілі (Катар)',\n 'ar_SA' => 'араб тілі (Сауд Арабиясы)',\n 'ar_SD' => 'араб тілі (Судан)',\n 'ar_SO' => 'араб тілі (Сомали", "suffix": "ссам тілі',\n 'as_IN' => 'ассам тілі (Үндістан)',\n 'az' => 'әзірбайжан тілі',\n 'az_AZ' => 'әзірбайжан тілі (Әзірбайжан)',\n 'az_Cyrl' => 'әзірбайжан тілі (кирилл жазуы)',\n 'az_Cyrl_AZ' => 'әзірбайжан тілі (кирилл жазуы, Әзі", "middle": ")',\n 'ar_SS' => 'араб тілі (Оңтүстік Судан)',\n 'ar_SY' => 'араб тілі (Сирия)',\n 'ar_TD' => 'араб тілі (Чад)',\n 'ar_TN' => 'араб тілі (Тунис)',\n 'ar_YE' => 'араб тілі (Йемен)',\n 'as' => 'а", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/kk.php", "language": "php", "file_size": 43099, "cut_index": 1331, "middle_length": 229}} {"prefix": "لى (يوردانيا)',\n 'ar_KM' => 'اراب ءتىلى (كومور ارالدارى)',\n 'ar_KW' => 'اراب ءتىلى (كۋۆەيت)',\n 'ar_LB' => 'اراب ءتىلى (ليۆان)',\n 'ar_LY' => 'اراب ءتىلى (ليۆيا)',\n 'ar_MA' => 'اراب ءتىلى (ماروككو)',\n 'ar_MR' => 'اراب ءتىلى (ماۆريتانيا)',\n 'ar_OM' => 'اراب ءتىلى (ومان)',\n 'ar_PS' => 'اراب ءتىلى (پالەستينا ايماقتارى)',\n 'ar_QA' => 'اراب ءتىلى (كاتار)',\n 'ar_SA' => 'اراب ءتىلى (ساۋد ارابياسى)',\n 'ar_SD' => 'اراب ءتىلى (سۋدان)',\n ", "suffix": "ب ءتىلى (يەمەن)',\n 'as' => 'اسسام ءتىلى',\n 'as_IN' => 'اسسام ءتىلى (ءۇندىستان)',\n 'az' => 'ءازىربايجان ءتىلى',\n 'az_AZ' => 'ءازىربايجان ءتىلى (ءازىربايجان)',\n 'az_Cyrl' => 'ءازىربايجان ءتىلى (كيريل جازۋى)',\n 'az_Cy", "middle": " 'ar_SO' => 'اراب ءتىلى (سومالي)',\n 'ar_SS' => 'اراب ءتىلى (وڭتۇستىك سۋدان)',\n 'ar_SY' => 'اراب ءتىلى (سيريا)',\n 'ar_TD' => 'اراب ءتىلى (چاد)',\n 'ar_TN' => 'اراب ءتىلى (تۋنيس)',\n 'ar_YE' => 'ارا", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/kk_Arab.php", "language": "php", "file_size": 44400, "cut_index": 1331, "middle_length": 229}} {"prefix": "(កូម័រ)',\n 'ar_KW' => 'អារ៉ាប់ (កូវ៉ែត)',\n 'ar_LB' => 'អារ៉ាប់ (លីបង់)',\n 'ar_LY' => 'អារ៉ាប់ (លីប៊ី)',\n 'ar_MA' => 'អារ៉ាប់ (ម៉ារ៉ុក)',\n 'ar_MR' => 'អារ៉ាប់ (ម៉ូរីតានី)',\n 'ar_OM' => 'អារ៉ាប់ (អូម៉ង់)',\n 'ar_PS' => 'អារ៉ាប់ (ដែនដីប៉ាឡេស្ទីន)',\n 'ar_QA' => 'អារ៉ាប់ (កាតា)',\n 'ar_SA' => 'អារ៉ាប់ (អារ៉ាប៊ីសាអូឌីត)',\n 'ar_SD' => 'អារ៉ាប់ (ស៊ូដង់)',\n 'ar_SO' => 'អារ៉ាប់ (សូម៉ាលី)',\n 'ar_SS' => 'អារ៉ាប់ (ស៊ូដង់​ខាង​ត្បូង)',\n ", "suffix": " 'អាស៊ែបៃហ្សង់',\n 'az_AZ' => 'អាស៊ែបៃហ្សង់ (អាស៊ែបៃហ្សង់)',\n 'az_Cyrl' => 'អាស៊ែបៃហ្សង់ (ស៊ីរីលីក)',\n 'az_Cyrl_AZ' => 'អាស៊ែបៃហ្សង់ (ស៊ីរីលីក, អាស៊ែបៃហ្សង់)',\n 'az_Latn' => 'អាស៊ែបៃហ្សង់ (ឡាតាំង)',\n 'az_Latn_AZ' => 'អាស៊ែ", "middle": " 'ar_SY' => 'អារ៉ាប់ (ស៊ីរី)',\n 'ar_TD' => 'អារ៉ាប់ (ឆាដ)',\n 'ar_TN' => 'អារ៉ាប់ (ទុយនីស៊ី)',\n 'ar_YE' => 'អារ៉ាប់ (យេម៉ែន)',\n 'as' => 'អាសាមីស',\n 'as_IN' => 'អាសាមីស (ឥណ្ឌា)',\n 'az' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/km.php", "language": "php", "file_size": 48996, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_KW' => 'ಅರೇಬಿಕ್ (ಕುವೈತ್)',\n 'ar_LB' => 'ಅರೇಬಿಕ್ (ಲೆಬನಾನ್)',\n 'ar_LY' => 'ಅರೇಬಿಕ್ (ಲಿಬಿಯಾ)',\n 'ar_MA' => 'ಅರೇಬಿಕ್ (ಮೊರಾಕ್ಕೊ)',\n 'ar_MR' => 'ಅರೇಬಿಕ್ (ಮಾರಿಟೇನಿಯಾ)',\n 'ar_OM' => 'ಅರೇಬಿಕ್ (ಓಮನ್)',\n 'ar_PS' => 'ಅರೇಬಿಕ್ (ಪ್ಯಾಲೇಸ್ಟೇನಿಯನ್ ಪ್ರದೇಶಗಳು)',\n 'ar_QA' => 'ಅರೇಬಿಕ್ (ಖತಾರ್)',\n 'ar_SA' => 'ಅರೇಬಿಕ್ (ಸೌದಿ ಅರೇಬಿಯಾ)',\n 'ar_SD' => 'ಅರೇಬಿಕ್ (ಸುಡಾನ್)',\n 'ar_SO' => 'ಅರೇಬಿಕ್ (ಸೊಮಾಲಿಯಾ)',\n 'ar_SS' => 'ಅರೇಬಿಕ್ (ದಕ್ಷಿಣ ಸುಡಾನ್)',\n ", "suffix": "> 'ಅಜೆರ್ಬೈಜಾನಿ',\n 'az_AZ' => 'ಅಜೆರ್ಬೈಜಾನಿ (ಅಜರ್ಬೈಜಾನ್)',\n 'az_Cyrl' => 'ಅಜೆರ್ಬೈಜಾನಿ (ಸಿರಿಲಿಕ್)',\n 'az_Cyrl_AZ' => 'ಅಜೆರ್ಬೈಜಾನಿ (ಸಿರಿಲಿಕ್, ಅಜರ್ಬೈಜಾನ್)',\n 'az_Latn' => 'ಅಜೆರ್ಬೈಜಾನಿ (ಲ್ಯಾಟಿನ್)',\n 'az_Latn_AZ' => 'ಅಜೆರ್ಬೈಜಾನಿ", "middle": " 'ar_SY' => 'ಅರೇಬಿಕ್ (ಸಿರಿಯಾ)',\n 'ar_TD' => 'ಅರೇಬಿಕ್ (ಚಾದ್)',\n 'ar_TN' => 'ಅರೇಬಿಕ್ (ಟುನೀಶಿಯ)',\n 'ar_YE' => 'ಅರೇಬಿಕ್ (ಯೆಮನ್)',\n 'as' => 'ಅಸ್ಸಾಮೀಸ್',\n 'as_IN' => 'ಅಸ್ಸಾಮೀಸ್ (ಭಾರತ)',\n 'az' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/kn.php", "language": "php", "file_size": 49806, "cut_index": 1331, "middle_length": 229}} {"prefix": "'아랍어(오만)',\n 'ar_PS' => '아랍어(팔레스타인 지구)',\n 'ar_QA' => '아랍어(카타르)',\n 'ar_SA' => '아랍어(사우디아라비아)',\n 'ar_SD' => '아랍어(수단)',\n 'ar_SO' => '아랍어(소말리아)',\n 'ar_SS' => '아랍어(남수단)',\n 'ar_SY' => '아랍어(시리아)',\n 'ar_TD' => '아랍어(차드)',\n 'ar_TN' => '아랍어(튀니지)',\n 'ar_YE' => '아랍어(예멘)',\n 'as' => '아삼어',\n 'as_IN' => '아삼어(인도)',\n 'az' => '아제르바이잔어',\n 'az_AZ' => '아제르바이잔어(아제르바이잔)',\n 'az_Cyrl' => '아제르바이잔어(키릴 문자)',\n 'az_Cyrl_AZ' => '아제", "suffix": " 'bg' => '불가리아어',\n 'bg_BG' => '불가리아어(불가리아)',\n 'bm' => '밤바라어',\n 'bm_ML' => '밤바라어(말리)',\n 'bn' => '벵골어',\n 'bn_BD' => '벵골어(방글라데시)',\n 'bn_IN' => '벵골어(인도)',\n 'bo' => '티베트어',\n 'bo_CN' => '티베트어(중국)',\n ", "middle": "르바이잔어(키릴 문자, 아제르바이잔)',\n 'az_Latn' => '아제르바이잔어(로마자)',\n 'az_Latn_AZ' => '아제르바이잔어(로마자, 아제르바이잔)',\n 'ba' => '바슈키르어',\n 'ba_RU' => '바슈키르어(러시아)',\n 'be' => '벨라루스어',\n 'be_BY' => '벨라루스어(벨라루스)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ko.php", "language": "php", "file_size": 32017, "cut_index": 1331, "middle_length": 229}} {"prefix": "عربی (لؠبنان)',\n 'ar_LY' => 'عربی (لِبیا)',\n 'ar_MA' => 'عربی (موروکو)',\n 'ar_MR' => 'عربی (مارٕٹانِیا)',\n 'ar_OM' => 'عربی (اومان)',\n 'ar_PS' => 'عربی (فلسطینی علاقٕہ)',\n 'ar_QA' => 'عربی (قَطِر)',\n 'ar_SA' => 'عربی (سعودی عرب)',\n 'ar_SD' => 'عربی (سوٗڈان)',\n 'ar_SO' => 'عربی (سومالِیا)',\n 'ar_SS' => 'عربی (جنوبی سوڈان)',\n 'ar_SY' => 'عربی (شام)',\n 'ar_TD' => 'عربی (چاڑ)',\n 'ar_TN' => 'عربی (ٹونیشِیا)',\n 'ar_Y", "suffix": "AZ' => 'اَزَربیجانی (سَیرِلِک, آذربائیجان)',\n 'az_Latn' => 'اَزَربیجانی (لاطیٖنی)',\n 'az_Latn_AZ' => 'اَزَربیجانی (لاطیٖنی, آذربائیجان)',\n 'ba' => 'بَشکیٖر',\n 'ba_RU' => 'بَشکیٖر (روٗس)',\n 'be' => 'بیلَروٗشیَن',\n '", "middle": "E' => 'عربی (یَمَن)',\n 'as' => 'اسٲمؠ',\n 'as_IN' => 'اسٲمؠ (ہِندوستان)',\n 'az' => 'اَزَربیجانی',\n 'az_AZ' => 'اَزَربیجانی (آذربائیجان)',\n 'az_Cyrl' => 'اَزَربیجانی (سَیرِلِک)',\n 'az_Cyrl_", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ks.php", "language": "php", "file_size": 39673, "cut_index": 1331, "middle_length": 229}} {"prefix": "o_IN' => 'تِبتی (हिंदोस्तान)',\n 'br_FR' => 'بریٹَن (फ्रांस)',\n 'bs_Cyrl' => 'بوسنِیَن (सिरिलिक)',\n 'bs_Cyrl_BA' => 'بوسنِیَن (सिरिलिक, بوسنِیا تہٕ ہَرزِگووِنا)',\n 'bs_Latn' => 'بوسنِیَن (लातिनी)',\n 'bs_Latn_BA' => 'بوسنِیَن (लातिनी, بوسنِیا تہٕ ہَرزِگووِنا)',\n 'ca_FR' => 'کَتلان (फ्रांस)',\n 'ca_IT' => 'کَتلان (इटली)',\n 'ce_RU' => 'چیچَن (रूस)',\n 'cv_RU' => 'چُواش (रूस)',\n 'cy_GB' => 'ویلش (मुतहीद बादशाहत)',\n 'de' => 'जर्मन',\n ", "suffix": " 'de_LU' => 'जर्मन (لَکسَمبٔرٕگ)',\n 'en' => 'अंगरिज़ी',\n 'en_001' => 'अंगरिज़ी (دُنیا)',\n 'en_150' => 'अंगरिज़ी (یوٗرَپ)',\n 'en_AE' => 'अंगरिज़ी (مُتحدہ عرَب امارات)',\n 'en_AG' => 'अंगरिज़ी (اؠنٹِگُوا تہٕ باربوڑا)',\n ", "middle": " 'de_AT' => 'जर्मन (آسٹریا)',\n 'de_BE' => 'जर्मन (بیلجِیَم)',\n 'de_CH' => 'जर्मन (سُوِزَرلینڑ)',\n 'de_DE' => 'जर्मन (जर्मन)',\n 'de_IT' => 'जर्मन (इटली)',\n 'de_LI' => 'जर्मन (لِکٹیسٹیٖن)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ks_Deva.php", "language": "php", "file_size": 27851, "cut_index": 921, "middle_length": 229}} {"prefix": "ar_LB' => 'erebî (Libnan)',\n 'ar_LY' => 'erebî (Lîbya)',\n 'ar_MA' => 'erebî (Fas)',\n 'ar_MR' => 'erebî (Morîtanya)',\n 'ar_OM' => 'erebî (Uman)',\n 'ar_PS' => 'erebî (Herêmên Filistînî)',\n 'ar_QA' => 'erebî (Qeter)',\n 'ar_SA' => 'erebî (Erebistana Siûdî)',\n 'ar_SD' => 'erebî (Sûdan)',\n 'ar_SO' => 'erebî (Somalya)',\n 'ar_SS' => 'erebî (Sûdana Başûr)',\n 'ar_SY' => 'erebî (Sûrîye)',\n 'ar_TD' => 'erebî (Çad)',\n 'ar_TN' => '", "suffix": "(kirîlî)',\n 'az_Cyrl_AZ' => 'azerbaycanî (kirîlî, Azerbeycan)',\n 'az_Latn' => 'azerbaycanî (latînî)',\n 'az_Latn_AZ' => 'azerbaycanî (latînî, Azerbeycan)',\n 'ba' => 'başkîrî',\n 'ba_RU' => 'başkîrî (Rûsya)',\n 'be' =>", "middle": "erebî (Tûnis)',\n 'ar_YE' => 'erebî (Yemen)',\n 'as' => 'asamî',\n 'as_IN' => 'asamî (Hindistan)',\n 'az' => 'azerbaycanî',\n 'az_AZ' => 'azerbaycanî (Azerbeycan)',\n 'az_Cyrl' => 'azerbaycanî ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ku.php", "language": "php", "file_size": 29130, "cut_index": 1331, "middle_length": 229}} {"prefix": "KW' => 'арабча (Кувейт)',\n 'ar_LB' => 'арабча (Ливан)',\n 'ar_LY' => 'арабча (Ливия)',\n 'ar_MA' => 'арабча (Марокко)',\n 'ar_MR' => 'арабча (Мавритания)',\n 'ar_OM' => 'арабча (Оман)',\n 'ar_PS' => 'арабча (Палестина аймактары)',\n 'ar_QA' => 'арабча (Катар)',\n 'ar_SA' => 'арабча (Сауд Арабиясы)',\n 'ar_SD' => 'арабча (Судан)',\n 'ar_SO' => 'арабча (Сомали)',\n 'ar_SS' => 'арабча (Түштүк Судан)',\n 'ar_SY' => 'арабча (Сирия)',\n ", "suffix": "нча (Азербайжан)',\n 'az_Cyrl' => 'азербайжанча (Кирилл)',\n 'az_Cyrl_AZ' => 'азербайжанча (Кирилл, Азербайжан)',\n 'az_Latn' => 'азербайжанча (Латын)',\n 'az_Latn_AZ' => 'азербайжанча (Латын, Азербайжан)',\n 'ba' => 'башкырча", "middle": " 'ar_TD' => 'арабча (Чад)',\n 'ar_TN' => 'арабча (Тунис)',\n 'ar_YE' => 'арабча (Йемен)',\n 'as' => 'ассамча',\n 'as_IN' => 'ассамча (Индия)',\n 'az' => 'азербайжанча',\n 'az_AZ' => 'азербайжа", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ky.php", "language": "php", "file_size": 38509, "cut_index": 1331, "middle_length": 229}} {"prefix": "',\n 'ar_KW' => 'Arabesch (Kuwait)',\n 'ar_LB' => 'Arabesch (Libanon)',\n 'ar_LY' => 'Arabesch (Libyen)',\n 'ar_MA' => 'Arabesch (Marokko)',\n 'ar_MR' => 'Arabesch (Mauretanien)',\n 'ar_OM' => 'Arabesch (Oman)',\n 'ar_PS' => 'Arabesch (Palestinensesch Autonomiegebidder)',\n 'ar_QA' => 'Arabesch (Katar)',\n 'ar_SA' => 'Arabesch (Saudi-Arabien)',\n 'ar_SD' => 'Arabesch (Sudan)',\n 'ar_SO' => 'Arabesch (Somalia)',\n 'ar_SS' => 'Arabesch (S", "suffix": "sesch (Indien)',\n 'az' => 'Aserbaidschanesch',\n 'az_AZ' => 'Aserbaidschanesch (Aserbaidschan)',\n 'az_Cyrl' => 'Aserbaidschanesch (Kyrillesch)',\n 'az_Cyrl_AZ' => 'Aserbaidschanesch (Kyrillesch, Aserbaidschan)',\n 'az_Latn' ", "middle": "üdsudan)',\n 'ar_SY' => 'Arabesch (Syrien)',\n 'ar_TD' => 'Arabesch (Tschad)',\n 'ar_TN' => 'Arabesch (Tunesien)',\n 'ar_YE' => 'Arabesch (Jemen)',\n 'as' => 'Assamesesch',\n 'as_IN' => 'Assame", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/lb.php", "language": "php", "file_size": 28635, "cut_index": 1331, "middle_length": 229}} {"prefix": ",\n 'ar_ER' => 'Luwarabu (Eritureya)',\n 'ar_IL' => 'Luwarabu (Yisirayeri)',\n 'ar_IQ' => 'Luwarabu (Yiraaka)',\n 'ar_JO' => 'Luwarabu (Yorodani)',\n 'ar_KM' => 'Luwarabu (Bizinga by’eKomoro)',\n 'ar_KW' => 'Luwarabu (Kuweti)',\n 'ar_LB' => 'Luwarabu (Lebanoni)',\n 'ar_LY' => 'Luwarabu (Libya)',\n 'ar_MA' => 'Luwarabu (Moroko)',\n 'ar_MR' => 'Luwarabu (Mawulitenya)',\n 'ar_OM' => 'Luwarabu (Omaani)',\n 'ar_PS' => 'Luwarabu (Palesitayini", "suffix": " 'ar_TD' => 'Luwarabu (Caadi)',\n 'ar_TN' => 'Luwarabu (Tunisya)',\n 'ar_YE' => 'Luwarabu (Yemeni)',\n 'be' => 'Lubelarusi',\n 'be_BY' => 'Lubelarusi (Belarusi)',\n 'bg' => 'Lubulugariya',\n 'bg_BG' => 'Lubulugariya (Bul", "middle": ")',\n 'ar_QA' => 'Luwarabu (Kataa)',\n 'ar_SA' => 'Luwarabu (Sawudarebya - Buwarabu)',\n 'ar_SD' => 'Luwarabu (Sudaani)',\n 'ar_SO' => 'Luwarabu (Somaliya)',\n 'ar_SY' => 'Luwarabu (Siriya)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/lg.php", "language": "php", "file_size": 14603, "cut_index": 921, "middle_length": 229}} {"prefix": " => 'lialabo (Elitelɛ)',\n 'ar_IL' => 'lialabo (Isirayelɛ)',\n 'ar_IQ' => 'lialabo (Iraki)',\n 'ar_JO' => 'lialabo (Zɔdani)',\n 'ar_KM' => 'lialabo (Komorɛ)',\n 'ar_KW' => 'lialabo (Koweti)',\n 'ar_LB' => 'lialabo (Libá)',\n 'ar_LY' => 'lialabo (Libí)',\n 'ar_MA' => 'lialabo (Marokɛ)',\n 'ar_MR' => 'lialabo (Moritani)',\n 'ar_OM' => 'lialabo (Ománɛ)',\n 'ar_PS' => 'lialabo (Palɛsine)',\n 'ar_QA' => 'lialabo (Katari)',\n 'ar_SA' =>", "suffix": "r_YE' => 'lialabo (Yemɛnɛ)',\n 'be' => 'libyelorisí',\n 'be_BY' => 'libyelorisí (Byelorisi)',\n 'bg' => 'libiligali',\n 'bg_BG' => 'libiligali (Biligari)',\n 'bn' => 'libengali',\n 'bn_BD' => 'libengali (Bengalidɛsi)',\n ", "middle": " 'lialabo (Alabi Sawuditɛ)',\n 'ar_SD' => 'lialabo (Sudá)',\n 'ar_SO' => 'lialabo (Somali)',\n 'ar_SY' => 'lialabo (Sirí)',\n 'ar_TD' => 'lialabo (Tsádi)',\n 'ar_TN' => 'lialabo (Tinizi)',\n 'a", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ln.php", "language": "php", "file_size": 15220, "cut_index": 921, "middle_length": 229}} {"prefix": "=> 'ອາຣັບ (ເລບານອນ)',\n 'ar_LY' => 'ອາຣັບ (ລິເບຍ)',\n 'ar_MA' => 'ອາຣັບ (ໂມຣັອກໂຄ)',\n 'ar_MR' => 'ອາຣັບ (ມົວຣິເທເນຍ)',\n 'ar_OM' => 'ອາຣັບ (ໂອມານ)',\n 'ar_PS' => 'ອາຣັບ (ດິນແດນປາເລດສະຕິນ)',\n 'ar_QA' => 'ອາຣັບ (ກາຕາ)',\n 'ar_SA' => 'ອາຣັບ (ຊາອຸດິ ອາຣາເບຍ)',\n 'ar_SD' => 'ອາຣັບ (ຊູດານ)',\n 'ar_SO' => 'ອາຣັບ (ໂຊມາເລຍ)',\n 'ar_SS' => 'ອາຣັບ (ຊູດານໃຕ້)',\n 'ar_SY' => 'ອາຣັບ (ຊີເຣຍ)',\n 'ar_TD' => 'ອາຣັບ (ຊາດ)',\n 'ar_TN' => 'ອາຣັບ (ຕ", "suffix": "ຣິວລິກ)',\n 'az_Cyrl_AZ' => 'ອາເຊີໄບຈານິ (ຊີຣິວລິກ, ອາເຊີໄບຈານ)',\n 'az_Latn' => 'ອາເຊີໄບຈານິ (ລາຕິນ)',\n 'az_Latn_AZ' => 'ອາເຊີໄບຈານິ (ລາຕິນ, ອາເຊີໄບຈານ)',\n 'ba' => 'ບາຣກີ',\n 'ba_RU' => 'ບາຣກີ (ຣັດເຊຍ)',\n 'be' => 'ເບ", "middle": "ູນິເຊຍ)',\n 'ar_YE' => 'ອາຣັບ (ເຢເມນ)',\n 'as' => 'ອັສຊາມີສ',\n 'as_IN' => 'ອັສຊາມີສ (ອິນເດຍ)',\n 'az' => 'ອາເຊີໄບຈານິ',\n 'az_AZ' => 'ອາເຊີໄບຈານິ (ອາເຊີໄບຈານ)',\n 'az_Cyrl' => 'ອາເຊີໄບຈານິ (ຊີ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/lo.php", "language": "php", "file_size": 45327, "cut_index": 1331, "middle_length": 229}} {"prefix": "eitas)',\n 'ar_LB' => 'arabų (Libanas)',\n 'ar_LY' => 'arabų (Libija)',\n 'ar_MA' => 'arabų (Marokas)',\n 'ar_MR' => 'arabų (Mauritanija)',\n 'ar_OM' => 'arabų (Omanas)',\n 'ar_PS' => 'arabų (Palestinos teritorija)',\n 'ar_QA' => 'arabų (Kataras)',\n 'ar_SA' => 'arabų (Saudo Arabija)',\n 'ar_SD' => 'arabų (Sudanas)',\n 'ar_SO' => 'arabų (Somalis)',\n 'ar_SS' => 'arabų (Pietų Sudanas)',\n 'ar_SY' => 'arabų (Sirija)',\n 'ar_TD' => '", "suffix": "zerbaidžanas)',\n 'az_Cyrl' => 'azerbaidžaniečių (kirilica)',\n 'az_Cyrl_AZ' => 'azerbaidžaniečių (kirilica, Azerbaidžanas)',\n 'az_Latn' => 'azerbaidžaniečių (lotynų)',\n 'az_Latn_AZ' => 'azerbaidžaniečių (lotynų, Azerbaidžanas)',\n", "middle": "arabų (Čadas)',\n 'ar_TN' => 'arabų (Tunisas)',\n 'ar_YE' => 'arabų (Jemenas)',\n 'as' => 'asamų',\n 'as_IN' => 'asamų (Indija)',\n 'az' => 'azerbaidžaniečių',\n 'az_AZ' => 'azerbaidžaniečių (A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/lt.php", "language": "php", "file_size": 28997, "cut_index": 1331, "middle_length": 229}} {"prefix": "'Arabi (Elitele)',\n 'ar_IL' => 'Arabi (Isirayele)',\n 'ar_IQ' => 'Arabi (Iraki)',\n 'ar_JO' => 'Arabi (Jodani)',\n 'ar_KM' => 'Arabi (Komoru)',\n 'ar_KW' => 'Arabi (Koweti)',\n 'ar_LB' => 'Arabi (Liba)',\n 'ar_LY' => 'Arabi (Libi)',\n 'ar_MA' => 'Arabi (Maroke)',\n 'ar_MR' => 'Arabi (Moritani)',\n 'ar_OM' => 'Arabi (Omane)',\n 'ar_PS' => 'Arabi (Palesine)',\n 'ar_QA' => 'Arabi (Katari)',\n 'ar_SA' => 'Arabi (Alabu Nsawudi)',\n ", "suffix": " 'Belarusi',\n 'be_BY' => 'Belarusi (Byelorisi)',\n 'bg' => 'Bulegari',\n 'bg_BG' => 'Bulegari (Biligari)',\n 'bn' => 'Bengali',\n 'bn_BD' => 'Bengali (Benguladeshi)',\n 'bn_IN' => 'Bengali (Inde)',\n 'cs' => 'Tshe", "middle": " 'ar_SD' => 'Arabi (Suda)',\n 'ar_SO' => 'Arabi (Somali)',\n 'ar_SY' => 'Arabi (Siri)',\n 'ar_TD' => 'Arabi (Tshadi)',\n 'ar_TN' => 'Arabi (Tinizi)',\n 'ar_YE' => 'Arabi (Yemenu)',\n 'be' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/lu.php", "language": "php", "file_size": 13965, "cut_index": 921, "middle_length": 229}} {"prefix": "=> 'arābu (Kuveita)',\n 'ar_LB' => 'arābu (Libāna)',\n 'ar_LY' => 'arābu (Lībija)',\n 'ar_MA' => 'arābu (Maroka)',\n 'ar_MR' => 'arābu (Mauritānija)',\n 'ar_OM' => 'arābu (Omāna)',\n 'ar_PS' => 'arābu (Palestīnas teritorijas)',\n 'ar_QA' => 'arābu (Katara)',\n 'ar_SA' => 'arābu (Saūda Arābija)',\n 'ar_SD' => 'arābu (Sudāna)',\n 'ar_SO' => 'arābu (Somālija)',\n 'ar_SS' => 'arābu (Dienvidsudāna)',\n 'ar_SY' => 'arābu (Sīrija)',\n 'a", "suffix": "žāņu (Azerbaidžāna)',\n 'az_Cyrl' => 'azerbaidžāņu (kirilica)',\n 'az_Cyrl_AZ' => 'azerbaidžāņu (kirilica, Azerbaidžāna)',\n 'az_Latn' => 'azerbaidžāņu (latīņu)',\n 'az_Latn_AZ' => 'azerbaidžāņu (latīņu, Azerbaidžāna)',\n 'ba'", "middle": "r_TD' => 'arābu (Čada)',\n 'ar_TN' => 'arābu (Tunisija)',\n 'ar_YE' => 'arābu (Jemena)',\n 'as' => 'asamiešu',\n 'as_IN' => 'asamiešu (Indija)',\n 'az' => 'azerbaidžāņu',\n 'az_AZ' => 'azerbaid", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/lv.php", "language": "php", "file_size": 28631, "cut_index": 1331, "middle_length": 229}} {"prefix": "_LY',\n 'ar_MA',\n 'ar_MR',\n 'ar_OM',\n 'ar_PS',\n 'ar_QA',\n 'ar_SA',\n 'ar_SD',\n 'ar_SO',\n 'ar_SS',\n 'ar_SY',\n 'ar_TD',\n 'ar_TN',\n 'ar_YE',\n 'as',\n 'as_IN',\n 'az',\n 'az_AZ',\n 'az_Cyrl',\n 'az_Cyrl_AZ',\n 'az_Latn',\n 'az_Latn_AZ',\n 'ba',\n 'ba_RU',\n 'be',\n 'be_BY',\n 'bg',\n 'bg_BG',\n 'bm',\n 'bm_ML',\n 'bn',\n ", "suffix": " 'ca',\n 'ca_AD',\n 'ca_ES',\n 'ca_FR',\n 'ca_IT',\n 'ce',\n 'ce_RU',\n 'cs',\n 'cs_CZ',\n 'cv',\n 'cv_RU',\n 'cy',\n 'cy_GB',\n 'da',\n 'da_DK',\n 'da_GL',\n ", "middle": " 'bn_BD',\n 'bn_IN',\n 'bo',\n 'bo_CN',\n 'bo_IN',\n 'br',\n 'br_FR',\n 'bs',\n 'bs_BA',\n 'bs_Cyrl',\n 'bs_Cyrl_BA',\n 'bs_Latn',\n 'bs_Latn_BA',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/meta.php", "language": "php", "file_size": 13496, "cut_index": 921, "middle_length": 229}} {"prefix": " 'Arabo (Eritrea)',\n 'ar_IL' => 'Arabo (Israely)',\n 'ar_IQ' => 'Arabo (Irak)',\n 'ar_JO' => 'Arabo (Jordania)',\n 'ar_KM' => 'Arabo (Kômaoro)',\n 'ar_KW' => 'Arabo (Kôeity)',\n 'ar_LB' => 'Arabo (Libana)',\n 'ar_LY' => 'Arabo (Libya)',\n 'ar_MA' => 'Arabo (Marôka)',\n 'ar_MR' => 'Arabo (Maoritania)',\n 'ar_OM' => 'Arabo (Oman)',\n 'ar_PS' => 'Arabo (Palestina)',\n 'ar_QA' => 'Arabo (Katar)',\n 'ar_SA' => 'Arabo (Arabia saodita)'", "suffix": " 'be' => 'Bielorosy',\n 'be_BY' => 'Bielorosy (Belarosy)',\n 'bg' => 'Biolgara',\n 'bg_BG' => 'Biolgara (Biolgaria)',\n 'bn' => 'Bengali',\n 'bn_BD' => 'Bengali (Bangladesy)',\n 'bn_IN' => 'Bengali (Indy)',\n 'cs' ", "middle": ",\n 'ar_SD' => 'Arabo (Sodan)',\n 'ar_SO' => 'Arabo (Somalia)',\n 'ar_SY' => 'Arabo (Syria)',\n 'ar_TD' => 'Arabo (Tsady)',\n 'ar_TN' => 'Arabo (Tonizia)',\n 'ar_YE' => 'Arabo (Yemen)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/mg.php", "language": "php", "file_size": 13807, "cut_index": 921, "middle_length": 229}} {"prefix": "' => 'Ārapi (Kūweiti)',\n 'ar_LB' => 'Ārapi (Repanona)',\n 'ar_LY' => 'Ārapi (Ripia)',\n 'ar_MA' => 'Ārapi (Moroko)',\n 'ar_MR' => 'Ārapi (Mauritānia)',\n 'ar_OM' => 'Ārapi (Ōmana)',\n 'ar_PS' => 'Ārapi (Ngā Rohe o Parihitini)',\n 'ar_QA' => 'Ārapi (Katā)',\n 'ar_SA' => 'Ārapi (Hauri Arāpia)',\n 'ar_SD' => 'Ārapi (Hūtāne)',\n 'ar_SO' => 'Ārapi (Hūmārie)',\n 'ar_SS' => 'Ārapi (Hūtāne ki te Tonga)',\n 'ar_SY' => 'Ārapi (Hiria)',\n '", "suffix": "tepaihānia)',\n 'az_Cyrl' => 'Atepaihānia (Hīririki)',\n 'az_Cyrl_AZ' => 'Atepaihānia (Hīririki, Atepaihānia)',\n 'az_Latn' => 'Atepaihānia (Rātini)',\n 'az_Latn_AZ' => 'Atepaihānia (Rātini, Atepaihānia)',\n 'ba' => 'Pākīra',\n", "middle": "ar_TD' => 'Ārapi (Kāta)',\n 'ar_TN' => 'Ārapi (Tūnihia)',\n 'ar_YE' => 'Ārapi (Īmene)',\n 'as' => 'Āhamēhi',\n 'as_IN' => 'Āhamēhi (Inia)',\n 'az' => 'Atepaihānia',\n 'az_AZ' => 'Atepaihānia (A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/mi.php", "language": "php", "file_size": 27986, "cut_index": 1331, "middle_length": 229}} {"prefix": "рови)',\n 'ar_KW' => 'арапски (Кувајт)',\n 'ar_LB' => 'арапски (Либан)',\n 'ar_LY' => 'арапски (Либија)',\n 'ar_MA' => 'арапски (Мароко)',\n 'ar_MR' => 'арапски (Мавританија)',\n 'ar_OM' => 'арапски (Оман)',\n 'ar_PS' => 'арапски (Палестински Територии)',\n 'ar_QA' => 'арапски (Катар)',\n 'ar_SA' => 'арапски (Саудиска Арабија)',\n 'ar_SD' => 'арапски (Судан)',\n 'ar_SO' => 'арапски (Сомалија)',\n 'ar_SS' => 'арапски (Јужен Судан)',\n ", "suffix": "'азербејџански',\n 'az_AZ' => 'азербејџански (Азербејџан)',\n 'az_Cyrl' => 'азербејџански (кирилско писмо)',\n 'az_Cyrl_AZ' => 'азербејџански (кирилско писмо, Азербејџан)',\n 'az_Latn' => 'азербејџански (латинично писмо)',\n '", "middle": " 'ar_SY' => 'арапски (Сирија)',\n 'ar_TD' => 'арапски (Чад)',\n 'ar_TN' => 'арапски (Тунис)',\n 'ar_YE' => 'арапски (Јемен)',\n 'as' => 'асамски',\n 'as_IN' => 'асамски (Индија)',\n 'az' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/mk.php", "language": "php", "file_size": 39584, "cut_index": 1331, "middle_length": 229}} {"prefix": "_KW' => 'അറബിക് (കുവൈറ്റ്)',\n 'ar_LB' => 'അറബിക് (ലെബനൻ)',\n 'ar_LY' => 'അറബിക് (ലിബിയ)',\n 'ar_MA' => 'അറബിക് (മൊറോക്കൊ)',\n 'ar_MR' => 'അറബിക് (മൗറിറ്റാനിയ)',\n 'ar_OM' => 'അറബിക് (ഒമാൻ)',\n 'ar_PS' => 'അറബിക് (പാലസ്‌തീൻ പ്രദേശങ്ങൾ)',\n 'ar_QA' => 'അറബിക് (ഖത്തർ)',\n 'ar_SA' => 'അറബിക് (സൗദി അറേബ്യ)',\n 'ar_SD' => 'അറബിക് (സുഡാൻ)',\n 'ar_SO' => 'അറബിക് (സോമാലിയ)',\n 'ar_SS' => 'അറബിക് (ദക്ഷിണ സുഡാൻ)',\n 'ar_SY' => 'അറബിക് (സിറിയ)',\n ", "suffix": "അസർബൈജാനി (അസർബൈജാൻ)',\n 'az_Cyrl' => 'അസർബൈജാനി (സിറിലിക്)',\n 'az_Cyrl_AZ' => 'അസർബൈജാനി (സിറിലിക്, അസർബൈജാൻ)',\n 'az_Latn' => 'അസർബൈജാനി (ലാറ്റിൻ)',\n 'az_Latn_AZ' => 'അസർബൈജാനി (ലാറ്റിൻ, അസർബൈജാൻ)',\n 'ba' => 'ബഷ്ഖിർ',\n ", "middle": " 'ar_TD' => 'അറബിക് (ഛാഡ്)',\n 'ar_TN' => 'അറബിക് (ടുണീഷ്യ)',\n 'ar_YE' => 'അറബിക് (യെമൻ)',\n 'as' => 'ആസ്സാമീസ്',\n 'as_IN' => 'ആസ്സാമീസ് (ഇന്ത്യ)',\n 'az' => 'അസർബൈജാനി',\n 'az_AZ' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ml.php", "language": "php", "file_size": 49021, "cut_index": 1331, "middle_length": 229}} {"prefix": "(Ливан)',\n 'ar_LY' => 'араб (Ливи)',\n 'ar_MA' => 'араб (Морокко)',\n 'ar_MR' => 'араб (Мавритани)',\n 'ar_OM' => 'араб (Оман)',\n 'ar_PS' => 'араб (Палестины нутаг дэвсгэр)',\n 'ar_QA' => 'араб (Катар)',\n 'ar_SA' => 'араб (Саудын Араб)',\n 'ar_SD' => 'араб (Судан)',\n 'ar_SO' => 'араб (Сомали)',\n 'ar_SS' => 'араб (Өмнөд Судан)',\n 'ar_SY' => 'араб (Сири)',\n 'ar_TD' => 'араб (Чад)',\n 'ar_TN' => 'араб (Тунис)',\n 'ar_YE'", "suffix": "зербайжан (кирилл, Азербайжан)',\n 'az_Latn' => 'азербайжан (латин)',\n 'az_Latn_AZ' => 'азербайжан (латин, Азербайжан)',\n 'ba' => 'башкир',\n 'ba_RU' => 'башкир (Орос)',\n 'be' => 'беларусь',\n 'be_BY' => 'беларусь (Бе", "middle": " => 'араб (Йемен)',\n 'as' => 'ассам',\n 'as_IN' => 'ассам (Энэтхэг)',\n 'az' => 'азербайжан',\n 'az_AZ' => 'азербайжан (Азербайжан)',\n 'az_Cyrl' => 'азербайжан (кирилл)',\n 'az_Cyrl_AZ' => 'а", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/mn.php", "language": "php", "file_size": 35044, "cut_index": 1331, "middle_length": 229}} {"prefix": "'अरबी (लेबनॉन)',\n 'ar_LY' => 'अरबी (लिबिया)',\n 'ar_MA' => 'अरबी (मोरोक्को)',\n 'ar_MR' => 'अरबी (मॉरिटानिया)',\n 'ar_OM' => 'अरबी (ओमान)',\n 'ar_PS' => 'अरबी (पॅलेस्टिनियन प्रदेश)',\n 'ar_QA' => 'अरबी (कतार)',\n 'ar_SA' => 'अरबी (सौदी अरब)',\n 'ar_SD' => 'अरबी (सुदान)',\n 'ar_SO' => 'अरबी (सोमालिया)',\n 'ar_SS' => 'अरबी (दक्षिण सुदान)',\n 'ar_SY' => 'अरबी (सीरिया)',\n 'ar_TD' => 'अरबी (चाड)',\n 'ar_TN' => 'अरबी (ट्यूनिशिया)',\n ", "suffix": " => 'अझरबैजानी (सीरिलिक, अझरबैजान)',\n 'az_Latn' => 'अझरबैजानी (लॅटिन)',\n 'az_Latn_AZ' => 'अझरबैजानी (लॅटिन, अझरबैजान)',\n 'ba' => 'बष्किर',\n 'ba_RU' => 'बष्किर (रशिया)',\n 'be' => 'बेलारुशियन',\n 'be_BY' => 'बेलारुशिय", "middle": " 'ar_YE' => 'अरबी (येमेन)',\n 'as' => 'आसामी',\n 'as_IN' => 'आसामी (भारत)',\n 'az' => 'अझरबैजानी',\n 'az_AZ' => 'अझरबैजानी (अझरबैजान)',\n 'az_Cyrl' => 'अझरबैजानी (सीरिलिक)',\n 'az_Cyrl_AZ'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/mr.php", "language": "php", "file_size": 45874, "cut_index": 1331, "middle_length": 229}} {"prefix": " (Lubnan)',\n 'ar_LY' => 'Arab (Libya)',\n 'ar_MA' => 'Arab (Maghribi)',\n 'ar_MR' => 'Arab (Mauritania)',\n 'ar_OM' => 'Arab (Oman)',\n 'ar_PS' => 'Arab (Wilayah Palestin)',\n 'ar_QA' => 'Arab (Qatar)',\n 'ar_SA' => 'Arab (Arab Saudi)',\n 'ar_SD' => 'Arab (Sudan)',\n 'ar_SO' => 'Arab (Somalia)',\n 'ar_SS' => 'Arab (Sudan Selatan)',\n 'ar_SY' => 'Arab (Syria)',\n 'ar_TD' => 'Arab (Chad)',\n 'ar_TN' => 'Arab (Tunisia)',\n 'ar", "suffix": "Azerbaijan (Cyril, Azerbaijan)',\n 'az_Latn' => 'Azerbaijan (Latin)',\n 'az_Latn_AZ' => 'Azerbaijan (Latin, Azerbaijan)',\n 'ba' => 'Bashkir',\n 'ba_RU' => 'Bashkir (Rusia)',\n 'be' => 'Belarus',\n 'be_BY' => 'Belarus (B", "middle": "_YE' => 'Arab (Yaman)',\n 'as' => 'Assam',\n 'as_IN' => 'Assam (India)',\n 'az' => 'Azerbaijan',\n 'az_AZ' => 'Azerbaijan (Azerbaijan)',\n 'az_Cyrl' => 'Azerbaijan (Cyril)',\n 'az_Cyrl_AZ' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ms.php", "language": "php", "file_size": 26769, "cut_index": 1331, "middle_length": 229}} {"prefix": "os)',\n 'ar_KW' => 'Għarbi (il-Kuwajt)',\n 'ar_LB' => 'Għarbi (il-Libanu)',\n 'ar_LY' => 'Għarbi (il-Libja)',\n 'ar_MA' => 'Għarbi (il-Marokk)',\n 'ar_MR' => 'Għarbi (il-Mauritania)',\n 'ar_OM' => 'Għarbi (l-Oman)',\n 'ar_PS' => 'Għarbi (it-Territorji Palestinjani)',\n 'ar_QA' => 'Għarbi (il-Qatar)',\n 'ar_SA' => 'Għarbi (l-Arabja Sawdija)',\n 'ar_SD' => 'Għarbi (is-Sudan)',\n 'ar_SO' => 'Għarbi (is-Somalja)',\n 'ar_SS' => 'Għarbi (is-S", "suffix": "miż (l-Indja)',\n 'az' => 'Ażerbajġani',\n 'az_AZ' => 'Ażerbajġani (l-Ażerbajġan)',\n 'az_Cyrl' => 'Ażerbajġani (Ċirilliku)',\n 'az_Cyrl_AZ' => 'Ażerbajġani (Ċirilliku, l-Ażerbajġan)',\n 'az_Latn' => 'Ażerbajġani (Latin)',\n ", "middle": "udan t’Isfel)',\n 'ar_SY' => 'Għarbi (is-Sirja)',\n 'ar_TD' => 'Għarbi (iċ-Chad)',\n 'ar_TN' => 'Għarbi (it-Tuneżija)',\n 'ar_YE' => 'Għarbi (il-Jemen)',\n 'as' => 'Assamiż',\n 'as_IN' => 'Assa", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/mt.php", "language": "php", "file_size": 28661, "cut_index": 1331, "middle_length": 229}} {"prefix": "ိတ်)',\n 'ar_LB' => 'အာရဗီ (လက်ဘနွန်)',\n 'ar_LY' => 'အာရဗီ (လစ်ဗျား)',\n 'ar_MA' => 'အာရဗီ (မော်ရိုကို)',\n 'ar_MR' => 'အာရဗီ (မော်ရီတေးနီးယား)',\n 'ar_OM' => 'အာရဗီ (အိုမန်)',\n 'ar_PS' => 'အာရဗီ (ပါလက်စတိုင်း ပိုင်နက်)',\n 'ar_QA' => 'အာရဗီ (ကာတာ)',\n 'ar_SA' => 'အာရဗီ (ဆော်ဒီအာရေးဘီးယား)',\n 'ar_SD' => 'အာရဗီ (ဆူဒန်)',\n 'ar_SO' => 'အာရဗီ (ဆိုမာလီယာ)',\n 'ar_SS' => 'အာရဗီ (တောင် ဆူဒန်)',\n 'ar_SY' => 'အာရဗီ (ဆီးရီးယား)',\n 'ar", "suffix": "ာဘိုင်ဂျန်)',\n 'az_Cyrl' => 'အဇာဘိုင်ဂျန် (စစ်ရိလစ်)',\n 'az_Cyrl_AZ' => 'အဇာဘိုင်ဂျန် (စစ်ရိလစ်/ အဇာဘိုင်ဂျန်)',\n 'az_Latn' => 'အဇာဘိုင်ဂျန် (လက်တင်)',\n 'az_Latn_AZ' => 'အဇာဘိုင်ဂျန် (လက်တင်/ အဇာဘိုင်ဂျန်)',\n 'ba' => 'ဘက်", "middle": "_TD' => 'အာရဗီ (ချဒ်)',\n 'ar_TN' => 'အာရဗီ (တူနီးရှား)',\n 'ar_YE' => 'အာရဗီ (ယီမင်)',\n 'as' => 'အာသံ',\n 'as_IN' => 'အာသံ (အိန္ဒိယ)',\n 'az' => 'အဇာဘိုင်ဂျန်',\n 'az_AZ' => 'အဇာဘိုင်ဂျန် (အဇ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/my.php", "language": "php", "file_size": 49848, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_EG' => 'isi-Alabhu (Egypt)',\n 'ar_ER' => 'isi-Alabhu (Eritrea)',\n 'ar_IL' => 'isi-Alabhu (Isuraeli)',\n 'ar_IQ' => 'isi-Alabhu (Iraki)',\n 'ar_JO' => 'isi-Alabhu (Jodani)',\n 'ar_KM' => 'isi-Alabhu (Khomoro)',\n 'ar_KW' => 'isi-Alabhu (Khuweiti)',\n 'ar_LB' => 'isi-Alabhu (Lebhanoni)',\n 'ar_LY' => 'isi-Alabhu (Libhiya)',\n 'ar_MA' => 'isi-Alabhu (Morokho)',\n 'ar_MR' => 'isi-Alabhu (Mauritania)',\n 'ar_OM' => 'isi-Alabhu (Omani)',\n", "suffix": " (Somaliya)',\n 'ar_SY' => 'isi-Alabhu (Syria)',\n 'ar_TD' => 'isi-Alabhu (Chadi)',\n 'ar_TN' => 'isi-Alabhu (Tunisiya)',\n 'ar_YE' => 'isi-Alabhu (Yemeni)',\n 'be' => 'isi-Bhelarashiyani',\n 'be_BY' => 'isi-Bhelarashiya", "middle": " 'ar_PS' => 'isi-Alabhu (Palestinian West Bank and Gaza)',\n 'ar_QA' => 'isi-Alabhu (Kathari)',\n 'ar_SA' => 'isi-Alabhu (Saudi Arabia)',\n 'ar_SD' => 'isi-Alabhu (Sudani)',\n 'ar_SO' => 'isi-Alabhu", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/nd.php", "language": "php", "file_size": 14970, "cut_index": 921, "middle_length": 229}} {"prefix": "B' => 'अरबी (लेबनन)',\n 'ar_LY' => 'अरबी (लिबिया)',\n 'ar_MA' => 'अरबी (मोरोक्को)',\n 'ar_MR' => 'अरबी (माउरिटानिया)',\n 'ar_OM' => 'अरबी (ओमन)',\n 'ar_PS' => 'अरबी (प्यालेस्टिनी भू-भागहरू)',\n 'ar_QA' => 'अरबी (कतार)',\n 'ar_SA' => 'अरबी (साउदी अरब)',\n 'ar_SD' => 'अरबी (सुडान)',\n 'ar_SO' => 'अरबी (सोमालिया)',\n 'ar_SS' => 'अरबी (दक्षिण सुडान)',\n 'ar_SY' => 'अरबी (सिरिया)',\n 'ar_TD' => 'अरबी (चाड)',\n 'ar_TN' => 'अरबी (ट्युनिस", "suffix": "_Cyrl_AZ' => 'अजरबैजानी (सिरिलिक, अजरबैजान)',\n 'az_Latn' => 'अजरबैजानी (ल्याटिन)',\n 'az_Latn_AZ' => 'अजरबैजानी (ल्याटिन, अजरबैजान)',\n 'ba' => 'बास्किर',\n 'ba_RU' => 'बास्किर (रूस)',\n 'be' => 'बेलारुसी',\n 'be_BY' =>", "middle": "िया)',\n 'ar_YE' => 'अरबी (येमेन)',\n 'as' => 'आसामी',\n 'as_IN' => 'आसामी (भारत)',\n 'az' => 'अजरबैजानी',\n 'az_AZ' => 'अजरबैजानी (अजरबैजान)',\n 'az_Cyrl' => 'अजरबैजानी (सिरिलिक)',\n 'az", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ne.php", "language": "php", "file_size": 48913, "cut_index": 1331, "middle_length": 229}} {"prefix": "' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤑𞤮𞤥𞤮𞥅𞤪𞤮)',\n 'ar_KW' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤑𞤵𞤱𞤢𞤴𞤼𞤵)',\n 'ar_LB' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤂𞤭𞤦𞤢𞤲𞤮𞥅𞤲)',\n 'ar_LY' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤂𞤭𞤦𞤭𞤴𞤢𞥄)',\n 'ar_MA' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤃𞤢𞤪𞤮𞥅𞤳)',\n 'ar_MR' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤃𞤮𞤪𞤼𞤢𞤲𞤭𞥅)',\n 'ar_OM' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤌𞥅𞤥𞤢𞥄𞤲)',\n 'ar_PS' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤂𞤫𞤧𞤣𞤭𞥅𞤶𞤭 𞤊𞤢𞤤𞤫𞤧𞤼𞤭𞥅𞤲)',\n 'ar_QA' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤊𞤢𞤤𞤫𞤧𞤼𞤭𞥅𞤲)',\n 'ar_SA' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤅𞤢𞤵𞥅𞤣 𞤀𞥄𞤪𞤢𞤦𞤭𞤴𞤢𞥄)',\n 'ar_SD' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤅𞤵𞤣𞤢𞥄𞤲)',\n 'ar_SO' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤅𞤵𞥅𞤥𞤢𞥄𞤤𞤭)',\n ", "suffix": "'𞤀𞤧𞤢𞤥𞤫𞥅𞤪𞤫',\n 'as_IN' => '𞤀𞤧𞤢𞤥𞤫𞥅𞤪𞤫 (𞤋𞤲𞤣𞤭𞤴𞤢)',\n 'az' => '𞤀𞤶𞤢𞤪𞤦𞤢𞤴𞤭𞤶𞤢𞤲𞤭𞥅𞤪𞤫',\n 'az_AZ' => '𞤀𞤶𞤢𞤪𞤦𞤢𞤴𞤭𞤶𞤢𞤲𞤭𞥅𞤪𞤫 (𞤀𞥁𞤫𞤪𞤦𞤢𞤭𞤶𞤢𞥄𞤲)',\n 'az_Cyrl' => '𞤀𞤶𞤢𞤪𞤦𞤢𞤴𞤭𞤶𞤢𞤲𞤭𞥅𞤪𞤫 (𞤅𞤭𞤪𞤤𞤭𞤳)',\n 'az_Cyrl_AZ' => '𞤀𞤶𞤢𞤪𞤦𞤢𞤴𞤭𞤶𞤢𞤲𞤭𞥅𞤪𞤫 (𞤅𞤭𞤪𞤤𞤭𞤳⹁ 𞤀𞥁𞤫𞤪𞤦𞤢𞤭𞤶𞤢𞥄𞤲)',\n ", "middle": " 'ar_SS' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤅𞤵𞤣𞤢𞥄𞤲 𞤂𞤫𞤧𞤤𞤫𞤴𞤪𞤭)',\n 'ar_SY' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤅𞤵𞥅𞤪𞤭𞤴𞤢𞥄)',\n 'ar_TD' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤕𞤢𞥄𞤣)',\n 'ar_TN' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤚𞤵𞤲𞤭𞥅𞤧𞤢)',\n 'ar_YE' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 (𞤒𞤢𞤥𞤢𞤲)',\n 'as' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ff_Adlm.php", "language": "php", "file_size": 64897, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_KW' => 'arabiskt (Kuvait)',\n 'ar_LB' => 'arabiskt (Libanon)',\n 'ar_LY' => 'arabiskt (Libya)',\n 'ar_MA' => 'arabiskt (Marokko)',\n 'ar_MR' => 'arabiskt (Móritania)',\n 'ar_OM' => 'arabiskt (Oman)',\n 'ar_PS' => 'arabiskt (Palestinskt landøki)',\n 'ar_QA' => 'arabiskt (Katar)',\n 'ar_SA' => 'arabiskt (Saudiarabia)',\n 'ar_SD' => 'arabiskt (Sudan)',\n 'ar_SO' => 'arabiskt (Somalia)',\n 'ar_SS' => 'arabiskt (Suðursudan)',\n 'a", "suffix": "az' => 'aserbajdsjanskt',\n 'az_AZ' => 'aserbajdsjanskt (Aserbadjan)',\n 'az_Cyrl' => 'aserbajdsjanskt (kyrilliskt)',\n 'az_Cyrl_AZ' => 'aserbajdsjanskt (kyrilliskt, Aserbadjan)',\n 'az_Latn' => 'aserbajdsjanskt (latínskt)',\n ", "middle": "r_SY' => 'arabiskt (Sýria)',\n 'ar_TD' => 'arabiskt (Kjad)',\n 'ar_TN' => 'arabiskt (Tunesia)',\n 'ar_YE' => 'arabiskt (Jemen)',\n 'as' => 'assamesiskt',\n 'as_IN' => 'assamesiskt (India)',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/fo.php", "language": "php", "file_size": 27803, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_KW' => 'Arabysk (Koeweit)',\n 'ar_LB' => 'Arabysk (Libanon)',\n 'ar_LY' => 'Arabysk (Libië)',\n 'ar_MA' => 'Arabysk (Marokko)',\n 'ar_MR' => 'Arabysk (Mauritanië)',\n 'ar_OM' => 'Arabysk (Oman)',\n 'ar_PS' => 'Arabysk (Palestynske gebieten)',\n 'ar_QA' => 'Arabysk (Qatar)',\n 'ar_SA' => 'Arabysk (Saoedi-Arabië)',\n 'ar_SD' => 'Arabysk (Soedan)',\n 'ar_SO' => 'Arabysk (Somalië)',\n 'ar_SS' => 'Arabysk (Sûd-Soedan)',\n 'ar_SY' => ", "suffix": "dzjaansk',\n 'az_AZ' => 'Azerbeidzjaansk (Azerbeidzjan)',\n 'az_Cyrl' => 'Azerbeidzjaansk (Syrillysk)',\n 'az_Cyrl_AZ' => 'Azerbeidzjaansk (Syrillysk, Azerbeidzjan)',\n 'az_Latn' => 'Azerbeidzjaansk (Latyn)',\n 'az_Latn_AZ' =>", "middle": "'Arabysk (Syrië)',\n 'ar_TD' => 'Arabysk (Tsjaad)',\n 'ar_TN' => 'Arabysk (Tunesië)',\n 'ar_YE' => 'Arabysk (Jemen)',\n 'as' => 'Assameesk',\n 'as_IN' => 'Assameesk (India)',\n 'az' => 'Azerbei", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/fy.php", "language": "php", "file_size": 27204, "cut_index": 1331, "middle_length": 229}} {"prefix": "r_KM' => 'Araibis (Oileáin Chomóra)',\n 'ar_KW' => 'Araibis (Cuáit)',\n 'ar_LB' => 'Araibis (an Liobáin)',\n 'ar_LY' => 'Araibis (an Libia)',\n 'ar_MA' => 'Araibis (Maracó)',\n 'ar_MR' => 'Araibis (an Mháratáin)',\n 'ar_OM' => 'Araibis (Óman)',\n 'ar_PS' => 'Araibis (na Críocha Palaistíneacha)',\n 'ar_QA' => 'Araibis (Catar)',\n 'ar_SA' => 'Araibis (an Araib Shádach)',\n 'ar_SD' => 'Araibis (an tSúdáin)',\n 'ar_SO' => 'Araibis (an tSomáil)',\n", "suffix": "imis',\n 'as_IN' => 'Asaimis (an India)',\n 'az' => 'Asarbaiseáinis',\n 'az_AZ' => 'Asarbaiseáinis (an Asarbaiseáin)',\n 'az_Cyrl' => 'Asarbaiseáinis (Coireallach)',\n 'az_Cyrl_AZ' => 'Asarbaiseáinis (Coireallach, an Asarbaise", "middle": " 'ar_SS' => 'Araibis (an tSúdáin Theas)',\n 'ar_SY' => 'Araibis (an tSiria)',\n 'ar_TD' => 'Araibis (Sead)',\n 'ar_TN' => 'Araibis (an Tuinéis)',\n 'ar_YE' => 'Araibis (Éimin)',\n 'as' => 'Asa", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ga.php", "language": "php", "file_size": 31151, "cut_index": 1331, "middle_length": 229}} {"prefix": "hp\n\nreturn [\n 'Names' => [\n 'ar_EH' => 'árabe (Sahara Occidental)',\n 'en_GG' => 'inglés (Guernsey)',\n 'ff_Adlm' => 'fula (adlam)',\n 'ff_Adlm_BF' => 'fula (adlam, Burkina Faso)',\n 'ff_Adlm_CM' => 'fula (adlam, Camerún)',\n 'ff_Adlm_GH' => 'fula (adlam, Ghana)',\n 'ff_Adlm_GM' => 'fula (adlam, Gambia)',\n 'ff_Adlm_GN' => 'fula (adlam, Guinea)',\n 'ff_Adlm_GW' => 'fula (adlam, Guinea-Bisáu)',\n 'ff_Adlm_LR' => 'fula (adlam, Liberia)',\n ", "suffix": "m, Senegal)',\n 'gu' => 'gurayatí',\n 'gu_IN' => 'gurayatí (India)',\n 'nd' => 'ndebele del norte',\n 'nd_ZW' => 'ndebele del norte (Zimbabue)',\n 'se' => 'sami del norte',\n 'se_FI' => 'sami del norte (Finlandia)',\n ", "middle": "'ff_Adlm_MR' => 'fula (adlam, Mauritania)',\n 'ff_Adlm_NE' => 'fula (adlam, Níger)',\n 'ff_Adlm_NG' => 'fula (adlam, Nigeria)',\n 'ff_Adlm_SL' => 'fula (adlam, Sierra Leona)',\n 'ff_Adlm_SN' => 'fula (adla", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/es_US.php", "language": "php", "file_size": 1106, "cut_index": 515, "middle_length": 229}} {"prefix": " 'ar_KW' => 'araabia (Kuveit)',\n 'ar_LB' => 'araabia (Liibanon)',\n 'ar_LY' => 'araabia (Liibüa)',\n 'ar_MA' => 'araabia (Maroko)',\n 'ar_MR' => 'araabia (Mauritaania)',\n 'ar_OM' => 'araabia (Omaan)',\n 'ar_PS' => 'araabia (Palestiina alad)',\n 'ar_QA' => 'araabia (Katar)',\n 'ar_SA' => 'araabia (Saudi Araabia)',\n 'ar_SD' => 'araabia (Sudaan)',\n 'ar_SO' => 'araabia (Somaalia)',\n 'ar_SS' => 'araabia (Lõuna-Sudaan)',\n 'ar_SY'", "suffix": "džaani',\n 'az_AZ' => 'aserbaidžaani (Aserbaidžaan)',\n 'az_Cyrl' => 'aserbaidžaani (kirillitsa)',\n 'az_Cyrl_AZ' => 'aserbaidžaani (kirillitsa, Aserbaidžaan)',\n 'az_Latn' => 'aserbaidžaani (ladina)',\n 'az_Latn_AZ' => 'aserb", "middle": " => 'araabia (Süüria)',\n 'ar_TD' => 'araabia (Tšaad)',\n 'ar_TN' => 'araabia (Tuneesia)',\n 'ar_YE' => 'araabia (Jeemen)',\n 'as' => 'assami',\n 'as_IN' => 'assami (India)',\n 'az' => 'aserbai", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/et.php", "language": "php", "file_size": 27708, "cut_index": 1331, "middle_length": 229}} {"prefix": "is (Comoros)',\n 'ar_KW' => 'Arabais (Cuibhèit)',\n 'ar_LB' => 'Arabais (Leabanon)',\n 'ar_LY' => 'Arabais (Libia)',\n 'ar_MA' => 'Arabais (Moroco)',\n 'ar_MR' => 'Arabais (Moratàinea)',\n 'ar_OM' => 'Arabais (Omàn)',\n 'ar_PS' => 'Arabais (Ùghdarras nam Palastaineach)',\n 'ar_QA' => 'Arabais (Catar)',\n 'ar_SA' => 'Arabais (Aràibia nan Sabhd)',\n 'ar_SD' => 'Arabais (Sudàn)',\n 'ar_SO' => 'Arabais (Somàilia)',\n 'ar_SS' => 'Arabais (Su", "suffix": "mais (Na h-Innseachan)',\n 'az' => 'Asarbaideànais',\n 'az_AZ' => 'Asarbaideànais (Asarbaideàn)',\n 'az_Cyrl' => 'Asarbaideànais (Cirilis)',\n 'az_Cyrl_AZ' => 'Asarbaideànais (Cirilis, Asarbaideàn)',\n 'az_Latn' => 'Asarbaideà", "middle": "dàn a Deas)',\n 'ar_SY' => 'Arabais (Siridhea)',\n 'ar_TD' => 'Arabais (An t-Seàd)',\n 'ar_TN' => 'Arabais (Tuinisea)',\n 'ar_YE' => 'Arabais (An Eaman)',\n 'as' => 'Asamais',\n 'as_IN' => 'Asa", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/gd.php", "language": "php", "file_size": 29772, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_LB' => 'árabe (Líbano)',\n 'ar_LY' => 'árabe (Libia)',\n 'ar_MA' => 'árabe (Marrocos)',\n 'ar_MR' => 'árabe (Mauritania)',\n 'ar_OM' => 'árabe (Omán)',\n 'ar_PS' => 'árabe (Territorios Palestinos)',\n 'ar_QA' => 'árabe (Qatar)',\n 'ar_SA' => 'árabe (Arabia Saudita)',\n 'ar_SD' => 'árabe (Sudán)',\n 'ar_SO' => 'árabe (Somalia)',\n 'ar_SS' => 'árabe (Sudán do Sur)',\n 'ar_SY' => 'árabe (Siria)',\n 'ar_TD' => 'árabe (Chad)',\n ", "suffix": "> 'acerbaixano (cirílico)',\n 'az_Cyrl_AZ' => 'acerbaixano (cirílico, Acerbaixán)',\n 'az_Latn' => 'acerbaixano (latino)',\n 'az_Latn_AZ' => 'acerbaixano (latino, Acerbaixán)',\n 'ba' => 'baxkir',\n 'ba_RU' => 'baxkir (Rusia)'", "middle": " 'ar_TN' => 'árabe (Tunisia)',\n 'ar_YE' => 'árabe (Iemen)',\n 'as' => 'assamés',\n 'as_IN' => 'assamés (India)',\n 'az' => 'acerbaixano',\n 'az_AZ' => 'acerbaixano (Acerbaixán)',\n 'az_Cyrl' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/gl.php", "language": "php", "file_size": 27880, "cut_index": 1331, "middle_length": 229}} {"prefix": "בית (לבנון)',\n 'ar_LY' => 'ערבית (לוב)',\n 'ar_MA' => 'ערבית (מרוקו)',\n 'ar_MR' => 'ערבית (מאוריטניה)',\n 'ar_OM' => 'ערבית (עומאן)',\n 'ar_PS' => 'ערבית (השטחים הפלסטיניים)',\n 'ar_QA' => 'ערבית (קטאר)',\n 'ar_SA' => 'ערבית (ערב הסעודית)',\n 'ar_SD' => 'ערבית (סודן)',\n 'ar_SO' => 'ערבית (סומליה)',\n 'ar_SS' => 'ערבית (דרום סודן)',\n 'ar_SY' => 'ערבית (סוריה)',\n 'ar_TD' => 'ערבית (צ׳אד)',\n 'ar_TN' => 'ערבית (תוניסיה)',\n ", "suffix": "רילי, אזרבייג׳ן)',\n 'az_Latn' => 'אזרית (לטיני)',\n 'az_Latn_AZ' => 'אזרית (לטיני, אזרבייג׳ן)',\n 'ba' => 'בשקירית',\n 'ba_RU' => 'בשקירית (רוסיה)',\n 'be' => 'בלארוסית',\n 'be_BY' => 'בלארוסית (בלארוס)',\n 'bg' =", "middle": " 'ar_YE' => 'ערבית (תימן)',\n 'as' => 'אסאמית',\n 'as_IN' => 'אסאמית (הודו)',\n 'az' => 'אזרית',\n 'az_AZ' => 'אזרית (אזרבייג׳ן)',\n 'az_Cyrl' => 'אזרית (קירילי)',\n 'az_Cyrl_AZ' => 'אזרית (קי", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/he.php", "language": "php", "file_size": 34795, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'af_ZA' => 'Afreeki (दक्षिण अफ़्रीका)',\n 'as_IN' => 'असमिया (Bharat)',\n 'bn_IN' => 'बंगाली (Bharat)',\n 'bo' => 'Tibbati',\n 'bo_CN' => 'Tibbati (चीन)',\n 'bo_IN' => 'Tibbati (Bharat)',\n 'en_IN' => 'अंग्रेज़ी (Bharat)',\n 'en_KN' => 'अंग्रेज़ी (St. Kitts & Nevis)',\n 'en_LC' => 'अंग्रेज़ी (St. Lucia)',\n 'en_SH' => 'अंग्रेज़ी (St. Helena)',\n 'en_UM' => 'अंग्रेज़ी (U.S. Outlying Islands)',\n 'en_VC' => 'अंग्रेज़ी (St. Vincent & Gren", "suffix": "',\n 'ff_Adlm_BF' => 'Fulah (ऐडलम, बुर्किना फ़ासो)',\n 'ff_Adlm_CM' => 'Fulah (ऐडलम, कैमरून)',\n 'ff_Adlm_GH' => 'Fulah (ऐडलम, घाना)',\n 'ff_Adlm_GM' => 'Fulah (ऐडलम, गाम्बिया)',\n 'ff_Adlm_GN' => 'Fulah (ऐडलम, गिनी)',\n ", "middle": "adines)',\n 'en_VI' => 'अंग्रेज़ी (U.S. Virgin Islands)',\n 'fa' => 'Faarsi',\n 'fa_AF' => 'Faarsi (अफ़गानिस्तान)',\n 'fa_IR' => 'Faarsi (ईरान)',\n 'ff' => 'Fulah',\n 'ff_Adlm' => 'Fulah (ऐडलम)", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/hi_Latn.php", "language": "php", "file_size": 5146, "cut_index": 614, "middle_length": 229}} {"prefix": " 'ar_LB' => 'arab (Libanon)',\n 'ar_LY' => 'arab (Líbia)',\n 'ar_MA' => 'arab (Marokkó)',\n 'ar_MR' => 'arab (Mauritánia)',\n 'ar_OM' => 'arab (Omán)',\n 'ar_PS' => 'arab (Palesztin Autonómia)',\n 'ar_QA' => 'arab (Katar)',\n 'ar_SA' => 'arab (Szaúd-Arábia)',\n 'ar_SD' => 'arab (Szudán)',\n 'ar_SO' => 'arab (Szomália)',\n 'ar_SS' => 'arab (Dél-Szudán)',\n 'ar_SY' => 'arab (Szíria)',\n 'ar_TD' => 'arab (Csád)',\n 'ar_TN' => ", "suffix": "ajdzsáni (Cirill)',\n 'az_Cyrl_AZ' => 'azerbajdzsáni (Cirill, Azerbajdzsán)',\n 'az_Latn' => 'azerbajdzsáni (Latin)',\n 'az_Latn_AZ' => 'azerbajdzsáni (Latin, Azerbajdzsán)',\n 'ba' => 'baskír',\n 'ba_RU' => 'baskír (Oroszorsz", "middle": "'arab (Tunézia)',\n 'ar_YE' => 'arab (Jemen)',\n 'as' => 'asszámi',\n 'as_IN' => 'asszámi (India)',\n 'az' => 'azerbajdzsáni',\n 'az_AZ' => 'azerbajdzsáni (Azerbajdzsán)',\n 'az_Cyrl' => 'azerb", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/hu.php", "language": "php", "file_size": 27361, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_LB' => 'arabe (Libano)',\n 'ar_LY' => 'arabe (Libya)',\n 'ar_MA' => 'arabe (Marocco)',\n 'ar_MR' => 'arabe (Mauritania)',\n 'ar_OM' => 'arabe (Oman)',\n 'ar_PS' => 'arabe (Territorios palestin)',\n 'ar_QA' => 'arabe (Qatar)',\n 'ar_SA' => 'arabe (Arabia Saudita)',\n 'ar_SD' => 'arabe (Sudan)',\n 'ar_SO' => 'arabe (Somalia)',\n 'ar_SS' => 'arabe (Sudan del Sud)',\n 'ar_SY' => 'arabe (Syria)',\n 'ar_TD' => 'arabe (Tchad)',\n ", "suffix": "'az_Cyrl' => 'azerbaidzhano (cyrillic)',\n 'az_Cyrl_AZ' => 'azerbaidzhano (cyrillic, Azerbaidzhan)',\n 'az_Latn' => 'azerbaidzhano (latin)',\n 'az_Latn_AZ' => 'azerbaidzhano (latin, Azerbaidzhan)',\n 'ba' => 'bashkir',\n 'ba_R", "middle": " 'ar_TN' => 'arabe (Tunisia)',\n 'ar_YE' => 'arabe (Yemen)',\n 'as' => 'assamese',\n 'as_IN' => 'assamese (India)',\n 'az' => 'azerbaidzhano',\n 'az_AZ' => 'azerbaidzhano (Azerbaidzhan)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ia.php", "language": "php", "file_size": 26986, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'cs_CZ' => 'tchec (Tchekia)',\n 'da' => 'danesi',\n 'da_DK' => 'danesi (Dania)',\n 'de' => 'german',\n 'de_AT' => 'german (Austria)',\n 'de_BE' => 'german (Belgia)',\n 'de_CH' => 'german (Svissia)',\n 'de_DE' => 'german (Germania)',\n 'de_IT' => 'german (Italia)',\n 'de_LI' => 'german (Liechtenstein)',\n 'de_LU' => 'german (Luxemburg)',\n 'el' => 'grec',\n 'el_GR' => 'grec (Grecia)',\n 'en' => 'anglesi',\n 'en_001' => 'ang", "suffix": " => 'anglesi (Germania)',\n 'en_DK' => 'anglesi (Dania)',\n 'en_EE' => 'anglesi (Estonia)',\n 'en_ER' => 'anglesi (Eritrea)',\n 'en_ES' => 'anglesi (Hispania)',\n 'en_FI' => 'anglesi (Finland)',\n 'en_FJ' => 'anglesi (Fi", "middle": "lesi (munde)',\n 'en_150' => 'anglesi (Europa)',\n 'en_AT' => 'anglesi (Austria)',\n 'en_BE' => 'anglesi (Belgia)',\n 'en_CH' => 'anglesi (Svissia)',\n 'en_CZ' => 'anglesi (Tchekia)',\n 'en_DE'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ie.php", "language": "php", "file_size": 6084, "cut_index": 716, "middle_length": 229}} {"prefix": " 'ar_JO' => 'Asụsụ Arabiikị (Jordan)',\n 'ar_KM' => 'Asụsụ Arabiikị (Comoros)',\n 'ar_KW' => 'Asụsụ Arabiikị (Kuwait)',\n 'ar_LB' => 'Asụsụ Arabiikị (Lebanon)',\n 'ar_LY' => 'Asụsụ Arabiikị (Libia)',\n 'ar_MA' => 'Asụsụ Arabiikị (Morocco)',\n 'ar_MR' => 'Asụsụ Arabiikị (Mauritania)',\n 'ar_OM' => 'Asụsụ Arabiikị (Oman)',\n 'ar_PS' => 'Asụsụ Arabiikị (Mpaghara ndị Palestine)',\n 'ar_QA' => 'Asụsụ Arabiikị (Qatar)',\n 'ar_SA' => 'Asụsụ Arabiikị (Sa", "suffix": "rabiikị (Chad)',\n 'ar_TN' => 'Asụsụ Arabiikị (Tunisia)',\n 'ar_YE' => 'Asụsụ Arabiikị (Yemen)',\n 'as' => 'Asụsụ Asamisị',\n 'as_IN' => 'Asụsụ Asamisị (India)',\n 'az' => 'Azerbaijani',\n 'az_AZ' => 'Azerbaijani (Azerba", "middle": "udi Arabia)',\n 'ar_SD' => 'Asụsụ Arabiikị (Sudan)',\n 'ar_SO' => 'Asụsụ Arabiikị (Somalia)',\n 'ar_SS' => 'Asụsụ Arabiikị (South Sudan)',\n 'ar_SY' => 'Asụsụ Arabiikị (Syria)',\n 'ar_TD' => 'Asụsụ A", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ig.php", "language": "php", "file_size": 28583, "cut_index": 1331, "middle_length": 229}} {"prefix": "ar_LB' => 'arabo (Libano)',\n 'ar_LY' => 'arabo (Libia)',\n 'ar_MA' => 'arabo (Marocco)',\n 'ar_MR' => 'arabo (Mauritania)',\n 'ar_OM' => 'arabo (Oman)',\n 'ar_PS' => 'arabo (Territori Palestinesi)',\n 'ar_QA' => 'arabo (Qatar)',\n 'ar_SA' => 'arabo (Arabia Saudita)',\n 'ar_SD' => 'arabo (Sudan)',\n 'ar_SO' => 'arabo (Somalia)',\n 'ar_SS' => 'arabo (Sud Sudan)',\n 'ar_SY' => 'arabo (Siria)',\n 'ar_TD' => 'arabo (Ciad)',\n 'ar_TN' ", "suffix": "zerbaigiano (cirillico)',\n 'az_Cyrl_AZ' => 'azerbaigiano (cirillico, Azerbaigian)',\n 'az_Latn' => 'azerbaigiano (latino)',\n 'az_Latn_AZ' => 'azerbaigiano (latino, Azerbaigian)',\n 'ba' => 'baschiro',\n 'ba_RU' => 'baschiro ", "middle": "=> 'arabo (Tunisia)',\n 'ar_YE' => 'arabo (Yemen)',\n 'as' => 'assamese',\n 'as_IN' => 'assamese (India)',\n 'az' => 'azerbaigiano',\n 'az_AZ' => 'azerbaigiano (Azerbaigian)',\n 'az_Cyrl' => 'a", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/it.php", "language": "php", "file_size": 27569, "cut_index": 1331, "middle_length": 229}} {"prefix": ",\n 'ar_LB' => 'arabia (Libanon)',\n 'ar_LY' => 'arabia (Libya)',\n 'ar_MA' => 'arabia (Marokko)',\n 'ar_MR' => 'arabia (Mauritania)',\n 'ar_OM' => 'arabia (Oman)',\n 'ar_PS' => 'arabia (Palestiinalaisalue)',\n 'ar_QA' => 'arabia (Qatar)',\n 'ar_SA' => 'arabia (Saudi-Arabia)',\n 'ar_SD' => 'arabia (Sudan)',\n 'ar_SO' => 'arabia (Somalia)',\n 'ar_SS' => 'arabia (Etelä-Sudan)',\n 'ar_SY' => 'arabia (Syyria)',\n 'ar_TD' => 'arabia (T", "suffix": "' => 'azeri (kyrillinen)',\n 'az_Cyrl_AZ' => 'azeri (kyrillinen, Azerbaidžan)',\n 'az_Latn' => 'azeri (latinalainen)',\n 'az_Latn_AZ' => 'azeri (latinalainen, Azerbaidžan)',\n 'ba' => 'baškiiri',\n 'ba_RU' => 'baškiiri (Venäjä", "middle": "šad)',\n 'ar_TN' => 'arabia (Tunisia)',\n 'ar_YE' => 'arabia (Jemen)',\n 'as' => 'assami',\n 'as_IN' => 'assami (Intia)',\n 'az' => 'azeri',\n 'az_AZ' => 'azeri (Azerbaidžan)',\n 'az_Cyrl", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/fi.php", "language": "php", "file_size": 28179, "cut_index": 1331, "middle_length": 229}} {"prefix": ",\n 'ar_LB' => 'arabe (Liban)',\n 'ar_LY' => 'arabe (Libye)',\n 'ar_MA' => 'arabe (Maroc)',\n 'ar_MR' => 'arabe (Mauritanie)',\n 'ar_OM' => 'arabe (Oman)',\n 'ar_PS' => 'arabe (Territoires palestiniens)',\n 'ar_QA' => 'arabe (Qatar)',\n 'ar_SA' => 'arabe (Arabie saoudite)',\n 'ar_SD' => 'arabe (Soudan)',\n 'ar_SO' => 'arabe (Somalie)',\n 'ar_SS' => 'arabe (Soudan du Sud)',\n 'ar_SY' => 'arabe (Syrie)',\n 'ar_TD' => 'arabe (Tchad)'", "suffix": " 'az_Cyrl' => 'azerbaïdjanais (cyrillique)',\n 'az_Cyrl_AZ' => 'azerbaïdjanais (cyrillique, Azerbaïdjan)',\n 'az_Latn' => 'azerbaïdjanais (latin)',\n 'az_Latn_AZ' => 'azerbaïdjanais (latin, Azerbaïdjan)',\n 'ba' => 'bachkir',\n ", "middle": ",\n 'ar_TN' => 'arabe (Tunisie)',\n 'ar_YE' => 'arabe (Yémen)',\n 'as' => 'assamais',\n 'as_IN' => 'assamais (Inde)',\n 'az' => 'azerbaïdjanais',\n 'az_AZ' => 'azerbaïdjanais (Azerbaïdjan)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/fr.php", "language": "php", "file_size": 28070, "cut_index": 1331, "middle_length": 229}} {"prefix": "a Saudita)',\n 'az_Latn' => 'azerbaiyano (latín)',\n 'az_Latn_AZ' => 'azerbaiyano (latín, Azerbaiyán)',\n 'bs_BA' => 'bosnio (Bosnia-Herzegovina)',\n 'bs_Cyrl_BA' => 'bosnio (cirílico, Bosnia-Herzegovina)',\n 'bs_Latn' => 'bosnio (latín)',\n 'bs_Latn_BA' => 'bosnio (latín, Bosnia-Herzegovina)',\n 'en_001' => 'inglés (mundo)',\n 'en_GS' => 'inglés (Islas Georgia del Sur y Sándwich del Sur)',\n 'en_RO' => 'inglés (Rumania)',\n 'en_UM' => 'inglés (Isl", "suffix": " 'ff_Latn_CM' => 'fula (latín, Camerún)',\n 'ff_Latn_GH' => 'fula (latín, Ghana)',\n 'ff_Latn_GM' => 'fula (latín, Gambia)',\n 'ff_Latn_GN' => 'fula (latín, Guinea)',\n 'ff_Latn_GW' => 'fula (latín, Guinea-Bisáu)',\n 'ff_Latn", "middle": "as Ultramarinas de EE.UU.)',\n 'eo_001' => 'esperanto (mundo)',\n 'eu' => 'vasco',\n 'eu_ES' => 'vasco (España)',\n 'ff_Latn' => 'fula (latín)',\n 'ff_Latn_BF' => 'fula (latín, Burkina Faso)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/es_419.php", "language": "php", "file_size": 3229, "cut_index": 614, "middle_length": 229}} {"prefix": " 'عربی (لیبی)',\n 'ar_MA' => 'عربی (مراکش)',\n 'ar_MR' => 'عربی (موریتانی)',\n 'ar_OM' => 'عربی (عمان)',\n 'ar_PS' => 'عربی (سرزمین‌های فلسطینی)',\n 'ar_QA' => 'عربی (قطر)',\n 'ar_SA' => 'عربی (عربستان سعودی)',\n 'ar_SD' => 'عربی (سودان)',\n 'ar_SO' => 'عربی (سومالی)',\n 'ar_SS' => 'عربی (سودان جنوبی)',\n 'ar_SY' => 'عربی (سوریه)',\n 'ar_TD' => 'عربی (چاد)',\n 'ar_TN' => 'عربی (تونس)',\n 'ar_YE' => 'عربی (یمن)',\n 'as' => 'آ", "suffix": "ی، جمهوری آذربایجان)',\n 'az_Latn' => 'ترکی آذربایجانی (لاتین)',\n 'az_Latn_AZ' => 'ترکی آذربایجانی (لاتین، جمهوری آذربایجان)',\n 'ba' => 'باشقیری',\n 'ba_RU' => 'باشقیری (روسیه)',\n 'be' => 'بلاروسی',\n 'be_BY' => 'بلار", "middle": "سامی',\n 'as_IN' => 'آسامی (هند)',\n 'az' => 'ترکی آذربایجانی',\n 'az_AZ' => 'ترکی آذربایجانی (جمهوری آذربایجان)',\n 'az_Cyrl' => 'ترکی آذربایجانی (سیریلی)',\n 'az_Cyrl_AZ' => 'ترکی آذربایجانی (سیریل", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/fa.php", "language": "php", "file_size": 35409, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_KW' => 'Larabci (Kuwet)',\n 'ar_LB' => 'Larabci (Labanan)',\n 'ar_LY' => 'Larabci (Libiya)',\n 'ar_MA' => 'Larabci (Maroko)',\n 'ar_MR' => 'Larabci (Moritaniya)',\n 'ar_OM' => 'Larabci (Oman)',\n 'ar_PS' => 'Larabci (Yankunan Palasɗinu)',\n 'ar_QA' => 'Larabci (Katar)',\n 'ar_SA' => 'Larabci (Saudiyya)',\n 'ar_SD' => 'Larabci (Sudan)',\n 'ar_SO' => 'Larabci (Somaliya)',\n 'ar_SS' => 'Larabci (Sudan ta Kudu)',\n 'ar_SY' => 'Larabci", "suffix": "ijanci',\n 'az_AZ' => 'Azerbaijanci (Azarbaijan)',\n 'az_Cyrl' => 'Azerbaijanci (Cyrillic)',\n 'az_Cyrl_AZ' => 'Azerbaijanci (Cyrillic, Azarbaijan)',\n 'az_Latn' => 'Azerbaijanci (Latin)',\n 'az_Latn_AZ' => 'Azerbaijanci (Lati", "middle": " (Sham, Siriya)',\n 'ar_TD' => 'Larabci (Cadi)',\n 'ar_TN' => 'Larabci (Tunisiya)',\n 'ar_YE' => 'Larabci (Yamen)',\n 'as' => 'Asamisanci',\n 'as_IN' => 'Asamisanci (Indiya)',\n 'az' => 'Azerba", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ha.php", "language": "php", "file_size": 29036, "cut_index": 1331, "middle_length": 229}} {"prefix": ",\n 'ar_KW' => 'arapski (Kuvajt)',\n 'ar_LB' => 'arapski (Libanon)',\n 'ar_LY' => 'arapski (Libija)',\n 'ar_MA' => 'arapski (Maroko)',\n 'ar_MR' => 'arapski (Mauretanija)',\n 'ar_OM' => 'arapski (Oman)',\n 'ar_PS' => 'arapski (Palestinsko područje)',\n 'ar_QA' => 'arapski (Katar)',\n 'ar_SA' => 'arapski (Saudijska Arabija)',\n 'ar_SD' => 'arapski (Sudan)',\n 'ar_SO' => 'arapski (Somalija)',\n 'ar_SS' => 'arapski (Južni Sudan)',\n ", "suffix": "rbajdžanski',\n 'az_AZ' => 'azerbajdžanski (Azerbajdžan)',\n 'az_Cyrl' => 'azerbajdžanski (ćirilica)',\n 'az_Cyrl_AZ' => 'azerbajdžanski (ćirilica, Azerbajdžan)',\n 'az_Latn' => 'azerbajdžanski (latinica)',\n 'az_Latn_AZ' => '", "middle": "'ar_SY' => 'arapski (Sirija)',\n 'ar_TD' => 'arapski (Čad)',\n 'ar_TN' => 'arapski (Tunis)',\n 'ar_YE' => 'arapski (Jemen)',\n 'as' => 'asamski',\n 'as_IN' => 'asamski (Indija)',\n 'az' => 'aze", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/hr.php", "language": "php", "file_size": 28932, "cut_index": 1331, "middle_length": 229}} {"prefix": " => 'արաբերեն (Կոմորյան կղզիներ)',\n 'ar_KW' => 'արաբերեն (Քուվեյթ)',\n 'ar_LB' => 'արաբերեն (Լիբանան)',\n 'ar_LY' => 'արաբերեն (Լիբիա)',\n 'ar_MA' => 'արաբերեն (Մարոկկո)',\n 'ar_MR' => 'արաբերեն (Մավրիտանիա)',\n 'ar_OM' => 'արաբերեն (Օման)',\n 'ar_PS' => 'արաբերեն (Պաղեստինյան տարածքներ)',\n 'ar_QA' => 'արաբերեն (Կատար)',\n 'ar_SA' => 'արաբերեն (Սաուդյան Արաբիա)',\n 'ar_SD' => 'արաբերեն (Սուդան)',\n 'ar_SO' => 'արաբերեն (Սոմալի)',\n 'a", "suffix": " 'as_IN' => 'ասամերեն (Հնդկաստան)',\n 'az' => 'ադրբեջաներեն',\n 'az_AZ' => 'ադրբեջաներեն (Ադրբեջան)',\n 'az_Cyrl' => 'ադրբեջաներեն (կյուրեղագիր)',\n 'az_Cyrl_AZ' => 'ադրբեջաներեն (կյուրեղագիր, Ադրբեջան)',\n 'az_Latn' => 'ադրբե", "middle": "r_SS' => 'արաբերեն (Հարավային Սուդան)',\n 'ar_SY' => 'արաբերեն (Սիրիա)',\n 'ar_TD' => 'արաբերեն (Չադ)',\n 'ar_TN' => 'արաբերեն (Թունիս)',\n 'ar_YE' => 'արաբերեն (Եմեն)',\n 'as' => 'ասամերեն',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/hy.php", "language": "php", "file_size": 40674, "cut_index": 1331, "middle_length": 229}} {"prefix": " (Kómoreyjar)',\n 'ar_KW' => 'arabíska (Kúveit)',\n 'ar_LB' => 'arabíska (Líbanon)',\n 'ar_LY' => 'arabíska (Líbía)',\n 'ar_MA' => 'arabíska (Marokkó)',\n 'ar_MR' => 'arabíska (Máritanía)',\n 'ar_OM' => 'arabíska (Óman)',\n 'ar_PS' => 'arabíska (Heimastjórnarsvæði Palestínumanna)',\n 'ar_QA' => 'arabíska (Katar)',\n 'ar_SA' => 'arabíska (Sádi-Arabía)',\n 'ar_SD' => 'arabíska (Súdan)',\n 'ar_SO' => 'arabíska (Sómalía)',\n 'ar_SS' => 'ara", "suffix": "ssamska (Indland)',\n 'az' => 'aserska',\n 'az_AZ' => 'aserska (Aserbaídsjan)',\n 'az_Cyrl' => 'aserska (kyrillískt)',\n 'az_Cyrl_AZ' => 'aserska (kyrillískt, Aserbaídsjan)',\n 'az_Latn' => 'aserska (latneskt)',\n 'az_La", "middle": "bíska (Suður-Súdan)',\n 'ar_SY' => 'arabíska (Sýrland)',\n 'ar_TD' => 'arabíska (Tsjad)',\n 'ar_TN' => 'arabíska (Túnis)',\n 'ar_YE' => 'arabíska (Jemen)',\n 'as' => 'assamska',\n 'as_IN' => 'a", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/is.php", "language": "php", "file_size": 28821, "cut_index": 1331, "middle_length": 229}} {"prefix": "s (Bélize)',\n 'en_CC' => 'anglais (îles Cocos [Keeling])',\n 'en_CK' => 'anglais (îles Cook)',\n 'en_CX' => 'anglais (île Christmas)',\n 'en_FK' => 'anglais (îles Malouines)',\n 'en_IM' => 'anglais (île de Man)',\n 'en_KN' => 'anglais (Saint‑Kitts‑et‑Nevis)',\n 'en_LR' => 'anglais (Libéria)',\n 'en_MP' => 'anglais (Mariannes du Nord)',\n 'en_NF' => 'anglais (île Norfolk)',\n 'en_NG' => 'anglais (Nigéria)',\n 'en_PN' => 'anglais (îles Pitcair", "suffix": "es américaines)',\n 'es_BZ' => 'espagnol (Bélize)',\n 'es_VE' => 'espagnol (Vénézuéla)',\n 'ff_Adlm_LR' => 'peul (adlam, Libéria)',\n 'ff_Adlm_NG' => 'peul (adlam, Nigéria)',\n 'ff_Latn_LR' => 'peul (latin, Libéria)',\n ", "middle": "n)',\n 'en_SX' => 'anglais (Saint-Martin [Pays-Bas])',\n 'en_UM' => 'anglais (îles mineures éloignées des États-Unis)',\n 'en_VG' => 'anglais (îles Vierges britanniques)',\n 'en_VI' => 'anglais (îles Vierg", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/fr_CA.php", "language": "php", "file_size": 3499, "cut_index": 614, "middle_length": 229}} {"prefix": "Komoreak)',\n 'ar_KW' => 'arabiera (Kuwait)',\n 'ar_LB' => 'arabiera (Libano)',\n 'ar_LY' => 'arabiera (Libia)',\n 'ar_MA' => 'arabiera (Maroko)',\n 'ar_MR' => 'arabiera (Mauritania)',\n 'ar_OM' => 'arabiera (Oman)',\n 'ar_PS' => 'arabiera (Palestinar Lurralde Okupatuak)',\n 'ar_QA' => 'arabiera (Qatar)',\n 'ar_SA' => 'arabiera (Saudi Arabia)',\n 'ar_SD' => 'arabiera (Sudan)',\n 'ar_SO' => 'arabiera (Somalia)',\n 'ar_SS' => 'arabiera (H", "suffix": "ndia)',\n 'az' => 'azerbaijanera',\n 'az_AZ' => 'azerbaijanera (Azerbaijan)',\n 'az_Cyrl' => 'azerbaijanera (zirilikoa)',\n 'az_Cyrl_AZ' => 'azerbaijanera (zirilikoa, Azerbaijan)',\n 'az_Latn' => 'azerbaijanera (latinoa)',\n ", "middle": "ego Sudan)',\n 'ar_SY' => 'arabiera (Siria)',\n 'ar_TD' => 'arabiera (Txad)',\n 'ar_TN' => 'arabiera (Tunisia)',\n 'ar_YE' => 'arabiera (Yemen)',\n 'as' => 'assamera',\n 'as_IN' => 'assamera (I", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/eu.php", "language": "php", "file_size": 28829, "cut_index": 1331, "middle_length": 229}} {"prefix": "बनान)',\n 'ar_LY' => 'अरबी (लीबिया)',\n 'ar_MA' => 'अरबी (मोरक्को)',\n 'ar_MR' => 'अरबी (मॉरिटानिया)',\n 'ar_OM' => 'अरबी (ओमान)',\n 'ar_PS' => 'अरबी (फ़िलिस्तीनी क्षेत्र)',\n 'ar_QA' => 'अरबी (क़तर)',\n 'ar_SA' => 'अरबी (सऊदी अरब)',\n 'ar_SD' => 'अरबी (सूडान)',\n 'ar_SO' => 'अरबी (सोमालिया)',\n 'ar_SS' => 'अरबी (दक्षिण सूडान)',\n 'ar_SY' => 'अरबी (सीरिया)',\n 'ar_TD' => 'अरबी (चाड)',\n 'ar_TN' => 'अरबी (ट्यूनीशिया)',\n 'ar_", "suffix": "ज़रबैजानी (सिरिलिक, अज़रबैजान)',\n 'az_Latn' => 'अज़रबैजानी (लैटिन)',\n 'az_Latn_AZ' => 'अज़रबैजानी (लैटिन, अज़रबैजान)',\n 'ba' => 'बशख़िर',\n 'ba_RU' => 'बशख़िर (रूस)',\n 'be' => 'बेलारूसी',\n 'be_BY' => 'बेलारूसी (बेला", "middle": "YE' => 'अरबी (यमन)',\n 'as' => 'असमिया',\n 'as_IN' => 'असमिया (भारत)',\n 'az' => 'अज़रबैजानी',\n 'az_AZ' => 'अज़रबैजानी (अज़रबैजान)',\n 'az_Cyrl' => 'अज़रबैजानी (सिरिलिक)',\n 'az_Cyrl_AZ' => 'अ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/hi.php", "language": "php", "file_size": 47590, "cut_index": 1331, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ar' => 'ꀊꇁꀨꉙ',\n 'ar_001' => 'ꀊꇁꀨꉙ(ꋧꃅ)',\n 'de' => 'ꄓꇩꉙ',\n 'de_BE' => 'ꄓꇩꉙ(ꀘꆹꏃ)',\n 'de_DE' => 'ꄓꇩꉙ(ꄓꇩ)',\n 'de_IT' => 'ꄓꇩꉙ(ꑴꄊꆺ)',\n 'en' => 'ꑱꇩꉙ',\n 'en_001' => 'ꑱꇩꉙ(ꋧꃅ)',\n 'en_150' => 'ꑱꇩꉙ(ꉩꍏ)',\n 'en_BE' => 'ꑱꇩꉙ(ꀘꆹꏃ)',\n 'en_DE' => 'ꑱꇩꉙ(ꄓꇩ)',\n 'en_FR' => 'ꑱꇩꉙ(ꃔꇩ)',\n 'en_GB' => 'ꑱꇩꉙ(ꑱꇩ)',\n 'en_IN' => 'ꑱꇩꉙ(ꑴꄗ)',\n 'en_IT' => 'ꑱꇩꉙ(ꑴꄊꆺ)',\n 'en_JP' => 'ꑱꇩꉙ(ꏝꀪ)',\n 'en_US' => 'ꑱꇩꉙ", "suffix": "',\n 'hi_IN' => 'ꑴꄃꉙ(ꑴꄗ)',\n 'hi_Latn' => 'ꑴꄃꉙ(ꇁꄂꁱꂷ)',\n 'hi_Latn_IN' => 'ꑴꄃꉙ(ꇁꄂꁱꂷ,ꑴꄗ)',\n 'ii' => 'ꆈꌠꉙ',\n 'ii_CN' => 'ꆈꌠꉙ(ꍏꇩ)',\n 'it' => 'ꑴꄊꆺꉙ',\n 'it_IT' => 'ꑴꄊꆺꉙ(ꑴꄊꆺ)',\n 'ja' => 'ꏝꀪꉙ',\n 'ja_JP' =", "middle": "(ꂰꇩ)',\n 'es' => 'ꑭꀠꑸꉙ',\n 'es_BR' => 'ꑭꀠꑸꉙ(ꀠꑭ)',\n 'es_MX' => 'ꑭꀠꑸꉙ(ꃀꑭꇬ)',\n 'es_US' => 'ꑭꀠꑸꉙ(ꂰꇩ)',\n 'fr' => 'ꃔꇩꉙ',\n 'fr_BE' => 'ꃔꇩꉙ(ꀘꆹꏃ)',\n 'fr_FR' => 'ꃔꇩꉙ(ꃔꇩ)',\n 'hi' => 'ꑴꄃꉙ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ii.php", "language": "php", "file_size": 2019, "cut_index": 524, "middle_length": 229}} {"prefix": "non)',\n 'ar_LY' => 'Arab (Libya)',\n 'ar_MA' => 'Arab (Maroko)',\n 'ar_MR' => 'Arab (Mauritania)',\n 'ar_OM' => 'Arab (Oman)',\n 'ar_PS' => 'Arab (Wilayah Palestina)',\n 'ar_QA' => 'Arab (Qatar)',\n 'ar_SA' => 'Arab (Arab Saudi)',\n 'ar_SD' => 'Arab (Sudan)',\n 'ar_SO' => 'Arab (Somalia)',\n 'ar_SS' => 'Arab (Sudan Selatan)',\n 'ar_SY' => 'Arab (Suriah)',\n 'ar_TD' => 'Arab (Chad)',\n 'ar_TN' => 'Arab (Tunisia)',\n 'ar_YE' ", "suffix": "Azerbaijani (Sirilik, Azerbaijan)',\n 'az_Latn' => 'Azerbaijani (Latin)',\n 'az_Latn_AZ' => 'Azerbaijani (Latin, Azerbaijan)',\n 'ba' => 'Bashkir',\n 'ba_RU' => 'Bashkir (Rusia)',\n 'be' => 'Belarusia',\n 'be_BY' => 'Bel", "middle": "=> 'Arab (Yaman)',\n 'as' => 'Assam',\n 'as_IN' => 'Assam (India)',\n 'az' => 'Azerbaijani',\n 'az_AZ' => 'Azerbaijani (Azerbaijan)',\n 'az_Cyrl' => 'Azerbaijani (Sirilik)',\n 'az_Cyrl_AZ' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/id.php", "language": "php", "file_size": 26692, "cut_index": 1331, "middle_length": 229}} {"prefix": "બી (લેબનોન)',\n 'ar_LY' => 'અરબી (લિબિયા)',\n 'ar_MA' => 'અરબી (મોરોક્કો)',\n 'ar_MR' => 'અરબી (મૌરિટાનિયા)',\n 'ar_OM' => 'અરબી (ઓમાન)',\n 'ar_PS' => 'અરબી (પેલેસ્ટિનિયન ટેરિટરી)',\n 'ar_QA' => 'અરબી (કતાર)',\n 'ar_SA' => 'અરબી (સાઉદી અરેબિયા)',\n 'ar_SD' => 'અરબી (સુદાન)',\n 'ar_SO' => 'અરબી (સોમાલિયા)',\n 'ar_SS' => 'અરબી (દક્ષિણ સુદાન)',\n 'ar_SY' => 'અરબી (સીરિયા)',\n 'ar_TD' => 'અરબી (ચાડ)',\n 'ar_TN' => 'અરબી (ટ્યુનિશિયા)',", "suffix": "' => 'અઝરબૈજાની (સિરિલિક, અઝરબૈજાન)',\n 'az_Latn' => 'અઝરબૈજાની (લેટિન)',\n 'az_Latn_AZ' => 'અઝરબૈજાની (લેટિન, અઝરબૈજાન)',\n 'ba' => 'બશ્કીર',\n 'ba_RU' => 'બશ્કીર (રશિયા)',\n 'be' => 'બેલારુશિયન',\n 'be_BY' => 'બેલારુશિ", "middle": "\n 'ar_YE' => 'અરબી (યમન)',\n 'as' => 'આસામી',\n 'as_IN' => 'આસામી (ભારત)',\n 'az' => 'અઝરબૈજાની',\n 'az_AZ' => 'અઝરબૈજાની (અઝરબૈજાન)',\n 'az_Cyrl' => 'અઝરબૈજાની (સિરિલિક)',\n 'az_Cyrl_AZ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/gu.php", "language": "php", "file_size": 46613, "cut_index": 1331, "middle_length": 229}} {"prefix": "ar_LB' => 'árabe (Líbano)',\n 'ar_LY' => 'árabe (Libia)',\n 'ar_MA' => 'árabe (Marruecos)',\n 'ar_MR' => 'árabe (Mauritania)',\n 'ar_OM' => 'árabe (Omán)',\n 'ar_PS' => 'árabe (Territorios Palestinos)',\n 'ar_QA' => 'árabe (Catar)',\n 'ar_SA' => 'árabe (Arabia Saudí)',\n 'ar_SD' => 'árabe (Sudán)',\n 'ar_SO' => 'árabe (Somalia)',\n 'ar_SS' => 'árabe (Sudán del Sur)',\n 'ar_SY' => 'árabe (Siria)',\n 'ar_TD' => 'árabe (Chad)',\n 'ar", "suffix": "aiyano (cirílico)',\n 'az_Cyrl_AZ' => 'azerbaiyano (cirílico, Azerbaiyán)',\n 'az_Latn' => 'azerbaiyano (latino)',\n 'az_Latn_AZ' => 'azerbaiyano (latino, Azerbaiyán)',\n 'ba' => 'baskir',\n 'ba_RU' => 'baskir (Rusia)',\n ", "middle": "_TN' => 'árabe (Túnez)',\n 'ar_YE' => 'árabe (Yemen)',\n 'as' => 'asamés',\n 'as_IN' => 'asamés (India)',\n 'az' => 'azerbaiyano',\n 'az_AZ' => 'azerbaiyano (Azerbaiyán)',\n 'az_Cyrl' => 'azerb", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/es.php", "language": "php", "file_size": 27766, "cut_index": 1331, "middle_length": 229}} {"prefix": "> 'عربي (لبيا)',\n 'ar_MA' => 'عربي (مراڪش)',\n 'ar_MR' => 'عربي (موريتانيا)',\n 'ar_OM' => 'عربي (عمان)',\n 'ar_PS' => 'عربي (فلسطيني علائقا)',\n 'ar_QA' => 'عربي (قطر)',\n 'ar_SA' => 'عربي (سعودي عرب)',\n 'ar_SD' => 'عربي (سوڊان)',\n 'ar_SO' => 'عربي (سوماليا)',\n 'ar_SS' => 'عربي (ڏکڻ سوڊان)',\n 'ar_SY' => 'عربي (شام)',\n 'ar_TD' => 'عربي (چاڊ)',\n 'ar_TN' => 'عربي (تيونيسيا)',\n 'ar_YE' => 'عربي (يمن)',\n 'as' => 'آسامي'", "suffix": "az_Latn' => 'آزربائيجاني (لاطيني)',\n 'az_Latn_AZ' => 'آزربائيجاني (لاطيني, آذربائيجان)',\n 'ba' => 'ڪينيڊا',\n 'ba_RU' => 'ڪينيڊا (روس)',\n 'be' => 'بيلاروسي',\n 'be_BY' => 'بيلاروسي (بيلاروس)',\n 'bg' => 'بلغاريائي',\n ", "middle": ",\n 'as_IN' => 'آسامي (ڀارت)',\n 'az' => 'آزربائيجاني',\n 'az_AZ' => 'آزربائيجاني (آذربائيجان)',\n 'az_Cyrl' => 'آزربائيجاني (سيريلي)',\n 'az_Cyrl_AZ' => 'آزربائيجاني (سيريلي, آذربائيجان)',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sd.php", "language": "php", "file_size": 34273, "cut_index": 1331, "middle_length": 229}} {"prefix": "јелоруски',\n 'be_BY' => 'бјелоруски (Бјелорусија)',\n 'bm' => 'бамананкан',\n 'bm_ML' => 'бамананкан (Мали)',\n 'bn' => 'бангла',\n 'bn_BD' => 'бангла (Бангладеш)',\n 'bn_IN' => 'бангла (Индија)',\n 'cs_CZ' => 'чешки (Чешка Република)',\n 'de_DE' => 'немачки (Њемачка)',\n 'en_CZ' => 'енглески (Чешка Република)',\n 'en_DE' => 'енглески (Њемачка)',\n 'en_KN' => 'енглески (Свети Китс и Невис)',\n 'en_UM' => 'енглески (Мања удаљена острва ", "suffix": "m' => 'фулах (адлам)',\n 'ff_Adlm_BF' => 'фулах (адлам, Буркина Фасо)',\n 'ff_Adlm_CM' => 'фулах (адлам, Камерун)',\n 'ff_Adlm_GH' => 'фулах (адлам, Гана)',\n 'ff_Adlm_GM' => 'фулах (адлам, Гамбија)',\n 'ff_Adlm_GN' => 'фулах ", "middle": "САД)',\n 'en_VC' => 'енглески (Свети Винсент и Гренадини)',\n 'en_VG' => 'енглески (Британска Дјевичанска Острва)',\n 'en_VI' => 'енглески (Америчка Дјевичанска Острва)',\n 'ff' => 'фулах',\n 'ff_Adl", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sr_Cyrl_ME.php", "language": "php", "file_size": 3763, "cut_index": 563, "middle_length": 229}} {"prefix": "\n 'bn' => 'бангла',\n 'bn_BD' => 'бангла (Бангладеш)',\n 'bn_IN' => 'бангла (Индија)',\n 'cs_CZ' => 'чешки (Чешка Република)',\n 'en_CZ' => 'енглески (Чешка Република)',\n 'en_HK' => 'енглески (САР Хонгконг)',\n 'en_KN' => 'енглески (Свети Китс и Невис)',\n 'en_MO' => 'енглески (САР Макао)',\n 'en_UM' => 'енглески (Мања удаљена острва САД)',\n 'en_VC' => 'енглески (Свети Винсент и Гренадини)',\n 'ff' => 'фулах',\n 'ff_Adlm' => 'фулах (", "suffix": "N' => 'фулах (адлам, Гвинеја)',\n 'ff_Adlm_GW' => 'фулах (адлам, Гвинеја-Бисао)',\n 'ff_Adlm_LR' => 'фулах (адлам, Либерија)',\n 'ff_Adlm_MR' => 'фулах (адлам, Мауританија)',\n 'ff_Adlm_NE' => 'фулах (адлам, Нигер)',\n 'ff_Adl", "middle": "адлам)',\n 'ff_Adlm_BF' => 'фулах (адлам, Буркина Фасо)',\n 'ff_Adlm_CM' => 'фулах (адлам, Камерун)',\n 'ff_Adlm_GH' => 'фулах (адлам, Гана)',\n 'ff_Adlm_GM' => 'фулах (адлам, Гамбија)',\n 'ff_Adlm_G", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sr_Cyrl_XK.php", "language": "php", "file_size": 4256, "cut_index": 614, "middle_length": 229}} {"prefix": "va)',\n 'ar_KW' => 'arapski (Kuvajt)',\n 'ar_LB' => 'arapski (Liban)',\n 'ar_LY' => 'arapski (Libija)',\n 'ar_MA' => 'arapski (Maroko)',\n 'ar_MR' => 'arapski (Mauritanija)',\n 'ar_OM' => 'arapski (Oman)',\n 'ar_PS' => 'arapski (Palestinske teritorije)',\n 'ar_QA' => 'arapski (Katar)',\n 'ar_SA' => 'arapski (Saudijska Arabija)',\n 'ar_SD' => 'arapski (Sudan)',\n 'ar_SO' => 'arapski (Somalija)',\n 'ar_SS' => 'arapski (Južni Sudan)',\n ", "suffix": "'azerbejdžanski',\n 'az_AZ' => 'azerbejdžanski (Azerbejdžan)',\n 'az_Cyrl' => 'azerbejdžanski (ćirilica)',\n 'az_Cyrl_AZ' => 'azerbejdžanski (ćirilica, Azerbejdžan)',\n 'az_Latn' => 'azerbejdžanski (latinica)',\n 'az_Latn_AZ' ", "middle": " 'ar_SY' => 'arapski (Sirija)',\n 'ar_TD' => 'arapski (Čad)',\n 'ar_TN' => 'arapski (Tunis)',\n 'ar_YE' => 'arapski (Jemen)',\n 'as' => 'asamski',\n 'as_IN' => 'asamski (Indija)',\n 'az' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sr_Latn.php", "language": "php", "file_size": 28781, "cut_index": 1331, "middle_length": 229}} {"prefix": "> 'arapski (svijet)',\n 'ar_KM' => 'arapski (Komori)',\n 'ar_PS' => 'arapski (palestinske teritorije)',\n 'be' => 'bjeloruski',\n 'be_BY' => 'bjeloruski (Bjelorusija)',\n 'bm' => 'bamanankan',\n 'bm_ML' => 'bamanankan (Mali)',\n 'bn' => 'bangla',\n 'bn_BD' => 'bangla (Bangladeš)',\n 'bn_IN' => 'bangla (Indija)',\n 'cs_CZ' => 'češki (Češka Republika)',\n 'de' => 'njemački',\n 'de_AT' => 'njemački (Austrija)',\n 'de_BE' => 'njemački", "suffix": " 'en_001' => 'engleski (svijet)',\n 'en_CC' => 'engleski (Kokosova [Kiling] ostrva)',\n 'en_CZ' => 'engleski (Češka Republika)',\n 'en_DE' => 'engleski (Njemačka)',\n 'en_FK' => 'engleski (Foklandska ostrva)',\n 'en_GS'", "middle": " (Belgija)',\n 'de_CH' => 'njemački (Švajcarska)',\n 'de_DE' => 'njemački (Njemačka)',\n 'de_IT' => 'njemački (Italija)',\n 'de_LI' => 'njemački (Lihtenštajn)',\n 'de_LU' => 'njemački (Luksemburg)',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sr_Latn_BA.php", "language": "php", "file_size": 2865, "cut_index": 563, "middle_length": 229}} {"prefix": "jeloruski',\n 'be_BY' => 'bjeloruski (Bjelorusija)',\n 'bm' => 'bamanankan',\n 'bm_ML' => 'bamanankan (Mali)',\n 'bn' => 'bangla',\n 'bn_BD' => 'bangla (Bangladeš)',\n 'bn_IN' => 'bangla (Indija)',\n 'cs_CZ' => 'češki (Češka Republika)',\n 'de_DE' => 'nemački (Njemačka)',\n 'en_CZ' => 'engleski (Češka Republika)',\n 'en_DE' => 'engleski (Njemačka)',\n 'en_KN' => 'engleski (Sveti Kits i Nevis)',\n 'en_UM' => 'engleski (Manja udaljena ost", "suffix": "_Adlm' => 'fulah (adlam)',\n 'ff_Adlm_BF' => 'fulah (adlam, Burkina Faso)',\n 'ff_Adlm_CM' => 'fulah (adlam, Kamerun)',\n 'ff_Adlm_GH' => 'fulah (adlam, Gana)',\n 'ff_Adlm_GM' => 'fulah (adlam, Gambija)',\n 'ff_Adlm_GN' => 'fu", "middle": "rva SAD)',\n 'en_VC' => 'engleski (Sveti Vinsent i Grenadini)',\n 'en_VG' => 'engleski (Britanska Djevičanska Ostrva)',\n 'en_VI' => 'engleski (Američka Djevičanska Ostrva)',\n 'ff' => 'fulah',\n 'ff", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sr_Latn_ME.php", "language": "php", "file_size": 2758, "cut_index": 563, "middle_length": 229}} {"prefix": "\n 'bn' => 'bangla',\n 'bn_BD' => 'bangla (Bangladeš)',\n 'bn_IN' => 'bangla (Indija)',\n 'cs_CZ' => 'češki (Češka Republika)',\n 'en_CZ' => 'engleski (Češka Republika)',\n 'en_HK' => 'engleski (SAR Hongkong)',\n 'en_KN' => 'engleski (Sveti Kits i Nevis)',\n 'en_MO' => 'engleski (SAR Makao)',\n 'en_UM' => 'engleski (Manja udaljena ostrva SAD)',\n 'en_VC' => 'engleski (Sveti Vinsent i Grenadini)',\n 'ff' => 'fulah',\n 'ff_Adlm' => 'fulah", "suffix": "_GN' => 'fulah (adlam, Gvineja)',\n 'ff_Adlm_GW' => 'fulah (adlam, Gvineja-Bisao)',\n 'ff_Adlm_LR' => 'fulah (adlam, Liberija)',\n 'ff_Adlm_MR' => 'fulah (adlam, Mauritanija)',\n 'ff_Adlm_NE' => 'fulah (adlam, Niger)',\n 'ff_A", "middle": " (adlam)',\n 'ff_Adlm_BF' => 'fulah (adlam, Burkina Faso)',\n 'ff_Adlm_CM' => 'fulah (adlam, Kamerun)',\n 'ff_Adlm_GH' => 'fulah (adlam, Gana)',\n 'ff_Adlm_GM' => 'fulah (adlam, Gambija)',\n 'ff_Adlm", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sr_Latn_XK.php", "language": "php", "file_size": 3086, "cut_index": 614, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'de' => 'Jérman',\n 'de_DE' => 'Jérman (Jérman)',\n 'de_IT' => 'Jérman (Italia)',\n 'en' => 'Inggris',\n 'en_DE' => 'Inggris (Jérman)',\n 'en_FR' => 'Inggris (Prancis)',\n 'en_GB' => 'Inggris (Britania Raya)',\n 'en_ID' => 'Inggris (Indonesia)',\n 'en_IN' => 'Inggris (India)',\n 'en_IT' => 'Inggris (Italia)',\n 'en_JP' => 'Inggris (Jepang)',\n 'en_US' => 'Inggris (Amérika Sarikat)',\n 'es' => 'Spanyol',\n ", "suffix": " 'Jepang',\n 'ja_JP' => 'Jepang (Jepang)',\n 'pt' => 'Portugis',\n 'pt_BR' => 'Portugis (Brasil)',\n 'ru' => 'Rusia',\n 'ru_RU' => 'Rusia (Rusia)',\n 'su' => 'Basa Sunda',\n 'su_ID' => 'Basa Sunda (Indonesia)',\n ", "middle": " 'es_BR' => 'Spanyol (Brasil)',\n 'es_US' => 'Spanyol (Amérika Sarikat)',\n 'fr' => 'Prancis',\n 'fr_FR' => 'Prancis (Prancis)',\n 'it' => 'Italia',\n 'it_IT' => 'Italia (Italia)',\n 'ja' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/su.php", "language": "php", "file_size": 1343, "cut_index": 524, "middle_length": 229}} {"prefix": " 'ar_KW' => 'arabiska (Kuwait)',\n 'ar_LB' => 'arabiska (Libanon)',\n 'ar_LY' => 'arabiska (Libyen)',\n 'ar_MA' => 'arabiska (Marocko)',\n 'ar_MR' => 'arabiska (Mauretanien)',\n 'ar_OM' => 'arabiska (Oman)',\n 'ar_PS' => 'arabiska (Palestinska territorierna)',\n 'ar_QA' => 'arabiska (Qatar)',\n 'ar_SA' => 'arabiska (Saudiarabien)',\n 'ar_SD' => 'arabiska (Sudan)',\n 'ar_SO' => 'arabiska (Somalia)',\n 'ar_SS' => 'arabiska (Sydsudan)',\n ", "suffix": ")',\n 'az' => 'azerbajdzjanska',\n 'az_AZ' => 'azerbajdzjanska (Azerbajdzjan)',\n 'az_Cyrl' => 'azerbajdzjanska (kyrilliska)',\n 'az_Cyrl_AZ' => 'azerbajdzjanska (kyrilliska, Azerbajdzjan)',\n 'az_Latn' => 'azerbajdzjanska (la", "middle": " 'ar_SY' => 'arabiska (Syrien)',\n 'ar_TD' => 'arabiska (Tchad)',\n 'ar_TN' => 'arabiska (Tunisien)',\n 'ar_YE' => 'arabiska (Jemen)',\n 'as' => 'assamesiska',\n 'as_IN' => 'assamesiska (Indien", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sv.php", "language": "php", "file_size": 28389, "cut_index": 1331, "middle_length": 229}} {"prefix": "_KW' => 'Kiarabu (Kuwait)',\n 'ar_LB' => 'Kiarabu (Lebanon)',\n 'ar_LY' => 'Kiarabu (Libya)',\n 'ar_MA' => 'Kiarabu (Morocco)',\n 'ar_MR' => 'Kiarabu (Moritania)',\n 'ar_OM' => 'Kiarabu (Oman)',\n 'ar_PS' => 'Kiarabu (Maeneo ya Palestina)',\n 'ar_QA' => 'Kiarabu (Qatar)',\n 'ar_SA' => 'Kiarabu (Saudia)',\n 'ar_SD' => 'Kiarabu (Sudan)',\n 'ar_SO' => 'Kiarabu (Somalia)',\n 'ar_SS' => 'Kiarabu (Sudan Kusini)',\n 'ar_SY' => 'Kiarabu (Syria)", "suffix": "AZ' => 'Kiazerbaijani (Azerbaijani)',\n 'az_Cyrl' => 'Kiazerbaijani (Kisiriliki)',\n 'az_Cyrl_AZ' => 'Kiazerbaijani (Kisiriliki, Azerbaijani)',\n 'az_Latn' => 'Kiazerbaijani (Kilatini)',\n 'az_Latn_AZ' => 'Kiazerbaijani (Kilatini, A", "middle": "',\n 'ar_TD' => 'Kiarabu (Chad)',\n 'ar_TN' => 'Kiarabu (Tunisia)',\n 'ar_YE' => 'Kiarabu (Yemeni)',\n 'as' => 'Kiassam',\n 'as_IN' => 'Kiassam (India)',\n 'az' => 'Kiazerbaijani',\n 'az_", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sw.php", "language": "php", "file_size": 28880, "cut_index": 1331, "middle_length": 229}} {"prefix": "iakan',\n 'ak_GH' => 'Kiakan (Ghana)',\n 'ar_JO' => 'Kiarabu (Yordani)',\n 'ar_LB' => 'Kiarabu (Lebanoni)',\n 'ar_MA' => 'Kiarabu (Moroko)',\n 'ar_OM' => 'Kiarabu (Omani)',\n 'ar_QA' => 'Kiarabu (Katari)',\n 'ar_SD' => 'Kiarabu (Sudani)',\n 'ar_TD' => 'Kiarabu (Chadi)',\n 'az' => 'Kiazabajani',\n 'az_AZ' => 'Kiazabajani (Azabajani)',\n 'az_Cyrl' => 'Kiazabajani (Kisiriliki)',\n 'az_Cyrl_AZ' => 'Kiazabajani (Kisiriliki, Azabajani)',\n ", "suffix": "siwa cha Christmas)',\n 'en_LV' => 'Kiingereza (Lativia)',\n 'en_NG' => 'Kiingereza (Nijeria)',\n 'en_NO' => 'Kiingereza (Norwe)',\n 'en_PR' => 'Kiingereza (Puetoriko)',\n 'en_SD' => 'Kiingereza (Sudani)',\n 'es_PR' => '", "middle": " 'az_Latn' => 'Kiazabajani (Kilatini)',\n 'az_Latn_AZ' => 'Kiazabajani (Kilatini, Azabajani)',\n 'de_LI' => 'Kijerumani (Lishenteni)',\n 'de_LU' => 'Kijerumani (Lasembagi)',\n 'en_CX' => 'Kiingereza (Ki", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sw_CD.php", "language": "php", "file_size": 2800, "cut_index": 563, "middle_length": 229}} {"prefix": " => 'Kiazabaijani',\n 'az_AZ' => 'Kiazabaijani (Azabajani)',\n 'az_Cyrl' => 'Kiazabaijani (Kikrili)',\n 'az_Cyrl_AZ' => 'Kiazabaijani (Kikrili, Azabajani)',\n 'az_Latn' => 'Kiazabaijani (Kilatini)',\n 'az_Latn_AZ' => 'Kiazabaijani (Kilatini, Azabajani)',\n 'be_BY' => 'Kibelarusi (Belarusi)',\n 'bn' => 'Kibangla',\n 'bn_BD' => 'Kibangla (Bangladeshi)',\n 'bn_IN' => 'Kibangla (India)',\n 'bs_Cyrl' => 'Kibosnia (Kikrili)',\n 'bs_Cyrl_BA' => 'Kib", "suffix": ",\n 'de_LU' => 'Kijerumani (Lasembagi)',\n 'dz_BT' => 'Kizongkha (Bhutani)',\n 'en_001' => 'Kiingereza (dunia)',\n 'en_AG' => 'Kiingereza (Antigua na Babuda)',\n 'en_AI' => 'Kiingereza (Anguila)',\n 'en_BB' => 'Kiingerez", "middle": "osnia (Kikrili, Bosnia na Hezegovina)',\n 'ce' => 'Kichechen',\n 'ce_RU' => 'Kichechen (Urusi)',\n 'cy' => 'Kiwels',\n 'cy_GB' => 'Kiwels (Ufalme wa Muungano)',\n 'de_LI' => 'Kijerumani (Lishenteni)'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sw_KE.php", "language": "php", "file_size": 9361, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ar_KW' => 'அரபிக் (குவைத்)',\n 'ar_LB' => 'அரபிக் (லெபனான்)',\n 'ar_LY' => 'அரபிக் (லிபியா)',\n 'ar_MA' => 'அரபிக் (மொராக்கோ)',\n 'ar_MR' => 'அரபிக் (மௌரிடானியா)',\n 'ar_OM' => 'அரபிக் (ஓமன்)',\n 'ar_PS' => 'அரபிக் (பாலஸ்தீனிய பிரதேசங்கள்)',\n 'ar_QA' => 'அரபிக் (கத்தார்)',\n 'ar_SA' => 'அரபிக் (சவுதி அரேபியா)',\n 'ar_SD' => 'அரபிக் (சூடான்)',\n 'ar_SO' => 'அரபிக் (சோமாலியா)',\n 'ar_SS' => 'அரபிக் (தெற்கு சூடான்)',\n 'ar_SY' => 'அர", "suffix": " 'az_AZ' => 'அசர்பைஜானி (அசர்பைஜான்)',\n 'az_Cyrl' => 'அசர்பைஜானி (சிரிலிக்)',\n 'az_Cyrl_AZ' => 'அசர்பைஜானி (சிரிலிக், அசர்பைஜான்)',\n 'az_Latn' => 'அசர்பைஜானி (லத்தின்)',\n 'az_Latn_AZ' => 'அசர்பைஜானி (லத்தின், அசர்பைஜான்)'", "middle": "பிக் (சிரியா)',\n 'ar_TD' => 'அரபிக் (சாட்)',\n 'ar_TN' => 'அரபிக் (டுனிசியா)',\n 'ar_YE' => 'அரபிக் (ஏமன்)',\n 'as' => 'அஸ்ஸாமீஸ்',\n 'as_IN' => 'அஸ்ஸாமீஸ் (இந்தியா)',\n 'az' => 'அசர்பைஜானி',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ta.php", "language": "php", "file_size": 50752, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_KW' => 'అరబిక్ (కువైట్)',\n 'ar_LB' => 'అరబిక్ (లెబనాన్)',\n 'ar_LY' => 'అరబిక్ (లిబియా)',\n 'ar_MA' => 'అరబిక్ (మొరాకో)',\n 'ar_MR' => 'అరబిక్ (మారిటేనియా)',\n 'ar_OM' => 'అరబిక్ (ఓమన్)',\n 'ar_PS' => 'అరబిక్ (పాలస్తీనియన్ ప్రాంతాలు)',\n 'ar_QA' => 'అరబిక్ (ఖతార్)',\n 'ar_SA' => 'అరబిక్ (సౌదీ అరేబియా)',\n 'ar_SD' => 'అరబిక్ (సూడాన్)',\n 'ar_SO' => 'అరబిక్ (సోమాలియా)',\n 'ar_SS' => 'అరబిక్ (దక్షిణ సూడాన్)',\n 'ar_SY' => 'అరబిక్ (స", "suffix": " 'az_AZ' => 'అజర్బైజాని (అజర్బైజాన్)',\n 'az_Cyrl' => 'అజర్బైజాని (సిరిలిక్)',\n 'az_Cyrl_AZ' => 'అజర్బైజాని (సిరిలిక్, అజర్బైజాన్)',\n 'az_Latn' => 'అజర్బైజాని (లాటిన్)',\n 'az_Latn_AZ' => 'అజర్బైజాని (లాటిన్, అజర్బైజాన్)',\n ", "middle": "ిరియా)',\n 'ar_TD' => 'అరబిక్ (చాద్)',\n 'ar_TN' => 'అరబిక్ (ట్యునీషియా)',\n 'ar_YE' => 'అరబిక్ (యెమెన్)',\n 'as' => 'అస్సామీస్',\n 'as_IN' => 'అస్సామీస్ (భారతదేశం)',\n 'az' => 'అజర్బైజాని',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/te.php", "language": "php", "file_size": 49042, "cut_index": 1331, "middle_length": 229}} {"prefix": "',\n 'ar_MA' => 'арабӣ (Марокаш)',\n 'ar_MR' => 'арабӣ (Мавритания)',\n 'ar_OM' => 'арабӣ (Умон)',\n 'ar_PS' => 'арабӣ (Қаламравҳои Фаластинӣ)',\n 'ar_QA' => 'арабӣ (Қатар)',\n 'ar_SA' => 'арабӣ (Арабистони Саудӣ)',\n 'ar_SD' => 'арабӣ (Судон)',\n 'ar_SO' => 'арабӣ (Сомалӣ)',\n 'ar_SS' => 'арабӣ (Судони Ҷанубӣ)',\n 'ar_SY' => 'арабӣ (Сурия)',\n 'ar_TD' => 'арабӣ (Чад)',\n 'ar_TN' => 'арабӣ (Тунис)',\n 'ar_YE' => 'арабӣ (Яман)',\n ", "suffix": "риллӣ, Озарбойҷон)',\n 'az_Latn' => 'озарбойҷонӣ (Лотинӣ)',\n 'az_Latn_AZ' => 'озарбойҷонӣ (Лотинӣ, Озарбойҷон)',\n 'ba' => 'бошқирдӣ',\n 'ba_RU' => 'бошқирдӣ (Русия)',\n 'be' => 'белорусӣ',\n 'be_BY' => 'белорусӣ (Белор", "middle": " 'as' => 'ассомӣ',\n 'as_IN' => 'ассомӣ (Ҳиндустон)',\n 'az' => 'озарбойҷонӣ',\n 'az_AZ' => 'озарбойҷонӣ (Озарбойҷон)',\n 'az_Cyrl' => 'озарбойҷонӣ (Кириллӣ)',\n 'az_Cyrl_AZ' => 'озарбойҷонӣ (Ки", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/tg.php", "language": "php", "file_size": 32963, "cut_index": 1331, "middle_length": 229}} {"prefix": "ับ (คูเวต)',\n 'ar_LB' => 'อาหรับ (เลบานอน)',\n 'ar_LY' => 'อาหรับ (ลิเบีย)',\n 'ar_MA' => 'อาหรับ (โมร็อกโก)',\n 'ar_MR' => 'อาหรับ (มอริเตเนีย)',\n 'ar_OM' => 'อาหรับ (โอมาน)',\n 'ar_PS' => 'อาหรับ (ดินแดนปาเลสไตน์)',\n 'ar_QA' => 'อาหรับ (กาตาร์)',\n 'ar_SA' => 'อาหรับ (ซาอุดีอาระเบีย)',\n 'ar_SD' => 'อาหรับ (ซูดาน)',\n 'ar_SO' => 'อาหรับ (โซมาเลีย)',\n 'ar_SS' => 'อาหรับ (ซูดานใต้)',\n 'ar_SY' => 'อาหรับ (ซีเรีย)',\n 'ar_TD' =", "suffix": "ซอร์ไบจาน)',\n 'az_Cyrl' => 'อาเซอร์ไบจาน (ซีริลลิก)',\n 'az_Cyrl_AZ' => 'อาเซอร์ไบจาน (ซีริลลิก, อาเซอร์ไบจาน)',\n 'az_Latn' => 'อาเซอร์ไบจาน (ละติน)',\n 'az_Latn_AZ' => 'อาเซอร์ไบจาน (ละติน, อาเซอร์ไบจาน)',\n 'ba' => 'บัชคีร", "middle": "> 'อาหรับ (ชาด)',\n 'ar_TN' => 'อาหรับ (ตูนิเซีย)',\n 'ar_YE' => 'อาหรับ (เยเมน)',\n 'as' => 'อัสสัม',\n 'as_IN' => 'อัสสัม (อินเดีย)',\n 'az' => 'อาเซอร์ไบจาน',\n 'az_AZ' => 'อาเซอร์ไบจาน (อาเ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/th.php", "language": "php", "file_size": 47356, "cut_index": 1331, "middle_length": 229}} {"prefix": "ኛ (ሞሮኮ)',\n 'ar_MR' => 'ዓረብኛ (ማውሪታንያ)',\n 'ar_OM' => 'ዓረብኛ (ዖማን)',\n 'ar_PS' => 'ዓረብኛ (ግዝኣታት ፍልስጤም)',\n 'ar_QA' => 'ዓረብኛ (ቐጠር)',\n 'ar_SA' => 'ዓረብኛ (ስዑዲ ዓረብ)',\n 'ar_SD' => 'ዓረብኛ (ሱዳን)',\n 'ar_SO' => 'ዓረብኛ (ሶማልያ)',\n 'ar_SS' => 'ዓረብኛ (ደቡብ ሱዳን)',\n 'ar_SY' => 'ዓረብኛ (ሶርያ)',\n 'ar_TD' => 'ዓረብኛ (ቻድ)',\n 'ar_TN' => 'ዓረብኛ (ቱኒዝያ)',\n 'ar_YE' => 'ዓረብኛ (የመን)',\n 'as' => 'ኣሳሜዝኛ',\n 'as_IN' => 'ኣሳሜዝኛ (ህንዲ)',\n 'az' => 'ኣዘርባጃንኛ',\n", "suffix": "'ba' => 'ባሽኪር',\n 'ba_RU' => 'ባሽኪር (ሩስያ)',\n 'be' => 'ቤላሩስኛ',\n 'be_BY' => 'ቤላሩስኛ (ቤላሩስ)',\n 'bg' => 'ቡልጋርኛ',\n 'bg_BG' => 'ቡልጋርኛ (ቡልጋርያ)',\n 'bm' => 'ባምባራ',\n 'bm_ML' => 'ባምባራ (ማሊ)',\n 'bn' => 'በንጋሊ',\n ", "middle": " 'az_AZ' => 'ኣዘርባጃንኛ (ኣዘርባጃን)',\n 'az_Cyrl' => 'ኣዘርባጃንኛ (ቋንቋ ሲሪል)',\n 'az_Cyrl_AZ' => 'ኣዘርባጃንኛ (ቋንቋ ሲሪል፣ ኣዘርባጃን)',\n 'az_Latn' => 'ኣዘርባጃንኛ (ላቲን)',\n 'az_Latn_AZ' => 'ኣዘርባጃንኛ (ላቲን፣ ኣዘርባጃን)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ti.php", "language": "php", "file_size": 36488, "cut_index": 1331, "middle_length": 229}} {"prefix": "',\n 'ar_KM' => 'arap dili (Komor adalary)',\n 'ar_KW' => 'arap dili (Kuweýt)',\n 'ar_LB' => 'arap dili (Liwan)',\n 'ar_LY' => 'arap dili (Liwiýa)',\n 'ar_MA' => 'arap dili (Marokko)',\n 'ar_MR' => 'arap dili (Mawritaniýa)',\n 'ar_OM' => 'arap dili (Oman)',\n 'ar_PS' => 'arap dili (Palestina territoriýasy)',\n 'ar_QA' => 'arap dili (Katar)',\n 'ar_SA' => 'arap dili (Saud Arabystany)',\n 'ar_SD' => 'arap dili (Sudan)',\n 'ar_SO' => 'arap", "suffix": " 'as' => 'assam dili',\n 'as_IN' => 'assam dili (Hindistan)',\n 'az' => 'azerbaýjan dili',\n 'az_AZ' => 'azerbaýjan dili (Azerbaýjan)',\n 'az_Cyrl' => 'azerbaýjan dili (Kiril elipbiýi)',\n 'az_Cyrl_AZ' => 'azerbaýjan dili (K", "middle": " dili (Somali)',\n 'ar_SS' => 'arap dili (Günorta Sudan)',\n 'ar_SY' => 'arap dili (Siriýa)',\n 'ar_TD' => 'arap dili (Çad)',\n 'ar_TN' => 'arap dili (Tunis)',\n 'ar_YE' => 'arap dili (Ýemen)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/tk.php", "language": "php", "file_size": 31356, "cut_index": 1331, "middle_length": 229}} {"prefix": "' => 'lea fakaʻalepea (Sāti)',\n 'ar_TN' => 'lea fakaʻalepea (Tunīsia)',\n 'ar_YE' => 'lea fakaʻalepea (Iemeni)',\n 'as' => 'lea fakaʻasamia',\n 'as_IN' => 'lea fakaʻasamia (ʻInitia)',\n 'az' => 'lea fakaʻasepaisani',\n 'az_AZ' => 'lea fakaʻasepaisani (ʻAsapaisani)',\n 'az_Cyrl' => 'lea fakaʻasepaisani (tohinima fakalūsia)',\n 'az_Cyrl_AZ' => 'lea fakaʻasepaisani (tohinima fakalūsia, ʻAsapaisani)',\n 'az_Latn' => 'lea fakaʻasepaisani (tohinima fakalatina", "suffix": "fakapelalusi (Pelalusi)',\n 'bg' => 'lea fakapulukalia',\n 'bg_BG' => 'lea fakapulukalia (Pulukalia)',\n 'bm' => 'lea fakapamipala',\n 'bm_ML' => 'lea fakapamipala (Māli)',\n 'bn' => 'lea fakapāngilā',\n 'bn_BD' => 'lea ", "middle": ")',\n 'az_Latn_AZ' => 'lea fakaʻasepaisani (tohinima fakalatina, ʻAsapaisani)',\n 'ba' => 'lea fakapasikili',\n 'ba_RU' => 'lea fakapasikili (Lūsia)',\n 'be' => 'lea fakapelalusi',\n 'be_BY' => 'lea ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/to.php", "language": "php", "file_size": 35263, "cut_index": 2151, "middle_length": 229}} {"prefix": ")',\n 'ar_LB' => 'Arapça (Lübnan)',\n 'ar_LY' => 'Arapça (Libya)',\n 'ar_MA' => 'Arapça (Fas)',\n 'ar_MR' => 'Arapça (Moritanya)',\n 'ar_OM' => 'Arapça (Umman)',\n 'ar_PS' => 'Arapça (Filistin Bölgeleri)',\n 'ar_QA' => 'Arapça (Katar)',\n 'ar_SA' => 'Arapça (Suudi Arabistan)',\n 'ar_SD' => 'Arapça (Sudan)',\n 'ar_SO' => 'Arapça (Somali)',\n 'ar_SS' => 'Arapça (Güney Sudan)',\n 'ar_SY' => 'Arapça (Suriye)',\n 'ar_TD' => 'Arapça (Ça", "suffix": "n)',\n 'az_Cyrl' => 'Azerbaycan dili (Kiril)',\n 'az_Cyrl_AZ' => 'Azerbaycan dili (Kiril, Azerbaycan)',\n 'az_Latn' => 'Azerbaycan dili (Latin)',\n 'az_Latn_AZ' => 'Azerbaycan dili (Latin, Azerbaycan)',\n 'ba' => 'Başkırtça',\n", "middle": "d)',\n 'ar_TN' => 'Arapça (Tunus)',\n 'ar_YE' => 'Arapça (Yemen)',\n 'as' => 'Assamca',\n 'as_IN' => 'Assamca (Hindistan)',\n 'az' => 'Azerbaycan dili',\n 'az_AZ' => 'Azerbaycan dili (Azerbayca", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/tr.php", "language": "php", "file_size": 29091, "cut_index": 1331, "middle_length": 229}} {"prefix": "(Ливан)',\n 'ar_LY' => 'гарәпчә (Ливия)',\n 'ar_MA' => 'гарәпчә (Марокко)',\n 'ar_MR' => 'гарәпчә (Мавритания)',\n 'ar_OM' => 'гарәпчә (Оман)',\n 'ar_PS' => 'гарәпчә (Фәләстин территорияләре)',\n 'ar_QA' => 'гарәпчә (Катар)',\n 'ar_SA' => 'гарәпчә (Согуд Гарәбстаны)',\n 'ar_SD' => 'гарәпчә (Судан)',\n 'ar_SO' => 'гарәпчә (Сомали)',\n 'ar_SS' => 'гарәпчә (Көньяк Судан)',\n 'ar_SY' => 'гарәпчә (Сүрия)',\n 'ar_TD' => 'гарәпчә (Чад)',\n ", "suffix": "'әзәрбайҗан (кирилл)',\n 'az_Cyrl_AZ' => 'әзәрбайҗан (кирилл, Әзәрбайҗан)',\n 'az_Latn' => 'әзәрбайҗан (латин)',\n 'az_Latn_AZ' => 'әзәрбайҗан (латин, Әзәрбайҗан)',\n 'ba' => 'башкорт',\n 'ba_RU' => 'башкорт (Россия)',\n ", "middle": " 'ar_TN' => 'гарәпчә (Тунис)',\n 'ar_YE' => 'гарәпчә (Йәмән)',\n 'as' => 'ассам',\n 'as_IN' => 'ассам (Индия)',\n 'az' => 'әзәрбайҗан',\n 'az_AZ' => 'әзәрбайҗан (Әзәрбайҗан)',\n 'az_Cyrl' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/tt.php", "language": "php", "file_size": 30945, "cut_index": 1331, "middle_length": 229}} {"prefix": "(كومورو)',\n 'ar_KW' => 'ئەرەبچە (كۇۋەيت)',\n 'ar_LB' => 'ئەرەبچە (لىۋان)',\n 'ar_LY' => 'ئەرەبچە (لىۋىيە)',\n 'ar_MA' => 'ئەرەبچە (ماراكەش)',\n 'ar_MR' => 'ئەرەبچە (ماۋرىتانىيە)',\n 'ar_OM' => 'ئەرەبچە (ئومان)',\n 'ar_PS' => 'ئەرەبچە (پەلەستىن زېمىنى)',\n 'ar_QA' => 'ئەرەبچە (قاتار)',\n 'ar_SA' => 'ئەرەبچە (سەئۇدىي ئەرەبىستان)',\n 'ar_SD' => 'ئەرەبچە (سۇدان)',\n 'ar_SO' => 'ئەرەبچە (سومالى)',\n 'ar_SS' => 'ئەرەبچە (جەنۇبىي سۇدان)',\n ", "suffix": " => 'ئەزەربەيجانچە',\n 'az_AZ' => 'ئەزەربەيجانچە (ئەزەربەيجان)',\n 'az_Cyrl' => 'ئەزەربەيجانچە (كىرىل)',\n 'az_Cyrl_AZ' => 'ئەزەربەيجانچە (كىرىل، ئەزەربەيجان)',\n 'az_Latn' => 'ئەزەربەيجانچە (لاتىنچە)',\n 'az_Latn_AZ' => 'ئەزە", "middle": " 'ar_SY' => 'ئەرەبچە (سۇرىيە)',\n 'ar_TD' => 'ئەرەبچە (چاد)',\n 'ar_TN' => 'ئەرەبچە (تۇنىس)',\n 'ar_YE' => 'ئەرەبچە (يەمەن)',\n 'as' => 'ئاسامچە',\n 'as_IN' => 'ئاسامچە (ھىندىستان)',\n 'az'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ug.php", "language": "php", "file_size": 39511, "cut_index": 1331, "middle_length": 229}} {"prefix": "абська (Комори)',\n 'ar_KW' => 'арабська (Кувейт)',\n 'ar_LB' => 'арабська (Ліван)',\n 'ar_LY' => 'арабська (Лівія)',\n 'ar_MA' => 'арабська (Марокко)',\n 'ar_MR' => 'арабська (Мавританія)',\n 'ar_OM' => 'арабська (Оман)',\n 'ar_PS' => 'арабська (Палестинські території)',\n 'ar_QA' => 'арабська (Катар)',\n 'ar_SA' => 'арабська (Саудівська Аравія)',\n 'ar_SD' => 'арабська (Судан)',\n 'ar_SO' => 'арабська (Сомалі)',\n 'ar_SS' => 'арабська", "suffix": "ька (Індія)',\n 'az' => 'азербайджанська',\n 'az_AZ' => 'азербайджанська (Азербайджан)',\n 'az_Cyrl' => 'азербайджанська (кирилиця)',\n 'az_Cyrl_AZ' => 'азербайджанська (кирилиця, Азербайджан)',\n 'az_Latn' => 'азербайджанська", "middle": " (Південний Судан)',\n 'ar_SY' => 'арабська (Сирія)',\n 'ar_TD' => 'арабська (Чад)',\n 'ar_TN' => 'арабська (Туніс)',\n 'ar_YE' => 'арабська (Ємен)',\n 'as' => 'ассамська',\n 'as_IN' => 'ассамс", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/uk.php", "language": "php", "file_size": 40459, "cut_index": 1331, "middle_length": 229}} {"prefix": "> 'عربی (لیبیا)',\n 'ar_MA' => 'عربی (مراکش)',\n 'ar_MR' => 'عربی (موریطانیہ)',\n 'ar_OM' => 'عربی (عمان)',\n 'ar_PS' => 'عربی (فلسطینی خطے)',\n 'ar_QA' => 'عربی (قطر)',\n 'ar_SA' => 'عربی (سعودی عرب)',\n 'ar_SD' => 'عربی (سوڈان)',\n 'ar_SO' => 'عربی (صومالیہ)',\n 'ar_SS' => 'عربی (جنوبی سوڈان)',\n 'ar_SY' => 'عربی (شام)',\n 'ar_TD' => 'عربی (چاڈ)',\n 'ar_TN' => 'عربی (تونس)',\n 'ar_YE' => 'عربی (یمن)',\n 'as' => 'آسامی',\n ", "suffix": "atn' => 'آذربائیجانی (لاطینی)',\n 'az_Latn_AZ' => 'آذربائیجانی (لاطینی،آذربائیجان)',\n 'ba' => 'باشکیر',\n 'ba_RU' => 'باشکیر (روس)',\n 'be' => 'بیلاروسی',\n 'be_BY' => 'بیلاروسی (بیلاروس)',\n 'bg' => 'بلغاری',\n '", "middle": " 'as_IN' => 'آسامی (بھارت)',\n 'az' => 'آذربائیجانی',\n 'az_AZ' => 'آذربائیجانی (آذربائیجان)',\n 'az_Cyrl' => 'آذربائیجانی (سیریلک)',\n 'az_Cyrl_AZ' => 'آذربائیجانی (سیریلک،آذربائیجان)',\n 'az_L", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ur.php", "language": "php", "file_size": 34748, "cut_index": 1331, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'en_CC' => 'انگریزی (جزائر [کیلنگ] کوکوس)',\n 'en_CK' => 'انگریزی (جزائر کک)',\n 'en_FK' => 'انگریزی (جزائر فاکلینڈ)',\n 'en_MH' => 'انگریزی (جزائر مارشل)',\n 'en_MP' => 'انگریزی (جزائر شمالی ماریانا)',\n 'en_NF' => 'انگریزی (جزیرہ نارفوک)',\n 'en_PN' => 'انگریزی (جزائر پٹکیرن)',\n 'en_SB' => 'انگریزی (جزائر سلیمان)',\n 'en_TC' => 'انگریزی (جزائر کیکس و ترکیہ)',\n 'en_UM' => 'انگریزی (امریکی بیرونی جزائر)',\n 'en_VG' =>", "suffix": "وسنیا اور ہرزیگووینا)',\n 'hr_HR' => 'کروشین (کروشیا)',\n 'jv' => 'جاوانیز',\n 'jv_ID' => 'جاوانیز (انڈونیشیا)',\n 'ka' => 'جارجيائى',\n 'ka_GE' => 'جارجيائى (جارجیا)',\n 'kl' => 'کلالیسٹ',\n 'kl_GL' => 'کلالیسٹ (گ", "middle": " 'انگریزی (برطانوی جزائر ورجن)',\n 'en_VI' => 'انگریزی (امریکی جزائر ورجن)',\n 'fo_FO' => 'فیروئیز (جزائر فیرو)',\n 'fr_GF' => 'فرانسیسی (فرانسیسی گیانا)',\n 'hr' => 'کروشین',\n 'hr_BA' => 'کروشین (ب", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ur_IN.php", "language": "php", "file_size": 1873, "cut_index": 524, "middle_length": 229}} {"prefix": "ayt)',\n 'ar_LB' => 'arab (Livan)',\n 'ar_LY' => 'arab (Liviya)',\n 'ar_MA' => 'arab (Marokash)',\n 'ar_MR' => 'arab (Mavritaniya)',\n 'ar_OM' => 'arab (Ummon)',\n 'ar_PS' => 'arab (Falastin hududlari)',\n 'ar_QA' => 'arab (Qatar)',\n 'ar_SA' => 'arab (Saudiya Arabistoni)',\n 'ar_SD' => 'arab (Sudan)',\n 'ar_SO' => 'arab (Somali)',\n 'ar_SS' => 'arab (Janubiy Sudan)',\n 'ar_SY' => 'arab (Suriya)',\n 'ar_TD' => 'arab (Chad)',\n ", "suffix": "zarbayjon (kirill)',\n 'az_Cyrl_AZ' => 'ozarbayjon (kirill, Ozarbayjon)',\n 'az_Latn' => 'ozarbayjon (lotin)',\n 'az_Latn_AZ' => 'ozarbayjon (lotin, Ozarbayjon)',\n 'ba' => 'boshqird',\n 'ba_RU' => 'boshqird (Rossiya)',\n ", "middle": " 'ar_TN' => 'arab (Tunis)',\n 'ar_YE' => 'arab (Yaman)',\n 'as' => 'assam',\n 'as_IN' => 'assam (Hindiston)',\n 'az' => 'ozarbayjon',\n 'az_AZ' => 'ozarbayjon (Ozarbayjon)',\n 'az_Cyrl' => 'o", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/uz.php", "language": "php", "file_size": 27977, "cut_index": 1331, "middle_length": 229}} {"prefix": "<?php\n\nreturn [\n 'Names' => [\n 'fa' => 'دری',\n 'fa_AF' => 'دری (افغانستان)',\n 'fa_IR' => 'دری (Eron)',\n 'kk_Arab' => 'qozoqcha (عربی)',\n 'kk_Arab_CN' => 'qozoqcha (عربی, Xitoy)',\n 'ks_Arab' => 'kashmircha (عربی)',\n 'ks_Arab_IN' => 'kashmircha (عربی, Hindiston)',\n 'pa_Arab' => 'panjobcha (عربی)',\n 'pa_Arab_PK' => 'panjobcha (عربی, Pokiston)',\n 'ps' => 'پشتو',\n 'ps_AF' => 'پشتو (افغانستان)',\n 'ps_PK' => 'پشتو (Pokiston)',\n ", "suffix": "ی, افغانستان)',\n 'uz_Cyrl' => 'اوزبیک (kirill)',\n 'uz_Cyrl_UZ' => 'اوزبیک (kirill, Oʻzbekiston)',\n 'uz_Latn' => 'اوزبیک (lotin)',\n 'uz_Latn_UZ' => 'اوزبیک (lotin, Oʻzbekiston)',\n 'uz_UZ' => 'اوزبیک (Oʻzbekiston)',\n ],\n", "middle": " 'sd_Arab' => 'sindhi (عربی)',\n 'sd_Arab_PK' => 'sindhi (عربی, Pokiston)',\n 'uz' => 'اوزبیک',\n 'uz_AF' => 'اوزبیک (افغانستان)',\n 'uz_Arab' => 'اوزبیک (عربی)',\n 'uz_Arab_AF' => 'اوزبیک (عرب", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/uz_Arab.php", "language": "php", "file_size": 1154, "cut_index": 512, "middle_length": 229}} {"prefix": " 'ar_KW' => 'арабча (Қувайт)',\n 'ar_LB' => 'арабча (Ливан)',\n 'ar_LY' => 'арабча (Ливия)',\n 'ar_MA' => 'арабча (Марокаш)',\n 'ar_MR' => 'арабча (Мавритания)',\n 'ar_OM' => 'арабча (Уммон)',\n 'ar_PS' => 'арабча (Фаластин ҳудуди)',\n 'ar_QA' => 'арабча (Қатар)',\n 'ar_SA' => 'арабча (Саудия Арабистони)',\n 'ar_SD' => 'арабча (Судан)',\n 'ar_SO' => 'арабча (Сомали)',\n 'ar_SS' => 'арабча (Жанубий Судан)',\n 'ar_SY' => 'арабча (Сур", "suffix": "' => 'озарбайжонча (Озарбайжон)',\n 'az_Cyrl' => 'озарбайжонча (Кирил)',\n 'az_Cyrl_AZ' => 'озарбайжонча (Кирил, Озарбайжон)',\n 'az_Latn' => 'озарбайжонча (Лотин)',\n 'az_Latn_AZ' => 'озарбайжонча (Лотин, Озарбайжон)',\n 'ba'", "middle": "ия)',\n 'ar_TD' => 'арабча (Чад)',\n 'ar_TN' => 'арабча (Тунис)',\n 'ar_YE' => 'арабча (Яман)',\n 'as' => 'ассомча',\n 'as_IN' => 'ассомча (Ҳиндистон)',\n 'az' => 'озарбайжонча',\n 'az_AZ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/uz_Cyrl.php", "language": "php", "file_size": 37522, "cut_index": 1331, "middle_length": 229}} {"prefix": "ng Ả Rập (Iraq)',\n 'ar_JO' => 'Tiếng Ả Rập (Jordan)',\n 'ar_KM' => 'Tiếng Ả Rập (Comoros)',\n 'ar_KW' => 'Tiếng Ả Rập (Kuwait)',\n 'ar_LB' => 'Tiếng Ả Rập (Li-băng)',\n 'ar_LY' => 'Tiếng Ả Rập (Libya)',\n 'ar_MA' => 'Tiếng Ả Rập (Ma-rốc)',\n 'ar_MR' => 'Tiếng Ả Rập (Mauritania)',\n 'ar_OM' => 'Tiếng Ả Rập (Oman)',\n 'ar_PS' => 'Tiếng Ả Rập (Lãnh thổ Palestine)',\n 'ar_QA' => 'Tiếng Ả Rập (Qatar)',\n 'ar_SA' => 'Tiếng Ả Rập (Ả Rập Xê-út)',\n ", "suffix": "=> 'Tiếng Ả Rập (Tunisia)',\n 'ar_YE' => 'Tiếng Ả Rập (Yemen)',\n 'as' => 'Tiếng Assam',\n 'as_IN' => 'Tiếng Assam (Ấn Độ)',\n 'az' => 'Tiếng Azerbaijan',\n 'az_AZ' => 'Tiếng Azerbaijan (Azerbaijan)',\n 'az_Cyrl' => 'Tiế", "middle": " 'ar_SD' => 'Tiếng Ả Rập (Sudan)',\n 'ar_SO' => 'Tiếng Ả Rập (Somalia)',\n 'ar_SS' => 'Tiếng Ả Rập (Nam Sudan)',\n 'ar_SY' => 'Tiếng Ả Rập (Syria)',\n 'ar_TD' => 'Tiếng Ả Rập (Chad)',\n 'ar_TN' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/vi.php", "language": "php", "file_size": 33705, "cut_index": 1331, "middle_length": 229}} {"prefix": "Libi)',\n 'ar_MA' => 'Arabic (Marog)',\n 'ar_MR' => 'Arabic (Mooritani)',\n 'ar_OM' => 'Arabic (Omaan)',\n 'ar_PS' => 'Arabic (réew yu Palestine)',\n 'ar_QA' => 'Arabic (Kataar)',\n 'ar_SA' => 'Arabic (Arabi Sawudi)',\n 'ar_SD' => 'Arabic (Sudaŋ)',\n 'ar_SO' => 'Arabic (Somali)',\n 'ar_SS' => 'Arabic (Sudaŋ di Sid)',\n 'ar_SY' => 'Arabic (Siri)',\n 'ar_TD' => 'Arabic (Càdd)',\n 'ar_TN' => 'Arabic (Tinisi)',\n 'ar_YE' => 'Arabic (Y", "suffix": "Sirilik, Aserbayjaŋ)',\n 'az_Latn' => 'Aserbayjane (Latin)',\n 'az_Latn_AZ' => 'Aserbayjane (Latin, Aserbayjaŋ)',\n 'ba' => 'Baskir',\n 'ba_RU' => 'Baskir (Risi)',\n 'be' => 'Belaris',\n 'be_BY' => 'Belaris (Belaris)',\n ", "middle": "aman)',\n 'as' => 'Asame',\n 'as_IN' => 'Asame (End)',\n 'az' => 'Aserbayjane',\n 'az_AZ' => 'Aserbayjane (Aserbayjaŋ)',\n 'az_Cyrl' => 'Aserbayjane (Sirilik)',\n 'az_Cyrl_AZ' => 'Aserbayjane (", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/wo.php", "language": "php", "file_size": 23051, "cut_index": 1331, "middle_length": 229}} {"prefix": "_KW' => 'Isi-Arabhu (EKuwait)',\n 'ar_LB' => 'Isi-Arabhu (ELebanon)',\n 'ar_LY' => 'Isi-Arabhu (ELibya)',\n 'ar_MA' => 'Isi-Arabhu (EMorocco)',\n 'ar_MR' => 'Isi-Arabhu (EMauritania)',\n 'ar_OM' => 'Isi-Arabhu (E-Oman)',\n 'ar_PS' => 'Isi-Arabhu (IPalestinian Territories)',\n 'ar_QA' => 'Isi-Arabhu (EQatar)',\n 'ar_SA' => 'Isi-Arabhu (ESaudi Arabia)',\n 'ar_SD' => 'Isi-Arabhu (ESudan)',\n 'ar_SO' => 'Isi-Arabhu (ESomalia)',\n 'ar_SS' => 'Isi-", "suffix": " 'as_IN' => 'IsiAssamese (E-Indiya)',\n 'az' => 'Isi-Azerbaijani',\n 'az_AZ' => 'Isi-Azerbaijani (E-Azerbaijan)',\n 'az_Cyrl' => 'Isi-Azerbaijani (IsiCyrillic)',\n 'az_Cyrl_AZ' => 'Isi-Azerbaijani (IsiCyrillic, E-Azerbaijan)',\n ", "middle": "Arabhu (ESouth Sudan)',\n 'ar_SY' => 'Isi-Arabhu (ESiriya)',\n 'ar_TD' => 'Isi-Arabhu (EChad)',\n 'ar_TN' => 'Isi-Arabhu (ETunisia)',\n 'ar_YE' => 'Isi-Arabhu (EYemen)',\n 'as' => 'IsiAssamese',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/xh.php", "language": "php", "file_size": 23794, "cut_index": 1331, "middle_length": 229}} {"prefix": "(דרום־סודאַן)',\n 'ar_SY' => 'אַראַביש (סיריע)',\n 'ar_TD' => 'אַראַביש (טשאַד)',\n 'ar_TN' => 'אַראַביש (טוניסיע)',\n 'ar_YE' => 'אַראַביש (תימן)',\n 'as' => 'אַסאַמיש',\n 'as_IN' => 'אַסאַמיש (אינדיע)',\n 'az' => 'אַזערביידזשאַניש',\n 'az_Cyrl' => 'אַזערביידזשאַניש (ציריליש)',\n 'az_Latn' => 'אַזערביידזשאַניש (גַלחיש)',\n 'be' => 'בעלאַרוסיש',\n 'be_BY' => 'בעלאַרוסיש (בעלאַרוס)',\n 'bg' => 'בולגאַריש',\n 'bg_BG' => 'בולגאַריש (", "suffix": "',\n 'br' => 'ברעטאניש',\n 'br_FR' => 'ברעטאניש (פֿראַנקרייך)',\n 'bs' => 'באסניש',\n 'bs_BA' => 'באסניש (באסניע הערצעגאווינע)',\n 'bs_Cyrl' => 'באסניש (ציריליש)',\n 'bs_Cyrl_BA' => 'באסניש (ציריליש, באסניע הערצעגאווינע)", "middle": "בולגאַריע)',\n 'bn' => 'בענגאַליש',\n 'bn_BD' => 'בענגאַליש (באַנגלאַדעש)',\n 'bn_IN' => 'בענגאַליש (אינדיע)',\n 'bo' => 'טיבעטיש',\n 'bo_CN' => 'טיבעטיש (כינע)',\n 'bo_IN' => 'טיבעטיש (אינדיע)", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/yi.php", "language": "php", "file_size": 25680, "cut_index": 1331, "middle_length": 229}} {"prefix": "r_JO' => 'Èdè Lárúbáwá (Jọdani)',\n 'ar_KM' => 'Èdè Lárúbáwá (Kòmòrósì)',\n 'ar_KW' => 'Èdè Lárúbáwá (Kuweti)',\n 'ar_LB' => 'Èdè Lárúbáwá (Lebanoni)',\n 'ar_LY' => 'Èdè Lárúbáwá (Libiya)',\n 'ar_MA' => 'Èdè Lárúbáwá (Moroko)',\n 'ar_MR' => 'Èdè Lárúbáwá (Maritania)',\n 'ar_OM' => 'Èdè Lárúbáwá (Ọọma)',\n 'ar_PS' => 'Èdè Lárúbáwá (Agbègbè ara Palẹsítínì)',\n 'ar_QA' => 'Èdè Lárúbáwá (Kota)',\n 'ar_SA' => 'Èdè Lárúbáwá (Saudi Arabia)',\n 'ar_S", "suffix": " 'Èdè Lárúbáwá (Tuniṣia)',\n 'ar_YE' => 'Èdè Lárúbáwá (Yemeni)',\n 'as' => 'Èdè Assam',\n 'as_IN' => 'Èdè Assam (Íńdíà)',\n 'az' => 'Èdè Asabaijani',\n 'az_AZ' => 'Èdè Asabaijani (Asẹ́bájánì)',\n 'az_Cyrl' => 'Èdè Asabai", "middle": "D' => 'Èdè Lárúbáwá (Sudani)',\n 'ar_SO' => 'Èdè Lárúbáwá (Sòmálíà)',\n 'ar_SS' => 'Èdè Lárúbáwá (Gúúsù Sudan)',\n 'ar_SY' => 'Èdè Lárúbáwá (Siria)',\n 'ar_TD' => 'Èdè Lárúbáwá (Ṣààdì)',\n 'ar_TN' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/yo.php", "language": "php", "file_size": 35583, "cut_index": 1331, "middle_length": 229}} {"prefix": "agiella (Libanon)',\n 'ar_LY' => 'arábagiella (Libya)',\n 'ar_MA' => 'arábagiella (Marokko)',\n 'ar_MR' => 'arábagiella (Mauretánia)',\n 'ar_OM' => 'arábagiella (Oman)',\n 'ar_PS' => 'arábagiella (Palestina)',\n 'ar_QA' => 'arábagiella (Qatar)',\n 'ar_SA' => 'arábagiella (Saudi-Arábia)',\n 'ar_SD' => 'arábagiella (Davvisudan)',\n 'ar_SO' => 'arábagiella (Somália)',\n 'ar_SS' => 'arábagiella (Máttasudan)',\n 'ar_SY' => 'arábagiella (Syria)',\n ", "suffix": " 'bg' => 'bulgáriagiella',\n 'bg_BG' => 'bulgáriagiella (Bulgária)',\n 'bn' => 'bengalgiella',\n 'bn_BD' => 'bengalgiella (Bangladesh)',\n 'bn_IN' => 'bengalgiella (India)',\n 'bo' => 'tibetagiella',\n 'bo_CN' => 'tibet", "middle": " 'ar_TD' => 'arábagiella (Tčad)',\n 'ar_TN' => 'arábagiella (Tunisia)',\n 'ar_YE' => 'arábagiella (Jemen)',\n 'be' => 'vilges-ruoššagiella',\n 'be_BY' => 'vilges-ruoššagiella (Vilges-Ruošša)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/se.php", "language": "php", "file_size": 22274, "cut_index": 1331, "middle_length": 229}} {"prefix": "> 'arábagiella (Máilbmi)',\n 'ar_SD' => 'arábagiella (Sudan)',\n 'ar_TD' => 'arábagiella (Chad)',\n 'be' => 'vilgesruoššagiella',\n 'be_BY' => 'vilgesruoššagiella (Vilges-Ruošša)',\n 'bn' => 'bengalagiella',\n 'bn_BD' => 'bengalagiella (Bangladesh)',\n 'bn_IN' => 'bengalagiella (India)',\n 'bs_BA' => 'bosniagiella (Bosnia ja Hercegovina)',\n 'bs_Cyrl_BA' => 'bosniagiella (kyrillalaš, Bosnia ja Hercegovina)',\n 'bs_Latn_BA' => 'bosniagiella (láhtena", "suffix": " 'hr_BA' => 'kroátiagiella (Bosnia ja Hercegovina)',\n 'hy' => 'armenagiella',\n 'hy_AM' => 'armenagiella (Armenia)',\n 'kk' => 'kazakhgiella',\n 'kk_Arab' => 'kazakhgiella (arábalaš)',\n 'kk_Arab_CN' => 'kazakhgiella (arába", "middle": "š, Bosnia ja Hercegovina)',\n 'en_001' => 'eaŋgalsgiella (Máilbmi)',\n 'en_SD' => 'eaŋgalsgiella (Sudan)',\n 'es_419' => 'spánskkagiella (Latiinnalaš Amerihká)',\n 'fr_TD' => 'fránskkagiella (Chad)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/se_FI.php", "language": "php", "file_size": 2926, "cut_index": 563, "middle_length": 229}} {"prefix": "ar_KW' => 'අරාබි (කුවේටය)',\n 'ar_LB' => 'අරාබි (ලෙබනනය)',\n 'ar_LY' => 'අරාබි (ලිබියාව)',\n 'ar_MA' => 'අරාබි (මොරොක්කෝව)',\n 'ar_MR' => 'අරාබි (මොරිටේනියාව)',\n 'ar_OM' => 'අරාබි (ඕමානය)',\n 'ar_PS' => 'අරාබි (පලස්තීන රාජ්‍යය)',\n 'ar_QA' => 'අරාබි (කටාර්)',\n 'ar_SA' => 'අරාබි (සෞදි අරාබිය)',\n 'ar_SD' => 'අරාබි (සූඩානය)',\n 'ar_SO' => 'අරාබි (සෝමාලියාව)',\n 'ar_SS' => 'අරාබි (දකුණු සුඩානය)',\n 'ar_SY' => 'අරාබි (සිරියාව)',\n '", "suffix": "් (අසර්බයිජානය)',\n 'az_Cyrl' => 'අසර්බයිජාන් (සිරිලික්)',\n 'az_Cyrl_AZ' => 'අසර්බයිජාන් (සිරිලික්, අසර්බයිජානය)',\n 'az_Latn' => 'අසර්බයිජාන් (ලතින්)',\n 'az_Latn_AZ' => 'අසර්බයිජාන් (ලතින්, අසර්බයිජානය)',\n 'ba' => 'බාෂ්කිර", "middle": "ar_TD' => 'අරාබි (චැච්)',\n 'ar_TN' => 'අරාබි (ටියුනීසියාව)',\n 'ar_YE' => 'අරාබි (යේමනය)',\n 'as' => 'ඇසෑම්',\n 'as_IN' => 'ඇසෑම් (ඉන්දියාව)',\n 'az' => 'අසර්බයිජාන්',\n 'az_AZ' => 'අසර්බයිජාන", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/si.php", "language": "php", "file_size": 49545, "cut_index": 1331, "middle_length": 229}} {"prefix": "gypt)',\n 'ar_ER' => 'chiArabu (Eritrea)',\n 'ar_IL' => 'chiArabu (Izuraeri)',\n 'ar_IQ' => 'chiArabu (Iraq)',\n 'ar_JO' => 'chiArabu (Jordan)',\n 'ar_KM' => 'chiArabu (Komoro)',\n 'ar_KW' => 'chiArabu (Kuwait)',\n 'ar_LB' => 'chiArabu (Lebanon)',\n 'ar_LY' => 'chiArabu (Libya)',\n 'ar_MA' => 'chiArabu (Morocco)',\n 'ar_MR' => 'chiArabu (Mauritania)',\n 'ar_OM' => 'chiArabu (Oman)',\n 'ar_QA' => 'chiArabu (Qatar)',\n 'ar_SA' => 'c", "suffix": " 'ar_YE' => 'chiArabu (Yemen)',\n 'be' => 'chiBelarusi',\n 'be_BY' => 'chiBelarusi (Belarusi)',\n 'bg' => 'chiBulgarian',\n 'bg_BG' => 'chiBulgarian (Bulgaria)',\n 'bn' => 'chiBengali',\n 'bn_BD' => 'chiBengali (Bangla", "middle": "hiArabu (Saudi Arabia)',\n 'ar_SD' => 'chiArabu (Sudan)',\n 'ar_SO' => 'chiArabu (Somalia)',\n 'ar_SY' => 'chiArabu (Syria)',\n 'ar_TD' => 'chiArabu (Chadi)',\n 'ar_TN' => 'chiArabu (Tunisia)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sn.php", "language": "php", "file_size": 14288, "cut_index": 921, "middle_length": 229}} {"prefix": "isht (Komore)',\n 'ar_KW' => 'arabisht (Kuvajt)',\n 'ar_LB' => 'arabisht (Liban)',\n 'ar_LY' => 'arabisht (Libi)',\n 'ar_MA' => 'arabisht (Marok)',\n 'ar_MR' => 'arabisht (Mauritani)',\n 'ar_OM' => 'arabisht (Oman)',\n 'ar_PS' => 'arabisht (Territoret Palestineze)',\n 'ar_QA' => 'arabisht (Katar)',\n 'ar_SA' => 'arabisht (Arabi Saudite)',\n 'ar_SD' => 'arabisht (Sudan)',\n 'ar_SO' => 'arabisht (Somali)',\n 'ar_SS' => 'arabisht (Sudani i", "suffix": "i)',\n 'az' => 'azerbajxhanisht',\n 'az_AZ' => 'azerbajxhanisht (Azerbajxhan)',\n 'az_Cyrl' => 'azerbajxhanisht (cirilik)',\n 'az_Cyrl_AZ' => 'azerbajxhanisht (cirilik, Azerbajxhan)',\n 'az_Latn' => 'azerbajxhanisht (latin)',\n", "middle": " Jugut)',\n 'ar_SY' => 'arabisht (Siri)',\n 'ar_TD' => 'arabisht (Çad)',\n 'ar_TN' => 'arabisht (Tunizi)',\n 'ar_YE' => 'arabisht (Jemen)',\n 'as' => 'asamezisht',\n 'as_IN' => 'asamezisht (Ind", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sq.php", "language": "php", "file_size": 28969, "cut_index": 1331, "middle_length": 229}} {"prefix": ")',\n 'ar_KW' => 'арапски (Кувајт)',\n 'ar_LB' => 'арапски (Либан)',\n 'ar_LY' => 'арапски (Либија)',\n 'ar_MA' => 'арапски (Мароко)',\n 'ar_MR' => 'арапски (Мауританија)',\n 'ar_OM' => 'арапски (Оман)',\n 'ar_PS' => 'арапски (Палестинске територије)',\n 'ar_QA' => 'арапски (Катар)',\n 'ar_SA' => 'арапски (Саудијска Арабија)',\n 'ar_SD' => 'арапски (Судан)',\n 'ar_SO' => 'арапски (Сомалија)',\n 'ar_SS' => 'арапски (Јужни Судан)',\n ", "suffix": "зербејџански',\n 'az_AZ' => 'азербејџански (Азербејџан)',\n 'az_Cyrl' => 'азербејџански (ћирилица)',\n 'az_Cyrl_AZ' => 'азербејџански (ћирилица, Азербејџан)',\n 'az_Latn' => 'азербејџански (латиница)',\n 'az_Latn_AZ' => 'азерб", "middle": " 'ar_SY' => 'арапски (Сирија)',\n 'ar_TD' => 'арапски (Чад)',\n 'ar_TN' => 'арапски (Тунис)',\n 'ar_YE' => 'арапски (Јемен)',\n 'as' => 'асамски',\n 'as_IN' => 'асамски (Индија)',\n 'az' => 'а", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sr.php", "language": "php", "file_size": 39284, "cut_index": 1331, "middle_length": 229}} {"prefix": "ren)',\n 'ar_KW' => 'Arabisch (Koeweit)',\n 'ar_LB' => 'Arabisch (Libanon)',\n 'ar_LY' => 'Arabisch (Libië)',\n 'ar_MA' => 'Arabisch (Marokko)',\n 'ar_MR' => 'Arabisch (Mauritanië)',\n 'ar_OM' => 'Arabisch (Oman)',\n 'ar_PS' => 'Arabisch (Palestijnse gebieden)',\n 'ar_QA' => 'Arabisch (Qatar)',\n 'ar_SA' => 'Arabisch (Saoedi-Arabië)',\n 'ar_SD' => 'Arabisch (Soedan)',\n 'ar_SO' => 'Arabisch (Somalië)',\n 'ar_SS' => 'Arabisch (Zuid-Soeda", "suffix": ",\n 'az' => 'Azerbeidzjaans',\n 'az_AZ' => 'Azerbeidzjaans (Azerbeidzjan)',\n 'az_Cyrl' => 'Azerbeidzjaans (Cyrillisch)',\n 'az_Cyrl_AZ' => 'Azerbeidzjaans (Cyrillisch, Azerbeidzjan)',\n 'az_Latn' => 'Azerbeidzjaans (Latijns)'", "middle": "n)',\n 'ar_SY' => 'Arabisch (Syrië)',\n 'ar_TD' => 'Arabisch (Tsjaad)',\n 'ar_TN' => 'Arabisch (Tunesië)',\n 'ar_YE' => 'Arabisch (Jemen)',\n 'as' => 'Assamees',\n 'as_IN' => 'Assamees (India)'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/nl.php", "language": "php", "file_size": 27874, "cut_index": 1331, "middle_length": 229}} {"prefix": "ତ୍)',\n 'ar_LB' => 'ଆରବିକ୍ (ଲେବାନନ୍)',\n 'ar_LY' => 'ଆରବିକ୍ (ଲିବ୍ୟା)',\n 'ar_MA' => 'ଆରବିକ୍ (ମୋରୋକ୍କୋ)',\n 'ar_MR' => 'ଆରବିକ୍ (ମୌରିଟାନିଆ)',\n 'ar_OM' => 'ଆରବିକ୍ (ଓମାନ୍)',\n 'ar_PS' => 'ଆରବିକ୍ (ପାଲେଷ୍ଟେନିୟ ଭୂଭାଗ)',\n 'ar_QA' => 'ଆରବିକ୍ (କତାର୍)',\n 'ar_SA' => 'ଆରବିକ୍ (ସାଉଦି ଆରବିଆ)',\n 'ar_SD' => 'ଆରବିକ୍ (ସୁଦାନ)',\n 'ar_SO' => 'ଆରବିକ୍ (ସୋମାଲିଆ)',\n 'ar_SS' => 'ଆରବିକ୍ (ଦକ୍ଷିଣ ସୁଦାନ)',\n 'ar_SY' => 'ଆରବିକ୍ (ସିରିଆ)',\n 'ar_TD' => 'ଆରବିକ", "suffix": ",\n 'az_Cyrl' => 'ଆଜେରବାଇଜାନି (ସିରିଲିକ୍)',\n 'az_Cyrl_AZ' => 'ଆଜେରବାଇଜାନି (ସିରିଲିକ୍, ଆଜେରବାଇଜାନ୍)',\n 'az_Latn' => 'ଆଜେରବାଇଜାନି (ଲାଟିନ୍)',\n 'az_Latn_AZ' => 'ଆଜେରବାଇଜାନି (ଲାଟିନ୍, ଆଜେରବାଇଜାନ୍)',\n 'ba' => 'ବାଶକିର୍',\n 'ba", "middle": "୍ (ଚାଦ୍)',\n 'ar_TN' => 'ଆରବିକ୍ (ଟ୍ୟୁନିସିଆ)',\n 'ar_YE' => 'ଆରବିକ୍ (ୟେମେନ୍)',\n 'as' => 'ଆସାମୀୟ',\n 'as_IN' => 'ଆସାମୀୟ (ଭାରତ)',\n 'az' => 'ଆଜେରବାଇଜାନି',\n 'az_AZ' => 'ଆଜେରବାଇଜାନି (ଆଜେରବାଇଜାନ୍)'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/or.php", "language": "php", "file_size": 47828, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_LY' => 'ਅਰਬੀ (ਲੀਬੀਆ)',\n 'ar_MA' => 'ਅਰਬੀ (ਮੋਰੱਕੋ)',\n 'ar_MR' => 'ਅਰਬੀ (ਮੋਰਿਟਾਨੀਆ)',\n 'ar_OM' => 'ਅਰਬੀ (ਓਮਾਨ)',\n 'ar_PS' => 'ਅਰਬੀ (ਫਿਲਸਤੀਨੀ ਖਿੱਤੇ)',\n 'ar_QA' => 'ਅਰਬੀ (ਕਤਰ)',\n 'ar_SA' => 'ਅਰਬੀ (ਸਾਊਦੀ ਅਰਬ)',\n 'ar_SD' => 'ਅਰਬੀ (ਸੂਡਾਨ)',\n 'ar_SO' => 'ਅਰਬੀ (ਸੋਮਾਲੀਆ)',\n 'ar_SS' => 'ਅਰਬੀ (ਦੱਖਣ ਸੁਡਾਨ)',\n 'ar_SY' => 'ਅਰਬੀ (ਸੀਰੀਆ)',\n 'ar_TD' => 'ਅਰਬੀ (ਚਾਡ)',\n 'ar_TN' => 'ਅਰਬੀ (ਟਿਊਨੀਸ਼ੀਆ)',\n 'ar_YE' => 'ਅਰਬੀ (ਯਮਨ)',\n ", "suffix": "ਾਈਜਾਨ)',\n 'az_Latn' => 'ਅਜ਼ਰਬਾਈਜਾਨੀ (ਲਾਤੀਨੀ)',\n 'az_Latn_AZ' => 'ਅਜ਼ਰਬਾਈਜਾਨੀ (ਲਾਤੀਨੀ, ਅਜ਼ਰਬਾਈਜਾਨ)',\n 'ba' => 'ਬਸ਼ਕੀਰ',\n 'ba_RU' => 'ਬਸ਼ਕੀਰ (ਰੂਸ)',\n 'be' => 'ਬੇਲਾਰੂਸੀ',\n 'be_BY' => 'ਬੇਲਾਰੂਸੀ (ਬੇਲਾਰੂਸ)',\n 'bg'", "middle": " 'as' => 'ਅਸਾਮੀ',\n 'as_IN' => 'ਅਸਾਮੀ (ਭਾਰਤ)',\n 'az' => 'ਅਜ਼ਰਬਾਈਜਾਨੀ',\n 'az_AZ' => 'ਅਜ਼ਰਬਾਈਜਾਨੀ (ਅਜ਼ਰਬਾਈਜਾਨ)',\n 'az_Cyrl' => 'ਅਜ਼ਰਬਾਈਜਾਨੀ (ਸਿਰਿਲਿਕ)',\n 'az_Cyrl_AZ' => 'ਅਜ਼ਰਬਾਈਜਾਨੀ (ਸਿਰਿਲਿਕ, ਅਜ਼ਰਬ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/pa.php", "language": "php", "file_size": 44503, "cut_index": 1331, "middle_length": 229}} {"prefix": "ory)',\n 'ar_KW' => 'arabski (Kuwejt)',\n 'ar_LB' => 'arabski (Liban)',\n 'ar_LY' => 'arabski (Libia)',\n 'ar_MA' => 'arabski (Maroko)',\n 'ar_MR' => 'arabski (Mauretania)',\n 'ar_OM' => 'arabski (Oman)',\n 'ar_PS' => 'arabski (Terytoria Palestyńskie)',\n 'ar_QA' => 'arabski (Katar)',\n 'ar_SA' => 'arabski (Arabia Saudyjska)',\n 'ar_SD' => 'arabski (Sudan)',\n 'ar_SO' => 'arabski (Somalia)',\n 'ar_SS' => 'arabski (Sudan Południowy)',\n ", "suffix": "=> 'azerbejdżański',\n 'az_AZ' => 'azerbejdżański (Azerbejdżan)',\n 'az_Cyrl' => 'azerbejdżański (cyrylica)',\n 'az_Cyrl_AZ' => 'azerbejdżański (cyrylica, Azerbejdżan)',\n 'az_Latn' => 'azerbejdżański (łacińskie)',\n 'az_Latn_", "middle": " 'ar_SY' => 'arabski (Syria)',\n 'ar_TD' => 'arabski (Czad)',\n 'ar_TN' => 'arabski (Tunezja)',\n 'ar_YE' => 'arabski (Jemen)',\n 'as' => 'asamski',\n 'as_IN' => 'asamski (Indie)',\n 'az' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/pl.php", "language": "php", "file_size": 29061, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_LB' => 'árabe (Líbano)',\n 'ar_LY' => 'árabe (Líbia)',\n 'ar_MA' => 'árabe (Marrocos)',\n 'ar_MR' => 'árabe (Mauritânia)',\n 'ar_OM' => 'árabe (Omã)',\n 'ar_PS' => 'árabe (Territórios palestinos)',\n 'ar_QA' => 'árabe (Catar)',\n 'ar_SA' => 'árabe (Arábia Saudita)',\n 'ar_SD' => 'árabe (Sudão)',\n 'ar_SO' => 'árabe (Somália)',\n 'ar_SS' => 'árabe (Sudão do Sul)',\n 'ar_SY' => 'árabe (Síria)',\n 'ar_TD' => 'árabe (Chade)',\n ", "suffix": "> 'azerbaijano (cirílico)',\n 'az_Cyrl_AZ' => 'azerbaijano (cirílico, Azerbaijão)',\n 'az_Latn' => 'azerbaijano (latim)',\n 'az_Latn_AZ' => 'azerbaijano (latim, Azerbaijão)',\n 'ba' => 'bashkir',\n 'ba_RU' => 'bashkir (Rússia)", "middle": " 'ar_TN' => 'árabe (Tunísia)',\n 'ar_YE' => 'árabe (Iêmen)',\n 'as' => 'assamês',\n 'as_IN' => 'assamês (Índia)',\n 'az' => 'azerbaijano',\n 'az_AZ' => 'azerbaijano (Azerbaijão)',\n 'az_Cyrl' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/pt.php", "language": "php", "file_size": 28017, "cut_index": 1331, "middle_length": 229}} {"prefix": "=> 'árabe (Jibuti)',\n 'ar_EH' => 'árabe (Sara Ocidental)',\n 'ar_KW' => 'árabe (Koweit)',\n 'ar_PS' => 'árabe (Territórios palestinianos)',\n 'ar_YE' => 'árabe (Iémen)',\n 'bn' => 'bengalês',\n 'bn_BD' => 'bengalês (Bangladeche)',\n 'bn_IN' => 'bengalês (Índia)',\n 'cs' => 'checo',\n 'cs_CZ' => 'checo (Chéquia)',\n 'cv' => 'chuvash',\n 'cv_RU' => 'chuvash (Rússia)',\n 'da_GL' => 'dinamarquês (Gronelândia)',\n 'de_LI' => 'alemão (", "suffix": "ca)',\n 'en_EE' => 'inglês (Estónia)',\n 'en_FK' => 'inglês (Ilhas Falkland)',\n 'en_GG' => 'inglês (Guernesey)',\n 'en_GU' => 'inglês (Guame)',\n 'en_KE' => 'inglês (Quénia)',\n 'en_KI' => 'inglês (Quiribáti)',\n ", "middle": "Listenstaine)',\n 'en_BS' => 'inglês (Baamas)',\n 'en_CC' => 'inglês (Ilhas dos Cocos [Keeling])',\n 'en_CX' => 'inglês (Ilha do Natal)',\n 'en_CZ' => 'inglês (Chéquia)',\n 'en_DM' => 'inglês (Domíni", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/pt_PT.php", "language": "php", "file_size": 6601, "cut_index": 716, "middle_length": 229}} {"prefix": "abu (Misiri)',\n 'ar_ER' => 'Icarabu (Elitereya)',\n 'ar_IL' => 'Icarabu (Isiraheli)',\n 'ar_IQ' => 'Icarabu (Iraki)',\n 'ar_JO' => 'Icarabu (Yorudaniya)',\n 'ar_KM' => 'Icarabu (Izinga rya Komore)',\n 'ar_KW' => 'Icarabu (Koweti)',\n 'ar_LB' => 'Icarabu (Libani)',\n 'ar_LY' => 'Icarabu (Libiya)',\n 'ar_MA' => 'Icarabu (Maroke)',\n 'ar_MR' => 'Icarabu (Moritaniya)',\n 'ar_OM' => 'Icarabu (Omani)',\n 'ar_PS' => 'Icarabu (Palesitina Wesit", "suffix": " 'ar_TD' => 'Icarabu (Cadi)',\n 'ar_TN' => 'Icarabu (Tuniziya)',\n 'ar_YE' => 'Icarabu (Yemeni)',\n 'be' => 'Ikibelarusiya',\n 'be_BY' => 'Ikibelarusiya (Belausi)',\n 'bg' => 'Ikinyabuligariya',\n 'bg_BG' => 'Ikinyabu", "middle": "ibanka na Gaza)',\n 'ar_QA' => 'Icarabu (Katari)',\n 'ar_SA' => 'Icarabu (Arabiya Sawudite)',\n 'ar_SD' => 'Icarabu (Sudani)',\n 'ar_SO' => 'Icarabu (Somaliya)',\n 'ar_SY' => 'Icarabu (Siriya)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/rn.php", "language": "php", "file_size": 15257, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ar_LB' => 'arabă (Liban)',\n 'ar_LY' => 'arabă (Libia)',\n 'ar_MA' => 'arabă (Maroc)',\n 'ar_MR' => 'arabă (Mauritania)',\n 'ar_OM' => 'arabă (Oman)',\n 'ar_PS' => 'arabă (Teritoriile Palestiniene)',\n 'ar_QA' => 'arabă (Qatar)',\n 'ar_SA' => 'arabă (Arabia Saudită)',\n 'ar_SD' => 'arabă (Sudan)',\n 'ar_SO' => 'arabă (Somalia)',\n 'ar_SS' => 'arabă (Sudanul de Sud)',\n 'ar_SY' => 'arabă (Siria)',\n 'ar_TD' => 'arabă (Ciad)',\n ", "suffix": " (chirilică)',\n 'az_Cyrl_AZ' => 'azeră (chirilică, Azerbaidjan)',\n 'az_Latn' => 'azeră (latină)',\n 'az_Latn_AZ' => 'azeră (latină, Azerbaidjan)',\n 'ba' => 'bașkiră',\n 'ba_RU' => 'bașkiră (Rusia)',\n 'be' => 'belarus", "middle": " 'ar_TN' => 'arabă (Tunisia)',\n 'ar_YE' => 'arabă (Yemen)',\n 'as' => 'asameză',\n 'as_IN' => 'asameză (India)',\n 'az' => 'azeră',\n 'az_AZ' => 'azeră (Azerbaidjan)',\n 'az_Cyrl' => 'azeră", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ro.php", "language": "php", "file_size": 28452, "cut_index": 1331, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'de' => 'जर्मनभाषा:',\n 'de_DE' => 'जर्मनभाषा: (जर्मनीदेश:)',\n 'de_IT' => 'जर्मनभाषा: (इटली:)',\n 'en' => 'आङ्ग्लभाषा',\n 'en_DE' => 'आङ्ग्लभाषा (जर्मनीदेश:)',\n 'en_FR' => 'आङ्ग्लभाषा (फ़्रांस:)',\n 'en_GB' => 'आङ्ग्लभाषा (संयुक्त राष्ट्र:)',\n 'en_IN' => 'आङ्ग्लभाषा (भारतः)',\n 'en_IT' => 'आङ्ग्लभाषा (इटली:)',\n 'en_JP' => 'आङ्ग्लभाषा (जापन:)',\n 'en_US' => 'आङ्ग्लभाषा (संयुक्त राज्य:)',\n 'es' => 'स्पेनीय भाषा", "suffix": " 'it_IT' => 'इटलीदेशीय भाषा: (इटली:)',\n 'ja' => 'सूर्यमूलीय भाषा:',\n 'ja_JP' => 'सूर्यमूलीय भाषा: (जापन:)',\n 'pt' => 'पुर्तगालदेशीय भाषा:',\n 'pt_BR' => 'पुर्तगालदेशीय भाषा: (ब्राजील)',\n 'ru' => 'रष्यदेशीय भाषा:',\n ", "middle": ":',\n 'es_BR' => 'स्पेनीय भाषा: (ब्राजील)',\n 'es_US' => 'स्पेनीय भाषा: (संयुक्त राज्य:)',\n 'fr' => 'फ़्रांसदेशीय भाषा:',\n 'fr_FR' => 'फ़्रांसदेशीय भाषा: (फ़्रांस:)',\n 'it' => 'इटलीदेशीय भाषा:',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sa.php", "language": "php", "file_size": 2283, "cut_index": 524, "middle_length": 229}} {"prefix": " 'ar_LB' => 'àrabu (Lèbanu)',\n 'ar_LY' => 'àrabu (Lìbia)',\n 'ar_MA' => 'àrabu (Marocu)',\n 'ar_MR' => 'àrabu (Mauritània)',\n 'ar_OM' => 'àrabu (Omàn)',\n 'ar_PS' => 'àrabu (Territòrios palestinesos)',\n 'ar_QA' => 'àrabu (Catàr)',\n 'ar_SA' => 'àrabu (Aràbia Saudita)',\n 'ar_SD' => 'àrabu (Sudàn)',\n 'ar_SO' => 'àrabu (Somàlia)',\n 'ar_SS' => 'àrabu (Sudan de su Sud)',\n 'ar_SY' => 'àrabu (Sìria)',\n 'ar_TD' => 'àrabu (Chad)',\n ", "suffix": "Cyrl' => 'azerbaigianu (tzirìllicu)',\n 'az_Cyrl_AZ' => 'azerbaigianu (tzirìllicu, Azerbaigiàn)',\n 'az_Latn' => 'azerbaigianu (latinu)',\n 'az_Latn_AZ' => 'azerbaigianu (latinu, Azerbaigiàn)',\n 'ba' => 'baschiru',\n 'ba_RU' ", "middle": " 'ar_TN' => 'àrabu (Tunisia)',\n 'ar_YE' => 'àrabu (Yemen)',\n 'as' => 'assamesu',\n 'as_IN' => 'assamesu (Ìndia)',\n 'az' => 'azerbaigianu',\n 'az_AZ' => 'azerbaigianu (Azerbaigiàn)',\n 'az_", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sc.php", "language": "php", "file_size": 28143, "cut_index": 1331, "middle_length": 229}} {"prefix": "âbo (Eritrëe)',\n 'ar_IL' => 'Arâbo (Israëli)',\n 'ar_IQ' => 'Arâbo (Irâki)',\n 'ar_JO' => 'Arâbo (Zordanïi)',\n 'ar_KM' => 'Arâbo (Kömôro)',\n 'ar_KW' => 'Arâbo (Köwêti)',\n 'ar_LB' => 'Arâbo (Libùaan)',\n 'ar_LY' => 'Arâbo (Libïi)',\n 'ar_MA' => 'Arâbo (Marôko)',\n 'ar_MR' => 'Arâbo (Moritanïi)',\n 'ar_OM' => 'Arâbo (Omâni)',\n 'ar_PS' => 'Arâbo (Sêse tî Palestîni)',\n 'ar_QA' => 'Arâbo (Katära)',\n 'ar_SA' => 'Arâbo (Saûdi Arab", "suffix": " 'be' => 'Bielörûsi',\n 'be_BY' => 'Bielörûsi (Belarüsi)',\n 'bg' => 'Bulugäri',\n 'bg_BG' => 'Bulugäri (Bulugarïi)',\n 'bn' => 'Bengäli',\n 'bn_BD' => 'Bengäli (Bengladêshi)',\n 'bn_IN' => 'Bengäli (Ênnde)',\n ", "middle": "ïi)',\n 'ar_SD' => 'Arâbo (Sudäan)',\n 'ar_SO' => 'Arâbo (Somalïi)',\n 'ar_SY' => 'Arâbo (Sirïi)',\n 'ar_TD' => 'Arâbo (Tyâde)',\n 'ar_TN' => 'Arâbo (Tunizïi)',\n 'ar_YE' => 'Arâbo (Yëmêni)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sg.php", "language": "php", "file_size": 14474, "cut_index": 921, "middle_length": 229}} {"prefix": "ina (Komory)',\n 'ar_KW' => 'arabčina (Kuvajt)',\n 'ar_LB' => 'arabčina (Libanon)',\n 'ar_LY' => 'arabčina (Líbya)',\n 'ar_MA' => 'arabčina (Maroko)',\n 'ar_MR' => 'arabčina (Mauritánia)',\n 'ar_OM' => 'arabčina (Omán)',\n 'ar_PS' => 'arabčina (Palestínske územia)',\n 'ar_QA' => 'arabčina (Katar)',\n 'ar_SA' => 'arabčina (Saudská Arábia)',\n 'ar_SD' => 'arabčina (Sudán)',\n 'ar_SO' => 'arabčina (Somálsko)',\n 'ar_SS' => 'arabčina (Južný", "suffix": ")',\n 'az' => 'azerbajdžančina',\n 'az_AZ' => 'azerbajdžančina (Azerbajdžan)',\n 'az_Cyrl' => 'azerbajdžančina (cyrilika)',\n 'az_Cyrl_AZ' => 'azerbajdžančina (cyrilika, Azerbajdžan)',\n 'az_Latn' => 'azerbajdžančina (latinka)", "middle": " Sudán)',\n 'ar_SY' => 'arabčina (Sýria)',\n 'ar_TD' => 'arabčina (Čad)',\n 'ar_TN' => 'arabčina (Tunisko)',\n 'ar_YE' => 'arabčina (Jemen)',\n 'as' => 'ásamčina',\n 'as_IN' => 'ásamčina (India", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sk.php", "language": "php", "file_size": 30804, "cut_index": 1331, "middle_length": 229}} {"prefix": "> 'арапски (свијет)',\n 'ar_KM' => 'арапски (Комори)',\n 'ar_PS' => 'арапски (палестинске територије)',\n 'be' => 'бјелоруски',\n 'be_BY' => 'бјелоруски (Бјелорусија)',\n 'bm' => 'бамананкан',\n 'bm_ML' => 'бамананкан (Мали)',\n 'bn' => 'бангла',\n 'bn_BD' => 'бангла (Бангладеш)',\n 'bn_IN' => 'бангла (Индија)',\n 'cs_CZ' => 'чешки (Чешка Република)',\n 'de' => 'њемачки',\n 'de_AT' => 'њемачки (Аустрија)',\n 'de_BE' => 'њемачки (Б", "suffix": "en_001' => 'енглески (свијет)',\n 'en_CC' => 'енглески (Кокосова [Килинг] острва)',\n 'en_CZ' => 'енглески (Чешка Република)',\n 'en_DE' => 'енглески (Њемачка)',\n 'en_FK' => 'енглески (Фокландска острва)',\n 'en_GS' => 'енгле", "middle": "елгија)',\n 'de_CH' => 'њемачки (Швајцарска)',\n 'de_DE' => 'њемачки (Њемачка)',\n 'de_IT' => 'њемачки (Италија)',\n 'de_LI' => 'њемачки (Лихтенштајн)',\n 'de_LU' => 'њемачки (Луксембург)',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sr_Cyrl_BA.php", "language": "php", "file_size": 4006, "cut_index": 563, "middle_length": 229}} {"prefix": "=> 'Arabiffaa (Kuweet)',\n 'ar_LB' => 'Arabiffaa (Libaanoon)',\n 'ar_LY' => 'Arabiffaa (Liibiyaa)',\n 'ar_MA' => 'Arabiffaa (Morookoo)',\n 'ar_MR' => 'Arabiffaa (Mawuritaaniyaa)',\n 'ar_OM' => 'Arabiffaa (Omaan)',\n 'ar_PS' => 'Arabiffaa (Daangaawwan Paalestaayin)',\n 'ar_QA' => 'Arabiffaa (Kuwaatar)',\n 'ar_SA' => 'Arabiffaa (Saawud Arabiyaa)',\n 'ar_SD' => 'Arabiffaa (Sudaan)',\n 'ar_SO' => 'Arabiffaa (Somaaliyaa)',\n 'ar_SS' => 'Arabiffaa ", "suffix": " => 'Assamese (Hindii)',\n 'az' => 'Afaan Azerbaijani',\n 'az_AZ' => 'Afaan Azerbaijani (Azerbaajiyaan)',\n 'az_Cyrl' => 'Afaan Azerbaijani (Saayiriilik)',\n 'az_Cyrl_AZ' => 'Afaan Azerbaijani (Saayiriilik, Azerbaajiyaan)',\n ", "middle": "(Sudaan Kibbaa)',\n 'ar_SY' => 'Arabiffaa (Sooriyaa)',\n 'ar_TD' => 'Arabiffaa (Chaad)',\n 'ar_TN' => 'Arabiffaa (Tuniiziyaa)',\n 'ar_YE' => 'Arabiffaa (Yemen)',\n 'as' => 'Assamese',\n 'as_IN'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/om.php", "language": "php", "file_size": 25530, "cut_index": 1331, "middle_length": 229}} {"prefix": "p\n\nreturn [\n 'Names' => [\n 'en_PK' => 'ਅੰਗਰੇਜ਼ੀ (پاکستان)',\n 'kk_Arab' => 'ਕਜ਼ਾਖ਼ (عربی)',\n 'kk_Arab_CN' => 'ਕਜ਼ਾਖ਼ (عربی, ਚੀਨ)',\n 'ks_Arab' => 'ਕਸ਼ਮੀਰੀ (عربی)',\n 'ks_Arab_IN' => 'ਕਸ਼ਮੀਰੀ (عربی, ਭਾਰਤ)',\n 'pa' => 'پنجابی',\n 'pa_Arab' => 'پنجابی (عربی)',\n 'pa_Arab_PK' => 'پنجابی (عربی, پاکستان)',\n 'pa_Guru' => 'پنجابی (گُرمُکھی)',\n 'pa_Guru_IN' => 'پنجابی (گُرمُکھی, ਭਾਰਤ)',\n 'pa_IN' => 'پنجابی (ਭਾਰਤ)',\n 'pa_PK' => 'پنجابی (", "suffix": " 'sd_Arab' => 'ਸਿੰਧੀ (عربی)',\n 'sd_Arab_PK' => 'ਸਿੰਧੀ (عربی, پاکستان)',\n 'sd_PK' => 'ਸਿੰਧੀ (پاکستان)',\n 'ur_PK' => 'ਉਰਦੂ (پاکستان)',\n 'uz_Arab' => 'ਉਜ਼ਬੇਕ (عربی)',\n 'uz_Arab_AF' => 'ਉਜ਼ਬੇਕ (عربی, ਅਫ਼ਗਾਨਿਸਤਾਨ)',\n ],", "middle": "پاکستان)',\n 'ps_PK' => 'ਪਸ਼ਤੋ (پاکستان)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/pa_Arab.php", "language": "php", "file_size": 1167, "cut_index": 516, "middle_length": 52}} {"prefix": "ordania)',\n 'ar_KM' => 'Arabe Simi (Comoras)',\n 'ar_KW' => 'Arabe Simi (Kuwait)',\n 'ar_LB' => 'Arabe Simi (Líbano)',\n 'ar_LY' => 'Arabe Simi (Libia)',\n 'ar_MA' => 'Arabe Simi (Marruecos)',\n 'ar_MR' => 'Arabe Simi (Mauritania)',\n 'ar_OM' => 'Arabe Simi (Omán)',\n 'ar_PS' => 'Arabe Simi (Palestina Kamachikuq)',\n 'ar_QA' => 'Arabe Simi (Qatar)',\n 'ar_SA' => 'Arabe Simi (Arabia Saudí)',\n 'ar_SD' => 'Arabe Simi (Sudán)',\n 'ar_SO' ", "suffix": "(Yemen)',\n 'as' => 'Asames Simi',\n 'as_IN' => 'Asames Simi (India)',\n 'az' => 'Azerbaiyano Simi',\n 'az_AZ' => 'Azerbaiyano Simi (Azerbaiyán)',\n 'az_Cyrl' => 'Azerbaiyano Simi (Cirilico)',\n 'az_Cyrl_AZ' => 'Azerbaiy", "middle": "=> 'Arabe Simi (Somalia)',\n 'ar_SS' => 'Arabe Simi (Sudán del Sur)',\n 'ar_SY' => 'Arabe Simi (Siria)',\n 'ar_TD' => 'Arabe Simi (Chad)',\n 'ar_TN' => 'Arabe Simi (Túnez)',\n 'ar_YE' => 'Arabe Simi ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/qu.php", "language": "php", "file_size": 30690, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar_KW' => 'арабский (Кувейт)',\n 'ar_LB' => 'арабский (Ливан)',\n 'ar_LY' => 'арабский (Ливия)',\n 'ar_MA' => 'арабский (Марокко)',\n 'ar_MR' => 'арабский (Мавритания)',\n 'ar_OM' => 'арабский (Оман)',\n 'ar_PS' => 'арабский (Палестинские территории)',\n 'ar_QA' => 'арабский (Катар)',\n 'ar_SA' => 'арабский (Саудовская Аравия)',\n 'ar_SD' => 'арабский (Судан)',\n 'ar_SO' => 'арабский (Сомали)',\n 'ar_SS' => 'арабский (Южный Судан)',\n ", "suffix": "z' => 'азербайджанский',\n 'az_AZ' => 'азербайджанский (Азербайджан)',\n 'az_Cyrl' => 'азербайджанский (кириллица)',\n 'az_Cyrl_AZ' => 'азербайджанский (кириллица, Азербайджан)',\n 'az_Latn' => 'азербайджанский (латиница)',\n ", "middle": " 'ar_SY' => 'арабский (Сирия)',\n 'ar_TD' => 'арабский (Чад)',\n 'ar_TN' => 'арабский (Тунис)',\n 'ar_YE' => 'арабский (Йемен)',\n 'as' => 'ассамский',\n 'as_IN' => 'ассамский (Индия)',\n 'a", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ru.php", "language": "php", "file_size": 40144, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ar' => 'Icyarabu',\n 'as' => 'Icyasamizi',\n 'az' => 'Inyazeribayijani',\n 'az_Latn' => 'Inyazeribayijani (Latin)',\n 'be' => 'Ikibelarusiya',\n 'bg' => 'Urunyabuligariya',\n 'bn' => 'Ikibengali',\n 'br' => 'Inyebiritoni',\n 'bs' => 'Inyebosiniya',\n 'bs_Latn' => 'Inyebosiniya (Latin)',\n 'ca' => 'Igikatalani',\n 'cs' => 'Igiceke',\n 'cy' => 'Ikigaluwa',\n 'da' => 'Ikidaninwa',\n 'de' => 'Ikidage',\n 'el' => 'I", "suffix": " 'eu' => 'Ikibasiki',\n 'fa' => 'Inyeperisi',\n 'fi' => 'Igifinilande',\n 'fo' => 'Inyefaroyizi',\n 'fr' => 'Igifaransa',\n 'fr_RW' => 'Igifaransa (U Rwanda)',\n 'fy' => 'Igifiriziyani',\n 'ga' => 'Ikirilandi'", "middle": "kigereki',\n 'en' => 'Icyongereza',\n 'en_RW' => 'Icyongereza (U Rwanda)',\n 'en_TO' => 'Icyongereza (Tonga)',\n 'eo' => 'Icyesiperanto',\n 'es' => 'Icyesipanyolo',\n 'et' => 'Icyesitoniya',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/rw.php", "language": "php", "file_size": 3762, "cut_index": 614, "middle_length": 229}} {"prefix": "KW' => 'Carabi (Kuwayt)',\n 'ar_LB' => 'Carabi (Lubnaan)',\n 'ar_LY' => 'Carabi (Liibya)',\n 'ar_MA' => 'Carabi (Morooko)',\n 'ar_MR' => 'Carabi (Muritaaniya)',\n 'ar_OM' => 'Carabi (Cumaan)',\n 'ar_PS' => 'Carabi (Dhulka Falastiiniyiinta daanta galbeed iyo marinka qasa)',\n 'ar_QA' => 'Carabi (Qadar)',\n 'ar_SA' => 'Carabi (Sacuudi Carabiya)',\n 'ar_SD' => 'Carabi (Suudaan)',\n 'ar_SO' => 'Carabi (Soomaaliya)',\n 'ar_SS' => 'Carabi (Koonfur ", "suffix": ")',\n 'az' => 'Asarbayjan',\n 'az_AZ' => 'Asarbayjan (Asarbajan)',\n 'az_Cyrl' => 'Asarbayjan (Siriylik)',\n 'az_Cyrl_AZ' => 'Asarbayjan (Siriylik, Asarbajan)',\n 'az_Latn' => 'Asarbayjan (Laatiin)',\n 'az_Latn_AZ' => 'A", "middle": "Suudaan)',\n 'ar_SY' => 'Carabi (Suuriya)',\n 'ar_TD' => 'Carabi (Jaad)',\n 'ar_TN' => 'Carabi (Tuniisiya)',\n 'ar_YE' => 'Carabi (Yaman)',\n 'as' => 'Asaamiis',\n 'as_IN' => 'Asaamiis (Hindiya", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/so.php", "language": "php", "file_size": 28771, "cut_index": 1331, "middle_length": 229}} {"prefix": " => 'arabisk (Kuwait)',\n 'ar_LB' => 'arabisk (Libanon)',\n 'ar_LY' => 'arabisk (Libya)',\n 'ar_MA' => 'arabisk (Marokko)',\n 'ar_MR' => 'arabisk (Mauritania)',\n 'ar_OM' => 'arabisk (Oman)',\n 'ar_PS' => 'arabisk (Det palestinske området)',\n 'ar_QA' => 'arabisk (Qatar)',\n 'ar_SA' => 'arabisk (Saudi-Arabia)',\n 'ar_SD' => 'arabisk (Sudan)',\n 'ar_SO' => 'arabisk (Somalia)',\n 'ar_SS' => 'arabisk (Sør-Sudan)',\n 'ar_SY' => 'arabisk (Sy", "suffix": " 'az_AZ' => 'aserbajdsjansk (Aserbajdsjan)',\n 'az_Cyrl' => 'aserbajdsjansk (kyrillisk)',\n 'az_Cyrl_AZ' => 'aserbajdsjansk (kyrillisk, Aserbajdsjan)',\n 'az_Latn' => 'aserbajdsjansk (latinsk)',\n 'az_Latn_AZ' => 'aserbajdsjan", "middle": "ria)',\n 'ar_TD' => 'arabisk (Tsjad)',\n 'ar_TN' => 'arabisk (Tunisia)',\n 'ar_YE' => 'arabisk (Jemen)',\n 'as' => 'assamesisk',\n 'as_IN' => 'assamesisk (India)',\n 'az' => 'aserbajdsjansk',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/no.php", "language": "php", "file_size": 27596, "cut_index": 1331, "middle_length": 229}} {"prefix": "' => 'عربي (لیبیا)',\n 'ar_MA' => 'عربي (مراکش)',\n 'ar_MR' => 'عربي (موریتانیا)',\n 'ar_OM' => 'عربي (عمان)',\n 'ar_PS' => 'عربي (فلسطیني سيمې)',\n 'ar_QA' => 'عربي (قطر)',\n 'ar_SA' => 'عربي (سعودي عربستان)',\n 'ar_SD' => 'عربي (سوډان)',\n 'ar_SO' => 'عربي (سومالیا)',\n 'ar_SS' => 'عربي (سويلي سوډان)',\n 'ar_SY' => 'عربي (سوریه)',\n 'ar_TD' => 'عربي (چاډ)',\n 'ar_TN' => 'عربي (تونس)',\n 'ar_YE' => 'عربي (یمن)',\n 'as' => '", "suffix": "'az_Latn' => 'اذربایجاني (لاتين/لاتيني)',\n 'az_Latn_AZ' => 'اذربایجاني (لاتين/لاتيني, اذربايجان)',\n 'ba' => 'باشکير',\n 'ba_RU' => 'باشکير (روسیه)',\n 'be' => 'بېلاروسي',\n 'be_BY' => 'بېلاروسي (بیلاروس)',\n 'bg' => 'ب", "middle": "اسامي',\n 'as_IN' => 'اسامي (هند)',\n 'az' => 'اذربایجاني',\n 'az_AZ' => 'اذربایجاني (اذربايجان)',\n 'az_Cyrl' => 'اذربایجاني (سیریلیک)',\n 'az_Cyrl_AZ' => 'اذربایجاني (سیریلیک, اذربايجان)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/ps.php", "language": "php", "file_size": 35031, "cut_index": 1331, "middle_length": 229}} {"prefix": "تائي (भारत)',\n 'br_FR' => 'بريٽن (फ़्रांस)',\n 'bs_Cyrl' => 'بوسنيائي (सिरिलिक)',\n 'bs_Cyrl_BA' => 'بوسنيائي (सिरिलिक, بوسنيا ۽ هرزيگووينا)',\n 'bs_Latn' => 'بوسنيائي (लैटिन)',\n 'bs_Latn_BA' => 'بوسنيائي (लैटिन, بوسنيا ۽ هرزيگووينا)',\n 'ca_FR' => 'ڪيٽالان (फ़्रांस)',\n 'ca_IT' => 'ڪيٽالان (इटली)',\n 'ce_RU' => 'چیچن (रशिया)',\n 'cv_RU' => 'چو واش (रशिया)',\n 'cy_GB' => 'ويلش (बरतानी)',\n 'de' => 'जर्मन',\n 'de_AT' => 'जर्मन (آسٽريا)", "suffix": "',\n 'en' => 'अंगरेज़ी',\n 'en_001' => 'अंगरेज़ी (دنيا)',\n 'en_150' => 'अंगरेज़ी (يورپ)',\n 'en_AE' => 'अंगरेज़ी (متحده عرب امارات)',\n 'en_AG' => 'अंगरेज़ी (اينٽيگا ۽ باربوڊا)',\n 'en_AI' => 'अंगरेज़ी (انگويلا)',\n ", "middle": "',\n 'de_BE' => 'जर्मन (بيلجيم)',\n 'de_CH' => 'जर्मन (سوئزرلينڊ)',\n 'de_DE' => 'जर्मन (जर्मनी)',\n 'de_IT' => 'जर्मन (इटली)',\n 'de_LI' => 'जर्मन (لچي ٽينسٽين)',\n 'de_LU' => 'जर्मन (لگزمبرگ)", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sd_Deva.php", "language": "php", "file_size": 27113, "cut_index": 921, "middle_length": 229}} {"prefix": "a)',\n 'ar_KM' => 'arabščina (Komori)',\n 'ar_KW' => 'arabščina (Kuvajt)',\n 'ar_LB' => 'arabščina (Libanon)',\n 'ar_LY' => 'arabščina (Libija)',\n 'ar_MA' => 'arabščina (Maroko)',\n 'ar_MR' => 'arabščina (Mavretanija)',\n 'ar_OM' => 'arabščina (Oman)',\n 'ar_PS' => 'arabščina (Palestinsko ozemlje)',\n 'ar_QA' => 'arabščina (Katar)',\n 'ar_SA' => 'arabščina (Saudova Arabija)',\n 'ar_SD' => 'arabščina (Sudan)',\n 'ar_SO' => 'arabščina (S", "suffix": "s' => 'asamščina',\n 'as_IN' => 'asamščina (Indija)',\n 'az' => 'azerbajdžanščina',\n 'az_AZ' => 'azerbajdžanščina (Azerbajdžan)',\n 'az_Cyrl' => 'azerbajdžanščina (cirilica)',\n 'az_Cyrl_AZ' => 'azerbajdžanščina (cirilica, Az", "middle": "omalija)',\n 'ar_SS' => 'arabščina (Južni Sudan)',\n 'ar_SY' => 'arabščina (Sirija)',\n 'ar_TD' => 'arabščina (Čad)',\n 'ar_TN' => 'arabščina (Tunizija)',\n 'ar_YE' => 'arabščina (Jemen)',\n 'a", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/sl.php", "language": "php", "file_size": 31812, "cut_index": 1331, "middle_length": 229}} {"prefix": "'arab (Libanon)',\n 'ar_LY' => 'arab (Libia)',\n 'ar_MA' => 'arab (Maroc)',\n 'ar_MR' => 'arab (Mauretania)',\n 'ar_OM' => 'arab (Oman)',\n 'ar_PS' => 'arab (Territori Palestinais)',\n 'ar_QA' => 'arab (Qatar)',\n 'ar_SA' => 'arab (Arabia Saudita)',\n 'ar_SD' => 'arab (Sudan)',\n 'ar_SO' => 'arab (Somalia)',\n 'ar_SS' => 'arab (Sudan dal Sid)',\n 'ar_SY' => 'arab (Siria)',\n 'ar_TD' => 'arab (Tschad)',\n 'ar_TN' => 'arab (Tunesia)", "suffix": "a aserbaidschana (cirillic)',\n 'az_Cyrl_AZ' => 'lingua aserbaidschana (cirillic, Aserbaidschan)',\n 'az_Latn' => 'lingua aserbaidschana (latin)',\n 'az_Latn_AZ' => 'lingua aserbaidschana (latin, Aserbaidschan)',\n 'ba' => 'baschkir", "middle": "',\n 'ar_YE' => 'arab (Jemen)',\n 'as' => 'assami',\n 'as_IN' => 'assami (India)',\n 'az' => 'lingua aserbaidschana',\n 'az_AZ' => 'lingua aserbaidschana (Aserbaidschan)',\n 'az_Cyrl' => 'lingu", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/rm.php", "language": "php", "file_size": 27759, "cut_index": 1331, "middle_length": 229}} {"prefix": "фрикаанс',\n 'ar' => 'араббаг',\n 'ar_001' => 'араббаг (Дуне)',\n 'az' => 'тӕтӕйраг',\n 'az_Cyrl' => 'тӕтӕйраг (Киррилицӕ)',\n 'az_Latn' => 'тӕтӕйраг (Латинаг)',\n 'ba' => 'башкираг',\n 'ba_RU' => 'башкираг (Уӕрӕсе)',\n 'bg' => 'болгайраг',\n 'bs' => 'босниаг',\n 'bs_Cyrl' => 'босниаг (Киррилицӕ)',\n 'bs_Latn' => 'босниаг (Латинаг)',\n 'ca' => 'каталайнаг',\n 'ca_FR' => 'каталайнаг (Франц)',\n 'ca_IT' => 'каталайнаг (Итали)'", "suffix": " => 'немыцаг (Герман)',\n 'de_IT' => 'немыцаг (Итали)',\n 'el' => 'бердзейнаг',\n 'en' => 'англисаг',\n 'en_001' => 'англисаг (Дуне)',\n 'en_150' => 'англисаг (Европӕ)',\n 'en_DE' => 'англисаг (Герман)',\n 'en_FR' ", "middle": ",\n 'ce' => 'цӕцӕйнаг',\n 'ce_RU' => 'цӕцӕйнаг (Уӕрӕсе)',\n 'cs' => 'чехаг',\n 'cv' => 'чувашаг',\n 'cv_RU' => 'чувашаг (Уӕрӕсе)',\n 'da' => 'даниаг',\n 'de' => 'немыцаг',\n 'de_DE'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/os.php", "language": "php", "file_size": 3511, "cut_index": 563, "middle_length": 229}} {"prefix": " 'AG' => 'Антигуа вә Барбуда',\n 'AI' => 'Анҝилја',\n 'AL' => 'Албанија',\n 'AM' => 'Ермәнистан',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктика',\n 'AR' => 'Арҝентина',\n 'AS' => 'Америка Самоасы',\n 'AT' => 'Австрија',\n 'AU' => 'Австралија',\n 'AW' => 'Аруба',\n 'AX' => 'Аланд адалары',\n 'AZ' => 'Азәрбајҹан',\n 'BA' => 'Боснија вә Һерсеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Белчика',\n ", "suffix": "ј',\n 'BO' => 'Боливија',\n 'BR' => 'Бразилија',\n 'BS' => 'Баһам адалары',\n 'BT' => 'Бутан',\n 'BV' => 'Буве адасы',\n 'BW' => 'Ботсвана',\n 'BY' => 'Беларус',\n 'BZ' => 'Белиз',\n 'CA' => 'Канада',\n ", "middle": " 'BF' => 'Буркина Фасо',\n 'BG' => 'Болгарыстан',\n 'BH' => 'Бәһрејн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сент-Бартелеми',\n 'BM' => 'Бермуд адалары',\n 'BN' => 'Бруне", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/az_Cyrl.php", "language": "php", "file_size": 9769, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigvo kaj Barbudo',\n 'AI' => 'Angvilo',\n 'AL' => 'Albanujo',\n 'AM' => 'Armenujo',\n 'AO' => 'Angolo',\n 'AQ' => 'Antarkto',\n 'AR' => 'Argentino',\n 'AS' => 'Usona Samoo',\n 'AT' => 'Aŭstrujo',\n 'AU' => 'Aŭstralio',\n 'AW' => 'Arubo',\n 'AX' => 'Alando',\n 'AZ' => 'Azerbajĝano',\n 'BA' => 'Bosnujo kaj Hercegovino',\n 'BB' => 'Barbado',\n 'BD' => 'Bangladeŝo',\n 'BE' => 'Belgujo',\n 'BF' => '", "suffix": "olivio',\n 'BQ' => 'Kariba Nederlando',\n 'BR' => 'Brazilo',\n 'BS' => 'Bahamoj',\n 'BT' => 'Butano',\n 'BV' => 'Buvetinsulo',\n 'BW' => 'Bocvano',\n 'BY' => 'Belorusujo',\n 'BZ' => 'Belizo',\n 'CA' => ", "middle": "Burkino',\n 'BG' => 'Bulgarujo',\n 'BH' => 'Barejno',\n 'BI' => 'Burundo',\n 'BJ' => 'Benino',\n 'BL' => 'Sankta Bartolomeo',\n 'BM' => 'Bermudoj',\n 'BN' => 'Brunejo',\n 'BO' => 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/eo.php", "language": "php", "file_size": 7536, "cut_index": 716, "middle_length": 229}} {"prefix": "G' => 'Antigua y Barbuda',\n 'AI' => 'Anguila',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antártida',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Americana',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Islas Aland',\n 'AZ' => 'Azerbaiyán',\n 'BA' => 'Bosnia y Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladés',\n 'BE' => 'Bélgica',\n 'BF' => 'Bu", "suffix": "a',\n 'BQ' => 'Caribe neerlandés',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bután',\n 'BV' => 'Isla Bouvet',\n 'BW' => 'Botsuana',\n 'BY' => 'Bielorrusia',\n 'BZ' => 'Belice',\n 'CA' => 'Cana", "middle": "rkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Baréin',\n 'BI' => 'Burundi',\n 'BJ' => 'Benín',\n 'BL' => 'San Bartolomé',\n 'BM' => 'Bermudas',\n 'BN' => 'Brunéi',\n 'BO' => 'Bolivi", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/es.php", "language": "php", "file_size": 7621, "cut_index": 716, "middle_length": 229}} {"prefix": "G' => 'Antigua ja Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albaania',\n 'AM' => 'Armeenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentina',\n 'AS' => 'Ameerika Samoa',\n 'AT' => 'Austria',\n 'AU' => 'Austraalia',\n 'AW' => 'Aruba',\n 'AX' => 'Ahvenamaa',\n 'AZ' => 'Aserbaidžaan',\n 'BA' => 'Bosnia ja Hertsegoviina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'BF", "suffix": "' => 'Boliivia',\n 'BQ' => 'Kariibi Madalmaad',\n 'BR' => 'Brasiilia',\n 'BS' => 'Bahama',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvet’ saar',\n 'BW' => 'Botswana',\n 'BY' => 'Valgevene',\n 'BZ' => 'Belize',\n ", "middle": "' => 'Burkina Faso',\n 'BG' => 'Bulgaaria',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/et.php", "language": "php", "file_size": 7557, "cut_index": 716, "middle_length": 229}} {"prefix": "AG' => 'Antigua eta Barbuda',\n 'AI' => 'Aingira',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antartika',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Estatubatuarra',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Åland',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bosnia-Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgika',\n 'BF' => 'B", "suffix": "livia',\n 'BQ' => 'Karibeko Herbehereak',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamak',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvet uhartea',\n 'BW' => 'Botswana',\n 'BY' => 'Bielorrusia',\n 'BZ' => 'Belize',\n 'C", "middle": "urkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/eu.php", "language": "php", "file_size": 7675, "cut_index": 716, "middle_length": 229}} {"prefix": "آنتیگوا و باربودا',\n 'AI' => 'آنگویلا',\n 'AL' => 'آلبانی',\n 'AM' => 'ارمنستان',\n 'AO' => 'آنگولا',\n 'AQ' => 'جنوبگان',\n 'AR' => 'آرژانتین',\n 'AS' => 'ساموآی امریکا',\n 'AT' => 'اتریش',\n 'AU' => 'استرالیا',\n 'AW' => 'آروبا',\n 'AX' => 'جزایر آلاند',\n 'AZ' => 'جمهوری آذربایجان',\n 'BA' => 'بوسنی و هرزگوین',\n 'BB' => 'باربادوس',\n 'BD' => 'بنگلادش',\n 'BE' => 'بلژیک',\n 'BF' => 'بورکینافاسو',\n ", "suffix": " کارائیب هلند',\n 'BR' => 'برزیل',\n 'BS' => 'باهاما',\n 'BT' => 'بوتان',\n 'BV' => 'جزیرهٔ بووه',\n 'BW' => 'بوتسوانا',\n 'BY' => 'بلاروس',\n 'BZ' => 'بلیز',\n 'CA' => 'کانادا',\n 'CC' => 'جزایر کوکوس'", "middle": " 'BG' => 'بلغارستان',\n 'BH' => 'بحرین',\n 'BI' => 'بوروندی',\n 'BJ' => 'بنین',\n 'BL' => 'سن بارتلمی',\n 'BM' => 'برمودا',\n 'BN' => 'برونئی',\n 'BO' => 'بولیوی',\n 'BQ' => 'جزایر", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/fa.php", "language": "php", "file_size": 9241, "cut_index": 716, "middle_length": 229}} {"prefix": " 'XK' => 'کوسوا',\n ],\n 'Names' => [\n 'AD' => 'اندورا',\n 'AG' => 'انتیگوا و باربودا',\n 'AL' => 'البانیا',\n 'AO' => 'انگولا',\n 'AQ' => 'انترکتیکا',\n 'AR' => 'ارجنتاین',\n 'BA' => 'بوسنیا و هرزه‌گوینا',\n 'BD' => 'بنگله‌دیش',\n 'BE' => 'بلجیم',\n 'BG' => 'بلغاریا',\n 'BN' => 'برونی',\n 'BO' => 'بولیویا',\n 'BR' => 'برازیل',\n 'BS' => 'بهاماس',\n 'CD' => 'کانگو - کینشاسا',\n 'CG' => 'کانگو - برازویل',\n ", "suffix": "',\n 'ET' => 'ایتوپیا',\n 'FI' => 'فنلند',\n 'FM' => 'میکرونزیا',\n 'GD' => 'گرینادا',\n 'GH' => 'گانا',\n 'GN' => 'گینیا',\n 'GQ' => 'گینیا استوایی',\n 'GT' => 'گواتیمالا',\n 'GW' => 'گینیا بیسائو',\n ", "middle": " 'CH' => 'سویس',\n 'CL' => 'چلی',\n 'CO' => 'کولمبیا',\n 'CR' => 'کاستریکا',\n 'CU' => 'کیوبا',\n 'DK' => 'دنمارک',\n 'EE' => 'استونیا',\n 'ER' => 'اریتریا',\n 'ES' => 'هسپانیه", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/fa_AF.php", "language": "php", "file_size": 3230, "cut_index": 563, "middle_length": 229}} {"prefix": "\n 'AI' => 'Anngiyaa',\n 'AL' => 'Albanii',\n 'AM' => 'Armenii',\n 'AO' => 'Anngolaa',\n 'AR' => 'Arjantiin',\n 'AS' => 'Samowa Amerik',\n 'AT' => 'Otiriis',\n 'AU' => 'Ostaraalii',\n 'AW' => 'Aruuba',\n 'AZ' => 'Ajerbayjaan',\n 'BA' => 'Bosnii Hersegowiin',\n 'BB' => 'Barbadoos',\n 'BD' => 'Banglaadees',\n 'BE' => 'Beljik',\n 'BF' => 'Burkibaa Faaso',\n 'BG' => 'Bulgarii',\n 'BH' => 'Bahreyn',\n 'BI'", "suffix": "na',\n 'BY' => 'Belaruus',\n 'BZ' => 'Beliise',\n 'CA' => 'Kanadaa',\n 'CD' => 'Ndenndaandi Demokaraasiire Konngo',\n 'CF' => 'Ndenndaandi Santarafrik',\n 'CG' => 'Konngo',\n 'CH' => 'Suwiis',\n 'CI' => 'Kodd", "middle": " => 'Burunndi',\n 'BJ' => 'Benee',\n 'BM' => 'Bermudaa',\n 'BN' => 'Burnaay',\n 'BO' => 'Boliwii',\n 'BR' => 'Beresiil',\n 'BS' => 'Bahamaas',\n 'BT' => 'Butaan',\n 'BW' => 'Botswaa", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ff.php", "language": "php", "file_size": 6617, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => '𞤀𞤲𞤼𞤭𞤺𞤵𞤱𞤢 & 𞤄𞤢𞤪𞤦𞤵𞥅𞤣𞤢',\n 'AI' => '𞤀𞤲𞤺𞤭𞤤𞤢𞥄',\n 'AL' => '𞤀𞤤𞤦𞤢𞤲𞤭𞤴𞤢𞥄',\n 'AM' => '𞤀𞤪𞤥𞤫𞤲𞤭𞤴𞤢𞥄',\n 'AO' => '𞤀𞤲𞤺𞤮𞤤𞤢𞥄',\n 'AQ' => '𞤀𞤲𞤼𞤢𞤪𞤼𞤭𞤳𞤢𞥄',\n 'AR' => '𞤀𞤪𞤶𞤢𞤲𞤼𞤭𞤲𞤢𞥄',\n 'AS' => '𞤅𞤢𞤥𞤵𞤱𞤢 𞤀𞤥𞤫𞤪𞤭𞤳𞤭𞤴𞤢𞤲𞤳𞤮',\n 'AT' => '𞤌𞤼𞤭𞤪𞤧𞤢',\n 'AU' => '𞤌𞤧𞤼𞤢𞤪𞤤𞤭𞤴𞤢𞥄',\n 'AW' => '𞤀𞤪𞤵𞤦𞤢𞥄',\n 'AX' => '𞤕𞤵𞤪𞤭𞥅𞤶𞤫 𞤀𞤤𞤢𞤲𞤣',\n 'AZ' => '𞤀𞥁𞤫𞤪𞤦𞤢𞤭𞤶𞤢𞥄𞤲',\n 'BA' => '𞤄𞤮𞤧𞤲𞤭𞤴𞤢 & 𞤖𞤫𞤪𞤧𞤫𞤳𞤮𞤾𞤭𞤲𞤢𞥄',\n 'BB' => '𞤄𞤢𞤪𞤦𞤫𞥅𞤣𞤮𞥅𞤧',\n 'BD' => '𞤄𞤢𞤲𞤺𞤭𞤤𞤢𞤣𞤫𞥅𞤧',\n 'BE' => '𞤄𞤫𞤤𞤶", "suffix": "𞤵𞤪𞤲𞤢𞥄𞤴',\n 'BO' => '𞤄𞤮𞤤𞤭𞥅𞤾𞤭𞤴𞤢𞥄',\n 'BQ' => '𞤑𞤢𞤪𞤦𞤭𞤴𞤢𞥄 𞤖𞤮𞤤𞤢𞤲𞤣𞤭𞤴𞤢𞥄',\n 'BR' => '𞤄𞤪𞤢𞤧𞤭𞤤',\n 'BS' => '𞤄𞤢𞤸𞤢𞤥𞤢𞥄𞤧',\n 'BT' => '𞤄𞤵𞥅𞤼𞤢𞥄𞤲',\n 'BV' => '𞤅𞤵𞤪𞤭𞥅𞤪𞤫 𞤄𞤵𞥅𞤾𞤫𞥅',\n 'BW' => '𞤄𞤮𞤼𞤧𞤵𞤱𞤢𞥄𞤲𞤢',\n 'BY' => '𞤄𞤫𞤤𞤢𞤪𞤵𞥅𞤧',\n ", "middle": "𞤭𞤳𞤢𞥄',\n 'BF' => '𞤄𞤵𞤪𞤳𞤭𞤲𞤢 𞤊𞤢𞤧𞤮𞥅',\n 'BG' => '𞤄𞤵𞥅𞤤𞤺𞤢𞤪𞤭𞤴𞤢𞥄',\n 'BH' => '𞤄𞤢𞤸𞤢𞤪𞤢𞤴𞤲',\n 'BI' => '𞤄𞤵𞤪𞤵𞤲𞤣𞤭',\n 'BJ' => '𞤄𞤫𞤲𞤫𞤲',\n 'BL' => '𞤅𞤼. 𞤄𞤢𞤪𞤼𞤫𞤤𞤭𞤥𞤭',\n 'BM' => '𞤄𞤭𞤪𞤥𞤵𞤣𞤢',\n 'BN' => '𞤄", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ff_Adlm.php", "language": "php", "file_size": 15131, "cut_index": 716, "middle_length": 229}} {"prefix": " 'Antigua ja Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktis',\n 'AR' => 'Argentiina',\n 'AS' => 'Amerikan Samoa',\n 'AT' => 'Itävalta',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Ahvenanmaa',\n 'AZ' => 'Azerbaidžan',\n 'BA' => 'Bosnia ja Hertsegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'BF' => 'Bu", "suffix": "ivia',\n 'BQ' => 'Karibian Alankomaat',\n 'BR' => 'Brasilia',\n 'BS' => 'Bahama',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvet’nsaari',\n 'BW' => 'Botswana',\n 'BY' => 'Valko-Venäjä',\n 'BZ' => 'Belize',\n 'CA", "middle": "rkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bol", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/fi.php", "language": "php", "file_size": 7620, "cut_index": 716, "middle_length": 229}} {"prefix": "=> 'Antigua & Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktis',\n 'AR' => 'Argentina',\n 'AS' => 'Amerikanska Samoa',\n 'AT' => 'Eysturríki',\n 'AU' => 'Avstralia',\n 'AW' => 'Aruba',\n 'AX' => 'Áland',\n 'AZ' => 'Aserbadjan',\n 'BA' => 'Bosnia-Hersegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesj',\n 'BE' => 'Belgia',\n 'BF' => 'Burkina", "suffix": " 'BQ' => 'Niðurlonds Karibia',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamaoyggjar',\n 'BT' => 'Butan',\n 'BV' => 'Bouvetoyggj',\n 'BW' => 'Botsvana',\n 'BY' => 'Hvítarussland',\n 'BZ' => 'Belis',\n 'CA' => 'K", "middle": " Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Barein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'St. Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bolivia',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/fo.php", "language": "php", "file_size": 7576, "cut_index": 716, "middle_length": 229}} {"prefix": " => 'Antigua-et-Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albanie',\n 'AM' => 'Arménie',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctique',\n 'AR' => 'Argentine',\n 'AS' => 'Samoa américaines',\n 'AT' => 'Autriche',\n 'AU' => 'Australie',\n 'AW' => 'Aruba',\n 'AX' => 'Îles Åland',\n 'AZ' => 'Azerbaïdjan',\n 'BA' => 'Bosnie-Herzégovine',\n 'BB' => 'Barbade',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgique',\n 'BF' =>", "suffix": " 'Bolivie',\n 'BQ' => 'Pays-Bas caribéens',\n 'BR' => 'Brésil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhoutan',\n 'BV' => 'Île Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Biélorussie',\n 'BZ' => 'Belize',\n 'CA", "middle": " 'Burkina Faso',\n 'BG' => 'Bulgarie',\n 'BH' => 'Bahreïn',\n 'BI' => 'Burundi',\n 'BJ' => 'Bénin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermudes',\n 'BN' => 'Brunei',\n 'BO' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/fr.php", "language": "php", "file_size": 7751, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\nreturn [\n 'UserAssignedNames' => [],\n 'Names' => [\n 'AX' => 'îles d’Åland',\n 'BN' => 'Brunéi',\n 'BV' => 'île Bouvet',\n 'BY' => 'Bélarus',\n 'BZ' => 'Bélize',\n 'CC' => 'îles Cocos (Keeling)',\n 'CK' => 'îles Cook',\n 'CX' => 'île Christmas',\n 'FK' => 'îles Malouines',\n 'FO' => 'îles Féroé',\n 'HM' => 'îles Heard et McDonald',\n 'IM' => 'île de Man',\n 'KG' => 'Kirghizistan',\n 'KN' => 'Saint‑Kitts‑et‑Nevis',\n", "suffix": " 'RE' => 'la Réunion',\n 'SX' => 'Saint-Martin (Pays-Bas)',\n 'TL' => 'Timor-Leste',\n 'UM' => 'îles mineures éloignées des États-Unis',\n 'VA' => 'Cité du Vatican',\n 'VE' => 'Vénézuéla',\n 'VG' => 'îles Vierges britan", "middle": " 'LR' => 'Libéria',\n 'MF' => 'Saint-Martin (France)',\n 'MM' => 'Myanmar',\n 'MP' => 'Mariannes du Nord',\n 'NF' => 'île Norfolk',\n 'NG' => 'Nigéria',\n 'PN' => 'îles Pitcairn',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/fr_CA.php", "language": "php", "file_size": 1129, "cut_index": 515, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua en Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albanië',\n 'AM' => 'Armenië',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Argentinië',\n 'AS' => 'Amerikaansk Samoa',\n 'AT' => 'Eastenryk',\n 'AU' => 'Australië',\n 'AW' => 'Aruba',\n 'AX' => 'Ålân',\n 'AZ' => 'Azerbeidzjan',\n 'BA' => 'Bosnië en Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'België',\n '", "suffix": "BO' => 'Bolivia',\n 'BQ' => 'Karibysk Nederlân',\n 'BR' => 'Brazilië',\n 'BS' => 'Bahama’s',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouveteilân',\n 'BW' => 'Botswana',\n 'BY' => 'Wit-Ruslân',\n 'BZ' => 'Belize',\n ", "middle": "BF' => 'Burkina Faso',\n 'BG' => 'Bulgarije',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/fy.php", "language": "php", "file_size": 7578, "cut_index": 716, "middle_length": 229}} {"prefix": "táin',\n 'AG' => 'Antigua agus Barbúda',\n 'AI' => 'Angaíle',\n 'AL' => 'an Albáin',\n 'AM' => 'an Airméin',\n 'AO' => 'Angóla',\n 'AQ' => 'Antartaice',\n 'AR' => 'an Airgintín',\n 'AS' => 'Samó Mheiriceá',\n 'AT' => 'an Ostair',\n 'AU' => 'an Astráil',\n 'AW' => 'Arúba',\n 'AX' => 'Oileáin Åland',\n 'AZ' => 'an Asarbaiseáin',\n 'BA' => 'an Bhoisnia agus an Heirseagaivéin',\n 'BB' => 'Barbadós',\n 'BD' => 'an Bha", "suffix": " 'BM' => 'Beirmiúda',\n 'BN' => 'Brúiné',\n 'BO' => 'an Bholaiv',\n 'BQ' => 'an Ísiltír Chairibeach',\n 'BR' => 'an Bhrasaíl',\n 'BS' => 'na Bahámaí',\n 'BT' => 'an Bhútáin',\n 'BV' => 'Oileán Bouvet',\n 'B", "middle": "nglaidéis',\n 'BE' => 'an Bheilg',\n 'BF' => 'Buircíne Fasó',\n 'BG' => 'an Bhulgáir',\n 'BH' => 'Bairéin',\n 'BI' => 'an Bhurúin',\n 'BJ' => 'Beinin',\n 'BL' => 'Saint Barthélemy',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ga.php", "language": "php", "file_size": 8489, "cut_index": 716, "middle_length": 229}} {"prefix": "tàn',\n 'AG' => 'Aintìoga is Barbuda',\n 'AI' => 'Anguillia',\n 'AL' => 'Albàinia',\n 'AM' => 'Airmeinea',\n 'AO' => 'Angòla',\n 'AQ' => 'An Antartaig',\n 'AR' => 'An Argantain',\n 'AS' => 'Samotha na h-Aimeireaga',\n 'AT' => 'An Ostair',\n 'AU' => 'Astràilia',\n 'AW' => 'Arùba',\n 'AX' => 'Na h-Eileanan Åland',\n 'AZ' => 'Asarbaideàn',\n 'BA' => 'Bosna is Hearsagobhana',\n 'BB' => 'Barbados',\n 'BD' => 'Banglada", "suffix": "M' => 'Bearmùda',\n 'BN' => 'Brùnaigh',\n 'BO' => 'Boilibhia',\n 'BQ' => 'Na Tìrean Ìsle Caraibeach',\n 'BR' => 'Braisil',\n 'BS' => 'Na h-Eileanan Bhathama',\n 'BT' => 'Butàn',\n 'BV' => 'Eilean Bouvet',\n '", "middle": "is',\n 'BE' => 'A’ Bheilg',\n 'BF' => 'Buirciona Faso',\n 'BG' => 'A’ Bhulgair',\n 'BH' => 'Bachrain',\n 'BI' => 'Burundaidh',\n 'BJ' => 'Beinin',\n 'BL' => 'Saint Barthélemy',\n 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/gd.php", "language": "php", "file_size": 8321, "cut_index": 716, "middle_length": 229}} {"prefix": "G' => 'Antigua e Barbuda',\n 'AI' => 'Anguila',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antártida',\n 'AR' => 'Arxentina',\n 'AS' => 'Samoa Americana',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Illas Åland',\n 'AZ' => 'Acerbaixán',\n 'BA' => 'Bosnia e Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Bélxica',\n 'BF' => 'B", "suffix": " => 'Bolivia',\n 'BQ' => 'Caribe Neerlandés',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bután',\n 'BV' => 'Illa Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarús',\n 'BZ' => 'Belize',\n 'CA' =", "middle": "urkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benín',\n 'BL' => 'Saint Barthélemy',\n 'BM' => 'Illas Bermudas',\n 'BN' => 'Brunei',\n 'BO'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/gl.php", "language": "php", "file_size": 7662, "cut_index": 716, "middle_length": 229}} {"prefix": " => 'ઍન્ટિગુઆ અને બર્મુડા',\n 'AI' => 'ઍંગ્વિલા',\n 'AL' => 'અલ્બેનિયા',\n 'AM' => 'આર્મેનિયા',\n 'AO' => 'અંગોલા',\n 'AQ' => 'એન્ટાર્કટિકા',\n 'AR' => 'આર્જેન્ટીના',\n 'AS' => 'અમેરિકન સમોઆ',\n 'AT' => 'ઑસ્ટ્રિયા',\n 'AU' => 'ઑસ્ટ્રેલિયા',\n 'AW' => 'અરુબા',\n 'AX' => 'ઑલૅન્ડ આઇલૅન્ડ્સ',\n 'AZ' => 'અઝરબૈજાન',\n 'BA' => 'બોસ્નિયા અને હર્ઝેગોવિના',\n 'BB' => 'બારબાડોસ',\n 'BD' => 'બાંગ્લાદેશ',\n 'BE' => 'બેલ્જીયમ'", "suffix": ",\n 'BO' => 'બોલિવિયા',\n 'BQ' => 'કેરેબિયન નેધરલેન્ડ્ઝ',\n 'BR' => 'બ્રાઝિલ',\n 'BS' => 'બહામાસ',\n 'BT' => 'ભૂટાન',\n 'BV' => 'બૌવેત આઇલૅન્ડ',\n 'BW' => 'બોત્સ્વાના',\n 'BY' => 'બેલારુસ',\n 'BZ' => 'બ", "middle": ",\n 'BF' => 'બુર્કિના ફાસો',\n 'BG' => 'બલ્ગેરિયા',\n 'BH' => 'બેહરીન',\n 'BI' => 'બુરુંડી',\n 'BJ' => 'બેનિન',\n 'BL' => 'સેંટ બાર્થેલેમી',\n 'BM' => 'બર્મુડા',\n 'BN' => 'બ્રુનેઇ'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/gu.php", "language": "php", "file_size": 12406, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua da Barbuda',\n 'AI' => 'Angila',\n 'AL' => 'Albaniya',\n 'AM' => 'Armeniya',\n 'AO' => 'Angola',\n 'AQ' => 'Antatika',\n 'AR' => 'Ajentina',\n 'AS' => 'Samowa Ta Amurka',\n 'AT' => 'Ostiriya',\n 'AU' => 'Ostareliya',\n 'AW' => 'Aruba',\n 'AX' => 'Tsibirai na Åland',\n 'AZ' => 'Azarbaijan',\n 'BA' => 'Bosniya da Harzagobina',\n 'BB' => 'Barbadas',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgiyo", "suffix": ",\n 'BO' => 'Bolibiya',\n 'BQ' => 'Caribbean Netherlands',\n 'BR' => 'Birazil',\n 'BS' => 'Bahamas',\n 'BT' => 'Butan',\n 'BV' => 'Tsibirin Bouvet',\n 'BW' => 'Baswana',\n 'BY' => 'Belarus',\n 'BZ' => '", "middle": "m',\n 'BF' => 'Burkina Faso',\n 'BG' => 'Bulgariya',\n 'BH' => 'Baharen',\n 'BI' => 'Burundi',\n 'BJ' => 'Binin',\n 'BL' => 'San Barthélemy',\n 'BM' => 'Barmuda',\n 'BN' => 'Burune'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ha.php", "language": "php", "file_size": 7668, "cut_index": 716, "middle_length": 229}} {"prefix": " => 'אנטיגואה וברבודה',\n 'AI' => 'אנגווילה',\n 'AL' => 'אלבניה',\n 'AM' => 'ארמניה',\n 'AO' => 'אנגולה',\n 'AQ' => 'אנטארקטיקה',\n 'AR' => 'ארגנטינה',\n 'AS' => 'סמואה האמריקנית',\n 'AT' => 'אוסטריה',\n 'AU' => 'אוסטרליה',\n 'AW' => 'ארובה',\n 'AX' => 'איי אולנד',\n 'AZ' => 'אזרבייג׳ן',\n 'BA' => 'בוסניה והרצגובינה',\n 'BB' => 'ברבדוס',\n 'BD' => 'בנגלדש',\n 'BE' => 'בלגיה',\n 'BF' => 'בורקינה פאסו',\n ", "suffix": "האיים הקריביים ההולנדיים',\n 'BR' => 'ברזיל',\n 'BS' => 'איי בהאמה',\n 'BT' => 'בהוטן',\n 'BV' => 'האי בובה',\n 'BW' => 'בוטסואנה',\n 'BY' => 'בלארוס',\n 'BZ' => 'בליז',\n 'CA' => 'קנדה',\n 'CC' => 'איי", "middle": " 'BG' => 'בולגריה',\n 'BH' => 'בחריין',\n 'BI' => 'בורונדי',\n 'BJ' => 'בנין',\n 'BL' => 'סנט ברתולומיאו',\n 'BM' => 'ברמודה',\n 'BN' => 'ברוניי',\n 'BO' => 'בוליביה',\n 'BQ' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/he.php", "language": "php", "file_size": 9276, "cut_index": 716, "middle_length": 229}} {"prefix": "=> 'एंटिगुआ और बरबुडा',\n 'AI' => 'एंग्विला',\n 'AL' => 'अल्बानिया',\n 'AM' => 'आर्मेनिया',\n 'AO' => 'अंगोला',\n 'AQ' => 'अंटार्कटिका',\n 'AR' => 'अर्जेंटीना',\n 'AS' => 'अमेरिकी समोआ',\n 'AT' => 'ऑस्ट्रिया',\n 'AU' => 'ऑस्ट्रेलिया',\n 'AW' => 'अरूबा',\n 'AX' => 'एलैंड द्वीपसमूह',\n 'AZ' => 'अज़रबैजान',\n 'BA' => 'बोस्निया और हर्ज़ेगोविना',\n 'BB' => 'बारबाडोस',\n 'BD' => 'बांग्लादेश',\n 'BE' => 'बेल्जियम',\n ", "suffix": " 'BO' => 'बोलीविया',\n 'BQ' => 'कैरिबियन नीदरलैंड',\n 'BR' => 'ब्राज़ील',\n 'BS' => 'बहामास',\n 'BT' => 'भूटान',\n 'BV' => 'बोवेत द्वीप',\n 'BW' => 'बोत्स्वाना',\n 'BY' => 'बेलारूस',\n 'BZ' => 'बेलीज़',\n ", "middle": " 'BF' => 'बुर्किना फ़ासो',\n 'BG' => 'बुल्गारिया',\n 'BH' => 'बहरीन',\n 'BI' => 'बुरुंडी',\n 'BJ' => 'बेनिन',\n 'BL' => 'सेंट बार्थेलेमी',\n 'BM' => 'बरमूडा',\n 'BN' => 'ब्रूनेई',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/hi.php", "language": "php", "file_size": 12397, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigva i Barbuda',\n 'AI' => 'Angvila',\n 'AL' => 'Albanija',\n 'AM' => 'Armenija',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentina',\n 'AS' => 'Američka Samoa',\n 'AT' => 'Austrija',\n 'AU' => 'Australija',\n 'AW' => 'Aruba',\n 'AX' => 'Ålandski otoci',\n 'AZ' => 'Azerbajdžan',\n 'BA' => 'Bosna i Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladeš',\n 'BE' => 'Belgija',\n '", "suffix": "O' => 'Bolivija',\n 'BQ' => 'Karipski otoci Nizozemske',\n 'BR' => 'Brazil',\n 'BS' => 'Bahami',\n 'BT' => 'Butan',\n 'BV' => 'Otok Bouvet',\n 'BW' => 'Bocvana',\n 'BY' => 'Bjelorusija',\n 'BZ' => 'Belize',\n ", "middle": "BF' => 'Burkina Faso',\n 'BG' => 'Bugarska',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint Barthélemy',\n 'BM' => 'Bermudi',\n 'BN' => 'Brunej',\n 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/hr.php", "language": "php", "file_size": 7643, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua és Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albánia',\n 'AM' => 'Örményország',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktisz',\n 'AR' => 'Argentína',\n 'AS' => 'Amerikai Szamoa',\n 'AT' => 'Ausztria',\n 'AU' => 'Ausztrália',\n 'AW' => 'Aruba',\n 'AX' => 'Åland-szigetek',\n 'AZ' => 'Azerbajdzsán',\n 'BA' => 'Bosznia-Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Banglades',\n 'BE' => 'Belgium',\n ", "suffix": " 'BO' => 'Bolívia',\n 'BQ' => 'Holland Karib-térség',\n 'BR' => 'Brazília',\n 'BS' => 'Bahama-szigetek',\n 'BT' => 'Bhután',\n 'BV' => 'Bouvet-sziget',\n 'BW' => 'Botswana',\n 'BY' => 'Belarusz',\n 'BZ' =", "middle": " 'BF' => 'Burkina Faso',\n 'BG' => 'Bulgária',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/hu.php", "language": "php", "file_size": 7864, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Անտիգուա և Բարբուդա',\n 'AI' => 'Անգուիլա',\n 'AL' => 'Ալբանիա',\n 'AM' => 'Հայաստան',\n 'AO' => 'Անգոլա',\n 'AQ' => 'Անտարկտիդա',\n 'AR' => 'Արգենտինա',\n 'AS' => 'Ամերիկյան Սամոա',\n 'AT' => 'Ավստրիա',\n 'AU' => 'Ավստրալիա',\n 'AW' => 'Արուբա',\n 'AX' => 'Ալանդյան կղզիներ',\n 'AZ' => 'Ադրբեջան',\n 'BA' => 'Բոսնիա և Հերցեգովինա',\n 'BB' => 'Բարբադոս',\n 'BD' => 'Բանգլադեշ',\n 'BE' => 'Բելգիա',\n ", "suffix": "նեյ',\n 'BO' => 'Բոլիվիա',\n 'BQ' => 'Կարիբյան Նիդեռլանդներ',\n 'BR' => 'Բրազիլիա',\n 'BS' => 'Բահամյան կղզիներ',\n 'BT' => 'Բութան',\n 'BV' => 'Բուվե կղզի',\n 'BW' => 'Բոտսվանա',\n 'BY' => 'Բելառուս',\n ", "middle": " 'BF' => 'Բուրկինա Ֆասո',\n 'BG' => 'Բուլղարիա',\n 'BH' => 'Բահրեյն',\n 'BI' => 'Բուրունդի',\n 'BJ' => 'Բենին',\n 'BL' => 'Սուրբ Բարդուղիմեոս',\n 'BM' => 'Բերմուդներ',\n 'BN' => 'Բրու", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/hy.php", "language": "php", "file_size": 10210, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'Antigua e Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa american',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Insulas Åland',\n 'AZ' => 'Azerbaidzhan',\n 'BA' => 'Bosnia e Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgica',\n 'BF' =", "suffix": "=> 'Bolivia',\n 'BQ' => 'Paises Basse caribe',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Insula de Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Bielorussia',\n 'BZ' => 'Belize',\n ", "middle": "> 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sancte Bartholomeo',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ia.php", "language": "php", "file_size": 7660, "cut_index": 716, "middle_length": 229}} {"prefix": "Antigua dan Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Amerika',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Kepulauan Aland',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bosnia dan Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'BF' => 'B", "suffix": "livia',\n 'BQ' => 'Belanda Karibia',\n 'BR' => 'Brasil',\n 'BS' => 'Bahama',\n 'BT' => 'Bhutan',\n 'BV' => 'Pulau Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA' => 'Kanad", "middle": "urkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/id.php", "language": "php", "file_size": 7575, "cut_index": 716, "middle_length": 229}} {"prefix": " 'XK' => 'Kosovo',\n ],\n 'Names' => [\n 'AD' => 'Andorra',\n 'AL' => 'Albania',\n 'AQ' => 'Antarctica',\n 'AT' => 'Austria',\n 'AX' => 'Insules Åland',\n 'BA' => 'Bosnia e Herzegovina',\n 'BE' => 'Belgia',\n 'BG' => 'Bulgaria',\n 'BY' => 'Bielorussia',\n 'CH' => 'Svissia',\n 'CZ' => 'Tchekia',\n 'DE' => 'Germania',\n 'DK' => 'Dania',\n 'EE' => 'Estonia',\n 'ER' => 'Eritrea',\n 'ES' => 'Hispania',\n 'E", "suffix": "ana',\n 'HR' => 'Croatia',\n 'HU' => 'Hungaria',\n 'ID' => 'Indonesia',\n 'IE' => 'Irland',\n 'IM' => 'Insul de Man',\n 'IN' => 'India',\n 'IR' => 'Iran',\n 'IS' => 'Island',\n 'IT' => 'Italia',\n ", "middle": "T' => 'Etiopia',\n 'FI' => 'Finland',\n 'FJ' => 'Fidji',\n 'FR' => 'Francia',\n 'GB' => 'Unit Reyia',\n 'GG' => 'Guernsey',\n 'GI' => 'Gibraltar',\n 'GR' => 'Grecia',\n 'GY' => 'Guy", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ie.php", "language": "php", "file_size": 2374, "cut_index": 563, "middle_length": 229}} {"prefix": "' => 'Antigua na Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Argentina',\n 'AS' => 'American Samoa',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Åland Islands',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bosnia & Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgium',\n 'BF' =>", "suffix": "livia',\n 'BQ' => 'Caribbean Netherlands',\n 'BR' => 'Brazil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvet Island',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA' =", "middle": " 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'St. Barthélemy',\n 'BM' => 'Bemuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ig.php", "language": "php", "file_size": 7568, "cut_index": 716, "middle_length": 229}} {"prefix": "Antigua dan Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Amerika',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Kepulauan Aland',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bosnia dan Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'BF' => 'B", "suffix": "livia',\n 'BQ' => 'Belanda Karibia',\n 'BR' => 'Brasil',\n 'BS' => 'Bahama',\n 'BT' => 'Bhutan',\n 'BV' => 'Pulau Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA' => 'Kanad", "middle": "urkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/in.php", "language": "php", "file_size": 7575, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antígva og Barbúda',\n 'AI' => 'Angvilla',\n 'AL' => 'Albanía',\n 'AM' => 'Armenía',\n 'AO' => 'Angóla',\n 'AQ' => 'Suðurskautslandið',\n 'AR' => 'Argentína',\n 'AS' => 'Bandaríska Samóa',\n 'AT' => 'Austurríki',\n 'AU' => 'Ástralía',\n 'AW' => 'Arúba',\n 'AX' => 'Álandseyjar',\n 'AZ' => 'Aserbaídsjan',\n 'BA' => 'Bosnía og Hersegóvína',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladess',\n 'BE' => 'Belg", "suffix": "BN' => 'Brúnei',\n 'BO' => 'Bólivía',\n 'BQ' => 'Karíbahafshluti Hollands',\n 'BR' => 'Brasilía',\n 'BS' => 'Bahamaeyjar',\n 'BT' => 'Bútan',\n 'BV' => 'Bouveteyja',\n 'BW' => 'Botsvana',\n 'BY' => 'Hvíta-Rús", "middle": "ía',\n 'BF' => 'Búrkína Fasó',\n 'BG' => 'Búlgaría',\n 'BH' => 'Barein',\n 'BI' => 'Búrúndí',\n 'BJ' => 'Benín',\n 'BL' => 'Sankti Bartólómeusareyjar',\n 'BM' => 'Bermúdaeyjar',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/is.php", "language": "php", "file_size": 7865, "cut_index": 716, "middle_length": 229}} {"prefix": " => 'Antigua e Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antartide',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Americane',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Isole Åland',\n 'AZ' => 'Azerbaigian',\n 'BA' => 'Bosnia ed Erzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgio',\n 'BF' => 'Bu", "suffix": "ivia',\n 'BQ' => 'Caraibi Olandesi',\n 'BR' => 'Brasile',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Isola Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Bielorussia',\n 'BZ' => 'Belize',\n 'CA' => ", "middle": "rkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bol", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/it.php", "language": "php", "file_size": 7570, "cut_index": 716, "middle_length": 229}} {"prefix": " => 'אנטיגואה וברבודה',\n 'AI' => 'אנגווילה',\n 'AL' => 'אלבניה',\n 'AM' => 'ארמניה',\n 'AO' => 'אנגולה',\n 'AQ' => 'אנטארקטיקה',\n 'AR' => 'ארגנטינה',\n 'AS' => 'סמואה האמריקנית',\n 'AT' => 'אוסטריה',\n 'AU' => 'אוסטרליה',\n 'AW' => 'ארובה',\n 'AX' => 'איי אולנד',\n 'AZ' => 'אזרבייג׳ן',\n 'BA' => 'בוסניה והרצגובינה',\n 'BB' => 'ברבדוס',\n 'BD' => 'בנגלדש',\n 'BE' => 'בלגיה',\n 'BF' => 'בורקינה פאסו',\n ", "suffix": "האיים הקריביים ההולנדיים',\n 'BR' => 'ברזיל',\n 'BS' => 'איי בהאמה',\n 'BT' => 'בהוטן',\n 'BV' => 'האי בובה',\n 'BW' => 'בוטסואנה',\n 'BY' => 'בלארוס',\n 'BZ' => 'בליז',\n 'CA' => 'קנדה',\n 'CC' => 'איי", "middle": " 'BG' => 'בולגריה',\n 'BH' => 'בחריין',\n 'BI' => 'בורונדי',\n 'BJ' => 'בנין',\n 'BL' => 'סנט ברתולומיאו',\n 'BM' => 'ברמודה',\n 'BN' => 'ברוניי',\n 'BO' => 'בוליביה',\n 'BQ' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/iw.php", "language": "php", "file_size": 9276, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AI' => 'アンギラ',\n 'AL' => 'アルバニア',\n 'AM' => 'アルメニア',\n 'AO' => 'アンゴラ',\n 'AQ' => '南極',\n 'AR' => 'アルゼンチン',\n 'AS' => '米領サモア',\n 'AT' => 'オーストリア',\n 'AU' => 'オーストラリア',\n 'AW' => 'アルバ',\n 'AX' => 'オーランド諸島',\n 'AZ' => 'アゼルバイジャン',\n 'BA' => 'ボスニア・ヘルツェゴビナ',\n 'BB' => 'バルバドス',\n 'BD' => 'バングラデシュ',\n 'BE' => 'ベルギー',\n 'BF' => 'ブルキナファソ',\n 'BG' => 'ブルガリア',\n 'BH' => 'バーレーン',\n 'BI' => 'ブルンジ',\n ", "suffix": " 'BV' => 'ブーベ島',\n 'BW' => 'ボツワナ',\n 'BY' => 'ベラルーシ',\n 'BZ' => 'ベリーズ',\n 'CA' => 'カナダ',\n 'CC' => 'ココス(キーリング)諸島',\n 'CD' => 'コンゴ民主共和国(キンシャサ)',\n 'CF' => '中央アフリカ共和国',\n 'CG' => 'コンゴ共和国(ブラザビル)',\n 'CH' =", "middle": " 'BJ' => 'ベナン',\n 'BL' => 'サン・バルテルミー',\n 'BM' => 'バミューダ',\n 'BN' => 'ブルネイ',\n 'BO' => 'ボリビア',\n 'BQ' => 'オランダ領カリブ',\n 'BR' => 'ブラジル',\n 'BS' => 'バハマ',\n 'BT' => 'ブータン',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ja.php", "language": "php", "file_size": 9213, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Антыгуа і Барбуда',\n 'AI' => 'Ангілья',\n 'AL' => 'Албанія',\n 'AM' => 'Арменія',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктыка',\n 'AR' => 'Аргенціна',\n 'AS' => 'Амерыканскае Самоа',\n 'AT' => 'Аўстрыя',\n 'AU' => 'Аўстралія',\n 'AW' => 'Аруба',\n 'AX' => 'Аландскія астравы',\n 'AZ' => 'Азербайджан',\n 'BA' => 'Боснія і Герцагавіна',\n 'BB' => 'Барбадас',\n 'BD' => 'Бангладэш',\n 'BE' => 'Бельгія',\n ", "suffix": "й',\n 'BO' => 'Балівія',\n 'BQ' => 'Карыбскія Нідэрланды',\n 'BR' => 'Бразілія',\n 'BS' => 'Багамскія астравы',\n 'BT' => 'Бутан',\n 'BV' => 'Востраў Бувэ',\n 'BW' => 'Батсвана',\n 'BY' => 'Беларусь',\n ", "middle": " 'BF' => 'Буркіна-Фасо',\n 'BG' => 'Балгарыя',\n 'BH' => 'Бахрэйн',\n 'BI' => 'Бурундзі',\n 'BJ' => 'Бенін',\n 'BL' => 'Сен-Бартэльмі',\n 'BM' => 'Бермудскія астравы',\n 'BN' => 'Бруне", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/be.php", "language": "php", "file_size": 10141, "cut_index": 716, "middle_length": 229}} {"prefix": "I' => 'Angiya',\n 'AL' => 'Alibani',\n 'AM' => 'Arimeni',\n 'AO' => 'Angola',\n 'AR' => 'Arizantin',\n 'AS' => 'Samowa amerikani',\n 'AT' => 'Otirisi',\n 'AU' => 'Ositirali',\n 'AW' => 'Aruba',\n 'AZ' => 'Azɛrbayjaŋ',\n 'BA' => 'Bozni-Ɛrizigovini',\n 'BB' => 'Barbadi',\n 'BD' => 'Bɛngiladɛsi',\n 'BE' => 'Bɛliziki',\n 'BF' => 'Burukina Faso',\n 'BG' => 'Buligari',\n 'BH' => 'Bareyini',\n 'BI' => 'Burundi',\n ", "suffix": "=> 'Belarusi',\n 'BZ' => 'Belizi',\n 'CA' => 'Kanada',\n 'CD' => 'Kongo ka republiki demɔkratiki',\n 'CF' => 'Santarafiriki',\n 'CG' => 'Kongo',\n 'CH' => 'Suwisi',\n 'CI' => 'Kodiwari',\n 'CK' => 'Kuki Gun',", "middle": " 'BJ' => 'Benɛn',\n 'BM' => 'Bermudi',\n 'BN' => 'Burinɛyi',\n 'BO' => 'Bolivi',\n 'BR' => 'Berezili',\n 'BS' => 'Bahamasi',\n 'BT' => 'Butaŋ',\n 'BW' => 'Bɔtisiwana',\n 'BY' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/bm.php", "language": "php", "file_size": 6570, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua-ha-Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Arcʼhantina',\n 'AS' => 'Samoa Amerikan',\n 'AT' => 'Aostria',\n 'AU' => 'Aostralia',\n 'AW' => 'Aruba',\n 'AX' => 'Inizi Åland',\n 'AZ' => 'Azerbaidjan',\n 'BA' => 'Bosnia-ha-Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'B", "suffix": "> 'Bolivia',\n 'BQ' => 'Karib Nederlandat',\n 'BR' => 'Brazil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhoutan',\n 'BV' => 'Enez Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA' =", "middle": "F' => 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sant-Bertele',\n 'BM' => 'Bermudez',\n 'BN' => 'Brunei',\n 'BO' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/br.php", "language": "php", "file_size": 7506, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'Антигва и Барбуда',\n 'AI' => 'Ангвила',\n 'AL' => 'Албанија',\n 'AM' => 'Арменија',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктик',\n 'AR' => 'Аргентина',\n 'AS' => 'Америчка Самоа',\n 'AT' => 'Аустрија',\n 'AU' => 'Аустралија',\n 'AW' => 'Аруба',\n 'AX' => 'Оландска острва',\n 'AZ' => 'Азербејџан',\n 'BA' => 'Босна и Херцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Белгија',\n 'BF", "suffix": " => 'Боливија',\n 'BQ' => 'Карипска Холандија',\n 'BR' => 'Бразил',\n 'BS' => 'Бахами',\n 'BT' => 'Бутан',\n 'BV' => 'Острво Буве',\n 'BW' => 'Боцвана',\n 'BY' => 'Бјелорусија',\n 'BZ' => 'Белизе',\n 'C", "middle": "' => 'Буркина Фасо',\n 'BG' => 'Бугарска',\n 'BH' => 'Бахреин',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Свети Бартоломеј',\n 'BM' => 'Бермуди',\n 'BN' => 'Брунеј',\n 'BO'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/bs_Cyrl.php", "language": "php", "file_size": 9968, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Антигуа а, Барбуда а',\n 'AI' => 'Ангилья',\n 'AL' => 'Албани',\n 'AM' => 'Эрмалойчоь',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктида',\n 'AR' => 'Аргентина',\n 'AS' => 'Американ Самоа',\n 'AT' => 'Австри',\n 'AU' => 'Австрали',\n 'AW' => 'Аруба',\n 'AX' => 'Аландан гӀайренаш',\n 'AZ' => 'Азербайджан',\n 'BA' => 'Босни а, Герцеговина а',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельги',\n", "suffix": "уней-Даруссалам',\n 'BO' => 'Боливи',\n 'BQ' => 'Бонэйр, Синт-Эстатиус а, Саба а',\n 'BR' => 'Бразили',\n 'BS' => 'Багаман гӀайренаш',\n 'BT' => 'Бутан',\n 'BV' => 'Бувен гӀайре',\n 'BW' => 'Ботсвана',\n 'BY'", "middle": " 'BF' => 'Буркина- Фасо',\n 'BG' => 'Болгари',\n 'BH' => 'Бахрейн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сен-Бартельми',\n 'BM' => 'Бермудан гӀайренаш',\n 'BN' => 'Бр", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ce.php", "language": "php", "file_size": 10081, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'Антигуапа Барбуда',\n 'AI' => 'Ангилья',\n 'AL' => 'Албани',\n 'AM' => 'Армени',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктида',\n 'AR' => 'Аргентина',\n 'AS' => 'Америка Самойи',\n 'AT' => 'Австри',\n 'AU' => 'Австрали',\n 'AW' => 'Аруба',\n 'AX' => 'Аланд утравӗсем',\n 'AZ' => 'Азербайджан',\n 'BA' => 'Боснипе Герцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельги',\n 'BF' => 'Б", "suffix": "> 'Боливи',\n 'BQ' => 'Бонэйр, Синт-Эстатиуспа Саба',\n 'BR' => 'Бразили',\n 'BS' => 'Багама утравӗсем',\n 'BT' => 'Бутан',\n 'BV' => 'Буве утравӗ',\n 'BW' => 'Ботсвана',\n 'BY' => 'Беларусь',\n 'BZ' => 'Бели", "middle": "уркина-Фасо',\n 'BG' => 'Болгари',\n 'BH' => 'Бахрейн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сен-Бартелеми',\n 'BM' => 'Бермуд утравӗсем',\n 'BN' => 'Бруней',\n 'BO' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/cv.php", "language": "php", "file_size": 9761, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua og Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albanien',\n 'AM' => 'Armenien',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktis',\n 'AR' => 'Argentina',\n 'AS' => 'Amerikansk Samoa',\n 'AT' => 'Østrig',\n 'AU' => 'Australien',\n 'AW' => 'Aruba',\n 'AX' => 'Åland',\n 'AZ' => 'Aserbajdsjan',\n 'BA' => 'Bosnien-Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgien',\n 'B", "suffix": "O' => 'Bolivia',\n 'BQ' => 'De tidligere Nederlandske Antiller',\n 'BR' => 'Brasilien',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvetøen',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Be", "middle": "F' => 'Burkina Faso',\n 'BG' => 'Bulgarien',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/da.php", "language": "php", "file_size": 7583, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua und Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albanien',\n 'AM' => 'Armenien',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktis',\n 'AR' => 'Argentinien',\n 'AS' => 'Amerikanisch-Samoa',\n 'AT' => 'Österreich',\n 'AU' => 'Australien',\n 'AW' => 'Aruba',\n 'AX' => 'Ålandinseln',\n 'AZ' => 'Aserbaidschan',\n 'BA' => 'Bosnien und Herzegowina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesch',\n 'BE' => '", "suffix": "runei Darussalam',\n 'BO' => 'Bolivien',\n 'BQ' => 'Karibische Niederlande',\n 'BR' => 'Brasilien',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvetinsel',\n 'BW' => 'Botsuana',\n 'BY' => 'Belarus',", "middle": "Belgien',\n 'BF' => 'Burkina Faso',\n 'BG' => 'Bulgarien',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'St. Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/de.php", "language": "php", "file_size": 7693, "cut_index": 716, "middle_length": 229}} {"prefix": "igua kple Barbuda nutome',\n 'AI' => 'Anguilla nutome',\n 'AL' => 'Albania nutome',\n 'AM' => 'Armenia nutome',\n 'AO' => 'Angola nutome',\n 'AQ' => 'Antartica nutome',\n 'AR' => 'Argentina nutome',\n 'AS' => 'Amerika Samoa nutome',\n 'AT' => 'Austria nutome',\n 'AU' => 'Australia nutome',\n 'AW' => 'Aruba nutome',\n 'AX' => 'Åland ƒudomekpo nutome',\n 'AZ' => 'Azerbaijan nutome',\n 'BA' => 'Bosnia kple Herzergovina nutome',\n ", "suffix": "undi nutome',\n 'BJ' => 'Benin nutome',\n 'BL' => 'Saint Barthélemy nutome',\n 'BM' => 'Bermuda nutome',\n 'BN' => 'Brunei nutome',\n 'BO' => 'Bolivia nutome',\n 'BR' => 'Brazil nutome',\n 'BS' => 'Bahamas nutome',", "middle": " 'BB' => 'Barbados nutome',\n 'BD' => 'Bangladesh nutome',\n 'BE' => 'Belgium nutome',\n 'BF' => 'Burkina Faso nutome',\n 'BG' => 'Bulgaria nutome',\n 'BH' => 'Bahrain nutome',\n 'BI' => 'Bur", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ee.php", "language": "php", "file_size": 9023, "cut_index": 716, "middle_length": 229}} {"prefix": " 'UserAssignedNames' => [],\n 'Names' => [\n 'AG' => 'Antigua and Barbuda',\n 'BA' => 'Bosnia and Herzegovina',\n 'BL' => 'Saint-Barthélemy',\n 'GS' => 'South Georgia and South Sandwich Islands',\n 'HM' => 'Heard and McDonald Islands',\n 'KN' => 'Saint Kitts and Nevis',\n 'LC' => 'Saint Lucia',\n 'MF' => 'Saint Martin',\n 'PM' => 'Saint-Pierre-et-Miquelon',\n 'PS' => 'Palestinian territories',\n 'SH' => 'Saint Helena',\n 'SJ' => 'Sv", "suffix": " Príncipe',\n 'TC' => 'Turks and Caicos Islands',\n 'TT' => 'Trinidad and Tobago',\n 'UM' => 'US Outlying Islands',\n 'VC' => 'Saint Vincent and the Grenadines',\n 'VI' => 'US Virgin Islands',\n 'WF' => 'Wallis and Futun", "middle": "albard and Jan Mayen',\n 'ST' => 'São Tomé and", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/en_CA.php", "language": "php", "file_size": 855, "cut_index": 529, "middle_length": 52}} {"prefix": " 'ar_OM' => '阿拉伯语(阿曼)',\n 'ar_PS' => '阿拉伯语(巴勒斯坦领土)',\n 'ar_QA' => '阿拉伯语(卡塔尔)',\n 'ar_SA' => '阿拉伯语(沙特阿拉伯)',\n 'ar_SD' => '阿拉伯语(苏丹)',\n 'ar_SO' => '阿拉伯语(索马里)',\n 'ar_SS' => '阿拉伯语(南苏丹)',\n 'ar_SY' => '阿拉伯语(叙利亚)',\n 'ar_TD' => '阿拉伯语(乍得)',\n 'ar_TN' => '阿拉伯语(突尼斯)',\n 'ar_YE' => '阿拉伯语(也门)',\n 'as' => '阿萨姆语',\n 'as_IN' => '阿萨姆语(印度)',\n 'az' => '阿塞拜疆语',\n 'az_AZ' => '阿塞拜疆语(阿塞拜疆)',\n 'az_Cyrl' => '阿塞拜疆语(西里尔文)',\n 'az_Cy", "suffix": " 'bg' => '保加利亚语',\n 'bg_BG' => '保加利亚语(保加利亚)',\n 'bm' => '班巴拉语',\n 'bm_ML' => '班巴拉语(马里)',\n 'bn' => '孟加拉语',\n 'bn_BD' => '孟加拉语(孟加拉国)',\n 'bn_IN' => '孟加拉语(印度)',\n 'bo' => '藏语',\n 'bo_CN' => '藏语(中国)',\n ", "middle": "rl_AZ' => '阿塞拜疆语(西里尔文,阿塞拜疆)',\n 'az_Latn' => '阿塞拜疆语(拉丁文)',\n 'az_Latn_AZ' => '阿塞拜疆语(拉丁文,阿塞拜疆)',\n 'ba' => '巴什基尔语',\n 'ba_RU' => '巴什基尔语(俄罗斯)',\n 'be' => '白俄罗斯语',\n 'be_BY' => '白俄罗斯语(白俄罗斯)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/zh.php", "language": "php", "file_size": 32534, "cut_index": 1331, "middle_length": 229}} {"prefix": "' => '阿拉伯文(厄立特里亞)',\n 'ar_KM' => '阿拉伯文(科摩羅)',\n 'ar_MR' => '阿拉伯文(毛里塔尼亞)',\n 'ar_PS' => '阿拉伯文(巴勒斯坦領土)',\n 'ar_QA' => '阿拉伯文(卡塔爾)',\n 'ar_SA' => '阿拉伯文(沙地阿拉伯)',\n 'ar_SO' => '阿拉伯文(索馬里)',\n 'ar_TD' => '阿拉伯文(乍得)',\n 'ar_YE' => '阿拉伯文(也門)',\n 'az' => '阿塞拜疆文',\n 'az_AZ' => '阿塞拜疆文(亞塞拜疆)',\n 'az_Cyrl' => '阿塞拜疆文(西里爾文字)',\n 'az_Cyrl_AZ' => '阿塞拜疆文(西里爾文字,亞塞拜疆)',\n 'az_Latn' => '阿塞拜疆文(拉丁字母)',\n 'az_Latn_AZ' => '阿塞拜疆文(拉丁字母,亞塞拜疆)',\n 'b", "suffix": "西里爾文字)',\n 'bs_Cyrl_BA' => '波斯尼亞文(西里爾文字,波斯尼亞和黑塞哥維那)',\n 'bs_Latn' => '波斯尼亞文(拉丁字母)',\n 'bs_Latn_BA' => '波斯尼亞文(拉丁字母,波斯尼亞和黑塞哥維那)',\n 'ca' => '加泰隆尼亞文',\n 'ca_AD' => '加泰隆尼亞文(安道爾)',\n 'ca_ES' => '加泰隆尼亞文(西班牙)',\n 'ca_FR' ", "middle": "a' => '巴什基爾文',\n 'ba_RU' => '巴什基爾文(俄羅斯)',\n 'bm_ML' => '班巴拉文(馬里)',\n 'br' => '布里多尼文',\n 'br_FR' => '布里多尼文(法國)',\n 'bs' => '波斯尼亞文',\n 'bs_BA' => '波斯尼亞文(波斯尼亞和黑塞哥維那)',\n 'bs_Cyrl' => '波斯尼亞文(", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/zh_Hant_HK.php", "language": "php", "file_size": 12108, "cut_index": 716, "middle_length": 229}} {"prefix": "'ar_OM' => '阿拉伯文(阿曼)',\n 'ar_PS' => '阿拉伯文(巴勒斯坦自治區)',\n 'ar_QA' => '阿拉伯文(卡達)',\n 'ar_SA' => '阿拉伯文(沙烏地阿拉伯)',\n 'ar_SD' => '阿拉伯文(蘇丹)',\n 'ar_SO' => '阿拉伯文(索馬利亞)',\n 'ar_SS' => '阿拉伯文(南蘇丹)',\n 'ar_SY' => '阿拉伯文(敘利亞)',\n 'ar_TD' => '阿拉伯文(查德)',\n 'ar_TN' => '阿拉伯文(突尼西亞)',\n 'ar_YE' => '阿拉伯文(葉門)',\n 'as' => '阿薩姆文',\n 'as_IN' => '阿薩姆文(印度)',\n 'az' => '亞塞拜然文',\n 'az_AZ' => '亞塞拜然文(亞塞拜然)',\n 'az_Cyrl' => '亞塞拜然文(西里爾文字)',\n 'az_C", "suffix": " 'bg' => '保加利亞文',\n 'bg_BG' => '保加利亞文(保加利亞)',\n 'bm' => '班巴拉文',\n 'bm_ML' => '班巴拉文(馬利)',\n 'bn' => '孟加拉文',\n 'bn_BD' => '孟加拉文(孟加拉)',\n 'bn_IN' => '孟加拉文(印度)',\n 'bo' => '藏文',\n 'bo_CN' => '藏文(中國)',\n ", "middle": "yrl_AZ' => '亞塞拜然文(西里爾文字,亞塞拜然)',\n 'az_Latn' => '亞塞拜然文(拉丁字母)',\n 'az_Latn_AZ' => '亞塞拜然文(拉丁字母,亞塞拜然)',\n 'ba' => '巴什喀爾文',\n 'ba_RU' => '巴什喀爾文(俄羅斯)',\n 'be' => '白俄羅斯文',\n 'be_BY' => '白俄羅斯文(白俄羅斯)',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/zh_Hant.php", "language": "php", "file_size": 32312, "cut_index": 1331, "middle_length": 229}} {"prefix": "ባርቡዳ',\n 'AI' => 'አንጉይላ',\n 'AL' => 'አልባኒያ',\n 'AM' => 'አርሜኒያ',\n 'AO' => 'አንጐላ',\n 'AQ' => 'አንታርክቲካ',\n 'AR' => 'አርጀንቲና',\n 'AS' => 'የአሜሪካ ሳሞአ',\n 'AT' => 'ኦስትሪያ',\n 'AU' => 'አውስትራልያ',\n 'AW' => 'አሩባ',\n 'AX' => 'የአላንድ ደሴቶች',\n 'AZ' => 'አዘርባጃን',\n 'BA' => 'ቦስኒያ እና ሄርዞጎቪኒያ',\n 'BB' => 'ባርቤዶስ',\n 'BD' => 'ባንግላዲሽ',\n 'BE' => 'ቤልጄም',\n 'BF' => 'ቡርኪና ፋሶ',\n 'BG' => 'ቡልጋሪያ',\n 'BH' => 'ባህሬን',\n ", "suffix": " 'BT' => 'ቡህታን',\n 'BV' => 'ቡቬት ደሴት',\n 'BW' => 'ቦትስዋና',\n 'BY' => 'ቤላሩስ',\n 'BZ' => 'በሊዝ',\n 'CA' => 'ካናዳ',\n 'CC' => 'ኮኮስ(ኬሊንግ) ደሴቶች',\n 'CD' => 'ኮንጎ-ኪንሻሳ',\n 'CF' => 'ማዕከላዊ አፍሪካ ሪፑብሊክ',\n 'CG' => 'ኮን", "middle": " 'BI' => 'ብሩንዲ',\n 'BJ' => 'ቤኒን',\n 'BL' => 'ሴንት ባርቴሌሚ',\n 'BM' => 'ቤርሙዳ',\n 'BN' => 'ብሩኒ',\n 'BO' => 'ቦሊቪያ',\n 'BQ' => 'የካሪቢያን ኔዘርላንድስ',\n 'BR' => 'ብራዚል',\n 'BS' => 'ባሃማስ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/am.php", "language": "php", "file_size": 9507, "cut_index": 716, "middle_length": 229}} {"prefix": "G' => 'أنتيغوا وبربودا',\n 'AI' => 'أنغويلا',\n 'AL' => 'ألبانيا',\n 'AM' => 'أرمينيا',\n 'AO' => 'أنغولا',\n 'AQ' => 'أنتاركتيكا',\n 'AR' => 'الأرجنتين',\n 'AS' => 'ساموا الأمريكية',\n 'AT' => 'النمسا',\n 'AU' => 'أستراليا',\n 'AW' => 'أروبا',\n 'AX' => 'جزر آلاند',\n 'AZ' => 'أذربيجان',\n 'BA' => 'البوسنة والهرسك',\n 'BB' => 'بربادوس',\n 'BD' => 'بنغلاديش',\n 'BE' => 'بلجيكا',\n 'BF' => 'بوركينا فاسو',\n ", "suffix": " 'هولندا الكاريبية',\n 'BR' => 'البرازيل',\n 'BS' => 'جزر البهاما',\n 'BT' => 'بوتان',\n 'BV' => 'جزيرة بوفيه',\n 'BW' => 'بوتسوانا',\n 'BY' => 'بيلاروس',\n 'BZ' => 'بليز',\n 'CA' => 'كندا',\n 'CC' => '", "middle": " 'BG' => 'بلغاريا',\n 'BH' => 'البحرين',\n 'BI' => 'بوروندي',\n 'BJ' => 'بنين',\n 'BL' => 'سان بارتليمي',\n 'BM' => 'برمودا',\n 'BN' => 'بروناي',\n 'BO' => 'بوليفيا',\n 'BQ' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ar.php", "language": "php", "file_size": 9607, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Антигуа һәм Барбуда',\n 'AI' => 'Ангилья',\n 'AL' => 'Албания',\n 'AM' => 'Әрмәнстан',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктида',\n 'AR' => 'Аргентина',\n 'AS' => 'Америка Самоаһы',\n 'AT' => 'Австрия',\n 'AU' => 'Австралия',\n 'AW' => 'Аруба',\n 'AX' => 'Аланд утрауҙары',\n 'AZ' => 'Әзербайжан',\n 'BA' => 'Босния һәм Герцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельгия',\n ", "suffix": "\n 'BO' => 'Боливия',\n 'BQ' => 'Карибтағы Нидерланд',\n 'BR' => 'Бразилия',\n 'BS' => 'Багам утрауҙары',\n 'BT' => 'Бутан',\n 'BV' => 'Буве утрауы',\n 'BW' => 'Ботсвана',\n 'BY' => 'Беларусь',\n 'BZ' =", "middle": " 'BF' => 'Буркина-Фасо',\n 'BG' => 'Болгария',\n 'BH' => 'Бәхрәйн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сен-Бартелеми',\n 'BM' => 'Бермуд утрауҙары',\n 'BN' => 'Бруней',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ba.php", "language": "php", "file_size": 10021, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Антигуа и Барбуда',\n 'AI' => 'Ангуила',\n 'AL' => 'Албания',\n 'AM' => 'Армения',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктика',\n 'AR' => 'Аржентина',\n 'AS' => 'Американска Самоа',\n 'AT' => 'Австрия',\n 'AU' => 'Австралия',\n 'AW' => 'Аруба',\n 'AX' => 'Оландски острови',\n 'AZ' => 'Азербайджан',\n 'BA' => 'Босна и Херцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Белгия',\n '", "suffix": "салам',\n 'BO' => 'Боливия',\n 'BQ' => 'Карибска Нидерландия',\n 'BR' => 'Бразилия',\n 'BS' => 'Бахамски острови',\n 'BT' => 'Бутан',\n 'BV' => 'остров Буве',\n 'BW' => 'Ботсвана',\n 'BY' => 'Беларус',\n ", "middle": "BF' => 'Буркина Фасо',\n 'BG' => 'България',\n 'BH' => 'Бахрейн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сен Бартелеми',\n 'BM' => 'Бермудски острови',\n 'BN' => 'Бруней Дарус", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/bg.php", "language": "php", "file_size": 9940, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigva i Barbuda',\n 'AI' => 'Angvila',\n 'AL' => 'Albanija',\n 'AM' => 'Armenija',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentina',\n 'AS' => 'Američka Samoa',\n 'AT' => 'Austrija',\n 'AU' => 'Australija',\n 'AW' => 'Aruba',\n 'AX' => 'Olandska ostrva',\n 'AZ' => 'Azerbejdžan',\n 'BA' => 'Bosna i Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladeš',\n 'BE' => 'Belgija',\n ", "suffix": "BO' => 'Bolivija',\n 'BQ' => 'Karipska Holandija',\n 'BR' => 'Brazil',\n 'BS' => 'Bahami',\n 'BT' => 'Butan',\n 'BV' => 'Ostrvo Buve',\n 'BW' => 'Bocvana',\n 'BY' => 'Bjelorusija',\n 'BZ' => 'Belize',\n ", "middle": "'BF' => 'Burkina Faso',\n 'BG' => 'Bugarska',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sveti Bartolomej',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunej',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/bs.php", "language": "php", "file_size": 7653, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'Antigua a Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albánie',\n 'AM' => 'Arménie',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktida',\n 'AR' => 'Argentina',\n 'AS' => 'Americká Samoa',\n 'AT' => 'Rakousko',\n 'AU' => 'Austrálie',\n 'AW' => 'Aruba',\n 'AX' => 'Ålandy',\n 'AZ' => 'Ázerbájdžán',\n 'BA' => 'Bosna a Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladéš',\n 'BE' => 'Belgie',\n 'BF' => 'Burk", "suffix": "vie',\n 'BQ' => 'Karibské Nizozemsko',\n 'BR' => 'Brazílie',\n 'BS' => 'Bahamy',\n 'BT' => 'Bhútán',\n 'BV' => 'Bouvetův ostrov',\n 'BW' => 'Botswana',\n 'BY' => 'Bělorusko',\n 'BZ' => 'Belize',\n 'CA' ", "middle": "ina Faso',\n 'BG' => 'Bulharsko',\n 'BH' => 'Bahrajn',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Svatý Bartoloměj',\n 'BM' => 'Bermudy',\n 'BN' => 'Brunej',\n 'BO' => 'Bolí", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/cs.php", "language": "php", "file_size": 7755, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua a Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Yr Ariannin',\n 'AS' => 'Samoa America',\n 'AT' => 'Awstria',\n 'AU' => 'Awstralia',\n 'AW' => 'Aruba',\n 'AX' => 'Ynysoedd Åland',\n 'AZ' => 'Aserbaijan',\n 'BA' => 'Bosnia a Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Gwlad Belg',\n ", "suffix": "'BO' => 'Bolifia',\n 'BQ' => 'Antilles yr Iseldiroedd',\n 'BR' => 'Brasil',\n 'BS' => 'Y Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Ynys Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarws',\n 'BZ' => 'Belize',\n ", "middle": " 'BF' => 'Burkina Faso',\n 'BG' => 'Bwlgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/cy.php", "language": "php", "file_size": 7668, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Αντίγκουα και Μπαρμπούντα',\n 'AI' => 'Ανγκουίλα',\n 'AL' => 'Αλβανία',\n 'AM' => 'Αρμενία',\n 'AO' => 'Αγκόλα',\n 'AQ' => 'Ανταρκτική',\n 'AR' => 'Αργεντινή',\n 'AS' => 'Αμερικανική Σαμόα',\n 'AT' => 'Αυστρία',\n 'AU' => 'Αυστραλία',\n 'AW' => 'Αρούμπα',\n 'AX' => 'Νήσοι Όλαντ',\n 'AZ' => 'Αζερμπαϊτζάν',\n 'BA' => 'Βοσνία - Ερζεγοβίνη',\n 'BB' => 'Μπαρμπέιντος',\n 'BD' => 'Μπανγκλαντές',\n 'BE' => '", "suffix": " 'BN' => 'Μπρουνέι',\n 'BO' => 'Βολιβία',\n 'BQ' => 'Ολλανδία Καραϊβικής',\n 'BR' => 'Βραζιλία',\n 'BS' => 'Μπαχάμες',\n 'BT' => 'Μπουτάν',\n 'BV' => 'Νήσος Μπουβέ',\n 'BW' => 'Μποτσουάνα',\n 'BY' => 'Λευκορ", "middle": "Βέλγιο',\n 'BF' => 'Μπουρκίνα Φάσο',\n 'BG' => 'Βουλγαρία',\n 'BH' => 'Μπαχρέιν',\n 'BI' => 'Μπουρούντι',\n 'BJ' => 'Μπενίν',\n 'BL' => 'Άγιος Βαρθολομαίος',\n 'BM' => 'Βερμούδες',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/el.php", "language": "php", "file_size": 10229, "cut_index": 716, "middle_length": 229}} {"prefix": "Agbègbè ara Palɛsítínì)',\n 'ar_TD' => 'Èdè Lárúbáwá (Shààdì)',\n 'ar_TN' => 'Èdè Lárúbáwá (Tunishia)',\n 'az_AZ' => 'Èdè Asabaijani (Asɛ́bájánì)',\n 'az_Cyrl' => 'Èdè Asabaijani (èdè ilɛ̀ Rɔ́shíà)',\n 'az_Cyrl_AZ' => 'Èdè Asabaijani (èdè ilɛ̀ Rɔ́shíà, Asɛ́bájánì)',\n 'az_Latn_AZ' => 'Èdè Asabaijani (Èdè Látìn, Asɛ́bájánì)',\n 'ba_RU' => 'Èdè Bashiri (Rɔshia)',\n 'bo_CN' => 'Tibetán (Sháínà)',\n 'bs_BA' => 'Èdè Bosnia (Bɔ̀síníà àti Ɛtisɛgófínà)',\n ", "suffix": " Chechen (Rɔshia)',\n 'cs_CZ' => 'Èdè Seeki (Shɛ́ɛ́kì)',\n 'cv' => 'Èdè Shufasi',\n 'cv_RU' => 'Èdè Shufasi (Rɔshia)',\n 'cy_GB' => 'Èdè Welshi (Gɛ̀ɛ́sì)',\n 'da_DK' => 'Èdè Denmaki (Dɛ́mákì)',\n 'de_BE' => 'Èdè Jámánì (", "middle": " 'bs_Cyrl' => 'Èdè Bosnia (èdè ilɛ̀ Rɔ́shíà)',\n 'bs_Cyrl_BA' => 'Èdè Bosnia (èdè ilɛ̀ Rɔ́shíà, Bɔ̀síníà àti Ɛtisɛgófínà)',\n 'bs_Latn_BA' => 'Èdè Bosnia (Èdè Látìn, Bɔ̀síníà àti Ɛtisɛgófínà)',\n 'ce_RU' => 'Èdè", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/yo_BJ.php", "language": "php", "file_size": 19649, "cut_index": 921, "middle_length": 229}} {"prefix": "=> 'Antigua ne Baabuda',\n 'AI' => 'Anguila',\n 'AL' => 'Albenia',\n 'AM' => 'Aamenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antaatika',\n 'AR' => 'Agyɛntina',\n 'AS' => 'Amɛrika Samoa',\n 'AT' => 'Ɔstria',\n 'AU' => 'Ɔstrelia',\n 'AW' => 'Aruba',\n 'AX' => 'Aland Aeland',\n 'AZ' => 'Asabegyan',\n 'BA' => 'Bosnia ne Hɛzegovina',\n 'BB' => 'Baabados',\n 'BD' => 'Bangladɛhye',\n 'BE' => 'Bɛlgyium',\n 'BF' => 'Bɔkin", "suffix": " 'BQ' => 'Caribbean Netherlands',\n 'BR' => 'Brazil',\n 'BS' => 'Bahamase',\n 'BT' => 'Butan',\n 'BV' => 'Bouvet Island',\n 'BW' => 'Bɔtswana',\n 'BY' => 'Bɛlarus',\n 'BZ' => 'Beliz',\n 'CA' => 'Kanada',\n", "middle": "a Faso',\n 'BG' => 'Bɔlgeria',\n 'BH' => 'Baren',\n 'BI' => 'Burundi',\n 'BJ' => 'Bɛnin',\n 'BL' => 'St. Baatilemi',\n 'BM' => 'Bɛmuda',\n 'BN' => 'Brunae',\n 'BO' => 'Bolivia',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ak.php", "language": "php", "file_size": 7524, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antiqua və Barbuda',\n 'AI' => 'Angilya',\n 'AL' => 'Albaniya',\n 'AM' => 'Ermənistan',\n 'AO' => 'Anqola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentina',\n 'AS' => 'Amerika Samoası',\n 'AT' => 'Avstriya',\n 'AU' => 'Avstraliya',\n 'AW' => 'Aruba',\n 'AX' => 'Aland adaları',\n 'AZ' => 'Azərbaycan',\n 'BA' => 'Bosniya və Herseqovina',\n 'BB' => 'Barbados',\n 'BD' => 'Banqladeş',\n 'BE' => 'Belçika',\n ", "suffix": "y',\n 'BO' => 'Boliviya',\n 'BQ' => 'Karib Niderlandı',\n 'BR' => 'Braziliya',\n 'BS' => 'Baham adaları',\n 'BT' => 'Butan',\n 'BV' => 'Buve adası',\n 'BW' => 'Botsvana',\n 'BY' => 'Belarus',\n 'BZ' => ", "middle": " 'BF' => 'Burkina Faso',\n 'BG' => 'Bolqarıstan',\n 'BH' => 'Bəhreyn',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sent-Bartelemi',\n 'BM' => 'Bermud adaları',\n 'BN' => 'Brune", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/az.php", "language": "php", "file_size": 7783, "cut_index": 716, "middle_length": 229}} {"prefix": "> 'অ্যান্টিগুয়া ও বারবুডা',\n 'AI' => 'অ্যাঙ্গুইলা',\n 'AL' => 'আলবেনিয়া',\n 'AM' => 'আর্মেনিয়া',\n 'AO' => 'অ্যাঙ্গোলা',\n 'AQ' => 'অ্যান্টার্কটিকা',\n 'AR' => 'আর্জেন্টিনা',\n 'AS' => 'আমেরিকান সামোয়া',\n 'AT' => 'অস্ট্রিয়া',\n 'AU' => 'অস্ট্রেলিয়া',\n 'AW' => 'আরুবা',\n 'AX' => 'অলান্ড দ্বীপপুঞ্জ',\n 'AZ' => 'আজারবাইজান',\n 'BA' => 'বসনিয়া ও হার্জেগোভিনা',\n 'BB' => 'বার্বাডোজ',\n 'BD' => 'বাংলাদেশ',\n ", "suffix": " 'BN' => 'ব্রুনেই',\n 'BO' => 'বলিভিয়া',\n 'BQ' => 'ক্যারিবিয়ান নেদারল্যান্ডস',\n 'BR' => 'ব্রাজিল',\n 'BS' => 'বাহামা দ্বীপপুঞ্জ',\n 'BT' => 'ভুটান',\n 'BV' => 'বোভেট দ্বীপ',\n 'BW' => 'বতসোয়ানা',\n '", "middle": "'BE' => 'বেলজিয়াম',\n 'BF' => 'বুরকিনা ফাসো',\n 'BG' => 'বুলগেরিয়া',\n 'BH' => 'বাহারিন',\n 'BI' => 'বুরুন্ডি',\n 'BJ' => 'বেনিন',\n 'BL' => 'সেন্ট বার্থেলেমি',\n 'BM' => 'বারমুডা',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/bn.php", "language": "php", "file_size": 13030, "cut_index": 716, "middle_length": 229}} {"prefix": "ེནཌ་ བྷར་བྷུ་ཌ',\n 'AI' => 'ཨང་གི་ལ',\n 'AL' => 'ཨཱལ་བེ་ནི་ཡ',\n 'AM' => 'ཨར་མི་ནི་ཡ',\n 'AO' => 'ཨང་གྷོ་ལ',\n 'AQ' => 'འཛམ་གླིང་ལྷོ་མཐའི་ཁྱགས་གླིང',\n 'AR' => 'ཨར་ཇེན་ཊི་ན',\n 'AS' => 'ས་མོ་ཨ་ཡུ་ཨེས་ཨེ་མངའ་ཁོངས',\n 'AT' => 'ཨཱོས་ཊྲི་ཡ',\n 'AU' => 'ཨཱོས་ཊྲེལ་ལི་ཡ',\n 'AW' => 'ཨ་རུ་བཱ',\n 'AX' => 'ཨ་ལནཌ་གླིང་ཚོམ',\n 'AZ' => 'ཨ་ཛར་བྷའི་ཇཱན',\n 'BA' => 'བྷོས་ནི་ཡ་ ཨེནཌ་ ཧར་ཛི་གྷོ་བི་ན',\n 'BB' => 'བྷར་བེ་ཌོས',\n 'BD' => '", "suffix": " 'BM' => 'བར་མུ་ཌ',\n 'BN' => 'བྷྲུ་ནའི',\n 'BO' => 'བྷེ་ལི་བི་ཡ',\n 'BQ' => 'ཀེ་རི་བི་ཡེན་ནེ་དར་ལནཌས྄',\n 'BR' => 'བྲ་ཛིལ',\n 'BS' => 'བྷ་ཧ་མས྄',\n 'BT' => 'འབྲུག',\n 'BV' => 'བོའུ་ཝེཊ་མཚོ་གླིང',\n 'BW'", "middle": "བངྒ་ལ་དེཤ',\n 'BE' => 'བྷེལ་ཇམ',\n 'BF' => 'བྷར་ཀི་ན་ ཕེ་སོ',\n 'BG' => 'བུལ་ག་རི་ཡ',\n 'BH' => 'བྷ་རེན',\n 'BI' => 'བྷུ་རུན་ཌི',\n 'BJ' => 'བྷེ་ནིན',\n 'BL' => 'སེནཊ་ བར་ཐོ་ལོམ་མིའུ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/dz.php", "language": "php", "file_size": 13766, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'Antigua & Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Argentina',\n 'AS' => 'American Samoa',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Åland Islands',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bosnia & Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgium',\n 'BF' => ", "suffix": "livia',\n 'BQ' => 'Caribbean Netherlands',\n 'BR' => 'Brazil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvet Island',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA' =", "middle": "'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'St. Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/en.php", "language": "php", "file_size": 7511, "cut_index": 716, "middle_length": 229}} {"prefix": "> 'এণ্টিগুৱা আৰু বাৰ্বুডা',\n 'AI' => 'এনগুইলা',\n 'AL' => 'আলবেনিয়া',\n 'AM' => 'আৰ্মেনিয়া',\n 'AO' => 'এংগোলা',\n 'AQ' => 'এণ্টাৰ্কটিকা',\n 'AR' => 'আৰ্জেণ্টিনা',\n 'AS' => 'আমেৰিকান চামোৱা',\n 'AT' => 'অষ্ট্ৰিয়া',\n 'AU' => 'অষ্ট্ৰেলিয়া',\n 'AW' => 'আৰুবা',\n 'AX' => 'আলণ্ড দ্বীপপুঞ্জ',\n 'AZ' => 'আজাৰবেইজান',\n 'BA' => 'ব’ছনিয়া আৰু হাৰ্জেগ’ভিনা',\n 'BB' => 'বাৰ্বাডোচ',\n 'BD' => 'বাংলাদেশ',\n 'BE' => 'বে", "suffix": "=> 'ব্ৰুনেই',\n 'BO' => 'বলিভিয়া',\n 'BQ' => 'কেৰিবিয়ান নেদাৰলেণ্ডছ',\n 'BR' => 'ব্ৰাজিল',\n 'BS' => 'বাহামাছ',\n 'BT' => 'ভুটান',\n 'BV' => 'বুভে দ্বীপ',\n 'BW' => 'ব’টচোৱানা',\n 'BY' => 'বেলাৰুছ',\n ", "middle": "লজিয়াম',\n 'BF' => 'বুৰকিনা ফাচো',\n 'BG' => 'বুলগেৰিয়া',\n 'BH' => 'বাহৰেইন',\n 'BI' => 'বুৰুণ্ডি',\n 'BJ' => 'বেনিন',\n 'BL' => 'ছেইণ্ট বাৰ্থলেমে',\n 'BM' => 'বাৰ্মুডা',\n 'BN' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/as.php", "language": "php", "file_size": 12804, "cut_index": 716, "middle_length": 229}} {"prefix": "JO' => 'isi-Arabic (i-Jordan)',\n 'ar_KM' => 'isi-Arabic (i-Comoros)',\n 'ar_KW' => 'isi-Arabic (i-Kuwait)',\n 'ar_LB' => 'isi-Arabic (i-Lebanon)',\n 'ar_LY' => 'isi-Arabic (i-Libya)',\n 'ar_MA' => 'isi-Arabic (i-Morocco)',\n 'ar_MR' => 'isi-Arabic (i-Mauritania)',\n 'ar_OM' => 'isi-Arabic (i-Oman)',\n 'ar_PS' => 'isi-Arabic (i-Palestinian Territories)',\n 'ar_QA' => 'isi-Arabic (i-Qatar)',\n 'ar_SA' => 'isi-Arabic (i-Saudi Arabia)',\n 'ar_SD", "suffix": "si-Arabic (i-Tunisia)',\n 'ar_YE' => 'isi-Arabic (i-Yemen)',\n 'as' => 'isi-Assamese',\n 'as_IN' => 'isi-Assamese (i-India)',\n 'az' => 'isi-Azerbaijani',\n 'az_AZ' => 'isi-Azerbaijani (i-Azerbaijan)',\n 'az_Cyrl' => 'is", "middle": "' => 'isi-Arabic (i-Sudan)',\n 'ar_SO' => 'isi-Arabic (i-Somalia)',\n 'ar_SS' => 'isi-Arabic (i-South Sudan)',\n 'ar_SY' => 'isi-Arabic (i-Syria)',\n 'ar_TD' => 'isi-Arabic (i-Chad)',\n 'ar_TN' => 'i", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/locales/zu.php", "language": "php", "file_size": 31043, "cut_index": 1331, "middle_length": 229}} {"prefix": "=> 'Antigua i Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albània',\n 'AM' => 'Armènia',\n 'AO' => 'Angola',\n 'AQ' => 'Antàrtida',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Americana',\n 'AT' => 'Àustria',\n 'AU' => 'Austràlia',\n 'AW' => 'Aruba',\n 'AX' => 'Illes Åland',\n 'AZ' => 'Azerbaidjan',\n 'BA' => 'Bòsnia i Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Bèlgica',\n 'BF' => 'Bu", "suffix": "lívia',\n 'BQ' => 'Carib Neerlandès',\n 'BR' => 'Brasil',\n 'BS' => 'Bahames',\n 'BT' => 'Bhutan',\n 'BV' => 'Illa Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarús',\n 'BZ' => 'Belize',\n 'CA' => 'Cana", "middle": "rkina Faso',\n 'BG' => 'Bulgària',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benín',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermudes',\n 'BN' => 'Brunei',\n 'BO' => 'Bo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ca.php", "language": "php", "file_size": 7661, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua en Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albanië',\n 'AM' => 'Armenië',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentinië',\n 'AS' => 'Amerikaanse Samoa',\n 'AT' => 'Oostenryk',\n 'AU' => 'Australië',\n 'AW' => 'Aruba',\n 'AX' => 'Ålandeilande',\n 'AZ' => 'Azerbeidjan',\n 'BA' => 'Bosnië en Herzegowina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesj',\n 'BE' => 'België',\n ", "suffix": " 'BO' => 'Bolivië',\n 'BQ' => 'Karibiese Nederland',\n 'BR' => 'Brasilië',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhoetan',\n 'BV' => 'Bouvet-eiland',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',", "middle": " 'BF' => 'Burkina Faso',\n 'BG' => 'Bulgarye',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sint Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Broenei',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/af.php", "language": "php", "file_size": 7630, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'انتيگۋا جانە باربۋدا',\n 'AI' => 'انگيليا',\n 'AL' => 'البانيا',\n 'AM' => 'ارمەنيا',\n 'AO' => 'انگولا',\n 'AQ' => 'انتاركتيدا',\n 'AR' => 'ارگەنتينا',\n 'AS' => 'امەريكالىق ساموا',\n 'AT' => 'اۋستريا',\n 'AU' => 'اۋستراليا',\n 'AW' => 'ارۋبا',\n 'AX' => 'الاند ارالدارى',\n 'AZ' => 'ءازىربايجان',\n 'BA' => 'بوسنيا جانە گەرتسەگوۆينا',\n 'BB' => 'باربادوس',\n 'BD' => 'بانگلادەش',\n 'BE' => 'بەلگيا',\n ", "suffix": " 'BO' => 'بوليۆيا',\n 'BQ' => 'بونەير، سينت-ەستاتيۋس جانە سابا',\n 'BR' => 'برازيليا',\n 'BS' => 'باگام ارالدارى',\n 'BT' => 'بۋتان',\n 'BV' => 'بۋۆە ارالى',\n 'BW' => 'بوتسۆانا',\n 'BY' => 'بەلارۋس',\n ", "middle": " 'BF' => 'بۋركينا-فاسو',\n 'BG' => 'بولگاريا',\n 'BH' => 'باحرەين',\n 'BI' => 'بۋرۋندي',\n 'BJ' => 'بەنين',\n 'BL' => 'سان-بارتەمەلي',\n 'BM' => 'بەرمۋد ارالدارى',\n 'BN' => 'برۋنەي',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/kk_Arab.php", "language": "php", "file_size": 10036, "cut_index": 716, "middle_length": 229}} {"prefix": "\nreturn [\n 'UserAssignedNames' => [],\n 'Names' => [\n 'AE' => 'Dei sameinte arabiske emirata',\n 'AT' => 'Austerrike',\n 'CC' => 'Kokosøyane',\n 'CD' => 'Kongo-Kinshasa',\n 'CF' => 'Den sentralafrikanske republikken',\n 'CI' => 'Elfenbeinskysten',\n 'CK' => 'Cookøyane',\n 'DO' => 'Den dominikanske republikken',\n 'FK' => 'Falklandsøyane',\n 'FO' => 'Færøyane',\n 'GS' => 'Sør-Georgia og Sør-Sandwichøyane',\n 'HM' => 'Heardøya og Mc", "suffix": " 'PH' => 'Filippinane',\n 'PN' => 'Pitcairn',\n 'SB' => 'Salomonøyane',\n 'SC' => 'Seychellane',\n 'SH' => 'Saint Helena',\n 'TC' => 'Turks- og Caicosøyane',\n 'TF' => 'Dei franske sørterritoria',\n 'TL' => 'Aust", "middle": "Donaldøyane',\n 'KM' => 'Komorane',\n 'KY' => 'Caymanøyane',\n 'LU' => 'Luxembourg',\n 'MH' => 'Marshalløyane',\n 'MP' => 'Nord-Marianane',\n 'MV' => 'Maldivane',\n 'NO' => 'Noreg',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/nn.php", "language": "php", "file_size": 1215, "cut_index": 518, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua og Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktis',\n 'AR' => 'Argentina',\n 'AS' => 'Amerikansk Samoa',\n 'AT' => 'Østerrike',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Åland',\n 'AZ' => 'Aserbajdsjan',\n 'BA' => 'Bosnia-Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'BF' ", "suffix": "> 'Bolivia',\n 'BQ' => 'Karibisk Nederland',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvetøya',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA' => ", "middle": "=> 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/no.php", "language": "php", "file_size": 7468, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua og Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktis',\n 'AR' => 'Argentina',\n 'AS' => 'Amerikansk Samoa',\n 'AT' => 'Østerrike',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Åland',\n 'AZ' => 'Aserbajdsjan',\n 'BA' => 'Bosnia-Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'BF' ", "suffix": "> 'Bolivia',\n 'BQ' => 'Karibisk Nederland',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvetøya',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA' => ", "middle": "=> 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/no_NO.php", "language": "php", "file_size": 7468, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antiiguyaa fi Barbuudaa',\n 'AI' => 'Anguyilaa',\n 'AL' => 'Albaaniyaa',\n 'AM' => 'Armeeniyaa',\n 'AO' => 'Angoolaa',\n 'AQ' => 'Antaarkitikaa',\n 'AR' => 'Arjentiinaa',\n 'AS' => 'Saamowa Ameerikaa',\n 'AT' => 'Awustiriyaa',\n 'AU' => 'Awustiraaliyaa',\n 'AW' => 'Arubaa',\n 'AX' => 'Odoloota Alaand',\n 'AZ' => 'Azerbaajiyaan',\n 'BA' => 'Bosiiniyaa fi Herzoogovinaa',\n 'BB' => 'Barbaaros',\n 'BD' => 'Bang", "suffix": " 'BM' => 'Beermudaa',\n 'BN' => 'Biruniyee',\n 'BO' => 'Boliiviyaa',\n 'BQ' => 'Neezerlaandota Kariibaan',\n 'BR' => 'Biraazil',\n 'BS' => 'Bahaamas',\n 'BT' => 'Bihuutan',\n 'BV' => 'Odola Bowuvet',\n 'BW", "middle": "laadish',\n 'BE' => 'Beeljiyeem',\n 'BF' => 'Burkiinaa Faasoo',\n 'BG' => 'Bulgaariyaa',\n 'BH' => 'Baahireen',\n 'BI' => 'Burundii',\n 'BJ' => 'Beenii',\n 'BL' => 'St. Barzeleemii',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/om.php", "language": "php", "file_size": 8115, "cut_index": 716, "middle_length": 229}} {"prefix": "G' => 'ଆଣ୍ଟିଗୁଆ ଏବଂ ବାରବୁଦା',\n 'AI' => 'ଆଙ୍ଗୁଇଲ୍ଲା',\n 'AL' => 'ଆଲବାନିଆ',\n 'AM' => 'ଆର୍ମେନିଆ',\n 'AO' => 'ଆଙ୍ଗୋଲା',\n 'AQ' => 'ଆଣ୍ଟାର୍କାଟିକା',\n 'AR' => 'ଆର୍ଜେଣ୍ଟିନା',\n 'AS' => 'ଆମେରିକାନ୍ ସାମୋଆ',\n 'AT' => 'ଅଷ୍ଟ୍ରିଆ',\n 'AU' => 'ଅଷ୍ଟ୍ରେଲିଆ',\n 'AW' => 'ଆରୁବା',\n 'AX' => 'ଅଲାଣ୍ଡ ଦ୍ଵୀପପୁଞ୍ଜ',\n 'AZ' => 'ଆଜେରବାଇଜାନ୍',\n 'BA' => 'ବୋସନିଆ ଏବଂ ହର୍ଜଗୋଭିନା',\n 'BB' => 'ବାରବାଡୋସ୍',\n 'BD' => 'ବାଂଲାଦେଶ',\n 'BE' => 'ବେଲଜି", "suffix": "ବ୍ରୁନେଇ',\n 'BO' => 'ବୋଲିଭିଆ',\n 'BQ' => 'କାରବିୟନ୍‌ ନେଦରଲ୍ୟାଣ୍ଡ',\n 'BR' => 'ବ୍ରାଜିଲ୍',\n 'BS' => 'ବାହାମାସ୍',\n 'BT' => 'ଭୁଟାନ',\n 'BV' => 'ବୌଭେଟ୍‌ ଦ୍ୱୀପ',\n 'BW' => 'ବୋଟସ୍ୱାନା',\n 'BY' => 'ବେଲାରୁଷ୍',\n ", "middle": "ୟମ୍',\n 'BF' => 'ବୁର୍କିନା ଫାସୋ',\n 'BG' => 'ବୁଲଗେରିଆ',\n 'BH' => 'ବାହାରିନ୍',\n 'BI' => 'ବୁରୁଣ୍ଡି',\n 'BJ' => 'ବେନିନ୍',\n 'BL' => 'ସେଣ୍ଟ ବାର୍ଥେଲେମି',\n 'BM' => 'ବର୍ମୁଡା',\n 'BN' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/or.php", "language": "php", "file_size": 12844, "cut_index": 716, "middle_length": 229}} {"prefix": " 'ਐਂਟੀਗੁਆ ਅਤੇ ਬਾਰਬੁਡਾ',\n 'AI' => 'ਅੰਗੁਇਲਾ',\n 'AL' => 'ਅਲਬਾਨੀਆ',\n 'AM' => 'ਅਰਮੀਨੀਆ',\n 'AO' => 'ਅੰਗੋਲਾ',\n 'AQ' => 'ਅੰਟਾਰਕਟਿਕਾ',\n 'AR' => 'ਅਰਜਨਟੀਨਾ',\n 'AS' => 'ਅਮੈਰੀਕਨ ਸਮੋਆ',\n 'AT' => 'ਆਸਟਰੀਆ',\n 'AU' => 'ਆਸਟ੍ਰੇਲੀਆ',\n 'AW' => 'ਅਰੂਬਾ',\n 'AX' => 'ਅਲੈਂਡ ਟਾਪੂ',\n 'AZ' => 'ਅਜ਼ਰਬਾਈਜਾਨ',\n 'BA' => 'ਬੋਸਨੀਆ ਅਤੇ ਹਰਜ਼ੇਗੋਵੀਨਾ',\n 'BB' => 'ਬਾਰਬਾਡੋਸ',\n 'BD' => 'ਬੰਗਲਾਦੇਸ਼',\n 'BE' => 'ਬੈਲਜੀਅਮ',\n 'BF' => 'ਬੁਰਕੀਨਾ ", "suffix": " 'BQ' => 'ਕੈਰੇਬੀਆਈ ਨੀਦਰਲੈਂਡ',\n 'BR' => 'ਬ੍ਰਾਜ਼ੀਲ',\n 'BS' => 'ਬਹਾਮਾਸ',\n 'BT' => 'ਭੂਟਾਨ',\n 'BV' => 'ਬੌਵੇਟ ਟਾਪੂ',\n 'BW' => 'ਬੋਤਸਵਾਨਾ',\n 'BY' => 'ਬੇਲਾਰੂਸ',\n 'BZ' => 'ਬੇਲੀਜ਼',\n 'CA' => 'ਕੈਨੇਡਾ',\n ", "middle": "ਫ਼ਾਸੋ',\n 'BG' => 'ਬੁਲਗਾਰੀਆ',\n 'BH' => 'ਬਹਿਰੀਨ',\n 'BI' => 'ਬੁਰੁੰਡੀ',\n 'BJ' => 'ਬੇਨਿਨ',\n 'BL' => 'ਸੇਂਟ ਬਾਰਥੇਲੇਮੀ',\n 'BM' => 'ਬਰਮੂਡਾ',\n 'BN' => 'ਬਰੂਨੇਈ',\n 'BO' => 'ਬੋਲੀਵੀਆ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/pa.php", "language": "php", "file_size": 11529, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua i Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktyda',\n 'AR' => 'Argentyna',\n 'AS' => 'Samoa Amerykańskie',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Wyspy Alandzkie',\n 'AZ' => 'Azerbejdżan',\n 'BA' => 'Bośnia i Hercegowina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesz',\n 'BE' => 'Belgia',\n ", "suffix": " 'BO' => 'Boliwia',\n 'BQ' => 'Niderlandy Karaibskie',\n 'BR' => 'Brazylia',\n 'BS' => 'Bahamy',\n 'BT' => 'Bhutan',\n 'BV' => 'Wyspa Bouveta',\n 'BW' => 'Botswana',\n 'BY' => 'Białoruś',\n 'BZ' => 'Belize'", "middle": " 'BF' => 'Burkina Faso',\n 'BG' => 'Bułgaria',\n 'BH' => 'Bahrajn',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermudy',\n 'BN' => 'Brunei',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/pl.php", "language": "php", "file_size": 7662, "cut_index": 716, "middle_length": 229}} {"prefix": "ټيګوا او باربودا',\n 'AI' => 'انګیلا',\n 'AL' => 'البانیه',\n 'AM' => 'ارمنستان',\n 'AO' => 'انګولا',\n 'AQ' => 'انتارکتیکا',\n 'AR' => 'ارجنټاين',\n 'AS' => 'امریکایی ساماوا',\n 'AT' => 'اتریش',\n 'AU' => 'آسټرالیا',\n 'AW' => 'آروبا',\n 'AX' => 'الاند ټاپوان',\n 'AZ' => 'اذربايجان',\n 'BA' => 'بوسنيا او هېرزګوينا',\n 'BB' => 'باربادوس',\n 'BD' => 'بنگله دېش',\n 'BE' => 'بیلجیم',\n 'BF' => 'بورکینا فاسو',\n", "suffix": "> 'کیریبین هالینډ',\n 'BR' => 'برازیل',\n 'BS' => 'باهماس',\n 'BT' => 'بهوټان',\n 'BV' => 'بوویټ ټاپو',\n 'BW' => 'بوتسوانه',\n 'BY' => 'بیلاروس',\n 'BZ' => 'بلیز',\n 'CA' => 'کاناډا',\n 'CC' => 'کوکوز ", "middle": " 'BG' => 'بلغاریه',\n 'BH' => 'بحرين',\n 'BI' => 'بروندي',\n 'BJ' => 'بینن',\n 'BL' => 'سينټ بارتيلمي',\n 'BM' => 'برمودا',\n 'BN' => 'برونائي',\n 'BO' => 'بولیویا',\n 'BQ' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ps.php", "language": "php", "file_size": 9284, "cut_index": 716, "middle_length": 229}} {"prefix": "AG' => 'Antígua e Barbuda',\n 'AI' => 'Anguila',\n 'AL' => 'Albânia',\n 'AM' => 'Armênia',\n 'AO' => 'Angola',\n 'AQ' => 'Antártida',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Americana',\n 'AT' => 'Áustria',\n 'AU' => 'Austrália',\n 'AW' => 'Aruba',\n 'AX' => 'Ilhas Aland',\n 'AZ' => 'Azerbaijão',\n 'BA' => 'Bósnia e Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Bélgica',\n 'BF' => '", "suffix": "lívia',\n 'BQ' => 'Países Baixos Caribenhos',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamas',\n 'BT' => 'Butão',\n 'BV' => 'Ilha Bouvet',\n 'BW' => 'Botsuana',\n 'BY' => 'Bielorrússia',\n 'BZ' => 'Belize',\n '", "middle": "Burquina Faso',\n 'BG' => 'Bulgária',\n 'BH' => 'Barein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'São Bartolomeu',\n 'BM' => 'Bermudas',\n 'BN' => 'Brunei',\n 'BO' => 'Bo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/pt.php", "language": "php", "file_size": 7690, "cut_index": 716, "middle_length": 229}} {"prefix": "AssignedNames' => [],\n 'Names' => [\n 'AM' => 'Arménia',\n 'AX' => 'Alanda',\n 'BD' => 'Bangladeche',\n 'BH' => 'Barém',\n 'BJ' => 'Benim',\n 'BS' => 'Baamas',\n 'CC' => 'Ilhas dos Cocos (Keeling)',\n 'CD' => 'Congo-Kinshasa',\n 'CG' => 'Congo-Brazzaville',\n 'CI' => 'Côte d’Ivoire (Costa do Marfim)',\n 'CW' => 'Curaçau',\n 'CX' => 'Ilha do Natal',\n 'CZ' => 'Chéquia',\n 'DJ' => 'Jibuti',\n 'DM' => 'Domínica',\n ", "suffix": " 'KI' => 'Quiribáti',\n 'KN' => 'São Cristóvão e Neves',\n 'KW' => 'Koweit',\n 'KY' => 'Ilhas Caimão',\n 'LI' => 'Listenstaine',\n 'LK' => 'Sri Lanca',\n 'LV' => 'Letónia',\n 'MC' => 'Mónaco',\n 'MF' => 'S", "middle": " 'EE' => 'Estónia',\n 'EH' => 'Sara Ocidental',\n 'FK' => 'Ilhas Falkland',\n 'GG' => 'Guernesey',\n 'GL' => 'Gronelândia',\n 'GU' => 'Guame',\n 'IR' => 'Irão',\n 'KE' => 'Quénia',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/pt_PT.php", "language": "php", "file_size": 1953, "cut_index": 537, "middle_length": 229}} {"prefix": "G' => 'Antigua y Barbuda',\n 'AI' => 'Anguila',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antártida',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Americana',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Islas Åland',\n 'AZ' => 'Azerbaiyán',\n 'BA' => 'Bosnia y Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Bélgica',\n 'BF' => 'B", "suffix": "ia',\n 'BQ' => 'Bonaire',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bután',\n 'BV' => 'Isla Bouvet',\n 'BW' => 'Botsuana',\n 'BY' => 'Belarús',\n 'BZ' => 'Belice',\n 'CA' => 'Canadá',\n ", "middle": "urkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Baréin',\n 'BI' => 'Burundi',\n 'BJ' => 'Benín',\n 'BL' => 'San Bartolomé',\n 'BM' => 'Bermudas',\n 'BN' => 'Brunéi',\n 'BO' => 'Boliv", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/qu.php", "language": "php", "file_size": 7571, "cut_index": 716, "middle_length": 229}} {"prefix": "=> 'Antigua e Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Americana',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Inslas Aland',\n 'AZ' => 'Aserbaidschan',\n 'BA' => 'Bosnia ed Erzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesch',\n 'BE' => 'Belgia',\n 'BF' =>", "suffix": "Bolivia',\n 'BQ' => 'Pajais Bass caribics',\n 'BR' => 'Brasilia',\n 'BS' => 'Bahamas',\n 'BT' => 'Butan',\n 'BV' => 'Insla da Bouvet',\n 'BW' => 'Botsuana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'C", "middle": " 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Son Barthélemy',\n 'BM' => 'Bermudas',\n 'BN' => 'Brunei',\n 'BO' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/rm.php", "language": "php", "file_size": 7701, "cut_index": 716, "middle_length": 229}} {"prefix": "da',\n 'AI' => 'Angwila',\n 'AL' => 'Alubaniya',\n 'AM' => 'Arumeniya',\n 'AO' => 'Angola',\n 'AR' => 'Arijantine',\n 'AS' => 'Samowa nyamerika',\n 'AT' => 'Otirishe',\n 'AU' => 'Ositaraliya',\n 'AW' => 'Aruba',\n 'AZ' => 'Azerubayijani',\n 'BA' => 'Bosiniya na Herigozevine',\n 'BB' => 'Barubadosi',\n 'BD' => 'Bangaladeshi',\n 'BE' => 'Ububiligi',\n 'BF' => 'Burukina Faso',\n 'BG' => 'Buligariya',\n 'BH' =>", "suffix": "i',\n 'BW' => 'Botswana',\n 'BY' => 'Belausi',\n 'BZ' => 'Belize',\n 'CA' => 'Kanada',\n 'CD' => 'Repubulika Iharanira Demokarasi ya Kongo',\n 'CF' => 'Repubulika ya Santarafurika',\n 'CG' => 'Kongo',\n 'CH' ", "middle": " 'Bahareyini',\n 'BI' => 'Uburundi',\n 'BJ' => 'Bene',\n 'BM' => 'Berimuda',\n 'BN' => 'Buruneyi',\n 'BO' => 'Boliviya',\n 'BR' => 'Burezili',\n 'BS' => 'Bahamasi',\n 'BT' => 'Butan", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/rn.php", "language": "php", "file_size": 6956, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'Antigua și Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Americană',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Insulele Åland',\n 'AZ' => 'Azerbaidjan',\n 'BA' => 'Bosnia și Herțegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'BF'", "suffix": "=> 'Bolivia',\n 'BQ' => 'Insulele Caraibe Olandeze',\n 'BR' => 'Brazilia',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Insula Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n ", "middle": " => 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ro.php", "language": "php", "file_size": 7723, "cut_index": 716, "middle_length": 229}} {"prefix": "рбуда',\n 'AI' => 'Ангилья',\n 'AL' => 'Албания',\n 'AM' => 'Армения',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктида',\n 'AR' => 'Аргентина',\n 'AS' => 'Американское Самоа',\n 'AT' => 'Австрия',\n 'AU' => 'Австралия',\n 'AW' => 'Аруба',\n 'AX' => 'Аландские о-ва',\n 'AZ' => 'Азербайджан',\n 'BA' => 'Босния и Герцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельгия',\n 'BF' => 'Буркина-Фасо'", "suffix": "\n 'BQ' => 'Бонэйр, Синт-Эстатиус и Саба',\n 'BR' => 'Бразилия',\n 'BS' => 'Багамы',\n 'BT' => 'Бутан',\n 'BV' => 'о-в Буве',\n 'BW' => 'Ботсвана',\n 'BY' => 'Беларусь',\n 'BZ' => 'Белиз',\n 'CA' => 'Ка", "middle": ",\n 'BG' => 'Болгария',\n 'BH' => 'Бахрейн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сен-Бартелеми',\n 'BM' => 'Бермудские о-ва',\n 'BN' => 'Бруней',\n 'BO' => 'Боливия',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ru.php", "language": "php", "file_size": 9832, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'Antigua e Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armènia',\n 'AO' => 'Angola',\n 'AQ' => 'Antàrticu',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa americanas',\n 'AT' => 'Àustria',\n 'AU' => 'Austràlia',\n 'AW' => 'Aruba',\n 'AX' => 'Ìsulas Åland',\n 'AZ' => 'Azerbaigiàn',\n 'BA' => 'Bòsnia e Erzegòvina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladèsh',\n 'BE' => 'Bèlgiu',\n 'BF' =", "suffix": "> 'Bolìvia',\n 'BQ' => 'Caràibes olandesas',\n 'BR' => 'Brasile',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutàn',\n 'BV' => 'Ìsula Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Bielorùssia',\n 'BZ' => 'Belize',\n ", "middle": "> 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Santu Bartolomeu',\n 'BM' => 'Bermudas',\n 'BN' => 'Brunei',\n 'BO' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sc.php", "language": "php", "file_size": 7811, "cut_index": 716, "middle_length": 229}} {"prefix": "ينٽيگا ۽ باربوڊا',\n 'AI' => 'انگويلا',\n 'AL' => 'البانيا',\n 'AM' => 'آرمينيا',\n 'AO' => 'انگولا',\n 'AQ' => 'انٽارڪٽيڪا',\n 'AR' => 'ارجنٽينا',\n 'AS' => 'آمريڪي ساموا',\n 'AT' => 'آسٽريا',\n 'AU' => 'آسٽريليا',\n 'AW' => 'عروبا',\n 'AX' => 'الند ٻيٽ',\n 'AZ' => 'آذربائيجان',\n 'BA' => 'بوسنيا ۽ هرزيگووينا',\n 'BB' => 'باربڊوس',\n 'BD' => 'بنگلاديش',\n 'BE' => 'بيلجيم',\n 'BF' => 'برڪينا فاسو',\n ", "suffix": "ن نيدرلينڊ',\n 'BR' => 'برازيل',\n 'BS' => 'باهاماس',\n 'BT' => 'ڀوٽان',\n 'BV' => 'بووٽ ٻيٽ',\n 'BW' => 'بوٽسوانا',\n 'BY' => 'بيلاروس',\n 'BZ' => 'بيليز',\n 'CA' => 'ڪينيڊا',\n 'CC' => 'ڪوڪوس ٻيٽ',\n ", "middle": "'BG' => 'بلغاريا',\n 'BH' => 'بحرين',\n 'BI' => 'برونڊي',\n 'BJ' => 'بينن',\n 'BL' => 'سینٽ برٿلیمی',\n 'BM' => 'برمودا',\n 'BN' => 'برونائي',\n 'BO' => 'بوليويا',\n 'BQ' => 'ڪيريبي", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sd.php", "language": "php", "file_size": 9097, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua ja Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albánia',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antárktis',\n 'AR' => 'Argentina',\n 'AS' => 'Amerihká Samoa',\n 'AT' => 'Nuortariika',\n 'AU' => 'Austrália',\n 'AW' => 'Aruba',\n 'AX' => 'Ålánda',\n 'AZ' => 'Aserbaižan',\n 'BA' => 'Bosnia-Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'BF' =>", "suffix": "'Bolivia',\n 'BR' => 'Brasil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvet-sullot',\n 'BW' => 'Botswana',\n 'BY' => 'Vilges-Ruošša',\n 'BZ' => 'Belize',\n 'CA' => 'Kanáda',\n 'CC' => 'Coc", "middle": " 'Burkina Faso',\n 'BG' => 'Bulgária',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/se.php", "language": "php", "file_size": 7386, "cut_index": 716, "middle_length": 229}} {"prefix": ",\n 'AI' => 'Angûîla',\n 'AL' => 'Albanïi',\n 'AM' => 'Armenïi',\n 'AO' => 'Angoläa',\n 'AR' => 'Arzantîna',\n 'AS' => 'Samöa tî Amerîka',\n 'AT' => 'Otrîsi',\n 'AU' => 'Ostralïi, Sotralïi',\n 'AW' => 'Arûba',\n 'AZ' => 'Zerebaidyäan, Azerbaidyäan,',\n 'BA' => 'Bosnïi na Herzegovînni',\n 'BB' => 'Barabâda',\n 'BD' => 'Bengladêshi',\n 'BE' => 'Bêleze, Belezîki',\n 'BF' => 'Burkina Faso',\n 'BG' => 'Bulugarïi',\n ", "suffix": "> 'Butäan',\n 'BW' => 'Botswana',\n 'BY' => 'Belarüsi',\n 'BZ' => 'Belîzi',\n 'CA' => 'Kanadäa',\n 'CD' => 'Ködörösêse tî Ngunuhalëzo tî kongö',\n 'CF' => 'Ködörösêse tî Bêafrîka',\n 'CG' => 'Kongö',\n 'CH' =", "middle": " 'BH' => 'Bahrâina',\n 'BI' => 'Burundïi',\n 'BJ' => 'Benëen',\n 'BM' => 'Beremûda',\n 'BN' => 'Brunêi',\n 'BO' => 'Bolivïi',\n 'BR' => 'Brezîli',\n 'BS' => 'Bahâmasa',\n 'BT' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sg.php", "language": "php", "file_size": 7032, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigva i Barbuda',\n 'AI' => 'Angvila',\n 'AL' => 'Albanija',\n 'AM' => 'Jermenija',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktik',\n 'AR' => 'Argentina',\n 'AS' => 'Američka Samoa',\n 'AT' => 'Austrija',\n 'AU' => 'Australija',\n 'AW' => 'Aruba',\n 'AX' => 'Olandska Ostrva',\n 'AZ' => 'Azerbejdžan',\n 'BA' => 'Bosna i Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladeš',\n 'BE' => 'Belgija',\n ", "suffix": "BO' => 'Bolivija',\n 'BQ' => 'Karipska Holandija',\n 'BR' => 'Brazil',\n 'BS' => 'Bahami',\n 'BT' => 'Butan',\n 'BV' => 'Ostrvo Buve',\n 'BW' => 'Bocvana',\n 'BY' => 'Belorusija',\n 'BZ' => 'Belize',\n ", "middle": "'BF' => 'Burkina Faso',\n 'BG' => 'Bugarska',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sveti Bartolomej',\n 'BM' => 'Bermudi',\n 'BN' => 'Brunej',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sh.php", "language": "php", "file_size": 7689, "cut_index": 716, "middle_length": 229}} {"prefix": "\nreturn [\n 'UserAssignedNames' => [],\n 'Names' => [\n 'AX' => 'Olandska ostrva',\n 'BL' => 'Sen Bartelemi',\n 'BN' => 'Bruneji',\n 'BV' => 'ostrvo Buve',\n 'BY' => 'Bjelorusija',\n 'CC' => 'Kokosova (Kiling) ostrva',\n 'CZ' => 'Češka Republika',\n 'DE' => 'Njemačka',\n 'FK' => 'Foklandska ostrva',\n 'FO' => 'Farska ostrva',\n 'GS' => 'Južna Džordžija i Južna Sendvička ostrva',\n 'GU' => 'Gvam',\n 'GW' => 'Gvineja Bisao',\n ", "suffix": "'MP' => 'Sjeverna Marijanska ostrva',\n 'NF' => 'ostrvo Norfok',\n 'NU' => 'Nijue',\n 'PS' => 'palestinske teritorije',\n 'RE' => 'Reunion',\n 'TF' => 'Francuske južne teritorije',\n 'UM' => 'Spoljna ostrva SAD',\n ", "middle": " 'HK' => 'Hongkong (SAO Kine)',\n 'HM' => 'ostrvo Herd i ostrva Makdonald',\n 'KM' => 'Komori',\n 'KP' => 'Sjeverna Koreja',\n 'MK' => 'Sjeverna Makedonija',\n 'MM' => 'Mjanmar (Burma)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sh_BA.php", "language": "php", "file_size": 1158, "cut_index": 518, "middle_length": 229}} {"prefix": " 'AG' => 'ඇන්ටිගුවා සහ බාබියුඩාව',\n 'AI' => 'ඇන්ගුයිලාව',\n 'AL' => 'ඇල්බේනියාව',\n 'AM' => 'ආර්මේනියාව',\n 'AO' => 'ඇන්ගෝලාව',\n 'AQ' => 'ඇන්ටාක්ටිකාව',\n 'AR' => 'ආර්ජෙන්ටිනාව',\n 'AS' => 'ඇමරිකානු සැමෝවා',\n 'AT' => 'ඔස්ට්‍රියාව',\n 'AU' => 'ඕස්ට්‍රේලියාව',\n 'AW' => 'අරූබා',\n 'AX' => 'ඕලන්ඩ් දූපත්',\n 'AZ' => 'අසර්බයිජානය',\n 'BA' => 'බොස්නියාව සහ හර්සගොවීනාව',\n 'BB' => 'බාබඩෝස්',\n 'BD' => 'බංග්ලාදේශය',\n ", "suffix": "\n 'BN' => 'බෲනායි',\n 'BO' => 'බොලීවියාව',\n 'BQ' => 'කැරිබියානු නෙදර්ලන්තය',\n 'BR' => 'බ්‍රසීලය',\n 'BS' => 'බහමාස්',\n 'BT' => 'භූතානය',\n 'BV' => 'බුවට් දුපත්',\n 'BW' => 'බොට්ස්වානා',\n 'BY' => 'බ", "middle": " 'BE' => 'බෙල්ජියම',\n 'BF' => 'බර්කිනා ෆාසෝ',\n 'BG' => 'බල්ගේරියාව',\n 'BH' => 'බහරේන්',\n 'BI' => 'බුරුන්දි',\n 'BJ' => 'බෙනින්',\n 'BL' => 'ශාන්ත බර්තලෙමි',\n 'BM' => 'බර්මියුඩා',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/si.php", "language": "php", "file_size": 12887, "cut_index": 716, "middle_length": 229}} {"prefix": "AG' => 'Antigua a Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albánsko',\n 'AM' => 'Arménsko',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktída',\n 'AR' => 'Argentína',\n 'AS' => 'Americká Samoa',\n 'AT' => 'Rakúsko',\n 'AU' => 'Austrália',\n 'AW' => 'Aruba',\n 'AX' => 'Alandy',\n 'AZ' => 'Azerbajdžan',\n 'BA' => 'Bosna a Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladéš',\n 'BE' => 'Belgicko',\n 'BF' => 'Bu", "suffix": "lívia',\n 'BQ' => 'Karibské Holandsko',\n 'BR' => 'Brazília',\n 'BS' => 'Bahamy',\n 'BT' => 'Bhután',\n 'BV' => 'Bouvetov ostrov',\n 'BW' => 'Botswana',\n 'BY' => 'Bielorusko',\n 'BZ' => 'Belize',\n 'CA", "middle": "rkina Faso',\n 'BG' => 'Bulharsko',\n 'BH' => 'Bahrajn',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Svätý Bartolomej',\n 'BM' => 'Bermudy',\n 'BN' => 'Brunej',\n 'BO' => 'Bo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sk.php", "language": "php", "file_size": 7757, "cut_index": 716, "middle_length": 229}} {"prefix": "AG' => 'Antigva in Barbuda',\n 'AI' => 'Angvila',\n 'AL' => 'Albanija',\n 'AM' => 'Armenija',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentina',\n 'AS' => 'Ameriška Samoa',\n 'AT' => 'Avstrija',\n 'AU' => 'Avstralija',\n 'AW' => 'Aruba',\n 'AX' => 'Alandski otoki',\n 'AZ' => 'Azerbajdžan',\n 'BA' => 'Bosna in Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladeš',\n 'BE' => 'Belgija',\n '", "suffix": "BO' => 'Bolivija',\n 'BQ' => 'Nizozemski Karibi',\n 'BR' => 'Brazilija',\n 'BS' => 'Bahami',\n 'BT' => 'Butan',\n 'BV' => 'Bouvetov otok',\n 'BW' => 'Bocvana',\n 'BY' => 'Belorusija',\n 'BZ' => 'Belize',\n ", "middle": "BF' => 'Burkina Faso',\n 'BG' => 'Bolgarija',\n 'BH' => 'Bahrajn',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sveti Bartolomej',\n 'BM' => 'Bermudi',\n 'BN' => 'Brunej',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sl.php", "language": "php", "file_size": 7756, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AI' => 'Anguila',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AR' => 'Ajentina',\n 'AS' => 'Samoa ye Amerika',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Arubha',\n 'AZ' => 'Azabajani',\n 'BA' => 'Boznia ne Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladeshi',\n 'BE' => 'Beljium',\n 'BF' => 'Bukinafaso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahareni',\n 'BI' => 'Buru", "suffix": "BY' => 'Belarusi',\n 'BZ' => 'Belize',\n 'CA' => 'Kanada',\n 'CD' => 'Democratic Republic of the Congo',\n 'CF' => 'Central African Republic',\n 'CG' => 'Kongo',\n 'CH' => 'Switzerland',\n 'CI' => 'Ivory Coast',\n ", "middle": "ndi',\n 'BJ' => 'Benini',\n 'BM' => 'Bermuda',\n 'BN' => 'Burunei',\n 'BO' => 'Bolivia',\n 'BR' => 'Brazil',\n 'BS' => 'Bahama',\n 'BT' => 'Bhutani',\n 'BW' => 'Botswana',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sn.php", "language": "php", "file_size": 6532, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua & Barbuuda',\n 'AI' => 'Anguula',\n 'AL' => 'Albaaniya',\n 'AM' => 'Armeeniya',\n 'AO' => 'Angoola',\n 'AQ' => 'Antaarktika',\n 'AR' => 'Arjentiina',\n 'AS' => 'Samowa Ameerika',\n 'AT' => 'Awsteriya',\n 'AU' => 'Awstaraaliya',\n 'AW' => 'Aruba',\n 'AX' => 'Jasiiradda Aland',\n 'AZ' => 'Asarbajan',\n 'BA' => 'Boosniya & Harsegofina',\n 'BB' => 'Baarbadoos',\n 'BD' => 'Bangaladhesh',\n 'BE' =>", "suffix": "' => 'Buruneey',\n 'BO' => 'Boliifiya',\n 'BQ' => 'Karibiyaan Nadarlands',\n 'BR' => 'Baraasiil',\n 'BS' => 'Bahaamas',\n 'BT' => 'Buutan',\n 'BV' => 'Buufet Island',\n 'BW' => 'Botuswaana',\n 'BY' => 'Belaru", "middle": " 'Biljam',\n 'BF' => 'Burkiina Faaso',\n 'BG' => 'Bulgaariya',\n 'BH' => 'Baxreyn',\n 'BI' => 'Burundi',\n 'BJ' => 'Biniin',\n 'BL' => 'St. Baathelemiy',\n 'BM' => 'Barmuuda',\n 'BN", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/so.php", "language": "php", "file_size": 7874, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua e Barbuda',\n 'AI' => 'Anguilë',\n 'AL' => 'Shqipëri',\n 'AM' => 'Armeni',\n 'AO' => 'Angolë',\n 'AQ' => 'Antarktikë',\n 'AR' => 'Argjentinë',\n 'AS' => 'Samoa Amerikane',\n 'AT' => 'Austri',\n 'AU' => 'Australi',\n 'AW' => 'Arubë',\n 'AX' => 'Ishujt Alandë',\n 'AZ' => 'Azerbajxhan',\n 'BA' => 'Bosnjë-Hercegovinë',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgjikë',\n 'BF'", "suffix": "'Bolivi',\n 'BQ' => 'Karaibet holandeze',\n 'BR' => 'Brazil',\n 'BS' => 'Bahama',\n 'BT' => 'Butan',\n 'BV' => 'Ishulli Bove',\n 'BW' => 'Botsvanë',\n 'BY' => 'Bjellorusi',\n 'BZ' => 'Belizë',\n 'CA' =>", "middle": " => 'Burkina-Faso',\n 'BG' => 'Bullgari',\n 'BH' => 'Bahrejn',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sen-Bartelemi',\n 'BM' => 'Bermude',\n 'BN' => 'Brunei',\n 'BO' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sq.php", "language": "php", "file_size": 7555, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'Антигва и Барбуда',\n 'AI' => 'Ангвила',\n 'AL' => 'Албанија',\n 'AM' => 'Јерменија',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктик',\n 'AR' => 'Аргентина',\n 'AS' => 'Америчка Самоа',\n 'AT' => 'Аустрија',\n 'AU' => 'Аустралија',\n 'AW' => 'Аруба',\n 'AX' => 'Оландска Острва',\n 'AZ' => 'Азербејџан',\n 'BA' => 'Босна и Херцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Белгија',\n 'B", "suffix": "' => 'Боливија',\n 'BQ' => 'Карипска Холандија',\n 'BR' => 'Бразил',\n 'BS' => 'Бахами',\n 'BT' => 'Бутан',\n 'BV' => 'Острво Буве',\n 'BW' => 'Боцвана',\n 'BY' => 'Белорусија',\n 'BZ' => 'Белизе',\n 'C", "middle": "F' => 'Буркина Фасо',\n 'BG' => 'Бугарска',\n 'BH' => 'Бахреин',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Свети Бартоломеј',\n 'BM' => 'Бермуди',\n 'BN' => 'Брунеј',\n 'BO", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sr.php", "language": "php", "file_size": 10046, "cut_index": 716, "middle_length": 229}} {"prefix": "\nreturn [\n 'UserAssignedNames' => [],\n 'Names' => [\n 'AX' => 'Оландска острва',\n 'BL' => 'Сен Бартелеми',\n 'BN' => 'Брунеји',\n 'BV' => 'острво Буве',\n 'BY' => 'Бјелорусија',\n 'CC' => 'Кокосова (Килинг) острва',\n 'CZ' => 'Чешка Република',\n 'DE' => 'Њемачка',\n 'FK' => 'Фокландска острва',\n 'FO' => 'Фарска острва',\n 'GS' => 'Јужна Џорџија и Јужна Сендвичка острва',\n 'GU' => 'Гвам',\n 'GW' => 'Гвинеја Бисао',\n ", "suffix": "' => 'Сјеверна Маријанска острва',\n 'NF' => 'острво Норфок',\n 'NU' => 'Нијуе',\n 'PS' => 'палестинске територије',\n 'RE' => 'Реунион',\n 'TF' => 'Француске јужне територије',\n 'UM' => 'Спољна острва САД',\n 'VC", "middle": " 'HK' => 'Хонгконг (САО Кине)',\n 'HM' => 'острво Херд и острва Макдоналд',\n 'KM' => 'Комори',\n 'KP' => 'Сјеверна Кореја',\n 'MK' => 'Сјеверна Македонија',\n 'MM' => 'Мјанмар (Бурма)',\n 'MP", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sr_BA.php", "language": "php", "file_size": 1586, "cut_index": 518, "middle_length": 229}} {"prefix": "\nreturn [\n 'UserAssignedNames' => [],\n 'Names' => [\n 'AX' => 'Оландска острва',\n 'BL' => 'Сен Бартелеми',\n 'BN' => 'Брунеји',\n 'BV' => 'острво Буве',\n 'BY' => 'Бјелорусија',\n 'CC' => 'Кокосова (Килинг) острва',\n 'CZ' => 'Чешка Република',\n 'DE' => 'Њемачка',\n 'FK' => 'Фокландска острва',\n 'FO' => 'Фарска острва',\n 'GS' => 'Јужна Џорџија и Јужна Сендвичка острва',\n 'GU' => 'Гвам',\n 'GW' => 'Гвинеја Бисао',\n ", "suffix": "' => 'Сјеверна Маријанска острва',\n 'NF' => 'острво Норфок',\n 'NU' => 'Нијуе',\n 'PS' => 'палестинске територије',\n 'RE' => 'Реунион',\n 'TF' => 'Француске јужне територије',\n 'UM' => 'Спољна острва САД',\n 'VC", "middle": " 'HK' => 'Хонгконг (САО Кине)',\n 'HM' => 'острво Херд и острва Макдоналд',\n 'KM' => 'Комори',\n 'KP' => 'Сјеверна Кореја',\n 'MK' => 'Сјеверна Македонија',\n 'MM' => 'Мјанмар (Бурма)',\n 'MP", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sr_Cyrl_BA.php", "language": "php", "file_size": 1586, "cut_index": 518, "middle_length": 229}} {"prefix": " 'AG' => 'Antigva i Barbuda',\n 'AI' => 'Angvila',\n 'AL' => 'Albanija',\n 'AM' => 'Jermenija',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktik',\n 'AR' => 'Argentina',\n 'AS' => 'Američka Samoa',\n 'AT' => 'Austrija',\n 'AU' => 'Australija',\n 'AW' => 'Aruba',\n 'AX' => 'Olandska Ostrva',\n 'AZ' => 'Azerbejdžan',\n 'BA' => 'Bosna i Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladeš',\n 'BE' => 'Belgija',\n ", "suffix": "BO' => 'Bolivija',\n 'BQ' => 'Karipska Holandija',\n 'BR' => 'Brazil',\n 'BS' => 'Bahami',\n 'BT' => 'Butan',\n 'BV' => 'Ostrvo Buve',\n 'BW' => 'Bocvana',\n 'BY' => 'Belorusija',\n 'BZ' => 'Belize',\n ", "middle": "'BF' => 'Burkina Faso',\n 'BG' => 'Bugarska',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sveti Bartolomej',\n 'BM' => 'Bermudi',\n 'BN' => 'Brunej',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sr_Latn.php", "language": "php", "file_size": 7689, "cut_index": 716, "middle_length": 229}} {"prefix": "\nreturn [\n 'UserAssignedNames' => [],\n 'Names' => [\n 'AX' => 'Olandska ostrva',\n 'BL' => 'Sen Bartelemi',\n 'BN' => 'Bruneji',\n 'BV' => 'ostrvo Buve',\n 'BY' => 'Bjelorusija',\n 'CC' => 'Kokosova (Kiling) ostrva',\n 'CZ' => 'Češka Republika',\n 'DE' => 'Njemačka',\n 'FK' => 'Foklandska ostrva',\n 'FO' => 'Farska ostrva',\n 'GS' => 'Južna Džordžija i Južna Sendvička ostrva',\n 'GU' => 'Gvam',\n 'GW' => 'Gvineja Bisao',\n ", "suffix": "'MP' => 'Sjeverna Marijanska ostrva',\n 'NF' => 'ostrvo Norfok',\n 'NU' => 'Nijue',\n 'PS' => 'palestinske teritorije',\n 'RE' => 'Reunion',\n 'TF' => 'Francuske južne teritorije',\n 'UM' => 'Spoljna ostrva SAD',\n ", "middle": " 'HK' => 'Hongkong (SAO Kine)',\n 'HM' => 'ostrvo Herd i ostrva Makdonald',\n 'KM' => 'Komori',\n 'KP' => 'Sjeverna Koreja',\n 'MK' => 'Sjeverna Makedonija',\n 'MM' => 'Mjanmar (Burma)',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sr_Latn_BA.php", "language": "php", "file_size": 1158, "cut_index": 518, "middle_length": 229}} {"prefix": "AG' => 'ಆಂಟಿಗುವಾ ಮತ್ತು ಬರ್ಬುಡಾ',\n 'AI' => 'ಆಂಗ್ವಿಲ್ಲಾ',\n 'AL' => 'ಅಲ್ಬೇನಿಯಾ',\n 'AM' => 'ಆರ್ಮೇನಿಯ',\n 'AO' => 'ಅಂಗೋಲಾ',\n 'AQ' => 'ಅಂಟಾರ್ಟಿಕಾ',\n 'AR' => 'ಅರ್ಜೆಂಟಿನಾ',\n 'AS' => 'ಅಮೇರಿಕನ್ ಸಮೋವಾ',\n 'AT' => 'ಆಸ್ಟ್ರಿಯಾ',\n 'AU' => 'ಆಸ್ಟ್ರೇಲಿಯಾ',\n 'AW' => 'ಅರುಬಾ',\n 'AX' => 'ಆಲ್ಯಾಂಡ್ ದ್ವೀಪಗಳು',\n 'AZ' => 'ಅಜರ್ಬೈಜಾನ್',\n 'BA' => 'ಬೋಸ್ನಿಯಾ ಮತ್ತು ಹರ್ಜೆಗೋವಿನಾ',\n 'BB' => 'ಬಾರ್ಬಡೋಸ್',\n 'BD' => 'ಬಾಂಗ್ಲಾದೇಶ',\n 'BE' =>", "suffix": "N' => 'ಬ್ರೂನಿ',\n 'BO' => 'ಬೊಲಿವಿಯಾ',\n 'BQ' => 'ಕೆರೀಬಿಯನ್ ನೆದರ್‌ಲ್ಯಾಂಡ್ಸ್',\n 'BR' => 'ಬ್ರೆಜಿಲ್',\n 'BS' => 'ಬಹಾಮಾಸ್',\n 'BT' => 'ಭೂತಾನ್',\n 'BV' => 'ಬೋವೆಟ್ ದ್ವೀಪ',\n 'BW' => 'ಬೋಟ್ಸ್‌ವಾನಾ',\n 'BY' => 'ಬೆಲಾರಸ", "middle": " 'ಬೆಲ್ಜಿಯಮ್',\n 'BF' => 'ಬುರ್ಕಿನಾ ಫಾಸೊ',\n 'BG' => 'ಬಲ್ಗೇರಿಯಾ',\n 'BH' => 'ಬಹ್ರೇನ್',\n 'BI' => 'ಬುರುಂಡಿ',\n 'BJ' => 'ಬೆನಿನ್',\n 'BL' => 'ಸೇಂಟ್ ಬಾರ್ಥೆಲೆಮಿ',\n 'BM' => 'ಬರ್ಮುಡಾ',\n 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/kn.php", "language": "php", "file_size": 13010, "cut_index": 716, "middle_length": 229}} {"prefix": "> 'اؠنٹِگُوا تہٕ باربوڑا',\n 'AI' => 'انگوئیلا',\n 'AL' => 'البانیا',\n 'AM' => 'اَرمانِیا',\n 'AO' => 'انگولا',\n 'AQ' => 'اینٹارٹِکا',\n 'AR' => 'أرجَنٹینا',\n 'AS' => 'اَمریٖکَن سَموا',\n 'AT' => 'آسٹریا',\n 'AU' => 'آسٹریلِیا',\n 'AW' => 'اَروٗبا',\n 'AX' => 'ایلینڑ جٔزیٖرٕ',\n 'AZ' => 'آذربائیجان',\n 'BA' => 'بوسنِیا تہٕ ہَرزِگووِنا',\n 'BB' => 'باربیڈوس',\n 'BD' => 'بَنگلادیش',\n 'BE' => 'بیلجِیَم',\n ", "suffix": "' => 'بولِوِیا',\n 'BQ' => 'کیریبین نیدرلینڈس',\n 'BR' => 'برازِل',\n 'BS' => 'بَہامَس',\n 'BT' => 'بوٗٹان',\n 'BV' => 'بووَٹ جٔزیٖرٕ',\n 'BW' => 'بوتَسوانا',\n 'BY' => 'بیلاروٗس',\n 'BZ' => 'بیلز',\n '", "middle": " 'BF' => 'بُرکِنا فیسو',\n 'BG' => 'بَلجیرِیا',\n 'BH' => 'بحریٖن',\n 'BI' => 'بورَنڈِ',\n 'BJ' => 'بِنِن',\n 'BL' => 'سینٹ بارتَھیلمی',\n 'BM' => 'برمودا',\n 'BN' => 'برونے',\n 'BO", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ks.php", "language": "php", "file_size": 9780, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'Антигуа жана Барбуда',\n 'AI' => 'Ангилья',\n 'AL' => 'Албания',\n 'AM' => 'Армения',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктида',\n 'AR' => 'Аргентина',\n 'AS' => 'Америкалык Самоа',\n 'AT' => 'Австрия',\n 'AU' => 'Австралия',\n 'AW' => 'Аруба',\n 'AX' => 'Аланд аралдары',\n 'AZ' => 'Азербайжан',\n 'BA' => 'Босния жана Герцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельгия',\n ", "suffix": " 'BO' => 'Боливия',\n 'BQ' => 'Кариб Нидерланддары',\n 'BR' => 'Бразилия',\n 'BS' => 'Багама аралдары',\n 'BT' => 'Бутан',\n 'BV' => 'Буве аралы',\n 'BW' => 'Ботсвана',\n 'BY' => 'Беларусь',\n 'BZ' => '", "middle": " 'BF' => 'Буркина-Фасо',\n 'BG' => 'Болгария',\n 'BH' => 'Бахрейн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сент Бартелеми',\n 'BM' => 'Бермуд аралдары',\n 'BN' => 'Бруней',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ky.php", "language": "php", "file_size": 9938, "cut_index": 716, "middle_length": 229}} {"prefix": "> 'Angwila',\n 'AL' => 'Alibaniya',\n 'AM' => 'Arameniya',\n 'AO' => 'Angola',\n 'AR' => 'Arigentina',\n 'AS' => 'Samowa omumerika',\n 'AT' => 'Awusituriya',\n 'AU' => 'Awusitureliya',\n 'AW' => 'Aruba',\n 'AZ' => 'Azerebayijaani',\n 'BA' => 'Boziniya Hezegovina',\n 'BB' => 'Barabadosi',\n 'BD' => 'Bangaladesi',\n 'BE' => 'Bubirigi',\n 'BF' => 'Burukina Faso',\n 'BG' => 'Bulugariya',\n 'BH' => 'Baareeni',\n ", "suffix": " 'Botiswana',\n 'BY' => 'Belarusi',\n 'BZ' => 'Belize',\n 'CA' => 'Kanada',\n 'CD' => 'Kongo - Zayire',\n 'CF' => 'Lipubulika eya Senturafiriki',\n 'CG' => 'Kongo',\n 'CH' => 'Switizirandi',\n 'CI' => 'Kote D", "middle": " 'BI' => 'Burundi',\n 'BJ' => 'Benini',\n 'BM' => 'Beremuda',\n 'BN' => 'Burunayi',\n 'BO' => 'Boliviya',\n 'BR' => 'Buraziiri',\n 'BS' => 'Bahamasi',\n 'BT' => 'Butaani',\n 'BW' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/lg.php", "language": "php", "file_size": 6834, "cut_index": 716, "middle_length": 229}} {"prefix": "=> 'Angiyɛ',\n 'AL' => 'Alibani',\n 'AM' => 'Amɛni',\n 'AO' => 'Angóla',\n 'AQ' => 'Antarctique',\n 'AR' => 'Arizantinɛ',\n 'AS' => 'Samoa ya Ameriki',\n 'AT' => 'Otilisi',\n 'AU' => 'Ositáli',\n 'AW' => 'Aruba',\n 'AZ' => 'Azɛlɛbaizá',\n 'BA' => 'Bosini mpé Hezegovine',\n 'BB' => 'Barɛbadɛ',\n 'BD' => 'Bengalidɛsi',\n 'BE' => 'Beleziki',\n 'BF' => 'Bukina Faso',\n 'BG' => 'Biligari',\n 'BH' => 'Bahrɛnɛ',\n ", "suffix": "otswana',\n 'BY' => 'Byelorisi',\n 'BZ' => 'Belizɛ',\n 'CA' => 'Kanada',\n 'CD' => 'Republíki ya Kongó Demokratíki',\n 'CF' => 'Repibiki ya Afríka ya Káti',\n 'CG' => 'Kongo',\n 'CH' => 'Swisɛ',\n 'CI' => 'Ko", "middle": " 'BI' => 'Burundi',\n 'BJ' => 'Benɛ',\n 'BM' => 'Bermuda',\n 'BN' => 'Brineyi',\n 'BO' => 'Bolivi',\n 'BR' => 'Brezílɛ',\n 'BS' => 'Bahamasɛ',\n 'BT' => 'Butáni',\n 'BW' => 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ln.php", "language": "php", "file_size": 7002, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigva ir Barbuda',\n 'AI' => 'Angilija',\n 'AL' => 'Albanija',\n 'AM' => 'Armėnija',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktida',\n 'AR' => 'Argentina',\n 'AS' => 'Amerikos Samoa',\n 'AT' => 'Austrija',\n 'AU' => 'Australija',\n 'AW' => 'Aruba',\n 'AX' => 'Alandų Salos',\n 'AZ' => 'Azerbaidžanas',\n 'BA' => 'Bosnija ir Hercegovina',\n 'BB' => 'Barbadosas',\n 'BD' => 'Bangladešas',\n 'BE' => 'Belgija'", "suffix": "ėjus',\n 'BO' => 'Bolivija',\n 'BQ' => 'Karibų Nyderlandai',\n 'BR' => 'Brazilija',\n 'BS' => 'Bahamos',\n 'BT' => 'Butanas',\n 'BV' => 'Buvė Sala',\n 'BW' => 'Botsvana',\n 'BY' => 'Baltarusija',\n 'BZ'", "middle": ",\n 'BF' => 'Burkina Fasas',\n 'BG' => 'Bulgarija',\n 'BH' => 'Bahreinas',\n 'BI' => 'Burundis',\n 'BJ' => 'Beninas',\n 'BL' => 'Sen Bartelemi',\n 'BM' => 'Bermuda',\n 'BN' => 'Brun", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/lt.php", "language": "php", "file_size": 7953, "cut_index": 716, "middle_length": 229}} {"prefix": "BT',\n 'BV',\n 'BW',\n 'BY',\n 'BZ',\n 'CA',\n 'CC',\n 'CD',\n 'CF',\n 'CG',\n 'CH',\n 'CI',\n 'CK',\n 'CL',\n 'CM',\n 'CN',\n 'CO',\n 'CR',\n 'CU',\n 'CV',\n 'CW',\n 'CX',\n 'CY',\n 'CZ',\n 'DE',\n 'DJ',\n 'DK',\n 'DM',\n 'DO',\n 'DZ',\n 'EC',\n 'EE',\n 'EG',\n 'EH',\n 'ER',\n 'ES',\n 'ET',\n ", "suffix": "'GN',\n 'GP',\n 'GQ',\n 'GR',\n 'GS',\n 'GT',\n 'GU',\n 'GW',\n 'GY',\n 'HK',\n 'HM',\n 'HN',\n 'HR',\n 'HT',\n 'HU',\n 'ID',\n 'IE',\n 'IL',\n 'IM'", "middle": " 'FI',\n 'FJ',\n 'FK',\n 'FM',\n 'FO',\n 'FR',\n 'GA',\n 'GB',\n 'GD',\n 'GE',\n 'GF',\n 'GG',\n 'GH',\n 'GI',\n 'GL',\n 'GM',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/meta.php", "language": "php", "file_size": 27149, "cut_index": 1331, "middle_length": 229}} {"prefix": ",\n 'AG' => 'Motu Nehe me Pāputa',\n 'AI' => 'Anguira',\n 'AL' => 'Arapeinia',\n 'AM' => 'Āmenia',\n 'AO' => 'Anakora',\n 'AQ' => 'Te Kōpakatanga ki te Tonga',\n 'AR' => 'Āketina',\n 'AS' => 'Hāmoa-Amerika',\n 'AT' => 'Ataria',\n 'AU' => 'Ahitereiria',\n 'AW' => 'Arūpa',\n 'AX' => 'Motu Ōrana',\n 'AZ' => 'Atepaihānia',\n 'BA' => 'Pōngia & Herekōwini',\n 'BB' => 'Papatohe',\n 'BD' => 'Pākaratēhi',\n 'BE' => ", "suffix": " 'Poronai',\n 'BO' => 'Poriwia',\n 'BQ' => 'Karapīana Hōrana',\n 'BR' => 'Parīhi',\n 'BS' => 'Pahama',\n 'BT' => 'Pūtana',\n 'BV' => 'Motu Pūwei',\n 'BW' => 'Poriwana',\n 'BY' => 'Pērara',\n 'BZ' => 'Pe", "middle": "'Peretiama',\n 'BF' => 'Pākina Wharo',\n 'BG' => 'Purukāria',\n 'BH' => 'Pāreina',\n 'BI' => 'Puruniti',\n 'BJ' => 'Penīna',\n 'BL' => 'Hato Pāteremi',\n 'BM' => 'Pāmura',\n 'BN' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/mi.php", "language": "php", "file_size": 7756, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'ആൻറിഗ്വയും ബർബുഡയും',\n 'AI' => 'ആൻഗ്വില്ല',\n 'AL' => 'അൽബേനിയ',\n 'AM' => 'അർമേനിയ',\n 'AO' => 'അംഗോള',\n 'AQ' => 'അന്റാർട്ടിക്ക',\n 'AR' => 'അർജന്റീന',\n 'AS' => 'അമേരിക്കൻ സമോവ',\n 'AT' => 'ഓസ്ട്രിയ',\n 'AU' => 'ഓസ്‌ട്രേലിയ',\n 'AW' => 'അറൂബ',\n 'AX' => 'അലൻഡ് ദ്വീപുകൾ',\n 'AZ' => 'അസർബൈജാൻ',\n 'BA' => 'ബോസ്നിയയും ഹെർസഗോവിനയും',\n 'BB' => 'ബാർബഡോസ്',\n 'BD' => 'ബംഗ്ലാദേശ്',\n 'BE' => 'ബെൽജിയം',\n ", "suffix": " 'BO' => 'ബൊളീവിയ',\n 'BQ' => 'കരീബിയൻ നെതർലാൻഡ്സ്',\n 'BR' => 'ബ്രസീൽ',\n 'BS' => 'ബഹാമാസ്',\n 'BT' => 'ഭൂട്ടാൻ',\n 'BV' => 'ബൗവെട്ട് ദ്വീപ്',\n 'BW' => 'ബോട്സ്വാന',\n 'BY' => 'ബെലറൂസ്',\n 'BZ' => 'ബെലീസ്',", "middle": " 'BF' => 'ബർക്കിന ഫാസോ',\n 'BG' => 'ബൾഗേറിയ',\n 'BH' => 'ബഹ്റിൻ',\n 'BI' => 'ബറുണ്ടി',\n 'BJ' => 'ബെനിൻ',\n 'BL' => 'സെന്റ് ബാർത്തലമി',\n 'BM' => 'ബർമുഡ',\n 'BN' => 'ബ്രൂണൈ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ml.php", "language": "php", "file_size": 12717, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Антигуа ба Барбуда',\n 'AI' => 'Ангилья',\n 'AL' => 'Албани',\n 'AM' => 'Армени',\n 'AO' => 'Ангол',\n 'AQ' => 'Антарктид',\n 'AR' => 'Аргентин',\n 'AS' => 'Америкийн Самоа',\n 'AT' => 'Австри',\n 'AU' => 'Австрали',\n 'AW' => 'Аруба',\n 'AX' => 'Аландын арлууд',\n 'AZ' => 'Азербайжан',\n 'BA' => 'Босни-Херцеговин',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельги',\n 'BF' => 'Буркин", "suffix": " 'BQ' => 'Карибын Нидерланд',\n 'BR' => 'Бразил',\n 'BS' => 'Багамын арлууд',\n 'BT' => 'Бутан',\n 'BV' => 'Буве арал',\n 'BW' => 'Ботсван',\n 'BY' => 'Беларусь',\n 'BZ' => 'Белизе',\n 'CA' => 'Канад',\n ", "middle": "а Фасо',\n 'BG' => 'Болгар',\n 'BH' => 'Бахрейн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сент-Бартельми',\n 'BM' => 'Бермуда',\n 'BN' => 'Бруней',\n 'BO' => 'Боливи',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/mn.php", "language": "php", "file_size": 9751, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'अँटिग्वा आणि बर्बुडा',\n 'AI' => 'अँग्विला',\n 'AL' => 'अल्बानिया',\n 'AM' => 'अर्मेनिया',\n 'AO' => 'अंगोला',\n 'AQ' => 'अंटार्क्टिका',\n 'AR' => 'अर्जेंटिना',\n 'AS' => 'अमेरिकन सामोआ',\n 'AT' => 'ऑस्ट्रिया',\n 'AU' => 'ऑस्ट्रेलिया',\n 'AW' => 'अरुबा',\n 'AX' => 'अ‍ॅलँड बेटे',\n 'AZ' => 'अझरबैजान',\n 'BA' => 'बोस्निया अणि हर्जेगोविना',\n 'BB' => 'बार्बाडोस',\n 'BD' => 'बांगलादेश',\n 'BE' => 'बेल्जियम',\n ", "suffix": " 'BO' => 'बोलिव्हिया',\n 'BQ' => 'कॅरिबियन नेदरलँड्स',\n 'BR' => 'ब्राझिल',\n 'BS' => 'बहामाज',\n 'BT' => 'भूतान',\n 'BV' => 'बोउवेट बेट',\n 'BW' => 'बोट्सवाना',\n 'BY' => 'बेलारूस',\n 'BZ' => 'बेलिझे',\n", "middle": " 'BF' => 'बुर्किना फासो',\n 'BG' => 'बल्गेरिया',\n 'BH' => 'बहारीन',\n 'BI' => 'बुरुंडी',\n 'BJ' => 'बेनिन',\n 'BL' => 'सेंट बार्थेलेमी',\n 'BM' => 'बर्मुडा',\n 'BN' => 'ब्रुनेई',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/mr.php", "language": "php", "file_size": 12177, "cut_index": 716, "middle_length": 229}} {"prefix": "န်တီဂွါနှင့် ဘာဘူဒါ',\n 'AI' => 'အန်ဂီလာ',\n 'AL' => 'အယ်လ်ဘေးနီးယား',\n 'AM' => 'အာမေးနီးယား',\n 'AO' => 'အန်ဂိုလာ',\n 'AQ' => 'အန်တာတိက',\n 'AR' => 'အာဂျင်တီးနား',\n 'AS' => 'အမေရိကန် ဆမိုးအား',\n 'AT' => 'ဩစတြီးယား',\n 'AU' => 'ဩစတြေးလျ',\n 'AW' => 'အာရူးဗား',\n 'AX' => 'အာလန်ကျွန်း',\n 'AZ' => 'အဇာဘိုင်ဂျန်',\n 'BA' => 'ဘော့စနီးယားနှင့် ဟာဇီဂိုဗီနား',\n 'BB' => 'ဘာဘေးဒိုးစ်',\n 'BD' => 'ဘင်္ဂလားဒေ့ရှ်',\n 'BE", "suffix": " 'BN' => 'ဘရူနိုင်း',\n 'BO' => 'ဘိုလီးဗီးယား',\n 'BQ' => 'ကာရစ်ဘီယံ နယ်သာလန်',\n 'BR' => 'ဘရာဇီး',\n 'BS' => 'ဘဟားမား',\n 'BT' => 'ဘူတန်',\n 'BV' => 'ဘူဗက်ကျွန်း',\n 'BW' => 'ဘော့ဆွာနာ',\n 'BY' => 'ဘီ", "middle": "' => 'ဘယ်လ်ဂျီယမ်',\n 'BF' => 'ဘာကီးနား ဖားဆို',\n 'BG' => 'ဘူလ်ဂေးရီးယား',\n 'BH' => 'ဘာရိန်း',\n 'BI' => 'ဘူရွန်ဒီ',\n 'BJ' => 'ဘီနင်',\n 'BL' => 'စိန့်ဘာသယ်လ်မီ',\n 'BM' => 'ဘာမြူဒါ',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/my.php", "language": "php", "file_size": 13266, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AR' => 'Ajentina',\n 'AS' => 'Samoa ye Amelika',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Arubha',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bhosnia le Herzegovina',\n 'BB' => 'Bhabhadosi',\n 'BD' => 'Bhangiladeshi',\n 'BE' => 'Bhelgium',\n 'BF' => 'Bhukina Faso',\n 'BG' => 'Bhulgariya',\n 'BH' => 'Bhahareni',\n '", "suffix": "tswana',\n 'BY' => 'Bhelarusi',\n 'BZ' => 'Bhelize',\n 'CA' => 'Khanada',\n 'CD' => 'Democratic Republic of the Congo',\n 'CF' => 'Central African Republic',\n 'CG' => 'Khongo',\n 'CH' => 'Switzerland',\n 'CI", "middle": "BI' => 'Bhurundi',\n 'BJ' => 'Bhenini',\n 'BM' => 'Bhemuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bholiviya',\n 'BR' => 'Brazili',\n 'BS' => 'Bhahamas',\n 'BT' => 'Bhutani',\n 'BW' => 'Bo", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/nd.php", "language": "php", "file_size": 6643, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua en Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albanië',\n 'AM' => 'Armenië',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Argentinië',\n 'AS' => 'Amerikaans-Samoa',\n 'AT' => 'Oostenrijk',\n 'AU' => 'Australië',\n 'AW' => 'Aruba',\n 'AX' => 'Åland',\n 'AZ' => 'Azerbeidzjan',\n 'BA' => 'Bosnië en Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'België',\n ", "suffix": " 'BO' => 'Bolivia',\n 'BQ' => 'Caribisch Nederland',\n 'BR' => 'Brazilië',\n 'BS' => 'Bahama’s',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouveteiland',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n ", "middle": " 'BF' => 'Burkina Faso',\n 'BG' => 'Bulgarije',\n 'BH' => 'Bahrein',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/nl.php", "language": "php", "file_size": 7671, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'ანტიგუა და ბარბუდა',\n 'AI' => 'ანგილია',\n 'AL' => 'ალბანეთი',\n 'AM' => 'სომხეთი',\n 'AO' => 'ანგოლა',\n 'AQ' => 'ანტარქტიკა',\n 'AR' => 'არგენტინა',\n 'AS' => 'ამერიკის სამოა',\n 'AT' => 'ავსტრია',\n 'AU' => 'ავსტრალია',\n 'AW' => 'არუბა',\n 'AX' => 'ალანდის კუნძულები',\n 'AZ' => 'აზერბაიჯანი',\n 'BA' => 'ბოსნია და ჰერცეგოვინა',\n 'BB' => 'ბარბადოსი',\n 'BD' => 'ბანგლადეში',\n 'BE' => 'ბელგია',\n ", "suffix": " 'BO' => 'ბოლივია',\n 'BQ' => 'კარიბის ნიდერლანდები',\n 'BR' => 'ბრაზილია',\n 'BS' => 'ბაჰამის კუნძულები',\n 'BT' => 'ბუტანი',\n 'BV' => 'ბუვე',\n 'BW' => 'ბოტსვანა',\n 'BY' => 'ბელარუსი',\n 'BZ' => 'ბელიზ", "middle": " 'BF' => 'ბურკინა-ფასო',\n 'BG' => 'ბულგარეთი',\n 'BH' => 'ბაჰრეინი',\n 'BI' => 'ბურუნდი',\n 'BJ' => 'ბენინი',\n 'BL' => 'სენ-ბართელმი',\n 'BM' => 'ბერმუდა',\n 'BN' => 'ბრუნეი',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ka.php", "language": "php", "file_size": 13007, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'អង់ទីហ្គា និង បាប៊ុយដា',\n 'AI' => 'អង់ហ្គីឡា',\n 'AL' => 'អាល់បានី',\n 'AM' => 'អាមេនី',\n 'AO' => 'អង់ហ្គោឡា',\n 'AQ' => 'អង់តាក់ទិក',\n 'AR' => 'អាហ្សង់ទីន',\n 'AS' => 'សាម័រ អាមេរិកាំង',\n 'AT' => 'អូទ្រីស',\n 'AU' => 'អូស្ត្រាលី',\n 'AW' => 'អារូបា',\n 'AX' => 'កោះ​អាឡង់',\n 'AZ' => 'អាស៊ែបៃហ្សង់',\n 'BA' => 'បូស្ន៊ី និងហឺហ្ស៊ីហ្គូវីណា',\n 'BB' => 'បាបាដុស',\n 'BD' => 'បង់ក្លាដែស',\n 'BE' => 'បែ", "suffix": "'ព្រុយណេ',\n 'BO' => 'បូលីវី',\n 'BQ' => 'ហូឡង់ ការ៉ាប៊ីន',\n 'BR' => 'ប្រេស៊ីល',\n 'BS' => 'បាហាម៉ា',\n 'BT' => 'ប៊ូតង់',\n 'BV' => 'កោះ​ប៊ូវ៉េត',\n 'BW' => 'បុតស្វាណា',\n 'BY' => 'បេឡារុស',\n 'BZ' => ", "middle": "លហ្ស៊ិក',\n 'BF' => 'បួគីណាហ្វាសូ',\n 'BG' => 'ប៊ុលហ្ការី',\n 'BH' => 'បារ៉ែន',\n 'BI' => 'ប៊ូរុនឌី',\n 'BJ' => 'បេណាំង',\n 'BL' => 'សាំង​បាថេឡេមី',\n 'BM' => 'ប៊ឺមុយដា',\n 'BN' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/km.php", "language": "php", "file_size": 12661, "cut_index": 716, "middle_length": 229}} {"prefix": "I' => '앵귈라',\n 'AL' => '알바니아',\n 'AM' => '아르메니아',\n 'AO' => '앙골라',\n 'AQ' => '남극 대륙',\n 'AR' => '아르헨티나',\n 'AS' => '아메리칸 사모아',\n 'AT' => '오스트리아',\n 'AU' => '오스트레일리아',\n 'AW' => '아루바',\n 'AX' => '올란드 제도',\n 'AZ' => '아제르바이잔',\n 'BA' => '보스니아 헤르체고비나',\n 'BB' => '바베이도스',\n 'BD' => '방글라데시',\n 'BE' => '벨기에',\n 'BF' => '부르키나파소',\n 'BG' => '불가리아',\n 'BH' => '바레인',\n 'BI' => '부룬디',\n 'BJ' => '베냉',\n", "suffix": " => '보츠와나',\n 'BY' => '벨라루스',\n 'BZ' => '벨리즈',\n 'CA' => '캐나다',\n 'CC' => '코코스 제도',\n 'CD' => '콩고-킨샤사',\n 'CF' => '중앙 아프리카 공화국',\n 'CG' => '콩고-브라자빌',\n 'CH' => '스위스',\n 'CI' => '코트디부아르',\n 'CK' =>", "middle": " 'BL' => '생바르텔레미',\n 'BM' => '버뮤다',\n 'BN' => '브루나이',\n 'BO' => '볼리비아',\n 'BQ' => '네덜란드령 카리브',\n 'BR' => '브라질',\n 'BS' => '바하마',\n 'BT' => '부탄',\n 'BV' => '부베섬',\n 'BW'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ko.php", "language": "php", "file_size": 8337, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua a Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albanien',\n 'AM' => 'Armenien',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktis',\n 'AR' => 'Argentinien',\n 'AS' => 'Amerikanesch-Samoa',\n 'AT' => 'Éisträich',\n 'AU' => 'Australien',\n 'AW' => 'Aruba',\n 'AX' => 'Ålandinselen',\n 'AZ' => 'Aserbaidschan',\n 'BA' => 'Bosnien an Herzegowina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesch',\n 'BE' => 'Bels", "suffix": "ei',\n 'BO' => 'Bolivien',\n 'BQ' => 'Karibescht Holland',\n 'BR' => 'Brasilien',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvetinsel',\n 'BW' => 'Botsuana',\n 'BY' => 'Wäissrussland',\n 'BZ", "middle": "ch',\n 'BF' => 'Burkina Faso',\n 'BG' => 'Bulgarien',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brun", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/lb.php", "language": "php", "file_size": 7566, "cut_index": 716, "middle_length": 229}} {"prefix": "> 'Angiye',\n 'AL' => 'Alubani',\n 'AM' => 'Ameni',\n 'AO' => 'Angola',\n 'AR' => 'Alijantine',\n 'AS' => 'Samoa wa Ameriki',\n 'AT' => 'Otilisi',\n 'AU' => 'Ositali',\n 'AW' => 'Aruba',\n 'AZ' => 'Ajelbayidja',\n 'BA' => 'Mbosini ne Hezegovine',\n 'BB' => 'Barebade',\n 'BD' => 'Benguladeshi',\n 'BE' => 'Belejiki',\n 'BF' => 'Bukinafaso',\n 'BG' => 'Biligari',\n 'BH' => 'Bahrene',\n 'BI' => 'Burundi',\n ", "suffix": "Byelorisi',\n 'BZ' => 'Belize',\n 'CA' => 'Kanada',\n 'CD' => 'Ditunga wa Kongu',\n 'CF' => 'Ditunga dya Afrika wa munkatshi',\n 'CG' => 'Kongu',\n 'CH' => 'Swise',\n 'CI' => 'Kotedivuale',\n 'CK' => 'Lutanda", "middle": " 'BJ' => 'Bene',\n 'BM' => 'Bermuda',\n 'BN' => 'Brineyi',\n 'BO' => 'Mbolivi',\n 'BR' => 'Mnulezile',\n 'BS' => 'Bahamase',\n 'BT' => 'Butani',\n 'BW' => 'Mbotswana',\n 'BY' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/lu.php", "language": "php", "file_size": 6553, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'Antigva un Barbuda',\n 'AI' => 'Angilja',\n 'AL' => 'Albānija',\n 'AM' => 'Armēnija',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentīna',\n 'AS' => 'ASV Samoa',\n 'AT' => 'Austrija',\n 'AU' => 'Austrālija',\n 'AW' => 'Aruba',\n 'AX' => 'Olandes salas',\n 'AZ' => 'Azerbaidžāna',\n 'BA' => 'Bosnija un Hercegovina',\n 'BB' => 'Barbadosa',\n 'BD' => 'Bangladeša',\n 'BE' => 'Beļģija',\n '", "suffix": " 'BO' => 'Bolīvija',\n 'BQ' => 'Nīderlandes Karību salas',\n 'BR' => 'Brazīlija',\n 'BS' => 'Bahamu salas',\n 'BT' => 'Butāna',\n 'BV' => 'Buvē sala',\n 'BW' => 'Botsvāna',\n 'BY' => 'Baltkrievija',\n 'BZ'", "middle": "BF' => 'Burkinafaso',\n 'BG' => 'Bulgārija',\n 'BH' => 'Bahreina',\n 'BI' => 'Burundija',\n 'BJ' => 'Benina',\n 'BL' => 'Senbartelmī',\n 'BM' => 'Bermudu salas',\n 'BN' => 'Bruneja',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/lv.php", "language": "php", "file_size": 7843, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'Antigua și Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Americană',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Insulele Åland',\n 'AZ' => 'Azerbaidjan',\n 'BA' => 'Bosnia și Herțegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgia',\n 'BF'", "suffix": "=> 'Bolivia',\n 'BQ' => 'Insulele Caraibe Olandeze',\n 'BR' => 'Brazilia',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Insula Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n ", "middle": " => 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint-Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/mo.php", "language": "php", "file_size": 7723, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'Antigua dan Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antartika',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa Amerika',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Kepulauan Aland',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bosnia dan Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgium',\n 'BF'", "suffix": " 'Bolivia',\n 'BQ' => 'Belanda Caribbean',\n 'BR' => 'Brazil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Pulau Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA' =>", "middle": " => 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'St. Barthelemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ms.php", "language": "php", "file_size": 7547, "cut_index": 716, "middle_length": 229}} {"prefix": "ntigua lan Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albani',\n 'AM' => 'Arménia',\n 'AO' => 'Angola',\n 'AQ' => 'Antartika',\n 'AR' => 'Argèntina',\n 'AS' => 'Samoa Amerika',\n 'AT' => 'Ostenrik',\n 'AU' => 'Ostrali',\n 'AW' => 'Aruba',\n 'AX' => 'Kapuloan Alan',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bosnia lan Hèrségovina',\n 'BB' => 'Barbadhos',\n 'BD' => 'Banggaladésa',\n 'BE' => 'Bèlgi',\n 'BF' => 'Burki", "suffix": "',\n 'BQ' => 'Karibia Walanda',\n 'BR' => 'Brasil',\n 'BS' => 'Bahama',\n 'BT' => 'Bhutan',\n 'BV' => 'Pulo Bovèt',\n 'BW' => 'Botswana',\n 'BY' => 'Bélarus',\n 'BZ' => 'Bélisé',\n 'CA' => 'Kanada',\n ", "middle": "na Faso',\n 'BG' => 'Bulgari',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Bénin',\n 'BL' => 'Saint Barthélémi',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunéi',\n 'BO' => 'Bolivia", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/jv.php", "language": "php", "file_size": 7649, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'Антигуа және Барбуда',\n 'AI' => 'Ангилья',\n 'AL' => 'Албания',\n 'AM' => 'Армения',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктида',\n 'AR' => 'Аргентина',\n 'AS' => 'Америкалық Самоа',\n 'AT' => 'Аустрия',\n 'AU' => 'Аустралия',\n 'AW' => 'Аруба',\n 'AX' => 'Аланд аралдары',\n 'AZ' => 'Әзірбайжан',\n 'BA' => 'Босния және Герцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельгия',\n ", "suffix": " 'BO' => 'Боливия',\n 'BQ' => 'Бонэйр, Синт-Эстатиус және Саба',\n 'BR' => 'Бразилия',\n 'BS' => 'Багам аралдары',\n 'BT' => 'Бутан',\n 'BV' => 'Буве аралы',\n 'BW' => 'Ботсвана',\n 'BY' => 'Беларусь',\n ", "middle": " 'BF' => 'Буркина-Фасо',\n 'BG' => 'Болгария',\n 'BH' => 'Бахрейн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сен-Бартелеми',\n 'BM' => 'Бермуд аралдары',\n 'BN' => 'Бруней',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/kk.php", "language": "php", "file_size": 10049, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antîgua û Berbûda',\n 'AI' => 'Anguîla',\n 'AL' => 'Albanya',\n 'AM' => 'Ermenistan',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktîka',\n 'AR' => 'Arjantîn',\n 'AS' => 'Samoaya Amerîkanî',\n 'AT' => 'Awistirya',\n 'AU' => 'Awistralya',\n 'AW' => 'Arûba',\n 'AX' => 'Giravên Alandê',\n 'AZ' => 'Azerbeycan',\n 'BA' => 'Bosna û Hersek',\n 'BB' => 'Barbados',\n 'BD' => 'Bengladeş',\n 'BE' => 'Belçîka',\n 'B", "suffix": "'BO' => 'Bolîvya',\n 'BQ' => 'Holendaya Karayîbê',\n 'BR' => 'Brezîlya',\n 'BS' => 'Bahama',\n 'BT' => 'Bûtan',\n 'BV' => 'Girava Bouvetê',\n 'BW' => 'Botswana',\n 'BY' => 'Belarûs',\n 'BZ' => 'Belîze',\n ", "middle": "F' => 'Burkîna Faso',\n 'BG' => 'Bulgaristan',\n 'BH' => 'Behreyn',\n 'BI' => 'Bûrûndî',\n 'BJ' => 'Bênîn',\n 'BL' => 'Saint Barthelemy',\n 'BM' => 'Bermûda',\n 'BN' => 'Brûney',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ku.php", "language": "php", "file_size": 7856, "cut_index": 716, "middle_length": 229}} {"prefix": "G' => 'ແອນທິກົວ ແລະ ບາບູດາ',\n 'AI' => 'ແອນກຸຍລາ',\n 'AL' => 'ແອວເບເນຍ',\n 'AM' => 'ອາເມເນຍ',\n 'AO' => 'ແອງໂກລາ',\n 'AQ' => 'ແອນຕາດຕິກາ',\n 'AR' => 'ອາເຈນທິນາ',\n 'AS' => 'ອາເມຣິກາ ຊາມົວ',\n 'AT' => 'ອອສເທຣຍ',\n 'AU' => 'ອອສເຕຣເລຍ',\n 'AW' => 'ອາຣູບາ',\n 'AX' => 'ຫມູ່ເກາະໂອລັນ',\n 'AZ' => 'ອາເຊີໄບຈານ',\n 'BA' => 'ບອດສະເນຍ ແລະ ແຮສໂກວີນາ',\n 'BB' => 'ບາບາໂດສ',\n 'BD' => 'ບັງກະລາເທດ',\n 'BE' => 'ເບວຢຽມ',\n 'B", "suffix": "ໂບລິເວຍ',\n 'BQ' => 'ຄາຣິບບຽນ ເນເທີແລນ',\n 'BR' => 'ບຣາຊິວ',\n 'BS' => 'ບາຮາມາສ',\n 'BT' => 'ພູຖານ',\n 'BV' => 'ເກາະບູເວດ',\n 'BW' => 'ບອດສະວານາ',\n 'BY' => 'ເບລາຣຸສ',\n 'BZ' => 'ເບລີຊ',\n 'CA' => 'ແຄນາ", "middle": "F' => 'ເບີກິນາ ຟາໂຊ',\n 'BG' => 'ບັງກາເຣຍ',\n 'BH' => 'ບາເຣນ',\n 'BI' => 'ບູຣຸນດິ',\n 'BJ' => 'ເບນິນ',\n 'BL' => 'ເຊນ ບາເທເລມີ',\n 'BM' => 'ເບີມິວດາ',\n 'BN' => 'ບຣູໄນ',\n 'BO' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/lo.php", "language": "php", "file_size": 11941, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua u Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'l-Albanija',\n 'AM' => 'l-Armenja',\n 'AO' => 'l-Angola',\n 'AQ' => 'l-Antartika',\n 'AR' => 'l-Arġentina',\n 'AS' => 'is-Samoa Amerikana',\n 'AT' => 'l-Awstrija',\n 'AU' => 'l-Awstralja',\n 'AW' => 'Aruba',\n 'AX' => 'il-Gżejjer Aland',\n 'AZ' => 'l-Ażerbajġan',\n 'BA' => 'il-Bożnija-Ħerzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'il-Bangladesh',\n ", "suffix": "> 'Bermuda',\n 'BN' => 'il-Brunei',\n 'BO' => 'il-Bolivja',\n 'BQ' => 'in-Netherlands tal-Karibew',\n 'BR' => 'Il-Brażil',\n 'BS' => 'il-Bahamas',\n 'BT' => 'il-Bhutan',\n 'BV' => 'Gżira Bouvet',\n 'BW' => 'i", "middle": " 'BE' => 'il-Belġju',\n 'BF' => 'il-Burkina Faso',\n 'BG' => 'il-Bulgarija',\n 'BH' => 'il-Bahrain',\n 'BI' => 'il-Burundi',\n 'BJ' => 'il-Benin',\n 'BL' => 'Saint Barthélemy',\n 'BM' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/mt.php", "language": "php", "file_size": 8339, "cut_index": 716, "middle_length": 229}} {"prefix": "AG' => 'एन्टिगुआ र बारबुडा',\n 'AI' => 'आङ्गुइला',\n 'AL' => 'अल्बेनिया',\n 'AM' => 'आर्मेनिया',\n 'AO' => 'अङ्गोला',\n 'AQ' => 'अन्टारटिका',\n 'AR' => 'अर्जेन्टिना',\n 'AS' => 'अमेरिकी समोआ',\n 'AT' => 'अष्ट्रिया',\n 'AU' => 'अस्ट्रेलिया',\n 'AW' => 'अरुबा',\n 'AX' => 'अलान्ड टापुहरु',\n 'AZ' => 'अजरबैजान',\n 'BA' => 'बोस्निया एण्ड हर्जगोभिनिया',\n 'BB' => 'बार्बाडोस',\n 'BD' => 'बङ्गलादेश',\n 'BE' => 'बेल्जियम'", "suffix": "ाइ',\n 'BO' => 'बोलिभिया',\n 'BQ' => 'क्यारिवियन नेदरल्याण्ड्स',\n 'BR' => 'ब्राजिल',\n 'BS' => 'बहामास',\n 'BT' => 'भुटान',\n 'BV' => 'बुभेट टापु',\n 'BW' => 'बोट्स्वाना',\n 'BY' => 'बेलारूस',\n 'BZ' =", "middle": ",\n 'BF' => 'बुर्किना फासो',\n 'BG' => 'बुल्गेरिया',\n 'BH' => 'बहराइन',\n 'BI' => 'बुरूण्डी',\n 'BJ' => 'बेनिन',\n 'BL' => 'सेन्ट बार्थेलेमी',\n 'BM' => 'बर्मुडा',\n 'BN' => 'ब्रुन", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ne.php", "language": "php", "file_size": 12641, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AR' => 'Arzantina',\n 'AS' => 'Samoa amerikanina',\n 'AT' => 'Aotrisy',\n 'AU' => 'Aostralia',\n 'AW' => 'Arobà',\n 'AZ' => 'Azerbaidjan',\n 'BA' => 'Bosnia sy Herzegovina',\n 'BB' => 'Barbady',\n 'BD' => 'Bangladesy',\n 'BE' => 'Belzika',\n 'BF' => 'Borkina Faso',\n 'BG' => 'Biolgaria',\n 'BH' => 'Bahrain',\n 'BI' => ", "suffix": " 'BY' => 'Belarosy',\n 'BZ' => 'Belize',\n 'CA' => 'Kanada',\n 'CD' => 'Repoblikan’i Kongo',\n 'CF' => 'Repoblika Ivon’Afrika',\n 'CG' => 'Kôngô',\n 'CH' => 'Soisa',\n 'CI' => 'Côte d’Ivoire',\n 'CK' => '", "middle": "'Borondi',\n 'BJ' => 'Benin',\n 'BM' => 'Bermioda',\n 'BN' => 'Brunei',\n 'BO' => 'Bolivia',\n 'BR' => 'Brezila',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhotana',\n 'BW' => 'Botsoana',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/mg.php", "language": "php", "file_size": 6584, "cut_index": 716, "middle_length": 229}} {"prefix": "'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AR' => 'Ajentina',\n 'AS' => 'Samoa ya Marekani',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AZ' => 'Azabajani',\n 'BA' => 'Bosnia na Hezegovina',\n 'BB' => 'Babadosi',\n 'BD' => 'Bangladeshi',\n 'BE' => 'Ubelgiji',\n 'BF' => 'Bukinafaso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahareni',\n 'BI' => 'Mburund", "suffix": " => 'Belarusi',\n 'BZ' => 'Belize',\n 'CA' => 'Kanada',\n 'CD' => 'Jamhuri ya Kidemokrasia ya Kongo',\n 'CF' => 'Jamhuri ya Afrika ya Kati',\n 'CG' => 'Kongo',\n 'CH' => 'Uswisi',\n 'CI' => 'Kodivaa',\n 'CK' ", "middle": "i',\n 'BJ' => 'Benini',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bolivia',\n 'BR' => 'Brazili',\n 'BS' => 'Bahama',\n 'BT' => 'Butani',\n 'BW' => 'Botswana',\n 'BY'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ki.php", "language": "php", "file_size": 6552, "cut_index": 716, "middle_length": 229}} {"prefix": "'AG' => 'Антига и Барбуда',\n 'AI' => 'Ангвила',\n 'AL' => 'Албанија',\n 'AM' => 'Ерменија',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктик',\n 'AR' => 'Аргентина',\n 'AS' => 'Американска Самоа',\n 'AT' => 'Австрија',\n 'AU' => 'Австралија',\n 'AW' => 'Аруба',\n 'AX' => 'Оландски Острови',\n 'AZ' => 'Азербејџан',\n 'BA' => 'Босна и Херцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Белгија',\n ", "suffix": "BO' => 'Боливија',\n 'BQ' => 'Карипска Холандија',\n 'BR' => 'Бразил',\n 'BS' => 'Бахами',\n 'BT' => 'Бутан',\n 'BV' => 'Остров Буве',\n 'BW' => 'Боцвана',\n 'BY' => 'Белорусија',\n 'BZ' => 'Белизе',\n ", "middle": "'BF' => 'Буркина Фасо',\n 'BG' => 'Бугарија',\n 'BH' => 'Бахреин',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Свети Вартоломеј',\n 'BM' => 'Бермуди',\n 'BN' => 'Брунеј',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/mk.php", "language": "php", "file_size": 10043, "cut_index": 716, "middle_length": 229}} {"prefix": "G' => 'Antigua och Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albanien',\n 'AM' => 'Armenien',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktis',\n 'AR' => 'Argentina',\n 'AS' => 'Amerikanska Samoa',\n 'AT' => 'Österrike',\n 'AU' => 'Australien',\n 'AW' => 'Aruba',\n 'AX' => 'Åland',\n 'AZ' => 'Azerbajdzjan',\n 'BA' => 'Bosnien och Hercegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgien',\n '", "suffix": "' => 'Bolivia',\n 'BQ' => 'Karibiska Nederländerna',\n 'BR' => 'Brasilien',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvetön',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n ", "middle": "BF' => 'Burkina Faso',\n 'BG' => 'Bulgarien',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'S:t Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sv.php", "language": "php", "file_size": 7517, "cut_index": 716, "middle_length": 229}} {"prefix": "\n 'alt' => 'ደቡባዊ አልታይ',\n 'am' => 'አማርኛ',\n 'an' => 'አራጎንስ',\n 'ann' => 'ኦቦሎ',\n 'anp' => 'አንጊካ',\n 'ar' => 'ዓረብኛ',\n 'arc' => 'አራማይክ',\n 'arn' => 'ማፑቼ',\n 'aro' => 'አራኦና',\n 'arp' => 'አራፓሆ',\n 'arq' => 'የአልጄሪያ ዓረብኛ',\n 'ars' => 'ናጅዲ አረብኛ',\n 'arw' => 'አራዋክ',\n 'as' => 'አሳሜዝ',\n 'asa' => 'አሱ',\n 'ase' => 'የአሜሪካ የምልክት ቋንቋ',\n 'ast' => 'አስቱሪያንኛ',\n 'atj' => 'አቲካምከው',\n 'av' => 'አቫሪክ',\n 'aw", "suffix": " 'ባታካ ቶባ',\n 'be' => 'ቤላራሻኛ',\n 'bej' => 'ቤጃ',\n 'bem' => 'ቤምባ',\n 'bew' => 'ቤታዊ',\n 'bez' => 'ቤና',\n 'bfd' => 'ባፉት',\n 'bfq' => 'ባዳጋ',\n 'bg' => 'ቡልጋሪኛ',\n 'bgc' => 'ሃርያንቪኛ',\n 'bgn' => 'የምዕራብ ባሎ", "middle": "a' => 'አዋድሂ',\n 'ay' => 'አያማርኛ',\n 'az' => 'አዘርባጃንኛ',\n 'ba' => 'ባስኪርኛ',\n 'bal' => 'ባሉቺ',\n 'ban' => 'ባሊኔስ',\n 'bar' => 'ባቫሪያን',\n 'bas' => 'ባሳ',\n 'bax' => 'ባሙን',\n 'bbc' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/am.php", "language": "php", "file_size": 18363, "cut_index": 921, "middle_length": 229}} {"prefix": "ة',\n 'ale' => 'الأليوتية',\n 'alt' => 'الألطائية الجنوبية',\n 'am' => 'الأمهرية',\n 'an' => 'الأراغونية',\n 'ang' => 'الإنجليزية القديمة',\n 'ann' => 'أوبلو',\n 'anp' => 'الأنجيكا',\n 'ar' => 'العربية',\n 'arc' => 'الآرامية',\n 'arn' => 'المابودونغونية',\n 'arp' => 'الأراباهو',\n 'ars' => 'اللهجة النجدية',\n 'arw' => 'الأراواكية',\n 'as' => 'الأسامية',\n 'asa' => 'الآسو',\n 'ast' => 'الأسترية',\n 'atj' => ", "suffix": "'bas' => 'الباسا',\n 'bax' => 'بامن',\n 'bbj' => 'لغة الغومالا',\n 'be' => 'البيلاروسية',\n 'bej' => 'البيجا',\n 'bem' => 'البيمبا',\n 'bez' => 'بينا',\n 'bfd' => 'لغة البافوت',\n 'bg' => 'البلغارية',\n ", "middle": "'الأتيكاميكو',\n 'av' => 'الأوارية',\n 'awa' => 'الأوادية',\n 'ay' => 'الأيمارا',\n 'az' => 'الأذربيجانية',\n 'ba' => 'الباشكيرية',\n 'bal' => 'البلوشية',\n 'ban' => 'البالينية',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ar.php", "language": "php", "file_size": 22537, "cut_index": 921, "middle_length": 229}} {"prefix": "অ’ব’ল’',\n 'anp' => 'আঙ্গিকা',\n 'ar' => 'আৰবী',\n 'arn' => 'মাপুচে',\n 'arp' => 'আৰাপাহো',\n 'ars' => 'নাজডি আৰবী',\n 'as' => 'অসমীয়া',\n 'asa' => 'আছু',\n 'ast' => 'এষ্টুৰীয়',\n 'atj' => 'আতিকামেক',\n 'av' => 'আভেৰিক',\n 'awa' => 'অৱধী',\n 'ay' => 'আয়মাৰা',\n 'az' => 'আজেৰবাইজানী',\n 'ba' => 'বাছখিৰ',\n 'bal' => 'বালুচী',\n 'ban' => 'বালিনীজ',\n 'bas' => 'বাছা',\n 'be' => 'বেলাৰুছীয়',\n 'b", "suffix": "নি',\n 'bm' => 'বামবাৰা',\n 'bn' => 'বাংলা',\n 'bo' => 'তিব্বতী',\n 'br' => 'ব্ৰেটন',\n 'brx' => 'বড়ো',\n 'bs' => 'বছনীয়',\n 'bug' => 'বগিনীজ',\n 'byn' => 'ব্লিন',\n 'ca' => 'কাতালান',\n 'cay' =", "middle": "em' => 'বেম্বা',\n 'bez' => 'বেনা',\n 'bg' => 'বুলগেৰীয়',\n 'bgc' => 'হাৰয়ানভি',\n 'bho' => 'ভোজপুৰী',\n 'bi' => 'বিছলামা',\n 'bin' => 'বিনি',\n 'bla' => 'ছিক্সিকা',\n 'blo' => 'আ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/as.php", "language": "php", "file_size": 20186, "cut_index": 921, "middle_length": 229}} {"prefix": "alt' => 'cənubi altay',\n 'am' => 'amhar',\n 'an' => 'araqon',\n 'ang' => 'qədim ingilis',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'ərəb',\n 'arc' => 'aramik',\n 'arn' => 'mapuçe',\n 'arp' => 'arapaho',\n 'ars' => 'Nəcd ərəbcəsi',\n 'arw' => 'aravak',\n 'as' => 'assam',\n 'asa' => 'asu',\n 'ast' => 'asturiya',\n 'atj' => 'Atikamek',\n 'av' => 'avar',\n 'awa' => 'avadhi',\n 'ay' => 'aymara',", "suffix": "'bena',\n 'bg' => 'bolqar',\n 'bgc' => 'Haryanvi',\n 'bgn' => 'qərbi bəluc',\n 'bho' => 'bxoçpuri',\n 'bi' => 'bislama',\n 'bik' => 'bikol',\n 'bin' => 'bini',\n 'bla' => 'siksikə',\n 'blo' => 'anii',\n ", "middle": "\n 'az' => 'azərbaycan',\n 'ba' => 'başqırd',\n 'bal' => 'baluc',\n 'ban' => 'bali',\n 'bas' => 'basa',\n 'be' => 'belarus',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/az.php", "language": "php", "file_size": 15874, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ar' => 'әрәб',\n 'arn' => 'арауканҹа',\n 'arp' => 'арапаһо',\n 'as' => 'ассам',\n 'asa' => 'асу',\n 'ast' => 'астурија',\n 'av' => 'авар',\n 'awa' => 'авадһи',\n 'ay' => 'ајмара',\n 'az' => 'азәрбајҹан',\n 'ba' => 'башгырд',\n 'ban' => 'балли',\n 'bas' => 'баса',\n 'be' => 'беларус',\n 'bem' => 'бемба',\n 'bez' => 'бена',\n 'bg' => 'булгар',\n 'bho' => 'бхочпури',\n 'bi' => 'бислама',\n 'bin' ", "suffix": "'byn' => 'блин',\n 'ca' => 'каталан',\n 'ce' => 'чечен',\n 'ceb' => 'себуан',\n 'cgg' => 'чига',\n 'ch' => 'чаморо',\n 'chk' => 'чукиз',\n 'chm' => 'мари',\n 'cho' => 'чоктау',\n 'chr' => 'чероки',\n ", "middle": "=> 'бини',\n 'bla' => 'сиксикә',\n 'bm' => 'бамбара',\n 'bn' => 'бенгал',\n 'bo' => 'тибет',\n 'br' => 'бретон',\n 'brx' => 'бодо',\n 'bs' => 'босниак',\n 'bug' => 'буҝин',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/az_Cyrl.php", "language": "php", "file_size": 13211, "cut_index": 921, "middle_length": 229}} {"prefix": "z' => 'әзербайжан',\n 'ba' => 'башҡорт',\n 'bal' => 'балудж',\n 'bas' => 'басаа',\n 'be' => 'белорус',\n 'bem' => 'бемба',\n 'bew' => 'бетави',\n 'bez' => 'бена',\n 'bg' => 'болгар',\n 'bgc' => 'харьянви',\n 'bgn' => 'көнбайыш белудж',\n 'bho' => 'бходжпури',\n 'blo' => 'ании',\n 'blt' => 'тай дам',\n 'bm' => 'бамбара',\n 'bn' => 'бенгал',\n 'bo' => 'тибет',\n 'bqi' => 'бәхтиәр',\n 'br' => 'бретон',\n ", "suffix": "а',\n 'ce' => 'чечен',\n 'ceb' => 'себуано',\n 'cgg' => 'чига',\n 'cho' => 'чоктав',\n 'chr' => 'чероки',\n 'cic' => 'чикасо',\n 'ckb' => 'үҙәк курд',\n 'co' => 'корсика',\n 'cop' => 'копт',\n 'cs", "middle": " 'brx' => 'бодо',\n 'bs' => 'босний',\n 'bss' => 'акоосе',\n 'bua' => 'бүрәт',\n 'byn' => 'блин',\n 'ca' => 'каталан',\n 'cad' => 'каддо',\n 'cch' => 'атсам',\n 'ccp' => 'чакм", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ba.php", "language": "php", "file_size": 12116, "cut_index": 921, "middle_length": 229}} {"prefix": " 'an' => 'арагонская',\n 'ang' => 'стараанглійская',\n 'ann' => 'абола',\n 'anp' => 'ангіка',\n 'ar' => 'арабская',\n 'arc' => 'арамейская',\n 'arn' => 'мапудунгун',\n 'arp' => 'арапаха',\n 'ars' => 'недждыйская арабская',\n 'as' => 'асамская',\n 'asa' => 'асу',\n 'ast' => 'астурыйская',\n 'atj' => 'атыкамек',\n 'av' => 'аварская',\n 'awa' => 'авадхі',\n 'ay' => 'аймара',\n 'az' => 'азербайджанская',\n '", "suffix": "gc' => 'харыанві',\n 'bgn' => 'заходняя белуджская',\n 'bho' => 'бхаджпуры',\n 'bi' => 'біслама',\n 'bin' => 'эда',\n 'bla' => 'блэкфут',\n 'blo' => 'аніі',\n 'bm' => 'бамбара',\n 'bn' => 'бенгальская',\n ", "middle": "ba' => 'башкірская',\n 'bal' => 'белуджская',\n 'ban' => 'балійская',\n 'bas' => 'басаа',\n 'be' => 'беларуская',\n 'bem' => 'бемба',\n 'bez' => 'бена',\n 'bg' => 'балгарская',\n 'b", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/be.php", "language": "php", "file_size": 18616, "cut_index": 921, "middle_length": 229}} {"prefix": "ки',\n 'alt' => 'южноалтайски',\n 'am' => 'амхарски',\n 'an' => 'арагонски',\n 'ang' => 'староанглийски',\n 'ann' => 'оболо',\n 'anp' => 'ангика',\n 'ar' => 'арабски',\n 'arc' => 'арамейски',\n 'arn' => 'мапуче',\n 'arp' => 'арапахо',\n 'ars' => 'найди арабски',\n 'arw' => 'аравак',\n 'as' => 'асамски',\n 'asa' => 'асу',\n 'ast' => 'астурски',\n 'atj' => 'атикамеку',\n 'av' => 'аварски',\n 'awa' => 'а", "suffix": "\n 'bem' => 'бемба',\n 'bez' => 'бена',\n 'bg' => 'български',\n 'bgc' => 'харианви',\n 'bgn' => 'западен балочи',\n 'bho' => 'боджпури',\n 'bi' => 'бислама',\n 'bik' => 'биколски',\n 'bin' => 'бини',\n ", "middle": "вади',\n 'ay' => 'аймара',\n 'az' => 'азербайджански',\n 'ba' => 'башкирски',\n 'bal' => 'балучи',\n 'ban' => 'балийски',\n 'bas' => 'баса',\n 'be' => 'беларуски',\n 'bej' => 'бея',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/bg.php", "language": "php", "file_size": 20533, "cut_index": 921, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'akankan',\n 'am' => 'amarikikan',\n 'ar' => 'larabukan',\n 'be' => 'biyelorisikan',\n 'bg' => 'buligarikan',\n 'bm' => 'bamanakan',\n 'bn' => 'bɛngalikan',\n 'cs' => 'cɛkikan',\n 'de' => 'alimaɲikan',\n 'el' => 'gɛrɛsikan',\n 'en' => 'angilɛkan',\n 'es' => 'esipaɲolkan',\n 'fa' => 'perisanikan',\n 'fr' => 'tubabukan',\n 'ha' => 'awusakan',\n 'hi' => 'inidikan',\n 'hu' => 'oŋi", "suffix": "lɛzikan',\n 'my' => 'birimanikan',\n 'ne' => 'nepalekan',\n 'nl' => 'olandekan',\n 'pa' => 'pɛnijabikan',\n 'pl' => 'polonekan',\n 'pt' => 'pɔritigalikan',\n 'ro' => 'rumanikan',\n 'ru' => 'irisikan',\n ", "middle": "rikan',\n 'id' => 'Ɛndonezikan',\n 'ig' => 'igibokan',\n 'it' => 'italikan',\n 'ja' => 'zapɔnekan',\n 'jv' => 'javanekan',\n 'km' => 'kambojikan',\n 'ko' => 'korekan',\n 'ms' => 'ma", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/bm.php", "language": "php", "file_size": 1406, "cut_index": 524, "middle_length": 229}} {"prefix": "আলেউত',\n 'alt' => 'দক্ষিন আলতাই',\n 'am' => 'আমহারিক',\n 'an' => 'আর্গোনিজ',\n 'ang' => 'প্রাচীন ইংরেজী',\n 'ann' => 'ওবোলো',\n 'anp' => 'আঙ্গিকা',\n 'ar' => 'আরবি',\n 'arc' => 'আরামাইক',\n 'arn' => 'মাপুচে',\n 'arp' => 'আরাপাহো',\n 'ars' => 'নজদি আরবি',\n 'arw' => 'আরাওয়াক',\n 'as' => 'অসমীয়া',\n 'asa' => 'আসু',\n 'ast' => 'আস্তুরিয়',\n 'atj' => 'আটিকামেকিউ',\n 'av' => 'আভেরিক',\n 'awa' => 'আওয়া", "suffix": " 'bem' => 'বেম্বা',\n 'bez' => 'বেনা',\n 'bg' => 'বুলগেরিয়',\n 'bgc' => 'হরিয়ানভি',\n 'bgn' => 'পশ্চিম বালোচি',\n 'bho' => 'ভোজপুরি',\n 'bi' => 'বিসলামা',\n 'bik' => 'বিকোল',\n 'bin' => 'বিনি',\n '", "middle": "ধি',\n 'ay' => 'আয়মারা',\n 'az' => 'আজারবাইজানী',\n 'ba' => 'বাশকির',\n 'bal' => 'বেলুচী',\n 'ban' => 'বালিনীয়',\n 'bas' => 'বাসা',\n 'be' => 'বেলারুশীয়',\n 'bej' => 'বেজা',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/bn.php", "language": "php", "file_size": 24697, "cut_index": 921, "middle_length": 229}} {"prefix": "' => 'akadeg',\n 'akz' => 'alabamaeg',\n 'ale' => 'aleouteg',\n 'aln' => 'gegeg',\n 'alt' => 'altaieg ar Su',\n 'am' => 'amhareg',\n 'an' => 'aragoneg',\n 'ang' => 'hensaozneg',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'arabeg',\n 'arc' => 'arameeg',\n 'arn' => 'araoukaneg',\n 'aro' => 'araona',\n 'arp' => 'arapaho',\n 'arq' => 'arabeg Aljeria',\n 'ars' => 'arabeg nadjiek',\n 'arw' => 'arawakeg',\n", "suffix": "v' => 'avar',\n 'awa' => 'awadhi',\n 'ay' => 'aymara',\n 'az' => 'azerbaidjaneg',\n 'ba' => 'bachkir',\n 'bal' => 'baloutcheg',\n 'ban' => 'balineg',\n 'bar' => 'bavarieg',\n 'bas' => 'basaa',\n 'be' =>", "middle": " 'ary' => 'arabeg Maroko',\n 'arz' => 'arabeg Egipt',\n 'as' => 'asameg',\n 'asa' => 'asu',\n 'ase' => 'yezh sinoù Amerika',\n 'ast' => 'asturianeg',\n 'atj' => 'atikamekweg',\n 'a", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/br.php", "language": "php", "file_size": 16954, "cut_index": 921, "middle_length": 229}} {"prefix": "=> 'aleutski',\n 'alt' => 'južni altai',\n 'am' => 'amharski',\n 'an' => 'aragonski',\n 'ang' => 'staroengleski',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'arapski',\n 'arc' => 'aramejski',\n 'arn' => 'mapuški',\n 'arp' => 'arapaho',\n 'ars' => 'najdski arapski',\n 'arw' => 'aravak',\n 'as' => 'asamski',\n 'asa' => 'asu',\n 'ast' => 'asturijski',\n 'atj' => 'atikamekw',\n 'av' => 'avarski',\n ", "suffix": " 'bbj' => 'gomala',\n 'be' => 'bjeloruski',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bg' => 'bugarski',\n 'bgc' => 'harianvi',\n 'bgn' => 'zapadni belučki',\n '", "middle": " 'awa' => 'avadhi',\n 'ay' => 'ajmara',\n 'az' => 'azerbejdžanski',\n 'ba' => 'baškirski',\n 'bal' => 'baluči',\n 'ban' => 'balinezijski',\n 'bas' => 'basa',\n 'bax' => 'bamunski',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/bs.php", "language": "php", "file_size": 16326, "cut_index": 921, "middle_length": 229}} {"prefix": "'ale' => 'аљут',\n 'alt' => 'јужни алтаи',\n 'am' => 'амхарски',\n 'an' => 'арагонежански',\n 'ang' => 'староенглески',\n 'ann' => 'оболо',\n 'anp' => 'ангика',\n 'ar' => 'арапски',\n 'arc' => 'армајски',\n 'arn' => 'ароканијски',\n 'arp' => 'арапахо',\n 'ars' => 'најди арапски',\n 'arw' => 'аравак',\n 'as' => 'асемијски',\n 'asa' => 'асу',\n 'ast' => 'астуријски',\n 'atj' => 'атикамекв',\n 'av' => 'аварски", "suffix": "\n 'bej' => 'беја',\n 'bem' => 'бемба',\n 'bez' => 'бена',\n 'bg' => 'бугарски',\n 'bho' => 'бојпури',\n 'bi' => 'бислама',\n 'bik' => 'бикол',\n 'bin' => 'бини',\n 'bla' => 'сисика',\n 'bm' => 'б", "middle": "',\n 'awa' => 'авадхи',\n 'ay' => 'ајмара',\n 'az' => 'азербејџански',\n 'ba' => 'башкир',\n 'bal' => 'балучи',\n 'ban' => 'балинезијски',\n 'bas' => 'баса',\n 'be' => 'бјелоруски',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/bs_Cyrl.php", "language": "php", "file_size": 19444, "cut_index": 921, "middle_length": 229}} {"prefix": "arw' => 'arauac',\n 'arz' => 'àrab egipci',\n 'as' => 'assamès',\n 'asa' => 'pare',\n 'ase' => 'llengua de signes americana',\n 'ast' => 'asturià',\n 'atj' => 'atacama',\n 'av' => 'àvar',\n 'awa' => 'awadhi',\n 'ay' => 'aimara',\n 'az' => 'azerbaidjanès',\n 'ba' => 'baixkir',\n 'bal' => 'balutxi',\n 'ban' => 'balinès',\n 'bar' => 'bavarès',\n 'bas' => 'basa',\n 'bax' => 'bamum',\n 'bbj' => 'ghomala',\n ", "suffix": "i occidental',\n 'bho' => 'bhojpuri',\n 'bi' => 'bislama',\n 'bik' => 'bicol',\n 'bin' => 'edo',\n 'bkm' => 'kom',\n 'bla' => 'blackfoot',\n 'blo' => 'anii',\n 'bm' => 'bambara',\n 'bn' => 'bengalí',\n ", "middle": " 'be' => 'belarús',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bfq' => 'badaga',\n 'bg' => 'búlgar',\n 'bgc' => 'haryanvi',\n 'bgn' => 'balutx", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ca.php", "language": "php", "file_size": 17723, "cut_index": 1331, "middle_length": 229}} {"prefix": "anp' => 'ангика',\n 'ar' => 'Ӏаьрбийн',\n 'arn' => 'арауканхойн',\n 'arp' => 'арапахо',\n 'as' => 'ассамийн',\n 'asa' => 'асу',\n 'ast' => 'астурийн',\n 'av' => 'суьйлийн',\n 'awa' => 'авадхи',\n 'ay' => 'аймара',\n 'az' => 'азербайджанийн',\n 'ba' => 'башкирийн',\n 'ban' => 'балийн',\n 'bas' => 'баса',\n 'be' => 'белорусийн',\n 'bem' => 'бемба',\n 'bez' => 'бена',\n 'bg' => 'болгарийн',\n 'bgn' => 'м", "suffix": "=> 'бретонийн',\n 'brx' => 'бодо',\n 'bs' => 'боснийн',\n 'bug' => 'бугийн',\n 'byn' => 'билийн',\n 'ca' => 'каталонийн',\n 'ce' => 'нохчийн',\n 'ceb' => 'себуано',\n 'cgg' => 'чига',\n 'ch' => 'чаморро", "middle": "алхбузен-белуджийн',\n 'bho' => 'бходжпури',\n 'bi' => 'бислама',\n 'bin' => 'бини',\n 'bla' => 'сиксика',\n 'bm' => 'бамбара',\n 'bn' => 'бенгалийн',\n 'bo' => 'тибетхойн',\n 'br' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ce.php", "language": "php", "file_size": 14669, "cut_index": 921, "middle_length": 229}} {"prefix": " 'arn' => 'mapudungun',\n 'aro' => 'araonština',\n 'arp' => 'arapažština',\n 'arq' => 'arabština (alžírská)',\n 'ars' => 'arabština (Nadžd)',\n 'arw' => 'arawacké jazyky',\n 'ary' => 'arabština (marocká)',\n 'arz' => 'arabština (egyptská)',\n 'as' => 'ásámština',\n 'asa' => 'asu',\n 'ase' => 'znaková řeč (americká)',\n 'ast' => 'asturština',\n 'atj' => 'atikamekština',\n 'av' => 'avarština',\n 'avk' => 'kotava',\n 'awa", "suffix": "sa',\n 'bax' => 'bamun',\n 'bbc' => 'batak toba',\n 'bbj' => 'ghomala',\n 'be' => 'běloruština',\n 'bej' => 'bedža',\n 'bem' => 'bembština',\n 'bew' => 'batavština',\n 'bez' => 'bena',\n 'bfd' => 'bafut", "middle": "' => 'awadhština',\n 'ay' => 'ajmarština',\n 'az' => 'ázerbájdžánština',\n 'ba' => 'baškirština',\n 'bal' => 'balúčština',\n 'ban' => 'balijština',\n 'bar' => 'bavorština',\n 'bas' => 'ba", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/cs.php", "language": "php", "file_size": 21479, "cut_index": 1331, "middle_length": 229}} {"prefix": "чӗлхи',\n 'asa' => 'асу чӗлхи',\n 'ast' => 'астури чӗлхи',\n 'az' => 'азербайджан чӗлхи',\n 'ba' => 'пушкӑрт чӗлхи',\n 'bal' => 'белудж чӗлхи',\n 'bas' => 'баса чӗлхи',\n 'be' => 'беларус чӗлхи',\n 'bem' => 'бемба чӗлхи',\n 'bew' => 'батав чӗлхи',\n 'bez' => 'бена чӗлхи',\n 'bg' => 'болгар чӗлхи',\n 'bgc' => 'харианви чӗлхи',\n 'bgn' => 'анӑҫ белудж чӗлхи',\n 'bho' => 'бходжпури чӗлхи',\n 'blo' => 'ании чӗлхи',\n ", "suffix": "bs' => 'босни чӗлхи',\n 'bss' => 'акоосе чӗлхи',\n 'bua' => 'бурят чӗлхи',\n 'byn' => 'билин чӗлхи',\n 'ca' => 'каталан чӗлхи',\n 'cad' => 'каддо чӗлхи',\n 'cch' => 'атсам чӗлхи',\n 'ccp' => 'чакма чӗлхи',\n ", "middle": " 'blt' => 'тай-дам чӗлхи',\n 'bm' => 'бамбара чӗлхи',\n 'bn' => 'бенгал чӗлхи',\n 'bo' => 'тибет чӗлхи',\n 'bqi' => 'бахтияр чӗлхи',\n 'br' => 'бретон чӗлхи',\n 'brx' => 'бодо чӗлхи',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/cv.php", "language": "php", "file_size": 15847, "cut_index": 921, "middle_length": 229}} {"prefix": "caneg',\n 'akk' => 'Acadeg',\n 'akz' => 'Alabamäeg',\n 'ale' => 'Alewteg',\n 'aln' => 'Ghegeg Albania',\n 'alt' => 'Altäeg Deheuol',\n 'am' => 'Amhareg',\n 'an' => 'Aragoneg',\n 'ang' => 'Hen Saesneg',\n 'ann' => 'Obolo',\n 'anp' => 'Angika',\n 'ar' => 'Arabeg',\n 'arc' => 'Aramaeg',\n 'arn' => 'Arawcaneg',\n 'aro' => 'Araonaeg',\n 'arp' => 'Arapaho',\n 'arq' => 'Arabeg Algeria',\n 'ars' => 'Arabeg Najdi',\n", "suffix": " 'atj' => 'Atikamekw',\n 'av' => 'Afareg',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymareg',\n 'az' => 'Aserbaijaneg',\n 'ba' => 'Bashcorteg',\n 'bal' => 'Balwtsi',\n 'ban' => 'Balïeg',\n 'bas' => 'Basâeg',\n ", "middle": " 'arw' => 'Arawaceg',\n 'ary' => 'Arabeg Moroco',\n 'arz' => 'Arabeg yr Aifft',\n 'as' => 'Asameg',\n 'asa' => 'Asw',\n 'ase' => 'Iaith Arwyddion America',\n 'ast' => 'Astwrianeg',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/cy.php", "language": "php", "file_size": 17060, "cut_index": 921, "middle_length": 229}} {"prefix": "tisk',\n 'alt' => 'sydaltaisk',\n 'am' => 'amharisk',\n 'an' => 'aragonsk',\n 'ang' => 'oldengelsk',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'arabisk',\n 'arc' => 'aramæisk',\n 'arn' => 'mapudungun',\n 'arp' => 'arapaho',\n 'ars' => 'Najd-arabisk',\n 'arw' => 'arawak',\n 'as' => 'assamesisk',\n 'asa' => 'asu',\n 'ast' => 'asturisk',\n 'atj' => 'atikamekw',\n 'av' => 'avarisk',\n 'awa' => 'a", "suffix": "la',\n 'be' => 'belarusisk',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bg' => 'bulgarsk',\n 'bgc' => 'harianvi',\n 'bgn' => 'vestbaluchi',\n 'bho' => 'bhojpuri',\n ", "middle": "wadhi',\n 'ay' => 'aymara',\n 'az' => 'aserbajdsjansk',\n 'ba' => 'bashkir',\n 'bal' => 'baluchi',\n 'ban' => 'balinesisk',\n 'bas' => 'basaa',\n 'bax' => 'bamun',\n 'bbj' => 'ghoma", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/da.php", "language": "php", "file_size": 16491, "cut_index": 921, "middle_length": 229}} {"prefix": "'arp' => 'Arapaho',\n 'arq' => 'Algerisches Arabisch',\n 'ars' => 'Arabisch (Nadschd)',\n 'arw' => 'Arawak',\n 'ary' => 'Marokkanisches Arabisch',\n 'arz' => 'Ägyptisches Arabisch',\n 'as' => 'Assamesisch',\n 'asa' => 'Asu',\n 'ase' => 'Amerikanische Gebärdensprache',\n 'ast' => 'Asturisch',\n 'atj' => 'Atikamekw',\n 'av' => 'Awarisch',\n 'avk' => 'Kotava',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Aserbaidsc", "suffix": "bj' => 'Ghomala',\n 'be' => 'Belarussisch',\n 'bej' => 'Bedauye',\n 'bem' => 'Bemba',\n 'bew' => 'Betawi',\n 'bez' => 'Bena',\n 'bfd' => 'Bafut',\n 'bfq' => 'Badaga',\n 'bg' => 'Bulgarisch',\n 'bgc' => ", "middle": "hanisch',\n 'ba' => 'Baschkirisch',\n 'bal' => 'Belutschisch',\n 'ban' => 'Balinesisch',\n 'bar' => 'Bairisch',\n 'bas' => 'Bassa',\n 'bax' => 'Bamun',\n 'bbc' => 'Batak Toba',\n 'b", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/de.php", "language": "php", "file_size": 19144, "cut_index": 1331, "middle_length": 229}} {"prefix": "' => 'ཨཕ་རི་ཀཱནས་ཁ',\n 'am' => 'ཨམ་ཧ་རིཀ་ཁ',\n 'ar' => 'ཨེ་ར་བིཀ་ཁ',\n 'as' => 'ཨ་ས་མིས་ཁ',\n 'az' => 'ཨ་ཛར་བྷའི་ཇཱན་ཁ',\n 'be' => 'བེལ་ཨ་རུས་ཁ',\n 'bg' => 'བཱལ་གེ་རི་ཡཱན་ཁ',\n 'bn' => 'བངྒ་ལ་ཁ',\n 'bo' => 'བོད་ཁ',\n 'bs' => 'བྷོས་ནི་ཡཱན་ཁ',\n 'ca' => 'ཀེ་ཊ་ལཱན་ཁ',\n 'cs' => 'ཅེཀ་ཁ',\n 'cy' => 'ཝེལཤ་ཁ',\n 'da' => 'ཌེ་ནིཤ་ཁ',\n 'dak' => 'ད་ཀོ་ཏ་ཁ',\n 'de' => 'ཇཱར་མཱན་ཁ',\n 'dv' => 'དི་བེ་ཧི་ཁ',\n 'dz' => 'རྫ", "suffix": "fi' => 'ཕི་ནིཤ་ཁ',\n 'fil' => 'ཕི་ལི་པི་ནོ་ཁ',\n 'fj' => 'ཕི་ཇི་ཡཱན་ཁ',\n 'fo' => 'ཕཱ་རོ་ཨིས་ཁ',\n 'fr' => 'ཕྲནཅ་ཁ',\n 'fy' => 'ནུབ་ཕྼི་སི་ཡན་ཁ',\n 'ga' => 'ཨཱའི་རིཤ་ཁ',\n 'gl' => 'གལ་ཨིས་ཨི་ཡན་ཁ',\n 'gn' => ", "middle": "ོང་ཁ',\n 'el' => 'གྲིཀ་ཁ',\n 'en' => 'ཨིང་ལིཤ་ཁ',\n 'eo' => 'ཨེས་པ་རཱན་ཏོ་ཁ',\n 'es' => 'ཨིས་པེ་ནིཤ་ཁ',\n 'et' => 'ཨེས་ཊོ་ནི་ཡཱན་ཁ',\n 'eu' => 'བཱསཀ་ཁ',\n 'fa' => 'པར་ཤི་ཡཱན་ཁ',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/dz.php", "language": "php", "file_size": 7486, "cut_index": 614, "middle_length": 229}} {"prefix": "be',\n 'as' => 'assamegbe',\n 'asa' => 'asagbe',\n 'ay' => 'aymargbe',\n 'az' => 'azerbaijangbe',\n 'be' => 'belarusiagbe',\n 'bem' => 'bembagbe',\n 'bez' => 'benagbe',\n 'bg' => 'bulgariagbe',\n 'bm' => 'bambaragbe',\n 'bn' => 'Bengaligbe',\n 'bo' => 'tibetagbe',\n 'br' => 'bretongbe',\n 'brx' => 'bodogbe',\n 'bs' => 'bosniagbe',\n 'ca' => 'katalagbe',\n 'cs' => 'tsɛkgbe',\n 'cy' => 'walesgbe',\n 'da", "suffix": "' => 'iŋlisigbe',\n 'eo' => 'esperantogbe',\n 'es' => 'Spanishgbe',\n 'et' => 'estoniagbe',\n 'eu' => 'basqugbe',\n 'fa' => 'persiagbe',\n 'fi' => 'finlanɖgbe',\n 'fil' => 'filipingbe',\n 'fj' => 'fidzigbe',\n", "middle": "' => 'denmarkgbe',\n 'de' => 'Germaniagbe',\n 'dv' => 'divehgbe',\n 'dz' => 'dzongkhagbe',\n 'ebu' => 'embugbe',\n 'ee' => 'eʋegbe',\n 'efi' => 'efigbe',\n 'el' => 'grisigbe',\n 'en", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ee.php", "language": "php", "file_size": 5332, "cut_index": 716, "middle_length": 229}} {"prefix": "'Αλεούτ',\n 'alt' => 'Νότια Αλτάι',\n 'am' => 'Αμχαρικά',\n 'an' => 'Αραγονικά',\n 'ang' => 'Παλαιά Αγγλικά',\n 'ann' => 'Ομπόλο',\n 'anp' => 'Ανγκικά',\n 'ar' => 'Αραβικά',\n 'arc' => 'Αραμαϊκά',\n 'arn' => 'Αραουκανικά',\n 'arp' => 'Αραπάχο',\n 'ars' => 'Αραβικά Νάτζντι',\n 'arw' => 'Αραγουάκ',\n 'as' => 'Ασαμικά',\n 'asa' => 'Άσου',\n 'ast' => 'Αστουριανά',\n 'atj' => 'Ατικαμέκ',\n 'av' => 'Αβαρικά',\n ", "suffix": " 'bbj' => 'Γκομάλα',\n 'be' => 'Λευκορωσικά',\n 'bej' => 'Μπέζα',\n 'bem' => 'Μπέμπα',\n 'bez' => 'Μπένα',\n 'bfd' => 'Μπαφούτ',\n 'bg' => 'Βουλγαρικά',\n 'bgc' => 'Χαργιάνβι',\n 'bgn' => 'Δυτικά Μπαλοχι", "middle": " 'awa' => 'Αγουαντί',\n 'ay' => 'Αϊμάρα',\n 'az' => 'Αζερμπαϊτζανικά',\n 'ba' => 'Μπασκίρ',\n 'bal' => 'Μπαλούτσι',\n 'ban' => 'Μπαλινίζ',\n 'bas' => 'Μπάσα',\n 'bax' => 'Μπαμούν',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/el.php", "language": "php", "file_size": 22002, "cut_index": 921, "middle_length": 229}} {"prefix": "',\n 'arq' => 'Algerian Arabic',\n 'ars' => 'Najdi Arabic',\n 'arw' => 'Arawak',\n 'ary' => 'Moroccan Arabic',\n 'arz' => 'Egyptian Arabic',\n 'as' => 'Assamese',\n 'asa' => 'Asu',\n 'ase' => 'American Sign Language',\n 'ast' => 'Asturian',\n 'atj' => 'Atikamekw',\n 'av' => 'Avaric',\n 'avk' => 'Kotava',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Azerbaijani',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluc", "suffix": " 'bem' => 'Bemba',\n 'bew' => 'Betawi',\n 'bez' => 'Bena',\n 'bfd' => 'Bafut',\n 'bfq' => 'Badaga',\n 'bg' => 'Bulgarian',\n 'bgc' => 'Haryanvi',\n 'bgn' => 'Western Balochi',\n 'bho' => 'Bhojpuri',\n ", "middle": "hi',\n 'ban' => 'Balinese',\n 'bar' => 'Bavarian',\n 'bas' => 'Basaa',\n 'bax' => 'Bamun',\n 'bbc' => 'Batak Toba',\n 'bbj' => 'Ghomala',\n 'be' => 'Belarusian',\n 'bej' => 'Beja',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/en.php", "language": "php", "file_size": 19177, "cut_index": 1331, "middle_length": 229}} {"prefix": "ntenia',\n 'ar' => 'araba',\n 'arn' => 'mapuĉa',\n 'arp' => 'arapaha',\n 'ars' => 'araba naĝda',\n 'as' => 'asama',\n 'ast' => 'astura',\n 'atj' => 'atikameka',\n 'av' => 'avara',\n 'awa' => 'avadhia',\n 'ay' => 'ajmara',\n 'az' => 'azerbajĝana',\n 'ba' => 'baŝkira',\n 'bal' => 'baluĉa',\n 'ban' => 'balia',\n 'bas' => 'basaa',\n 'be' => 'belorusa',\n 'bem' => 'bemba',\n 'bew' => 'batavia',\n 'be", "suffix": "ra',\n 'bn' => 'bengala',\n 'bo' => 'tibeta',\n 'bqi' => 'baĥtiara',\n 'br' => 'bretona',\n 'brx' => 'bodoa',\n 'bs' => 'bosna',\n 'bua' => 'burjata',\n 'bug' => 'buĝia',\n 'byn' => 'bilena',\n 'c", "middle": "z' => 'benaa',\n 'bg' => 'bulgara',\n 'bgc' => 'harjana',\n 'bho' => 'boĝpura',\n 'bi' => 'Bislamo',\n 'bin' => 'edoa',\n 'bla' => 'nigrapieda',\n 'blo' => 'aniia',\n 'bm' => 'bamba", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/eo.php", "language": "php", "file_size": 12628, "cut_index": 921, "middle_length": 229}} {"prefix": ",\n 'alt' => 'altái meridional',\n 'am' => 'amárico',\n 'an' => 'aragonés',\n 'ang' => 'inglés antiguo',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'árabe',\n 'arc' => 'arameo',\n 'arn' => 'mapuche',\n 'arp' => 'arapaho',\n 'ars' => 'árabe najdí',\n 'arw' => 'arahuaco',\n 'as' => 'asamés',\n 'asa' => 'asu',\n 'ast' => 'asturiano',\n 'atj' => 'atikamekw',\n 'av' => 'avar',\n 'awa' => 'avadhi',\n", "suffix": "e' => 'bielorruso',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bg' => 'búlgaro',\n 'bgc' => 'haryanvi',\n 'bgn' => 'baluchi occidental',\n 'bho' => 'bhoyapurí',\n '", "middle": " 'ay' => 'aimara',\n 'az' => 'azerbaiyano',\n 'ba' => 'baskir',\n 'bal' => 'baluchi',\n 'ban' => 'balinés',\n 'bas' => 'basaa',\n 'bax' => 'bamún',\n 'bbj' => 'ghomala',\n 'b", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/es.php", "language": "php", "file_size": 16797, "cut_index": 921, "middle_length": 229}} {"prefix": "?php\n\nreturn [\n 'Names' => [\n 'ady' => 'adigeo',\n 'alt' => 'altái del sur',\n 'arp' => 'arapajó',\n 'ars' => 'árabe de Néyed',\n 'bla' => 'siksiká',\n 'eu' => 'vasco',\n 'goh' => 'alemán de la alta edad antigua',\n 'grc' => 'griego clásico',\n 'ht' => 'haitiano',\n 'kbd' => 'cabardiano',\n 'krc' => 'karachái-bálkaro',\n 'lij' => 'genovés',\n 'ml' => 'malabar',\n 'mni' => 'manipuri',\n 'nr' => 'ndebele del sur',\n ", "suffix": "r',\n 'syr' => 'siríaco',\n 'tet' => 'tetun',\n 'tyv' => 'tuvano',\n 'vec' => 'véneto',\n 'wal' => 'walamo',\n 'wuu' => 'wu',\n 'xal' => 'calmuco',\n 'zun' => 'zuni',\n ],\n 'LocalizedNames' => [\n ", "middle": " 'nso' => 'sesotho del norte',\n 'prg' => 'prusiano antiguo',\n 'rm' => 'retorrománico',\n 'sd' => 'sindhi',\n 'shu' => 'árabe (Chad)',\n 'sma' => 'sami del sur',\n 'st' => 'sesotho del su", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/es_419.php", "language": "php", "file_size": 1052, "cut_index": 513, "middle_length": 229}} {"prefix": "s' => [\n 'ace' => 'acehnés',\n 'ady' => 'adigué',\n 'arp' => 'arapaho',\n 'ars' => 'árabe neyedí',\n 'bas' => 'basa',\n 'bax' => 'bamun',\n 'bho' => 'bhoshpuri',\n 'bla' => 'siksika',\n 'bua' => 'buriat',\n 'crj' => 'cree del sureste',\n 'crl' => 'cree del noreste',\n 'crr' => 'carolina algonquian',\n 'dar' => 'darguin',\n 'dum' => 'neerlandés medieval',\n 'enm' => 'inglés medieval',\n 'eu' => 'euskera',\n ", "suffix": "> 'hiligainón',\n 'hsn' => 'xiang (China)',\n 'ikt' => 'inuktitut del oeste de Canadá',\n 'inh' => 'ingusetio',\n 'kbd' => 'kabardiano',\n 'kgp' => 'kaingang',\n 'krc' => 'karachái bálkaro',\n 'kum' => 'cumuco',\n ", "middle": " 'frm' => 'francés medieval',\n 'gan' => 'gan (China)',\n 'gmh' => 'alemán de la alta edad media',\n 'grc' => 'griego antiguo',\n 'hak' => 'kejia (China)',\n 'hax' => 'haida del sur',\n 'hil' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/es_MX.php", "language": "php", "file_size": 1592, "cut_index": 537, "middle_length": 229}} {"prefix": "s' => [\n 'ace' => 'acehnés',\n 'alt' => 'altái meridional',\n 'arp' => 'arapaho',\n 'ars' => 'árabe najdi',\n 'bax' => 'bamun',\n 'bgc' => 'hariana',\n 'bho' => 'bhojpuri',\n 'bla' => 'siksika',\n 'blo' => 'ani',\n 'bua' => 'buriat',\n 'clc' => 'chilcotín',\n 'crj' => 'cree del sureste',\n 'crl' => 'cree del noreste',\n 'crm' => 'moose cree',\n 'crr' => 'algonquian',\n 'dum' => 'neerlandés medieval',\n 'en", "suffix": "í',\n 'hax' => 'haida del sur',\n 'hil' => 'hiligainón',\n 'hsn' => 'xiang (China)',\n 'ht' => 'criollo haitiano',\n 'ikt' => 'inuktitut del oeste de Canadá',\n 'inh' => 'ingusetio',\n 'kab' => 'cabilio',\n '", "middle": "m' => 'inglés medieval',\n 'eu' => 'euskera',\n 'frm' => 'francés medieval',\n 'gan' => 'gan (China)',\n 'gmh' => 'alemán de la alta edad media',\n 'grc' => 'griego antiguo',\n 'gu' => 'gurayat", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/es_US.php", "language": "php", "file_size": 1975, "cut_index": 537, "middle_length": 229}} {"prefix": " 'arp' => 'arapaho',\n 'arq' => 'Alžeeria araabia',\n 'ars' => 'Najdi araabia',\n 'arw' => 'aravaki',\n 'ary' => 'Maroko araabia',\n 'arz' => 'Egiptuse araabia',\n 'as' => 'assami',\n 'asa' => 'asu',\n 'ase' => 'Ameerika viipekeel',\n 'ast' => 'astuuria',\n 'atj' => 'atikameki',\n 'av' => 'avaari',\n 'awa' => 'avadhi',\n 'ay' => 'aimara',\n 'az' => 'aserbaidžaani',\n 'ba' => 'baškiiri',\n 'bal' => 'belutši',\n ", "suffix": "'bemba',\n 'bew' => 'betavi',\n 'bez' => 'bena',\n 'bfd' => 'bafuti',\n 'bfq' => 'badaga',\n 'bg' => 'bulgaaria',\n 'bgc' => 'harjaanvi',\n 'bgn' => 'läänebelutši',\n 'bho' => 'bhodžpuri',\n 'bi' => 'bi", "middle": " 'ban' => 'bali',\n 'bar' => 'baieri',\n 'bas' => 'basaa',\n 'bax' => 'bamuni',\n 'bbc' => 'bataki',\n 'bbj' => 'ghomala',\n 'be' => 'valgevene',\n 'bej' => 'bedža',\n 'bem' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/et.php", "language": "php", "file_size": 18684, "cut_index": 1331, "middle_length": 229}} {"prefix": "harera',\n 'an' => 'aragoiera',\n 'ann' => 'oboloera',\n 'anp' => 'angikera',\n 'ar' => 'arabiera',\n 'arn' => 'mapudunguna',\n 'arp' => 'arapahoera',\n 'ars' => 'Najdeko arabiera',\n 'as' => 'assamera',\n 'asa' => 'asua',\n 'ast' => 'asturiera',\n 'atj' => 'atikamekwera',\n 'av' => 'avarera',\n 'awa' => 'awadhiera',\n 'ay' => 'aimara',\n 'az' => 'azerbaijanera',\n 'ba' => 'baxkirera',\n 'bal' => 'balutxera", "suffix": "rera',\n 'bi' => 'bislama',\n 'bin' => 'edoera',\n 'bla' => 'siksikera',\n 'blo' => 'aniiera',\n 'bm' => 'bambarera',\n 'bn' => 'bengalera',\n 'bo' => 'tibetera',\n 'br' => 'bretoiera',\n 'brx' => 'bodo", "middle": "',\n 'ban' => 'baliera',\n 'bas' => 'basaa',\n 'be' => 'bielorrusiera',\n 'bem' => 'bembera',\n 'bez' => 'benera',\n 'bg' => 'bulgariera',\n 'bgc' => 'haryanera',\n 'bho' => 'bhojpu", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/eu.php", "language": "php", "file_size": 14137, "cut_index": 921, "middle_length": 229}} {"prefix": "AssignedNames' => [],\n 'Names' => [\n 'AF' => 'Afghanistani',\n 'AG' => 'Antigua na Babuda',\n 'AI' => 'Anguila',\n 'AQ' => 'Antaktika',\n 'AZ' => 'Azabajani',\n 'BB' => 'Babados',\n 'BJ' => 'Benini',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutani',\n 'BY' => 'Belarusi',\n 'CC' => 'Visiwa vya Kokos (Keeling)',\n 'CV' => 'Kepuvede',\n 'CW' => 'Kurakao',\n 'EC' => 'Ekwado',\n 'GA' => 'Gaboni',\n 'GP' => 'Gwadelupe',\n ", "suffix": " 'LI' => 'Lishenteni',\n 'LS' => 'Lesotho',\n 'LU' => 'Lasembagi',\n 'LV' => 'Lativia',\n 'MA' => 'Moroko',\n 'MC' => 'Monako',\n 'MK' => 'Masedonia',\n 'MM' => 'Myama (Burma)',\n 'MS' => 'Montserati',\n ", "middle": " 'GS' => 'Visiwa vya Jojia Kusini na Sandwich Kusini',\n 'GT' => 'Gwatemala',\n 'GU' => 'Guami',\n 'HR' => 'Kroashia',\n 'JO' => 'Yordani',\n 'LA' => 'Laosi',\n 'LB' => 'Lebanoni',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sw_KE.php", "language": "php", "file_size": 1882, "cut_index": 537, "middle_length": 229}} {"prefix": "'AG' => 'ఆంటిగ్వా & బార్బుడా',\n 'AI' => 'ఆంగ్విల్లా',\n 'AL' => 'అల్బేనియా',\n 'AM' => 'ఆర్మేనియా',\n 'AO' => 'అంగోలా',\n 'AQ' => 'అంటార్కిటికా',\n 'AR' => 'అర్జెంటీనా',\n 'AS' => 'అమెరికన్ సమోవా',\n 'AT' => 'ఆస్ట్రియా',\n 'AU' => 'ఆస్ట్రేలియా',\n 'AW' => 'అరుబా',\n 'AX' => 'ఆలాండ్ దీవులు',\n 'AZ' => 'అజర్బైజాన్',\n 'BA' => 'బోస్నియా & హెర్జిగోవినా',\n 'BB' => 'బార్బడోస్',\n 'BD' => 'బంగ్లాదేశ్',\n 'BE' => 'బెల్", "suffix": "=> 'బ్రూనే',\n 'BO' => 'బొలీవియా',\n 'BQ' => 'కరీబియన్ నెదర్లాండ్స్',\n 'BR' => 'బ్రెజిల్',\n 'BS' => 'బహామాస్',\n 'BT' => 'భూటాన్',\n 'BV' => 'బువై దీవి',\n 'BW' => 'బోట్స్వానా',\n 'BY' => 'బెలారస్',\n ", "middle": "జియం',\n 'BF' => 'బుర్కినా ఫాసో',\n 'BG' => 'బల్గేరియా',\n 'BH' => 'బహ్రెయిన్',\n 'BI' => 'బురుండి',\n 'BJ' => 'బెనిన్',\n 'BL' => 'సెయింట్ బర్థెలిమి',\n 'BM' => 'బెర్ముడా',\n 'BN' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/te.php", "language": "php", "file_size": 12811, "cut_index": 716, "middle_length": 229}} {"prefix": "',\n 'AI' => 'ኣንጒላ',\n 'AL' => 'ኣልባንያ',\n 'AM' => 'ኣርሜንያ',\n 'AO' => 'ኣንጎላ',\n 'AQ' => 'ኣንታርክቲካ',\n 'AR' => 'ኣርጀንቲና',\n 'AS' => 'ኣመሪካዊት ሳሞኣ',\n 'AT' => 'ኦስትርያ',\n 'AU' => 'ኣውስትራልያ',\n 'AW' => 'ኣሩባ',\n 'AX' => 'ደሴታት ኣላንድ',\n 'AZ' => 'ኣዘርባጃን',\n 'BA' => 'ቦዝንያን ሄርዘጎቪናን',\n 'BB' => 'ባርባዶስ',\n 'BD' => 'ባንግላደሽ',\n 'BE' => 'ቤልጅዩም',\n 'BF' => 'ቡርኪና ፋሶ',\n 'BG' => 'ቡልጋርያ',\n 'BH' => 'ባሕሬን',\n 'BI' ", "suffix": "> 'ቡታን',\n 'BV' => 'ደሴት ቡቨት',\n 'BW' => 'ቦትስዋና',\n 'BY' => 'ቤላሩስ',\n 'BZ' => 'በሊዝ',\n 'CA' => 'ካናዳ',\n 'CC' => 'ደሴታት ኮኮስ',\n 'CD' => 'ደሞክራስያዊት ሪፓብሊክ ኮንጎ',\n 'CF' => 'ሪፓብሊክ ማእከላይ ኣፍሪቃ',\n 'CG' => 'ኮንጎ',\n", "middle": "=> 'ብሩንዲ',\n 'BJ' => 'ቤኒን',\n 'BL' => 'ቅዱስ ባርተለሚ',\n 'BM' => 'በርሙዳ',\n 'BN' => 'ብሩነይ',\n 'BO' => 'ቦሊቭያ',\n 'BQ' => 'ካሪብያን ኔዘርላንድ',\n 'BR' => 'ብራዚል',\n 'BS' => 'ባሃማስ',\n 'BT' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ti.php", "language": "php", "file_size": 9426, "cut_index": 716, "middle_length": 229}} {"prefix": "AG' => 'แอนติกาและบาร์บูดา',\n 'AI' => 'แองกวิลลา',\n 'AL' => 'แอลเบเนีย',\n 'AM' => 'อาร์เมเนีย',\n 'AO' => 'แองโกลา',\n 'AQ' => 'แอนตาร์กติกา',\n 'AR' => 'อาร์เจนตินา',\n 'AS' => 'อเมริกันซามัว',\n 'AT' => 'ออสเตรีย',\n 'AU' => 'ออสเตรเลีย',\n 'AW' => 'อารูบา',\n 'AX' => 'หมู่เกาะโอลันด์',\n 'AZ' => 'อาเซอร์ไบจาน',\n 'BA' => 'บอสเนียและเฮอร์เซโกวีนา',\n 'BB' => 'บาร์เบโดส',\n 'BD' => 'บังกลาเทศ',\n 'BE' => 'เบล", "suffix": "'บรูไน',\n 'BO' => 'โบลิเวีย',\n 'BQ' => 'เนเธอร์แลนด์แคริบเบียน',\n 'BR' => 'บราซิล',\n 'BS' => 'บาฮามาส',\n 'BT' => 'ภูฏาน',\n 'BV' => 'เกาะบูเว',\n 'BW' => 'บอตสวานา',\n 'BY' => 'เบลารุส',\n 'BZ' => ", "middle": "เยียม',\n 'BF' => 'บูร์กินาฟาโซ',\n 'BG' => 'บัลแกเรีย',\n 'BH' => 'บาห์เรน',\n 'BI' => 'บุรุนดี',\n 'BJ' => 'เบนิน',\n 'BL' => 'เซนต์บาร์เธเลมี',\n 'BM' => 'เบอร์มิวดา',\n 'BN' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/th.php", "language": "php", "file_size": 12701, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Anitikua mo Palaputa',\n 'AI' => 'Anikuila',\n 'AL' => 'ʻAlipania',\n 'AM' => 'ʻĀmenia',\n 'AO' => 'ʻAngikola',\n 'AQ' => 'ʻAnitātika',\n 'AR' => 'ʻAsenitina',\n 'AS' => 'Haʻamoa ʻAmelika',\n 'AT' => 'ʻAositulia',\n 'AU' => 'ʻAositelēlia',\n 'AW' => 'ʻAlupa',\n 'AX' => 'ʻOtumotu ʻAlani',\n 'AZ' => 'ʻAsapaisani',\n 'BA' => 'Posinia mo Hesikōvina',\n 'BB' => 'Pāpeitosi',\n 'BD' => 'Pengilātesi',\n 'BE' =>", "suffix": "Pulunei',\n 'BO' => 'Polīvia',\n 'BQ' => 'Kalipiane fakahōlani',\n 'BR' => 'Palāsili',\n 'BS' => 'Pahama',\n 'BT' => 'Pūtani',\n 'BV' => 'Motu Puveti',\n 'BW' => 'Potisiuana',\n 'BY' => 'Pelalusi',\n 'B", "middle": " 'Pelesiume',\n 'BF' => 'Pekano Faso',\n 'BG' => 'Pulukalia',\n 'BH' => 'Paleini',\n 'BI' => 'Puluniti',\n 'BJ' => 'Penini',\n 'BL' => 'Sā Patēlemi',\n 'BM' => 'Pēmuta',\n 'BN' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/to.php", "language": "php", "file_size": 7894, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Антигуа һәм Барбуда',\n 'AI' => 'Ангилья',\n 'AL' => 'Албания',\n 'AM' => 'Әрмәнстан',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктика',\n 'AR' => 'Аргентина',\n 'AS' => 'Америка Самоасы',\n 'AT' => 'Австрия',\n 'AU' => 'Австралия',\n 'AW' => 'Аруба',\n 'AX' => 'Аланд утраулары',\n 'AZ' => 'Әзәрбайҗан',\n 'BA' => 'Босния һәм Герцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельгия',\n ", "suffix": "\n 'BO' => 'Боливия',\n 'BQ' => 'Кариб Нидерландлары',\n 'BR' => 'Бразилия',\n 'BS' => 'Багам утраулары',\n 'BT' => 'Бутан',\n 'BV' => 'Буве утравы',\n 'BW' => 'Ботсвана',\n 'BY' => 'Беларусь',\n 'BZ' =", "middle": " 'BF' => 'Буркина-Фасо',\n 'BG' => 'Болгария',\n 'BH' => 'Бәхрәйн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сен-Бартельми',\n 'BM' => 'Бермуд утраулары',\n 'BN' => 'Бруней',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/tt.php", "language": "php", "file_size": 10065, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'ئانتىگۇئا ۋە باربۇدا',\n 'AI' => 'ئانگۋىللا',\n 'AL' => 'ئالبانىيە',\n 'AM' => 'ئەرمېنىيە',\n 'AO' => 'ئانگولا',\n 'AQ' => 'ئانتاركتىكا',\n 'AR' => 'ئارگېنتىنا',\n 'AS' => 'ئامېرىكا ساموئا',\n 'AT' => 'ئاۋىستىرىيە',\n 'AU' => 'ئاۋسترالىيە',\n 'AW' => 'ئارۇبا',\n 'AX' => 'ئالاند ئاراللىرى',\n 'AZ' => 'ئەزەربەيجان',\n 'BA' => 'بوسىنىيە ۋە گېرتسېگوۋىنا',\n 'BB' => 'باربادوس',\n 'BD' => 'بېنگال',\n 'BE' =", "suffix": "> 'بىرۇنېي',\n 'BO' => 'بولىۋىيە',\n 'BQ' => 'كارىب دېڭىزى گوللاندىيە',\n 'BR' => 'بىرازىلىيە',\n 'BS' => 'باھاما',\n 'BT' => 'بۇتان',\n 'BV' => 'بوۋېت ئارىلى',\n 'BW' => 'بوتسۋانا',\n 'BY' => 'بېلارۇسىيە',\n ", "middle": "> 'بېلگىيە',\n 'BF' => 'بۇركىنا فاسو',\n 'BG' => 'بۇلغارىيە',\n 'BH' => 'بەھرەين',\n 'BI' => 'بۇرۇندى',\n 'BJ' => 'بېنىن',\n 'BL' => 'ساينت بارتېلېمى',\n 'BM' => 'بېرمۇدا',\n 'BN' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ug.php", "language": "php", "file_size": 10281, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Антигуа ва Барбуда',\n 'AI' => 'Ангилья',\n 'AL' => 'Албания',\n 'AM' => 'Арманистон',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктида',\n 'AR' => 'Аргентина',\n 'AS' => 'Америка Самоаси',\n 'AT' => 'Австрия',\n 'AU' => 'Австралия',\n 'AW' => 'Аруба',\n 'AX' => 'Аланд ороллари',\n 'AZ' => 'Озарбайжон',\n 'BA' => 'Босния ва Герцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельгия',\n ", "suffix": "O' => 'Боливия',\n 'BQ' => 'Бонейр, Синт-Эстатиус ва Саба',\n 'BR' => 'Бразилия',\n 'BS' => 'Багама ороллари',\n 'BT' => 'Бутан',\n 'BV' => 'Буве ороли',\n 'BW' => 'Ботсванна',\n 'BY' => 'Беларус',\n 'BZ' => ", "middle": " 'BF' => 'Буркина-Фасо',\n 'BG' => 'Болгария',\n 'BH' => 'Баҳрайн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сен-Бартелеми',\n 'BM' => 'Бермуда',\n 'BN' => 'Бруней',\n 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/uz_Cyrl.php", "language": "php", "file_size": 9880, "cut_index": 716, "middle_length": 229}} {"prefix": "tiguwa ak Barbuda',\n 'AI' => 'Angiiy',\n 'AL' => 'Albani',\n 'AM' => 'Armeni',\n 'AO' => 'Àngolaa',\n 'AQ' => 'Antarktik',\n 'AR' => 'Arsàntin',\n 'AS' => 'Samowa bu Amerig',\n 'AT' => 'Ótiriis',\n 'AU' => 'Ostarali',\n 'AW' => 'Aruba',\n 'AX' => 'Duni Aalànd',\n 'AZ' => 'Aserbayjaŋ',\n 'BA' => 'Bosni Ersegowin',\n 'BB' => 'Barbad',\n 'BD' => 'Bengalades',\n 'BE' => 'Belsig',\n 'BF' => 'Burkina Faaso',\n ", "suffix": "> 'Pays-Bas bu Caraïbe',\n 'BR' => 'Beresil',\n 'BS' => 'Bahamas',\n 'BT' => 'Butaŋ',\n 'BV' => 'Dunu Buwet',\n 'BW' => 'Botswana',\n 'BY' => 'Belaris',\n 'BZ' => 'Belis',\n 'CA' => 'Kanadaa',\n 'CC' =>", "middle": " 'BG' => 'Bilgari',\n 'BH' => 'Bahreyin',\n 'BI' => 'Burundi',\n 'BJ' => 'Benee',\n 'BL' => 'Saŋ Bartalemi',\n 'BM' => 'Bermid',\n 'BN' => 'Burney',\n 'BO' => 'Boliwi',\n 'BQ' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/wo.php", "language": "php", "file_size": 7409, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AL' => 'אַלבאַניע',\n 'AM' => 'אַרמעניע',\n 'AO' => 'אַנגאלע',\n 'AQ' => 'אַנטאַרקטיקע',\n 'AR' => 'אַרגענטינע',\n 'AT' => 'עסטרייך',\n 'AU' => 'אויסטראַליע',\n 'AW' => 'אַרובאַ',\n 'BA' => 'באסניע הערצעגאווינע',\n 'BB' => 'באַרבאַדאס',\n 'BD' => 'באַנגלאַדעש',\n 'BE' => 'בעלגיע',\n 'BF' => 'בורקינע פֿאַסא',\n 'BG' => 'בולגאַריע',\n 'BI' => 'בורונדי',\n 'BJ' => 'בענין',\n 'BM' => 'בערמודע',\n 'BN' => 'ב", "suffix": "\n 'CD' => 'קאנגא־קינשאַזע',\n 'CF' => 'צענטראַל־אַפֿריקאַנישע רעפּובליק',\n 'CH' => 'שווייץ',\n 'CI' => 'העלפֿאַ נדביין בארטן',\n 'CK' => 'קוק אינזלען',\n 'CL' => 'טשילע',\n 'CM' => 'קאַמערון',\n 'CN' => 'כי", "middle": "רוניי',\n 'BO' => 'באליוויע',\n 'BR' => 'בראַזיל',\n 'BS' => 'באַהאַמאַס',\n 'BT' => 'בהוטאַן',\n 'BW' => 'באצוואַנע',\n 'BY' => 'בעלאַרוס',\n 'BZ' => 'בעליז',\n 'CA' => 'קאַנאַדע',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/yi.php", "language": "php", "file_size": 7741, "cut_index": 716, "middle_length": 229}} {"prefix": "'Names' => [\n 'AE' => 'Ɛmirate ti Awɔn Arabu',\n 'AS' => 'Sámóánì ti Orílɛ́ède Àméríkà',\n 'AX' => 'Àwɔn Erékùsù ti Aland',\n 'AZ' => 'Asɛ́bájánì',\n 'BA' => 'Bɔ̀síníà àti Ɛtisɛgófínà',\n 'BE' => 'Bégíɔ́mù',\n 'BJ' => 'Bɛ̀nɛ̀',\n 'BL' => 'Ìlú Bátílɛ́mì',\n 'BN' => 'Búrúnɛ́lì',\n 'BO' => 'Bɔ̀lífíyà',\n 'BQ' => 'Kàríbíánì ti Nɛ́dálándì',\n 'BW' => 'Bɔ̀tìsúwánà',\n 'BZ' => 'Bèlísɛ̀',\n 'CL' => 'Shílè',\n 'CN' => 'Sháínà'", "suffix": " 'Firenshi Guana',\n 'GS' => 'Gúúsù Georgia àti Gúúsù Àwɔn Erékùsù Sandwich',\n 'HK' => 'Agbègbè Ìshàkóso Ìshúná Hong Kong Tí Shánà Ń Darí',\n 'ID' => 'Indonéshíà',\n 'IL' => 'Iserɛli',\n 'IM' => 'Erékùshù ilɛ̀ Man',\n '", "middle": ",\n 'CZ' => 'Shɛ́ɛ́kì',\n 'DJ' => 'Díbɔ́ótì',\n 'DK' => 'Dɛ́mákì',\n 'EH' => 'Ìwɔ̀òòrùn Sàhárà',\n 'FO' => 'Àwɔn Erékùsù ti Faroe',\n 'GB' => 'Gɛ̀ɛ́sì',\n 'GE' => 'Gɔgia',\n 'GF' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/yo_BJ.php", "language": "php", "file_size": 2924, "cut_index": 563, "middle_length": 229}} {"prefix": "'Names' => [\n 'AE' => '阿拉伯聯合酋長國',\n 'AG' => '安提瓜和巴布達',\n 'AW' => '阿魯巴',\n 'AZ' => '亞塞拜疆',\n 'BA' => '波斯尼亞和黑塞哥維那',\n 'BB' => '巴巴多斯',\n 'BF' => '布基納法索',\n 'BI' => '布隆迪',\n 'BJ' => '貝寧',\n 'BL' => '聖巴泰勒米',\n 'BV' => '鮑威特島',\n 'BW' => '博茨瓦納',\n 'BZ' => '伯利茲',\n 'CC' => '科科斯 (基林) 群島',\n 'CI' => '科特迪瓦',\n 'CR' => '哥斯達黎加',\n 'CV' => '佛得角',\n 'CY' => '塞浦路斯',\n 'DJ' => '吉布提',\n 'DO' => '多米尼加共和國',\n", "suffix": "'GT' => '危地馬拉',\n 'GW' => '幾內亞比紹',\n 'GY' => '圭亞那',\n 'HN' => '洪都拉斯',\n 'HR' => '克羅地亞',\n 'IM' => '馬恩島',\n 'IT' => '意大利',\n 'KE' => '肯尼亞',\n 'KM' => '科摩羅',\n 'KN' => '聖基茨和尼維斯',\n 'LA' => '老撾',\n ", "middle": " 'EC' => '厄瓜多爾',\n 'ER' => '厄立特里亞',\n 'ET' => '埃塞俄比亞',\n 'GA' => '加蓬',\n 'GD' => '格林納達',\n 'GE' => '格魯吉亞',\n 'GH' => '加納',\n 'GM' => '岡比亞',\n 'GS' => '南佐治亞島與南桑威奇群島',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/zh_HK.php", "language": "php", "file_size": 3020, "cut_index": 563, "middle_length": 229}} {"prefix": "' => '安奎拉',\n 'AL' => '阿爾巴尼亞',\n 'AM' => '亞美尼亞',\n 'AO' => '安哥拉',\n 'AQ' => '南極洲',\n 'AR' => '阿根廷',\n 'AS' => '美屬薩摩亞',\n 'AT' => '奧地利',\n 'AU' => '澳洲',\n 'AW' => '荷屬阿魯巴',\n 'AX' => '奧蘭群島',\n 'AZ' => '亞塞拜然',\n 'BA' => '波士尼亞與赫塞哥維納',\n 'BB' => '巴貝多',\n 'BD' => '孟加拉',\n 'BE' => '比利時',\n 'BF' => '布吉納法索',\n 'BG' => '保加利亞',\n 'BH' => '巴林',\n 'BI' => '蒲隆地',\n 'BJ' => '貝南',\n 'BL' => '聖巴瑟米',\n", "suffix": "',\n 'BZ' => '貝里斯',\n 'CA' => '加拿大',\n 'CC' => '科克斯(基靈)群島',\n 'CD' => '剛果(金夏沙)',\n 'CF' => '中非共和國',\n 'CG' => '剛果(布拉薩)',\n 'CH' => '瑞士',\n 'CI' => '象牙海岸',\n 'CK' => '庫克群島',\n 'CL' => '智利',\n ", "middle": " 'BM' => '百慕達',\n 'BN' => '汶萊',\n 'BO' => '玻利維亞',\n 'BQ' => '荷蘭加勒比區',\n 'BR' => '巴西',\n 'BS' => '巴哈馬',\n 'BT' => '不丹',\n 'BV' => '布威島',\n 'BW' => '波札那',\n 'BY' => '白俄羅斯", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/zh_Hant.php", "language": "php", "file_size": 7917, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'i-Antigua ne-Barbuda',\n 'AI' => 'i-Anguilla',\n 'AL' => 'i-Albania',\n 'AM' => 'i-Armenia',\n 'AO' => 'i-Angola',\n 'AQ' => 'i-Antarctica',\n 'AR' => 'i-Argentina',\n 'AS' => 'i-American Samoa',\n 'AT' => 'i-Austria',\n 'AU' => 'i-Australia',\n 'AW' => 'i-Aruba',\n 'AX' => 'i-Åland Islands',\n 'AZ' => 'i-Azerbaijan',\n 'BA' => 'i-Bosnia ne-Herzegovina',\n 'BB' => 'i-Barbados',\n 'BD' => 'i-Bangladesh',\n ", "suffix": "> 'i-Bermuda',\n 'BN' => 'i-Brunei',\n 'BO' => 'i-Bolivia',\n 'BQ' => 'i-Caribbean Netherlands',\n 'BR' => 'i-Brazil',\n 'BS' => 'i-Bahamas',\n 'BT' => 'i-Bhutan',\n 'BV' => 'i-Bouvet Island',\n 'BW' => 'iBot", "middle": " 'BE' => 'i-Belgium',\n 'BF' => 'i-Burkina Faso',\n 'BG' => 'i-Bulgaria',\n 'BH' => 'i-Bahrain',\n 'BI' => 'i-Burundi',\n 'BJ' => 'i-Benin',\n 'BL' => 'i-Saint Barthélemy',\n 'BM' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/zu.php", "language": "php", "file_size": 8044, "cut_index": 716, "middle_length": 229}} {"prefix": " 'Antigua na Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antaktiki',\n 'AR' => 'Ajentina',\n 'AS' => 'Samoa ya Marekani',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Visiwa vya Aland',\n 'AZ' => 'Azerbaijani',\n 'BA' => 'Bosnia na Hezegovina',\n 'BB' => 'Babadosi',\n 'BD' => 'Bangladeshi',\n 'BE' => 'Ubelgiji',\n 'BF'", "suffix": "'Bolivia',\n 'BQ' => 'Uholanzi ya Karibiani',\n 'BR' => 'Brazil',\n 'BS' => 'Bahama',\n 'BT' => 'Bhutan',\n 'BV' => 'Kisiwa cha Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n ", "middle": " => 'Bukinafaso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahareni',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'St. Barthelemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/sw.php", "language": "php", "file_size": 7630, "cut_index": 716, "middle_length": 229}} {"prefix": "AG' => 'ஆண்டிகுவா மற்றும் பார்புடா',\n 'AI' => 'அங்கியுலா',\n 'AL' => 'அல்பேனியா',\n 'AM' => 'அர்மேனியா',\n 'AO' => 'அங்கோலா',\n 'AQ' => 'அண்டார்டிகா',\n 'AR' => 'அர்ஜென்டினா',\n 'AS' => 'அமெரிக்க சமோவா',\n 'AT' => 'ஆஸ்திரியா',\n 'AU' => 'ஆஸ்திரேலியா',\n 'AW' => 'அரூபா',\n 'AX' => 'ஆலந்து தீவுகள்',\n 'AZ' => 'அசர்பைஜான்',\n 'BA' => 'போஸ்னியா & ஹெர்ஸகோவினா',\n 'BB' => 'பார்படாஸ்',\n 'BD' => 'பங்களாதேஷ்',\n 'BE' =>", "suffix": " 'BN' => 'புருனே',\n 'BO' => 'பொலிவியா',\n 'BQ' => 'கரீபியன் நெதர்லாந்து',\n 'BR' => 'பிரேசில்',\n 'BS' => 'பஹாமாஸ்',\n 'BT' => 'பூடான்',\n 'BV' => 'பொவேட் தீவு',\n 'BW' => 'போட்ஸ்வானா',\n 'BY' => 'பெலாரஸ்", "middle": " 'பெல்ஜியம்',\n 'BF' => 'புர்கினா ஃபாஸோ',\n 'BG' => 'பல்கேரியா',\n 'BH' => 'பஹ்ரைன்',\n 'BI' => 'புருண்டி',\n 'BJ' => 'பெனின்',\n 'BL' => 'செயின்ட் பார்தேலெமி',\n 'BM' => 'பெர்முடா',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ta.php", "language": "php", "file_size": 13071, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua we Barbuda',\n 'AI' => 'Angilýa',\n 'AL' => 'Albaniýa',\n 'AM' => 'Ermenistan',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Argentina',\n 'AS' => 'Amerikan Samoasy',\n 'AT' => 'Awstriýa',\n 'AU' => 'Awstraliýa',\n 'AW' => 'Aruba',\n 'AX' => 'Aland adalary',\n 'AZ' => 'Azerbaýjan',\n 'BA' => 'Bosniýa we Gersegowina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladeş',\n 'BE' => 'Belgiýa',\n ", "suffix": " 'BO' => 'Boliwiýa',\n 'BQ' => 'Karib Niderlandlary',\n 'BR' => 'Braziliýa',\n 'BS' => 'Bagama adalary',\n 'BT' => 'Butan',\n 'BV' => 'Buwe adasy',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Beliz", "middle": " 'BF' => 'Burkina-Faso',\n 'BG' => 'Bolgariýa',\n 'BH' => 'Bahreýn',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sen-Bartelemi',\n 'BM' => 'Bermuda',\n 'BN' => 'Bruneý',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/tk.php", "language": "php", "file_size": 7814, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'Antigua & Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Antarctica',\n 'AR' => 'Argentina',\n 'AS' => 'American Samoa',\n 'AT' => 'Austria',\n 'AU' => 'Australia',\n 'AW' => 'Aruba',\n 'AX' => 'Åland Islands',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bosnia and Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgium',\n 'BF' =", "suffix": "Bolivia',\n 'BQ' => 'Caribbean Netherlands',\n 'BR' => 'Brazil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Bouvet Island',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA'", "middle": "> 'Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'St. Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/tl.php", "language": "php", "file_size": 7522, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Антигуа і Барбуда',\n 'AI' => 'Ангілья',\n 'AL' => 'Албанія',\n 'AM' => 'Вірменія',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктика',\n 'AR' => 'Аргентина',\n 'AS' => 'Американське Самоа',\n 'AT' => 'Австрія',\n 'AU' => 'Австралія',\n 'AW' => 'Аруба',\n 'AX' => 'Аландські Острови',\n 'AZ' => 'Азербайджан',\n 'BA' => 'Боснія і Герцеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Бельгія',\n ", "suffix": "й',\n 'BO' => 'Болівія',\n 'BQ' => 'Карибські Нідерланди',\n 'BR' => 'Бразилія',\n 'BS' => 'Багамські Острови',\n 'BT' => 'Бутан',\n 'BV' => 'Острів Буве',\n 'BW' => 'Ботсвана',\n 'BY' => 'Білорусь',\n ", "middle": " 'BF' => 'Буркіна-Фасо',\n 'BG' => 'Болгарія',\n 'BH' => 'Бахрейн',\n 'BI' => 'Бурунді',\n 'BJ' => 'Бенін',\n 'BL' => 'Сен-Бартелемі',\n 'BM' => 'Бермудські Острови',\n 'BN' => 'Бруне", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/uk.php", "language": "php", "file_size": 10075, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua va Barbuda',\n 'AI' => 'Angilya',\n 'AL' => 'Albaniya',\n 'AM' => 'Armaniston',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktida',\n 'AR' => 'Argentina',\n 'AS' => 'Amerika Samoasi',\n 'AT' => 'Avstriya',\n 'AU' => 'Avstraliya',\n 'AW' => 'Aruba',\n 'AX' => 'Aland orollari',\n 'AZ' => 'Ozarbayjon',\n 'BA' => 'Bosniya va Gertsegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Belgiya'", "suffix": "runey',\n 'BO' => 'Boliviya',\n 'BQ' => 'Boneyr, Sint-Estatius va Saba',\n 'BR' => 'Braziliya',\n 'BS' => 'Bagama orollari',\n 'BT' => 'Butan',\n 'BV' => 'Buve oroli',\n 'BW' => 'Botsvana',\n 'BY' => 'Belarus", "middle": ",\n 'BF' => 'Burkina-Faso',\n 'BG' => 'Bolgariya',\n 'BH' => 'Bahrayn',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Sen-Bartelemi',\n 'BM' => 'Bermuda orollari',\n 'BN' => 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/uz.php", "language": "php", "file_size": 7733, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'E-Antigua & Barbuda',\n 'AI' => 'E-Anguilla',\n 'AL' => 'E-Albania',\n 'AM' => 'E-Armenia',\n 'AO' => 'E-Angola',\n 'AQ' => 'E-Antarctica',\n 'AR' => 'E-Argentina',\n 'AS' => 'E-American Samoa',\n 'AT' => 'E-Austria',\n 'AU' => 'E-Australia',\n 'AW' => 'E-Aruba',\n 'AX' => 'E-Åland Islands',\n 'AZ' => 'E-Azerbaijan',\n 'BA' => 'EBosnia & Herzegovina',\n 'BB' => 'EBarbados',\n 'BD' => 'EBangladesh',\n ", "suffix": " 'BN' => 'eBrunei',\n 'BO' => 'EBolivia',\n 'BQ' => 'ECaribbean Netherlands',\n 'BR' => 'EBrazil',\n 'BS' => 'EBahamas',\n 'BT' => 'EBhutan',\n 'BV' => 'EBouvet Island',\n 'BW' => 'EBotswana',\n 'BY' =>", "middle": " 'BE' => 'EBelgium',\n 'BF' => 'EBurkina Faso',\n 'BG' => 'EBulgaria',\n 'BH' => 'EBahrain',\n 'BI' => 'EBurundi',\n 'BJ' => 'EBenin',\n 'BL' => 'ESt. Barthélemy',\n 'BM' => 'EBermuda',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/xh.php", "language": "php", "file_size": 7800, "cut_index": 716, "middle_length": 229}} {"prefix": "'Names' => [\n 'AE' => '阿拉伯聯合酋長國',\n 'AG' => '安提瓜和巴布達',\n 'AW' => '阿魯巴',\n 'AZ' => '亞塞拜疆',\n 'BA' => '波斯尼亞和黑塞哥維那',\n 'BB' => '巴巴多斯',\n 'BF' => '布基納法索',\n 'BI' => '布隆迪',\n 'BJ' => '貝寧',\n 'BL' => '聖巴泰勒米',\n 'BV' => '鮑威特島',\n 'BW' => '博茨瓦納',\n 'BZ' => '伯利茲',\n 'CC' => '科科斯 (基林) 群島',\n 'CI' => '科特迪瓦',\n 'CR' => '哥斯達黎加',\n 'CV' => '佛得角',\n 'CY' => '塞浦路斯',\n 'DJ' => '吉布提',\n 'DO' => '多米尼加共和國',\n", "suffix": "'GT' => '危地馬拉',\n 'GW' => '幾內亞比紹',\n 'GY' => '圭亞那',\n 'HN' => '洪都拉斯',\n 'HR' => '克羅地亞',\n 'IM' => '馬恩島',\n 'IT' => '意大利',\n 'KE' => '肯尼亞',\n 'KM' => '科摩羅',\n 'KN' => '聖基茨和尼維斯',\n 'LA' => '老撾',\n ", "middle": " 'EC' => '厄瓜多爾',\n 'ER' => '厄立特里亞',\n 'ET' => '埃塞俄比亞',\n 'GA' => '加蓬',\n 'GD' => '格林納達',\n 'GE' => '格魯吉亞',\n 'GH' => '加納',\n 'GM' => '岡比亞',\n 'GS' => '南佐治亞島與南桑威奇群島',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/zh_Hant_HK.php", "language": "php", "file_size": 3020, "cut_index": 563, "middle_length": 229}} {"prefix": "es',\n 'ann' => 'Obolo',\n 'anp' => 'Angika',\n 'ar' => 'Arabies',\n 'arc' => 'Aramees',\n 'arn' => 'Mapuche',\n 'arp' => 'Arapaho',\n 'ars' => 'Najdi-Arabies',\n 'as' => 'Assamees',\n 'asa' => 'Asu',\n 'ast' => 'Asturies',\n 'atj' => 'Atikamekw',\n 'av' => 'Avaries',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Azerbeidjans',\n 'ba' => 'Baskir',\n 'bal' => 'Baloetsji',\n 'ban' => 'Balinees',\n ", "suffix": " 'bi' => 'Bislama',\n 'bin' => 'Bini',\n 'bla' => 'Siksika',\n 'blo' => 'Anii',\n 'bm' => 'Bambara',\n 'bn' => 'Bengaals',\n 'bo' => 'Tibettaans',\n 'br' => 'Bretons',\n 'brx' => 'Bodo',\n 'bs' => 'B", "middle": " 'bas' => 'Basaa',\n 'be' => 'Belarussies',\n 'bem' => 'Bemba',\n 'bez' => 'Bena',\n 'bg' => 'Bulgaars',\n 'bgc' => 'Haryanvi',\n 'bgn' => 'Wes-Balochi',\n 'bho' => 'Bhojpuri',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/af.php", "language": "php", "file_size": 12865, "cut_index": 921, "middle_length": 229}} {"prefix": " 'AG' => 'Антигуа ва Барбуда',\n 'AI' => 'Ангилия',\n 'AL' => 'Албания',\n 'AM' => 'Арманистон',\n 'AO' => 'Ангола',\n 'AQ' => 'Антарктида',\n 'AR' => 'Аргентина',\n 'AS' => 'Самоаи Америка',\n 'AT' => 'Австрия',\n 'AU' => 'Австралия',\n 'AW' => 'Аруба',\n 'AX' => 'Ҷазираҳои Аланд',\n 'AZ' => 'Озарбойҷон',\n 'BA' => 'Босния ва Ҳерсеговина',\n 'BB' => 'Барбадос',\n 'BD' => 'Бангладеш',\n 'BE' => 'Белгия',\n ", "suffix": " => 'Боливия',\n 'BQ' => 'Кариби Нидерланд',\n 'BR' => 'Бразилия',\n 'BS' => 'Багам',\n 'BT' => 'Бутон',\n 'BV' => 'Ҷазираи Буве',\n 'BW' => 'Ботсвана',\n 'BY' => 'Белорус',\n 'BZ' => 'Белиз',\n 'CA' =>", "middle": "'BF' => 'Буркина-Фасо',\n 'BG' => 'Булғория',\n 'BH' => 'Баҳрайн',\n 'BI' => 'Бурунди',\n 'BJ' => 'Бенин',\n 'BL' => 'Сент-Бартелми',\n 'BM' => 'Бермуда',\n 'BN' => 'Бруней',\n 'BO'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/tg.php", "language": "php", "file_size": 9922, "cut_index": 716, "middle_length": 229}} {"prefix": "نٹیگوا اور باربودا',\n 'AI' => 'انگوئیلا',\n 'AL' => 'البانیہ',\n 'AM' => 'آرمینیا',\n 'AO' => 'انگولا',\n 'AQ' => 'انٹارکٹیکا',\n 'AR' => 'ارجنٹینا',\n 'AS' => 'امریکی ساموآ',\n 'AT' => 'آسٹریا',\n 'AU' => 'آسٹریلیا',\n 'AW' => 'اروبا',\n 'AX' => 'آلینڈ آئلینڈز',\n 'AZ' => 'آذربائیجان',\n 'BA' => 'بوسنیا اور ہرزیگووینا',\n 'BB' => 'بارباڈوس',\n 'BD' => 'بنگلہ دیش',\n 'BE' => 'بیلجیم',\n 'BF' => 'برکینا فاس", "suffix": "Q' => 'کریبیائی نیدرلینڈز',\n 'BR' => 'برازیل',\n 'BS' => 'بہاماس',\n 'BT' => 'بھوٹان',\n 'BV' => 'بؤویٹ آئلینڈ',\n 'BW' => 'بوتسوانا',\n 'BY' => 'بیلاروس',\n 'BZ' => 'بیلائز',\n 'CA' => 'کینیڈا',\n 'CC", "middle": "و',\n 'BG' => 'بلغاریہ',\n 'BH' => 'بحرین',\n 'BI' => 'برونڈی',\n 'BJ' => 'بینن',\n 'BL' => 'سینٹ برتھلیمی',\n 'BM' => 'برمودا',\n 'BN' => 'برونائی',\n 'BO' => 'بولیویا',\n 'B", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/ur.php", "language": "php", "file_size": 9328, "cut_index": 716, "middle_length": 229}} {"prefix": "an',\n 'AG' => 'Antigua và Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Albania',\n 'AM' => 'Armenia',\n 'AO' => 'Angola',\n 'AQ' => 'Nam Cực',\n 'AR' => 'Argentina',\n 'AS' => 'Samoa thuộc Mỹ',\n 'AT' => 'Áo',\n 'AU' => 'Úc',\n 'AW' => 'Aruba',\n 'AX' => 'Quần đảo Åland',\n 'AZ' => 'Azerbaijan',\n 'BA' => 'Bosnia và Herzegovina',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladesh',\n 'BE' => 'Bỉ',\n 'BF' => '", "suffix": "ivia',\n 'BQ' => 'Ca-ri-bê Hà Lan',\n 'BR' => 'Brazil',\n 'BS' => 'Bahamas',\n 'BT' => 'Bhutan',\n 'BV' => 'Đảo Bouvet',\n 'BW' => 'Botswana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n 'CA' => 'Canada'", "middle": "Burkina Faso',\n 'BG' => 'Bulgaria',\n 'BH' => 'Bahrain',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'St. Barthélemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n 'BO' => 'Bol", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/vi.php", "language": "php", "file_size": 7818, "cut_index": 716, "middle_length": 229}} {"prefix": "' => '安圭拉',\n 'AL' => '阿尔巴尼亚',\n 'AM' => '亚美尼亚',\n 'AO' => '安哥拉',\n 'AQ' => '南极洲',\n 'AR' => '阿根廷',\n 'AS' => '美属萨摩亚',\n 'AT' => '奥地利',\n 'AU' => '澳大利亚',\n 'AW' => '阿鲁巴',\n 'AX' => '奥兰群岛',\n 'AZ' => '阿塞拜疆',\n 'BA' => '波斯尼亚和黑塞哥维那',\n 'BB' => '巴巴多斯',\n 'BD' => '孟加拉国',\n 'BE' => '比利时',\n 'BF' => '布基纳法索',\n 'BG' => '保加利亚',\n 'BH' => '巴林',\n 'BI' => '布隆迪',\n 'BJ' => '贝宁',\n 'BL' => '圣巴泰勒米", "suffix": "白俄罗斯',\n 'BZ' => '伯利兹',\n 'CA' => '加拿大',\n 'CC' => '科科斯(基林)群岛',\n 'CD' => '刚果(金)',\n 'CF' => '中非共和国',\n 'CG' => '刚果(布)',\n 'CH' => '瑞士',\n 'CI' => '科特迪瓦',\n 'CK' => '库克群岛',\n 'CL' => '智利',\n ", "middle": "',\n 'BM' => '百慕大',\n 'BN' => '文莱',\n 'BO' => '玻利维亚',\n 'BQ' => '荷属加勒比区',\n 'BR' => '巴西',\n 'BS' => '巴哈马',\n 'BT' => '不丹',\n 'BV' => '布韦岛',\n 'BW' => '博茨瓦纳',\n 'BY' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/zh.php", "language": "php", "file_size": 7965, "cut_index": 716, "middle_length": 229}} {"prefix": " 'AG' => 'Antigua ve Barbuda',\n 'AI' => 'Anguilla',\n 'AL' => 'Arnavutluk',\n 'AM' => 'Ermenistan',\n 'AO' => 'Angola',\n 'AQ' => 'Antarktika',\n 'AR' => 'Arjantin',\n 'AS' => 'Amerikan Samoası',\n 'AT' => 'Avusturya',\n 'AU' => 'Avustralya',\n 'AW' => 'Aruba',\n 'AX' => 'Åland Adaları',\n 'AZ' => 'Azerbaycan',\n 'BA' => 'Bosna-Hersek',\n 'BB' => 'Barbados',\n 'BD' => 'Bangladeş',\n 'BE' => 'Belçika',\n 'B", "suffix": "'BO' => 'Bolivya',\n 'BQ' => 'Karayip Hollandası',\n 'BR' => 'Brezilya',\n 'BS' => 'Bahamalar',\n 'BT' => 'Butan',\n 'BV' => 'Bouvet Adası',\n 'BW' => 'Botsvana',\n 'BY' => 'Belarus',\n 'BZ' => 'Belize',\n ", "middle": "F' => 'Burkina Faso',\n 'BG' => 'Bulgaristan',\n 'BH' => 'Bahreyn',\n 'BI' => 'Burundi',\n 'BJ' => 'Benin',\n 'BL' => 'Saint Barthelemy',\n 'BM' => 'Bermuda',\n 'BN' => 'Brunei',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/tr.php", "language": "php", "file_size": 7626, "cut_index": 716, "middle_length": 229}} {"prefix": "AG' => 'Ààntígúà àti Báríbúdà',\n 'AI' => 'Ààngúlílà',\n 'AL' => 'Àlùbàníánì',\n 'AM' => 'Améníà',\n 'AO' => 'Ààngólà',\n 'AQ' => 'Antakítíkà',\n 'AR' => 'Agentínà',\n 'AS' => 'Sámóánì ti Orílẹ́ède Àméríkà',\n 'AT' => 'Asítíríà',\n 'AU' => 'Austrálíà',\n 'AW' => 'Árúbà',\n 'AX' => 'Àwọn Erékùsù ti Aland',\n 'AZ' => 'Asẹ́bájánì',\n 'BA' => 'Bọ̀síníà àti Ẹtisẹgófínà',\n 'BB' => 'Bábádósì',\n 'BD' => 'Bángáládésì',\n ", "suffix": "'BN' => 'Búrúnẹ́lì',\n 'BO' => 'Bọ̀lífíyà',\n 'BQ' => 'Kàríbíánì ti Nẹ́dálándì',\n 'BR' => 'Bàràsílì',\n 'BS' => 'Bàhámásì',\n 'BT' => 'Bútánì',\n 'BV' => 'Erékùsù Bouvet',\n 'BW' => 'Bọ̀tìsúwánà',\n 'BY' => ", "middle": " 'BE' => 'Bégíọ́mù',\n 'BF' => 'Bùùkíná Fasò',\n 'BG' => 'Bùùgáríà',\n 'BH' => 'Báránì',\n 'BI' => 'Bùùrúndì',\n 'BJ' => 'Bẹ̀nẹ̀',\n 'BL' => 'Ìlú Bátílẹ́mì',\n 'BM' => 'Bémúdà',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/regions/yo.php", "language": "php", "file_size": 8319, "cut_index": 716, "middle_length": 229}} {"prefix": " 'az' => 'Asabegyanni',\n 'bal' => 'Balukyi',\n 'be' => 'Belarus kasa',\n 'bg' => 'Bɔlgeria kasa',\n 'bgc' => 'Harianvi',\n 'bho' => 'Bopuri',\n 'blo' => 'Anii',\n 'bn' => 'Bengali kasa',\n 'br' => 'Britenni',\n 'brx' => 'Bodo',\n 'bs' => 'Bosniani',\n 'ca' => 'Katalan',\n 'ceb' => 'Kebuano',\n 'chr' => 'Kiroki',\n 'cs' => 'Kyɛk kasa',\n 'csw' => 'Tadeɛm Kreefoɔ Kasa',\n 'cv' => 'Kyuvahyi',\n 'cy' => 'Wɛɛhy", "suffix": "peranto',\n 'es' => 'Spain kasa',\n 'et' => 'Estonia kasa',\n 'eu' => 'Baske',\n 'fa' => 'Pɛɛhyia kasa',\n 'ff' => 'Fula kasa',\n 'fi' => 'Finlande kasa',\n 'fil' => 'Filipin kasa',\n 'fo' => 'Farosi',\n ", "middle": "e Kasa',\n 'da' => 'Dane kasa',\n 'de' => 'Gyaaman',\n 'doi' => 'Dɔgri',\n 'dsb' => 'Sɔɔbia a ɛwɔ fam',\n 'ee' => 'Ayigbe',\n 'el' => 'Greek kasa',\n 'en' => 'Borɔfo',\n 'eo' => 'Es", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ak.php", "language": "php", "file_size": 5173, "cut_index": 716, "middle_length": 229}} {"prefix": "دی',\n 'akz' => 'آلابامایی',\n 'ale' => 'آلئوتی',\n 'alt' => 'آلتایی جنوبی',\n 'am' => 'امهری',\n 'an' => 'آراگونی',\n 'ang' => 'انگلیسی باستان',\n 'ann' => 'اوبولو',\n 'anp' => 'آنگیکا',\n 'ar' => 'عربی',\n 'arc' => 'آرامی',\n 'arn' => 'ماپوچه‌ای',\n 'arp' => 'آراپاهویی',\n 'arq' => 'عربی الجزایری',\n 'ars' => 'عربی نجدی',\n 'arw' => 'آراواکی',\n 'ary' => 'عربی مراکشی',\n 'arz' => 'عربی مصری',\n 'as'", "suffix": "ری',\n 'bal' => 'بلوچی',\n 'ban' => 'بالیایی',\n 'bar' => 'باواریایی',\n 'bas' => 'باسایی',\n 'bax' => 'بمونی',\n 'be' => 'بلاروسی',\n 'bej' => 'بجایی',\n 'bem' => 'بمبایی',\n 'bez' => 'بنایی',\n ", "middle": " => 'آسامی',\n 'asa' => 'آسو',\n 'ast' => 'آستوری',\n 'atj' => 'آتیکامکو',\n 'av' => 'آواری',\n 'awa' => 'اودهی',\n 'ay' => 'آیمارایی',\n 'az' => 'ترکی آذربایجانی',\n 'ba' => 'باشقی", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/fa.php", "language": "php", "file_size": 20669, "cut_index": 921, "middle_length": 229}} {"prefix": "\n 'asa' => 'اسۋ ءتىلى',\n 'ast' => 'استرۋيا ءتىلى',\n 'az' => 'ءازىربايجان ءتىلى',\n 'ba' => 'باشقۇرت ءتىلى',\n 'bal' => 'بالۋچي ءتىلى',\n 'bas' => 'باسا ءتىلى',\n 'be' => 'بەلارۋس ءتىلى',\n 'bem' => 'بەمبا ءتىلى',\n 'bew' => 'بەياۋي ءتىلى',\n 'bez' => 'بەنا ءتىلى',\n 'bg' => 'بولگار ءتىلى',\n 'bgc' => 'حارياني ءتىلى',\n 'bgn' => 'باتىس بالۋچي ءتىلى',\n 'bho' => 'بحودجپۋري ءتىلى',\n 'blo' => 'اني ءتىلى',\n 'blt'", "suffix": " 'بوسنيا ءتىلى',\n 'bss' => 'اكوسە ءتىلى',\n 'bua' => 'بۋريات ءتىلى',\n 'byn' => 'بلين ءتىلى',\n 'ca' => 'كاتالان ءتىلى',\n 'cad' => 'كاددو ءتىلى',\n 'cch' => 'اتسام ءتىلى',\n 'ccp' => 'چاكما ءتىلى',\n 'ce' =", "middle": " => 'تاي دام ءتىلى',\n 'bm' => 'بامبارا ءتىلى',\n 'bn' => 'بەنگال ءتىلى',\n 'bo' => 'تيبەت ءتىلى',\n 'bqi' => 'باحتيار ءتىلى',\n 'br' => 'برەتون ءتىلى',\n 'brx' => 'بودو ءتىلى',\n 'bs' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/kk_Arab.php", "language": "php", "file_size": 15093, "cut_index": 921, "middle_length": 229}} {"prefix": " 'an' => 'អារ៉ាហ្គោន',\n 'ann' => 'អូបូឡូ',\n 'anp' => 'អាហ្គីកា',\n 'ar' => 'អារ៉ាប់',\n 'arn' => 'ម៉ាពូឈី',\n 'arp' => 'អារ៉ាប៉ាហូ',\n 'ars' => 'អារ៉ាប់ណាឌី',\n 'as' => 'អាសាមីស',\n 'asa' => 'អាស៊ូ',\n 'ast' => 'អាស្ទូរី',\n 'atj' => 'អាទិកាម៉េក',\n 'av' => 'អាវ៉ារីក',\n 'awa' => 'អាវ៉ាឌី',\n 'ay' => 'អីម៉ារ៉ា',\n 'az' => 'អាស៊ែបៃហ្សង់',\n 'ba' => 'បាស្គៀ',\n 'bal' => 'បាលូឈី',\n 'ban' => 'បាលី',\n ", "suffix": " 'bi' => 'ប៊ីស្លាម៉ា',\n 'bin' => 'ប៊ីនី',\n 'bla' => 'ស៊ីកស៊ីកា',\n 'blo' => 'អានី',\n 'bm' => 'បាម្បារា',\n 'bn' => 'បង់ក្លា',\n 'bo' => 'ទីបេ',\n 'br' => 'ប្រ៊ីស្តុន',\n 'brx' => 'បូដូ',\n 'bs' => '", "middle": " 'bas' => 'បាសា',\n 'be' => 'បេឡារុស',\n 'bem' => 'បេមបា',\n 'bez' => 'បេណា',\n 'bg' => 'ប៊ុលហ្ការី',\n 'bgc' => 'ហារីយ៉ាន់វី',\n 'bgn' => 'បាឡូជីខាងលិច',\n 'bho' => 'បូចពូរី',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/km.php", "language": "php", "file_size": 20053, "cut_index": 921, "middle_length": 229}} {"prefix": "ಅಲೆಯುಟ್',\n 'alt' => 'ದಕ್ಷಿಣ ಅಲ್ಟಾಯ್',\n 'am' => 'ಅಂಹರಿಕ್',\n 'an' => 'ಅರಗೊನೀಸ್',\n 'ang' => 'ಪ್ರಾಚೀನ ಇಂಗ್ಲೀಷ್',\n 'ann' => 'ಒಬೊಲೊ',\n 'anp' => 'ಆಂಗಿಕಾ',\n 'ar' => 'ಅರೇಬಿಕ್',\n 'arc' => 'ಅರಾಮಿಕ್',\n 'arn' => 'ಮಪುಚೆ',\n 'arp' => 'ಅರಪಾಹೋ',\n 'ars' => 'ನ್ಯಾಜ್ಡಿ ಅರೇಬಿಕ್',\n 'arw' => 'ಅರಾವಾಕ್',\n 'as' => 'ಅಸ್ಸಾಮೀಸ್',\n 'asa' => 'ಅಸು',\n 'ast' => 'ಆಸ್ಟುರಿಯನ್',\n 'atj' => 'ಅತಿಕಮೆಕ್',\n 'av' => 'ಅವರಿಕ್',\n 'a", "suffix": "ಾ',\n 'bem' => 'ಬೆಂಬಾ',\n 'bez' => 'ಬೆನ',\n 'bg' => 'ಬಲ್ಗೇರಿಯನ್',\n 'bgc' => 'ಹರ್ಯಾನ್ವಿ',\n 'bgn' => 'ಪಶ್ಚಿಮ ಬಲೊಚಿ',\n 'bho' => 'ಭೋಜಪುರಿ',\n 'bi' => 'ಬಿಸ್ಲಾಮಾ',\n 'bik' => 'ಬಿಕೊಲ್',\n 'bin' => 'ಬಿನಿ',\n ", "middle": "wa' => 'ಅವಧಿ',\n 'ay' => 'ಅಯ್ಮಾರಾ',\n 'az' => 'ಅಜೆರ್ಬೈಜಾನಿ',\n 'ba' => 'ಬಶ್ಕಿರ್',\n 'bal' => 'ಬಲೂಚಿ',\n 'ban' => 'ಬಲಿನೀಸ್',\n 'bas' => 'ಬಸಾ',\n 'be' => 'ಬೆಲರೂಸಿಯನ್',\n 'bej' => 'ಬೇಜ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/kn.php", "language": "php", "file_size": 25446, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => '남부 알타이어',\n 'am' => '암하라어',\n 'an' => '아라곤어',\n 'ang' => '고대 영어',\n 'ann' => '오볼로어',\n 'anp' => '앙가어',\n 'ar' => '아랍어',\n 'arc' => '아람어',\n 'arn' => '마푸둥군어',\n 'arp' => '아라파호어',\n 'arq' => '알제리 아랍어',\n 'ars' => '아랍어(나즈디)',\n 'arw' => '아라와크어',\n 'ary' => '모로코 아랍어',\n 'arz' => '이집트 아랍어',\n 'as' => '아삼어',\n 'asa' => '아수어',\n 'ast' => '아스투리아어',\n 'atj' => '아티카메쿠어',\n 'av' => '아바릭어'", "suffix": " 'be' => '벨라루스어',\n 'bej' => '베자어',\n 'bem' => '벰바어',\n 'bez' => '베나어',\n 'bfd' => '바푸트어',\n 'bg' => '불가리아어',\n 'bgc' => '하리안비어',\n 'bgn' => '서부 발로치어',\n 'bho' => '호즈푸리어',\n 'bi' => '비슬라마어',\n ", "middle": ",\n 'awa' => '아와히어',\n 'ay' => '아이마라어',\n 'az' => '아제르바이잔어',\n 'ba' => '바슈키르어',\n 'bal' => '발루치어',\n 'ban' => '발리어',\n 'bas' => '바사어',\n 'bax' => '바문어',\n 'bbj' => '고말라어',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ko.php", "language": "php", "file_size": 19840, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => 'جنوٗبی اَلتایی',\n 'am' => 'اَمہاری',\n 'an' => 'اَراگونی',\n 'ang' => 'پرون اَنگریٖزی',\n 'anp' => 'اَنگِکا',\n 'ar' => 'عربی',\n 'arc' => 'اَرَمیک',\n 'arn' => 'ایرو کونِیَن',\n 'arp' => 'اَراپاہو',\n 'arw' => 'اَراوَک',\n 'as' => 'اسٲمؠ',\n 'ast' => 'ایسٹوٗریَن',\n 'av' => 'اَوارِک',\n 'awa' => 'اَوَدی',\n 'ay' => 'ایمارا',\n 'az' => 'اَزَربیجانی',\n 'ba' => 'بَشکیٖر',\n 'bal' => 'بَلوٗچی',\n ", "suffix": "> 'بِکول',\n 'bin' => 'بِنی',\n 'bla' => 'سِکسِکا',\n 'bm' => 'بَمبارا',\n 'bn' => 'بَنگٲلؠ',\n 'bo' => 'تِبتی',\n 'br' => 'بریٹَن',\n 'bra' => 'برج',\n 'bs' => 'بوسنِیَن',\n 'bua' => 'بُرِیَت',\n ", "middle": " 'ban' => 'بالِنیٖز',\n 'bas' => 'باسا',\n 'be' => 'بیلَروٗشیَن',\n 'bej' => 'بیجا',\n 'bem' => 'بیمبا',\n 'bg' => 'بینا',\n 'bho' => 'بوجپوٗری',\n 'bi' => 'بِسلاما',\n 'bik' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ks.php", "language": "php", "file_size": 15684, "cut_index": 921, "middle_length": 229}} {"prefix": " => 'अंगरिज़ी',\n 'es' => 'हसपानवी',\n 'fr' => 'फ्रांसीसी',\n 'it' => 'इतालवी',\n 'ja' => 'जापानी',\n 'ks' => 'कॉशुर',\n 'pt' => 'पुरतउगाली',\n 'ru' => 'रूसी',\n 'zh' => 'चीनी (तरजुम इशार: खास तोर, मैन्डरिन चीनी।)',\n ],\n 'LocalizedNames' => [\n 'de_AT' => 'आस्ट्रियन जर्मन',\n 'de_CH' => 'स्विस हाई जर्मन',\n 'en_AU' => 'आसट्रेलवी अंगरिज़ी',\n 'en_CA' => 'कनाडियन अंगरिज़ी',\n 'en_GB' => 'बरतानवी अंगरिज़ी',\n 'en_US' => '", "suffix": " हसपानवी',\n 'es_ES' => 'यूरपी हसपानवी',\n 'es_MX' => 'मेकसिकी हसपानवी',\n 'fr_CA' => 'कनाडियन फ्रांसीसी',\n 'fr_CH' => 'स्विस फ्रांसीसी',\n 'pt_BR' => 'ब्राज़िली पुरतउगाली',\n 'pt_PT' => 'यूरपी पुरतउगाली',\n 'zh_H", "middle": "अमरीकी अंगरिज़ी',\n 'es_419' => 'लातिनी अमरीकी", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ks_Deva.php", "language": "php", "file_size": 1571, "cut_index": 582, "middle_length": 52}} {"prefix": " 'obolo',\n 'anp' => 'angîkayî',\n 'apc' => 'erebîya bakurê Şamê',\n 'ar' => 'erebî',\n 'arn' => 'mapuçî',\n 'arp' => 'arapahoyî',\n 'ars' => 'erebîya necdî',\n 'as' => 'asamî',\n 'asa' => 'asûyî',\n 'ast' => 'astûrî',\n 'atj' => 'atîkamekî',\n 'av' => 'avarî',\n 'awa' => 'awadhî',\n 'ay' => 'aymarayî',\n 'az' => 'azerbaycanî',\n 'ba' => 'başkîrî',\n 'bal' => 'belûcî',\n 'ban' => 'balînî',\n 'bas' => ", "suffix": " => 'bojpûrî',\n 'bi' => 'bîslamayî',\n 'bin' => 'bînîyî',\n 'bla' => 'blakfotî',\n 'blo' => 'bloyî',\n 'blt' => 'tay dam',\n 'bm' => 'bambarayî',\n 'bn' => 'bengalî',\n 'bo' => 'tîbetî',\n 'bqi' => 'be", "middle": "'basayî',\n 'be' => 'belarûsî',\n 'bem' => 'bembayî',\n 'bew' => 'betawî',\n 'bez' => 'benayî',\n 'bg' => 'bulgarî',\n 'bgc' => 'haryanvîyî',\n 'bgn' => 'belûcîya rojavayî',\n 'bho'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ku.php", "language": "php", "file_size": 14229, "cut_index": 921, "middle_length": 229}} {"prefix": "nn' => 'оболочо (Нигерия)',\n 'anp' => 'ангикача',\n 'ar' => 'арабча',\n 'arn' => 'мапучече',\n 'arp' => 'арапахочо',\n 'ars' => 'арабча (нежди диалекти)',\n 'as' => 'ассамча',\n 'asa' => 'асуча',\n 'ast' => 'астурийче',\n 'atj' => 'атикамекче',\n 'av' => 'аварикче',\n 'awa' => 'авадхиче',\n 'ay' => 'аймарача',\n 'az' => 'азербайжанча',\n 'ba' => 'башкырча',\n 'bal' => 'белужиче',\n 'ban' => 'баличе',\n 'ba", "suffix": " 'bi' => 'бисламача',\n 'bin' => 'биниче',\n 'bla' => 'сиксикача',\n 'blo' => 'анииче',\n 'bm' => 'бамбарача',\n 'bn' => 'бангладешче',\n 'bo' => 'тибетче',\n 'br' => 'бретончо',\n 'brx' => 'бодочо',\n ", "middle": "s' => 'басаача',\n 'be' => 'беларусча',\n 'bem' => 'бембача',\n 'bez' => 'бенача',\n 'bg' => 'болгарча',\n 'bgc' => 'харьянвиче',\n 'bgn' => 'чыгыш балучиче',\n 'bho' => 'бхожпуриче',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ky.php", "language": "php", "file_size": 18191, "cut_index": 921, "middle_length": 229}} {"prefix": "' => 'Arapaho-Sprooch',\n 'arq' => 'Algerescht Arabesch',\n 'arw' => 'Arawak-Sprooch',\n 'ary' => 'Marokkanescht Arabesch',\n 'arz' => 'Egyptescht Arabesch',\n 'as' => 'Assamesesch',\n 'asa' => 'Asu (Tanzania)',\n 'ase' => 'Amerikanesch Zeechesprooch',\n 'ast' => 'Asturianesch',\n 'av' => 'Awaresch',\n 'avk' => 'Kotava',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Aserbaidschanesch',\n 'ba' => 'Baschkiresch',\n ", "suffix": "russesch',\n 'bej' => 'Bedauye',\n 'bem' => 'Bemba-Sprooch',\n 'bew' => 'Betawi',\n 'bez' => 'Bena',\n 'bfd' => 'Bafut',\n 'bfq' => 'Badaga',\n 'bg' => 'Bulgaresch',\n 'bho' => 'Bhodschpuri',\n 'bi' => ", "middle": " 'bal' => 'Belutschesch',\n 'ban' => 'Balinesesch',\n 'bar' => 'Bairesch',\n 'bas' => 'Basaa-Sprooch',\n 'bax' => 'Bamun',\n 'bbc' => 'Batak Toba',\n 'bbj' => 'Ghomálá’',\n 'be' => 'Wäiss", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/lb.php", "language": "php", "file_size": 18931, "cut_index": 1331, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'Lu-akaani',\n 'am' => 'Lu-amhariki',\n 'ar' => 'Luwarabu',\n 'be' => 'Lubelarusi',\n 'bg' => 'Lubulugariya',\n 'bn' => 'Lubengali',\n 'cs' => 'Luceeke',\n 'de' => 'Ludaaki',\n 'el' => 'Lugereeki/Luyonaani',\n 'en' => 'Lungereza',\n 'es' => 'Lusipanya',\n 'fa' => 'Luperusi',\n 'fr' => 'Lufalansa',\n 'ha' => 'Luhawuza',\n 'hi' => 'Luhindu',\n 'hu' => 'Luhangare',\n 'id' => 'Luy", "suffix": "',\n 'my' => 'Lubbama',\n 'ne' => 'Lunepali',\n 'nl' => 'Luholandi',\n 'pa' => 'Lupunjabi',\n 'pl' => 'Lupolandi',\n 'pt' => 'Lupotugiizi',\n 'ro' => 'Lulomaniya',\n 'ru' => 'Lulasa',\n 'rw' => 'Lunarwa", "middle": "indonezya',\n 'ig' => 'Luyibo',\n 'it' => 'Luyitale',\n 'ja' => 'Lujapani',\n 'jv' => 'Lunnajjava',\n 'km' => 'Lukme',\n 'ko' => 'Lukoreya',\n 'lg' => 'Luganda',\n 'ms' => 'Lumalayi", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/lg.php", "language": "php", "file_size": 1370, "cut_index": 524, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'akan',\n 'am' => 'liamariki',\n 'ar' => 'lialabo',\n 'be' => 'libyelorisí',\n 'bg' => 'libiligali',\n 'bn' => 'libengali',\n 'cs' => 'litshekɛ',\n 'de' => 'lialemá',\n 'el' => 'ligeleki',\n 'en' => 'lingɛlɛ́sa',\n 'es' => 'lisipanye',\n 'fa' => 'lipelésanɛ',\n 'fr' => 'lifalansɛ́',\n 'ha' => 'hausa',\n 'hi' => 'lihindi',\n 'hu' => 'liongili',\n 'id' => 'lindonezi',\n 'i", "suffix": "limá',\n 'ne' => 'linepalɛ',\n 'nl' => 'lifalamá',\n 'pa' => 'lipendzabi',\n 'pl' => 'lipolonɛ',\n 'pt' => 'lipulutugɛ́si',\n 'ro' => 'liromani',\n 'ru' => 'lirisí',\n 'rw' => 'kinyarwanda',\n 'so' => '", "middle": "g' => 'igbo',\n 'it' => 'litaliano',\n 'ja' => 'lizapɔ',\n 'jv' => 'lizava',\n 'km' => 'likambodza',\n 'ko' => 'likoreya',\n 'ln' => 'lingála',\n 'ms' => 'limalezi',\n 'my' => 'libi", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ln.php", "language": "php", "file_size": 1352, "cut_index": 524, "middle_length": 229}} {"prefix": "າເລີດ',\n 'alt' => 'ອານໄຕໃຕ້',\n 'am' => 'ອຳຮາຣິກ',\n 'an' => 'ອາຣາໂກເນັດ',\n 'ang' => 'ອັງກິດໂບຮານ',\n 'ann' => 'ໂອໂບໂລ',\n 'anp' => 'ແອນຈີກາ',\n 'ar' => 'ອາຣັບ',\n 'arc' => 'ອາລາມິກ',\n 'arn' => 'ມາພຸດຊີ',\n 'arp' => 'ອາຣາປາໂຮ',\n 'ars' => 'ນາຈດີ ອາຣາບິກ',\n 'arw' => 'ອາຣາແວກ',\n 'as' => 'ອັສຊາມີສ',\n 'asa' => 'ອາຊູ',\n 'ast' => 'ອັສຕູຮຽນ',\n 'atj' => 'ອາຕິກາແມກ',\n 'av' => 'ອາວາຣິກ',\n 'awa' => 'ອາ", "suffix": " 'be' => 'ເບລາຣັສຊຽນ',\n 'bej' => 'ບີເຈ',\n 'bem' => 'ເບັມບາ',\n 'bez' => 'ບີນາ',\n 'bfd' => 'ບາຟັດ',\n 'bg' => 'ບັງກາຣຽນ',\n 'bgc' => 'ຮາຢານວີ',\n 'bgn' => 'ບາໂລຈີ ພາກຕາເວັນຕົກ',\n 'bho' => 'ໂບພູຣິ',\n ", "middle": "ວາຮິ',\n 'ay' => 'ອາຍມາລາ',\n 'az' => 'ອາເຊີໄບຈານິ',\n 'ba' => 'ບາຣກີ',\n 'bal' => 'ບາລູຊີ',\n 'ban' => 'ບາລີເນັດ',\n 'bas' => 'ບາຊາ',\n 'bax' => 'ບາມຸນ',\n 'bbj' => 'ໂຄມາລາ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/lo.php", "language": "php", "file_size": 23957, "cut_index": 921, "middle_length": 229}} {"prefix": "'arp' => 'arapahų',\n 'arq' => 'Alžyro arabų',\n 'ars' => 'arabų najdi',\n 'arw' => 'aravakų',\n 'ary' => 'Maroko arabų',\n 'arz' => 'Egipto arabų',\n 'as' => 'asamų',\n 'asa' => 'asu',\n 'ase' => 'Amerikos ženklų kalba',\n 'ast' => 'asturianų',\n 'atj' => 'atikamekų',\n 'av' => 'avarikų',\n 'avk' => 'kotava',\n 'awa' => 'avadhi',\n 'ay' => 'aimarų',\n 'az' => 'azerbaidžaniečių',\n 'ba' => 'baškirų',\n 'bal", "suffix": "'bėjų',\n 'bem' => 'bembų',\n 'bew' => 'betavi',\n 'bez' => 'benų',\n 'bfd' => 'bafutų',\n 'bfq' => 'badaga',\n 'bg' => 'bulgarų',\n 'bgc' => 'harijanvi',\n 'bgn' => 'vakarų beludžių',\n 'bho' => 'baučp", "middle": "' => 'baluči',\n 'ban' => 'baliečių',\n 'bar' => 'bavarų',\n 'bas' => 'basų',\n 'bax' => 'bamunų',\n 'bbc' => 'batak toba',\n 'bbj' => 'ghomalų',\n 'be' => 'baltarusių',\n 'bej' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/lt.php", "language": "php", "file_size": 19702, "cut_index": 1331, "middle_length": 229}} {"prefix": "\nreturn [\n 'Names' => [\n 'ak' => 'Liakan',\n 'am' => 'Liamhariki',\n 'ar' => 'Arabi',\n 'be' => 'Belarusi',\n 'bg' => 'Bulegari',\n 'bn' => 'Bengali',\n 'cs' => 'Tsheki',\n 'de' => 'Lizelumani',\n 'el' => 'Giliki',\n 'en' => 'Lingelesa',\n 'es' => 'Lihispania',\n 'fa' => 'Mpepajemi',\n 'fr' => 'Mfwàlànsa',\n 'ha' => 'Hausa',\n 'hi' => 'Hindi',\n 'hu' => 'Hongili',\n 'id' => 'Lindonezia',\n 'ig' =>", "suffix": " 'pa' => 'Lipunjabi',\n 'pl' => 'Mpoloni',\n 'pt' => 'Mputulugɛsi',\n 'ro' => 'Liromani',\n 'ru' => 'Lirisi',\n 'rw' => 'kinyarwanda',\n 'so' => 'Lisomali',\n 'sv' => 'Lisuwidi',\n 'ta' => 'Mtamuili',\n ", "middle": " 'Igbo',\n 'it' => 'Litali',\n 'ja' => 'Liyapani',\n 'jv' => 'Java',\n 'ko' => 'Likoreya',\n 'lu' => 'Tshiluba',\n 'ms' => 'Limalezia',\n 'ne' => 'nepali',\n 'nl' => 'olandi',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/lu.php", "language": "php", "file_size": 1255, "cut_index": 518, "middle_length": 229}} {"prefix": " 'alt' => 'dienvidaltajiešu',\n 'am' => 'amharu',\n 'an' => 'aragoniešu',\n 'ang' => 'senangļu',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'arābu',\n 'arc' => 'aramiešu',\n 'arn' => 'araukāņu',\n 'arp' => 'arapahu',\n 'ars' => 'ņedžu arābu',\n 'arw' => 'aravaku',\n 'as' => 'asamiešu',\n 'asa' => 'asu',\n 'ast' => 'astūriešu',\n 'atj' => 'atikameku',\n 'av' => 'avāru',\n 'awa' => 'avadhu',\n ", "suffix": "=> 'baltkrievu',\n 'bej' => 'bedžu',\n 'bem' => 'bembu',\n 'bez' => 'bena',\n 'bfd' => 'bafutu',\n 'bg' => 'bulgāru',\n 'bgc' => 'harjanvi',\n 'bgn' => 'rietumbeludžu',\n 'bho' => 'bhodžpūru',\n 'bi' =>", "middle": " 'ay' => 'aimaru',\n 'az' => 'azerbaidžāņu',\n 'ba' => 'baškīru',\n 'bal' => 'beludžu',\n 'ban' => 'baliešu',\n 'bas' => 'basu',\n 'bax' => 'bamumu',\n 'bbj' => 'gomalu',\n 'be' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/lv.php", "language": "php", "file_size": 16411, "cut_index": 921, "middle_length": 229}} {"prefix": " 'bej',\n 'bem',\n 'bew',\n 'bez',\n 'bfd',\n 'bfq',\n 'bg',\n 'bgc',\n 'bgn',\n 'bho',\n 'bi',\n 'bik',\n 'bin',\n 'bjn',\n 'bkm',\n 'bla',\n 'blo',\n 'blt',\n 'bm',\n 'bn',\n 'bo',\n 'bpy',\n 'bqi',\n 'br',\n 'bra',\n 'brh',\n 'brx',\n 'bs',\n 'bss',\n 'bua',\n 'bug',\n 'bum',\n 'byn',\n 'byv',\n 'c", "suffix": " 'chp',\n 'chr',\n 'chy',\n 'cic',\n 'ckb',\n 'clc',\n 'co',\n 'cop',\n 'cps',\n 'cr',\n 'crg',\n 'crh',\n 'crj',\n 'crk',\n 'crl',\n 'crm',\n 'crr',\n ", "middle": "a',\n 'cad',\n 'car',\n 'cay',\n 'cch',\n 'ccp',\n 'ce',\n 'ceb',\n 'cgg',\n 'ch',\n 'chb',\n 'chg',\n 'chk',\n 'chm',\n 'chn',\n 'cho',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/meta.php", "language": "php", "file_size": 28055, "cut_index": 1331, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'Akan',\n 'am' => 'Amharika',\n 'ar' => 'Arabo',\n 'be' => 'Bielorosy',\n 'bg' => 'Biolgara',\n 'bn' => 'Bengali',\n 'cs' => 'Tseky',\n 'de' => 'Alemanina',\n 'el' => 'Grika',\n 'en' => 'Anglisy',\n 'es' => 'Espaniola',\n 'fa' => 'Persa',\n 'fr' => 'Frantsay',\n 'ha' => 'haoussa',\n 'hi' => 'hindi',\n 'hu' => 'hongroà',\n 'id' => 'Indonezianina',\n 'ig' => 'igbo',\n ", "suffix": "Nepale',\n 'nl' => 'Holandey',\n 'pa' => 'Penjabi',\n 'pl' => 'Poloney',\n 'pt' => 'Portiogey',\n 'ro' => 'Romanianina',\n 'ru' => 'Rosianina',\n 'rw' => 'Roande',\n 'so' => 'Somalianina',\n 'sv' => 'So", "middle": " 'it' => 'Italianina',\n 'ja' => 'Japoney',\n 'jv' => 'Javaney',\n 'km' => 'khmer',\n 'ko' => 'Koreanina',\n 'mg' => 'Malagasy',\n 'ms' => 'Malay',\n 'my' => 'Birmana',\n 'ne' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/mg.php", "language": "php", "file_size": 1313, "cut_index": 524, "middle_length": 229}} {"prefix": "anp' => 'Anahika',\n 'ar' => 'Ārapi',\n 'arn' => 'Mapūte',\n 'arp' => 'Arapaho',\n 'ars' => 'Arapika Nahāri',\n 'as' => 'Āhamēhi',\n 'asa' => 'Ahu',\n 'ast' => 'Ahitūriana',\n 'atj' => 'Atikameke',\n 'av' => 'Āwhāriki',\n 'awa' => 'Awāti',\n 'ay' => 'Aimāra',\n 'az' => 'Atepaihānia',\n 'ba' => 'Pākīra',\n 'ban' => 'Pārinīhi',\n 'bas' => 'Pahā',\n 'be' => 'Perarūhiana',\n 'bem' => 'Pema',\n 'bez' => 'P", "suffix": " 'bo' => 'Tipete',\n 'br' => 'Peretana',\n 'brx' => 'Pōto',\n 'bs' => 'Pōngiana',\n 'bug' => 'Pukenīhi',\n 'byn' => 'Pirina',\n 'ca' => 'Katarana',\n 'cay' => 'Keiūka',\n 'ccp' => 'Tiakamā',\n 'c", "middle": "ena',\n 'bg' => 'Purukāriana',\n 'bgc' => 'Herianawhi',\n 'bho' => 'Pōhipuri',\n 'bi' => 'Pihirāma',\n 'bin' => 'Pini',\n 'bla' => 'Hihika',\n 'bm' => 'Pāpara',\n 'bn' => 'Pākara',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/mi.php", "language": "php", "file_size": 12590, "cut_index": 921, "middle_length": 229}} {"prefix": " 'arp' => 'арапахо',\n 'arq' => 'алжирски арапски',\n 'ars' => 'неџдиски арапски',\n 'arw' => 'аравачки',\n 'ary' => 'марокански арапски',\n 'arz' => 'египетски арапски',\n 'as' => 'асамски',\n 'asa' => 'асу',\n 'ase' => 'американски знаковен јазик',\n 'ast' => 'астурски',\n 'atj' => 'атикамек',\n 'av' => 'аварски',\n 'avk' => 'котава',\n 'awa' => 'авади',\n 'ay' => 'ајмарски',\n 'az' => 'азербејџански',\n 'ba' ", "suffix": "оруски',\n 'bej' => 'беџа',\n 'bem' => 'бемба',\n 'bew' => 'бетавски',\n 'bez' => 'бена',\n 'bfd' => 'бафут',\n 'bfq' => 'бадага',\n 'bg' => 'бугарски',\n 'bgc' => 'харијанви',\n 'bgn' => 'западен балоч", "middle": "=> 'башкирски',\n 'bal' => 'белуџиски',\n 'ban' => 'балиски',\n 'bar' => 'баварски',\n 'bas' => 'баса',\n 'bax' => 'бамунски',\n 'bbc' => 'тоба',\n 'bbj' => 'гомала',\n 'be' => 'бел", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/mk.php", "language": "php", "file_size": 25028, "cut_index": 1331, "middle_length": 229}} {"prefix": "അലൂട്ട്',\n 'alt' => 'തെക്കൻ അൾത്തായി',\n 'am' => 'അംഹാരിക്',\n 'an' => 'അരഗോണീസ്',\n 'ang' => 'പഴയ ഇംഗ്ലീഷ്',\n 'ann' => 'ഒബോളോ',\n 'anp' => 'ആൻഗിക',\n 'ar' => 'അറബിക്',\n 'arc' => 'അരമായ',\n 'arn' => 'മാപുചി',\n 'arp' => 'അറാപഹോ',\n 'ars' => 'നജ്‌ദി അറബിക്',\n 'arw' => 'അറാവക്',\n 'as' => 'ആസ്സാമീസ്',\n 'asa' => 'ആസു',\n 'ast' => 'അസ്ട്ടൂരിയൻ',\n 'atj' => 'അറ്റികമെക്‌വ്',\n 'av' => 'അവാരിക്',\n 'awa", "suffix": " 'be' => 'ബെലാറുഷ്യൻ',\n 'bej' => 'ബേജ',\n 'bem' => 'ബേംബ',\n 'bez' => 'ബെനാ',\n 'bfd' => 'ബാഫട്ട്',\n 'bg' => 'ബൾഗേറിയൻ',\n 'bgc' => 'ഹർയാൻവി',\n 'bgn' => 'പശ്ചിമ ബലൂചി',\n 'bho' => 'ഭോജ്‌പുരി',\n ", "middle": "' => 'അവാധി',\n 'ay' => 'അയ്മാറ',\n 'az' => 'അസർബൈജാനി',\n 'ba' => 'ബഷ്ഖിർ',\n 'bal' => 'ബലൂചി',\n 'ban' => 'ബാലിനീസ്',\n 'bas' => 'ബാസ',\n 'bax' => 'ബാമുൻ',\n 'bbj' => 'ഘോമാല',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ml.php", "language": "php", "file_size": 25823, "cut_index": 921, "middle_length": 229}} {"prefix": "p' => 'ангик',\n 'ar' => 'араб',\n 'arn' => 'мапүчи',\n 'arp' => 'арапаго',\n 'ars' => 'наджи араб',\n 'as' => 'ассам',\n 'asa' => 'асу',\n 'ast' => 'астури',\n 'atj' => 'атикамек',\n 'av' => 'авар',\n 'awa' => 'авадхи',\n 'ay' => 'аймара',\n 'az' => 'азербайжан',\n 'ba' => 'башкир',\n 'bal' => 'балучи',\n 'ban' => 'бали',\n 'bas' => 'басаа',\n 'be' => 'беларусь',\n 'bem' => 'бемба',\n 'bez' => ", "suffix": "'bn' => 'бенгал',\n 'bo' => 'төвд',\n 'br' => 'бретон',\n 'brx' => 'бодо',\n 'bs' => 'босни',\n 'bug' => 'буги',\n 'byn' => 'блин',\n 'ca' => 'каталан',\n 'cay' => 'кайюга хэл',\n 'ccp' => 'чакма',\n ", "middle": "'бена',\n 'bg' => 'болгар',\n 'bgc' => 'харьянви',\n 'bho' => 'божпури',\n 'bi' => 'бислам',\n 'bin' => 'бини',\n 'bla' => 'сиксика',\n 'blo' => 'Ани',\n 'bm' => 'бамбара',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/mn.php", "language": "php", "file_size": 15381, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => 'altaică meridională',\n 'am' => 'amharică',\n 'an' => 'aragoneză',\n 'ang' => 'engleză veche',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'arabă',\n 'arc' => 'aramaică',\n 'arn' => 'mapuche',\n 'arp' => 'arapaho',\n 'ars' => 'arabă najdi',\n 'arw' => 'arawak',\n 'as' => 'asameză',\n 'asa' => 'asu',\n 'ast' => 'asturiană',\n 'atj' => 'atikamekw',\n 'av' => 'avară',\n 'awa' => 'awadhi'", "suffix": " => 'belarusă',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bg' => 'bulgară',\n 'bgc' => 'haryanvi',\n 'bgn' => 'baluchi occidentală',\n 'bho' => 'bhojpuri',\n 'bi' ", "middle": ",\n 'ay' => 'aymara',\n 'az' => 'azeră',\n 'ba' => 'bașkiră',\n 'bal' => 'baluchi',\n 'ban' => 'balineză',\n 'bas' => 'basaa',\n 'bax' => 'bamun',\n 'bbj' => 'ghomala',\n 'be'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/mo.php", "language": "php", "file_size": 16466, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => 'दक्षिणात्य अल्ताई',\n 'am' => 'अम्हारिक',\n 'an' => 'अर्गोनीज',\n 'ang' => 'पुरातन इंग्रजी',\n 'ann' => 'ओबोलो',\n 'anp' => 'अंगिका',\n 'ar' => 'अरबी',\n 'arc' => 'अ‍ॅरेमाइक',\n 'arn' => 'मापुची',\n 'arp' => 'आरापाहो',\n 'ars' => 'नजदी अरबी',\n 'arw' => 'आरावाक',\n 'as' => 'आसामी',\n 'asa' => 'असु',\n 'ast' => 'अस्तुरियन',\n 'atj' => 'अटिकमेक',\n 'av' => 'अ‍ॅव्हेरिक',\n 'awa' => 'अवधी',\n ", "suffix": "म्बा',\n 'bez' => 'बेना',\n 'bg' => 'बल्गेरियन',\n 'bgc' => 'हरियाणवी',\n 'bgn' => 'पश्चिमी बालोची',\n 'bho' => 'भोजपुरी',\n 'bi' => 'बिस्लामा',\n 'bik' => 'बिकोल',\n 'bin' => 'बिनी',\n 'bla' => 'सिक्सि", "middle": " 'ay' => 'ऐमरा',\n 'az' => 'अझरबैजानी',\n 'ba' => 'बष्किर',\n 'bal' => 'बलुची',\n 'ban' => 'बालिनीज',\n 'bas' => 'बसा',\n 'be' => 'बेलारुशियन',\n 'bej' => 'बेजा',\n 'bem' => 'बे", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/mr.php", "language": "php", "file_size": 24704, "cut_index": 921, "middle_length": 229}} {"prefix": "tan',\n 'am' => 'Amharic',\n 'an' => 'Aragon',\n 'ann' => 'Obolo',\n 'anp' => 'Angika',\n 'ar' => 'Arab',\n 'arn' => 'Mapuche',\n 'arp' => 'Arapaho',\n 'arq' => 'Arab Algeria',\n 'ars' => 'Arab Najdi',\n 'ary' => 'Arab Maghribi',\n 'arz' => 'Arab Mesir',\n 'as' => 'Assam',\n 'asa' => 'Asu',\n 'ast' => 'Asturia',\n 'atj' => 'Atikamekw',\n 'av' => 'Avaric',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n ", "suffix": "'Beja',\n 'bem' => 'Bemba',\n 'bez' => 'Bena',\n 'bfd' => 'Bafut',\n 'bg' => 'Bulgaria',\n 'bgc' => 'Haryanvi',\n 'bgn' => 'Balochi Barat',\n 'bho' => 'Bhojpuri',\n 'bi' => 'Bislama',\n 'bin' => 'Bini',", "middle": " 'az' => 'Azerbaijan',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluchi',\n 'ban' => 'Bali',\n 'bas' => 'Basaa',\n 'bax' => 'Bamun',\n 'bbj' => 'Ghomala',\n 'be' => 'Belarus',\n 'bej' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ms.php", "language": "php", "file_size": 14054, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => 'Altai tan-Nofsinhar',\n 'am' => 'Amhariku',\n 'an' => 'Aragoniż',\n 'ang' => 'Ingliż Antik',\n 'anp' => 'Angika',\n 'ar' => 'Għarbi',\n 'arc' => 'Aramajk',\n 'arn' => 'Mapuche',\n 'arp' => 'Arapaho',\n 'arw' => 'Arawak',\n 'as' => 'Assamiż',\n 'asa' => 'Asu',\n 'ast' => 'Asturian',\n 'av' => 'Avarik',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Ażerbajġani',\n 'ba' => 'Bashkir',\n ", "suffix": "jpuri',\n 'bi' => 'Bislama',\n 'bik' => 'Bikol',\n 'bin' => 'Bini',\n 'bla' => 'Siksika',\n 'bm' => 'Bambara',\n 'bn' => 'Bengali',\n 'bo' => 'Tibetjan',\n 'br' => 'Breton',\n 'bra' => 'Braj',\n '", "middle": " 'bal' => 'Baluċi',\n 'ban' => 'Baliniż',\n 'bas' => 'Basa',\n 'be' => 'Belarussu',\n 'bej' => 'Beja',\n 'bem' => 'Bemba',\n 'bez' => 'Bena',\n 'bg' => 'Bulgaru',\n 'bho' => 'Bho", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/mt.php", "language": "php", "file_size": 14433, "cut_index": 921, "middle_length": 229}} {"prefix": "ang' => 'အင်ဂလို ဆက္ကစွန်',\n 'ann' => 'အိုဘိုလို',\n 'anp' => 'အန်ဂီကာ',\n 'ar' => 'အာရဗီ',\n 'arn' => 'မာပုချီ',\n 'arp' => 'အာရာပါဟို',\n 'ars' => 'နာ့ဂျဒီ အာရဗစ်',\n 'as' => 'အာသံ',\n 'asa' => 'အာစု',\n 'ast' => 'အက်စ်တိုးရီးယား',\n 'atj' => 'အာတီကမဲကု',\n 'av' => 'အာဗာရစ်ခ်',\n 'awa' => 'အာဝါဒီ',\n 'ay' => 'အိုင်မာရ',\n 'az' => 'အဇာဘိုင်ဂျန်',\n 'ba' => 'ဘက်ရှ်ကာ',\n 'bal' => 'ဘယ်လူချီ',\n 'ban' => 'ဘာ", "suffix": "ဂျ်ပူရီ',\n 'bi' => 'ဘစ်စ်လာမာ',\n 'bin' => 'ဘီနီ',\n 'bla' => 'စစ္စီကာ',\n 'blo' => 'အန်နီ',\n 'bm' => 'ဘန်ဘာရာ',\n 'bn' => 'ဘင်္ဂါလီ',\n 'bo' => 'တိဘက်',\n 'br' => 'ဘရီတွန်',\n 'brx' => 'ဗိုဒို',\n ", "middle": "လီ',\n 'bas' => 'ဘာဆာ',\n 'be' => 'ဘီလာရုစ်',\n 'bem' => 'ဘိန်ဘာ',\n 'bez' => 'ဘီနာ',\n 'bg' => 'ဘူလ်ဂေးရီးယား',\n 'bgc' => 'ဟာယန်ဗီ',\n 'bgn' => 'အနောက် ဘဲလိုချီ',\n 'bho' => 'ဘို့", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/my.php", "language": "php", "file_size": 21851, "cut_index": 921, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'isi-Akhani',\n 'am' => 'isi-Amaharikhi',\n 'ar' => 'isi-Alabhu',\n 'be' => 'isi-Bhelarashiyani',\n 'bg' => 'isi-Bulgaria',\n 'bn' => 'isi-Bhengali',\n 'cs' => 'isi-Czech',\n 'de' => 'isi-Jalimani',\n 'el' => 'isi-Giliki',\n 'en' => 'isi-Ngisi',\n 'es' => 'isi-Sipeyini',\n 'fa' => 'isi-Pheshiyani',\n 'fr' => 'isi-Fulentshi',\n 'ha' => 'isi-Hausa',\n 'hi' => 'isi-Hindi',\n 'hu' => 'i", "suffix": " 'ms' => 'isi-Malayi',\n 'my' => 'isi-Burma',\n 'nd' => 'isiNdebele',\n 'ne' => 'isi-Nepali',\n 'nl' => 'isi-Dutch',\n 'pa' => 'isi-Phunjabi',\n 'pl' => 'isi-Pholoshi',\n 'pt' => 'isi-Potukezi',\n 'ro'", "middle": "si-Hangari',\n 'id' => 'isi-Indonesia',\n 'ig' => 'isi-Igbo',\n 'it' => 'isi-Italiano',\n 'ja' => 'isi-Japhani',\n 'jv' => 'isi-Java',\n 'km' => 'isi-Khambodiya',\n 'ko' => 'isi-Koriya',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/nd.php", "language": "php", "file_size": 1459, "cut_index": 524, "middle_length": 229}} {"prefix": "याली अरबी',\n 'ars' => 'नाज्दी अरविक',\n 'arw' => 'अरावाक',\n 'ary' => 'मोरोक्कोली अरबी',\n 'arz' => 'इजिप्ट अरबी',\n 'as' => 'आसामी',\n 'asa' => 'आसु',\n 'ase' => 'अमेरिकी साङ्केतिक भाषा',\n 'ast' => 'अस्टुरियाली',\n 'atj' => 'आतिकामिको',\n 'av' => 'अवारिक',\n 'avk' => 'कोटावा',\n 'awa' => 'अवधी',\n 'ay' => 'ऐमारा',\n 'az' => 'अजरबैजानी',\n 'ba' => 'बास्किर',\n 'bal' => 'बालुची',\n 'ban' => 'बाली',\n ", "suffix": " 'बेटावी',\n 'bez' => 'बेना',\n 'bfd' => 'बाफुट',\n 'bfq' => 'बडागा',\n 'bg' => 'बुल्गेरियाली',\n 'bgc' => 'हरयाणवी',\n 'bgn' => 'पश्चिम बालोची',\n 'bho' => 'भोजपुरी',\n 'bi' => 'बिस्लाम',\n 'bik' => 'ब", "middle": " 'bar' => 'बाभारियाली',\n 'bas' => 'बासा',\n 'bax' => 'बामुन',\n 'bbc' => 'बाताक तोबा',\n 'bbj' => 'घोमाला',\n 'be' => 'बेलारुसी',\n 'bej' => 'बेजा',\n 'bem' => 'बेम्बा',\n 'bew' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ne.php", "language": "php", "file_size": 27484, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'aro' => 'Araona',\n 'arp' => 'Arapaho',\n 'arq' => 'Algerijns Arabisch',\n 'ars' => 'Nadjdi-Arabisch',\n 'arw' => 'Arawak',\n 'ary' => 'Marokkaans Arabisch',\n 'arz' => 'Egyptisch Arabisch',\n 'as' => 'Assamees',\n 'asa' => 'Asu',\n 'ase' => 'Amerikaanse Gebarentaal',\n 'ast' => 'Asturisch',\n 'atj' => 'Atikamekw',\n 'av' => 'Avarisch',\n 'avk' => 'Kotava',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => '", "suffix": "=> 'Ghomala’',\n 'be' => 'Belarussisch',\n 'bej' => 'Beja',\n 'bem' => 'Bemba',\n 'bew' => 'Bataviaans',\n 'bez' => 'Bena',\n 'bfd' => 'Bafut',\n 'bfq' => 'Badaga',\n 'bg' => 'Bulgaars',\n 'bgc' => 'Har", "middle": "Azerbeidzjaans',\n 'ba' => 'Basjkiers',\n 'bal' => 'Beloetsji',\n 'ban' => 'Balinees',\n 'bar' => 'Beiers',\n 'bas' => 'Basa',\n 'bax' => 'Bamoun',\n 'bbc' => 'Batak Toba',\n 'bbj' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/nl.php", "language": "php", "file_size": 18553, "cut_index": 1331, "middle_length": 229}} {"prefix": "sør-altaj',\n 'ang' => 'gammalengelsk',\n 'asa' => 'asu (Tanzania)',\n 'bas' => 'basa',\n 'bss' => 'bakossi',\n 'car' => 'carib',\n 'chg' => 'tsjagataisk',\n 'ckb' => 'sorani',\n 'crj' => 'sørleg aust-cree',\n 'crl' => 'nordleg aust-cree',\n 'crs' => 'seselwa (fransk-kreolsk)',\n 'cu' => 'kyrkjeslavisk',\n 'cv' => 'tsjuvansk',\n 'den' => 'slavej',\n 'dsb' => 'lågsorbisk',\n 'ebu' => 'embu',\n 'egy' => 'gammalegyp", "suffix": " 'gv' => 'manx',\n 'hax' => 'sørleg haida',\n 'hsb' => 'høgsorbisk',\n 'ikt' => 'vestleg kanadisk inuktitut',\n 'kl' => 'grønlandsk (kalaallisut)',\n 'krc' => 'karatsjaiisk-balkarsk',\n 'kum' => 'kumyk',\n '", "middle": "tisk',\n 'elx' => 'elamite',\n 'fro' => 'gammalfransk',\n 'frs' => 'austfrisisk',\n 'fur' => 'friulisk',\n 'gmh' => 'mellomhøgtysk',\n 'goh' => 'gammalhøgtysk',\n 'grc' => 'gammalgresk',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/nn.php", "language": "php", "file_size": 2578, "cut_index": 563, "middle_length": 229}} {"prefix": "' => 'arapaho',\n 'arq' => 'algerisk arabisk',\n 'ars' => 'najdi-arabisk',\n 'arw' => 'arawak',\n 'ary' => 'marokkansk-arabisk',\n 'arz' => 'egyptisk arabisk',\n 'as' => 'assamesisk',\n 'asa' => 'asu',\n 'ase' => 'amerikansk tegnspråk',\n 'ast' => 'asturisk',\n 'atj' => 'atikamekw',\n 'av' => 'avarisk',\n 'avk' => 'kotava',\n 'awa' => 'avadhi',\n 'ay' => 'aymara',\n 'az' => 'aserbajdsjansk',\n 'ba' => 'basjkirsk'", "suffix": "\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bew' => 'betawi',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bfq' => 'badaga',\n 'bg' => 'bulgarsk',\n 'bgc' => 'haryanvi',\n 'bgn' => 'vestbalutsji',\n '", "middle": ",\n 'bal' => 'baluchi',\n 'ban' => 'balinesisk',\n 'bar' => 'bairisk',\n 'bas' => 'basaa',\n 'bax' => 'bamun',\n 'bbc' => 'batak toba',\n 'bbj' => 'ghomala',\n 'be' => 'belarusisk',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/no.php", "language": "php", "file_size": 18519, "cut_index": 1331, "middle_length": 229}} {"prefix": "' => 'arapaho',\n 'arq' => 'algerisk arabisk',\n 'ars' => 'najdi-arabisk',\n 'arw' => 'arawak',\n 'ary' => 'marokkansk-arabisk',\n 'arz' => 'egyptisk arabisk',\n 'as' => 'assamesisk',\n 'asa' => 'asu',\n 'ase' => 'amerikansk tegnspråk',\n 'ast' => 'asturisk',\n 'atj' => 'atikamekw',\n 'av' => 'avarisk',\n 'avk' => 'kotava',\n 'awa' => 'avadhi',\n 'ay' => 'aymara',\n 'az' => 'aserbajdsjansk',\n 'ba' => 'basjkirsk'", "suffix": "\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bew' => 'betawi',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bfq' => 'badaga',\n 'bg' => 'bulgarsk',\n 'bgc' => 'haryanvi',\n 'bgn' => 'vestbalutsji',\n '", "middle": ",\n 'bal' => 'baluchi',\n 'ban' => 'balinesisk',\n 'bar' => 'bairisk',\n 'bas' => 'basaa',\n 'bax' => 'bamun',\n 'bbc' => 'batak toba',\n 'bbj' => 'ghomala',\n 'be' => 'belarusisk',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/no_NO.php", "language": "php", "file_size": 18519, "cut_index": 1331, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'Akaan',\n 'am' => 'Amarik',\n 'ar' => 'Aarabeere',\n 'be' => 'Belaruuse',\n 'bg' => 'Bulgariire',\n 'bn' => 'Bengali',\n 'cs' => 'Cekkere',\n 'de' => 'Docceere',\n 'el' => 'Gerke',\n 'en' => 'Engeleere',\n 'es' => 'Español',\n 'fa' => 'Perseere',\n 'ff' => 'Pulaar',\n 'fr' => 'Farayseere',\n 'ha' => 'Hawsaŋkoore',\n 'hi' => 'Hinndi',\n 'hu' => 'Hongariire',\n 'id' => 'E", "suffix": "Burmeese',\n 'ne' => 'Nepaaleere',\n 'nl' => 'Dacceere',\n 'pa' => 'Punjabeere',\n 'pl' => 'Poloneere',\n 'pt' => 'Purtugeere',\n 'ro' => 'Romaneere',\n 'ru' => 'Riis',\n 'rw' => 'Ruwaanndeere',\n 'so' ", "middle": "ndonesiire',\n 'ig' => 'Igiboore',\n 'it' => 'Italiyeere',\n 'ja' => 'Saponeere',\n 'jv' => 'Sawaneere',\n 'km' => 'Kemeere',\n 'ko' => 'Koreere',\n 'ms' => 'Malayeere',\n 'my' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ff.php", "language": "php", "file_size": 1343, "cut_index": 524, "middle_length": 229}} {"prefix": "=> '𞤀𞤪𞤢𞤺𞤮𞤲𞤪𞤫',\n 'ann' => '𞤌𞤦𞤮𞤤𞤮𞥅𞤪𞤫',\n 'anp' => '𞤀𞤲𞤺𞤭𞤳𞤢𞥄𞤪𞤫',\n 'ar' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫',\n 'arn' => '𞤃𞤢𞤨𞤵𞤷𞤭𞥅𞤪𞤫',\n 'arp' => '𞤀𞤪𞤢𞤨𞤢𞤸𞤮𞥅𞤪𞤫',\n 'ars' => '𞤀𞥄𞤪𞤢𞤦𞤫𞥅𞤪𞤫 𞤐𞤢𞤶𞤣𞤭',\n 'as' => '𞤀𞤧𞤢𞤥𞤫𞥅𞤪𞤫',\n 'asa' => '𞤀𞤧𞤵𞥅𞤪𞤫',\n 'ast' => '𞤀𞤧𞤼𞤵𞤪𞤭𞥅𞤪𞤫',\n 'atj' => '𞤀𞤼𞤭𞤥𞤫𞤳𞤵𞤱𞤪𞤫',\n 'av' => '𞤀𞤬𞤱𞤢𞤪𞤭𞥅𞤪𞤫',\n 'awa' => '𞤀𞤱𞤢𞤣𞤭𞥅𞤪𞤫',\n 'ay' => '𞤀𞤴𞤥𞤢𞤪𞤢𞥄𞤪𞤫',\n 'az' => '𞤀𞤶𞤢𞤪𞤦𞤢𞤴𞤭𞤶𞤢𞤲𞤭𞥅𞤪𞤫',\n 'ba' => '𞤄𞤢𞤧𞤳𞤭𞥅𞤪𞤫',\n 'ban' => '𞤄𞤢𞥄𞤤𞤭𞥅𞤪𞤫',\n 'bas' => ", "suffix": "'bin' => '𞤄𞤭𞤲𞤭𞥅𞤪𞤫',\n 'bla' => '𞤅𞤭𞤳𞤧𞤭𞤳𞤢𞥄𞤪𞤫',\n 'bm' => '𞤄𞤢𞤥𞤦𞤢𞤪𞤢𞥄𞤪𞤫',\n 'bn' => '𞤄𞤫𞤲𞤺𞤢𞤤𞤭𞥅𞤪𞤫',\n 'bo' => '𞤚𞤭𞤦𞤫𞤼𞤫𞤲𞤪𞤫',\n 'br' => '𞤄𞤫𞤪𞤫𞤼𞤮𞤲𞤪𞤫',\n 'brx' => '𞤄𞤮𞤣𞤮𞥅𞤪𞤫',\n 'bs' => '𞤄𞤮𞤧𞤲𞤭𞤴𞤢𞥄𞤪𞤫',\n 'bug' => '𞤄𞤵𞤺𞤭𞤧𞤢𞥄𞤪𞤫',", "middle": "'𞤄𞤢𞤧𞤢𞥄𞤪𞤫',\n 'be' => '𞤄𞤫𞤤𞤢𞤪𞤭𞥅𞤧𞤭𞥅𞤪𞤫',\n 'bem' => '𞤄𞤫𞤥𞤦𞤢𞥄𞤪𞤫',\n 'bez' => '𞤄𞤫𞤲𞤢𞥄𞤪𞤫',\n 'bg' => '𞤄𞤭𞤤𞤺𞤢𞥄𞤪𞤫',\n 'bgc' => '𞤖𞤢𞤪𞤴𞤢𞤲𞤾𞤭𞥅𞤪𞤫',\n 'bho' => '𞤄𞤮𞤧𞤨𞤵𞤪𞤭𞥅𞤪𞤫',\n 'bi' => '𞤄𞤭𞤧𞤤𞤢𞤥𞤢𞥄𞤪𞤫',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ff_Adlm.php", "language": "php", "file_size": 27177, "cut_index": 921, "middle_length": 229}} {"prefix": " 'arq' => 'arabe algérien',\n 'ars' => 'arabe najdi',\n 'arw' => 'arawak',\n 'ary' => 'arabe marocain',\n 'arz' => 'arabe égyptien',\n 'as' => 'assamais',\n 'asa' => 'asu',\n 'ase' => 'langue des signes américaine',\n 'ast' => 'asturien',\n 'atj' => 'atikamekw',\n 'av' => 'avar',\n 'avk' => 'kotava',\n 'awa' => 'awadhi',\n 'ay' => 'aymara',\n 'az' => 'azerbaïdjanais',\n 'ba' => 'bachkir',\n 'bal' => 'baloutc", "suffix": "',\n 'bem' => 'bemba',\n 'bew' => 'betawi',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bfq' => 'badaga',\n 'bg' => 'bulgare',\n 'bgc' => 'haryanvi',\n 'bgn' => 'baloutchi occidental',\n 'bho' => 'bhodjpo", "middle": "hi',\n 'ban' => 'balinais',\n 'bar' => 'bavarois',\n 'bas' => 'bassa',\n 'bax' => 'bamoun',\n 'bbc' => 'batak toba',\n 'bbj' => 'ghomalaʼ',\n 'be' => 'biélorusse',\n 'bej' => 'bedja", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/fr.php", "language": "php", "file_size": 19279, "cut_index": 1331, "middle_length": 229}} {"prefix": "',\n 'alt' => 'Sûd-Altaïsk',\n 'am' => 'Amhaarsk',\n 'an' => 'Aragoneesk',\n 'ang' => 'âldingelsk',\n 'anp' => 'Angika',\n 'ar' => 'Arabysk',\n 'arc' => 'Arameesk',\n 'arn' => 'Araukaansk',\n 'arp' => 'Arapaho',\n 'arw' => 'Arawak',\n 'as' => 'Assameesk',\n 'asa' => 'Asu',\n 'ast' => 'Asturysk',\n 'av' => 'Avarysk',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Azerbeidzjaansk',\n 'ba' => 'Basjk", "suffix": "a',\n 'bez' => 'Bena',\n 'bfd' => 'Bafut',\n 'bg' => 'Bulgaarsk',\n 'bho' => 'Bhojpuri',\n 'bi' => 'Bislama',\n 'bik' => 'Bikol',\n 'bin' => 'Bini',\n 'bkm' => 'Kom',\n 'bla' => 'Siksika',\n 'bm' ", "middle": "iersk',\n 'bal' => 'Baloetsjysk',\n 'ban' => 'Balineesk',\n 'bas' => 'Basa',\n 'bax' => 'Bamoun',\n 'bbj' => 'Ghomala’',\n 'be' => 'Wyt-Russysk',\n 'bej' => 'Beja',\n 'bem' => 'Bemb", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/fy.php", "language": "php", "file_size": 14649, "cut_index": 921, "middle_length": 229}} {"prefix": "udungun',\n 'aro' => 'Araona',\n 'arp' => 'Arapaho',\n 'arq' => 'Arabais Aildireach',\n 'ars' => 'Arabais Najdi',\n 'arw' => 'Arawak',\n 'ary' => 'Arabais Mhorocach',\n 'arz' => 'Arabais Èipheiteach',\n 'as' => 'Asamais',\n 'asa' => 'Asu',\n 'ase' => 'Cainnt-shanais na h-Aimeireaga',\n 'ast' => 'Astùrais',\n 'atj' => 'Atikamekw',\n 'av' => 'Avarais',\n 'avk' => 'Kotava',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n ", "suffix": "\n 'be' => 'Bealaruisis',\n 'bej' => 'Beja',\n 'bem' => 'Bemba',\n 'bew' => 'Betawi',\n 'bez' => 'Bena',\n 'bfd' => 'Bafut',\n 'bfq' => 'Badaga',\n 'bg' => 'Bulgarais',\n 'bgc' => 'Haryanvi',\n 'b", "middle": " 'az' => 'Asarbaideànais',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluchì',\n 'ban' => 'Cànan Bali',\n 'bas' => 'Basaa',\n 'bax' => 'Bamun',\n 'bbc' => 'Batak Toba',\n 'bbj' => 'Ghomala',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/gd.php", "language": "php", "file_size": 19397, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'aragonés',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'árabe',\n 'arc' => 'arameo',\n 'arn' => 'mapuche',\n 'arp' => 'arapaho',\n 'ars' => 'árabe najdi',\n 'as' => 'assamés',\n 'asa' => 'asu',\n 'ast' => 'asturiano',\n 'atj' => 'atikamekw',\n 'av' => 'avar',\n 'awa' => 'awadhi',\n 'ay' => 'aimará',\n 'az' => 'acerbaixano',\n 'ba' => 'baxkir',\n 'bal' => 'baluchi',\n 'ban' => 'balinés',\n ", "suffix": " 'bi' => 'bislama',\n 'bin' => 'bini',\n 'bla' => 'siksiká',\n 'blo' => 'anii',\n 'bm' => 'bambara',\n 'bn' => 'bengalí',\n 'bo' => 'tibetano',\n 'br' => 'bretón',\n 'brx' => 'bodo',\n 'bs' => 'bosníac", "middle": " 'bas' => 'basaa',\n 'be' => 'belaruso',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bg' => 'búlgaro',\n 'bgc' => 'hariani',\n 'bgn' => 'baluchi occidental',\n 'bho' => 'bhojpuri',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/gl.php", "language": "php", "file_size": 13505, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => 'אלטאי דרומית',\n 'am' => 'אמהרית',\n 'an' => 'אראגונית',\n 'ang' => 'אנגלית עתיקה',\n 'ann' => 'אובולו',\n 'anp' => 'אנג׳יקה',\n 'ar' => 'ערבית',\n 'arc' => 'ארמית',\n 'arn' => 'אראוקנית',\n 'arp' => 'אראפהו',\n 'ars' => 'ערבית - נג׳ד',\n 'arw' => 'ארוואק',\n 'as' => 'אסאמית',\n 'asa' => 'אסו',\n 'ast' => 'אסטורית',\n 'atj' => 'אטיקמק',\n 'av' => 'אווארית',\n 'awa' => 'אוואדית',\n 'ay' => '", "suffix": " 'be' => 'בלארוסית',\n 'bej' => 'בז׳ה',\n 'bem' => 'במבה',\n 'bez' => 'בנה',\n 'bfd' => 'באפוט',\n 'bg' => 'בולגרית',\n 'bgc' => 'הריאנבי',\n 'bgn' => 'באלוצ׳י מערבית',\n 'bho' => 'בוג׳פורי',\n 'bi' ", "middle": "איימארית',\n 'az' => 'אזרית',\n 'ba' => 'בשקירית',\n 'bal' => 'באלוצ׳י',\n 'ban' => 'באלינזית',\n 'bar' => 'בווארית',\n 'bas' => 'בסאא',\n 'bax' => 'במום',\n 'bbj' => 'גומאלה',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/he.php", "language": "php", "file_size": 19690, "cut_index": 921, "middle_length": 229}} {"prefix": ",\n 'alt' => 'दक्षिणी अल्ताई',\n 'am' => 'अम्हेरी',\n 'an' => 'अरागोनी',\n 'ang' => 'पुरानी अंग्रेज़ी',\n 'ann' => 'ओबोलो',\n 'anp' => 'अंगिका',\n 'ar' => 'अरबी',\n 'arc' => 'ऐरेमेक',\n 'arn' => 'मापूचे',\n 'arp' => 'अरापाहो',\n 'ars' => 'नज्दी अरबी',\n 'arw' => 'अरावक',\n 'as' => 'असमिया',\n 'asa' => 'असु',\n 'ast' => 'अस्तुरियन',\n 'atj' => 'अतिकामेक्व',\n 'av' => 'अवेरिक',\n 'awa' => 'अवधी',\n ", "suffix": "बा',\n 'bew' => 'बेतावी',\n 'bez' => 'बेना',\n 'bg' => 'बुल्गारियाई',\n 'bgc' => 'हरियाणवी',\n 'bgn' => 'पश्चिमी बलोची',\n 'bho' => 'भोजपुरी',\n 'bi' => 'बिस्लामा',\n 'bik' => 'बिकोल',\n 'bin' => 'बिनी'", "middle": " 'ay' => 'आयमारा',\n 'az' => 'अज़रबैजानी',\n 'ba' => 'बशख़िर',\n 'bal' => 'बलूची',\n 'ban' => 'बालिनीस',\n 'bas' => 'बसा',\n 'be' => 'बेलारूसी',\n 'bej' => 'बेजा',\n 'bem' => 'बेम्", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/hi.php", "language": "php", "file_size": 24853, "cut_index": 921, "middle_length": 229}} {"prefix": "',\n 'alt' => 'հարավային ալթայերեն',\n 'am' => 'ամհարերեն',\n 'an' => 'արագոներեն',\n 'ang' => 'հին անգլերեն',\n 'ann' => 'օբոլո',\n 'anp' => 'անգիկա',\n 'ar' => 'արաբերեն',\n 'arc' => 'արամեերեն',\n 'arn' => 'մապուչի',\n 'arp' => 'արապահո',\n 'arq' => 'ալժիրական արաբերեն',\n 'ars' => 'նեջդի արաբերեն',\n 'arz' => 'եգիպտական արաբերեն',\n 'as' => 'ասամերեն',\n 'asa' => 'ասու',\n 'ase' => 'ամերիկյան ժեստերի լեզու',\n", "suffix": "են',\n 'ban' => 'բալիերեն',\n 'bas' => 'բասաա',\n 'be' => 'բելառուսերեն',\n 'bem' => 'բեմբա',\n 'bez' => 'բենա',\n 'bg' => 'բուլղարերեն',\n 'bgc' => 'հարյանվի',\n 'bgn' => 'արևմտաբելուջիերեն',\n 'bho' =", "middle": " 'ast' => 'աստուրերեն',\n 'atj' => 'աթիկամեկ',\n 'av' => 'ավարերեն',\n 'awa' => 'ավադհի',\n 'ay' => 'այմարա',\n 'az' => 'ադրբեջաներեն',\n 'ba' => 'բաշկիրերեն',\n 'bal' => 'բելուջեր", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/hy.php", "language": "php", "file_size": 20828, "cut_index": 921, "middle_length": 229}} {"prefix": " 'akz' => 'Alabama',\n 'ale' => 'Aleut',\n 'alt' => 'Altai Selatan',\n 'am' => 'Amharik',\n 'an' => 'Aragon',\n 'ang' => 'Inggris Kuno',\n 'ann' => 'Obolo',\n 'anp' => 'Angika',\n 'ar' => 'Arab',\n 'arc' => 'Aram',\n 'arn' => 'Mapuche',\n 'arp' => 'Arapaho',\n 'arq' => 'Arab Aljazair',\n 'ars' => 'Arab Najdi',\n 'arw' => 'Arawak',\n 'ary' => 'Arab Maroko',\n 'arz' => 'Arab Mesir',\n 'as' => 'Assam',\n", "suffix": "i',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluchi',\n 'ban' => 'Bali',\n 'bar' => 'Bavaria',\n 'bas' => 'Basa',\n 'bax' => 'Bamun',\n 'bbc' => 'Batak Toba',\n 'bbj' => 'Ghomala',\n 'be' => 'Belarusia',\n ", "middle": " 'asa' => 'Asu',\n 'ase' => 'Bahasa Isyarat Amerika',\n 'ast' => 'Asturia',\n 'atj' => 'Atikamekw',\n 'av' => 'Avar',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Azerbaijan", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/id.php", "language": "php", "file_size": 16522, "cut_index": 921, "middle_length": 229}} {"prefix": "' => 'Obolo',\n 'anp' => 'Angika',\n 'apc' => 'apcc',\n 'ar' => 'Asụsụ Arabiikị',\n 'arn' => 'Mapuche',\n 'arp' => 'Arapaho',\n 'ars' => 'Najdi Arabikị',\n 'as' => 'Asụsụ Asamisị',\n 'asa' => 'Asụ',\n 'ast' => 'Asụsụ Asturianị',\n 'atj' => 'Atikamekw',\n 'av' => 'Avarịk',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Azerbaijani',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluchi',\n 'ban' => 'Balinese',\n ", "suffix": " 'bho' => 'Bojpuri',\n 'bi' => 'Bislama',\n 'bin' => 'Bini',\n 'bla' => 'Siksikà',\n 'blo' => 'Anii',\n 'blt' => 'Tai Dam',\n 'bm' => 'Bambara',\n 'bn' => 'Bangla',\n 'bo' => 'Tibetan',\n 'br' => 'Bret", "middle": " 'bas' => 'Basaà',\n 'be' => 'Belarusian',\n 'bem' => 'Bembà',\n 'bew' => 'Betawi',\n 'bez' => 'Bena',\n 'bg' => 'Bulgarian',\n 'bgc' => 'Haryanvi',\n 'bgn' => 'Western Balochi',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ig.php", "language": "php", "file_size": 13889, "cut_index": 921, "middle_length": 229}} {"prefix": "=> 'aleúska',\n 'alt' => 'suðuraltaíska',\n 'am' => 'amharíska',\n 'an' => 'aragonska',\n 'ang' => 'fornenska',\n 'ann' => 'obolo',\n 'anp' => 'angíka',\n 'ar' => 'arabíska',\n 'arc' => 'arameíska',\n 'arn' => 'mapuche',\n 'arp' => 'arapahó',\n 'ars' => 'najdi-arabíska',\n 'arw' => 'aravakska',\n 'as' => 'assamska',\n 'asa' => 'asu',\n 'ast' => 'astúríska',\n 'atj' => 'atikamekw',\n 'av' => 'avaríska',\n ", "suffix": "ússneska',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bg' => 'búlgarska',\n 'bgc' => 'haryanví',\n 'bgn' => 'vesturbalotsí',\n 'bho' => 'bojpúrí',\n 'bi' => 'bíslama',\n 'bik' => 'bíko", "middle": " 'awa' => 'avadí',\n 'ay' => 'aímara',\n 'az' => 'aserska',\n 'ba' => 'baskír',\n 'bal' => 'balúkí',\n 'ban' => 'balíska',\n 'bas' => 'basa',\n 'bax' => 'bamun',\n 'be' => 'hvítr", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/is.php", "language": "php", "file_size": 16783, "cut_index": 921, "middle_length": 229}} {"prefix": "rapaho',\n 'arq' => 'arabo algerino',\n 'ars' => 'arabo najd',\n 'arw' => 'aruaco',\n 'ary' => 'arabo marocchino',\n 'arz' => 'arabo egiziano',\n 'as' => 'assamese',\n 'asa' => 'asu',\n 'ase' => 'lingua dei segni americana',\n 'ast' => 'asturiano',\n 'atj' => 'atikamekw',\n 'av' => 'avaro',\n 'avk' => 'kotava',\n 'awa' => 'awadhi',\n 'ay' => 'aymara',\n 'az' => 'azerbaigiano',\n 'ba' => 'baschiro',\n 'bal' ", "suffix": "begia',\n 'bem' => 'wemba',\n 'bew' => 'betawi',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bfq' => 'badaga',\n 'bg' => 'bulgaro',\n 'bgc' => 'haryanvi',\n 'bgn' => 'beluci occidentale',\n 'bho' => 'bhoj", "middle": "=> 'beluci',\n 'ban' => 'balinese',\n 'bar' => 'bavarese',\n 'bas' => 'basa',\n 'bax' => 'bamun',\n 'bbc' => 'batak toba',\n 'bbj' => 'ghomala',\n 'be' => 'bielorusso',\n 'bej' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/it.php", "language": "php", "file_size": 18961, "cut_index": 1331, "middle_length": 229}} {"prefix": " => 'Angika',\n 'ar' => 'Arab',\n 'arn' => 'Mapushe',\n 'arp' => 'Arapaho',\n 'ars' => 'Arab Najdi',\n 'as' => 'Assam',\n 'asa' => 'Asu',\n 'ast' => 'Asturia',\n 'atj' => 'Atikamekw',\n 'av' => 'Avaric',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Azerbaijan',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluchi',\n 'ban' => 'Bali',\n 'bas' => 'Basaa',\n 'be' => 'Belarus',\n 'bem' => 'Bemba',\n 'bez", "suffix": ",\n 'bn' => 'Bengali',\n 'bo' => 'Tibet',\n 'br' => 'Breton',\n 'brx' => 'Bodo',\n 'bs' => 'Bosnia lan Hercegovina',\n 'bug' => 'Bugis',\n 'byn' => 'Blin',\n 'ca' => 'Katala',\n 'cay' => 'Kayuga',\n ", "middle": "' => 'Bena',\n 'bg' => 'Bulgaria',\n 'bgc' => 'Haryanvi',\n 'bho' => 'Bhojpuri',\n 'bi' => 'Bislama',\n 'bin' => 'Bini',\n 'bla' => 'Siksiká',\n 'blo' => 'Anii',\n 'bm' => 'Bambara'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/jv.php", "language": "php", "file_size": 12567, "cut_index": 921, "middle_length": 229}} {"prefix": "სამხრეთ ალთაური',\n 'am' => 'ამჰარული',\n 'an' => 'არაგონული',\n 'ang' => 'ძველი ინგლისური',\n 'ann' => 'ობოლო',\n 'anp' => 'ანგიკა',\n 'ar' => 'არაბული',\n 'arc' => 'არამეული',\n 'arn' => 'მაპუდუნგუნი',\n 'arp' => 'არაპაჰო',\n 'ars' => 'ნაჯის არაბული',\n 'arw' => 'არავაკი',\n 'as' => 'ასამური',\n 'asa' => 'ასუ',\n 'ast' => 'ასტურიული',\n 'atj' => 'ატიკამეკი',\n 'av' => 'ხუნძური',\n 'awa' => 'ავადი',\n ", "suffix": "bej' => 'ბეჯა',\n 'bem' => 'ბემბა',\n 'bez' => 'ბენა',\n 'bg' => 'ბულგარული',\n 'bgc' => 'ჰარიანვი',\n 'bgn' => 'დასავლეთ ბელუჯი',\n 'bho' => 'ბოჯპური',\n 'bi' => 'ბისლამა',\n 'bin' => 'ბინი',\n 'bla' =", "middle": " 'ay' => 'აიმარა',\n 'az' => 'აზერბაიჯანული',\n 'ba' => 'ბაშკირული',\n 'bal' => 'ბელუჯი',\n 'ban' => 'ბალინური',\n 'bas' => 'ბასა',\n 'bax' => 'ბამუნი',\n 'be' => 'ბელარუსული',\n '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ka.php", "language": "php", "file_size": 24741, "cut_index": 921, "middle_length": 229}} {"prefix": ",\n 'an' => 'арагон тілі',\n 'ann' => 'оболо тілі',\n 'anp' => 'ангика тілі',\n 'apc' => 'араб тілі (леватин)',\n 'ar' => 'араб тілі',\n 'arn' => 'мапуче тілі',\n 'arp' => 'арапахо тілі',\n 'ars' => 'араб тілі (Неджда)',\n 'as' => 'ассам тілі',\n 'asa' => 'асу тілі',\n 'ast' => 'астурия тілі',\n 'atj' => 'атикамек тілі',\n 'av' => 'авар тілі',\n 'awa' => 'авадхи тілі',\n 'ay' => 'аймара тілі',\n 'az' => 'әзірбайж", "suffix": "\n 'bez' => 'бена тілі',\n 'bg' => 'болгар тілі',\n 'bgc' => 'хариани тілі',\n 'bgn' => 'батыс балучи тілі',\n 'bho' => 'бходжпури тілі',\n 'bi' => 'бислама тілі',\n 'bin' => 'бини тілі',\n 'bla' => 'сиксика ", "middle": "ан тілі',\n 'ba' => 'башқұрт тілі',\n 'bal' => 'балучи тілі',\n 'ban' => 'бали тілі',\n 'bas' => 'баса тілі',\n 'be' => 'беларусь тілі',\n 'bem' => 'бемба тілі',\n 'bew' => 'бетауи тілі',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/kk.php", "language": "php", "file_size": 20697, "cut_index": 921, "middle_length": 229}} {"prefix": "'angika',\n 'ar' => 'arabiskt',\n 'arn' => 'mapuche',\n 'arp' => 'arapaho',\n 'as' => 'assamesiskt',\n 'asa' => 'asu',\n 'ast' => 'asturianskt',\n 'av' => 'avariskt',\n 'awa' => 'awadhi',\n 'ay' => 'aymara',\n 'az' => 'aserbajdsjanskt',\n 'ba' => 'bashkir',\n 'ban' => 'balinesiskt',\n 'bas' => 'basaa',\n 'be' => 'hvitarussiskt',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bg' => 'bulgarskt',\n 'bgc' => ", "suffix": "la',\n 'bo' => 'tibetskt',\n 'br' => 'bretonskt',\n 'brx' => 'bodo',\n 'bs' => 'bosniskt',\n 'bss' => 'bakossi',\n 'bug' => 'buginesiskt',\n 'byn' => 'blin',\n 'ca' => 'katalani',\n 'ccp' => 'khakma',\n ", "middle": "'haryanvi',\n 'bgn' => 'vestur balochi',\n 'bho' => 'bhojpuri',\n 'bi' => 'bislama',\n 'bin' => 'bini',\n 'bla' => 'siksika',\n 'blo' => 'anii',\n 'bm' => 'bambara',\n 'bn' => 'bang", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/fo.php", "language": "php", "file_size": 11838, "cut_index": 921, "middle_length": 229}} {"prefix": "s' => [\n 'ady' => 'adygué',\n 'ang' => 'vieil anglais',\n 'asa' => 'asou',\n 'bbj' => 'ghomala',\n 'bik' => 'bicol',\n 'byn' => 'bilen',\n 'byv' => 'medumba',\n 'chg' => 'tchagatay',\n 'chn' => 'chinook',\n 'ckb' => 'kurde central',\n 'cr' => 'cri',\n 'crg' => 'michif',\n 'crl' => 'cri du Nord-Est',\n 'crr' => 'algonquin de la Caroline',\n 'den' => 'slave',\n 'dgr' => 'tlicho',\n 'ebu' => 'embou',\n ", "suffix": "' => 'kenyang',\n 'kl' => 'kalaallisut',\n 'ks' => 'kashmiri',\n 'ksb' => 'chambala',\n 'liv' => 'live',\n 'lu' => 'luba-katanga',\n 'lzh' => 'chinois classique',\n 'mgh' => 'makhuwa-meetto',\n 'mgo' => 'meta", "middle": "'esu' => 'yupik central',\n 'ewo' => 'ewondo',\n 'frc' => 'cajun',\n 'frp' => 'franco-provençal',\n 'goh' => 'vieux haut-allemand',\n 'gu' => 'gujarati',\n 'ii' => 'yi de Sichuan',\n 'ken", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/fr_CA.php", "language": "php", "file_size": 1961, "cut_index": 537, "middle_length": 229}} {"prefix": " 'an' => 'aragoniagiella',\n 'ang' => 'boares eaŋgalasgiella',\n 'ar' => 'arábagiella',\n 'ast' => 'asturiagiella',\n 'be' => 'vilges-ruoššagiella',\n 'bg' => 'bulgáriagiella',\n 'bn' => 'bengalgiella',\n 'bo' => 'tibetagiella',\n 'br' => 'bretonagiella',\n 'bs' => 'bosniagiella',\n 'ca' => 'katalánagiella',\n 'chm' => 'marigiella',\n 'co' => 'corsicagiella',\n 'cs' => 'čeahkagiella',\n 'cy' => 'kymragiella',\n 'da", "suffix": "'et' => 'esttegiella',\n 'fa' => 'persijagiella',\n 'fi' => 'suomagiella',\n 'fil' => 'filippiinnagiella',\n 'fj' => 'fidjigiella',\n 'fo' => 'fearagiella',\n 'fr' => 'fránskkagiella',\n 'fy' => 'oarjifriisagiella'", "middle": "' => 'dánskkagiella',\n 'de' => 'duiskkagiella',\n 'dv' => 'divehigiella',\n 'dz' => 'dzongkhagiella',\n 'el' => 'greikkagiella',\n 'en' => 'eaŋgalsgiella',\n 'es' => 'spánskkagiella',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/se.php", "language": "php", "file_size": 3668, "cut_index": 614, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ace' => 'ačehgiella',\n 'be' => 'vilgesruoššagiella',\n 'bn' => 'bengalagiella',\n 'fj' => 'fižigiella',\n 'hy' => 'armenagiella',\n 'kk' => 'kazakhgiella',\n 'km' => 'kambožagiella',\n 'ne' => 'nepalagiella',\n 'pa' => 'panjabagiella',\n 'swb' => 'komoragiella',\n 'th' => 'thaigiella',\n 'vi' => 'vietnamagiella',\n ],\n 'LocalizedNames' => [\n 'ar_001' => 'standárda arábagiella',\n 'de_AT' => 'nu", "suffix": "_US' => 'amerihkálaš eaŋgalsgiella',\n 'es_419' => 'latiinna-amerihkalaš spánskkagiella',\n 'es_ES' => 'espánjalaš spánskkagiella',\n 'es_MX' => 'meksikolaš spánskkagiella',\n 'fr_CA' => 'kanádalaš fránskkagiella',\n 'fr_CH' =", "middle": "ortariikkalaš duiskkagiella',\n 'de_CH' => 'šveicalaš duiskkagiella',\n 'en_AU' => 'austrálialaš eaŋgalsgiella',\n 'en_CA' => 'kanádalaš eaŋgalsgiella',\n 'en_GB' => 'brihttalaš eaŋgalsgiella',\n 'en", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/se_FI.php", "language": "php", "file_size": 1335, "cut_index": 524, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'Akâan',\n 'am' => 'Amarîki',\n 'ar' => 'Arâbo',\n 'be' => 'Bielörûsi',\n 'bg' => 'Bulugäri',\n 'bn' => 'Bengäli',\n 'cs' => 'Tyêki',\n 'de' => 'Zâmani',\n 'el' => 'Gerêki',\n 'en' => 'Anglëe',\n 'es' => 'Espanyöl',\n 'fa' => 'Farsî',\n 'fr' => 'Farânzi',\n 'ha' => 'Haüsä',\n 'hi' => 'Hîndi',\n 'hu' => 'Hongruäa',\n 'id' => 'Enndonezïi',\n 'ig' => 'Ïgbö',\n 'it' =>", "suffix": "ëe',\n 'pa' => 'Penzäbï',\n 'pl' => 'Polonëe',\n 'pt' => 'Portugëe, Pûra',\n 'ro' => 'Rumëen',\n 'ru' => 'Rûsi',\n 'rw' => 'Ruandäa',\n 'sg' => 'Sängö',\n 'so' => 'Somalïi',\n 'sv' => 'Sueduäa',\n ", "middle": " 'Ênnde',\n 'ja' => 'Zaponëe',\n 'jv' => 'Zavanëe',\n 'km' => 'Kmêre',\n 'ko' => 'Koreyëen',\n 'ms' => 'Malëe',\n 'my' => 'Miamära, Birimäni',\n 'ne' => 'Nepalëe',\n 'nl' => 'Holand", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sg.php", "language": "php", "file_size": 1323, "cut_index": 524, "middle_length": 229}} {"prefix": "'aleutski',\n 'alt' => 'južnoaltajski',\n 'am' => 'amharski',\n 'an' => 'aragonski',\n 'ang' => 'staroengleski',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'arapski',\n 'arc' => 'aramejski',\n 'arn' => 'mapuče',\n 'arp' => 'arapaho',\n 'ars' => 'najdiarapski',\n 'arw' => 'aravački',\n 'as' => 'asamski',\n 'asa' => 'asu',\n 'ast' => 'asturijski',\n 'atj' => 'atikameku',\n 'av' => 'avarski',\n '", "suffix": "' => 'bedža',\n 'bem' => 'bemba',\n 'bew' => 'betavi',\n 'bez' => 'bena',\n 'bg' => 'bugarski',\n 'bgc' => 'harijanski',\n 'bgn' => 'zapadni belučki',\n 'bho' => 'bodžpuri',\n 'bi' => 'bislama',\n 'bik'", "middle": "awa' => 'avadi',\n 'ay' => 'ajmara',\n 'az' => 'azerbejdžanski',\n 'ba' => 'baškirski',\n 'bal' => 'belučki',\n 'ban' => 'balijski',\n 'bas' => 'basa',\n 'be' => 'beloruski',\n 'bej", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sh.php", "language": "php", "file_size": 16576, "cut_index": 921, "middle_length": 229}} {"prefix": " 'an' => 'ඇරගොනීස්',\n 'ann' => 'ඔබලෝ',\n 'anp' => 'අන්ගික',\n 'ar' => 'අරාබි',\n 'arn' => 'මපුචෙ',\n 'arp' => 'ඇරපහො',\n 'ars' => 'නජ්ඩි අරාබි',\n 'as' => 'ඇසෑම්',\n 'asa' => 'අසු',\n 'ast' => 'ඇස්ටියුරියන්',\n 'atj' => 'ඇටිකමෙක්ව්',\n 'av' => 'ඇවරික්',\n 'awa' => 'අවදි',\n 'ay' => 'අයිමරා',\n 'az' => 'අසර්බයිජාන්',\n 'ba' => 'බාෂ්කිර්',\n 'bal' => 'බලුචි',\n 'ban' => 'බැලිනීස්',\n 'bas' => 'බ", "suffix": "ස්ලමා',\n 'bin' => 'බිනි',\n 'bla' => 'සික්සිකා',\n 'blo' => 'අනී',\n 'bm' => 'බම්බරා',\n 'bn' => 'බෙංගාලි',\n 'bo' => 'ටිබෙට්',\n 'br' => 'බ්‍රේටොන්',\n 'brx' => 'බොඩො',\n 'bs' => 'බොස්නියානු',\n ", "middle": "සා',\n 'be' => 'බෙලරුසියානු',\n 'bem' => 'බෙම්බා',\n 'bez' => 'බෙනා',\n 'bg' => 'බල්ගේරියානු',\n 'bgc' => 'හර්යාන්වි',\n 'bgn' => 'බටහිර බලොචි',\n 'bho' => 'බොජ්පුරි',\n 'bi' => 'බි", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/si.php", "language": "php", "file_size": 20673, "cut_index": 921, "middle_length": 229}} {"prefix": " 'as' => 'ásamčina',\n 'asa' => 'asu',\n 'ast' => 'astúrčina',\n 'atj' => 'atikamekwčina',\n 'av' => 'avarčina',\n 'awa' => 'awadhi',\n 'ay' => 'aymarčina',\n 'az' => 'azerbajdžančina',\n 'ba' => 'baškirčina',\n 'bal' => 'balúčtina',\n 'ban' => 'balijčina',\n 'bas' => 'basa',\n 'bax' => 'bamun',\n 'bbj' => 'ghomala',\n 'be' => 'bieloruština',\n 'bej' => 'bedža',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n ", "suffix": "ni',\n 'bkm' => 'kom',\n 'bla' => 'siksika',\n 'blo' => 'anii',\n 'bm' => 'bambarčina',\n 'bn' => 'bengálčina',\n 'bo' => 'tibetčina',\n 'br' => 'bretónčina',\n 'bra' => 'bradžčina',\n 'brx' => 'bodo',\n", "middle": " 'bfd' => 'bafut',\n 'bg' => 'bulharčina',\n 'bgc' => 'haryanvi',\n 'bgn' => 'západná balúčtina',\n 'bho' => 'bhódžpurčina',\n 'bi' => 'bislama',\n 'bik' => 'bikolčina',\n 'bin' => 'bi", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sk.php", "language": "php", "file_size": 18235, "cut_index": 1331, "middle_length": 229}} {"prefix": "na',\n 'arw' => 'aravaščina',\n 'as' => 'asamščina',\n 'asa' => 'asujščina',\n 'ast' => 'asturijščina',\n 'atj' => 'atikamekwščina',\n 'av' => 'avarščina',\n 'awa' => 'avadščina',\n 'ay' => 'ajmarščina',\n 'az' => 'azerbajdžanščina',\n 'ba' => 'baškirščina',\n 'bal' => 'beludžijščina',\n 'ban' => 'balijščina',\n 'bas' => 'basa',\n 'be' => 'beloruščina',\n 'bej' => 'bedža',\n 'bem' => 'bemba',\n 'bez' => 'be", "suffix": "o',\n 'bla' => 'siksika',\n 'blo' => 'anii',\n 'bm' => 'bambarščina',\n 'bn' => 'bengalščina',\n 'bo' => 'tibetanščina',\n 'br' => 'bretonščina',\n 'bra' => 'bradžbakanščina',\n 'brx' => 'bodojščina',\n ", "middle": "najščina',\n 'bg' => 'bolgarščina',\n 'bgc' => 'harjanščina',\n 'bgn' => 'zahodnobalučijščina',\n 'bho' => 'bodžpuri',\n 'bi' => 'bislamščina',\n 'bik' => 'bikolski jezik',\n 'bin' => 'ed", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sl.php", "language": "php", "file_size": 18818, "cut_index": 1331, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'chiAkani',\n 'am' => 'chiAmaric',\n 'ar' => 'chiArabu',\n 'be' => 'chiBelarusi',\n 'bg' => 'chiBulgarian',\n 'bn' => 'chiBengali',\n 'cs' => 'chiCzech',\n 'de' => 'chiJerimani',\n 'el' => 'chiGreek',\n 'en' => 'Chirungu',\n 'es' => 'chiSpanish',\n 'fa' => 'chiPeshiya',\n 'fr' => 'chiFurenchi',\n 'ha' => 'chiHausa',\n 'hi' => 'chiHindi',\n 'hu' => 'chiHungari',\n 'id' => 'chiI", "suffix": "urma',\n 'ne' => 'chiNepali',\n 'nl' => 'chiDutch',\n 'pa' => 'chiPunjabi',\n 'pl' => 'chiPolish',\n 'pt' => 'chiPutukezi',\n 'ro' => 'chiRomanian',\n 'ru' => 'chiRashiya',\n 'rw' => 'chiRwanda',\n 'sn'", "middle": "ndonesia',\n 'ig' => 'chiIgbo',\n 'it' => 'chiTariana',\n 'ja' => 'chiJapani',\n 'jv' => 'chiJava',\n 'km' => 'chiKhema',\n 'ko' => 'chiKoria',\n 'ms' => 'chiMalay',\n 'my' => 'chiB", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sn.php", "language": "php", "file_size": 1380, "cut_index": 524, "middle_length": 229}} {"prefix": " 'ann' => 'Obolo',\n 'anp' => 'U dhashay Anp',\n 'ar' => 'Carabi',\n 'arn' => 'Mapuche',\n 'arp' => 'U dhashay Arap',\n 'ars' => 'Najdi Arabic',\n 'as' => 'Asaamiis',\n 'asa' => 'Asu',\n 'ast' => 'Astuuriyaan',\n 'atj' => 'Atikamekw',\n 'av' => 'U dhashay Avar',\n 'awa' => 'Awa',\n 'ay' => 'U dhashay Aymar',\n 'az' => 'Asarbayjan',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluchi',\n 'ban' => 'U dhashay Baline',\n ", "suffix": "m',\n 'bin' => 'U dhashay Bin',\n 'bla' => 'Siksiká',\n 'blo' => 'Anii',\n 'bm' => 'Bambaara',\n 'bn' => 'Bangladesh',\n 'bo' => 'Tibeetaan',\n 'br' => 'Biriton',\n 'brx' => 'Bodo',\n 'bs' => 'Bosniyaan", "middle": " 'bas' => 'Basaa',\n 'be' => 'Beleruusiyaan',\n 'bem' => 'Bemba',\n 'bez' => 'Bena',\n 'bg' => 'Bulgeeriyaan',\n 'bgc' => 'Haryanvi',\n 'bho' => 'Bhojpuri',\n 'bi' => 'U dhashay Bisla", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/so.php", "language": "php", "file_size": 13133, "cut_index": 921, "middle_length": 229}} {"prefix": "> 'aragonezisht',\n 'ann' => 'oboloisht',\n 'anp' => 'angikisht',\n 'ar' => 'arabisht',\n 'arn' => 'mapuçisht',\n 'arp' => 'arapahoisht',\n 'ars' => 'arabishte naxhdi',\n 'as' => 'asamezisht',\n 'asa' => 'asuisht',\n 'ast' => 'asturisht',\n 'atj' => 'atikamekisht',\n 'av' => 'avarikisht',\n 'awa' => 'auadhisht',\n 'ay' => 'ajmarisht',\n 'az' => 'azerbajxhanisht',\n 'ba' => 'bashkirisht',\n 'bal' => 'balukisht',\n ", "suffix": "=> 'balokishte perëndimore',\n 'bho' => 'boxhpurisht',\n 'bi' => 'bislamisht',\n 'bin' => 'binisht',\n 'bla' => 'siksikaisht',\n 'blo' => 'anisht',\n 'bm' => 'bambarisht',\n 'bn' => 'bengalisht',\n 'bo' => 't", "middle": " 'ban' => 'balinezisht',\n 'bas' => 'basaisht',\n 'be' => 'bjellorusisht',\n 'bem' => 'bembaisht',\n 'bez' => 'benaisht',\n 'bg' => 'bullgarisht',\n 'bgc' => 'harjanvisht',\n 'bgn' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sq.php", "language": "php", "file_size": 14834, "cut_index": 921, "middle_length": 229}} {"prefix": "'алеутски',\n 'alt' => 'јужноалтајски',\n 'am' => 'амхарски',\n 'an' => 'арагонски',\n 'ang' => 'староенглески',\n 'ann' => 'оболо',\n 'anp' => 'ангика',\n 'ar' => 'арапски',\n 'arc' => 'арамејски',\n 'arn' => 'мапуче',\n 'arp' => 'арапахо',\n 'ars' => 'најдиарапски',\n 'arw' => 'аравачки',\n 'as' => 'асамски',\n 'asa' => 'асу',\n 'ast' => 'астуријски',\n 'atj' => 'атикамеку',\n 'av' => 'аварски',\n '", "suffix": " => 'беџа',\n 'bem' => 'бемба',\n 'bew' => 'бетави',\n 'bez' => 'бена',\n 'bg' => 'бугарски',\n 'bgc' => 'харијански',\n 'bgn' => 'западни белучки',\n 'bho' => 'боџпури',\n 'bi' => 'бислама',\n 'bik' =>", "middle": "awa' => 'авади',\n 'ay' => 'ајмара',\n 'az' => 'азербејџански',\n 'ba' => 'башкирски',\n 'bal' => 'белучки',\n 'ban' => 'балијски',\n 'bas' => 'баса',\n 'be' => 'белоруски',\n 'bej'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sr.php", "language": "php", "file_size": 20987, "cut_index": 921, "middle_length": 229}} {"prefix": "'aleutski',\n 'alt' => 'južnoaltajski',\n 'am' => 'amharski',\n 'an' => 'aragonski',\n 'ang' => 'staroengleski',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'arapski',\n 'arc' => 'aramejski',\n 'arn' => 'mapuče',\n 'arp' => 'arapaho',\n 'ars' => 'najdiarapski',\n 'arw' => 'aravački',\n 'as' => 'asamski',\n 'asa' => 'asu',\n 'ast' => 'asturijski',\n 'atj' => 'atikameku',\n 'av' => 'avarski',\n '", "suffix": "' => 'bedža',\n 'bem' => 'bemba',\n 'bew' => 'betavi',\n 'bez' => 'bena',\n 'bg' => 'bugarski',\n 'bgc' => 'harijanski',\n 'bgn' => 'zapadni belučki',\n 'bho' => 'bodžpuri',\n 'bi' => 'bislama',\n 'bik'", "middle": "awa' => 'avadi',\n 'ay' => 'ajmara',\n 'az' => 'azerbejdžanski',\n 'ba' => 'baškirski',\n 'bal' => 'belučki',\n 'ban' => 'balijski',\n 'bas' => 'basa',\n 'be' => 'beloruski',\n 'bej", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sr_Latn.php", "language": "php", "file_size": 16576, "cut_index": 921, "middle_length": 229}} {"prefix": " 'de' => 'Jérman',\n 'en' => 'Inggris',\n 'es' => 'Spanyol',\n 'fr' => 'Prancis',\n 'it' => 'Italia',\n 'ja' => 'Jepang',\n 'pt' => 'Portugis',\n 'ru' => 'Rusia',\n 'su' => 'Basa Sunda',\n 'zh' => 'Tiongkok',\n ],\n 'LocalizedNames' => [\n 'de_AT' => 'Jérman Austria',\n 'de_CH' => 'Jérman Swiss Luhur',\n 'en_AU' => 'Inggris Australia',\n 'en_CA' => 'Inggris Kanada',\n 'en_US' => 'Inggris Amerika',\n 'es_419' =", "suffix": "ol Éropa',\n 'es_MX' => 'Spanyol Méksiko',\n 'fr_CA' => 'Prancis Kanada',\n 'fr_CH' => 'Prancis Swiss',\n 'pt_BR' => 'Portugis Brasil',\n 'pt_PT' => 'Portugis Éropa',\n 'zh_Hans' => 'Tiongkok Sederhana',\n 'zh_Hant", "middle": "> 'Spanyol Amérika Latin',\n 'es_ES' => 'Spany", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/su.php", "language": "php", "file_size": 901, "cut_index": 547, "middle_length": 52}} {"prefix": "niska',\n 'arp' => 'arapaho',\n 'arq' => 'algerisk arabiska',\n 'ars' => 'najdiarabiska',\n 'arw' => 'arawakiska',\n 'ary' => 'marockansk arabiska',\n 'arz' => 'egyptisk arabiska',\n 'as' => 'assamesiska',\n 'asa' => 'asu',\n 'ase' => 'amerikanskt teckenspråk',\n 'ast' => 'asturiska',\n 'atj' => 'atikamekw',\n 'av' => 'avariska',\n 'avk' => 'kotava',\n 'awa' => 'awadhi',\n 'ay' => 'aymara',\n 'az' => 'azerbajdzja", "suffix": "=> 'ghomala',\n 'be' => 'belarusiska',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bew' => 'betawiska',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bfq' => 'bagada',\n 'bg' => 'bulgariska',\n 'bgc' => 'hari", "middle": "nska',\n 'ba' => 'basjkiriska',\n 'bal' => 'baluchiska',\n 'ban' => 'balinesiska',\n 'bar' => 'bayerska',\n 'bas' => 'basa',\n 'bax' => 'bamunska',\n 'bbc' => 'batak-toba',\n 'bbj' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sv.php", "language": "php", "file_size": 19434, "cut_index": 1331, "middle_length": 229}} {"prefix": "an' => 'Kiaragoni',\n 'ang' => 'Kiingereza cha Kale',\n 'ann' => 'Kiobolo',\n 'anp' => 'Kiangika',\n 'ar' => 'Kiarabu',\n 'arc' => 'Kiaramu',\n 'arn' => 'Kimapuche',\n 'arp' => 'Kiarapaho',\n 'arq' => 'Kiarabu cha Algeria',\n 'ars' => 'Kiarabu cha Najdi',\n 'arz' => 'Kiarabu cha Misri',\n 'as' => 'Kiassam',\n 'asa' => 'Kiasu',\n 'ast' => 'Kiasturia',\n 'atj' => 'Kiatikamekw',\n 'av' => 'Kiavari',\n 'awa' => 'Kiaw", "suffix": "Kighomala',\n 'be' => 'Kibelarusi',\n 'bej' => 'Kibeja',\n 'bem' => 'Kibemba',\n 'bez' => 'Kibena',\n 'bfd' => 'Kibafut',\n 'bg' => 'Kibulgaria',\n 'bgc' => 'Kiharyanvi',\n 'bgn' => 'Kibalochi cha Magharibi',", "middle": "adhi',\n 'ay' => 'Kiaymara',\n 'az' => 'Kiazerbaijani',\n 'ba' => 'Kibashkiri',\n 'bal' => 'Kibaluchi',\n 'ban' => 'Kibali',\n 'bas' => 'Kibasaa',\n 'bax' => 'Kibamun',\n 'bbj' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sw.php", "language": "php", "file_size": 14818, "cut_index": 921, "middle_length": 229}} {"prefix": "?php\n\nreturn [\n 'Names' => [\n 'ak' => 'Kiakan',\n 'arq' => 'Kiarabu cha Aljeria',\n 'az' => 'Kiazabajani',\n 'gv' => 'Kimanksi',\n 'gwi' => 'Kigwichiin',\n 'hup' => 'Kihupa',\n 'jbo' => 'Kilojban',\n 'kac' => 'Kikachin',\n 'kkj' => 'Kikako',\n 'koi' => 'Kikomipermyak',\n 'kru' => 'Kikurukh',\n 'kum' => 'Kikumyk',\n 'ky' => 'Kikirigizi',\n 'lam' => 'Kilamba',\n 'li' => 'Kilimburgi',\n 'mdf' => 'Kimoksha',\n ", "suffix": "Kikiiche',\n 'shu' => 'Kiarabu cha Chadi',\n 'srn' => 'Kitongo cha Sranan',\n 'swb' => 'Kikomoro',\n 'syr' => 'Kisiria',\n 'udm' => 'Kiudumurti',\n 'yi' => 'Kiyidi',\n ],\n 'LocalizedNames' => [\n 'ar_001' => '", "middle": " 'mic' => 'Kimikmaki',\n 'mk' => 'Kimasedonia',\n 'moh' => 'Kimohoki',\n 'mos' => 'Kimossi',\n 'nnh' => 'Kingiemboon',\n 'nqo' => 'Kiinko',\n 'pcm' => 'Pijini ya Nijeria',\n 'quc' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sw_CD.php", "language": "php", "file_size": 1046, "cut_index": 513, "middle_length": 229}} {"prefix": "Aljeria',\n 'atj' => 'Kiatikameku',\n 'az' => 'Kiazabaijani',\n 'ban' => 'Kibalini',\n 'bho' => 'Kibojpuri',\n 'bn' => 'Kibangla',\n 'ce' => 'Kichechen',\n 'ceb' => 'Kisebuano',\n 'ch' => 'Kichamoro',\n 'chk' => 'Kichuuki',\n 'chr' => 'Kicheroki',\n 'ckb' => 'Kikurdi cha Kati',\n 'clc' => 'Kichilkotini',\n 'crg' => 'Kimichif',\n 'crk' => 'Kikrii cha Chini',\n 'crm' => 'Kimoosekrii',\n 'crr' => 'Kialgiki cha Carol", "suffix": " Kaskazini',\n 'fur' => 'Kifriuli',\n 'fy' => 'Kifrisi cha Magharibi',\n 'gaa' => 'Kiga',\n 'gez' => 'Kigiiz',\n 'gil' => 'Kigilbert',\n 'grc' => 'Kigiriki cha Kale',\n 'gv' => 'Kimaniksi',\n 'gwi' => 'Kigwic", "middle": "ina',\n 'csw' => 'Kikrii cha Kinamasi',\n 'cu' => 'Kislovakia cha Kanisa la Jadi',\n 'cy' => 'Kiwels',\n 'dje' => 'Kizama',\n 'ff' => 'Kifula',\n 'fo' => 'Kifaro',\n 'frr' => 'Kifrisi cha", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sw_KE.php", "language": "php", "file_size": 4952, "cut_index": 614, "middle_length": 229}} {"prefix": "kk' => 'அக்கேதியன்',\n 'ale' => 'அலூட்',\n 'alt' => 'தெற்கு அல்தை',\n 'am' => 'அம்ஹாரிக்',\n 'an' => 'ஆர்கோனீஸ்',\n 'ang' => 'பழைய ஆங்கிலம்',\n 'ann' => 'ஒபோலோ',\n 'anp' => 'அங்கிகா',\n 'ar' => 'அரபிக்',\n 'arc' => 'அராமைக்',\n 'arn' => 'மபுச்சே',\n 'arp' => 'அரபஹோ',\n 'ars' => 'நஜ்தி அரபிக்',\n 'arw' => 'அராவாக்',\n 'as' => 'அஸ்ஸாமீஸ்',\n 'asa' => 'அசு',\n 'ast' => 'அஸ்துரியன்',\n 'atj' => 'அடிகாமேக்வ்',\n ", "suffix": "> 'பெலாருஷியன்',\n 'bej' => 'பேஜா',\n 'bem' => 'பெம்பா',\n 'bez' => 'பெனா',\n 'bfq' => 'படகா',\n 'bg' => 'பல்கேரியன்',\n 'bgc' => 'ஹரியான்வி',\n 'bgn' => 'மேற்கு பலோச்சி',\n 'bho' => 'போஜ்பூரி',\n 'bi' ", "middle": " 'av' => 'அவேரிக்',\n 'awa' => 'அவதி',\n 'ay' => 'அய்மரா',\n 'az' => 'அசர்பைஜானி',\n 'ba' => 'பஷ்கிர்',\n 'bal' => 'பலூச்சி',\n 'ban' => 'பலினீஸ்',\n 'bas' => 'பாஸா',\n 'be' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ta.php", "language": "php", "file_size": 26302, "cut_index": 921, "middle_length": 229}} {"prefix": " 'akk' => 'అక్కాడియాన్',\n 'ale' => 'అలియుట్',\n 'alt' => 'దక్షిణ ఆల్టై',\n 'am' => 'అమ్హారిక్',\n 'an' => 'అరగోనిస్',\n 'ang' => 'ప్రాచీన ఆంగ్లం',\n 'ann' => 'ఒబోలో',\n 'anp' => 'ఆంగిక',\n 'ar' => 'అరబిక్',\n 'arc' => 'అరామైక్',\n 'arn' => 'మపుచే',\n 'arp' => 'అరాపాహో',\n 'ars' => 'నజ్ది అరబిక్',\n 'arw' => 'అరావాక్',\n 'arz' => 'ఈజిప్షియన్ అరబిక్',\n 'as' => 'అస్సామీస్',\n 'asa' => 'అసు',\n 'ast' => 'ఆస్ట", "suffix": "\n 'bas' => 'బసా',\n 'be' => 'బెలారుషియన్',\n 'bej' => 'బేజా',\n 'bem' => 'బెంబా',\n 'bez' => 'బెనా',\n 'bg' => 'బల్గేరియన్',\n 'bgc' => 'హర్యాన్వి',\n 'bgn' => 'పశ్చిమ బలూచీ',\n 'bho' => 'భోజ్‌పురి',\n ", "middle": "ూరియన్',\n 'atj' => 'అతికామెక్వ',\n 'av' => 'అవారిక్',\n 'awa' => 'అవధి',\n 'ay' => 'ఐమారా',\n 'az' => 'అజర్బైజాని',\n 'ba' => 'బాష్కిర్',\n 'bal' => 'బలూచి',\n 'ban' => 'బాలినీస్',", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/te.php", "language": "php", "file_size": 25753, "cut_index": 921, "middle_length": 229}} {"prefix": "> 'арабӣ',\n 'as' => 'ассомӣ',\n 'az' => 'озарбойҷонӣ',\n 'ba' => 'бошқирдӣ',\n 'ban' => 'балинӣ',\n 'be' => 'белорусӣ',\n 'bem' => 'бемба',\n 'bg' => 'булғорӣ',\n 'bn' => 'бинғолӣ',\n 'bo' => 'тибетӣ',\n 'br' => 'бретонӣ',\n 'bs' => 'босниягӣ',\n 'ca' => 'каталонӣ',\n 'ceb' => 'себуано',\n 'cgg' => 'Чига',\n 'chm' => 'марӣ',\n 'chr' => 'черокӣ',\n 'ckb' => 'курдии марказӣ',\n 'co' => 'корсиканӣ',\n ", "suffix": "глисӣ',\n 'eo' => 'эсперанто',\n 'es' => 'испанӣ',\n 'et' => 'эстонӣ',\n 'eu' => 'баскӣ',\n 'fa' => 'форсӣ',\n 'ff' => 'фулаҳ',\n 'fi' => 'финӣ',\n 'fil' => 'филиппинӣ',\n 'fo' => 'фарерӣ',\n 'fr'", "middle": " 'cs' => 'чехӣ',\n 'cy' => 'валлӣ',\n 'da' => 'даниягӣ',\n 'de' => 'немисӣ',\n 'dsb' => 'сербии поёнӣ',\n 'dv' => 'дивеҳӣ',\n 'dz' => 'дзонгха',\n 'el' => 'юнонӣ',\n 'en' => 'ан", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/tg.php", "language": "php", "file_size": 6094, "cut_index": 614, "middle_length": 229}} {"prefix": "ฮ',\n 'arq' => 'อาหรับแอลจีเรีย',\n 'ars' => 'อาหรับนัจญ์ดี',\n 'arw' => 'อาราวัก',\n 'ary' => 'อาหรับโมร็อกโก',\n 'arz' => 'อาหรับพื้นเมืองอียิปต์',\n 'as' => 'อัสสัม',\n 'asa' => 'อาซู',\n 'ase' => 'ภาษามืออเมริกัน',\n 'ast' => 'อัสตูเรียส',\n 'atj' => 'อะทิคาเมก',\n 'av' => 'อาวาร์',\n 'avk' => 'โคตาวา',\n 'awa' => 'อวธี',\n 'ay' => 'ไอย์มารา',\n 'az' => 'อาเซอร์ไบจาน',\n 'ba' => 'บัชคีร์',\n 'bal' => 'บ", "suffix": " 'bem' => 'เบมบา',\n 'bew' => 'เบตาวี',\n 'bez' => 'เบนา',\n 'bfd' => 'บาฟัต',\n 'bfq' => 'พทคะ',\n 'bg' => 'บัลแกเรีย',\n 'bgc' => 'หริยนวี',\n 'bgn' => 'บาลูจิตะวันตก',\n 'bho' => 'โภชปุรี',\n 'bi' =", "middle": "าลูชิ',\n 'ban' => 'บาหลี',\n 'bar' => 'บาวาเรีย',\n 'bas' => 'บาสา',\n 'bax' => 'บามัน',\n 'bbc' => 'บาตักโทบา',\n 'bbj' => 'โคมาลา',\n 'be' => 'เบลารุส',\n 'bej' => 'เบจา',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/th.php", "language": "php", "file_size": 28612, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'apc' => 'ሌቫንቲናዊ ዓረብኛ',\n 'ar' => 'ዓረብኛ',\n 'arn' => 'ማፑቺ',\n 'arp' => 'ኣራፓሆ',\n 'ars' => 'ናጅዲ ዓረብኛ',\n 'as' => 'ኣሳሜዝኛ',\n 'asa' => 'ኣሱ',\n 'ast' => 'ኣስቱርኛ',\n 'atj' => 'ኣቲካመክ',\n 'av' => 'ኣቫርኛ',\n 'awa' => 'ኣዋዲ',\n 'ay' => 'ኣይማራ',\n 'az' => 'ኣዘርባጃንኛ',\n 'ba' => 'ባሽኪር',\n 'bal' => 'ባሉቺ',\n 'ban' => 'ባሊንኛ',\n 'bas' => 'ባሳ',\n 'be' => 'ቤላሩስኛ',\n 'bem' => 'ቤምባ',\n 'bew' => 'ቤታዊ',\n 'b", "suffix": "> 'ታይ ዳም',\n 'bm' => 'ባምባራ',\n 'bn' => 'በንጋሊ',\n 'bo' => 'ቲበታንኛ',\n 'bqi' => 'ባኽትያሪ',\n 'br' => 'ብረቶንኛ',\n 'brx' => 'ቦዶ',\n 'bs' => 'ቦዝንኛ',\n 'bss' => 'ኣኮስ',\n 'bua' => 'ቡርያትኛ',\n 'bug' => 'ቡጊንኛ',", "middle": "ez' => 'በና',\n 'bg' => 'ቡልጋርኛ',\n 'bgc' => 'ሃርያንቪ',\n 'bgn' => 'ምዕራባዊ ባሎቺ',\n 'bho' => 'ቦጅፑሪ',\n 'bi' => 'ቢስላማ',\n 'bin' => 'ቢኒ',\n 'bla' => 'ሲክሲካ',\n 'blo' => 'ኣኒ',\n 'blt' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ti.php", "language": "php", "file_size": 16667, "cut_index": 921, "middle_length": 229}} {"prefix": " 'an' => 'aragon dili',\n 'ann' => 'obolo dili',\n 'anp' => 'angika dili',\n 'ar' => 'arap dili',\n 'arn' => 'mapuçe dili',\n 'arp' => 'arapaho dili',\n 'ars' => 'nejdi arap dili',\n 'as' => 'assam dili',\n 'asa' => 'asu dili',\n 'ast' => 'asturiý dili',\n 'atj' => 'atikamekw dili',\n 'av' => 'awar dili',\n 'awa' => 'awadhi dili',\n 'ay' => 'aýmara dili',\n 'az' => 'azerbaýjan dili',\n 'ba' => 'başgyrt dili',\n ", "suffix": "=> 'harýanwi dili',\n 'bho' => 'bhojpuri dili',\n 'bi' => 'bislama dili',\n 'bin' => 'bini dili',\n 'bla' => 'siksika dili',\n 'blo' => 'blo dili',\n 'bm' => 'bamana',\n 'bn' => 'bengal dili',\n 'bo' => 'tibe", "middle": " 'bal' => 'buluç dili',\n 'ban' => 'baliý dili',\n 'bas' => 'basaa dili',\n 'be' => 'belarus dili',\n 'bem' => 'bemba dili',\n 'bez' => 'bena dili',\n 'bg' => 'bolgar dili',\n 'bgc' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/tk.php", "language": "php", "file_size": 14606, "cut_index": 921, "middle_length": 229}} {"prefix": "onese',\n 'ann' => 'Obolo',\n 'anp' => 'Angika',\n 'ar' => 'Arabic',\n 'arn' => 'Mapuche',\n 'arp' => 'Arapaho',\n 'ars' => 'Najdi Arabic',\n 'as' => 'Assamese',\n 'asa' => 'Asu',\n 'ast' => 'Asturian',\n 'atj' => 'Atikamekw',\n 'av' => 'Avaric',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Azerbaijani',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluchi',\n 'ban' => 'Balinese',\n 'bas' => 'Basaa',\n ", "suffix": " 'bin' => 'Bini',\n 'bla' => 'Siksika',\n 'blo' => 'Anii',\n 'bm' => 'Bambara',\n 'bn' => 'Bangla',\n 'bo' => 'Tibetan',\n 'br' => 'Breton',\n 'brx' => 'Bodo',\n 'bs' => 'Bosnian',\n 'bug' => 'Bug", "middle": " 'be' => 'Belarusian',\n 'bem' => 'Bemba',\n 'bez' => 'Bena',\n 'bg' => 'Bulgarian',\n 'bgc' => 'Haryanvi',\n 'bgn' => 'Kanlurang Balochi',\n 'bho' => 'Bhojpuri',\n 'bi' => 'Bislama',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/tl.php", "language": "php", "file_size": 12937, "cut_index": 921, "middle_length": 229}} {"prefix": "\n 'ann' => 'lea fakaʻopolo',\n 'anp' => 'lea fakaʻangika',\n 'ar' => 'lea fakaʻalepea',\n 'arc' => 'lea fakaʻalāmiti',\n 'arn' => 'lea fakamapuse',\n 'aro' => 'lea fakaʻalaona',\n 'arp' => 'lea fakaʻalapaho',\n 'arq' => 'lea fakaʻalepea-ʻaisilia',\n 'ars' => 'lea fakaʻalepea-nāsiti',\n 'arw' => 'lea fakaʻalauaki',\n 'ary' => 'lea fakaʻalepea-moloko',\n 'arz' => 'lea fakaʻalepea-ʻisipite',\n 'as' => 'lea fakaʻasamia',\n 'asa", "suffix": "> 'lea fakaʻauati',\n 'ay' => 'lea fakaʻaimala',\n 'az' => 'lea fakaʻasepaisani',\n 'ba' => 'lea fakapasikili',\n 'bal' => 'lea fakapalusi',\n 'ban' => 'lea fakapali',\n 'bar' => 'lea fakapavālia',\n 'bas' => 'lea ", "middle": "' => 'lea fakaʻasu',\n 'ase' => 'lea fakaʻilonga-ʻamelika',\n 'ast' => 'lea fakaʻasitūlia',\n 'atj' => 'lea fakaʻatikameku',\n 'av' => 'lea fakaʻavaliki',\n 'avk' => 'lea fakakotava',\n 'awa' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/to.php", "language": "php", "file_size": 24535, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'arp' => 'Arapaho dili',\n 'arq' => 'Cezayir Arapçası',\n 'ars' => 'Necd Arapçası',\n 'arw' => 'Arawak Dili',\n 'ary' => 'Fas Arapçası',\n 'arz' => 'Mısır Arapçası',\n 'as' => 'Assamca',\n 'asa' => 'Asu',\n 'ase' => 'Amerikan İşaret Dili',\n 'ast' => 'Asturyasça',\n 'atj' => 'Atikamekçe',\n 'av' => 'Avar dili',\n 'avk' => 'Kotava',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Azerbaycan dili',\n 'ba' => ", "suffix": "e' => 'Belarusça',\n 'bej' => 'Beja dili',\n 'bem' => 'Bemba',\n 'bew' => 'Betawi',\n 'bez' => 'Bena',\n 'bfd' => 'Bafut',\n 'bfq' => 'Badaga',\n 'bg' => 'Bulgarca',\n 'bgc' => 'Haryanvi dili',\n 'bgn' ", "middle": "'Başkırtça',\n 'bal' => 'Beluçça',\n 'ban' => 'Bali dili',\n 'bar' => 'Bavyera dili',\n 'bas' => 'Basa Dili',\n 'bax' => 'Bamun',\n 'bbc' => 'Batak Toba',\n 'bbj' => 'Ghomala',\n 'b", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/tr.php", "language": "php", "file_size": 20132, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'гарәпчә',\n 'arn' => 'мапуче',\n 'as' => 'ассам',\n 'az' => 'әзәрбайҗан',\n 'ba' => 'башкорт',\n 'ban' => 'бали',\n 'be' => 'белорус',\n 'bem' => 'бемба',\n 'bg' => 'болгар',\n 'bn' => 'бенгалча',\n 'bo' => 'тибет',\n 'br' => 'бретон',\n 'bs' => 'босния',\n 'ca' => 'каталан',\n 'ceb' => 'себуано',\n 'chm' => 'мари',\n 'chr' => 'чероки',\n 'ckb' => 'үзәк көрд',\n 'co' => 'корсика',\n 'cs' => 'ч", "suffix": " => 'эсперанто',\n 'es' => 'испан',\n 'et' => 'эстон',\n 'eu' => 'баск',\n 'fa' => 'фарсы',\n 'ff' => 'фула',\n 'fi' => 'фин',\n 'fil' => 'филиппин',\n 'fo' => 'фарер',\n 'fr' => 'француз',\n 'ga'", "middle": "ех',\n 'cy' => 'уэльс',\n 'da' => 'дания',\n 'de' => 'алман',\n 'dsb' => 'түбән сорб',\n 'dv' => 'мальдив',\n 'dz' => 'дзонг-кха',\n 'el' => 'грек',\n 'en' => 'инглиз',\n 'eo'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/tt.php", "language": "php", "file_size": 5432, "cut_index": 614, "middle_length": 229}} {"prefix": " 'ale' => 'ئالېيۇتچە',\n 'alt' => 'جەنۇبى ئالتاي تىللىرى',\n 'am' => 'ئامھارچە',\n 'an' => 'ئاراگونچە',\n 'ang' => 'قەدىمكى ئىنگلىزچە',\n 'anp' => 'ئانگىكاچە',\n 'ar' => 'ئەرەبچە',\n 'arc' => 'ئارامۇچە',\n 'arn' => 'ماپۇدۇنگۇنچە',\n 'arp' => 'ئاراپاخوچە',\n 'arw' => 'ئاراۋاكچە',\n 'as' => 'ئاسامچە',\n 'asa' => 'ئاسۇچە',\n 'ast' => 'ئاستۇرىيەچە',\n 'av' => 'ئاۋارچە',\n 'awa' => 'ئاۋادىچە',\n 'ay' => 'ئايمارا", "suffix": "ۇسچە',\n 'bej' => 'بېجاچە',\n 'bem' => 'بېمباچە',\n 'bez' => 'بېناچە',\n 'bfd' => 'بافۇتچە',\n 'bg' => 'بۇلغارچە',\n 'bho' => 'بوجپۇرىچە',\n 'bi' => 'بىسلاماچە',\n 'bik' => 'بىكولچە',\n 'bin' => 'بىنىچە", "middle": "چە',\n 'az' => 'ئەزەربەيجانچە',\n 'ba' => 'باشقىرتچە',\n 'bal' => 'بېلۇجىچە',\n 'ban' => 'بالىچە',\n 'bas' => 'باساچە',\n 'bax' => 'بامۇنچە',\n 'bbj' => 'گومالاچە',\n 'be' => 'بېلار", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ug.php", "language": "php", "file_size": 19692, "cut_index": 921, "middle_length": 229}} {"prefix": "kz' => 'алабама',\n 'ale' => 'алеутська',\n 'alt' => 'південноалтайська',\n 'am' => 'амхарська',\n 'an' => 'арагонська',\n 'ang' => 'давньоанглійська',\n 'ann' => 'оболо',\n 'anp' => 'ангіка',\n 'ar' => 'арабська',\n 'arc' => 'арамейська',\n 'arn' => 'арауканська',\n 'aro' => 'араона',\n 'arp' => 'арапахо',\n 'arq' => 'алжирська арабська',\n 'ars' => 'надждійська арабська',\n 'arw' => 'аравакська',\n 'as' => 'асс", "suffix": "z' => 'азербайджанська',\n 'ba' => 'башкирська',\n 'bal' => 'балучі',\n 'ban' => 'балійська',\n 'bar' => 'баеріш',\n 'bas' => 'баса',\n 'bax' => 'бамум',\n 'bbc' => 'батак тоба',\n 'bbj' => 'гомала',\n ", "middle": "амська',\n 'asa' => 'асу',\n 'ase' => 'американська мова рухів',\n 'ast' => 'астурійська',\n 'atj' => 'атикамек',\n 'av' => 'аварська',\n 'awa' => 'авадхі',\n 'ay' => 'аймара',\n 'a", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/uk.php", "language": "php", "file_size": 22357, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ann' => 'اوبولو',\n 'anp' => 'انگیکا',\n 'ar' => 'عربی',\n 'arn' => 'ماپوچے',\n 'arp' => 'اراپاہو',\n 'ars' => 'نجدی عربی',\n 'as' => 'آسامی',\n 'asa' => 'آسو',\n 'ast' => 'اسٹوریائی',\n 'atj' => 'اٹیکامیکو',\n 'av' => 'اواری',\n 'awa' => 'اوادھی',\n 'ay' => 'ایمارا',\n 'az' => 'آذربائیجانی',\n 'ba' => 'باشکیر',\n 'bal' => 'بلوچی',\n 'ban' => 'بالینیز',\n 'bas' => 'باسا',\n 'be' => 'بیلاروسی',\n", "suffix": "' => 'سکسیکا',\n 'blo' => 'عانی',\n 'bm' => 'بمبارا',\n 'bn' => 'بنگلہ',\n 'bo' => 'تبتی',\n 'br' => 'بریٹن',\n 'brx' => 'بوڈو',\n 'bs' => 'بوسنیائی',\n 'bug' => 'بگینیز',\n 'byn' => 'بلین',\n 'ca", "middle": " 'bem' => 'بیمبا',\n 'bez' => 'بینا',\n 'bg' => 'بلغاری',\n 'bgc' => 'ہریانوی',\n 'bgn' => 'مغربی بلوچی',\n 'bho' => 'بھوجپوری',\n 'bi' => 'بسلاما',\n 'bin' => 'بینی',\n 'bla", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ur.php", "language": "php", "file_size": 15899, "cut_index": 921, "middle_length": 229}} {"prefix": "iscirt',\n 'am' => 'Amáiris',\n 'an' => 'Aragóinis',\n 'ang' => 'Sean-Bhéarla',\n 'ann' => 'Obolo',\n 'anp' => 'Aingícis',\n 'ar' => 'Araibis',\n 'arc' => 'Aramais',\n 'arn' => 'Mapúitsis',\n 'arp' => 'Arapachóis',\n 'ars' => 'Araibis Najdi',\n 'as' => 'Asaimis',\n 'asa' => 'Asúis',\n 'ast' => 'Astúiris',\n 'atj' => 'Atikamekw',\n 'av' => 'Aváiris',\n 'awa' => 'Avaidis',\n 'ay' => 'Aidhmiris',\n 'az' ", "suffix": " 'bez' => 'Beinis',\n 'bg' => 'Bulgáiris',\n 'bgc' => 'Haryanvi',\n 'bho' => 'Vóispiris',\n 'bi' => 'Bioslaimis',\n 'bin' => 'Binis',\n 'bla' => 'Sicsicis',\n 'blo' => 'Anii',\n 'bm' => 'Bambairis',\n '", "middle": "=> 'Asarbaiseáinis',\n 'ba' => 'Baiscíris',\n 'bal' => 'Balúitsis',\n 'ban' => 'Bailís',\n 'bar' => 'Baváiris',\n 'bas' => 'Basáis',\n 'be' => 'Bealarúisis',\n 'bem' => 'Beimbis',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ga.php", "language": "php", "file_size": 15494, "cut_index": 921, "middle_length": 229}} {"prefix": "=> 'aleutski',\n 'alt' => 'južni altai',\n 'am' => 'amharski',\n 'an' => 'aragonski',\n 'ang' => 'staroengleski',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'arapski',\n 'arc' => 'aramejski',\n 'arn' => 'mapuche',\n 'arp' => 'arapaho',\n 'ars' => 'najdi arapski',\n 'arw' => 'aravački',\n 'as' => 'asamski',\n 'asa' => 'asu',\n 'ast' => 'asturijski',\n 'atj' => 'atikamekw',\n 'av' => 'avarski',\n ", "suffix": " 'bbj' => 'ghomala',\n 'be' => 'bjeloruski',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bg' => 'bugarski',\n 'bgc' => 'haryanvi',\n 'bgn' => 'zapadnobaludžijski',\n ", "middle": " 'awa' => 'awadhi',\n 'ay' => 'ajmarski',\n 'az' => 'azerbajdžanski',\n 'ba' => 'baškirski',\n 'bal' => 'belučki',\n 'ban' => 'balijski',\n 'bas' => 'basa',\n 'bax' => 'bamunski',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/hr.php", "language": "php", "file_size": 17101, "cut_index": 921, "middle_length": 229}} {"prefix": "'obolo',\n 'anp' => 'angika',\n 'apc' => 'arabe levantin',\n 'ar' => 'arabe',\n 'arn' => 'mapuche',\n 'arp' => 'arapaho',\n 'ars' => 'arabe najdi',\n 'as' => 'assamese',\n 'asa' => 'asu',\n 'ast' => 'asturiano',\n 'atj' => 'atikamekw',\n 'av' => 'avaro',\n 'awa' => 'awadhi',\n 'ay' => 'aymara',\n 'az' => 'azerbaidzhano',\n 'ba' => 'bashkir',\n 'bal' => 'baluchi',\n 'ban' => 'balinese',\n 'bas' => 'bas", "suffix": "jpuri',\n 'bi' => 'bislama',\n 'bin' => 'bini',\n 'bla' => 'siksika',\n 'blo' => 'anii',\n 'blt' => 'tai dam',\n 'bm' => 'bambara',\n 'bn' => 'bengalese',\n 'bo' => 'tibetano',\n 'bqi' => 'bakhtiari',\n ", "middle": "aa',\n 'be' => 'bielorusso',\n 'bem' => 'bemba',\n 'bew' => 'betawi',\n 'bez' => 'bena',\n 'bg' => 'bulgaro',\n 'bgc' => 'haryanvi',\n 'bgn' => 'baluchi occidental',\n 'bho' => 'bho", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ia.php", "language": "php", "file_size": 13440, "cut_index": 921, "middle_length": 229}} {"prefix": "s' => [\n 'ar' => 'arabic',\n 'cs' => 'tchec',\n 'da' => 'danesi',\n 'de' => 'german',\n 'el' => 'grec',\n 'en' => 'anglesi',\n 'eo' => 'Esperanto',\n 'es' => 'hispan',\n 'et' => 'estonian',\n 'fa' => 'persian',\n 'fi' => 'finn',\n 'fil' => 'filipinesi',\n 'fr' => 'francesi',\n 'ga' => 'irlandesi',\n 'gl' => 'galician',\n 'ha' => 'hausa',\n 'he' => 'hebreic',\n 'hi' => 'hindi',\n 'hu' => 'hungar", "suffix": "ian',\n 'ko' => 'korean',\n 'lij' => 'ligurian',\n 'lv' => 'lettonian',\n 'mt' => 'maltesi',\n 'nl' => 'hollandesi',\n 'pl' => 'polonesi',\n 'prg' => 'prussian',\n 'pt' => 'portugalesi',\n 'ru' => 'russ", "middle": "ian',\n 'ia' => 'Interlingua',\n 'id' => 'indonesian',\n 'ie' => 'Interlingue',\n 'is' => 'islandesi',\n 'it' => 'italian',\n 'ja' => 'japanesi',\n 'jv' => 'javan',\n 'ka' => 'georg", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ie.php", "language": "php", "file_size": 1890, "cut_index": 537, "middle_length": 229}} {"prefix": "akz' => 'アラバマ語',\n 'ale' => 'アレウト語',\n 'aln' => 'ゲグ・アルバニア語',\n 'alt' => '南アルタイ語',\n 'am' => 'アムハラ語',\n 'an' => 'アラゴン語',\n 'ang' => '古英語',\n 'ann' => 'オボロ語',\n 'anp' => 'アンギカ語',\n 'ar' => 'アラビア語',\n 'arc' => 'アラム語',\n 'arn' => 'マプチェ語',\n 'aro' => 'アラオナ語',\n 'arp' => 'アラパホー語',\n 'arq' => 'アルジェリア・アラビア語',\n 'ars' => 'ナジュド地方・アラビア語',\n 'arw' => 'アラワク語',\n 'ary' => 'モロッコ・アラビア語',\n 'arz' => 'エジプト・アラビア語',\n ", "suffix": ",\n 'az' => 'アゼルバイジャン語',\n 'ba' => 'バシキール語',\n 'bal' => 'バルーチー語',\n 'ban' => 'バリ語',\n 'bar' => 'バイエルン・オーストリア語',\n 'bas' => 'バサ語',\n 'bax' => 'バムン語',\n 'bbc' => 'トバ・バタク語',\n 'bbj' => 'ゴーマラ語',\n 'be", "middle": " 'as' => 'アッサム語',\n 'asa' => 'アス語',\n 'ase' => 'アメリカ手話',\n 'ast' => 'アストゥリアス語',\n 'atj' => 'アティカメク語',\n 'av' => 'アヴァル語',\n 'avk' => 'コタヴァ',\n 'awa' => 'アワディー語',\n 'ay' => 'アイマラ語'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ja.php", "language": "php", "file_size": 24412, "cut_index": 921, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'Kiakan',\n 'am' => 'Kiamhari',\n 'ar' => 'Kĩarabu',\n 'be' => 'Kibelarusi',\n 'bg' => 'Kibulgaria',\n 'bn' => 'Kibangla',\n 'cs' => 'Kichecki',\n 'de' => 'Kĩnjeremani',\n 'el' => 'Kigiriki',\n 'en' => 'Gĩthungũ',\n 'es' => 'Kihispania',\n 'fa' => 'Kiajemi',\n 'fr' => 'Kĩbaranja',\n 'ha' => 'Kihausa',\n 'hi' => 'Kĩhĩndĩ',\n 'hu' => 'Kihungari',\n 'id' => 'Kiindonesia',\n ", "suffix": "> 'Kiburma',\n 'ne' => 'Kinepali',\n 'nl' => 'Kiholanzi',\n 'pa' => 'Kipunjabi',\n 'pl' => 'Kipolandi',\n 'pt' => 'Kireno',\n 'ro' => 'Kiromania',\n 'ru' => 'Kĩracia',\n 'rw' => 'Kinyarwanda',\n 'so' =>", "middle": " 'ig' => 'Kiigbo',\n 'it' => 'Kĩtaliano',\n 'ja' => 'Kĩnjabani',\n 'jv' => 'Kijava',\n 'ki' => 'Gikuyu',\n 'km' => 'Kikambodia',\n 'ko' => 'Kikorea',\n 'ms' => 'Kimalesia',\n 'my' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ki.php", "language": "php", "file_size": 1353, "cut_index": 524, "middle_length": 229}} {"prefix": "бхазаг',\n 'ady' => 'адыгейаг',\n 'ae' => 'авестӕ',\n 'af' => 'африкаанс',\n 'ang' => 'рагон англисаг',\n 'ar' => 'араббаг',\n 'av' => 'авайраг',\n 'az' => 'тӕтӕйраг',\n 'ba' => 'башкираг',\n 'bg' => 'болгайраг',\n 'bs' => 'босниаг',\n 'bua' => 'бурятаг',\n 'ca' => 'каталайнаг',\n 'ce' => 'цӕцӕйнаг',\n 'cop' => 'коптаг',\n 'cs' => 'чехаг',\n 'cv' => 'чувашаг',\n 'da' => 'даниаг',\n 'de' => 'немыцаг',\n", "suffix": "',\n 'fi' => 'финнаг',\n 'fil' => 'филиппинаг',\n 'fj' => 'фиджи',\n 'fo' => 'фарераг',\n 'fr' => 'францаг',\n 'fro' => 'рагон францаг',\n 'ga' => 'ирландиаг',\n 'grc' => 'рагон бердзейнаг',\n 'he' => '", "middle": " 'egy' => 'рагон египтаг',\n 'el' => 'бердзейнаг',\n 'en' => 'англисаг',\n 'eo' => 'есперанто',\n 'es' => 'испайнаг',\n 'et' => 'естойнаг',\n 'eu' => 'баскаг',\n 'fa' => 'персайнаг", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/os.php", "language": "php", "file_size": 2906, "cut_index": 563, "middle_length": 229}} {"prefix": " 'ang' => 'ਪੁਰਾਣੀ ਅੰਗਰੇਜ਼ੀ',\n 'ann' => 'ਓਬੋਲੋ',\n 'anp' => 'ਅੰਗਿਕਾ',\n 'ar' => 'ਅਰਬੀ',\n 'arn' => 'ਮਾਪੁਚੇ',\n 'arp' => 'ਅਰਾਫਾਓ',\n 'ars' => 'ਨਾਜਦੀ ਅਰਬੀ',\n 'as' => 'ਅਸਾਮੀ',\n 'asa' => 'ਅਸੂ',\n 'ast' => 'ਅਸਤੂਰੀ',\n 'atj' => 'ਅਤਿਕਾਮੇਕਵ',\n 'av' => 'ਅਵਾਰਿਕ',\n 'awa' => 'ਅਵਧੀ',\n 'ay' => 'ਅਈਮਾਰਾ',\n 'az' => 'ਅਜ਼ਰਬਾਈਜਾਨੀ',\n 'ba' => 'ਬਸ਼ਕੀਰ',\n 'bal' => 'ਬਲੋਚੀ',\n 'ban' => 'ਬਾਲੀਨੀਜ਼',\n 'bas' => 'ਬਾਸਾ", "suffix": " 'bin' => 'ਬਿਨੀ',\n 'bla' => 'ਸਿਕਸਿਕਾ',\n 'blo' => 'ਅਨੀ',\n 'bm' => 'ਬੰਬਾਰਾ',\n 'bn' => 'ਬੰਗਾਲੀ',\n 'bo' => 'ਤਿੱਬਤੀ',\n 'br' => 'ਬਰੇਟਨ',\n 'brx' => 'ਬੋਡੋ',\n 'bs' => 'ਬੋਸਨੀਆਈ',\n 'bug' => 'ਬਗਨੀਜ਼',\n", "middle": "',\n 'be' => 'ਬੇਲਾਰੂਸੀ',\n 'bem' => 'ਬੇਂਬਾ',\n 'bez' => 'ਬੇਨਾ',\n 'bg' => 'ਬੁਲਗਾਰੀਆਈ',\n 'bgc' => 'ਹਰਿਆਣਵੀ',\n 'bgn' => 'ਪੱਛਮੀ ਬਲੂਚੀ',\n 'bho' => 'ਭੋਜਪੁਰੀ',\n 'bi' => 'ਬਿਸਲਾਮਾ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/pa.php", "language": "php", "file_size": 19182, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => 'altai meridional',\n 'am' => 'amárico',\n 'an' => 'aragonês',\n 'ang' => 'inglês arcaico',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'árabe',\n 'arc' => 'aramaico',\n 'arn' => 'mapudungun',\n 'arp' => 'arapaho',\n 'ars' => 'árabe négede',\n 'arw' => 'arauaqui',\n 'as' => 'assamês',\n 'asa' => 'asu',\n 'ast' => 'asturiano',\n 'atj' => 'atikamekw',\n 'av' => 'avárico',\n 'awa' => 'aw", "suffix": " 'be' => 'bielorrusso',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bg' => 'búlgaro',\n 'bgc' => 'hariani',\n 'bgn' => 'balúchi ocidental',\n 'bho' => 'bhojpuri',\n ", "middle": "adhi',\n 'ay' => 'aimará',\n 'az' => 'azerbaijano',\n 'ba' => 'bashkir',\n 'bal' => 'balúchi',\n 'ban' => 'balinês',\n 'bas' => 'basa',\n 'bax' => 'bamum',\n 'bbj' => 'ghomala’',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/pt.php", "language": "php", "file_size": 16361, "cut_index": 921, "middle_length": 229}} {"prefix": "o Simi',\n 'anp' => 'Angika',\n 'ar' => 'Arabe Simi',\n 'arn' => 'Mapuche Simi',\n 'arp' => 'Arapaho',\n 'ars' => 'Árabe Najdi Simi',\n 'as' => 'Asames Simi',\n 'asa' => 'Asu Simi',\n 'ast' => 'Asturiano Simi',\n 'atj' => 'Atikamekw',\n 'av' => 'Avaric',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara Simi',\n 'az' => 'Azerbaiyano Simi',\n 'ba' => 'Baskir Simi',\n 'bal' => 'Baluchi Simi',\n 'ban' => 'Balines Simi',\n ", "suffix": "=> 'Bislama',\n 'bin' => 'Bini',\n 'bla' => 'Siksiká Simi',\n 'blo' => 'Anii Simi',\n 'bm' => 'Bambara Simi',\n 'bn' => 'Bangla Simi',\n 'bo' => 'Tibetano Simi',\n 'br' => 'Breton Simi',\n 'brx' => 'Bodo Simi", "middle": " 'bas' => 'Basaa Simi',\n 'be' => 'Bielorruso Simi',\n 'bem' => 'Bemba Simi',\n 'bez' => 'Bena Simi',\n 'bg' => 'Bulgaro Simi',\n 'bgc' => 'Haryanvi',\n 'bho' => 'Bhojpuri Simi',\n 'bi' ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/qu.php", "language": "php", "file_size": 14288, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => 'altaic dal sid',\n 'am' => 'amaric',\n 'an' => 'aragonais',\n 'ang' => 'englais vegl',\n 'anp' => 'angika',\n 'ar' => 'arab',\n 'arc' => 'arameic',\n 'arn' => 'araucanic',\n 'arp' => 'arapaho',\n 'arw' => 'arawak',\n 'as' => 'assami',\n 'asa' => 'asu',\n 'ast' => 'asturian',\n 'av' => 'avaric',\n 'awa' => 'awadhi',\n 'ay' => 'aymara',\n 'az' => 'lingua aserbaidschana',\n 'ba' => 'baschkir'", "suffix": " 'bgc' => 'haryanvi',\n 'bho' => 'bhojpuri',\n 'bi' => 'bislama',\n 'bik' => 'bikol',\n 'bin' => 'bini',\n 'bla' => 'siksika',\n 'blo' => 'anii',\n 'bm' => 'bambara',\n 'bn' => 'lingua bengala',\n ", "middle": ",\n 'bal' => 'belutschi',\n 'ban' => 'balinais',\n 'bas' => 'basaa',\n 'be' => 'lingua bielorussa',\n 'bej' => 'bedscha',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bg' => 'bulgar',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/rm.php", "language": "php", "file_size": 14414, "cut_index": 921, "middle_length": 229}} {"prefix": "ale' => 'алеутский',\n 'alt' => 'южноалтайский',\n 'am' => 'амхарский',\n 'an' => 'арагонский',\n 'ang' => 'староанглийский',\n 'ann' => 'оболо',\n 'anp' => 'ангика',\n 'ar' => 'арабский',\n 'arc' => 'арамейский',\n 'arn' => 'мапуче',\n 'arp' => 'арапахо',\n 'ars' => 'недждийский арабский',\n 'arw' => 'аравакский',\n 'as' => 'ассамский',\n 'asa' => 'асу',\n 'ast' => 'астурийский',\n 'atj' => 'атикамек',\n '", "suffix": " 'bax' => 'бамум',\n 'bbj' => 'гомала',\n 'be' => 'белорусский',\n 'bej' => 'беджа',\n 'bem' => 'бемба',\n 'bez' => 'бена',\n 'bfd' => 'бафут',\n 'bg' => 'болгарский',\n 'bgc' => 'харианви',\n 'bgn' =>", "middle": "av' => 'аварский',\n 'awa' => 'авадхи',\n 'ay' => 'аймара',\n 'az' => 'азербайджанский',\n 'ba' => 'башкирский',\n 'bal' => 'белуджский',\n 'ban' => 'балийский',\n 'bas' => 'баса',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ru.php", "language": "php", "file_size": 22437, "cut_index": 921, "middle_length": 229}} {"prefix": "\nreturn [\n 'Names' => [\n 'ace' => 'अचिनीस्',\n 'ach' => 'अचोलि',\n 'anp' => 'अङ्गिक',\n 'de' => 'जर्मनभाषा:',\n 'en' => 'आङ्ग्लभाषा',\n 'es' => 'स्पेनीय भाषा:',\n 'fr' => 'फ़्रांसदेशीय भाषा:',\n 'it' => 'इटलीदेशीय भाषा:',\n 'ja' => 'सूर्यमूलीय भाषा:',\n 'pt' => 'पुर्तगालदेशीय भाषा:',\n 'ru' => 'रष्यदेशीय भाषा:',\n 'sa' => 'संस्कृत भाषा',\n 'zh' => 'चीनी',\n ],\n 'LocalizedNames' => [\n 'de_AT' => 'ऑस्ट्रियाई जर्मनभाष", "suffix": "ा:',\n 'es_419' => 'लैटिन अमेरिकादेशीय स्पेनीय भाषा:',\n 'es_ES' => 'फिरङ्गिन् स्पेनीय भाषा:',\n 'es_MX' => 'मैक्सिकन स्पेनीय भाषा:',\n 'fr_CA' => 'कनाडादेशः फ़्रांसदेशीय भाषा:',\n 'fr_CH' => 'स्विस फ़्रांसदेशीय भाषा:',\n ", "middle": "ा:',\n 'de_CH' => 'स्विस उच्च जर्मनभाषा:',\n 'en_AU' => 'ऑस्ट्रेलियादेशः आङ्ग्लभाषा',\n 'en_CA' => 'कनाडादेशः आङ्ग्लभाषा',\n 'en_GB' => 'आङ्ग्लदेशीय आङ्ग्लभाषा:',\n 'en_US' => 'अमेरिकादेशीय आङ्ग्लभाष", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sa.php", "language": "php", "file_size": 2085, "cut_index": 518, "middle_length": 229}} {"prefix": " 'anp' => 'انجيڪا',\n 'ar' => 'عربي',\n 'arn' => 'ماپوچي',\n 'arp' => 'اراپائو',\n 'ars' => 'نجدي عربي',\n 'as' => 'آسامي',\n 'asa' => 'اسو',\n 'ast' => 'اسٽورين',\n 'atj' => 'اٽيڪاميڪو',\n 'av' => 'اويرس',\n 'awa' => 'اواڌي',\n 'ay' => 'ایمارا',\n 'az' => 'آزربائيجاني',\n 'ba' => 'ڪينيڊا',\n 'bal' => 'بلوچي',\n 'ban' => 'بالينيس',\n 'bas' => 'باسا',\n 'be' => 'بيلاروسي',\n 'bem' => 'بيمبا',\n ", "suffix": "ا',\n 'bn' => 'بنگلا',\n 'bo' => 'تبيتائي',\n 'br' => 'بريٽن',\n 'brx' => 'بودو',\n 'bs' => 'بوسنيائي',\n 'bug' => 'بگنيز',\n 'byn' => 'بلن',\n 'ca' => 'ڪيٽالان',\n 'cay' => 'ڪايوگا',\n 'ccp' => '", "middle": " 'bez' => 'بينا',\n 'bg' => 'بلغاريائي',\n 'bgc' => 'ھريانوي',\n 'bho' => 'ڀوجپوري',\n 'bi' => 'بسلاما',\n 'bin' => 'بني',\n 'bla' => 'سڪسڪا',\n 'blo' => 'آنيائي',\n 'bm' => 'بمبار", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sd.php", "language": "php", "file_size": 15171, "cut_index": 921, "middle_length": 229}} {"prefix": " 'de' => 'जर्मन',\n 'en' => 'अंगरेज़ी',\n 'es' => 'स्पेनिश',\n 'fr' => 'फ्रेंच',\n 'it' => 'इटालियनु',\n 'ja' => 'जापानी',\n 'pt' => 'पुर्तगाली',\n 'ru' => 'रशियनु',\n 'sd' => 'सिन्धी',\n 'zh' => 'चीनी (तर्जुमे जो द॒स :खास करे, मैन्डरिन चीनी)',\n ],\n 'LocalizedNames' => [\n 'de_AT' => 'आसट्रियन जर्मन',\n 'de_CH' => 'स्विस हाई जर्मन',\n 'en_AU' => 'ऑसटेलियन अंगरेज़ी',\n 'en_CA' => 'केनेडियन अंगरेज़ी',\n 'es_419' => ", "suffix": "स्पैनिश',\n 'es_MX' => 'मेक्सिकन स्पैनिश',\n 'fr_CA' => 'कैनेडियन फ्रेंच',\n 'fr_CH' => 'स्विस फ्रेंच',\n 'pt_BR' => 'ब्राज़ीलियन पुर्तगाली',\n 'pt_PT' => 'यूरोपी पुर्तगाली',\n 'zh_Hans' => 'सादी थियल चीनी',\n 'zh_", "middle": "'लैटिन अमेरिकन स्पैनिश',\n 'es_ES' => 'यूरोपी ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sd_Deva.php", "language": "php", "file_size": 1453, "cut_index": 547, "middle_length": 52}} {"prefix": " 'alt' => 'દક્ષિણ અલ્તાઇ',\n 'am' => 'એમ્હારિક',\n 'an' => 'અર્ગોનીઝ',\n 'ang' => 'જુની અંગ્રેજી',\n 'ann' => 'ઓબોલો',\n 'anp' => 'અંગીકા',\n 'ar' => 'અરબી',\n 'arc' => 'એરમૈક',\n 'arn' => 'મેપુચે',\n 'arp' => 'અરાપાહો',\n 'arq' => 'આલ્જેરિયન અરબી',\n 'ars' => 'નજદી અરેબિક',\n 'arw' => 'અરાવક',\n 'ary' => 'મોરોક્કન અરબી',\n 'arz' => 'ઈજિપ્શિયન અરબી',\n 'as' => 'આસામી',\n 'asa' => 'અસુ',\n 'ast' => 'અસ", "suffix": " 'bas' => 'બસા',\n 'bax' => 'બામન',\n 'be' => 'બેલારુશિયન',\n 'bej' => 'બેજા',\n 'bem' => 'બેમ્બા',\n 'bez' => 'બેના',\n 'bg' => 'બલ્ગેરિયન',\n 'bgc' => 'હરિયાણવી',\n 'bgn' => 'પશ્ચિમી બાલોચી',\n 'b", "middle": "્તુરિયન',\n 'atj' => 'એટીકામેકવ',\n 'av' => 'અવેરિક',\n 'awa' => 'અવધી',\n 'ay' => 'આયમારા',\n 'az' => 'અઝરબૈજાની',\n 'ba' => 'બશ્કીર',\n 'bal' => 'બલૂચી',\n 'ban' => 'બાલિનીસ',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/gu.php", "language": "php", "file_size": 24954, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => 'dél-altaji',\n 'am' => 'amhara',\n 'an' => 'aragonéz',\n 'ang' => 'óangol',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'apc' => 'levantei arab',\n 'ar' => 'arab',\n 'arc' => 'arámi',\n 'arn' => 'mapucse',\n 'arp' => 'arapaho',\n 'ars' => 'nedzsdi arab',\n 'arw' => 'aravak',\n 'as' => 'asszámi',\n 'asa' => 'asu',\n 'ast' => 'asztúr',\n 'atj' => 'attikamek',\n 'av' => 'avar',\n 'awa' => 'awá", "suffix": " 'be' => 'belarusz',\n 'bej' => 'bedzsa',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bg' => 'bolgár',\n 'bgc' => 'haryanvi',\n 'bgn' => 'nyugati beludzs',\n 'bho' => 'bodzspuri',\n ", "middle": "di',\n 'ay' => 'ajmara',\n 'az' => 'azerbajdzsáni',\n 'ba' => 'baskír',\n 'bal' => 'balucsi',\n 'ban' => 'balinéz',\n 'bas' => 'basza',\n 'bax' => 'bamun',\n 'bbj' => 'gomala',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/hu.php", "language": "php", "file_size": 16558, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ar' => 'Arabiffaa',\n 'as' => 'Assamese',\n 'ast' => 'Astuuriyaan',\n 'az' => 'Afaan Azerbaijani',\n 'be' => 'Afaan Belarusia',\n 'bg' => 'Afaan Bulgariya',\n 'bgc' => 'Haryanvi',\n 'bho' => 'Bihoojpuurii',\n 'blo' => 'Anii',\n 'bn' => 'Afaan Baangladeshi',\n 'br' => 'Bireetoon',\n 'brx' => 'Bodo',\n 'bs' => 'Afaan Bosniyaa',\n 'ca' => 'Afaan Katalaa',\n 'ceb' => 'Kubuwanoo',\n 'chr' => 'Cherokee',\n 'cs' => 'A", "suffix": "ii',\n 'eo' => 'Afaan Esperantoo',\n 'es' => 'Afaan Ispeen',\n 'et' => 'Afaan Istooniya',\n 'eu' => 'Afaan Baskuu',\n 'fa' => 'Afaan Persia',\n 'ff' => 'Fula',\n 'fi' => 'Afaan Fiilaandi',\n 'fil' => 'Afaan F", "middle": "faan Czech',\n 'cv' => 'Chuvash',\n 'cy' => 'Welishiffaa',\n 'da' => 'Afaan Deenmaark',\n 'de' => 'Afaan Jarmanii',\n 'doi' => 'Dogri',\n 'el' => 'Afaan Giriiki',\n 'en' => 'Afaan Ingiliz", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/om.php", "language": "php", "file_size": 4027, "cut_index": 614, "middle_length": 229}} {"prefix": "\n 'arp' => 'arapaho',\n 'arq' => 'algierski arabski',\n 'ars' => 'arabski nadżdyjski',\n 'arw' => 'arawak',\n 'ary' => 'marokański arabski',\n 'arz' => 'egipski arabski',\n 'as' => 'asamski',\n 'asa' => 'asu',\n 'ase' => 'amerykański język migowy',\n 'ast' => 'asturyjski',\n 'atj' => 'atikamekw',\n 'av' => 'awarski',\n 'avk' => 'kotava',\n 'awa' => 'awadhi',\n 'ay' => 'ajmara',\n 'az' => 'azerbejdżański',\n ", "suffix": "'be' => 'białoruski',\n 'bej' => 'bedża',\n 'bem' => 'bemba',\n 'bew' => 'betawi',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bfq' => 'badaga',\n 'bg' => 'bułgarski',\n 'bgc' => 'haryanvi',\n 'bgn' => 'b", "middle": " 'ba' => 'baszkirski',\n 'bal' => 'beludżi',\n 'ban' => 'balijski',\n 'bar' => 'bawarski',\n 'bas' => 'basaa',\n 'bax' => 'bamum',\n 'bbc' => 'batak toba',\n 'bbj' => 'ghomala',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/pl.php", "language": "php", "file_size": 19660, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ang' => 'inglês antigo',\n 'arn' => 'mapuche',\n 'ars' => 'árabe do Négede',\n 'av' => 'avar',\n 'bax' => 'bamun',\n 'bbj' => 'ghomala',\n 'bn' => 'bengalês',\n 'bua' => 'buriat',\n 'ccp' => 'changma',\n 'chk' => 'chuquês',\n 'chn' => 'jargão chinook',\n 'chr' => 'cherokee',\n 'chy' => 'cheyenne',\n 'co' => 'córsico',\n 'crr' => 'algonquiano de Carolina',\n 'crs' => 'francês crioulo seselwa',\n 'cs' => 'checo',", "suffix": "frísico ocidental',\n 'gez' => 'geʼez',\n 'goh' => 'alemão alto antigo',\n 'grc' => 'grego clássico',\n 'gsw' => 'alemão suíço',\n 'ha' => 'haúça',\n 'hy' => 'arménio',\n 'ikt' => 'inuktitut canadiano ocidental',\n ", "middle": "\n 'cv' => 'chuvash',\n 'efi' => 'efik',\n 'egy' => 'egípcio clássico',\n 'et' => 'estónio',\n 'fon' => 'fon',\n 'fro' => 'francês antigo',\n 'frs' => 'frísio oriental',\n 'fy' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/pt_PT.php", "language": "php", "file_size": 3509, "cut_index": 614, "middle_length": 229}} {"prefix": " 'alt' => 'altaică meridională',\n 'am' => 'amharică',\n 'an' => 'aragoneză',\n 'ang' => 'engleză veche',\n 'ann' => 'obolo',\n 'anp' => 'angika',\n 'ar' => 'arabă',\n 'arc' => 'aramaică',\n 'arn' => 'mapuche',\n 'arp' => 'arapaho',\n 'ars' => 'arabă najdi',\n 'arw' => 'arawak',\n 'as' => 'asameză',\n 'asa' => 'asu',\n 'ast' => 'asturiană',\n 'atj' => 'atikamekw',\n 'av' => 'avară',\n 'awa' => 'awadhi'", "suffix": " => 'belarusă',\n 'bej' => 'beja',\n 'bem' => 'bemba',\n 'bez' => 'bena',\n 'bfd' => 'bafut',\n 'bg' => 'bulgară',\n 'bgc' => 'haryanvi',\n 'bgn' => 'baluchi occidentală',\n 'bho' => 'bhojpuri',\n 'bi' ", "middle": ",\n 'ay' => 'aymara',\n 'az' => 'azeră',\n 'ba' => 'bașkiră',\n 'bal' => 'baluchi',\n 'ban' => 'balineză',\n 'bas' => 'basaa',\n 'bax' => 'bamun',\n 'bbj' => 'ghomala',\n 'be'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ro.php", "language": "php", "file_size": 16466, "cut_index": 921, "middle_length": 229}} {"prefix": "> 'obolo',\n 'anp' => 'angika',\n 'apc' => 'àrabu levantinu',\n 'ar' => 'àrabu',\n 'arn' => 'mapudungun',\n 'arp' => 'arapaho',\n 'ars' => 'àrabu najdi',\n 'as' => 'assamesu',\n 'asa' => 'asu',\n 'ast' => 'asturianu',\n 'atj' => 'atikamekw',\n 'av' => 'avaru',\n 'awa' => 'awadhi',\n 'ay' => 'aimara',\n 'az' => 'azerbaigianu',\n 'ba' => 'baschiru',\n 'bal' => 'baluci',\n 'ban' => 'balinesu',\n 'bas' =>", "suffix": " 'bhojpuri',\n 'bi' => 'bislama',\n 'bin' => 'bini',\n 'bla' => 'pees nieddos',\n 'blo' => 'anii',\n 'blt' => 'tai dam',\n 'bm' => 'bambara',\n 'bn' => 'bengalesu',\n 'bo' => 'tibetanu',\n 'bqi' => 'bak", "middle": " 'basaa',\n 'be' => 'bielorussu',\n 'bem' => 'bemba',\n 'bew' => 'betawi',\n 'bez' => 'bena',\n 'bg' => 'bùlgaru',\n 'bgc' => 'haryanvi',\n 'bgn' => 'baluci otzidentale',\n 'bho' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/sc.php", "language": "php", "file_size": 14140, "cut_index": 921, "middle_length": 229}} {"prefix": "'arp' => 'arapaho',\n 'arq' => 'algerianarabia',\n 'ars' => 'arabia – najd',\n 'arw' => 'arawak',\n 'ary' => 'marokonarabia',\n 'arz' => 'egyptinarabia',\n 'as' => 'assami',\n 'asa' => 'asu',\n 'ase' => 'amerikkalainen viittomakieli',\n 'ast' => 'asturia',\n 'atj' => 'atikamekw',\n 'av' => 'avaari',\n 'avk' => 'kotava',\n 'awa' => 'awadhi',\n 'ay' => 'aimara',\n 'az' => 'azeri',\n 'ba' => 'baškiiri',\n 'bal", "suffix": "bedža',\n 'bem' => 'bemba',\n 'bew' => 'betawi',\n 'bez' => 'bena',\n 'bfd' => 'fut',\n 'bfq' => 'badaga',\n 'bg' => 'bulgaria',\n 'bgc' => 'haryanvi',\n 'bgn' => 'länsibelutši',\n 'bho' => 'bhodžpuri',", "middle": "' => 'belutši',\n 'ban' => 'bali',\n 'bar' => 'baijeri',\n 'bas' => 'basaa',\n 'bax' => 'bamum',\n 'bbc' => 'batak-toba',\n 'bbj' => 'ghomala',\n 'be' => 'valkovenäjä',\n 'bej' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/fi.php", "language": "php", "file_size": 18899, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'akz' => 'Alabama',\n 'ale' => 'Aleut',\n 'alt' => 'Altai Selatan',\n 'am' => 'Amharik',\n 'an' => 'Aragon',\n 'ang' => 'Inggris Kuno',\n 'ann' => 'Obolo',\n 'anp' => 'Angika',\n 'ar' => 'Arab',\n 'arc' => 'Aram',\n 'arn' => 'Mapuche',\n 'arp' => 'Arapaho',\n 'arq' => 'Arab Aljazair',\n 'ars' => 'Arab Najdi',\n 'arw' => 'Arawak',\n 'ary' => 'Arab Maroko',\n 'arz' => 'Arab Mesir',\n 'as' => 'Assam',\n", "suffix": "i',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluchi',\n 'ban' => 'Bali',\n 'bar' => 'Bavaria',\n 'bas' => 'Basa',\n 'bax' => 'Bamun',\n 'bbc' => 'Batak Toba',\n 'bbj' => 'Ghomala',\n 'be' => 'Belarusia',\n ", "middle": " 'asa' => 'Asu',\n 'ase' => 'Bahasa Isyarat Amerika',\n 'ast' => 'Asturia',\n 'atj' => 'Atikamekw',\n 'av' => 'Avar',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymara',\n 'az' => 'Azerbaijan", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/in.php", "language": "php", "file_size": 16522, "cut_index": 921, "middle_length": 229}} {"prefix": " 'alt' => 'אלטאי דרומית',\n 'am' => 'אמהרית',\n 'an' => 'אראגונית',\n 'ang' => 'אנגלית עתיקה',\n 'ann' => 'אובולו',\n 'anp' => 'אנג׳יקה',\n 'ar' => 'ערבית',\n 'arc' => 'ארמית',\n 'arn' => 'אראוקנית',\n 'arp' => 'אראפהו',\n 'ars' => 'ערבית - נג׳ד',\n 'arw' => 'ארוואק',\n 'as' => 'אסאמית',\n 'asa' => 'אסו',\n 'ast' => 'אסטורית',\n 'atj' => 'אטיקמק',\n 'av' => 'אווארית',\n 'awa' => 'אוואדית',\n 'ay' => '", "suffix": " 'be' => 'בלארוסית',\n 'bej' => 'בז׳ה',\n 'bem' => 'במבה',\n 'bez' => 'בנה',\n 'bfd' => 'באפוט',\n 'bg' => 'בולגרית',\n 'bgc' => 'הריאנבי',\n 'bgn' => 'באלוצ׳י מערבית',\n 'bho' => 'בוג׳פורי',\n 'bi' ", "middle": "איימארית',\n 'az' => 'אזרית',\n 'ba' => 'בשקירית',\n 'bal' => 'באלוצ׳י',\n 'ban' => 'באלינזית',\n 'bar' => 'בווארית',\n 'bas' => 'בסאא',\n 'bax' => 'במום',\n 'bbj' => 'גומאלה',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/iw.php", "language": "php", "file_size": 19690, "cut_index": 921, "middle_length": 229}} {"prefix": " 'anp' => 'انگيکي',\n 'ar' => 'عربي',\n 'arn' => 'ماپوچه',\n 'arp' => 'اراپاهوي',\n 'ars' => 'نجدی عربی',\n 'as' => 'اسامي',\n 'asa' => 'اسويي',\n 'ast' => 'استورياني',\n 'atj' => 'اتیکامیکو',\n 'av' => 'اواري',\n 'awa' => 'اوادي',\n 'ay' => 'ایماري',\n 'az' => 'اذربایجاني',\n 'ba' => 'باشکير',\n 'bal' => 'بلوڅي',\n 'ban' => 'بالنی',\n 'bas' => 'باسا',\n 'be' => 'بېلاروسي',\n 'bem' => 'بيمبا',\n ", "suffix": "را',\n 'bn' => 'بنگالي',\n 'bo' => 'تبتي',\n 'br' => 'برېتون',\n 'brx' => 'بودو',\n 'bs' => 'بوسني',\n 'bug' => 'بگنيايي',\n 'byn' => 'بلین',\n 'ca' => 'کټلاني',\n 'cay' => 'Ca',\n 'ccp' => 'چکما'", "middle": " 'bez' => 'بينا',\n 'bg' => 'بلغاري',\n 'bgc' => 'هریانوی',\n 'bho' => 'بهوجپوري',\n 'bi' => 'بسلاما',\n 'bin' => 'بینی',\n 'bla' => 'سکسيکا',\n 'blo' => 'انۍ',\n 'bm' => 'بمبا", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ps.php", "language": "php", "file_size": 15252, "cut_index": 921, "middle_length": 229}} {"prefix": " 'ar' => 'Icyarabu',\n 'as' => 'Icyasamizi',\n 'az' => 'Inyazeribayijani',\n 'be' => 'Ikibelarusiya',\n 'bg' => 'Urunyabuligariya',\n 'bn' => 'Ikibengali',\n 'br' => 'Inyebiritoni',\n 'bs' => 'Inyebosiniya',\n 'ca' => 'Igikatalani',\n 'cs' => 'Igiceke',\n 'cy' => 'Ikigaluwa',\n 'da' => 'Ikidaninwa',\n 'de' => 'Ikidage',\n 'el' => 'Ikigereki',\n 'en' => 'Icyongereza',\n 'eo' => 'Icyesiperanto',\n 'es' => 'Ic", "suffix": "sa',\n 'fy' => 'Igifiriziyani',\n 'ga' => 'Ikirilandi',\n 'gd' => 'Ikigaluwa cy’Igisweduwa',\n 'gl' => 'Ikigalisiya',\n 'gn' => 'Inyaguwarani',\n 'gu' => 'Inyegujarati',\n 'he' => 'Igiheburayo',\n 'hi' => 'Ig", "middle": "yesipanyolo',\n 'et' => 'Icyesitoniya',\n 'eu' => 'Ikibasiki',\n 'fa' => 'Inyeperisi',\n 'fi' => 'Igifinilande',\n 'fil' => 'Ikinyafilipine',\n 'fo' => 'Inyefaroyizi',\n 'fr' => 'Igifaran", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/rw.php", "language": "php", "file_size": 3434, "cut_index": 614, "middle_length": 229}} {"prefix": "p' => 'Angika',\n 'ar' => 'Larabci',\n 'arn' => 'Mapuche',\n 'arp' => 'Arapaho',\n 'ars' => 'Larabcin Najdi',\n 'as' => 'Asamisanci',\n 'asa' => 'Asu',\n 'ast' => 'Asturia',\n 'atj' => 'Atikamekw',\n 'av' => 'Avaric',\n 'awa' => 'Awadhi',\n 'ay' => 'Aymaranci',\n 'az' => 'Azerbaijanci',\n 'ba' => 'Bashkir',\n 'bal' => 'Baluchi',\n 'ban' => 'Balenesanci',\n 'bas' => 'Basaa',\n 'be' => 'Belarusanci',\n ", "suffix": " 'Anii',\n 'bm' => 'Bambara',\n 'bn' => 'Bengali',\n 'bo' => 'Tibetan',\n 'br' => 'Buretananci',\n 'brx' => 'Bodo',\n 'bs' => 'Bosniyanci',\n 'bug' => 'Buginesanci',\n 'byn' => 'Blin',\n 'ca' => 'Katalo", "middle": "'bem' => 'Bemba',\n 'bez' => 'Bena',\n 'bg' => 'Bulgariyanci',\n 'bgc' => 'Haryanvi',\n 'bho' => 'Bhojpuri',\n 'bi' => 'Bislama',\n 'bin' => 'Bini',\n 'bla' => 'Siksiká',\n 'blo' =>", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/ha.php", "language": "php", "file_size": 13164, "cut_index": 921, "middle_length": 229}} {"prefix": "hp\n\nreturn [\n 'Names' => [\n 'ab' => 'افریکانس',\n 'as' => 'اسامی',\n 'ast' => 'اتریشی',\n 'az' => 'آذربایجانی',\n 'ckb' => 'کردی سورانی',\n 'dv' => 'مالدیوی',\n 'es' => 'هسپانوی',\n 'fi' => 'فنلندی',\n 'ga' => 'آیرلندی',\n 'hr' => 'کروشیایی',\n 'id' => 'اندونیزیایی',\n 'is' => 'آیسلندی',\n 'it' => 'ایتالوی',\n 'ja' => 'جاپانی',\n 'ko' => 'کوریایی',\n 'ksh' => 'کلنی',\n 'ky' => 'قرغزی',\n 'lus' => ", "suffix": " 'pt' => 'پرتگالی',\n 'sq' => 'البانیایی',\n 'srn' => 'زبان سرانان',\n 'sv' => 'سویدنی',\n 'sw' => 'سواحلی',\n 'tg' => 'تاجکی',\n 'zza' => 'زازاکی',\n ],\n 'LocalizedNames' => [\n 'ar_001' => 'عربی فصیح',\n ", "middle": "'میزویی',\n 'mai' => 'مایتیلی',\n 'mn' => 'مغلی',\n 'nb' => 'نروژی کتابی',\n 'ne' => 'نیپالی',\n 'nl' => 'هالندی',\n 'nn' => 'نروژی نو',\n 'no' => 'نارویژی',\n 'pl' => 'پولندی',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/fa_AF.php", "language": "php", "file_size": 1328, "cut_index": 515, "middle_length": 229}} {"prefix": "ଇଟୁ',\n 'alt' => 'ଦକ୍ଷିଣ ଆଲ୍ଟାଇ',\n 'am' => 'ଆମହାରକି',\n 'an' => 'ଆର୍ଗୋନୀ',\n 'ang' => 'ପୁରୁଣା ଇଁରାଜୀ',\n 'ann' => 'ଅବୋଲା',\n 'anp' => 'ଅଁଗୀକା',\n 'ar' => 'ଆରବିକ୍',\n 'arc' => 'ଆରାମାଇକ୍',\n 'arn' => 'ମାପୁଚେ',\n 'arp' => 'ଆରାପାହୋ',\n 'ars' => 'ନାଜଦି ଆରବିକ',\n 'arw' => 'ଆରୱକ',\n 'as' => 'ଆସାମୀୟ',\n 'asa' => 'ଆସୁ',\n 'ast' => 'ଆଷ୍ଟୁରିଆନ୍',\n 'atj' => 'ଆଟିକାମେକ୍ୱ',\n 'av' => 'ଆଭାରିକ୍',\n 'awa' => 'ଆୱାଧି',", "suffix": " 'bem' => 'ବେମ୍ବା',\n 'bez' => 'ବେନା',\n 'bg' => 'ବୁଲଗେରିଆନ୍',\n 'bgc' => 'ହରିୟାନଭି',\n 'bho' => 'ଭୋଜପୁରୀ',\n 'bi' => 'ବିସଲାମା',\n 'bik' => 'ବିକୋଲ୍',\n 'bin' => 'ବିନି',\n 'bla' => 'ସିକସିକା',\n 'blo' => ", "middle": "\n 'ay' => 'ଆୟମାରା',\n 'az' => 'ଆଜେରବାଇଜାନି',\n 'ba' => 'ବାଶକିର୍',\n 'bal' => 'ବାଲୁଚି',\n 'ban' => 'ବାଲିନୀଜ୍',\n 'bas' => 'ବାସା',\n 'be' => 'ବେଲାରୁଷିଆନ୍',\n 'bej' => 'ବେଜା',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/or.php", "language": "php", "file_size": 24892, "cut_index": 921, "middle_length": 229}} {"prefix": " 'anp' => 'angika',\n 'ar' => 'arab',\n 'arn' => 'mapuche',\n 'arp' => 'arapaxo',\n 'ars' => 'najd arab',\n 'as' => 'assam',\n 'asa' => 'asu',\n 'ast' => 'asturiy',\n 'atj' => 'atikamek',\n 'av' => 'avar',\n 'awa' => 'avadxi',\n 'ay' => 'aymara',\n 'az' => 'ozarbayjon',\n 'ba' => 'boshqird',\n 'bal' => 'baluj',\n 'ban' => 'bali',\n 'bas' => 'basa',\n 'be' => 'belarus',\n 'bem' => 'bemba',\n 'be", "suffix": "'Anii',\n 'bm' => 'bambara',\n 'bn' => 'bengal',\n 'bo' => 'tibet',\n 'br' => 'breton',\n 'brx' => 'bodo',\n 'bs' => 'bosniy',\n 'bug' => 'bugi',\n 'byn' => 'blin',\n 'ca' => 'katalan',\n 'cay' =>", "middle": "z' => 'bena',\n 'bg' => 'bolgar',\n 'bgc' => 'harianvi',\n 'bgn' => 'g‘arbiy baluj',\n 'bho' => 'bxojpuri',\n 'bi' => 'bislama',\n 'bin' => 'bini',\n 'bla' => 'siksika',\n 'blo' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/uz.php", "language": "php", "file_size": 12813, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Data\\Bundle\\Writer;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Writer\\JsonBundleWriter;\n\n/**\n * @author Bernhard Schussek <bschusse", "suffix": "iter = new JsonBundleWriter();\n $this->directory = sys_get_temp_dir().'/JsonBundleWriterTest/'.random_int(1000, 9999);\n $this->filesystem = new Filesystem();\n\n $this->filesystem->mkdir($this->directory);\n }\n\n protected function t", "middle": "k@gmail.com>\n */\nclass JsonBundleWriterTest extends TestCase\n{\n private JsonBundleWriter $writer;\n private string $directory;\n private Filesystem $filesystem;\n\n protected function setUp(): void\n {\n $this->wr", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/JsonBundleWriterTest.php", "language": "php", "file_size": 1950, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Data\\Bundle\\Writer;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Writer\\PhpBundleWriter;\n\n/**\n * @author Bernhard Schussek <bschussek", "suffix": "r = new PhpBundleWriter();\n $this->directory = sys_get_temp_dir().'/PhpBundleWriterTest/'.random_int(1000, 9999);\n $this->filesystem = new Filesystem();\n\n $this->filesystem->mkdir($this->directory);\n }\n\n protected function tearDo", "middle": "@gmail.com>\n */\nclass PhpBundleWriterTest extends TestCase\n{\n private PhpBundleWriter $writer;\n private string $directory;\n private Filesystem $filesystem;\n\n protected function setUp(): void\n {\n $this->write", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/PhpBundleWriterTest.php", "language": "php", "file_size": 1961, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Data\\Bundle\\Writer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Writer\\TextBundleWriter;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt\n */\nclass TextBundleWriterTest exten", "suffix": "ectory = sys_get_temp_dir().'/TextBundleWriterTest/'.random_int(1000, 9999);\n $this->filesystem = new Filesystem();\n\n $this->filesystem->mkdir($this->directory);\n }\n\n protected function tearDown(): void\n {\n $this->filesystem->", "middle": "ds TestCase\n{\n private TextBundleWriter $writer;\n private string $directory;\n private Filesystem $filesystem;\n\n protected function setUp(): void\n {\n $this->writer = new TextBundleWriter();\n $this->dir", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Data/Bundle/Writer/TextBundleWriterTest.php", "language": "php", "file_size": 3548, "cut_index": 614, "middle_length": 229}} {"prefix": "Bundle\\Reader\\BundleEntryReader;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\nuse Symfony\\Component\\Intl\\Exception\\ResourceBundleNotFoundException;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass BundleEntryReaderTest extends TestCase\n{\n private const RES_DIR = '/res/dir';\n\n private const DATA = [\n 'Entries' => [\n 'Foo' => 'Bar',\n 'Bar' => 'Baz',\n ],\n ", "suffix": ",\n ];\n\n private const MERGED_DATA = [\n // no recursive merging -> too complicated\n 'Entries' => [\n 'Foo' => 'Bar',\n 'Bar' => 'Baz',\n ],\n 'Baz' => 'Foo',\n 'Version' => '2.0',\n 'Foo' => 'B", "middle": " 'Foo' => 'Bar',\n 'Version' => '2.0',\n ];\n\n private const FALLBACK_DATA = [\n 'Entries' => [\n 'Foo' => 'Foo',\n 'Bam' => 'Lah',\n ],\n 'Baz' => 'Foo',\n 'Version' => '1.0'", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/BundleEntryReaderTest.php", "language": "php", "file_size": 15044, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Data\\Bundle\\Reader;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\IntlBundleReader;\nuse Symfony\\Component\\Intl\\Exception\\ResourceBundleNotFoundException;\nuse Symfony\\Component\\Intl\\Exception\\Runtime", "suffix": "{\n $this->reader = new IntlBundleReader();\n }\n\n public function testReadReturnsArrayAccess()\n {\n $data = $this->reader->read(__DIR__.'/Fixtures/res', 'ro');\n\n $this->assertInstanceOf(\\ArrayAccess::class, $data);\n $this-", "middle": "Exception;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\n#[RequiresPhpExtension('intl')]\nclass IntlBundleReaderTest extends TestCase\n{\n private IntlBundleReader $reader;\n\n protected function setUp(): void\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/IntlBundleReaderTest.php", "language": "php", "file_size": 2959, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Data\\Bundle\\Reader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\JsonBundleReader;\nuse Symfony\\Component\\Intl\\Exception\\ResourceBundleNotFoundException;\nuse Symfony\\Component\\Intl\\Exception\\RuntimeException;\n\n/**\n * @author Be", "suffix": "public function testReadReturnsArray()\n {\n $data = $this->reader->read(__DIR__.'/Fixtures/json', 'en');\n\n $this->assertIsArray($data);\n $this->assertSame('Bar', $data['Foo']);\n $this->assertArrayNotHasKey('ExistsNot', $data);", "middle": "rnhard Schussek <bschussek@gmail.com>\n */\nclass JsonBundleReaderTest extends TestCase\n{\n private JsonBundleReader $reader;\n\n protected function setUp(): void\n {\n $this->reader = new JsonBundleReader();\n }\n\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/JsonBundleReaderTest.php", "language": "php", "file_size": 2007, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Data\\Bundle\\Reader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\PhpBundleReader;\nuse Symfony\\Component\\Intl\\Exception\\ResourceBundleNotFoundException;\nuse Symfony\\Component\\Intl\\Exception\\RuntimeException;\n\n/**\n * @author Ber", "suffix": "ic function testReadReturnsArray()\n {\n $data = $this->reader->read(__DIR__.'/Fixtures/php', 'en');\n\n $this->assertIsArray($data);\n $this->assertSame('Bar', $data['Foo']);\n $this->assertArrayNotHasKey('ExistsNot', $data);\n ", "middle": "nhard Schussek <bschussek@gmail.com>\n */\nclass PhpBundleReaderTest extends TestCase\n{\n private PhpBundleReader $reader;\n\n protected function setUp(): void\n {\n $this->reader = new PhpBundleReader();\n }\n\n publ", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Data/Bundle/Reader/PhpBundleReaderTest.php", "language": "php", "file_size": 1812, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Util;\n\nuse Symfony\\Component\\Intl\\Exception\\BadMethodCallException;\n\n/**\n * Work-around for a bug in PHP's \\ResourceBundle implementation.\n *\n * More information can be found on https://bugs.php.net/64356.\n * This class can be removed once that bug is fixed.\n *", "suffix": "e $bundleImpl,\n ) {\n }\n\n public function get(int|string $offset): mixed\n {\n $value = $this->bundleImpl->get($offset);\n\n return $value instanceof \\ResourceBundle ? new static($value) : $value;\n }\n\n public function offsetExist", "middle": "\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass ArrayAccessibleResourceBundle implements \\ArrayAccess, \\IteratorAggregate, \\Countable\n{\n public function __construct(\n private \\ResourceBundl", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Util/ArrayAccessibleResourceBundle.php", "language": "php", "file_size": 1924, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Util;\n\n/**\n * Scans a directory with data files for locales.\n *\n * The name of each file with the extension \".txt\" is considered, if it \"looks\"\n * like a locale:\n *\n * - the name must start with two letters;\n * - the two letters may optionally be followed by an underscore and any\n * ", "suffix": " * Returns all locales found in the given directory.\n *\n * @return array An array of locales. The result also contains locales that\n * are in fact just aliases for other locales. Use\n * {@link scanAliases()} ", "middle": " sequence of other symbols.\n *\n * For example, \"de\" and \"de_DE\" are considered to be locales. \"root\" and \"meta\"\n * are not.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass LocaleScanner\n{\n /**\n", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Util/LocaleScanner.php", "language": "php", "file_size": 2958, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Util;\n\nuse Symfony\\Component\\Intl\\Exception\\OutOfBoundsException;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass RecursiveArrayAccess\n{\n public static function get(mixed $array, array $indices): mixed\n ", "suffix": "y = $array[$index];\n continue;\n }\n } elseif ($array instanceof \\ArrayAccess) {\n if (isset($array[$index])) {\n $array = $array[$index];\n continue;\n ", "middle": " {\n foreach ($indices as $index) {\n // Use array_key_exists() for arrays, isset() otherwise\n if (\\is_array($array)) {\n if (\\array_key_exists($index, $array)) {\n $arra", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Util/RecursiveArrayAccess.php", "language": "php", "file_size": 1210, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Util;\n\nuse Symfony\\Component\\Intl\\Exception\\OutOfBoundsException;\n\n/**\n * Implements a ring buffer.\n *\n * A ring buffer is an array-like structure with a fixed size. If the buffer\n * is full, the next written element overwrites the first bucket in the buffer,\n ", "suffix": " \\ArrayAccess\n{\n /** @var array<int, TValue> */\n private array $values = [];\n /** @var array<TKey, int> */\n private array $indices = [];\n private int $cursor = 0;\n\n public function __construct(\n private int $size,\n ) {\n }\n\n ", "middle": "* then the second and so on.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @template TKey of array-key\n * @template TValue\n *\n * @implements \\ArrayAccess<TKey, TValue>\n *\n * @internal\n */\nclass RingBuffer implements", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Util/RingBuffer.php", "language": "php", "file_size": 1979, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Generator;\n\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Compiler\\BundleCompilerInterface;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReader;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\IntlBundleReader;\nuse S", "suffix": "on __construct(\n private BundleCompilerInterface $compiler,\n private string $dirName,\n ) {\n }\n\n public function generateData(GeneratorConfig $config): void\n {\n $filesystem = new Filesystem();\n $localeScanner = new Lo", "middle": "ymfony\\Component\\Intl\\Data\\Util\\LocaleScanner;\n\n/**\n * The rule for compiling the currency bundle.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nabstract class AbstractDataGenerator\n{\n public functi", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Generator/AbstractDataGenerator.php", "language": "php", "file_size": 3468, "cut_index": 614, "middle_length": 229}} {"prefix": "ndleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Data\\Util\\ArrayAccessibleResourceBundle;\nuse Symfony\\Component\\Intl\\Data\\Util\\LocaleScanner;\n\n/**\n * The rule for compiling the currency bundle.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass CurrencyDataGenerator extends AbstractDataGenerator\n{\n private const DENYLIST = [\n 'XBA' => true, // European Composite Unit\n 'XBB' => true, // European Monetary Unit\n 'XBC' => true, // European Unit of Account", "suffix": "e, // Palladium\n 'XSU' => true, // Sucre\n 'XDR' => true, // Special Drawing Rights\n 'XTS' => true, // Testing Currency Code\n 'XXX' => true, // Unknown Currency\n ];\n\n /**\n * Collects all available currency codes.\n *", "middle": " (XBC)\n 'XBD' => true, // European Unit of Account (XBD)\n 'XUA' => true, // ADB Unit of Account\n 'XAU' => true, // Gold\n 'XAG' => true, // Silver\n 'XPT' => true, // Platinum\n 'XPD' => tru", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Generator/CurrencyDataGenerator.php", "language": "php", "file_size": 9231, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Generator;\n\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Locale;\n\n/**\n * @author Roland Franssen <franssen.roland@gmail.com>\n *\n * @internal\n */\ntrait FallbackTrait\n{\n private array $fallbackCache = [];", "suffix": " string $displayLocale): ?array;\n\n /**\n * @see AbstractDataGenerator::generateDataForRoot()\n */\n abstract protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array;\n\n private function generateFallb", "middle": "\n private bool $generatingFallback = false;\n\n /**\n * @see AbstractDataGenerator::generateDataForLocale()\n */\n abstract protected function generateDataForLocale(BundleEntryReaderInterface $reader, string $tempDir,", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Generator/FallbackTrait.php", "language": "php", "file_size": 1777, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Generator;\n\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Writer\\BundleWriterInterface;\n\n/**\n * Stores contextual information for resource bundle generation.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass GeneratorConfig\n{\n /**\n ", "suffix": "o be used during the data conversion.\n */\n public function addBundleWriter(string $targetDir, BundleWriterInterface $writer): void\n {\n $this->bundleWriters[$targetDir] = $writer;\n }\n\n /**\n * Returns the writers indexed by their o", "middle": " * @var BundleWriterInterface[]\n */\n private array $bundleWriters = [];\n\n public function __construct(\n private string $sourceDir,\n private string $icuVersion,\n ) {\n }\n\n /**\n * Adds a writer t", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Generator/GeneratorConfig.php", "language": "php", "file_size": 1565, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Generator;\n\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Compiler\\BundleCompilerInterface;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Data\\Util\\ArrayAccessibleResourceBundle;\nuse Symfony\\Component\\Intl\\Data\\Util\\LocaleScanner;\nuse Symfony\\Component\\Intl\\Exception\\RuntimeException;\n\n/**\n * The rule for compiling the language bundle.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n", "suffix": "> 'aka',\n 'ar' => 'ara',\n 'ay' => 'aym',\n 'az' => 'aze',\n 'bo' => 'bod',\n 'cr' => 'cre',\n 'cs' => 'ces',\n 'cy' => 'cym',\n 'de' => 'deu',\n 'dz' => 'dzo',\n 'el' => 'ell',\n 'et' => '", "middle": " *\n * @internal\n */\nclass LanguageDataGenerator extends AbstractDataGenerator\n{\n /**\n * Source: https://iso639-3.sil.org/code_tables/639/data.\n */\n private const PREFERRED_ALPHA2_TO_ALPHA3_MAPPING = [\n 'ak' =", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Generator/LanguageDataGenerator.php", "language": "php", "file_size": 7890, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Generator;\n\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Compiler\\BundleCompilerInterface;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Data\\Util\\LocaleScanner;\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\nuse Symfony\\Component\\VarExporter\\VarExporter;\n\n/**\n * The rule for compiling the locale bundle.\n *\n * @author Bernhard S", "suffix": "te array $localeAliases = [];\n private array $localeParents = [];\n\n protected function scanLocales(LocaleScanner $scanner, string $sourceDir): array\n {\n $this->locales = $scanner->scanLocales($sourceDir.'/locales');\n $this->localeAli", "middle": "chussek <bschussek@gmail.com>\n * @author Roland Franssen <franssen.roland@gmail.com>\n *\n * @internal\n */\nclass LocaleDataGenerator extends AbstractDataGenerator\n{\n use FallbackTrait;\n\n private array $locales = [];\n priva", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Generator/LocaleDataGenerator.php", "language": "php", "file_size": 6747, "cut_index": 716, "middle_length": 229}} {"prefix": "ndleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Data\\Util\\ArrayAccessibleResourceBundle;\nuse Symfony\\Component\\Intl\\Data\\Util\\LocaleScanner;\nuse Symfony\\Component\\Intl\\Exception\\RuntimeException;\n\n/**\n * The rule for compiling the region bundle.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @see http://source.icu-project.org/repos/icu/icu4j/trunk/main/classes/core/src/com/ibm/icu/util/Region.java\n *\n * @internal\n */\nclass RegionDataGenerator extends AbstractDataGenerator\n{\n /**\n * ", "suffix": " 'TL' => 'TLS',\n 'YE' => 'YEM',\n ];\n\n private const DENYLIST = [\n // Exceptional reservations\n 'AC' => true, // Ascension Island\n 'CP' => true, // Clipperton Island\n 'CQ' => true, // Island of Sark\n 'DG'", "middle": "Source: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes.\n */\n private const PREFERRED_ALPHA2_TO_ALPHA3_MAPPING = [\n 'CD' => 'COD',\n 'DE' => 'DEU',\n 'FR' => 'FRA',\n 'MM' => 'MMR',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Generator/RegionDataGenerator.php", "language": "php", "file_size": 10804, "cut_index": 921, "middle_length": 229}} {"prefix": "\n 'bi',\n 'bik',\n 'bin',\n 'bjn',\n 'bkm',\n 'bla',\n 'blo',\n 'blt',\n 'bm',\n 'bn',\n 'bo',\n 'bpy',\n 'bqi',\n 'br',\n 'bra',\n 'brh',\n 'brx',\n 'bs',\n 'bss',\n 'bua',\n 'bug',\n 'bum',\n 'byn',\n 'byv',\n 'ca',\n 'cad',\n 'car',\n 'cay',\n 'cch',\n 'ccp',\n 'ce',\n 'ceb',\n 'cgg',\n 'ch',\n 'c", "suffix": " 'crg',\n 'crh',\n 'crj',\n 'crk',\n 'crl',\n 'crm',\n 'crr',\n 'crs',\n 'cs',\n 'csb',\n 'csw',\n 'cu',\n 'cv',\n 'cy',\n 'da',\n 'dak',\n 'dar',\n ", "middle": "hb',\n 'chg',\n 'chk',\n 'chm',\n 'chn',\n 'cho',\n 'chp',\n 'chr',\n 'chy',\n 'cic',\n 'ckb',\n 'clc',\n 'co',\n 'cop',\n 'cps',\n 'cr',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/LanguagesTest.php", "language": "php", "file_size": 35659, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\nuse Symfony\\Component\\Intl\\Locales;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\n#[Group('intl-data')]\nclass LocalesTest extends ResourceBundleTestCase\n{\n public function testGet", "suffix": "DataProvider('provideLocales')]\n public function testGetNames($displayLocale)\n {\n if ('en' !== $displayLocale) {\n IntlTestHelper::requireFullIntl($this);\n }\n\n $locales = array_keys(Locales::getNames($displayLocale));\n\n", "middle": "Locales()\n {\n $this->assertSame(static::getLocales(), Locales::getLocales());\n }\n\n public function testGetAliases()\n {\n $this->assertSame(static::getLocaleAliases(), Locales::getAliases());\n }\n\n #[", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/LocalesTest.php", "language": "php", "file_size": 3507, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\nuse Symfony\\Component\\Intl\\Scripts;\nuse Symfony\\Component\\Intl\\Util\\IntlTestHelper;\n\n#[Group('intl-data')]\nclass ScriptsTest extends ResourceBundleTestCase\n{\n // The below arrays document the state of the ICU data bundled with this package.\n\n protected static array $scripts = [\n ", "suffix": " 'Berf',\n 'Bhks',\n 'Blis',\n 'Bopo',\n 'Brah',\n 'Brai',\n 'Bugi',\n 'Buhd',\n 'Cakm',\n 'Cans',\n 'Cari',\n 'Cham',\n 'Cher',\n 'Chrs',\n 'Cirt',\n 'Copt',\n ", "middle": " 'Adlm',\n 'Afak',\n 'Aghb',\n 'Ahom',\n 'Arab',\n 'Aran',\n 'Armi',\n 'Armn',\n 'Avst',\n 'Bali',\n 'Bamu',\n 'Bass',\n 'Batk',\n 'Beng',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/ScriptsTest.php", "language": "php", "file_size": 6594, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\After;\nuse PHPUnit\\Framework\\Attributes\\Before;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Intl\\Exception\\RuntimeException;\nuse Symfony\\Component\\Intl", "suffix": "otected function cleanup()\n {\n $this->targetDir = sys_get_temp_dir().'/GitRepositoryTest/source';\n\n $fs = new Filesystem();\n $fs->remove($this->targetDir);\n }\n\n public function testItThrowsAnExceptionIfInitialisedWithNonGitDir", "middle": "\\Util\\GitRepository;\n\n#[Group('intl-data')]\nclass GitRepositoryTest extends TestCase\n{\n private ?string $targetDir = null;\n\n private const REPO_URL = 'https://github.com/symfony/intl.git';\n\n #[Before]\n #[After]\n pr", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Util/GitRepositoryTest.php", "language": "php", "file_size": 2419, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Util\\IcuVersion;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass IcuVersionTest extends TestCase\n{\n public static function normalizeProvider()\n {\n return [\n [null, '1', '10'],\n ", "suffix": " [2, '1', '10'],\n [2, '1.2', '12'],\n [2, '1.2.3', '12.3'],\n [2, '1.2.3.4', '12.3'],\n [3, '1', '10'],\n [3, '1.2', '12'],\n [3, '1.2.3', '12.3'],\n [3, '1.2.3.4', '12.3.4']", "middle": " [null, '1.2', '12'],\n [null, '1.2.3', '12.3'],\n [null, '1.2.3.4', '12.3.4'],\n [1, '1', '10'],\n [1, '1.2', '12'],\n [1, '1.2.3', '12'],\n [1, '1.2.3.4', '12'],\n", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Util/IcuVersionTest.php", "language": "php", "file_size": 3571, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Data\\Util;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Data\\Util\\RingBuffer;\nuse Symfony\\Component\\Intl\\Exception\\OutOfBoundsException;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass RingBufferTest extends TestCase\n{\n private RingBuffer $buffer;\n\n ", "suffix": ">assertArrayHasKey(0, $this->buffer);\n $this->assertArrayHasKey('bar', $this->buffer);\n $this->assertSame('foo', $this->buffer[0]);\n $this->assertSame('baz', $this->buffer['bar']);\n }\n\n public function testWritePastBuffer()\n {", "middle": " protected function setUp(): void\n {\n $this->buffer = new RingBuffer(2);\n }\n\n public function testWriteWithinBuffer()\n {\n $this->buffer[0] = 'foo';\n $this->buffer['bar'] = 'baz';\n\n $this-", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Data/Util/RingBufferTest.php", "language": "php", "file_size": 2432, "cut_index": 563, "middle_length": 229}} {"prefix": "agq' => 'агемча',\n 'ain' => 'айну',\n 'ak' => 'аканча',\n 'ale' => 'алеут',\n 'am' => 'амхарча',\n 'an' => 'арагон',\n 'anp' => 'ангика',\n 'ar' => 'арабча',\n 'arn' => 'мапудунгун',\n 'arp' => 'арапахо',\n 'as' => 'ассомча',\n 'asa' => 'асуча',\n 'ast' => 'астурийча',\n 'av' => 'аварча',\n 'awa' => 'авадхи',\n 'ay' => 'аймара',\n 'az' => 'озарбайжонча',\n 'ba' => 'бошқирдча',\n 'ban' => 'балича',\n ", "suffix": "> 'бамбарча',\n 'bn' => 'бенгалча',\n 'bo' => 'тибетча',\n 'br' => 'бретонча',\n 'brx' => 'бодоча',\n 'bs' => 'боснийча',\n 'bug' => 'бугийча',\n 'byn' => 'блинча',\n 'ca' => 'каталонча',\n 'ce' => 'чеч", "middle": " 'bas' => 'басаа',\n 'be' => 'беларусча',\n 'bem' => 'бемба',\n 'bez' => 'бенача',\n 'bg' => 'болгарча',\n 'bho' => 'бхожпури',\n 'bi' => 'бислама',\n 'bin' => 'бини',\n 'bm' =", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/uz_Cyrl.php", "language": "php", "file_size": 10660, "cut_index": 716, "middle_length": 229}} {"prefix": "' => 'Isi-Arabhu',\n 'as' => 'IsiAssamese',\n 'az' => 'Isi-Azerbaijani',\n 'be' => 'Isi-Belarusian',\n 'bg' => 'Isi-Bulgaria',\n 'bn' => 'IsiBangla',\n 'br' => 'IsiBreton',\n 'bs' => 'Isi-Bosnia',\n 'ca' => 'Isi-Calatan',\n 'cs' => 'Isi-Czech',\n 'cy' => 'Isi-Welsh',\n 'da' => 'Isi-Danish',\n 'de' => 'IsiJamani',\n 'el' => 'Isi-Greek',\n 'en' => 'IsiNgesi',\n 'eo' => 'Isi-Esperanto',\n 'es' => 'Isi-Spanish',\n ", "suffix": "Isi-Frisian',\n 'ga' => 'Isi-Irish',\n 'gd' => 'Scots Gaelic',\n 'gl' => 'Isi-Galician',\n 'gu' => 'Isi-Gujarati',\n 'he' => 'Isi-Hebrew',\n 'hi' => 'IsiHindi',\n 'hr' => 'Isi-Croatia',\n 'hu' => 'Isi-Hungari", "middle": " 'et' => 'Isi-Estonian',\n 'eu' => 'Isi-Basque',\n 'fa' => 'Isi-Persia',\n 'fi' => 'Isi-Finnish',\n 'fil' => 'Isi-Taglog',\n 'fo' => 'Isi-Faroese',\n 'fr' => 'IsiFrentshi',\n 'fy' => '", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/xh.php", "language": "php", "file_size": 3856, "cut_index": 614, "middle_length": 229}} {"prefix": "=> 'Arabic',\n 'as' => 'Asame',\n 'az' => 'Aserbayjane',\n 'ba' => 'Baskir',\n 'ban' => 'Bali',\n 'be' => 'Belaris',\n 'bem' => 'Bemba',\n 'bg' => 'Bilgaar',\n 'bn' => 'Baŋla',\n 'bo' => 'Tibetan',\n 'br' => 'Breton',\n 'bs' => 'Bosñak',\n 'ca' => 'Katalan',\n 'ceb' => 'Sibiyanoo',\n 'chm' => 'Mari',\n 'chr' => 'Ceroki',\n 'ckb' => 'Kurdi gu Diggu',\n 'co' => 'Kors',\n 'cs' => 'Cek',\n 'cy' => '", "suffix": " 'es' => 'Español',\n 'et' => 'Estoñiye',\n 'eu' => 'Bask',\n 'fa' => 'Pers',\n 'ff' => 'Pël',\n 'fi' => 'Feylànde',\n 'fil' => 'Filipiye',\n 'fo' => 'Feroos',\n 'fr' => 'Farañse',\n 'ga' => 'Irlànde'", "middle": "Wels',\n 'da' => 'Danuwa',\n 'de' => 'Almaa',\n 'dsb' => 'Sorab-Suuf',\n 'dv' => 'Diweyi',\n 'dz' => 'Dsongkaa',\n 'el' => 'Gereg',\n 'en' => 'Àngale',\n 'eo' => 'Esperantoo',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/wo.php", "language": "php", "file_size": 4765, "cut_index": 614, "middle_length": 229}} {"prefix": " 'ann' => 'Èdè Obolo',\n 'anp' => 'Èdè Angika',\n 'ar' => 'Èdè Lárúbáwá',\n 'arn' => 'Èdè Mapushe',\n 'arp' => 'Èdè Arapaho',\n 'ars' => 'Èdè Arabiki ti Najidi',\n 'as' => 'Èdè Assam',\n 'asa' => 'Èdè Asu',\n 'ast' => 'Èdè Asturian',\n 'atj' => 'Èdè Atikameki',\n 'av' => 'Èdè Afariki',\n 'awa' => 'Èdè Awadi',\n 'ay' => 'Èdè Amara',\n 'az' => 'Èdè Asabaijani',\n 'ba' => 'Èdè Bashiri',\n 'bal' => 'Èdè Belúṣì',\n '", "suffix": " Bojuri',\n 'bi' => 'Èdè Bisilama',\n 'bin' => 'Èdè Bini',\n 'bla' => 'Èdè Sikiska',\n 'blo' => 'Anii',\n 'bm' => 'Èdè Báḿbàrà',\n 'bn' => 'Èdè Bengali',\n 'bo' => 'Tibetán',\n 'br' => 'Èdè Bretoni',\n ", "middle": "ban' => 'Èdè Balini',\n 'bas' => 'Èdè Basaa',\n 'be' => 'Èdè Belarusi',\n 'bem' => 'Èdè Béḿbà',\n 'bez' => 'Èdè Bẹ́nà',\n 'bg' => 'Èdè Bugaria',\n 'bgc' => 'Èdè Haryanvi',\n 'bho' => 'Èdè", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/yo.php", "language": "php", "file_size": 15284, "cut_index": 921, "middle_length": 229}} {"prefix": "s' => [\n 'aa' => '阿法爾文',\n 'am' => '岩哈拉語',\n 'az' => '阿塞拜疆文',\n 'ba' => '巴什基爾文',\n 'br' => '布里多尼文',\n 'bs' => '波斯尼亞文',\n 'ca' => '加泰隆尼亞文',\n 'crs' => '塞舌爾克里奧爾法文',\n 'den' => '斯拉夫文',\n 'eo' => '世界語',\n 'gil' => '吉爾伯特文',\n 'gl' => '加里西亞文',\n 'gsw' => '瑞士德文',\n 'hr' => '克羅地亞文',\n 'ig' => '伊博文',\n 'it' => '意大利文',\n 'jpr' => '猶太波斯文',\n 'ka' => '格魯吉亞文',\n 'kiu' => '扎扎其文',\n 'kn' => '坎納達文',\n ", "suffix": ",\n 'pcm' => '尼日利亞皮欽文',\n 'rup' => '阿羅馬尼亞語',\n 'rw' => '盧旺達文',\n 'sl' => '斯洛文尼亞文',\n 'sn' => '修納文',\n 'so' => '索馬里文',\n 'syr' => '敍利亞文',\n 'ta' => '泰米爾文',\n 'tn' => '突尼西亞文',\n 'to' => '湯加文',\n ", "middle": " 'kri' => '克裡奧爾文',\n 'lo' => '老撾文',\n 'luo' => '盧歐文',\n 'mfe' => '毛里裘斯克里奧爾文',\n 'mg' => '馬拉加斯文',\n 'ml' => '馬拉雅拉姆文',\n 'mt' => '馬耳他文',\n 'nqo' => '西非書面語言(N’ko)',\n 'or' => '奧里雅文'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/zh_HK.php", "language": "php", "file_size": 2302, "cut_index": 537, "middle_length": 229}} {"prefix": "s' => [\n 'aa' => '阿法爾文',\n 'am' => '岩哈拉語',\n 'az' => '阿塞拜疆文',\n 'ba' => '巴什基爾文',\n 'br' => '布里多尼文',\n 'bs' => '波斯尼亞文',\n 'ca' => '加泰隆尼亞文',\n 'crs' => '塞舌爾克里奧爾法文',\n 'den' => '斯拉夫文',\n 'eo' => '世界語',\n 'gil' => '吉爾伯特文',\n 'gl' => '加里西亞文',\n 'gsw' => '瑞士德文',\n 'hr' => '克羅地亞文',\n 'ig' => '伊博文',\n 'it' => '意大利文',\n 'jpr' => '猶太波斯文',\n 'ka' => '格魯吉亞文',\n 'kiu' => '扎扎其文',\n 'kn' => '坎納達文',\n ", "suffix": ",\n 'pcm' => '尼日利亞皮欽文',\n 'rup' => '阿羅馬尼亞語',\n 'rw' => '盧旺達文',\n 'sl' => '斯洛文尼亞文',\n 'sn' => '修納文',\n 'so' => '索馬里文',\n 'syr' => '敍利亞文',\n 'ta' => '泰米爾文',\n 'tn' => '突尼西亞文',\n 'to' => '湯加文',\n ", "middle": " 'kri' => '克裡奧爾文',\n 'lo' => '老撾文',\n 'luo' => '盧歐文',\n 'mfe' => '毛里裘斯克里奧爾文',\n 'mg' => '馬拉加斯文',\n 'ml' => '馬拉雅拉姆文',\n 'mt' => '馬耳他文',\n 'nqo' => '西非書面語言(N’ko)',\n 'or' => '奧里雅文'", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/zh_Hant_HK.php", "language": "php", "file_size": 2302, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nif ('cli' !== \\PHP_SAPI) {\n throw new Exception('This script must be run from the command line.');\n}\n\ndefine('LINE_WIDTH', 75);\n\ndefine('LINE', str_repeat('-', LINE_WIDTH).\"\\n\");\n\nfunction bailout(string $message): void\n{\n echo wordwrap($message, LINE_WIDTH).\" Aborting.\\n\";\n\n exit(1);\n}\n\n/**\n * @return string\n */\nf", "suffix": "dding = (int) ((LINE_WIDTH - strlen($text)) / 2);\n\n return str_repeat(' ', $padding).$text;\n}\n\nfunction cd(string $dir): void\n{\n if (false === chdir($dir)) {\n bailout(\"Could not switch to directory $dir.\");\n }\n}\n\nfunction run(string $comman", "middle": "unction strip_minor_versions(string $version)\n{\n preg_match('/^(?P<version>[0-9]\\.[0-9]|[0-9]{2,})/', $version, $matches);\n\n return $matches['version'];\n}\n\n/**\n * @return string\n */\nfunction centered(string $text)\n{\n $pa", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/bin/common.php", "language": "php", "file_size": 2316, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Countries;\n\n#[Group('intl-data')]\n#[Group('intl-data-isolate')]\nclass CountriesEnvVarTest extends TestCase\n{\n public function testWhenEnvVarNotSet()\n {\n $this->assertFalse(Countries::exists('XK'));\n }\n\n public", "suffix": "env('SYMFONY_INTL_WITH_USER_ASSIGNED=false');\n\n $this->assertFalse(Countries::exists('XK'));\n }\n\n public function testWhenEnvVarSetTrue()\n {\n putenv('SYMFONY_INTL_WITH_USER_ASSIGNED=true');\n\n $this->assertTrue(Countries::exist", "middle": " function testWhenEnvVarSetFalse()\n {\n put", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/CountriesEnvVarTest.php", "language": "php", "file_size": 932, "cut_index": 606, "middle_length": 52}} {"prefix": " */\n private const COUNTRIES_WITH_USER_ASSIGNED = [\n 'AD',\n 'AE',\n 'AF',\n 'AG',\n 'AI',\n 'AL',\n 'AM',\n 'AO',\n 'AQ',\n 'AR',\n 'AS',\n 'AT',\n 'AU',\n 'AW',\n 'AX',\n 'AZ',\n 'BA',\n 'BB',\n 'BD',\n 'BE',\n 'BF',\n 'BG',\n 'BH',\n 'BI',\n 'BJ',\n 'BL',\n 'BM',\n 'BN',\n 'BO',\n 'BQ',\n 'BR',\n 'BS',\n ", "suffix": ",\n 'CR',\n 'CU',\n 'CV',\n 'CW',\n 'CX',\n 'CY',\n 'CZ',\n 'DE',\n 'DJ',\n 'DK',\n 'DM',\n 'DO',\n 'DZ',\n 'EC',\n 'EE',\n 'EG',\n 'EH',\n 'ER',\n ", "middle": " 'BT',\n 'BV',\n 'BW',\n 'BY',\n 'BZ',\n 'CA',\n 'CC',\n 'CD',\n 'CF',\n 'CG',\n 'CH',\n 'CI',\n 'CK',\n 'CL',\n 'CM',\n 'CN',\n 'CO'", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/CountriesWithUserAssignedTest.php", "language": "php", "file_size": 23808, "cut_index": 1331, "middle_length": 229}} {"prefix": " 'ANG',\n 'AOA',\n 'AOK',\n 'AON',\n 'AOR',\n 'ARA',\n 'ARL',\n 'ARM',\n 'ARP',\n 'ARS',\n 'ATS',\n 'AUD',\n 'AWG',\n 'AZM',\n 'AZN',\n 'BAD',\n 'BAM',\n 'BAN',\n 'BBD',\n 'BDT',\n 'BEC',\n 'BEF',\n 'BEL',\n 'BGL',\n 'BGM',\n 'BGN',\n 'BGO',\n 'BHD',\n 'BIF',\n 'BMD',\n 'BND',\n 'BOB',\n 'BOL',\n 'BOP',\n ", "suffix": " 'BZD',\n 'CAD',\n 'CDF',\n 'CHE',\n 'CHF',\n 'CHW',\n 'CLE',\n 'CLF',\n 'CLP',\n 'CNH',\n 'CNX',\n 'CNY',\n 'COP',\n 'COU',\n 'CRC',\n 'CSD',\n 'CSK',\n ", "middle": " 'BOV',\n 'BRB',\n 'BRC',\n 'BRE',\n 'BRL',\n 'BRN',\n 'BRR',\n 'BRZ',\n 'BSD',\n 'BTN',\n 'BUK',\n 'BWP',\n 'BYB',\n 'BYN',\n 'BYR',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/CurrenciesTest.php", "language": "php", "file_size": 21107, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresFunction;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Locale;\n\nclass LocaleTest extends TestCase\n{\n public static function provideGetFallbackTests()\n {\n $tests = [\n ", "suffix": " ];\n\n if (\\function_exists('locale_parse')) {\n $tests[] = ['sl_Latn_IT', 'sl-Latn-IT-nedis'];\n $tests[] = ['sl_Latn', 'sl-Latn_IT'];\n } else {\n $tests[] = ['sl-Latn-IT', 'sl-Latn-IT-nedis'];\n $test", "middle": " ['sl_Latn_IT', 'sl_Latn_IT_nedis'],\n ['sl_Latn', 'sl_Latn_IT'],\n ['fr', 'fr_FR'],\n ['fr', 'fr-FR'],\n ['en', 'fr'],\n ['root', 'en'],\n [null, 'root'],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/LocaleTest.php", "language": "php", "file_size": 2524, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Util;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Util\\Version;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass VersionTest extends TestCase\n{\n public static function normalizeProvider()\n {\n r", "suffix": "3', '1'],\n [1, '1.2.3.4', '1'],\n [2, '1', '1'],\n [2, '1.2', '1.2'],\n [2, '1.2.3', '1.2'],\n [2, '1.2.3.4', '1.2'],\n [3, '1', '1'],\n [3, '1.2', '1.2'],\n [3, '1.2.3', '1.2", "middle": "eturn [\n [null, '1', '1'],\n [null, '1.2', '1.2'],\n [null, '1.2.3', '1.2.3'],\n [null, '1.2.3.4', '1.2.3.4'],\n [1, '1', '1'],\n [1, '1.2', '1'],\n [1, '1.2.", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Util/VersionTest.php", "language": "php", "file_size": 2503, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests\\Data\\Util;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Intl\\Data\\Util\\LocaleScanner;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass LocaleScannerTest extends TestCase\n{\n private string $directory;\n private Filesystem $filesystem;\n private LocaleScanner ", "suffix": "anner();\n\n $this->filesystem->mkdir($this->directory);\n\n $this->filesystem->touch($this->directory.'/en.txt');\n $this->filesystem->touch($this->directory.'/en_alias.txt');\n $this->filesystem->touch($this->directory.'/en_child.tx", "middle": "$scanner;\n\n protected function setUp(): void\n {\n $this->directory = sys_get_temp_dir().'/LocaleScannerTest/'.random_int(1000, 9999);\n $this->filesystem = new Filesystem();\n $this->scanner = new LocaleSc", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/Data/Util/LocaleScannerTest.php", "language": "php", "file_size": 3140, "cut_index": 614, "middle_length": 229}} {"prefix": "' => 'Tiếng Aramaic',\n 'arn' => 'Tiếng Mapuche',\n 'aro' => 'Tiếng Araona',\n 'arp' => 'Tiếng Arapaho',\n 'arq' => 'Tiếng Ả Rập Algeria',\n 'ars' => 'Tiếng Ả Rập Najdi',\n 'arw' => 'Tiếng Arawak',\n 'arz' => 'Tiếng Ả Rập Ai Cập',\n 'as' => 'Tiếng Assam',\n 'asa' => 'Tiếng Asu',\n 'ase' => 'Ngôn ngữ Ký hiệu Mỹ',\n 'ast' => 'Tiếng Asturias',\n 'atj' => 'Tiếng Atikamekw',\n 'av' => 'Tiếng Avaric',\n 'awa' => 'Tiếng Awadhi',\n ", "suffix": " 'bax' => 'Tiếng Bamun',\n 'bbc' => 'Tiếng Batak Toba',\n 'bbj' => 'Tiếng Ghomala',\n 'be' => 'Tiếng Belarus',\n 'bej' => 'Tiếng Beja',\n 'bem' => 'Tiếng Bemba',\n 'bew' => 'Tiếng Betawi',\n 'bez' => 'Tiếng ", "middle": " 'ay' => 'Tiếng Aymara',\n 'az' => 'Tiếng Azerbaijan',\n 'ba' => 'Tiếng Bashkir',\n 'bal' => 'Tiếng Baloch',\n 'ban' => 'Tiếng Bali',\n 'bar' => 'Tiếng Bavaria',\n 'bas' => 'Tiếng Basaa',\n", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/vi.php", "language": "php", "file_size": 21808, "cut_index": 1331, "middle_length": 229}} {"prefix": "Èdè Ágɛ̀ɛ̀mù',\n 'bal' => 'Èdè Belúshì',\n 'bez' => 'Èdè Bɛ́nà',\n 'chr' => 'Èdè Shɛ́rókiì',\n 'cu' => 'Èdè Síláfííkì Ilé Ìjɔ́sìn',\n 'cv' => 'Èdè Shufasi',\n 'dje' => 'Shárúmà',\n 'dsb' => 'Shóbíánù Apá Ìshàlɛ̀',\n 'ebu' => 'Èdè Ɛmbù',\n 'en' => 'Èdè Gɛ̀ɛ́sì',\n 'es' => 'Èdè Sípáníìshì',\n 'gez' => 'Ede Gɛ́sì',\n 'id' => 'Èdè Indonéshíà',\n 'ie' => 'Èdè àtɔwɔ́dá',\n 'ii' => 'Shíkuán Yì',\n 'jmc' => 'Máshámè',\n ", "suffix": "ì',\n 'nb' => 'Nɔ́ɔ́wè Bokímàl',\n 'nds' => 'Jámánì ìpìlɛ̀',\n 'nl' => 'Èdè Dɔ́ɔ̀shì',\n 'nmg' => 'Kíwáshíò',\n 'nn' => 'Nɔ́ɔ́wè Nínɔ̀sìkì',\n 'nus' => 'Núɛ̀',\n 'nyn' => 'Ńyákɔ́lè',\n 'oc' => 'Èdè Ɔ̀kísítáàn", "middle": "'khq' => 'Koira Shíínì',\n 'kk' => 'Kashakì',\n 'kln' => 'Kálɛnjín',\n 'ks' => 'Kashímirì',\n 'ksb' => 'Sháńbálà',\n 'ku' => 'Kɔdishì',\n 'kw' => 'Èdè Kɔ́nììshì',\n 'lb' => 'Lùshɛ́mbɔ́ɔ̀g", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/yo_BJ.php", "language": "php", "file_size": 3019, "cut_index": 563, "middle_length": 229}} {"prefix": " 'am' => 'isi-Amharic',\n 'an' => 'isi-Aragonese',\n 'ann' => 'isi-Obolo',\n 'anp' => 'isi-Angika',\n 'ar' => 'isi-Arabic',\n 'arn' => 'isi-Mapuche',\n 'arp' => 'isi-Arapaho',\n 'ars' => 'isi-Najdi Arabic',\n 'as' => 'isi-Assamese',\n 'asa' => 'isi-Asu',\n 'ast' => 'isi-Asturian',\n 'atj' => 'isi-Atikamekw',\n 'av' => 'isi-Avaric',\n 'awa' => 'isi-Awadhi',\n 'ay' => 'isi-Aymara',\n 'az' => 'isi-Azerbaijani',\n ", "suffix": "'isi-Bulgari',\n 'bgc' => 'isi-Haryanvi',\n 'bgn' => 'isi-Western Balochi',\n 'bho' => 'isi-Bhojpuri',\n 'bi' => 'isi-Bislama',\n 'bin' => 'isi-Bini',\n 'bla' => 'isi-Siksika',\n 'blo' => 'isi-Anii',\n 'bm' =", "middle": " 'ba' => 'isi-Bashkir',\n 'bal' => 'IsiBaluchi',\n 'ban' => 'isi-Balinese',\n 'bas' => 'isi-Basaa',\n 'be' => 'isi-Belarusian',\n 'bem' => 'isi-Bemba',\n 'bez' => 'isi-Bena',\n 'bg' => ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/zu.php", "language": "php", "file_size": 15046, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Compiler\\GenrbCompiler;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Writer\\PhpBundleWriter;\nuse Symfony\\Component\\Intl\\Data\\Generator\\CurrencyDataGenerator;\nuse Symfony\\Component\\Intl\\Data\\Generator\\GeneratorConfig;\nuse Symfony\\Component\\Intl\\Data\\Generator\\LanguageDataGenerator;\nuse Symfony\\Component\\Intl\\Data\\Generator\\LocaleDataGenerator;\nuse Symfony\\Component\\Intl\\Data\\Generator\\RegionDataGen", "suffix": "l\\Util\\GitRepository;\n\nif ('cli' !== \\PHP_SAPI) {\n throw new Exception('This script must be run from the command line.');\n}\n\nrequire_once __DIR__.'/common.php';\nrequire_once __DIR__.'/autoload.php';\n\n$argc = $_SERVER['argc'];\n$argv = $_SERVER['argv'];\n\n", "middle": "erator;\nuse Symfony\\Component\\Intl\\Data\\Generator\\ScriptDataGenerator;\nuse Symfony\\Component\\Intl\\Data\\Generator\\TimezoneDataGenerator;\nuse Symfony\\Component\\Intl\\Intl;\nuse Symfony\\Component\\Intl\\Locale;\nuse Symfony\\Component\\Int", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/bin/update-data.php", "language": "php", "file_size": 6735, "cut_index": 716, "middle_length": 229}} {"prefix": "/ Include the locales statically so that the data providers are decoupled\n // from the Intl class. Otherwise tests will fail if the intl extension is\n // not loaded, because it is NOT possible to skip the execution of data\n // providers.\n\n private const LOCALES = [\n 'af',\n 'af_NA',\n 'af_ZA',\n 'ak',\n 'ak_GH',\n 'am',\n 'am_ET',\n 'ar',\n 'ar_001',\n 'ar_AE',\n 'ar_BH',\n 'ar_DJ',\n 'ar_DZ',\n 'ar_EG',\n ", "suffix": ",\n 'ar_SA',\n 'ar_SD',\n 'ar_SO',\n 'ar_SS',\n 'ar_SY',\n 'ar_TD',\n 'ar_TN',\n 'ar_YE',\n 'as',\n 'as_IN',\n 'az',\n 'az_AZ',\n 'az_Cyrl',\n 'az_Cyrl_AZ',\n 'az_Lat", "middle": " 'ar_EH',\n 'ar_ER',\n 'ar_IL',\n 'ar_IQ',\n 'ar_JO',\n 'ar_KM',\n 'ar_KW',\n 'ar_LB',\n 'ar_LY',\n 'ar_MA',\n 'ar_MR',\n 'ar_OM',\n 'ar_PS',\n 'ar_QA'", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/ResourceBundleTestCase.php", "language": "php", "file_size": 15670, "cut_index": 921, "middle_length": 229}} {"prefix": "n [\n 'Names' => [\n 'ak' => 'Igikani',\n 'am' => 'Ikimuhariki',\n 'ar' => 'Icarabu',\n 'be' => 'Ikibelarusiya',\n 'bg' => 'Ikinyabuligariya',\n 'bn' => 'Ikibengali',\n 'cs' => 'Igiceke',\n 'de' => 'Ikidage',\n 'el' => 'Ikigereki',\n 'en' => 'Icongereza',\n 'es' => 'Icesipanyolo',\n 'fa' => 'Igiperisi',\n 'fr' => 'Igifaransa',\n 'ha' => 'Igihawusa',\n 'hi' => 'Igihindi',\n 'hu' => 'Ikinyahongiriya',\n 'id", "suffix": "eziya',\n 'my' => 'Ikinyabirimaniya',\n 'ne' => 'Ikinepali',\n 'nl' => 'Igiholandi',\n 'pa' => 'Igipunjabi',\n 'pl' => 'Ikinyapolonye',\n 'pt' => 'Igiporutugari',\n 'rn' => 'Ikirundi',\n 'ro' => 'Ikinyarumani", "middle": "' => 'Ikinyendoziya',\n 'ig' => 'Ikigubo',\n 'it' => 'Igitaliyani',\n 'ja' => 'Ikiyapani',\n 'jv' => 'Ikinyejava',\n 'km' => 'Igikambodiya',\n 'ko' => 'Ikinyakoreya',\n 'ms' => 'Ikinyamal", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/rn.php", "language": "php", "file_size": 1453, "cut_index": 524, "middle_length": 229}} {"prefix": " 'am' => '阿姆哈拉语',\n 'an' => '阿拉贡语',\n 'ang' => '古英语',\n 'ann' => '奥博洛语',\n 'anp' => '昂加语',\n 'ar' => '阿拉伯语',\n 'arc' => '阿拉米语',\n 'arn' => '马普切语',\n 'arp' => '阿拉帕霍语',\n 'ars' => '纳吉迪阿拉伯语',\n 'arw' => '阿拉瓦克语',\n 'as' => '阿萨姆语',\n 'asa' => '帕雷语',\n 'ast' => '阿斯图里亚斯语',\n 'atj' => '阿提卡米克语',\n 'av' => '阿瓦尔语',\n 'awa' => '阿瓦德语',\n 'ay' => '艾马拉语',\n 'az' => '阿塞拜疆语',\n 'ba' => '巴什基尔语',\n 'bal", "suffix": "语',\n 'bg' => '保加利亚语',\n 'bgc' => '哈里亚纳语',\n 'bgn' => '西俾路支语',\n 'bho' => '博杰普尔语',\n 'bi' => '比斯拉马语',\n 'bik' => '比科尔语',\n 'bin' => '比尼语',\n 'bkm' => '科姆语',\n 'bla' => '西克西卡语',\n 'blo' => '阿尼语',\n ", "middle": "' => '俾路支语',\n 'ban' => '巴厘语',\n 'bas' => '巴萨语',\n 'bax' => '巴姆穆语',\n 'bbj' => '戈马拉语',\n 'be' => '白俄罗斯语',\n 'bej' => '贝沙语',\n 'bem' => '本巴语',\n 'bez' => '贝纳语',\n 'bfd' => '巴非特", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/zh.php", "language": "php", "file_size": 19389, "cut_index": 921, "middle_length": 229}} {"prefix": ",\n 'AI',\n 'AL',\n 'AM',\n 'AO',\n 'AQ',\n 'AR',\n 'AS',\n 'AT',\n 'AU',\n 'AW',\n 'AX',\n 'AZ',\n 'BA',\n 'BB',\n 'BD',\n 'BE',\n 'BF',\n 'BG',\n 'BH',\n 'BI',\n 'BJ',\n 'BL',\n 'BM',\n 'BN',\n 'BO',\n 'BQ',\n 'BR',\n 'BS',\n 'BT',\n 'BV',\n 'BW',\n 'BY',\n 'BZ',\n 'CA',\n 'CC',\n 'CD',\n ", "suffix": "',\n 'DJ',\n 'DK',\n 'DM',\n 'DO',\n 'DZ',\n 'EC',\n 'EE',\n 'EG',\n 'EH',\n 'ER',\n 'ES',\n 'ET',\n 'FI',\n 'FJ',\n 'FK',\n 'FM',\n 'FO',\n 'FR',\n ", "middle": " 'CF',\n 'CG',\n 'CH',\n 'CI',\n 'CK',\n 'CL',\n 'CM',\n 'CN',\n 'CO',\n 'CR',\n 'CU',\n 'CV',\n 'CW',\n 'CX',\n 'CY',\n 'CZ',\n 'DE", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/CountriesTest.php", "language": "php", "file_size": 22493, "cut_index": 1331, "middle_length": 229}} {"prefix": "],\n ['AO'],\n ['AQ'],\n ['AR'],\n ['AS'],\n ['AT'],\n ['AU'],\n ['AW'],\n ['AX'],\n ['AZ'],\n ['BA'],\n ['BB'],\n ['BD'],\n ['BE'],\n ['BF'],\n ['BG'],\n ['BH'],\n ['BI'],\n ['BJ'],\n ['BL'],\n ['BM'],\n ['BN'],\n ['BO'],\n ['BQ'],\n ['BR'],\n ['BS'],\n ['BT'],\n ['BV'],\n ['BW'],\n ['BY'],\n ['BZ'],\n ['CA'],\n ['CC'", "suffix": " ['CX'],\n ['CY'],\n ['CZ'],\n ['DE'],\n ['DJ'],\n ['DK'],\n ['DM'],\n ['DO'],\n ['DZ'],\n ['EC'],\n ['EE'],\n ['EG'],\n ['EH'],\n ['ER'],\n ['ES'],\n ['ET'],\n ", "middle": "],\n ['CD'],\n ['CF'],\n ['CG'],\n ['CH'],\n ['CI'],\n ['CK'],\n ['CL'],\n ['CM'],\n ['CN'],\n ['CO'],\n ['CR'],\n ['CU'],\n ['CV'],\n ['CW'],\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/TimezonesTest.php", "language": "php", "file_size": 24280, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Compiler;\n\nuse Symfony\\Component\\Intl\\Exception\\RuntimeException;\n\n/**\n * Compiles .txt resource bundles to binary .res files.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass GenrbCompiler implements BundleCompilerInterfac", "suffix": "ronment variables to be loaded when running \"genrb\".\n *\n * @throws RuntimeException if the \"genrb\" cannot be found\n */\n public function __construct(string $genrb = 'genrb', string $envVars = '')\n {\n exec('which '.$genrb, $output, $", "middle": "e\n{\n private string $genrb;\n\n /**\n * Creates a new compiler based on the \"genrb\" executable.\n *\n * @param string $genrb Optional. The path to the \"genrb\" executable\n * @param string $envVars Optional. Envi", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Compiler/GenrbCompiler.php", "language": "php", "file_size": 1689, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Extension;\n\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Definition\\Processor;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\BadMethodCallException;\nuse Symfony\\", "suffix": "ien@symfony.com>\n */\nabstract class Extension implements ExtensionInterface, ConfigurationExtensionInterface\n{\n private array $processedConfigs = [];\n\n /**\n * Returns the recommended alias to use in XML.\n *\n * This alias is also the manda", "middle": "Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\n\n/**\n * Provides useful features shared by many extensions.\n *\n * @author Fabien Potencier <fab", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Extension/Extension.php", "language": "php", "file_size": 3794, "cut_index": 614, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Extension;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * ExtensionInterface is the interface implemented by container extension classes.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface ", "suffix": "public function load(array $configs, ContainerBuilder $container): void;\n\n /**\n * Returns the recommended alias to use in XML.\n *\n * This alias is also the mandatory prefix to use when using YAML.\n */\n public function getAlias(): stri", "middle": "ExtensionInterface\n{\n /**\n * Loads a specific configuration.\n *\n * @param array<array<mixed>> $configs\n *\n * @throws \\InvalidArgumentException When provided tag is not defined in this extension\n */\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php", "language": "php", "file_size": 1003, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Extension;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\Loader\\DelegatingLoader;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\ClosureL", "suffix": "mfony\\Component\\DependencyInjection\\Loader\\IniFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\n\n/**\n * @author Yonel Ceruto <yonelceruto@gmail.com>\n */\ntrait Extens", "middle": "oader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Loader\\DirectoryLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\GlobFileLoader;\nuse Sy", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Extension/ExtensionTrait.php", "language": "php", "file_size": 2842, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Exception;\n\n/**\n * Thrown when a definition cannot be autowired.\n */\nclass AutowiringFailedException extends RuntimeException\n{\n private ?\\Closure $messageCallback = null;\n\n public function __construct(\n private string $serviceId,\n ", "suffix": " = $message();\n }\n\n if (!$message instanceof \\Closure) {\n parent::__construct($message, $code, $previous);\n\n return;\n }\n\n $this->messageCallback = $message;\n parent::__construct('', $code, $previous)", "middle": " string|\\Closure $message = '',\n int $code = 0,\n ?\\Throwable $previous = null,\n ) {\n if ($message instanceof \\Closure && \\function_exists('xdebug_is_enabled') && xdebug_is_enabled()) {\n $message", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Exception/AutowiringFailedException.php", "language": "php", "file_size": 2000, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Exception;\n\n/**\n * Thrown when trying to inject a parameter into a constructor/method with an incompatible type.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n * @author Julien Maulny <jmaulny@darkmira.fr>\n */\nclass InvalidParameterTypeExc", "suffix": "e instanceof \\ReflectionNamedType ? $acceptedType->getName() : (string) $acceptedType;\n $this->code = $type;\n\n $function = $parameter->getDeclaringFunction();\n $functionName = $function instanceof \\ReflectionMethod\n ? \\sprin", "middle": "eption extends InvalidArgumentException\n{\n public function __construct(string $serviceId, string $type, \\ReflectionParameter $parameter)\n {\n $acceptedType = $parameter->getType();\n $acceptedType = $acceptedTyp", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Exception/InvalidParameterTypeException.php", "language": "php", "file_size": 1315, "cut_index": 524, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Exception;\n\n/**\n * This exception is thrown when a circular reference in a parameter is detected.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass ParameterCircularReferenceException extends RuntimeException\n{\n public function __construct(\n ", "suffix": "revious = null,\n ) {\n parent::__construct(\\sprintf('Circular reference detected for parameter \"%s\" (\"%s\" > \"%s\").', $parameters[0], implode('\" > \"', $parameters), $parameters[0]), 0, $previous);\n }\n\n public function getParameters(): array\n ", "middle": " private array $parameters,\n ?\\Throwable $p", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Exception/ParameterCircularReferenceException.php", "language": "php", "file_size": 902, "cut_index": 547, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Exception;\n\nuse Psr\\Container\\NotFoundExceptionInterface;\n\n/**\n * This exception is thrown when a non-existent parameter is used.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass ParameterNotFoundException extends InvalidArgumentException implements NotFoundExceptionInterface\n{\n /**\n * @param string ", "suffix": "ey that references the non-existent parameter\n * @param \\Throwable|null $previous The previous exception\n * @param string[] $alternatives Some parameter name alternatives\n * @param string|null $nonNestedAlternativ", "middle": " $key The requested parameter key\n * @param string|null $sourceId The service id that references the non-existent parameter\n * @param string|null $sourceKey The parameter k", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Exception/ParameterNotFoundException.php", "language": "php", "file_size": 4228, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Exception;\n\n/**\n * This exception is thrown when a circular reference is detected.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ServiceCircularReferenceException extends RuntimeException\n{\n public function __construct(\n private string $serviceId,\n private a", "suffix": " ) {\n parent::__construct(\\sprintf('Circular reference detected for service \"%s\", path: \"%s\".', $serviceId, implode(' -> ', $path)), 0, $previous);\n }\n\n public function getServiceId(): string\n {\n return $this->serviceId;\n }\n\n ", "middle": "rray $path,\n ?\\Throwable $previous = null,\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Exception/ServiceCircularReferenceException.php", "language": "php", "file_size": 965, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Exception;\n\nuse Psr\\Container\\NotFoundExceptionInterface;\n\n/**\n * This exception is thrown when a non-existent service is requested.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ServiceNotFoundException extends InvalidArgumentExc", "suffix": "\n ?string $msg = null,\n ) {\n if (null !== $msg) {\n // no-op\n } elseif (null === $sourceId) {\n $msg = \\sprintf('You have requested a non-existent service \"%s\".', $id);\n } else {\n $msg = \\sprint", "middle": "eption implements NotFoundExceptionInterface\n{\n public function __construct(\n private string $id,\n private ?string $sourceId = null,\n ?\\Throwable $previous = null,\n private array $alternatives = [],", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Exception/ServiceNotFoundException.php", "language": "php", "file_size": 1719, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\n/**\n * An attribute to tell under which alias a service should be registered or to use the implemented interface if no parameter is given.\n *\n * @author Alan Poulain <contact@alanpoulain.eu>\n */\n#[\\Attribute(\\Attribute::TARGET", "suffix": "public Whether to declare the alias public\n * @param string|list<string> $when The environments under which the class will be registered as a service (i.e. \"dev\", \"test\", \"prod\")\n * @param string|null $target The name of the target to bin", "middle": "_CLASS | \\Attribute::IS_REPEATABLE)]\nclass AsAlias\n{\n /**\n * @var list<string>\n */\n public array $when = [];\n\n /**\n * @param string|null $id The id of the alias\n * @param bool $", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AsAlias.php", "language": "php", "file_size": 1262, "cut_index": 524, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\n/**\n * Declares a decorating service.\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::IS_REPEATABLE)]\nclass AsDecorator\n{\n /**\n * @param ", "suffix": "e decoration is invalid; must be one of the {@see ContainerInterface} constants\n */\n public function __construct(\n public string $decorates,\n public int $priority = 0,\n public int $onInvalid = ContainerInterface::EXCEPTION_ON_IN", "middle": "string $decorates The service id to decorate\n * @param int $priority The priority of this decoration when multiple decorators are declared for the same service\n * @param int $onInvalid The behavior to adopt when th", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AsDecorator.php", "language": "php", "file_size": 1031, "cut_index": 513, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\n/**\n * Declares a class as a decorator of all services with a specific tag.\n *\n * @author Mathias Arlaud <mathias.arlaud@gmail.com>\n */\n#[\\Attribute(\\Attribu", "suffix": "tiple decorators are declared for the same tag\n * @param ContainerInterface::*_REFERENCE $onInvalid The behavior to adopt when no services have the tag; must be one of the {@see ContainerInterface} constants\n */\n public function __construct(\n ", "middle": "te::TARGET_CLASS)]\nclass AsTagDecorator\n{\n /**\n * @param string $tag The tag name to decorate\n * @param int $priority The priority of this decoration when mul", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AsTagDecorator.php", "language": "php", "file_size": 1162, "cut_index": 518, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\n/**\n * An attribute to tell under which index and priority a service class should be found in tagged iterators/locators.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::IS_REPEATABLE)]\nclass AsTaggedItem\n{\n /**\n * @param str", "suffix": "ll be found when consuming tagged iterators/locators\n * @param int|null $priority The priority of the service in iterators/locators; the higher the number, the earlier it will\n */\n public function __construct(\n public ?string $index = ", "middle": "ing|null $index The index at which the service wi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AsTaggedItem.php", "language": "php", "file_size": 950, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\n/**\n * An attribute to tell how a base type should be autoconfigured.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::IS_REPEATABLE)]\nclass Autoconfigure\n{\n /**\n * @param array<array<mixed>>|string[]|null ", "suffix": "ings to declare for the service\n * @param bool|string|null $lazy Whether the service is lazy-loaded\n * @param bool|null $public Whether to declare the service as public\n * @param bool|null ", "middle": "$tags The tags to add to the service\n * @param array<array<mixed>>|null $calls The calls to be made when instantiating the service\n * @param array<string, mixed>|null $bind The bind", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/Autoconfigure.php", "language": "php", "file_size": 2268, "cut_index": 563, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::IS_REPEATABLE)]\nclass AutoconfigureResourceTag extends Autoconfigure\n{\n /**\n * @param string|null $name The resourc", "suffix": "utes The attributes to attach to the resource tag\n */\n public function __construct(?string $name = null, array $attributes = [])\n {\n parent::__construct(\n resourceTags: [\n [$name ?? 0 => $attributes],\n ", "middle": "e tag name to add\n * @param array<mixed> $attrib", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AutoconfigureResourceTag.php", "language": "php", "file_size": 858, "cut_index": 529, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\n/**\n * An attribute to tell how a base type should be tagged.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::IS_REPEATABLE)]\nclass AutoconfigureTag extends Autoconfigure\n{\n /**\n * @param s", "suffix": "param array<mixed> $attributes The attributes to attach to the tag\n */\n public function __construct(?string $name = null, array $attributes = [])\n {\n parent::__construct(\n tags: [\n [$name ?? 0 => $attributes],\n ", "middle": "tring|null $name The tag name to add\n * @", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AutoconfigureTag.php", "language": "php", "file_size": 885, "cut_index": 547, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ArgumentInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\n/**\n * Attribute to tell a parameter how to be autowired.\n *\n * @author", "suffix": "only bool|array $lazy;\n\n /**\n * Use only ONE of the following.\n *\n * @param string|array|ArgumentInterface|null $value Value to inject (ie \"%kernel.project_dir%/some/path\")\n * @param string|null $service S", "middle": " Kevin Bond <kevinbond@gmail.com>\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER | \\Attribute::TARGET_PROPERTY)]\nclass Autowire\n{\n public readonly string|array|Expression|Reference|ArgumentInterface|null $value;\n public read", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/Autowire.php", "language": "php", "file_size": 3423, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Attribute to tell which callable to give to an argument of type Closure.\n */\n#[\\At", "suffix": "e callable to autowire\n * @param string|null $method The method name that will be autowired\n * @param bool|class-string $lazy Whether to use lazy-loading for this argument\n */\n public function __construct(\n string|array|nu", "middle": "tribute(\\Attribute::TARGET_PARAMETER)]\nclass AutowireCallable extends AutowireInline\n{\n /**\n * @param string|array|null $callable The callable to autowire\n * @param string|null $service The service containing th", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AutowireCallable.php", "language": "php", "file_size": 2141, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\n\n/**\n * Allows inline service definition for an argument.\n *\n * Using this att", "suffix": "ezguen.turan@dadadev.com>\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nclass AutowireInline extends Autowire\n{\n public function __construct(string|array|null $class = null, array $arguments = [], array $calls = [], array $properties = [], ?string $pa", "middle": "ribute on a class autowires a new instance\n * which is not shared between different services.\n *\n * $class a FQCN, or an array to define a factory.\n * Use the \"@\" prefix to reference a service.\n *\n * @author Ismail Özgün Turan <o", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AutowireInline.php", "language": "php", "file_size": 2272, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\n\n/**\n * Autowires an iterator of services based on a tag name.\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nclass AutowireIterator extends Autowire\n{\n /**\n * @see ServiceSubscriber", "suffix": "y referencing each service in the tagged collection\n * @param string|string[] $exclude A service id or a list of service ids to exclude\n * @param bool $excludeSelf Whether to automatically exclude the referencing service from t", "middle": "Interface::getSubscribedServices()\n *\n * @param string $tag A tag name to search for to populate the iterator\n * @param string|null $indexAttribute The name of the attribute that defines the ke", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AutowireIterator.php", "language": "php", "file_size": 2360, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Depe", "suffix": "ey => service-type pairs.\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nclass AutowireLocator extends Autowire\n{\n /**\n * @see ServiceSubscriberInterface::getSubscribedServices()\n *\n * @param string|array<string|Autowire|SubscribedService> ", "middle": "ndencyInjection\\TypedReference;\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\n/**\n * Autowires a service locator based on a tag name or an explicit list of k", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AutowireLocator.php", "language": "php", "file_size": 4948, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Tells which method should be turned into a Closure based on the name of the parameter it's attached to.\n ", "suffix": " Whether to use lazy-loading for this argument\n */\n public function __construct(string $service, bool|string $lazy = false)\n {\n parent::__construct([new Reference($service)], lazy: $lazy);\n }\n\n public function buildDefinition(mixe", "middle": "*/\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nclass AutowireMethodOf extends AutowireCallable\n{\n /**\n * @param string $service The service containing the method to autowire\n * @param bool|class-string $lazy", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AutowireMethodOf.php", "language": "php", "file_size": 1193, "cut_index": 518, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Attribute to wrap a service in a closure that returns it.\n */\n#[\\Attribute(\\Attribute::T", "suffix": "R)]\nclass AutowireServiceClosure extends Autowire\n{\n /**\n * @param string $service The service id to wrap in the closure\n */\n public function __construct(string $service)\n {\n parent::__construct(new ServiceClosureArgument(new Refere", "middle": "ARGET_PARAMETE", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/AutowireServiceClosure.php", "language": "php", "file_size": 817, "cut_index": 522, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\n\n/**\n * An attribute to tell how a dependency is used and hint named autowiring aliases.\n *\n * @author Nicolas Grekas <", "suffix": "ruct(public ?string $name = null)\n {\n }\n\n public function getParsedName(): string\n {\n if (null === $this->name) {\n throw new LogicException(\\sprintf('Cannot parse the name of a #[Target] attribute that has not been resolved. D", "middle": "p@tchwork.com>\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER | \\Attribute::TARGET_PROPERTY)]\nfinal class Target\n{\n /**\n * @param string|null $name The name of the target autowiring alias\n */\n public function __const", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/Target.php", "language": "php", "file_size": 2363, "cut_index": 563, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Attribute;\n\n/**\n * An attribute to tell under which environment this class should be registered as a service.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\", "suffix": "GET_FUNCTION | \\Attribute::IS_REPEATABLE)]\nclass When\n{\n /**\n * @param string $env The environment under which the class will be registered as a service (i.e. \"dev\", \"test\", \"prod\")\n */\n public function __construct(public string $env)\n {\n ", "middle": "Attribute::TAR", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Attribute/When.php", "language": "php", "file_size": 791, "cut_index": 514, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Kernel;\n\nuse Symfony\\Component\\Config\\Definition\\Configurator\\DefinitionConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Comp", "suffix": "\n * A base class for DI-powered bundles with built-in configuration hooks.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nabstract class AbstractBundle implements BundleInterface, ConfigurableExtensionInterface\n{\n protected string $name;\n pr", "middle": "onent\\DependencyInjection\\Extension\\ConfigurableExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\n\n/**", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/AbstractBundle.php", "language": "php", "file_size": 2759, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Kernel;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\n/**\n * Base class for DI-powered applications.\n *\n * Provides properties, lifecycle orchestration and public API.\n * Pair with KernelTrait for the container building implementation.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nabstract class AbstractKernel implements KernelInterface\n{\n ", "suffix": "<string, bool> */\n protected static array $freshCache = [];\n\n private string $projectDir;\n\n public function __construct(\n protected string $environment,\n protected bool $debug,\n ) {\n if (!$environment) {\n throw n", "middle": " /** @var array<string, BundleInterface> */\n protected array $bundles = [];\n protected ?ContainerInterface $container = null;\n protected bool $booted = false;\n protected ?float $startTime = null;\n\n /** @var array", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/AbstractKernel.php", "language": "php", "file_size": 6400, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Kernel;\n\nuse Symfony\\Component\\Config\\Definition\\Configuration;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ConfigurableExtensionInterface;\nuse S", "suffix": "pendencyInjection\\Loader\\Configurator\\ContainerConfigurator;\n\n/**\n * @author Yonel Ceruto <yonelceruto@gmail.com>\n *\n * @internal\n */\nclass BundleExtension extends Extension implements PrependExtensionInterface\n{\n use ExtensionTrait;\n\n public functio", "middle": "ymfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionTrait;\nuse Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface;\nuse Symfony\\Component\\De", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/BundleExtension.php", "language": "php", "file_size": 2241, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Kernel;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\n\n/**\n * @author Fabien Potencier <f", "suffix": "lds the bundle.\n *\n * It is only ever called once when the cache is empty.\n */\n public function build(ContainerBuilder $container): void;\n\n /**\n * Returns the container extension that should be implicitly loaded.\n */\n public fu", "middle": "abien@symfony.com>\n */\ninterface BundleInterface\n{\n /**\n * Boots the Bundle.\n */\n public function boot(): void;\n\n /**\n * Shutdowns the Bundle.\n */\n public function shutdown(): void;\n\n /**\n * Bui", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/BundleInterface.php", "language": "php", "file_size": 1417, "cut_index": 524, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Kernel;\n\nuse Symfony\\Component\\Config\\FileLocator as BaseFileLocator;\n\n/**\n * FileLocator uses the KernelInterface to locate resources in bundles.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass FileLocator exten", "suffix": "): string|array\n {\n if (isset($file[0]) && '@' === $file[0]) {\n $resource = $this->kernel->locateResource($file);\n\n return $first ? $resource : [$resource];\n }\n\n return parent::locate($file, $currentPath, $firs", "middle": "ds BaseFileLocator\n{\n public function __construct(\n private KernelInterface $kernel,\n ) {\n parent::__construct();\n }\n\n public function locate(string $file, ?string $currentPath = null, bool $first = true", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/FileLocator.php", "language": "php", "file_size": 1009, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Kernel;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface KernelInterface\n{\n public function boot(): void;\n\n public function shutdown(): void;\n\n /**\n * @return array<string, BundleInt", "suffix": "ns the file path for a given bundle resource.\n *\n * A Resource can be a file or a directory.\n *\n * The resource name must follow the following pattern:\n *\n * \"@BundleName/path/to/a/file.something\"\n *\n * where BundleName ", "middle": "erface>\n */\n public function getBundles(): array;\n\n /**\n * @throws \\InvalidArgumentException when the bundle is not enabled\n */\n public function getBundle(string $name): BundleInterface;\n\n /**\n * Retur", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/KernelInterface.php", "language": "php", "file_size": 2691, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\OutOfBoundsException;\n\n/**\n * This definition extends another definition.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass Chil", "suffix": "finition to inherit from.\n */\n public function getParent(): string\n {\n return $this->parent;\n }\n\n /**\n * Sets the Definition to inherit from.\n *\n * @return $this\n */\n public function setParent(string $parent): stat", "middle": "dDefinition extends Definition\n{\n /**\n * @param string $parent The id of Definition instance to decorate\n */\n public function __construct(\n private string $parent,\n ) {\n }\n\n /**\n * Returns the De", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ChildDefinition.php", "language": "php", "file_size": 2583, "cut_index": 563, "middle_length": 229}} {"prefix": " 'ale' => '阿留申文',\n 'aln' => '蓋格阿爾巴尼亞文',\n 'alt' => '南阿爾泰文',\n 'am' => '阿姆哈拉文',\n 'an' => '阿拉貢文',\n 'ang' => '古英文',\n 'ann' => '奧博洛語',\n 'anp' => '昂加文',\n 'ar' => '阿拉伯文',\n 'arc' => '阿拉米文',\n 'arn' => '馬普切文',\n 'aro' => '阿拉奧納文',\n 'arp' => '阿拉帕霍文',\n 'arq' => '阿爾及利亞阿拉伯文',\n 'ars' => '納吉迪阿拉伯文',\n 'arw' => '阿拉瓦克文',\n 'ary' => '摩洛哥阿拉伯文',\n 'arz' => '埃及阿拉伯文',\n 'as' => '阿薩姆文',\n 'asa' => '阿蘇文'", "suffix": " 'bal' => '俾路支文',\n 'ban' => '峇里文',\n 'bar' => '巴伐利亞文',\n 'bas' => '巴薩文',\n 'bax' => '巴姆穆文',\n 'bbc' => '巴塔克托巴文',\n 'bbj' => '戈馬拉文',\n 'be' => '白俄羅斯文',\n 'bej' => '貝扎文',\n 'bem' => '別姆巴文',\n ", "middle": ",\n 'ase' => '美國手語',\n 'ast' => '阿斯圖里亞文',\n 'atj' => '阿提卡梅克語',\n 'av' => '阿瓦爾文',\n 'avk' => '科塔瓦文',\n 'awa' => '阿瓦文',\n 'ay' => '艾馬拉文',\n 'az' => '亞塞拜然文',\n 'ba' => '巴什喀爾文',\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/zh_Hant.php", "language": "php", "file_size": 21564, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Generator;\n\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Compiler\\BundleCompilerInterface;\nuse Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Data\\Util\\LocaleScanner;\n\n/**\n * The rule for compiling the script bundle.\n *\n * @author Bernhard Sch", "suffix": "uage codes.\n *\n * @var string[]\n */\n private array $scriptCodes = [];\n\n protected function scanLocales(LocaleScanner $scanner, string $sourceDir): array\n {\n return $scanner->scanLocales($sourceDir.'/lang');\n }\n\n protected ", "middle": "ussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass ScriptDataGenerator extends AbstractDataGenerator\n{\n private const DENYLIST = [\n 'Zzzz' => true, // Unknown Script\n ];\n\n /**\n * Collects all available lang", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Generator/ScriptDataGenerator.php", "language": "php", "file_size": 2410, "cut_index": 563, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Writer;\n\n/**\n * Writes .json resource bundles.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass JsonBundleWriter implements BundleWriterInterface\n{\n public function write(string $path, string $lo", "suffix": "f \\Traversable) {\n $value = iterator_to_array($value);\n }\n });\n\n $contents = json_encode($data, \\JSON_PRETTY_PRINT | \\JSON_UNESCAPED_UNICODE).\"\\n\";\n\n file_put_contents($path.'/'.$locale.'.json', $contents);\n ", "middle": "cale, mixed $data): void\n {\n if ($data instanceof \\Traversable) {\n $data = iterator_to_array($data);\n }\n\n array_walk_recursive($data, static function (&$value) {\n if ($value instanceo", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Writer/JsonBundleWriter.php", "language": "php", "file_size": 1003, "cut_index": 512, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Writer;\n\n/**\n * Writes .txt resource bundles.\n *\n * The resulting files can be converted to binary .res files using a\n * {@link \\Symfony\\Component\\Intl\\ResourceBundle\\Compiler\\BundleCompilerInterface}\n * implementation.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt\n *\n * @internal\n */\nclass TextBundleWriter implements BundleWriterInterface\n", "suffix": ";\n\n fclose($file);\n }\n\n /**\n * Writes a \"resourceBundle\" node.\n *\n * @param resource $file The file handle to write to\n * @param mixed $value The value of the node\n *\n * @see http://source.icu-project.org/repos/icu/", "middle": "{\n public function write(string $path, string $locale, mixed $data, bool $fallback = true): void\n {\n $file = fopen($path.'/'.$locale.'.txt', 'w');\n\n $this->writeResourceBundle($file, $locale, $data, $fallback)", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.php", "language": "php", "file_size": 5621, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Reader;\n\nuse Symfony\\Component\\Intl\\Data\\Util\\RecursiveArrayAccess;\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\nuse Symfony\\Component\\Intl\\Exception\\OutOfBoundsException;\nuse Symfony\\Component\\Intl\\Exception\\ResourceBundleNotFoundException;\nuse Symfony\\Component\\Intl\\Locale;\n\n/**\n * Default implementation of {@link BundleEntryReaderInterface}.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @see Bun", "suffix": "ates an entry reader based on the given resource bundle reader.\n */\n public function __construct(\n private BundleReaderInterface $reader,\n ) {\n }\n\n /**\n * Stores a mapping of locale aliases to locales.\n *\n * This mapping ", "middle": "dleEntryReaderInterface\n *\n * @internal\n */\nclass BundleEntryReader implements BundleEntryReaderInterface\n{\n /**\n * A mapping of locale aliases to locales.\n */\n private array $localeAliases = [];\n\n /**\n * Cre", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Reader/BundleEntryReader.php", "language": "php", "file_size": 5809, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Reader;\n\nuse Symfony\\Component\\Intl\\Data\\Util\\ArrayAccessibleResourceBundle;\nuse Symfony\\Component\\Intl\\Exception\\ResourceBundleNotFoundException;\n\n/**\n * Reads binary .res resource bundles.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @in", "suffix": " the \\ResourceBundle class is not available.\n try {\n // Never enable fallback. We want to know if a bundle cannot be found\n $bundle = new \\ResourceBundle($locale, $path, false);\n } catch (\\Exception) {\n $bundl", "middle": "ternal\n */\nclass IntlBundleReader implements BundleReaderInterface\n{\n public function read(string $path, string $locale): mixed\n {\n // Point for future extension: Modify this class so that it works also\n // if", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Reader/IntlBundleReader.php", "language": "php", "file_size": 1529, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Reader;\n\nuse Symfony\\Component\\Intl\\Exception\\ResourceBundleNotFoundException;\nuse Symfony\\Component\\Intl\\Util\\GzipStreamWrapper;\n\n/**\n * Reads .php resource bundles.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @interna", "suffix": " if (\\dirname($fileName) !== $path) {\n throw new ResourceBundleNotFoundException(\\sprintf('The resource bundle \"%s\" does not exist.', $fileName));\n }\n\n if (is_file($fileName.'.gz')) {\n return GzipStreamWrapper::requir", "middle": "l\n */\nclass PhpBundleReader implements BundleReaderInterface\n{\n public function read(string $path, string $locale): mixed\n {\n $fileName = $path.'/'.$locale.'.php';\n\n // prevent directory traversal attacks\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Reader/PhpBundleReader.php", "language": "php", "file_size": 1242, "cut_index": 518, "middle_length": 229}} {"prefix": "Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveEnvPlaceholdersPass;\nuse Symfony\\Component\\DependencyInjection\\Exception\\BadMethodCallException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nus", "suffix": "face;\nuse Symfony\\Component\\DependencyInjection\\LazyProxy\\Instantiator\\InstantiatorInterface;\nuse Symfony\\Component\\DependencyInjection\\LazyProxy\\Instantiator\\LazyServiceInstantiator;\nuse Symfony\\Component\\DependencyInjection\\LazyProxy\\Instantiator\\RealSer", "middle": "e Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInter", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ContainerBuilder.php", "language": "php", "file_size": 66144, "cut_index": 2151, "middle_length": 229}} {"prefix": " null;\n private ?string $file = null;\n private string|array|null $factory = null;\n private bool $shared = true;\n private array $deprecation = [];\n private array $properties = [];\n private array $calls = [];\n private array $instanceof = [];\n private bool $autoconfigured = false;\n private string|array|null $configurator = null;\n private array $tags = [];\n private bool $public = false;\n private bool $synthetic = false;\n private bool $abstract = false;\n private bool $la", "suffix": ";\n\n /**\n * @internal\n *\n * Used to store the name of the inner id when using service decoration together with autowiring\n */\n public ?string $innerServiceId = null;\n\n /**\n * @internal\n *\n * Used to store the behavior to", "middle": "zy = false;\n private ?array $decoratedService = null;\n private bool $autowired = false;\n private array $changes = [];\n private array $bindings = [];\n private array $errors = [];\n\n protected array $arguments = []", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Definition.php", "language": "php", "file_size": 21389, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\n/**\n * The EnvVarProcessorInterface is implemented by objects that manage environment-like variables.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\ninterface EnvV", "suffix": "namespace of the variable; when the empty string is passed, null values should be kept as is\n * @param string $name The name of the variable within the namespace\n * @param \\Closure(string): mixed $getEnv A closure that allows fet", "middle": "arProcessorInterface\n{\n /**\n * Returns the value of the given variable as managed by the current instance.\n *\n * @param-immediately-invoked-callable $getEnv\n *\n * @param string $prefix The ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/EnvVarProcessorInterface.php", "language": "php", "file_size": 1331, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunction;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface;\n\n/**\n * Define some ExpressionLanguage functions.\n *\n * To get a ser", "suffix": "lements ExpressionFunctionProviderInterface\n{\n private ?\\Closure $serviceCompiler;\n\n public function __construct(\n ?callable $serviceCompiler = null,\n private ?\\Closure $getEnv = null,\n ) {\n $this->serviceCompiler = null === $", "middle": "vice, use service('request').\n * To get a parameter, use parameter('kernel.debug').\n * To get an env variable, use env('SOME_VARIABLE').\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass ExpressionLanguageProvider imp", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ExpressionLanguageProvider.php", "language": "php", "file_size": 2185, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\n\n/**\n * Turns public and \"container.reversible\" services back to their ids.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfinal class ReverseContainer\n{\n ", "suffix": ") {\n $this->getServiceId = \\Closure::bind(fn (object $service): ?string => array_search($service, $this->services, true) ?: array_search($service, $this->privates, true) ?: null, $serviceContainer, Container::class);\n }\n\n /**\n * Returns th", "middle": " private \\Closure $getServiceId;\n\n public function __construct(\n private Container $serviceContainer,\n private ContainerInterface $reversibleLocator,\n private string $tagName = 'container.reversible',\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ReverseContainer.php", "language": "php", "file_size": 2250, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\nuse ProxyManager\\Proxy\\LazyLoadingInterface;\nuse Symfony\\Component\\VarExporter\\LazyObjectInterface;\n\n/**\n * Resets provided services.\n *\n * @author Alexander M. Turek <me@derrabus.de>\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ServicesResetter implements ServicesRes", "suffix": "eServices,\n private array $resetMethods,\n private ?\\WeakMap $resetMap = null,\n ) {\n }\n\n public function reset(): void\n {\n foreach ($this->resettableServices as $id => $service) {\n $this->resetInstance($service, (", "middle": "etterInterface\n{\n /**\n * @param \\Traversable<string, object> $resettableServices\n * @param array<string, string|string[]> $resetMethods\n */\n public function __construct(\n private \\Traversable $resettabl", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ServicesResetter.php", "language": "php", "file_size": 2185, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Extension;\n\nuse Symfony\\Component\\Config\\Definition\\Configuration;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Definition\\Configurator\\DefinitionConfigurator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfo", "suffix": "xtension implements ConfigurableExtensionInterface, PrependExtensionInterface\n{\n use ExtensionTrait;\n\n public function configure(DefinitionConfigurator $definition): void\n {\n }\n\n public function prependExtension(ContainerConfigurator $config", "middle": "ny\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\n\n/**\n * An Extension that provides configuration hooks.\n *\n * @author Yonel Ceruto <yonelceruto@gmail.com>\n */\nabstract class AbstractExtension extends E", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Extension/AbstractExtension.php", "language": "php", "file_size": 2199, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\nclass Alias\n{\n private const DEFAULT_DEPRECATION_TEMPLATE = 'The \"%alias_id%\" service alias is deprecated. You should stop using it, as it will be removed in the future.';\n\n private bool $public = false;\n private array $deprecation = [];\n", "suffix": "on isPublic(): bool\n {\n return $this->public;\n }\n\n /**\n * Sets if this Alias is public.\n *\n * @return $this\n */\n public function setPublic(bool $boolean): static\n {\n $this->public = $boolean;\n\n return $th", "middle": "\n public function __construct(\n private string $id,\n bool $public = false,\n ) {\n $this->public = $public;\n }\n\n /**\n * Checks if this DI Alias should be public or not.\n */\n public functi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Alias.php", "language": "php", "file_size": 3306, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Intl\\Intl;\n\nclass IntlTest extends TestCase\n{\n private string $defaultLocale;\n\n protected function setUp(): void\n {\n $th", "suffix": "edChecksIfIntlExtensionIsLoaded()\n {\n $this->assertTrue(Intl::isExtensionLoaded());\n }\n\n public function testGetIcuVersionReadsTheVersionOfInstalledIcuLibrary()\n {\n $this->assertStringMatchesFormat('%d.%d', Intl::getIcuVersion());", "middle": "is->defaultLocale = \\Locale::getDefault();\n }\n\n protected function tearDown(): void\n {\n \\Locale::setDefault($this->defaultLocale);\n }\n\n #[RequiresPhpExtension('intl')]\n public function testIsExtensionLoad", "meta": {"filepath": "src/Symfony/Component/Intl/Tests/IntlTest.php", "language": "php", "file_size": 1493, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\n/**\n * Represents a PHP type-hinted service reference.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass TypedReference extends Reference\n{\n private ?string $name;\n\n /**\n * @param string $id The service ", "suffix": "ame of the argument targeting the service\n * @param array $attributes The attributes to be used\n */\n public function __construct(\n string $id,\n private string $type,\n int $invalidBehavior = ContainerInterface::EXC", "middle": "identifier\n * @param string $type The PHP type of the identified service\n * @param int $invalidBehavior The behavior when the service does not exist\n * @param string|null $name The n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/TypedReference.php", "language": "php", "file_size": 1477, "cut_index": 524, "middle_length": 229}} {"prefix": "k' => 'אַקאַדיש',\n 'am' => 'אַמהאַריש',\n 'an' => 'אַראַגאניש',\n 'ang' => 'אַלט ענגליש',\n 'ar' => 'אַראַביש',\n 'arc' => 'אַראַמיש',\n 'as' => 'אַסאַמיש',\n 'az' => 'אַזערביידזשאַניש',\n 'ban' => 'באַלינעזיש',\n 'bar' => 'בײַעריש',\n 'be' => 'בעלאַרוסיש',\n 'bg' => 'בולגאַריש',\n 'bn' => 'בענגאַליש',\n 'bo' => 'טיבעטיש',\n 'br' => 'ברעטאניש',\n 'bs' => 'באסניש',\n 'ca' => 'קאַטאַלאניש',\n 'ceb' => 'סעבוא", "suffix": "טער־סארביש',\n 'dyo' => 'זשאלא־פֿאני',\n 'el' => 'גריכיש',\n 'en' => 'ענגליש',\n 'enm' => 'מיטל ענגליש',\n 'eo' => 'עספּעראַנטא',\n 'es' => 'שפּאַניש',\n 'et' => 'עסטיש',\n 'eu' => 'באַסקיש',\n 'fa' => ", "middle": "ַניש',\n 'crh' => 'קרים־טערקיש',\n 'cs' => 'טשעכיש',\n 'csb' => 'קאַשוביש',\n 'cu' => 'קלויסטער־סלאַוויש',\n 'cy' => 'וועלשיש',\n 'da' => 'דעניש',\n 'de' => 'דײַטש',\n 'dsb' => 'אונ", "meta": {"filepath": "src/Symfony/Component/Intl/Resources/data/languages/yi.php", "language": "php", "file_size": 5593, "cut_index": 614, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Reader;\n\nuse Symfony\\Component\\Intl\\Data\\Util\\RingBuffer;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass BufferedBundleReader implements BundleReaderInterface\n{\n /** @var RingBuffer<string, m", "suffix": "ction read(string $path, string $locale): mixed\n {\n $hash = $path.'//'.$locale;\n\n if (!isset($this->buffer[$hash])) {\n $this->buffer[$hash] = $this->reader->read($path, $locale);\n }\n\n return $this->buffer[$hash];\n ", "middle": "ixed> */\n private RingBuffer $buffer;\n\n public function __construct(\n private BundleReaderInterface $reader,\n int $bufferSize,\n ) {\n $this->buffer = new RingBuffer($bufferSize);\n }\n\n public fun", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php", "language": "php", "file_size": 1004, "cut_index": 512, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Writer;\n\nuse Symfony\\Component\\VarExporter\\VarExporter;\n\n/**\n * Writes .php resource bundles.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass PhpBundleWriter implements BundleWriterInterface\n{\n pub", "suffix": " $data = iterator_to_array($data);\n }\n\n array_walk_recursive($data, static function (&$value) {\n if ($value instanceof \\Traversable) {\n $value = iterator_to_array($value);\n }\n });\n\n file_put", "middle": "lic function write(string $path, string $locale, mixed $data): void\n {\n $template = <<<'TEMPLATE'\n <?php\n\n return %s;\n\n TEMPLATE;\n\n if ($data instanceof \\Traversable) {\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Writer/PhpBundleWriter.php", "language": "php", "file_size": 1094, "cut_index": 515, "middle_length": 229}} {"prefix": "t\\ServiceLocator as ArgumentServiceLocator;\nuse Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceE", "suffix": "zenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n// Help opcache.preload discover always-neede", "middle": "xception;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\EnvPlaceholderParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\Fro", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Container.php", "language": "php", "file_size": 15041, "cut_index": 921, "middle_length": 229}} {"prefix": "tion\\ParameterCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass EnvVarProcessor implements EnvVarProcessorInterface, ResetInterface\n{\n /** @var \\Traversable<EnvVarLoaderInterface> */\n private \\Traversable $loaders;\n /** @var \\Traversable<EnvVarLoaderInterface> */\n private \\Traversable $originalLoaders;\n private array $loadedVars = [];\n\n /**\n", "suffix": " = $this->loaders = $loaders ?? new \\ArrayIterator();\n }\n\n public static function getProvidedTypes(): array\n {\n return [\n 'base64' => 'string',\n 'bool' => 'bool',\n 'not' => 'bool',\n 'const' => 'bo", "middle": " * @param \\Traversable<EnvVarLoaderInterface>|null $loaders\n */\n public function __construct(\n private ContainerInterface $container,\n ?\\Traversable $loaders = null,\n ) {\n $this->originalLoaders", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/EnvVarProcessor.php", "language": "php", "file_size": 14484, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\n/**\n * Reference represents a service reference.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Reference\n{\n public function __construct(\n private string $id,\n private int $invalidBehavior = ContainerInte", "suffix": "lic function getInvalidBehavior(): int\n {\n return $this->invalidBehavior ??= ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE;\n }\n\n public function __serialize(): array\n {\n $data = [];\n foreach ((array) $this as $k => $v)", "middle": "rface::EXCEPTION_ON_INVALID_REFERENCE,\n ) {\n }\n\n public function __toString(): string\n {\n return $this->id;\n }\n\n /**\n * Returns the behavior to be used when the service does not exist.\n */\n pub", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Reference.php", "language": "php", "file_size": 1333, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Reader;\n\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\n\n/**\n * Reads individual entries of a resource file.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\ninterface BundleEntryReaderInterface extends BundleRead", "suffix": " * like this:\n *\n * TopLevel\n * NestedLevel\n * Entry: Value\n *\n * Then the value can be read by calling:\n *\n * $reader->readEntry('...', 'en', ['TopLevel', 'NestedLevel', 'Entry']);\n *\n ", "middle": "erInterface\n{\n /**\n * Reads an entry from a resource bundle.\n *\n * An entry can be selected from the resource bundle by passing the path\n * to that entry in the bundle. For example, if the bundle is structured\n", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Reader/BundleEntryReaderInterface.php", "language": "php", "file_size": 1877, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ServiceConfigurator extends AbstractServiceConfigurator\n{\n", "suffix": "orTrait;\n use Traits\\ConstructorTrait;\n use Traits\\DecorateTrait;\n use Traits\\DeprecateTrait;\n use Traits\\FactoryTrait;\n use Traits\\FileTrait;\n use Traits\\FromCallableTrait;\n use Traits\\LazyTrait;\n use Traits\\ParentTrait;\n use Tr", "middle": " use Traits\\AbstractTrait;\n use Traits\\ArgumentTrait;\n use Traits\\AutoconfigureTrait;\n use Traits\\AutowireTrait;\n use Traits\\BindTrait;\n use Traits\\CallTrait;\n use Traits\\ClassTrait;\n use Traits\\Configurat", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/ServiceConfigurator.php", "language": "php", "file_size": 1969, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\Dependen", "suffix": " private Definition $defaults;\n private array $instanceof;\n private string $anonymousHash;\n private int $anonymousCount;\n\n public function __construct(\n private ContainerBuilder $container,\n private PhpFileLoader $loader,\n ", "middle": "cyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\VarExporter\\DeepCloner;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ServicesConfigurator extends AbstractConfigurator\n{\n public const FACTORY = 'services';\n\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/ServicesConfigurator.php", "language": "php", "file_size": 6878, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass StackConfigurator extends Abstra", "suffix": "RY = 'stack';\n\n final public function decorate(?string $id, ?string $renamedId = null, int $priority = 0, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE): static\n {\n if ($this->definition->hasTag('container.tag_decor", "middle": "ctServiceConfigurator\n{\n use Traits\\DecorateTrait {\n decorate as private doDecorate;\n decorateTag as private doDecorateTag;\n }\n use Traits\\DeprecateTrait;\n use Traits\\PublicTrait;\n\n public const FACTO", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/StackConfigurator.php", "language": "php", "file_size": 1648, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\ntrait ArgumentTrait\n{\n /**\n * Sets the arguments to pass to the service constructor/factory method.\n *\n * @return $this\n */\n final public function args(array $arguments): static\n {\n $this->definition->setArguments(static::processValue($arguments, true));\n\n ", "suffix": "gument to pass to the service constructor/factory method.\n *\n * @return $this\n */\n final public function arg(string|int $key, mixed $value): static\n {\n $this->definition->setArgument($key, static::processValue($value, true));\n\n ", "middle": " return $this;\n }\n\n /**\n * Sets one ar", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/ArgumentTrait.php", "language": "php", "file_size": 940, "cut_index": 606, "middle_length": 52}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\ntrait AutoconfigureTrait\n{\n /**\n * Sets whether or not instanceof conditionals should be prepended with a global set.\n *\n * @re", "suffix": " *\n * @throws InvalidArgumentException when a parent is already set\n */\n final public function autoconfigure(bool $autoconfigured = true): static\n {\n $this->definition->setAutoconfigured($autoconfigured);\n\n return $this;\n }\n", "middle": "turn $this\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/AutoconfigureTrait.php", "language": "php", "file_size": 808, "cut_index": 536, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\BoundArgument;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\DefaultsConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Instanceof", "suffix": "and of controller actions).\n *\n * @param string $nameOrFqcn A parameter name with its \"$\" prefix, or a FQCN\n * @param mixed $valueOrRef The value or reference to bind\n *\n * @return $this\n */\n final public function bind(string $n", "middle": "Configurator;\n\ntrait BindTrait\n{\n /**\n * Sets bindings.\n *\n * Bindings map $named or FQCN arguments to values that should be\n * injected in the matching parameters (of the constructor, of methods\n * called ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/BindTrait.php", "language": "php", "file_size": 1566, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\ntrait CallTrait\n{\n /**\n * Adds a method to call after service initialization.\n *\n * @param string $method ", "suffix": "\n *\n * @throws InvalidArgumentException on empty $method param\n */\n final public function call(string $method, array $arguments = [], bool $returnsClone = false): static\n {\n $this->definition->addMethodCall($method, static::process", "middle": " The method name to call\n * @param array $arguments An array of arguments to pass to the method call\n * @param bool $returnsClone Whether the call returns the service instance or not\n *\n * @return $this", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/CallTrait.php", "language": "php", "file_size": 1072, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\ntrait DecorateTrait\n{\n /**\n * Sets the service that this service is decora", "suffix": "service id are equals\n */\n final public function decorate(?string $id, ?string $renamedId = null, int $priority = 0, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE): static\n {\n $this->definition->setDecoratedServ", "middle": "ting.\n *\n * @param string|null $id The decorated service id, use null to remove decoration\n *\n * @return $this\n *\n * @throws InvalidArgumentException in case the decorated service id and the new decorated ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/DecorateTrait.php", "language": "php", "file_size": 1904, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\ntrait DeprecateTrait\n{\n /**\n * Whether this definition is deprecated, that means it should not be called anymore.\n", "suffix": "eprecation message to use\n *\n * @return $this\n *\n * @throws InvalidArgumentException when the message template is invalid\n */\n final public function deprecate(string $package, string $version, string $message): static\n {\n $", "middle": " *\n * @param string $package The name of the composer package that is triggering the deprecation\n * @param string $version The version of the package that introduced the deprecation\n * @param string $message The d", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/DeprecateTrait.php", "language": "php", "file_size": 1094, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ReferenceConfigurator;\nuse Symfony\\Component\\ExpressionLanguage\\Expre", "suffix": "ng($factory) && 1 === substr_count($factory, ':')) {\n $factoryParts = explode(':', $factory);\n\n throw new InvalidArgumentException(\\sprintf('Invalid factory \"%s\": the \"service:method\" notation is not available when using PHP-based DI ", "middle": "ssion;\n\ntrait FactoryTrait\n{\n /**\n * Sets a factory.\n *\n * @return $this\n */\n final public function factory(string|array|\\Closure|ReferenceConfigurator|Expression $factory): static\n {\n if (\\is_stri", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/FactoryTrait.php", "language": "php", "file_size": 1329, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\FromCallableConfigurator;\nuse Symfony\\Component\\D", "suffix": "ession $callable): FromCallableConfigurator\n {\n if ($this->definition instanceof ChildDefinition) {\n throw new InvalidArgumentException('The configuration key \"parent\" is unsupported when using \"fromCallable()\".');\n }\n\n f", "middle": "ependencyInjection\\Loader\\Configurator\\ReferenceConfigurator;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\ntrait FromCallableTrait\n{\n final public function fromCallable(string|array|\\Closure|ReferenceConfigurator|Expr", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/FromCallableTrait.php", "language": "php", "file_size": 2503, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\ntrait LazyTrait\n{\n /**\n * Sets the lazy flag of this service.\n *\n * @param bool|string $lazy A FQCN to derivate the lazy proxy from or `true` to make it extend from the definition's c", "suffix": "ublic function lazy(bool|string $lazy = true): static\n {\n $this->definition->setLazy((bool) $lazy);\n if (\\is_string($lazy)) {\n $this->definition->addTag('proxy', ['interface' => $lazy]);\n }\n\n return $this;\n }\n}\n", "middle": "lass\n *\n * @return $this\n */\n final p", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/LazyTrait.php", "language": "php", "file_size": 821, "cut_index": 513, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\ntrait ParentTrait\n{\n /**\n * Sets the Definition to inherit from.", "suffix": " InvalidArgumentException(\\sprintf('A parent cannot be defined when either \"_instanceof\" or \"_defaults\" are also defined for service prototype \"%s\".', $this->id));\n }\n\n if ($this->definition instanceof ChildDefinition) {\n $this->de", "middle": "\n *\n * @return $this\n *\n * @throws InvalidArgumentException when parent cannot be set\n */\n final public function parent(string $parent): static\n {\n if (!$this->allowParent) {\n throw new", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/ParentTrait.php", "language": "php", "file_size": 1459, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\Traits;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\ntrait TagTrait\n{\n /**\n * Adds a tag for this definition.\n *\n * @return $this\n */\n final public function tag(string $name,", "suffix": "teAttributes($name, $attributes);\n\n $this->definition->addTag($name, $attributes);\n\n return $this;\n }\n\n /**\n * Adds a resource tag for this definition.\n *\n * @return $this\n */\n final public function resourceTag(string", "middle": " array $attributes = []): static\n {\n if ('' === $name) {\n throw new InvalidArgumentException(\\sprintf('The tag name for service \"%s\" must be a non-empty string.', $this->id));\n }\n\n $this->valida", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/TagTrait.php", "language": "php", "file_size": 2003, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\ParameterBag;\n\nuse Symfony\\Component\\DependencyInjection\\Container;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ContainerBag extends FrozenParameterBag implements ContainerBagInterface\n{\n public function __construct(\n private Container $container,\n ) {\n }\n\n public function all(): array\n ", "suffix": "g()->all();\n }\n\n public function get(string $name): array|bool|string|int|float|\\UnitEnum|null\n {\n return $this->container->getParameter($name);\n }\n\n public function has(string $name): bool\n {\n return $this->container->hasPa", "middle": " {\n return $this->container->getParameterBa", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ParameterBag/ContainerBag.php", "language": "php", "file_size": 938, "cut_index": 606, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\ParameterBag;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\n\n/**\n * ContainerBagInterface is the interface implemented by objects that manage service container param", "suffix": "Replaces parameter placeholders (%name%) by their values.\n *\n * @template TValue of array<array|scalar>|scalar\n *\n * @param TValue $value\n *\n * @psalm-return (TValue is scalar ? array|scalar : array<array|scalar>)\n *\n * @thr", "middle": "eters.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\ninterface ContainerBagInterface extends ContainerInterface\n{\n /**\n * Gets the service container parameters.\n */\n public function all(): array;\n\n /**\n * ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ParameterBag/ContainerBagInterface.php", "language": "php", "file_size": 1391, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\ParameterBag;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass EnvPlaceholderParameterBag extends ParameterBag\n{\n private string $envPlaceholderUniquePrefix;\n private array $envPlaceholders = [];\n private array $unusedEnvPlaceholders = [];\n private array $provi", "suffix": "$name) {\n $env = substr($name, 4, -1);\n\n if (isset($this->envPlaceholders[$env])) {\n foreach ($this->envPlaceholders[$env] as $placeholder) {\n return $placeholder; // return first result\n ", "middle": "dedTypes = [];\n\n private static int $counter = 0;\n\n public function get(string $name): array|bool|string|int|float|\\UnitEnum|null\n {\n if (str_starts_with($name, 'env(') && str_ends_with($name, ')') && 'env()' !== ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ParameterBag/EnvPlaceholderParameterBag.php", "language": "php", "file_size": 5190, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\ParameterBag;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\n\n/**\n * Holds read-only parameters.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass FrozenParameterBag extends ParameterBag\n{\n /**\n * For performance reasons, the constructo", "suffix": "ters = [],\n protected array $nonEmptyParameters = [],\n ) {\n $this->parameters = $parameters;\n $this->resolved = true;\n }\n\n public function clear(): never\n {\n throw new LogicException('Impossible to call clear() on a ", "middle": "r assumes that\n * all keys are already lowercased.\n *\n * This is always the case when used internally.\n */\n public function __construct(\n array $parameters = [],\n protected array $deprecatedParame", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ParameterBag/FrozenParameterBag.php", "language": "php", "file_size": 2054, "cut_index": 563, "middle_length": 229}} {"prefix": "ndencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\n/**\n * Holds parameters.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass ParameterBag implements ParameterBagInterface\n{\n protected array $parameters = [];\n protected bool $resolved = false;\n prote", "suffix": " $this->parameters = [];\n }\n\n public function add(array $parameters): void\n {\n foreach ($parameters as $key => $value) {\n $this->set($key, $value);\n }\n }\n\n public function all(): array\n {\n return $thi", "middle": "cted array $deprecatedParameters = [];\n protected array $nonEmptyParameters = [];\n\n public function __construct(array $parameters = [])\n {\n $this->add($parameters);\n }\n\n public function clear(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php", "language": "php", "file_size": 9956, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\ParameterBag;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\n\n/**\n * ParameterBagInterface is the interface implemented by objects that manage service container parameters.\n *", "suffix": "function clear(): void;\n\n /**\n * Adds parameters to the service container parameters.\n *\n * @throws LogicException if the parameter cannot be added\n */\n public function add(array $parameters): void;\n\n /**\n * Gets the service co", "middle": "\n * @author Fabien Potencier <fabien@symfony.com>\n */\ninterface ParameterBagInterface\n{\n /**\n * Clears all parameters.\n *\n * @throws LogicException if the ParameterBagInterface cannot be cleared\n */\n public ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php", "language": "php", "file_size": 2377, "cut_index": 563, "middle_length": 229}} {"prefix": "ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ExpressionLanguage;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nabstract class AbstractR", "suffix": "ate ExpressionLanguage $expressionLanguage;\n private bool $inExpression = false;\n\n public function process(ContainerBuilder $container): void\n {\n $this->container = $container;\n\n try {\n $this->processValue($container->getD", "middle": "ecursivePass implements CompilerPassInterface\n{\n protected ?ContainerBuilder $container;\n protected ?string $currentId = null;\n protected bool $skipScalars = false;\n\n private bool $processExpressions = false;\n priv", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php", "language": "php", "file_size": 10635, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * This pass allows bundles to extend the list of behavior-describing tags.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass AddBehaviorDescribingTags", "suffix": " $tags\n */\n public function __construct(\n private array $tags = [],\n ) {\n }\n\n public function process(ContainerBuilder $container): void\n {\n $tags = $container->hasParameter('container.behavior_describing_tags') ? $containe", "middle": "Pass implements CompilerPassInterface\n{\n private const DEFAULT_TAGS = [\n 'container.do_not_inline',\n 'container.service_locator',\n 'container.service_subscriber',\n ];\n\n /**\n * @param list<string>", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AddBehaviorDescribingTagsPass.php", "language": "php", "file_size": 1241, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nfinal class AliasDeprecatedPublicServicesPass extends AbstractRecursivePas", "suffix": "$tags) {\n if (null === $package = $tags[0]['package'] ?? null) {\n throw new InvalidArgumentException(\\sprintf('The \"package\" attribute is mandatory for the \"container.private\" tag on the \"%s\" service.', $id));\n }\n\n ", "middle": "s\n{\n protected bool $skipScalars = true;\n\n private array $aliases = [];\n\n public function process(ContainerBuilder $container): void\n {\n foreach ($container->findTaggedServiceIds('container.private') as $id => ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AliasDeprecatedPublicServicesPass.php", "language": "php", "file_size": 2220, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass InlineServiceConfigurator extends AbstractConfigurator\n{\n use Traits\\ArgumentTrait;\n use T", "suffix": "Traits\\ParentTrait;\n use Traits\\PropertyTrait;\n use Traits\\TagTrait;\n\n public const FACTORY = 'service';\n\n private string $id = '[inline]';\n private bool $allowParent = true;\n private ?string $path = null;\n\n public function __construct", "middle": "raits\\AutowireTrait;\n use Traits\\BindTrait;\n use Traits\\CallTrait;\n use Traits\\ConfiguratorTrait;\n use Traits\\ConstructorTrait;\n use Traits\\FactoryTrait;\n use Traits\\FileTrait;\n use Traits\\LazyTrait;\n use ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/InlineServiceConfigurator.php", "language": "php", "file_size": 1080, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\n/**\n * @author Nicolas G", "suffix": " * @return $this\n */\n final public function set(string $name, mixed $value): static\n {\n if ($value instanceof Expression) {\n throw new InvalidArgumentException(\\sprintf('Using an expression in parameter \"%s\" is not allowed.'", "middle": "rekas <p@tchwork.com>\n */\nclass ParametersConfigurator extends AbstractConfigurator\n{\n public const FACTORY = 'parameters';\n\n public function __construct(\n private ContainerBuilder $container,\n ) {\n }\n\n /**\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/ParametersConfigurator.php", "language": "php", "file_size": 1308, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ReferenceConfigurator extends AbstractConfigurator\n{\n /** @internal */\n protected string $i", "suffix": " */\n final public function ignoreOnInvalid(): static\n {\n $this->invalidBehavior = ContainerInterface::IGNORE_ON_INVALID_REFERENCE;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n final public function nullOnInvalid(): s", "middle": "d;\n\n /** @internal */\n protected int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE;\n\n public function __construct(string $id)\n {\n $this->id = $id;\n }\n\n /**\n * @return $this\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/ReferenceConfigurator.php", "language": "php", "file_size": 1431, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Intl\\Data\\Bundle\\Reader;\n\nuse Symfony\\Component\\Intl\\Exception\\ResourceBundleNotFoundException;\nuse Symfony\\Component\\Intl\\Exception\\RuntimeException;\n\n/**\n * Reads .json resource bundles.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal", "suffix": " if (\\dirname($fileName) !== $path) {\n throw new ResourceBundleNotFoundException(\\sprintf('The resource bundle \"%s\" does not exist.', $fileName));\n }\n\n if (!is_file($fileName)) {\n throw new ResourceBundleNotFoundExce", "middle": "\n */\nclass JsonBundleReader implements BundleReaderInterface\n{\n public function read(string $path, string $locale): mixed\n {\n $fileName = $path.'/'.$locale.'.json';\n\n // prevent directory traversal attacks\n ", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Bundle/Reader/JsonBundleReader.php", "language": "php", "file_size": 1364, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\nuse Psr\\Container\\ContainerInterface as PsrContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exc", "suffix": "interface ContainerInterface extends PsrContainerInterface\n{\n public const RUNTIME_EXCEPTION_ON_INVALID_REFERENCE = 0;\n public const EXCEPTION_ON_INVALID_REFERENCE = 1;\n public const NULL_ON_INVALID_REFERENCE = 2;\n public const IGNORE_ON_INVALI", "middle": "eption\\ServiceNotFoundException;\n\n/**\n * ContainerInterface is the interface implemented by service container classes.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ContainerInterface.php", "language": "php", "file_size": 2327, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\nuse Psr\\Container\\ContainerExceptionInterface;\nuse Psr\\Container\\NotFoundExceptionInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Contracts\\Service\\ServiceCollectionInterface;\nuse Symfony\\Contracts\\Service\\ServiceLocat", "suffix": "ectionInterface<T>\n */\nclass ServiceLocator implements ServiceCollectionInterface\n{\n use ServiceLocatorTrait {\n get as private doGet;\n }\n\n private ?string $externalId = null;\n private ?Container $container = null;\n\n public function ge", "middle": "orTrait;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\n/**\n * @author Robin Chalas <robin.chalas@gmail.com>\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @template-covariant T of mixed\n *\n * @implements ServiceColl", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ServiceLocator.php", "language": "php", "file_size": 5585, "cut_index": 716, "middle_length": 229}} {"prefix": "pendencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\PhpDumper;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Loader\\ClosureLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\AbstractConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Loader\\", "suffix": "nt\\DependencyInjection\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ErrorHandler\\DebugClassLoader;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n// Help opcache.preload discover always-needed symbols\ncla", "middle": "DirectoryLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\GlobFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\IniFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Compone", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/KernelTrait.php", "language": "php", "file_size": 26662, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Kernel;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Clock\\ClockInterface as PsrClockInterface;\nuse Psr\\Container\\ContainerInterface as PsrContainerInterface;\nuse Psr\\EventDispatcher\\EventDispatcherInterface as PsrEventDispatcherInterface;\nuse Psr\\Log\\LoggerAwareInterface;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Config\\ResourceCheckerInterface;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nus", "suffix": "Component\\DependencyInjection\\Compiler\\ResettableServicePass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\EnvVarLoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\EnvVarProcessorInterface;\nu", "middle": "e Symfony\\Component\\DependencyInjection\\Compiler\\AddBehaviorDescribingTagsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/ServicesBundle.php", "language": "php", "file_size": 6776, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Psr\\Clock\\ClockInterface as PsrClockInterface;\nuse Psr\\EventDispatcher\\EventDispatcherInterface as PsrEventDispatcherInterface;\nuse Symfony\\Component\\Clock\\Clock;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Config\\Resource\\Self", "suffix": "or;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\KernelInterface;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ContainerBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\", "middle": "CheckingResourceChecker;\nuse Symfony\\Component\\Config\\ResourceCheckerConfigCacheFactory;\nuse Symfony\\Component\\DependencyInjection\\Config\\ContainerParametersResourceChecker;\nuse Symfony\\Component\\DependencyInjection\\EnvVarProcess", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/Resources/config/services.php", "language": "php", "file_size": 4471, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader;\n\n/**\n * DirectoryLoader is a recursive loader to go through directories.\n *\n * @author Sebastien Lavoie <seb@wemakecustom.com>\n */\nclass DirectoryLoader extends FileLoader\n{\n public function load(mixed $file, ?string $type = nu", "suffix": "\n if (is_dir($path.'/'.$dir)) {\n $dir .= '/'; // append / to allow recursion\n }\n\n $this->setCurrentDir($path);\n\n $this->import($dir, null, false, $path);\n }\n }", "middle": "ll): mixed\n {\n $file = rtrim($file, '/');\n $path = $this->locator->locate($file);\n $this->container->fileExists($path, false);\n\n foreach (scandir($path) as $dir) {\n if ('.' !== $dir[0]) {", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/DirectoryLoader.php", "language": "php", "file_size": 1289, "cut_index": 524, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader;\n\n/**\n * GlobFileLoader loads files from a glob pattern.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass GlobFileLoader extends FileLoader\n{\n public function load(mixed $resource, ?string $type = null): mixed\n {\n foreach (", "suffix": "h => $info) {\n $this->import($path);\n }\n\n $this->container->addResource($globResource);\n\n return null;\n }\n\n public function supports(mixed $resource, ?string $type = null): bool\n {\n return 'glob' === $type;\n ", "middle": "$this->glob($resource, false, $globResource) as $pat", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/GlobFileLoader.php", "language": "php", "file_size": 850, "cut_index": 535, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader;\n\nuse Symfony\\Component\\DependencyInjection\\Attribute\\When;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\WhenNot;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\App;\nuse Symfony\\Component\\Depende", "suffix": "nd the $container variable can be\n * used within the file to change the container.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass PhpFileLoader extends FileLoader\n{\n use ContentLoaderTrait;\n\n protected bool $autoRegisterAliasesForSingl", "middle": "ncyInjection\\Loader\\Configurator\\AppReference;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\n\n/**\n * PhpFileLoader loads service definitions from a PHP file.\n *\n * The PHP file is required a", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php", "language": "php", "file_size": 8983, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader;\n\nclass UndefinedExtensionHandler\n{\n private const BUNDLE_EXTENSIONS = [\n 'debug' => 'DebugBundle',\n 'doctrine' => 'DoctrineBundle',\n 'doctrine_migrations' => 'DoctrineMigrationsBundle',\n 'framework' => 'Framework", "suffix": "IconsBundle',\n 'web_profiler' => 'WebProfilerBundle',\n ];\n\n public static function getErrorMessage(string $extensionName, ?string $loadingFilePath, string $namespaceOrAlias, array $foundExtensionNamespaces): string\n {\n $message = '';", "middle": "Bundle',\n 'maker' => 'MakerBundle',\n 'monolog' => 'MonologBundle',\n 'security' => 'SecurityBundle',\n 'twig' => 'TwigBundle',\n 'twig_component' => 'TwigComponentBundle',\n 'ux_icons' => 'UX", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/UndefinedExtensionHandler.php", "language": "php", "file_size": 1731, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\n\nabstract class AbstractServiceConfigurator extends AbstractConfigurator\n{\n private array $defaultTags = [];\n\n public", "suffix": " $this->defaultTags = $defaultTags;\n }\n\n public function __destruct()\n {\n // default tags should be added last\n foreach ($this->defaultTags as $name => $attributes) {\n foreach ($attributes as $attribute) {\n ", "middle": " function __construct(\n protected ServicesConfigurator $parent,\n Definition $definition,\n protected ?string $id = null,\n array $defaultTags = [],\n ) {\n $this->definition = $definition;\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/AbstractServiceConfigurator.php", "language": "php", "file_size": 2956, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Config\\Loader\\ParamConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Argument\\AbstractArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse S", "suffix": "cyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\UndefinedExtensionHandler;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ContainerConfigurator extends Abstra", "middle": "ymfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\Dependen", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/ContainerConfigurator.php", "language": "php", "file_size": 8631, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass DefaultsConfigurator extends AbstractServiceConfigurator\n{\n use", "suffix": " Definition $definition,\n private ?string $path = null,\n ) {\n parent::__construct($parent, $definition, null, []);\n }\n\n /**\n * Adds a tag for this definition.\n *\n * @return $this\n *\n * @throws InvalidArgumentExc", "middle": " Traits\\AutoconfigureTrait;\n use Traits\\AutowireTrait;\n use Traits\\BindTrait;\n use Traits\\PublicTrait;\n\n public const FACTORY = 'defaults';\n\n public function __construct(\n ServicesConfigurator $parent,\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/DefaultsConfigurator.php", "language": "php", "file_size": 2884, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass InstanceofConfigurator extends AbstractServiceConfigurator\n{\n use Traits\\AutowireTrait;\n use Traits", "suffix": "s\\TagTrait;\n\n public const FACTORY = 'instanceof';\n\n public function __construct(\n ServicesConfigurator $parent,\n Definition $definition,\n string $id,\n private ?string $path = null,\n ) {\n parent::__construct($par", "middle": "\\BindTrait;\n use Traits\\CallTrait;\n use Traits\\ConfiguratorTrait;\n use Traits\\ConstructorTrait;\n use Traits\\LazyTrait;\n use Traits\\PropertyTrait;\n use Traits\\PublicTrait;\n use Traits\\ShareTrait;\n use Trait", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/InstanceofConfigurator.php", "language": "php", "file_size": 1269, "cut_index": 524, "middle_length": 229}} {"prefix": " Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleEntryReaderInterface;\nuse Symfony\\Component\\Intl\\Data\\Util\\ArrayAccessibleResourceBundle;\nuse Symfony\\Component\\Intl\\Data\\Util\\LocaleScanner;\nuse Symfony\\Component\\Intl\\Exception\\MissingResourceException;\n\n/**\n * The rule for compiling the zone bundle.\n *\n * @author Roland Franssen <franssen.roland@gmail.com>\n *\n * @internal\n */\nclass TimezoneDataGenerator extends AbstractDataGenerator\n{\n use FallbackTrait;\n\n /**\n * Collects all available zone IDs.\n", "suffix": "Scanner $scanner, string $sourceDir): array\n {\n $this->localeAliases = $scanner->scanAliases($sourceDir.'/locales');\n\n return $scanner->scanLocales($sourceDir.'/zone');\n }\n\n protected function compileTemporaryBundles(BundleCompilerIn", "middle": " *\n * @var string[]\n */\n private array $zoneIds = [];\n private array $zoneToCountryMapping = [];\n private array $localeAliases = [];\n private array $ianaMap = [];\n\n protected function scanLocales(Locale", "meta": {"filepath": "src/Symfony/Component/Intl/Data/Generator/TimezoneDataGenerator.php", "language": "php", "file_size": 10436, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage as BaseExpressionLanguage;\n\nif (!class_exists(BaseExpressionLanguage::class)) {\n return;\n}\n\n/**\n * Adds some function to the defa", "suffix": "ce $cache = null, iterable $providers = [], ?callable $serviceCompiler = null, ?\\Closure $getEnv = null)\n {\n if (!\\is_array($providers)) {\n $providers = iterator_to_array($providers, false);\n }\n\n // prepend the default pr", "middle": "ult ExpressionLanguage.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @see ExpressionLanguageProvider\n */\nclass ExpressionLanguage extends BaseExpressionLanguage\n{\n public function __construct(?CacheItemPoolInterfa", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/ExpressionLanguage.php", "language": "php", "file_size": 1194, "cut_index": 518, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Kernel;\n\n/**\n * Declares a bundle dependency that should be auto-registered.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::IS_REPEATABLE)]\nfinal class RequiredBundle\n{\n /**\n * @para", "suffix": " bundle class to require\n * @param bool $ignoreOnInvalid Whether to silently skip if the class doesn't exist\n */\n public function __construct(\n public string $class,\n public bool $ignoreOnInvalid = false,\n ", "middle": "m class-string<BundleInterface> $class The", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Kernel/RequiredBundle.php", "language": "php", "file_size": 852, "cut_index": 529, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader;\n\nuse Symfony\\Component\\Config\\Loader\\Loader;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * ClosureLoader loads service definitions from a PHP closure.\n *\n * The Closure has access to the container as", "suffix": " parent::__construct($env);\n }\n\n public function load(mixed $resource, ?string $type = null): mixed\n {\n return $resource($this->container, $this->env);\n }\n\n public function supports(mixed $resource, ?string $type = null): bool\n", "middle": " its first argument.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass ClosureLoader extends Loader\n{\n public function __construct(\n private ContainerBuilder $container,\n ?string $env = null,\n ) {\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/ClosureLoader.php", "language": "php", "file_size": 1060, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader;\n\nuse Symfony\\Component\\Config\\Util\\XmlUtils;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\n/**\n * IniFileLoader loads parameters from INI files.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass IniFileLoader extends FileLoader\n{\n public function load(mixed $resource, ?st", "suffix": " if (false === $result || [] === $result) {\n throw new InvalidArgumentException(\\sprintf('The \"%s\" file is not valid.', $resource));\n }\n\n // real raw parsing\n $result = parse_ini_file($path, true, \\INI_SCANNER_RAW);\n\n ", "middle": "ring $type = null): mixed\n {\n $path = $this->locator->locate($resource);\n\n $this->container->fileExists($path);\n\n // first pass to catch parsing errors\n $result = parse_ini_file($path, true);\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/IniFileLoader.php", "language": "php", "file_size": 3229, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Component\\Yaml\\Parser as YamlParse", "suffix": "rotected bool $autoRegisterAliasesForSinglyImplementedInterfaces = false;\n\n private YamlParser $yamlParser;\n\n public function load(mixed $resource, ?string $type = null): mixed\n {\n $path = $this->locator->locate($resource);\n\n $conten", "middle": "r;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * YamlFileLoader loads YAML files service definitions.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass YamlFileLoader extends FileLoader\n{\n use ContentLoaderTrait;\n\n p", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php", "language": "php", "file_size": 4506, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Config\\Loader\\ParamConfigurator;\n\nclass EnvConfigurator extends ParamConfigurator\n{\n /**\n * @var string[]\n */\n private array $stack;\n\n public function __construct(string $name)\n {\n $this->stack = explode(':', $name);\n }\n\n public function __toString():", "suffix": "ce(['/([A-Z]+)([A-Z][a-z])/', '/([a-z\\d])([A-Z])/'], '\\1_\\2', $name));\n\n $this->custom($processor, ...$arguments);\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function custom(string $processor, ...$args): static\n ", "middle": " string\n {\n return '%env('.implode(':', $this->stack).')%';\n }\n\n /**\n * @return $this\n */\n public function __call(string $name, array $arguments): static\n {\n $processor = strtolower(preg_repla", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/EnvConfigurator.php", "language": "php", "file_size": 4152, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\VarExporter\\DeepCloner;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass PrototypeConfigurator extends Abst", "suffix": "rTrait;\n use Traits\\ConstructorTrait;\n use Traits\\DeprecateTrait;\n use Traits\\FactoryTrait;\n use Traits\\LazyTrait;\n use Traits\\ParentTrait;\n use Traits\\PropertyTrait;\n use Traits\\PublicTrait;\n use Traits\\ShareTrait;\n use Traits\\T", "middle": "ractServiceConfigurator\n{\n use Traits\\AbstractTrait;\n use Traits\\ArgumentTrait;\n use Traits\\AutoconfigureTrait;\n use Traits\\AutowireTrait;\n use Traits\\BindTrait;\n use Traits\\CallTrait;\n use Traits\\Configurato", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/PrototypeConfigurator.php", "language": "php", "file_size": 2512, "cut_index": 563, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Extension;\n\nuse Symfony\\Component\\Config\\Definition\\ConfigurableInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\n\n/**\n ", "suffix": "rependExtension(ContainerConfigurator $configurator, ContainerBuilder $container): void;\n\n /**\n * Loads a specific configuration.\n */\n public function loadExtension(array $config, ContainerConfigurator $configurator, ContainerBuilder $contain", "middle": "* @author Yonel Ceruto <yonelceruto@gmail.com>\n */\ninterface ConfigurableExtensionInterface extends ConfigurableInterface\n{\n /**\n * Allows an extension to prepend the extension configurations.\n */\n public function p", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Extension/ConfigurableExtensionInterface.php", "language": "php", "file_size": 1010, "cut_index": 512, "middle_length": 229}} {"prefix": "fony\\Component\\DependencyInjection\\Attribute\\Target;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\When;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\WhenNot;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\RegisterAutoconfigureAttributesPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nu", "suffix": "ncier <fabien@symfony.com>\n */\nabstract class FileLoader extends BaseFileLoader\n{\n public const ANONYMOUS_ID_REGEXP = ContainerBuilder::ANONYMOUS_ID_REGEXP;\n\n protected bool $isLoadingInstanceof = false;\n protected array $instanceof = [];\n prot", "middle": "se Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\VarExporter\\DeepCloner;\n\n/**\n * FileLoader is the abstract class used by all built-in loaders that are file based.\n *\n * @author Fabien Pote", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/FileLoader.php", "language": "php", "file_size": 17561, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\n// For the phpdoc to remain compatible with the generation of per-app App class,\n// this file should have no \"use\" statements: all symbols referenced by\n// the phpdoc need to be in the current namespace or be root-scoped.\n\n/**\n * This class provides array-shapes for configuring the services and bundles of an application.\n *\n * Services declared with the config() method below are autowired and autoconfigur", "suffix": "::config([\n * 'services' => [\n * 'App\\\\' => [\n * 'resource' => '../src/',\n * ],\n * ],\n * ]);\n * ```\n *\n * @psalm-type ImportsConfig = list<string|array{\n * resource: string,\n * type?: ", "middle": "ed by default.\n *\n * This is for apps only. Bundles SHOULD NOT use it.\n *\n * Example:\n *\n * ```php\n * // config/services.php\n * namespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n *\n * return App", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/AppReference.php", "language": "php", "file_size": 6117, "cut_index": 716, "middle_length": 229}} {"prefix": "arent',\n 'class' => 'class',\n 'shared' => 'shared',\n 'synthetic' => 'synthetic',\n 'lazy' => 'lazy',\n 'public' => 'public',\n 'abstract' => 'abstract',\n 'deprecated' => 'deprecated',\n 'factory' => 'factory',\n 'file' => 'file',\n 'arguments' => 'arguments',\n 'properties' => 'properties',\n 'configurator' => 'configurator',\n 'calls' => 'calls',\n 'tags' => 'tags',\n 'resource_tags' => 'resource_tags',\n 'd", "suffix": "'decorates_tag',\n 'autowire' => 'autowire',\n 'autoconfigure' => 'autoconfigure',\n 'bind' => 'bind',\n 'constructor' => 'constructor',\n ];\n\n private const PROTOTYPE_KEYWORDS = [\n 'resource' => 'resource',\n 'nam", "middle": "ecorates' => 'decorates',\n 'decoration_inner_name' => 'decoration_inner_name',\n 'decoration_priority' => 'decoration_priority',\n 'decoration_on_invalid' => 'decoration_on_invalid',\n 'decorates_tag' => ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/ContentLoaderTrait.php", "language": "php", "file_size": 43552, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass FromCallableConfigurator extends AbstractServiceConfigurator\n{\n use Traits\\AbstractTrait;\n us", "suffix": " use Traits\\TagTrait;\n\n public const FACTORY = 'services';\n\n public function __construct(\n private ServiceConfigurator $serviceConfigurator,\n Definition $definition,\n ) {\n parent::__construct($serviceConfigurator->parent, $de", "middle": "e Traits\\AutoconfigureTrait;\n use Traits\\AutowireTrait;\n use Traits\\BindTrait;\n use Traits\\DecorateTrait;\n use Traits\\DeprecateTrait;\n use Traits\\LazyTrait;\n use Traits\\PublicTrait;\n use Traits\\ShareTrait;\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/FromCallableConfigurator.php", "language": "php", "file_size": 1144, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Config\\Loader\\ParamConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\Argument\\AbstractArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ArgumentInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInje", "suffix": "igurator\n{\n public const FACTORY = 'unknown';\n\n /**\n * @var \\Closure(mixed, bool):mixed|null\n */\n public static ?\\Closure $valuePreProcessor = null;\n\n /** @internal */\n protected Definition|Alias|null $definition = null;\n\n public ", "middle": "ction\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Parameter;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\nabstract class AbstractConf", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Loader/Configurator/AbstractConfigurator.php", "language": "php", "file_size": 5267, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\n/**\n * @author Alexander M. Turek <me@derrabus.de>\n */\nfinal class AttributeAutoconfigurationPass extends A", "suffix": " private array $parameterAttributeConfigurators = [];\n\n public function process(ContainerBuilder $container): void\n {\n if (!$container->getAttributeAutoconfigurators()) {\n return;\n }\n\n foreach ($container->getAttribut", "middle": "bstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private array $classAttributeConfigurators = [];\n private array $methodAttributeConfigurators = [];\n private array $propertyAttributeConfigurators = [];\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AttributeAutoconfigurationPass.php", "language": "php", "file_size": 7072, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\n/**\n * Sets a service to be an alias of", "suffix": "alias') as $serviceId => $tags) {\n foreach ($tags as $tag) {\n if (!isset($tag['format'])) {\n throw new InvalidArgumentException(\\sprintf('Missing tag information \"format\" on auto_alias service \"%s\".', $serviceId", "middle": " another one, given a format pattern.\n */\nclass AutoAliasServicePass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n foreach ($container->findTaggedServiceIds('auto_", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AutoAliasServicePass.php", "language": "php", "file_size": 1426, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component", "suffix": "ic function process(ContainerBuilder $container): void\n {\n if (!$container->has('services_resetter')) {\n return;\n }\n\n $services = $methods = [];\n $hasNonShared = false;\n\n foreach ($container->findTaggedServi", "middle": "\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * @author Alexander M. Turek <me@derrabus.de>\n */\nclass ResettableServicePass implements CompilerPassInterface\n{\n publ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResettableServicePass.php", "language": "php", "file_size": 2673, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireInline;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Sy", "suffix": "r Ismail Özgün Turan <oezguen.turan@dadadev.com>\n */\nclass ResolveAutowireInlineAttributesPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private int $counter;\n\n protected function processValue(mixed $value, bool $isRoo", "middle": "mfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\n\n/**\n * Inspects existing autowired services for {@see AutowireInline} attributes and registers the definitions for reuse.\n *\n * @autho", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveAutowireInlineAttributesPass.php", "language": "php", "file_size": 4623, "cut_index": 614, "middle_length": 229}} {"prefix": "rgument\\BoundArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Target;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Dep", "suffix": "ot <guilhem.niot@gmail.com>\n */\nclass ResolveBindingsPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private array $usedBindings = [];\n private array $unusedBindings = [];\n private array $errorMessages = [];\n\n pub", "middle": "endencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\n\n/**\n * @author Guilhem Ni", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveBindingsPass.php", "language": "php", "file_size": 11040, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ExceptionInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\n\n/**\n * This re", "suffix": "ass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private array $currentPath;\n\n protected function processValue(mixed $value, bool $isRoot = false): mixed\n {\n if (!$value instanceof Definition) {\n retu", "middle": "places all ChildDefinition instances with their equivalent fully\n * merged Definition instance.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ResolveChildDefinitionsP", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveChildDefinitionsPass.php", "language": "php", "file_size": 7625, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\n/**\n * @author Nicolas Grekas <p@tchwork.c", "suffix": "tion->isSynthetic()\n || $definition->hasErrors()\n || null !== $definition->getClass()\n || !preg_match('/^[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*+(?:\\\\\\\\[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*+)++$/', $id)\n ", "middle": "om>\n */\nclass ResolveClassPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n foreach ($container->getDefinitions() as $id => $definition) {\n if ($defini", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveClassPass.php", "language": "php", "file_size": 1936, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\Servi", "suffix": "s Grekas <p@tchwork.com>\n */\nclass ResolveDecoratorStackPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n $stacks = [];\n\n foreach ($container->getDefinitions() as $id => $definition)", "middle": "ceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\VarExporter\\DeepCloner;\n\n/**\n * @author Nicola", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveDecoratorStackPass.php", "language": "php", "file_size": 7029, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * Replaces env var placeholders by their current values.\n */\nclass ResolveEnvPlaceholdersPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = false;\n\n /**\n ", "suffix": " true to resolve to the actual values of the referenced env vars\n */\n public function __construct(\n private string|bool|null $format = true,\n ) {\n }\n\n protected function processValue(mixed $value, bool $isRoot = false): ", "middle": " * @param string|true|null $format A sprintf() format returning the replacement for each env var name or\n * null to resolve back to the original \"%env(VAR)%\" format or\n * ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveEnvPlaceholdersPass.php", "language": "php", "file_size": 1872, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\n/**\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n */\nclass ResolveFactoryClass", "suffix": "value->getFactory()) && null === $factory[0]) {\n if (null === $class = $value->getClass()) {\n throw new RuntimeException(\\sprintf('The \"%s\" service is defined to be created by a factory, but is missing the factory class. Did you f", "middle": "Pass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n protected function processValue(mixed $value, bool $isRoot = false): mixed\n {\n if ($value instanceof Definition && \\is_array($factory = $", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveFactoryClassPass.php", "language": "php", "file_size": 1235, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ArgumentInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Propagate \"container.", "suffix": "ublic function process(ContainerBuilder $container): void\n {\n try {\n parent::process($container);\n $container->getDefinition('service_container')->clearTag('container.hot_path');\n } finally {\n $this->resolv", "middle": "hot_path\" tags to referenced services.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ResolveHotPathPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private array $resolvedIds = [];\n\n p", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveHotPathPass.php", "language": "php", "file_size": 2274, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\VarExporter\\DeepCloner;\n\n/**\n * Applies instanceof conditionals to definitio", "suffix": "AutoconfiguredInstanceof() as $interface => $definition) {\n if ($definition->getArguments()) {\n throw new InvalidArgumentException(\\sprintf('Autoconfigured instanceof for type \"%s\" defines arguments but these are not supported and", "middle": "ns.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ResolveInstanceofConditionalsPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n foreach ($container->get", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveInstanceofConditionalsPass.php", "language": "php", "file_size": 7128, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ArgumentInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\Depend", "suffix": "within the\n * container.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ResolveInvalidReferencesPass implements CompilerPassInterface\n{\n private ContainerBuilder $container;\n private RuntimeException $signalingException;\n priva", "middle": "encyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\n\n/**\n * Emulates the invalid behavior if the reference is not found ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveInvalidReferencesPass.php", "language": "php", "file_size": 5518, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\AbstractArgument;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\n\n/**\n * Resolves named arguments to their corresponding numeric index.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>", "suffix": "ractArgument && $value->getText().'.' === $value->getTextWithContext()) {\n $value->setContext(\\sprintf('A value found in service \"%s\"', $this->currentId));\n }\n\n if (!$value instanceof Definition) {\n return parent::proces", "middle": "\n */\nclass ResolveNamedArgumentsPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n protected function processValue(mixed $value, bool $isRoot = false): mixed\n {\n if ($value instanceof Abst", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveNamedArgumentsPass.php", "language": "php", "file_size": 6075, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Propagate the \"container.no_preload\" tag.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\n", "suffix": "ntainerBuilder $container): void\n {\n $this->container = $container;\n\n try {\n foreach ($container->getDefinitions() as $id => $definition) {\n if ($definition->isPublic() && !isset($this->resolvedIds[$id])) {\n ", "middle": "class ResolveNoPreloadPass extends AbstractRecursivePass\n{\n private const DO_PRELOAD_TAG = '.container.do_preload';\n\n protected bool $skipScalars = true;\n\n private array $resolvedIds = [];\n\n public function process(Co", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveNoPreloadPass.php", "language": "php", "file_size": 2980, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * Resolves all parameter placeholders \"", "suffix": "rBagInterface $bag;\n\n public function __construct(\n private bool $resolveArrays = true,\n private bool $throwOnResolveException = true,\n ) {\n }\n\n /**\n * @throws ParameterNotFoundException\n */\n public function process(Con", "middle": "%somevalue%\" to their real values.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ResolveParameterPlaceHoldersPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = false;\n\n private Paramete", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveParameterPlaceHoldersPass.php", "language": "php", "file_size": 3176, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Replaces all references to aliases with references to the ", "suffix": "er $container): void\n {\n parent::process($container);\n\n foreach ($container->getAliases() as $id => $alias) {\n $aliasId = (string) $alias;\n $this->currentId = $id;\n\n if ($aliasId !== $defId = $this->getDefi", "middle": "actual service.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ResolveReferencesToAliasesPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n public function process(ContainerBuild", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveReferencesToAliasesPass.php", "language": "php", "file_size": 2922, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Contracts\\Service\\ServiceProviderInterface;\n\n/**\n * Compiler pass to inject their s", "suffix": "tor = null;\n\n protected function processValue(mixed $value, bool $isRoot = false): mixed\n {\n if ($value instanceof Reference && $this->serviceLocator && \\in_array((string) $value, [ContainerInterface::class, ServiceProviderInterface::class], t", "middle": "ervice locator to service subscribers.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ResolveServiceSubscribersPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private ?string $serviceLoca", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveServiceSubscribersPass.php", "language": "php", "file_size": 1706, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\n\n/**\n * Resolves all TaggedIteratorArgument arguments.\n *\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nclass ResolveTaggedIterato", "suffix": "instanceof TaggedIteratorArgument) {\n return parent::processValue($value, $isRoot);\n }\n\n $exclude = $value->getExclude();\n if ($value->excludeSelf()) {\n $exclude[] = $this->currentId;\n }\n\n $value->se", "middle": "rArgumentPass extends AbstractRecursivePass\n{\n use PriorityTaggedServiceTrait;\n\n protected bool $skipScalars = true;\n\n protected function processValue(mixed $value, bool $isRoot = false): mixed\n {\n if (!$value ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ResolveTaggedIteratorArgumentPass.php", "language": "php", "file_size": 1111, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\Dependenc", "suffix": "ces into ServiceClosureArgument instances.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfinal class ServiceLocatorTagPass extends AbstractRecursivePass\n{\n use PriorityTaggedServiceTrait;\n\n protected bool $skipScalars = true;\n\n protected functi", "middle": "yInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\n\n/**\n * Applies the \"container.service_locator\" tag by wrapping referen", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.php", "language": "php", "file_size": 5269, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * This is a directed graph of your services.\n *\n * This information can be used by your compiler passes instead of collecting\n * ", "suffix": "ay $nodes = [];\n\n public function hasNode(string $id): bool\n {\n return isset($this->nodes[$id]);\n }\n\n /**\n * Gets a node by identifier.\n *\n * @throws InvalidArgumentException if no node matches the supplied identifier\n */", "middle": "it themselves which improves performance quite a lot.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n *\n * @final\n */\nclass ServiceReferenceGraph\n{\n /**\n * @var ServiceReferenceGraphNode[]\n */\n private arr", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php", "language": "php", "file_size": 2737, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\n/**\n * Represents an edge in your service graph.\n *\n * Value is typically a reference.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ServiceReferenceGraphEdge\n{\n public function __construct(\n private ServiceRe", "suffix": " false,\n private bool $byMultiUseArgument = false,\n ) {\n }\n\n /**\n * Returns the value of the edge.\n */\n public function getValue(): mixed\n {\n return $this->value;\n }\n\n /**\n * Returns the source node.\n */\n ", "middle": "ferenceGraphNode $sourceNode,\n private ServiceReferenceGraphNode $destNode,\n private mixed $value = null,\n private bool $lazy = false,\n private bool $weak = false,\n private bool $byConstructor =", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphEdge.php", "language": "php", "file_size": 1970, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * Represents a node in your service graph.\n *\n * Value is typically a definition, or an alias.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nc", "suffix": "dInEdge(ServiceReferenceGraphEdge $edge): void\n {\n $this->inEdges[] = $edge;\n }\n\n public function addOutEdge(ServiceReferenceGraphEdge $edge): void\n {\n $this->outEdges[] = $edge;\n }\n\n /**\n * Checks if the value of this n", "middle": "lass ServiceReferenceGraphNode\n{\n private array $inEdges = [];\n private array $outEdges = [];\n\n public function __construct(\n private string $id,\n private mixed $value,\n ) {\n }\n\n public function ad", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php", "language": "php", "file_size": 2100, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\VarExporter\\DeepCloner;\n\n/**\n * @author Math", "suffix": "ntainer.tag_decorator', false) as $id => $tags) {\n $definition = $container->getDefinition($id);\n $definitionCloner = null;\n\n foreach ($tags as $tag) {\n if (!$decoratesTag = $tag['decorates_tag'] ?? null) {\n ", "middle": "ias Arlaud <mathias.arlaud@gmail.com>\n */\nfinal class TagDecoratorPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n foreach ($container->findTaggedResourceIds('co", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/TagDecoratorPass.php", "language": "php", "file_size": 2309, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\Config\\Definition\\BaseNode;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Definition\\Processor;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ConfigurationExtensionInterface;\nuse Sym", "suffix": "with dummy values.\n *\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nclass ValidateEnvPlaceholdersPass implements CompilerPassInterface\n{\n private const TYPE_FIXTURES = ['array' => [], 'bool' => false, 'float' => 0.0, 'int' => 0, 'string' =>", "middle": "fony\\Component\\DependencyInjection\\ParameterBag\\EnvPlaceholderParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\n\n/**\n * Validates environment variable placeholders used in extension configuration ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ValidateEnvPlaceholdersPass.php", "language": "php", "file_size": 4753, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\n/**\n * Represents an abstract service argument, which have to be set by a compiler pass or a DI extension.\n */\nfinal class AbstractArgument\n{\n use ArgumentTrait;\n\n private string $text;\n private string $context = '';\n\n public function __construct(string $text = '')\n {\n ", "suffix": "ublic function setContext(string $context): void\n {\n $this->context = $context.' is abstract'.('' === $this->text ? '' : ': ');\n }\n\n public function getText(): string\n {\n return $this->text;\n }\n\n public function getTextWithC", "middle": " $this->text = trim($text, '. ');\n }\n\n p", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/AbstractArgument.php", "language": "php", "file_size": 968, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\n/**\n * @author Guilhem Niot <guilhem.niot@gmail.com>\n */\nfinal class BoundArgument implements ArgumentInterface\n{\n use ArgumentTrait;\n\n public const SERVICE_BINDING = 0;\n public const DEFAULTS_BINDING = 1;\n public const INSTANCE", "suffix": "c function __construct(\n mixed $value,\n bool $trackUsage = true,\n int $type = 0,\n ?string $file = null,\n ) {\n $this->value = $value;\n $this->type = $type;\n $this->file = $file;\n if ($trackUsage) {\n", "middle": "OF_BINDING = 2;\n\n private static int $sequence = 0;\n\n private mixed $value = null;\n private ?int $identifier = null;\n private ?bool $used = null;\n private int $type = 0;\n private ?string $file = null;\n\n publi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/BoundArgument.php", "language": "php", "file_size": 1575, "cut_index": 537, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\nclass EnvClosure implements \\Stringable\n{\n public function __construct(\n private \\Closure $closure,", "suffix": "}\n\n public function __invoke(): mixed\n {\n try {\n return ($this->closure)();\n } catch (EnvNotFoundException $e) {\n return $this->default ?? throw $e;\n }\n }\n\n public function __toString(): string\n {\n ", "middle": "\n private mixed $default = null,\n ) {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/EnvClosure.php", "language": "php", "file_size": 896, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\n/**\n * Represents an environment variable presented as an invokable and Stringable wrapper.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass EnvClosureArgu", "suffix": "ingable && !\\is_string($default ?? '')) {\n throw new InvalidArgumentException('The default value of a stringable EnvClosureArgument must be a string or null.');\n }\n }\n\n public function getValue(): string\n {\n return $this->", "middle": "ment implements ArgumentInterface\n{\n use ArgumentTrait;\n\n public function __construct(\n private string $value,\n private mixed $default = null,\n private bool $stringable = false,\n ) {\n if ($str", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/EnvClosureArgument.php", "language": "php", "file_size": 1726, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Removes unused service definitions from the container.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n * @author Nicolas Grekas <p@tchw", "suffix": "ions.\n */\n public function process(ContainerBuilder $container): void\n {\n try {\n $this->enableExpressionProcessing();\n $this->container = $container;\n $connectedIds = [];\n $aliases = $container->", "middle": "ork.com>\n */\nclass RemoveUnusedDefinitionsPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private array $connectedIds = [];\n\n /**\n * Processes the ContainerBuilder to remove unused definit", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/RemoveUnusedDefinitionsPass.php", "language": "php", "file_size": 2890, "cut_index": 563, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\n/**\n * Represents a collection of values to lazily iterate over.\n *\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nclass IteratorArgument implements ArgumentInterface\n{\n use ArgumentTrait;\n\n private arra", "suffix": " public function __construct(array $values)\n {\n $this->setValues($values);\n }\n\n public function getValues(): array\n {\n return $this->values;\n }\n\n public function setValues(array $values): void\n {\n $this->values = ", "middle": "y $values;\n\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/IteratorArgument.php", "language": "php", "file_size": 804, "cut_index": 517, "middle_length": 14}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\n\n/**\n * @", "suffix": " }\n\n public function __get(mixed $name): mixed\n {\n if ('service' !== $name) {\n throw new InvalidArgumentException(\\sprintf('Cannot read property \"%s\" from a lazy closure.', $name));\n }\n\n if (isset($this->initializer))", "middle": "author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\nclass LazyClosure\n{\n public readonly object $service;\n\n public function __construct(\n private \\Closure $initializer,\n ) {\n unset($this->service);\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/LazyClosure.php", "language": "php", "file_size": 3305, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\n/**\n * @internal\n */\nclass RewindableGenerator implements \\IteratorAggregate, \\Countable\n{\n private \\Closure $generator;\n private \\Closure|int $count;\n\n public function __construct(callable $generator, int|callable $count)\n {\n $this->generator = $generator(...);\n $this->count = \\is_", "suffix": "c function getIterator(): \\Traversable\n {\n $g = $this->generator;\n\n return $g();\n }\n\n public function count(): int\n {\n if (!\\is_int($count = $this->count)) {\n $this->count = $count();\n }\n\n return $t", "middle": "int($count) ? $count : $count(...);\n }\n\n publi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/RewindableGenerator.php", "language": "php", "file_size": 934, "cut_index": 606, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\n/**\n * Represents a service wrapped in a memoizing closure.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ServiceClosureArgument", "suffix": " return $this->values;\n }\n\n public function setValues(array $values): void\n {\n if ([0] !== array_keys($values)) {\n throw new InvalidArgumentException('A ServiceClosureArgument must hold one and only one value.');\n }\n\n ", "middle": " implements ArgumentInterface\n{\n use ArgumentTrait;\n\n private array $values;\n\n public function __construct(mixed $value)\n {\n $this->values = [$value];\n }\n\n public function getValues(): array\n {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/ServiceClosureArgument.php", "language": "php", "file_size": 1034, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\n\n/**\n * Looks for definitions with autowiring enabled and registers their corresponding \"#[Required]\" methods as setters.\n *\n * @author Nicolas Grekas <p@tchwork.", "suffix": "cessValue($value, $isRoot);\n\n if (!$value instanceof Definition || !$value->isAutowired() || $value->isAbstract() || !$value->getClass()) {\n return $value;\n }\n if (!$reflectionClass = $this->container->getReflectionClass($va", "middle": "com>\n */\nclass AutowireRequiredMethodsPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n protected function processValue(mixed $value, bool $isRoot = false): mixed\n {\n $value = parent::pro", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AutowireRequiredMethodsPass.php", "language": "php", "file_size": 3030, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\n/**\n * This pass validates aliases, it provides the following checks:\n *\n * - An alias which happens to be an interface must resolve to", "suffix": "ilder $container): void\n {\n foreach ($container->getAliases() as $id => $alias) {\n try {\n if ($alias->isDeprecated() || !$container->hasDefinition((string) $alias)) {\n continue;\n }\n\n ", "middle": " a service implementing this interface. This ensures injecting the aliased interface won't cause a type error at runtime.\n */\nclass CheckAliasValidityPass implements CompilerPassInterface\n{\n public function process(ContainerBu", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/CheckAliasValidityPass.php", "language": "php", "file_size": 2031, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\n/**\n * Checks if arguments of methods are properly configured.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass CheckArgumentsValidityPass ex", "suffix": " false): mixed\n {\n if (!$value instanceof Definition) {\n return parent::processValue($value, $isRoot);\n }\n\n $i = 0;\n $hasNamedArgs = false;\n foreach ($value->getArguments() as $k => $v) {\n if (pre", "middle": "tends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n public function __construct(\n private bool $throwExceptions = true,\n ) {\n }\n\n protected function processValue(mixed $value, bool $isRoot =", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/CheckArgumentsValidityPass.php", "language": "php", "file_size": 4290, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\EnvParameterException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\n/**\n * This pass validates each definition individually only taking the information\n * into account which is co", "suffix": "ic services are always public\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass CheckDefinitionValidityPass implements CompilerPassInterface\n{\n /**\n * Processes the ContainerBuilder to validate the Definition.\n *\n * @throws ", "middle": "ntained in the definition itself.\n *\n * Later passes can rely on the following, and specifically do not need to\n * perform these checks themselves:\n *\n * - non synthetic, non abstract services always have a class set\n * - synthet", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/CheckDefinitionValidityPass.php", "language": "php", "file_size": 5034, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Detects cycles where a service's factory is `[Definitio", "suffix": "\n * before deferred edges fire, but a factory consumes the builder's state at call\n * time: deferring $b's setup until after `$b->method(...)` would feed the factory\n * an unconfigured builder. The cycle is unresolvable; bail out instead of letting\n * the ", "middle": "n $b, $method]` and $b's\n * own properties/method calls/configurator transitively require that same service\n * through constructor references.\n *\n * The soft-circular instantiation pattern relies on storing the service's instance", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/CheckFactoryBuilderCircularReferencePass.php", "language": "php", "file_size": 4460, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Checks the validity of references.\n *\n * The following ", "suffix": "lars = true;\n\n protected function processValue(mixed $value, bool $isRoot = false): mixed\n {\n if ($isRoot && $value instanceof Definition && ($value->isSynthetic() || $value->isAbstract())) {\n return $value;\n }\n if ($v", "middle": "checks are performed by this pass:\n * - target definitions are not abstract\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass CheckReferenceValidityPass extends AbstractRecursivePass\n{\n protected bool $skipSca", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php", "language": "php", "file_size": 1532, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Overwrites a service but keeps ", "suffix": "Pass\n{\n protected bool $skipScalars = true;\n\n public function process(ContainerBuilder $container): void\n {\n $definitions = new \\SplPriorityQueue();\n $order = \\PHP_INT_MAX;\n\n foreach ($container->getDefinitions() as $id => $de", "middle": "the overridden one.\n *\n * @author Christophe Coevoet <stof@notk.org>\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Diego Saint Esteben <diego@saintesteben.me>\n */\nclass DecoratorServicePass extends AbstractRecursive", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/DecoratorServicePass.php", "language": "php", "file_size": 5518, "cut_index": 716, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * A pass to automatically process extensions if they implement\n * CompilerPassInterface.\n *\n * @author Wouter J <wouter@wouterj.nl>\n */\nclass ExtensionCompilerPass im", "suffix": " process(ContainerBuilder $container): void\n {\n foreach ($container->getExtensions() as $extension) {\n if (!$extension instanceof CompilerPassInterface) {\n continue;\n }\n\n $extension->process($contai", "middle": "plements CompilerPassInterface\n{\n public function", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ExtensionCompilerPass.php", "language": "php", "file_size": 861, "cut_index": 529, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\Config\\Definition\\BaseNode;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ConfigurationExtensionInterface;\nuse Sy", "suffix": "\\DependencyInjection\\ParameterBag\\EnvPlaceholderParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * Merges extension configs into the container builder.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */", "middle": "mfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface;\nuse Symfony\\Component", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php", "language": "php", "file_size": 9165, "cut_index": 716, "middle_length": 229}} {"prefix": "tion\\Attribute\\AsTaggedItem;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\n\n/**\n * Trait that allows a generic method to find and sort service by priority option in the tag.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n */\ntrait PriorityTaggedServiceTrait\n{\n /**\n * Finds all services with the g", "suffix": " * we should not use that class.\n *\n * @see https://bugs.php.net/53710\n * @see https://bugs.php.net/60926\n *\n * @return Reference[]\n */\n private function findAndSortTaggedServices(string|TaggedIteratorArgument $tagName, Contai", "middle": "iven tag name and order them by their priority.\n *\n * The order of additions must be respected for services having the same priority,\n * and knowing that the \\SplPriorityQueue class does not respect the FIFO method,\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/PriorityTaggedServiceTrait.php", "language": "php", "file_size": 9402, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\EnvVarProcessor;\nuse Symfony\\Component\\DependencyInjection\\EnvVarProcessorInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nu", "suffix": " <p@tchwork.com>\n */\nclass RegisterEnvVarProcessorsPass implements CompilerPassInterface\n{\n private const ALLOWED_TYPES = ['array', 'bool', 'float', 'int', 'string', \\BackedEnum::class];\n\n public function process(ContainerBuilder $container): void\n ", "middle": "se Symfony\\Component\\DependencyInjection\\ParameterBag\\EnvPlaceholderParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Creates the container.env_var_processors_locator service.\n *\n * @author Nicolas Grekas", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/RegisterEnvVarProcessorsPass.php", "language": "php", "file_size": 3039, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Psr\\Container\\ContainerInterface as PsrContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\BoundArgument;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyIn", "suffix": "ceProviderInterface;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\n/**\n * Compiler pass to register tagged services that require a service locator.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass RegisterServiceSubscribersPass extends A", "middle": "jection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\nuse Symfony\\Contracts\\Service\\ServiceCollectionInterface;\nuse Symfony\\Contracts\\Service\\Servi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/RegisterServiceSubscribersPass.php", "language": "php", "file_size": 7017, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Removes abstract Definitions.\n */\nclass RemoveAbstractDefinitionsPass implements CompilerPassInterface\n{\n /**\n * Removes abstract definitions from the ContainerBuilder.\n */\n public function process(Conta", "suffix": "($container->getDefinitions() as $id => $definition) {\n if ($definition->isAbstract()) {\n $container->resolveEnvPlaceholders($definition);\n $container->removeDefinition($id);\n $container->log($this, \\", "middle": "inerBuilder $container): void\n {\n foreach ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/RemoveAbstractDefinitionsPass.php", "language": "php", "file_size": 980, "cut_index": 582, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Remove private aliases from the container. They were only used to establish\n * dependencies between services, and these dependencies have been resolve", "suffix": " */\n public function process(ContainerBuilder $container): void\n {\n foreach ($container->getAliases() as $id => $alias) {\n if ($alias->isPublic()) {\n continue;\n }\n\n $container->removeAlias($i", "middle": "d in\n * one of the previous passes.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass RemovePrivateAliasesPass implements CompilerPassInterface\n{\n /**\n * Removes private aliases from the ContainerBuilder.\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/RemovePrivateAliasesPass.php", "language": "php", "file_size": 1121, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Replaces aliases with actual service def", "suffix": "rivate array $replacements;\n\n /**\n * Process the Container to replace aliases with service definitions.\n *\n * @throws InvalidArgumentException if the service definition does not exist\n */\n public function process(ContainerBuilder $con", "middle": "initions, effectively removing these\n * aliases.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ReplaceAliasByActualDefinitionPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n p", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/ReplaceAliasByActualDefinitionPass.php", "language": "php", "file_size": 4369, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AsDecorator;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AsTagDecorator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * ", "suffix": "c function process(ContainerBuilder $container): void\n {\n foreach ($container->getDefinitions() as $id => $definition) {\n if ($this->accept($definition) && $reflectionClass = $container->getReflectionClass($definition->getClass(), fals", "middle": "Reads #[AsDecorator] and #[AsTagDecorator] attributes on definitions that are autowired\n * and don't have the \"container.ignore_attributes\" tag.\n */\nfinal class AutowireAsDecoratorPass implements CompilerPassInterface\n{\n publi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AutowireAsDecoratorPass.php", "language": "php", "file_size": 3348, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireDecorated;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Target;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony", "suffix": "\n/**\n * Looks for definitions with autowiring enabled and registers their corresponding \"#[Required]\" properties.\n *\n * @author Sebastien Morel (Plopix) <morel.seb@gmail.com>\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass AutowireRequiredPropertiesPas", "middle": "\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AutowireRequiredPropertiesPass.php", "language": "php", "file_size": 3011, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\n\n/**\n * Checks your services for circular references.\n *\n * References from method calls are ignored since we might be ", "suffix": "lass CheckCircularReferencesPass implements CompilerPassInterface\n{\n private array $currentPath;\n private array $checkedNodes;\n private array $checkedLazyNodes;\n\n /**\n * Checks the ContainerBuilder object for circular references.\n */\n ", "middle": "able to resolve\n * these references depending on the order in which services are called.\n *\n * Circular reference from method calls will only be detected at run-time.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nc", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php", "language": "php", "file_size": 2977, "cut_index": 563, "middle_length": 229}} {"prefix": "t\\EnvClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Co", "suffix": "encyInjection\\Parameter;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\EnvPlaceholderParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\ExpressionLangu", "middle": "mponent\\DependencyInjection\\Exception\\InvalidParameterTypeException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ExpressionLanguage;\nuse Symfony\\Component\\Depend", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/CheckTypeDeclarationsPass.php", "language": "php", "file_size": 12803, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\EnvParameterException;\n\n/**\n * This class is used to remove circular dependencies between individual passes.\n *\n * @author Johannes M. Schmitt <schmittjoh", "suffix": "PassConfig();\n $this->serviceReferenceGraph = new ServiceReferenceGraph();\n }\n\n public function getPassConfig(): PassConfig\n {\n return $this->passConfig;\n }\n\n public function getServiceReferenceGraph(): ServiceReferenceGraph\n ", "middle": "@gmail.com>\n */\nclass Compiler\n{\n private PassConfig $passConfig;\n private array $log = [];\n private ServiceReferenceGraph $serviceReferenceGraph;\n\n public function __construct()\n {\n $this->passConfig = new ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/Compiler.php", "language": "php", "file_size": 2636, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\n/**\n * Compiler Pass Configuration.\n *\n * This class has a default configuration embedded.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass PassConfig\n{\n // In the order of execution\n public const TYPE_BEFORE_OPTIMIZATION = 'beforeOptimization';\n public const TYPE_OPTIMIZE = 'optimization';\n public const TYPE", "suffix": "es;\n private array $beforeOptimizationPasses;\n private array $beforeRemovingPasses = [];\n private array $optimizationPasses;\n private array $removingPasses;\n\n public function __construct()\n {\n $this->mergePass = new MergeExtensionC", "middle": "_BEFORE_REMOVING = 'beforeRemoving';\n public const TYPE_REMOVE = 'removing';\n public const TYPE_AFTER_REMOVING = 'afterRemoving';\n\n private MergeExtensionConfigurationPass $mergePass;\n private array $afterRemovingPass", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php", "language": "php", "file_size": 8098, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Com", "suffix": "\n ) {\n }\n\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('reverse_container')) {\n return;\n }\n\n $refType = $this->beforeRemoving ? ContainerInterface::IGNORE_ON_UNIN", "middle": "ponent\\DependencyInjection\\Reference;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass RegisterReverseContainerPass implements CompilerPassInterface\n{\n public function __construct(\n private bool $beforeRemoving,", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/RegisterReverseContainerPass.php", "language": "php", "file_size": 2020, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass RemoveBuildParametersPass implements CompilerPassInterface\n{\n /**\n * @var array<string, mixed>\n */\n private array $removedParameters = [];\n\n public function", "suffix": "rs = [];\n\n foreach ($parameterBag->all() as $name => $value) {\n if ('.' !== ($name[0] ?? '')) {\n continue;\n }\n if (!$this->preserveArrays || !\\is_array($value)) {\n $this->removedParamete", "middle": " __construct(\n private bool $preserveArrays = false,\n ) {\n }\n\n public function process(ContainerBuilder $container): void\n {\n $parameterBag = $container->getParameterBag();\n $this->removedParamete", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/RemoveBuildParametersPass.php", "language": "php", "file_size": 1511, "cut_index": 537, "middle_length": 229}} {"prefix": " private array $ambiguousServiceTypes;\n private array $autowiringAliases;\n private ?string $lastFailure = null;\n private ?string $decoratedClass = null;\n private ?string $decoratedId = null;\n private object $defaultArgument;\n private ?\\Closure $restorePreviousValue = null;\n private ?self $typesClone = null;\n\n public function __construct(\n private bool $throwOnAutowiringException = true,\n ) {\n $this->defaultArgument = new class {\n public $value;\n ", "suffix": "$parameter->getDefaultValue());\n\n return $clone;\n }\n };\n }\n\n public function process(ContainerBuilder $container): void\n {\n $this->defaultArgument->bag = $container->getParameterBag();\n\n try {\n ", "middle": " public $names;\n public $bag;\n\n public function withValue(\\ReflectionParameter $parameter): self\n {\n $clone = clone $this;\n $clone->value = $this->bag->escapeValue(", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php", "language": "php", "file_size": 34592, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Checks that all references are pointing to a valid servi", "suffix": "Ids = [];\n\n public function process(ContainerBuilder $container): void\n {\n $this->serviceLocatorContextIds = [];\n foreach ($container->findTaggedServiceIds('container.service_locator_context') as $id => $tags) {\n $this->servi", "middle": "ce.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass CheckExceptionOnInvalidReferenceBehaviorPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private array $serviceLocatorContext", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php", "language": "php", "file_size": 4714, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator as BaseServiceLocator;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\nclass ServiceLocator extends BaseServiceLocator\n{\n public function __co", "suffix": "\n return match (\\count($this->serviceMap[$id] ?? [])) {\n 0 => parent::get($id),\n 1 => $this->serviceMap[$id][0],\n default => ($this->factory)(...$this->serviceMap[$id]),\n };\n }\n\n public function getProvi", "middle": "nstruct(\n private \\Closure $factory,\n private array $serviceMap,\n private ?array $serviceTypes = null,\n ) {\n parent::__construct($serviceMap);\n }\n\n public function get(string $id): mixed\n {", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/ServiceLocator.php", "language": "php", "file_size": 1128, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Fixtures;\n\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Attribute\\CustomAnyAttribute;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Attribute\\CustomMethodAttribute;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\", "suffix": "ribute(someAttribute: \"on name\")]\n public string $name;\n\n public function __construct(\n #[CustomAnyAttribute]\n #[CustomParameterAttribute(someAttribute: \"on param1 in constructor\")]\n private string $param1,\n #[CustomAnyAtt", "middle": "Attribute\\CustomPropertyAttribute;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Attribute\\CustomParameterAttribute;\n\n#[CustomAnyAttribute]\nfinal class TaggedService4\n{\n #[CustomAnyAttribute]\n #[CustomPropertyAtt", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/TaggedService4.php", "language": "php", "file_size": 1566, "cut_index": 537, "middle_length": 229}} {"prefix": "\n\nuse Symfony\\Contracts\\Service\\Attribute\\SubscribedService;\nuse Symfony\\Contracts\\Service\\ServiceMethodsSubscriberTrait;\n\nclass TestServiceSubscriberChild extends TestServiceSubscriberParent\n{\n use ServiceMethodsSubscriberTrait;\n use TestServiceMethodsSubscriberTrait;\n\n #[SubscribedService]\n private function testDefinition2(): ?TestDefinition2\n {\n return $this->container->get(__METHOD__);\n }\n\n #[SubscribedService('custom_name')]\n private function testDefinition3(): TestDefini", "suffix": "stom_name');\n }\n\n #[SubscribedService]\n private function invalidDefinition(): InvalidDefinition\n {\n return $this->container->get(__METHOD__);\n }\n\n private function privateFunction1(): string\n {\n }\n\n private function privat", "middle": "tion3\n {\n return $this->container->get('cu", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/TestServiceSubscriberChild.php", "language": "php", "file_size": 992, "cut_index": 582, "middle_length": 52}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "ion __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'Symfony\\\\Component\\\\DependencyInjection\\\\Tests\\\\Compiler\\\\ListenerResolver' => 'getListenerResolverService',\n ];\n\n $this->aliase", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_AutowireCallable_With_ServiceLocator extends Container\n{\n protected $parameters = [];\n protected \\Closure $getService;\n\n public funct", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/autowire_callable_with_service_locator.php", "language": "php", "file_size": 4445, "cut_index": 614, "middle_length": 229}} {"prefix": "y\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Autowire_Closur", "suffix": " [\n 'bar' => 'getBarService',\n 'baz' => 'getBazService',\n 'foo' => 'getFooService',\n 'my_callable' => 'getMyCallableService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n ", "middle": "e extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParameters();\n\n $this->services = $this->privates = [];\n $this->methodMap =", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/autowire_closure.php", "language": "php", "file_size": 5792, "cut_index": 716, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "meters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n ", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Callable_Adapter_Consumer extends Container\n{\n protected $para", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/callable_adapter_consumer.php", "language": "php", "file_size": 2015, "cut_index": 537, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": " $this->services = $this->privates = [];\n $this->methodMap = [\n 'closure' => 'getClosureService',\n 'closure_of_service_closure' => 'getClosureOfServiceClosureService',\n ];\n\n $this->aliases = [];\n }\n\n ", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/closure.php", "language": "php", "file_size": 2038, "cut_index": 563, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": "nstruct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'closure_proxy' => 'getClosureProxyService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw ne", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Closure_Proxy extends Container\n{\n protected $parameters = [];\n\n public function __co", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/closure_proxy.php", "language": "php", "file_size": 2112, "cut_index": 563, "middle_length": 229}} {"prefix": "ion\\Tests\\Fixtures\\Container;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nu", "suffix": "omponent\\DependencyInjection\\Tests\\Fixtures\\Container\\ConstructorWithoutArgumentsContainer\n{\n protected $parameters = [];\n\n public function __construct()\n {\n parent::__construct();\n unset($this->parameterBag);\n\n $this->service", "middle": "se Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends \\Symfony\\C", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/custom_container_class_constructor_without_arguments.php", "language": "php", "file_size": 3000, "cut_index": 563, "middle_length": 229}} {"prefix": "pace Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Container;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjec", "suffix": "jectServiceContainer extends \\Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Container\\ConstructorWithMandatoryArgumentsContainer\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [", "middle": "tion\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Pro", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/custom_container_class_with_mandatory_constructor_arguments.php", "language": "php", "file_size": 1274, "cut_index": 524, "middle_length": 229}} {"prefix": "ion\\Tests\\Fixtures\\Container;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nu", "suffix": "omponent\\DependencyInjection\\Tests\\Fixtures\\Container\\ConstructorWithOptionalArgumentsContainer\n{\n protected $parameters = [];\n\n public function __construct()\n {\n parent::__construct();\n unset($this->parameterBag);\n\n $this->se", "middle": "se Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends \\Symfony\\C", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/custom_container_class_with_optional_constructor_arguments.php", "language": "php", "file_size": 3005, "cut_index": 563, "middle_length": 229}} {"prefix": "pace Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Container;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjec", "suffix": "jectServiceContainer extends \\Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Container\\NoConstructorContainer\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n\n $this->a", "middle": "tion\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Pro", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/custom_container_class_without_constructor.php", "language": "php", "file_size": 1254, "cut_index": 524, "middle_length": 229}} {"prefix": "y\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Inline_Adapter_", "suffix": "odMap = [\n 'Symfony\\\\Component\\\\DependencyInjection\\\\Tests\\\\Dumper\\\\InlineAdapterConsumer' => 'getInlineAdapterConsumerService',\n 'bar' => 'getBarService',\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];", "middle": "Consumer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParameters();\n\n $this->services = $this->privates = [];\n $this->meth", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/inline_adapter_consumer.php", "language": "php", "file_size": 8401, "cut_index": 716, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile()", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Lazy_Autowire_Attribute extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/lazy_autowire_attribute.php", "language": "php", "file_size": 3036, "cut_index": 563, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": " $this->methodMap = [\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compile a dumped container that was already compiled.');\n", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/lazy_autowire_attribute_with_intersection.php", "language": "php", "file_size": 3299, "cut_index": 614, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": "struct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'closure1' => 'getClosure1Service',\n 'closure2' => 'getClosure2Service',\n ];\n\n $this->aliases = [];\n }\n\n public function ", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Lazy_Closure extends Container\n{\n protected $parameters = [];\n\n public function __con", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/lazy_closure.php", "language": "php", "file_size": 2663, "cut_index": 563, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": " $this->methodMap = [\n 'from_callable' => 'getFromCallableService',\n 'has_configurator' => 'getHasConfiguratorService',\n 'has_factory' => 'getHasFactoryService',\n 'with_closure' => 'getWithClosureService',\n ", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/named_closure_compiled.php", "language": "php", "file_size": 3105, "cut_index": 614, "middle_length": 229}} {"prefix": "\nnamespace Symfony\\Component\\DependencyInjection\\Dump;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Parameter", "suffix": " \\Symfony\\Component\\DependencyInjection\\Dump\\AbstractContainer\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n\n $this->aliases = [];\n }\n\n public function compile(): vo", "middle": "Bag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Container extends", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1-1.php", "language": "php", "file_size": 1195, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\Depend", "suffix": " = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compile a dumped container that was ", "middle": "encyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1.php", "language": "php", "file_size": 1102, "cut_index": 515, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "ters();\n\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'test' => 'getTestService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You ca", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParame", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php", "language": "php", "file_size": 3668, "cut_index": 614, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "ters();\n\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'test' => 'getTestService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You ca", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParame", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services12.php", "language": "php", "file_size": 3411, "cut_index": 614, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicEx", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services13.php", "language": "php", "file_size": 1577, "cut_index": 537, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "ters();\n\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'service_from_anonymous_factory' => 'getServiceFromAnonymousFactoryService',\n 'service_with_method_call_and_factory' => 'getServiceWithMethodCallAn", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParame", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services19.php", "language": "php", "file_size": 4169, "cut_index": 614, "middle_length": 229}} {"prefix": "ymfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjec", "suffix": " public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n thro", "middle": "tion\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services24.php", "language": "php", "file_size": 1404, "cut_index": 524, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "getDefaultParameters();\n\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n 'test' => 'getTestService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_EnvParameters extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services26.php", "language": "php", "file_size": 4428, "cut_index": 614, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'Bar\\\\Foo' => 'getFooService',\n 'Foo\\\\Foo' => 'getFoo2Service',\n ];\n\n $this->aliases = [];\n }\n\n public functio", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services33.php", "language": "php", "file_size": 1692, "cut_index": 537, "middle_length": 229}} {"prefix": "n;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParameters();\n\n $this->services = $this->privates = [];\n $this->synthe", "suffix": "ce' => 'getBServiceService',\n 'bar' => 'getBar3Service',\n 'bar2' => 'getBar22Service',\n 'baz' => 'getBazService',\n 'configured_service' => 'getConfiguredServiceService',\n 'configured_service_simple' =>", "middle": "ticIds = [\n 'request' => true,\n ];\n $this->methodMap = [\n 'BAR' => 'getBARService',\n 'BAR2' => 'getBAR2Service',\n 'a_service' => 'getAServiceService',\n 'b_servi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php", "language": "php", "file_size": 16265, "cut_index": 921, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": " $this->methodMap = [\n 'App\\\\Bus' => 'getBusService',\n 'App\\\\Db' => 'getDbService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compile a d", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_adawson.php", "language": "php", "file_size": 3288, "cut_index": 614, "middle_length": 229}} {"prefix": " $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar2' => 'getBar2Service',\n 'bar3' => 'getBar3Service',\n 'baz6' => 'getBaz6Service',\n 'connection' => 'getConnectionService',\n 'connection2' => 'getConnection2Service',\n 'doctrine.entity_manager' => 'getDoctrine_EntityManagerService',\n 'foo' => 'getFooService',\n 'foo2' => 'getFoo2Service',\n 'foo5' => 'getFoo5Service',\n 'fo", "suffix": "anager' => 'getManagerService',\n 'manager2' => 'getManager2Service',\n 'manager3' => 'getManager3Service',\n 'monolog.logger' => 'getMonolog_LoggerService',\n 'monolog_inline.logger' => 'getMonologInline_LoggerServi", "middle": "o6' => 'getFoo6Service',\n 'foobar4' => 'getFoobar4Service',\n 'listener3' => 'getListener3Service',\n 'listener4' => 'getListener4Service',\n 'logger' => 'getLoggerService',\n 'm", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_almost_circular_private.php", "language": "php", "file_size": 22152, "cut_index": 1331, "middle_length": 229}} {"prefix": " $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n 'bar3' => 'getBar3Service',\n 'bar5' => 'getBar5Service',\n 'baz6' => 'getBaz6Service',\n 'connection' => 'getConnectionService',\n 'connection2' => 'getConnection2Service',\n 'connection3' => 'getConnection3Service',\n 'connection4' => 'getConnection4Service',\n 'dispatcher' => 'getDispatcherService',\n '", "suffix": "ctrine.listener' => 'getDoctrine_ListenerService',\n 'foo' => 'getFooService',\n 'foo2' => 'getFoo2Service',\n 'foo4' => 'getFoo4Service',\n 'foo5' => 'getFoo5Service',\n 'foo6' => 'getFoo6Service',\n ", "middle": "dispatcher2' => 'getDispatcher2Service',\n 'doctrine.entity_listener_resolver' => 'getDoctrine_EntityListenerResolverService',\n 'doctrine.entity_manager' => 'getDoctrine_EntityManagerService',\n 'do", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_almost_circular_public.php", "language": "php", "file_size": 30874, "cut_index": 1331, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "ters();\n\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cann", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParame", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_array_params.php", "language": "php", "file_size": 3470, "cut_index": 614, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "s->getDefaultParameters();\n\n $this->services = $this->privates = [];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compile a dumped container that was already compiled.');", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Base64Parameters extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $thi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_base64_env.php", "language": "php", "file_size": 3169, "cut_index": 614, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": " $this->services = $this->privates = [];\n $this->methodMap = [\n 'foo' => 'getFooService',\n 'service_closure' => 'getServiceClosureService',\n 'service_closure_invalid' => 'getServiceClosureInvalidService',\n ", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_closure_argument_compiled.php", "language": "php", "file_size": 2157, "cut_index": 563, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "getDefaultParameters();\n\n $this->services = $this->privates = [];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compile a dumped container that was already compiled.');\n ", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_CsvParameters extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_csv_env.php", "language": "php", "file_size": 3162, "cut_index": 614, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": "unction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'inlined_current' => 'getInlinedCurrentService',\n 'not_inlined_current' => 'getNotInlinedCurrentService',\n ];\n\n $t", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Service_CurrentFactoryInlining extends Container\n{\n protected $parameters = [];\n\n public f", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_current_factory_inlining.php", "language": "php", "file_size": 2390, "cut_index": 563, "middle_length": 229}} {"prefix": "on\\Kernel\\RequiredBundle;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass AbstractKernelTest extends TestCase\n{\n private string $varDir;\n\n protected function setUp(): void\n {\n $this->varDir = sys_get_temp_dir().'/sf_abstract_kernel_test';\n }\n\n protected function tearDown(): void\n {\n (new Filesystem())->remove($this->varDir);\n }\n\n public function testBootBuildsAndCachesContainer()\n ", "suffix": "kernel.environment'));\n $this->assertTrue($kernel->getContainer()->getParameter('kernel.debug'));\n }\n\n public function testBootIsIdempotent()\n {\n $kernel = $this->createKernel();\n $kernel->boot();\n $container1 = $kernel", "middle": " {\n $kernel = $this->createKernel();\n $kernel->boot();\n\n $this->assertInstanceOf(ContainerInterface::class, $kernel->getContainer());\n $this->assertSame('test', $kernel->getContainer()->getParameter('", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/AbstractKernelTest.php", "language": "php", "file_size": 21183, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\n\nclass ChildDefinitionTest extends TestCase\n{\n public function testConstructor()\n {\n $def = new ChildDefinition('foo');\n\n $this->assertSame('foo', $def->getParent", "suffix": " 'get'.ucfirst($property);\n $setter = 'set'.ucfirst($property);\n\n $this->assertNull($def->$getter());\n $this->assertSame($def, $def->$setter('foo'));\n $this->assertSame('foo', $def->$getter());\n $this->assertSame([$change", "middle": "());\n $this->assertSame([], $def->getChanges());\n }\n\n #[DataProvider('getPropertyTests')]\n public function testSetProperty($property, $changeKey)\n {\n $def = new ChildDefinition('foo');\n\n $getter =", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/ChildDefinitionTest.php", "language": "php", "file_size": 4383, "cut_index": 614, "middle_length": 229}} {"prefix": "ncyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\nclass ContainerTest extends TestCase\n{\n public function testConstructor()\n {\n $sc = new Container();\n $this->assertSame($sc, $sc->get('service_container'), '__construct() automatically registers itself as a service');\n\n $sc = new Container(new ParameterBag(['foo' =", "suffix": "estCamelize($id, $expected)\n {\n $this->assertEquals($expected, Container::camelize($id), \\sprintf('Container::camelize(\"%s\")', $id));\n }\n\n public static function dataForTestCamelize()\n {\n return [\n ['foo_bar', 'FooBar']", "middle": "> 'bar']));\n $this->assertEquals(['foo' => 'bar'], $sc->getParameterBag()->all(), '__construct() takes an array of parameters as its first argument');\n }\n\n #[DataProvider('dataForTestCamelize')]\n public function t", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php", "language": "php", "file_size": 20229, "cut_index": 1331, "middle_length": 229}} {"prefix": "t\\DependencyInjection\\Exception\\ParameterCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\IntBackedEnum;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\StringBackedEnum;\n\nclass EnvVarProcessorTest extends TestCase\n{\n public const TEST_CONST = 'test';\n\n #[DataProvider('validStrings')]\n public function testGetEnvString($value, $processed)\n {\n $container = new ContainerBuilder(", "suffix": "->fail('Should not be called');\n });\n\n $this->assertSame($processed, $result);\n }\n\n public static function validStrings()\n {\n return [\n ['hello', 'hello'],\n ['true', 'true'],\n ['false', 'false'", "middle": ");\n $container->setParameter('env(foo)', $value);\n $container->compile();\n\n $processor = new EnvVarProcessor($container);\n\n $result = $processor->getEnv('string', 'foo', function () {\n $this", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/EnvVarProcessorTest.php", "language": "php", "file_size": 31008, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests;\n\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\Container\\NotFoundExceptionInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Compon", "suffix": "nction getServiceLocator(array $factories): ContainerInterface\n {\n return new ServiceLocator($factories);\n }\n\n public function testGetThrowsOnUndefinedService()\n {\n $locator = $this->getServiceLocator([\n 'foo' => static", "middle": "ent\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\nuse Symfony\\Contracts\\Service\\Test\\ServiceLocatorTestCase;\n\nclass ServiceLocatorTest extends ServiceLocatorTestCase\n{\n public fu", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/ServiceLocatorTest.php", "language": "php", "file_size": 4749, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Definition\\ConfigurableInterface;\nuse Symfony\\Component\\Config\\Definition\\Configuration;\nuse Symfony\\Component\\Config\\Definition\\Configurator\\DefinitionConfigurator;\nuse Symfony\\Component\\Config\\Definition\\Processor;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\AbstractExtension;\nuse", "suffix": "or;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\n\nclass AbstractExtensionTest extends TestCase\n{\n public function testConfiguration()\n {\n $extension = new class extends AbstractExtension {\n public function co", "middle": " Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurat", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Extension/AbstractExtensionTest.php", "language": "php", "file_size": 6271, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Exception\\AutowiringFailedException;\n\nfinal class AutowiringFailedExceptionTest extends TestCase\n{\n public function testGetMessageCallbackWhenM", "suffix": "d \"string\", you should configure its value explicitly.'\n );\n\n self::assertNull($exception->getMessageCallback());\n }\n\n public function testLazyness()\n {\n $counter = 0;\n $exception = new AutowiringFailedException(\n ", "middle": "essageIsNotANotClosure()\n {\n $exception = new AutowiringFailedException(\n 'App\\DummyService',\n 'Cannot autowire service \"App\\DummyService\": argument \"$email\" of method \"__construct()\" is type-hinte", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Exception/AutowiringFailedExceptionTest.php", "language": "php", "file_size": 1434, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Exception;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidParameterTypeException;\n\nfinal class InvalidParameterTypeExceptionTest extends TestCase\n{\n #", "suffix": "arameter);\n\n self::assertSame($expectedMessage, $exception->getMessage());\n }\n\n public static function provideReflectionParameters(): iterable\n {\n yield 'static method' => [\n new \\ReflectionParameter([MyClass::class, 'doSo", "middle": "[DataProvider('provideReflectionParameters')]\n public function testExceptionMessage(\\ReflectionParameter $parameter, string $expectedMessage)\n {\n $exception = new InvalidParameterTypeException('my_service', 'int', $p", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Exception/InvalidParameterTypeExceptionTest.php", "language": "php", "file_size": 1670, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterf", "suffix": "sertEquals(\n new ServiceLocatorArgument(['foo' => new TypedReference('foo', 'foo'), 'bar' => new TypedReference('bar', 'bar')]),\n $locator->value,\n );\n }\n\n public function testComplexLocator()\n {\n $locator = new", "middle": "ace;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\n\nclass AutowireLocatorTest extends TestCase\n{\n public function testSimpleLocator()\n {\n $locator = new AutowireLocator(['foo', 'bar']);\n\n $this->as", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Attribute/AutowireLocatorTest.php", "language": "php", "file_size": 1852, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ExpressionLanguage\\Express", "suffix": "new Autowire(...$parameters);\n }\n\n public function testMustSetOneParameter()\n {\n $this->expectException(LogicException::class);\n\n new Autowire();\n }\n\n public function testCanUseZeroForValue()\n {\n $this->assertSame('0'", "middle": "ion;\n\nclass AutowireTest extends TestCase\n{\n #[DataProvider('provideMultipleParameters')]\n public function testCanOnlySetOneParameter(array $parameters)\n {\n $this->expectException(LogicException::class);\n\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Attribute/AutowireTest.php", "language": "php", "file_size": 3224, "cut_index": 614, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Fixtures;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireLocator;\nuse Symfony\\Contracts\\Service\\Attribute\\", "suffix": "lid',\n 'subscribed' => new SubscribedService(type: 'string', attributes: new Autowire('%some.parameter%')),\n 'subscribed1' => new Autowire('%some.parameter%'),\n ])]\n public readonly ContainerInterface $locator,\n ) {\n ", "middle": "SubscribedService;\n\nfinal class AutowireLocatorConsumer\n{\n public function __construct(\n #[AutowireLocator([\n BarTagClass::class,\n 'with_key' => FooTagClass::class,\n 'nullable' => '?inva", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/AutowireLocatorConsumer.php", "language": "php", "file_size": 1004, "cut_index": 512, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ArgumentInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Inline service definitions where this is possible.\n *\n * @author Johannes M. Schmitt <s", "suffix": "InlinedIds = [];\n private array $inlinedIds = [];\n private array $notInlinableIds = [];\n private array $autowireInline = [];\n private ?ServiceReferenceGraph $graph = null;\n\n public function __construct(\n private ?AnalyzeServiceReferen", "middle": "chmittjoh@gmail.com>\n */\nclass InlineServiceDefinitionsPass extends AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private array $cloningIds = [];\n private array $connectedIds = [];\n private array $not", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php", "language": "php", "file_size": 8299, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autoconfigure;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Lazy;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\AutoconfigureFailedExcepti", "suffix": "Grekas <p@tchwork.com>\n */\nfinal class RegisterAutoconfigureAttributesPass implements CompilerPassInterface\n{\n private static \\Closure $registerForAutoconfiguration;\n\n public function process(ContainerBuilder $container): void\n {\n foreach (", "middle": "on;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\n\n/**\n * Reads #[Autoconfigure] attributes on definitions that are autoconfigured\n * and don't have the \"container.ignore_attributes\" tag.\n *\n * @author Nicolas ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/RegisterAutoconfigureAttributesPass.php", "language": "php", "file_size": 4094, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ArgumentInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nu", "suffix": "ds AbstractRecursivePass\n{\n protected bool $skipScalars = true;\n\n private array $erroredDefinitions = [];\n private array $sourceReferences = [];\n\n public function process(ContainerBuilder $container): void\n {\n try {\n parent", "middle": "se Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Throws an exception for any Definitions that have errors and still exist.\n *\n * @author Ryan Weaver <ryan@knpuniversity.com>\n */\nclass DefinitionErrorExceptionPass exten", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php", "language": "php", "file_size": 3419, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\n/**\n * Represents a collection of services found by tag name to lazily iterate over.\n *\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nclass TaggedIteratorArgument extends IteratorArgument\n{\n private mixed $indexAttribute = null;\n private ?string $defaultIndexMethod = null;\n private ?string $def", "suffix": "et services\n * @param string|null $indexAttribute The name of the attribute that defines the key referencing each service in the tagged collection\n * @param bool $needsIndexes Whether indexes are required and should be generated when compu", "middle": "aultPriorityMethod = null;\n private bool $needsIndexes = false;\n private array $exclude = [];\n private bool $excludeSelf = true;\n\n /**\n * @param string $tag The name of the tag identifying the targ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/TaggedIteratorArgument.php", "language": "php", "file_size": 4381, "cut_index": 614, "middle_length": 229}} {"prefix": "e Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\Wither;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CaseSensitiveClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooWithAbstractArgument;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\ProxyAndInheritance;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\ScalarFactory;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\SimilarA", "suffix": "use Symfony\\Component\\ExpressionLanguage\\Expression;\n\nclass ContainerBuilderTest extends TestCase\n{\n public function testDefaultRegisteredDefinitions()\n {\n $builder = new ContainerBuilder();\n\n $this->assertCount(1, $builder->getDefiniti", "middle": "rgumentsDummy;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\StringBackedEnum;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\WitherStaticReturnType;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php", "language": "php", "file_size": 89240, "cut_index": 3790, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Dump", "suffix": " self::$fixturesPath = __DIR__.'/Fixtures/';\n\n require_once self::$fixturesPath.'/includes/classes.php';\n require_once self::$fixturesPath.'/includes/foo.php';\n }\n\n #[DataProvider('crossCheckYamlLoadersDumpers')]\n #[IgnoreDeprecatio", "middle": "er\\YamlDumper;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\n\nclass CrossCheckTest extends TestCase\n{\n protected static string $fixturesPath;\n\n public static function setUpBeforeClass(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/CrossCheckTest.php", "language": "php", "file_size": 3102, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\EnvVarLoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\StaticEnvVarLoader;\n\nclass StaticEnvVarLoaderTest extends TestCase\n{\n public funct", "suffix": "lic array $envVars = [])\n {\n }\n\n public function loadEnvVars(): array\n {\n return $this->envVars;\n }\n };\n\n $loader = new StaticEnvVarLoader($innerLoader);\n $this->ass", "middle": "ion testLoadEnvVarsCachesInnerLoaderEnvVars()\n {\n $innerLoader = new class(['FOO' => 'BAR']) implements EnvVarLoaderInterface {\n /** @param array<string, string> */\n public function __construct(pub", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/StaticEnvVarLoaderTest.php", "language": "php", "file_size": 1182, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireCallable;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass AutowireCallableTest extends TestCase\n{\n public function testNoArguments()\n ", "suffix": "lable(callable: 'my_callable', service: 'my_service', method: 'my_method');\n }\n\n public function testMethodOnly()\n {\n $this->expectException(LogicException::class);\n\n new AutowireCallable(method: 'my_method');\n }\n\n public funct", "middle": " {\n $this->expectException(LogicException::class);\n\n new AutowireCallable();\n }\n\n public function testCallableAndService()\n {\n $this->expectException(LogicException::class);\n\n new AutowireCal", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Attribute/AutowireCallableTest.php", "language": "php", "file_size": 3983, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireInline;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass AutowireInlineTest extends TestCase\n{\n public function testInvalidFactoryArray()\n {\n $autowireInline = new AutowireInline([123, 456]);\n\n self::assertSame([123, 456], $autowireInline->va", "suffix": "'someClass', $autowireInline->value['class']);\n self::assertSame($calls, $autowireInline->value['calls']);\n }\n\n public static function provideInvalidCalls(): iterable\n {\n yield 'missing method' => [[[]]];\n yield 'invalid metho", "middle": "lue['factory']);\n }\n\n #[DataProvider('provideInvalidCalls')]\n public function testInvalidCallsArray(array $calls)\n {\n $autowireInline = new AutowireInline('someClass', calls: $calls);\n\n self::assertSame(", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Attribute/AutowireInlineTest.php", "language": "php", "file_size": 7623, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Fixtures;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireLocator;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\nfinal", "suffix": "key')]\n private ContainerInterface $locator,\n ) {\n }\n\n public function getLocator(): ContainerInterface\n {\n return $this->locator;\n }\n\n public function getContainer(): ?ContainerInterface\n {\n return $this->containe", "middle": " class TaggedLocatorConsumerWithServiceSubscriber implements ServiceSubscriberInterface\n{\n private ?ContainerInterface $container = null;\n\n public function __construct(\n #[AutowireLocator('foo_bar', indexAttribute: '", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/TaggedLocatorConsumerWithServiceSubscriber.php", "language": "php", "file_size": 1291, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Argument;\n\n/**\n * Represents a closure acting as a service locator.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass ServiceLocatorArgument implements ArgumentInterface\n{\n use ArgumentTrait;\n\n private array $values;\n ", "suffix": "teratorArgument = $values;\n $values = [];\n }\n\n $this->setValues($values);\n }\n\n public function getTaggedIteratorArgument(): ?TaggedIteratorArgument\n {\n return $this->taggedIteratorArgument;\n }\n\n public functio", "middle": "private ?TaggedIteratorArgument $taggedIteratorArgument = null;\n\n public function __construct(array|TaggedIteratorArgument $values = [])\n {\n if ($values instanceof TaggedIteratorArgument) {\n $this->taggedI", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Argument/ServiceLocatorArgument.php", "language": "php", "file_size": 1165, "cut_index": 518, "middle_length": 229}} {"prefix": ") takes the class name as its first argument');\n $this->assertSame(['class' => true], $def->getChanges());\n\n $def = new Definition('stdClass', ['foo']);\n $this->assertEquals(['foo'], $def->getArguments(), '__construct() takes an optional array of arguments as its second argument');\n }\n\n public function testSetGetFactory()\n {\n $def = new Definition();\n\n $this->assertSame($def, $def->setFactory('foo'), '->setFactory() implements a fluent interface');\n $this->", "suffix": "all to the array');\n\n $def->setFactory($ref = new Reference('baz'));\n $this->assertSame([$ref, '__invoke'], $def->getFactory(), '->setFactory() converts service reference to class invoke call');\n\n $def->setFactory($innerDef = new Defin", "middle": "assertEquals('foo', $def->getFactory(), '->getFactory() returns the factory');\n\n $def->setFactory('Foo::bar');\n $this->assertEquals(['Foo', 'bar'], $def->getFactory(), '->setFactory() converts string static method c", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php", "language": "php", "file_size": 19092, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\Dep", "suffix": "iValidConfigExtension;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Extension\\ValidConfig\\Configuration;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Extension\\ValidConfig\\ValidConfigExtension;\n\nclass ExtensionTest extends TestCase\n", "middle": "endencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Extension\\InvalidConfig\\InvalidConfigExtension;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Extension\\SemiValidConfig\\Sem", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Extension/ExtensionTest.php", "language": "php", "file_size": 3276, "cut_index": 614, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Fixtures;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireIterator;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireLocator;\n\nfinal class TaggedConsumerWithExclude implements Autoc", "suffix": "t(\n #[AutowireIterator(AutoconfiguredInterface2::class, exclude: self::class)]\n public iterable $items,\n #[AutowireLocator(AutoconfiguredInterface2::class, exclude: self::class)]\n public ContainerInterface $locator,\n ) {\n ", "middle": "onfiguredInterface2\n{\n public function __construc", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/TaggedConsumerWithExclude.php", "language": "php", "file_size": 847, "cut_index": 535, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ArgumentInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInje", "suffix": "h information. You can\n * retrieve the graph in other passes from the compiler.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass AnalyzeServiceReferencesPass extends AbstractRecursivePass\n{\n pr", "middle": "ction\\Reference;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\n/**\n * Run this pass before passes that need to know more about the relation of\n * your services.\n *\n * This class will populate the ServiceReferenceGraph wit", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php", "language": "php", "file_size": 7251, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ServicesResetter;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\ClearableService;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\LazyResettableService;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\MultiResettableS", "suffix": "ResettableService::$counter = 0;\n ClearableService::$counter = 0;\n MultiResettableService::$resetFirstCounter = 0;\n MultiResettableService::$resetSecondCounter = 0;\n }\n\n public function testResetServices()\n {\n $resetter", "middle": "ervice;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\ResettableService;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\n\nclass ServicesResetterTest extends TestCase\n{\n protected function setUp(): void\n {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/ServicesResetterTest.php", "language": "php", "file_size": 4335, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\nclass AliasTest extends TestCase\n{\n public function testCon", "suffix": "$alias = new Alias('foo', false);\n\n $this->assertEquals('foo', (string) $alias);\n $this->assertFalse($alias->isPublic());\n }\n\n public function testCanConstructAPrivateAlias()\n {\n $alias = new Alias('foo', false, false);\n\n ", "middle": "structor()\n {\n $alias = new Alias('foo');\n\n $this->assertEquals('foo', (string) $alias);\n $this->assertFalse($alias->isPublic());\n }\n\n public function testCanConstructANonPublicAlias()\n {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/AliasTest.php", "language": "php", "file_size": 2778, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Attribute;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireMethodOf;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass AutowireMethodOfTest extends TestCase\n{\n public function testConstructor()\n {\n $a = new AutowireMethodO", "suffix": "e('foo')], $a->value);\n }\n\n public function testBuildDefinition(?\\Closure $dummy = null)\n {\n $a = new AutowireMethodOf('foo');\n $r = new \\ReflectionParameter([__CLASS__, __FUNCTION__], 0);\n\n $this->assertEquals([[new Reference", "middle": "f('foo');\n\n $this->assertEquals([new Referenc", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Attribute/AutowireMethodOfTest.php", "language": "php", "file_size": 982, "cut_index": 582, "middle_length": 52}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function comp", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n private const NONEMPTY_PARAMETERS = [\n 'bar' => 'Did you forget to configure the \"foo.bar\" option?',\n ];\n\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_nonempty_parameters.php", "language": "php", "file_size": 3558, "cut_index": 614, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": "onstruct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'wither' => 'getWitherService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicExcep", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Service_Wither_Lazy extends Container\n{\n protected $parameters = [];\n\n public function __c", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_wither_lazy.php", "language": "php", "file_size": 2384, "cut_index": 563, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": "unction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'wither' => 'getWitherService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Service_Wither_Lazy_Non_Shared extends Container\n{\n protected $parameters = [];\n\n public f", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_wither_lazy_non_shared.php", "language": "php", "file_size": 2445, "cut_index": 563, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "meters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'wither' => 'getWitherService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): vo", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Service_WitherStaticReturnType extends Container\n{\n protected $para", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_wither_staticreturntype.php", "language": "php", "file_size": 1947, "cut_index": 537, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'static_constructor' => 'getStaticConstructorService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n ", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/static_constructor.php", "language": "php", "file_size": 1578, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\n\nclass ProjectExtension implements ExtensionInterface\n{\n public function load(array $configs, ContainerBuilder $configuration): void\n {\n $configuration->setParameter('project.configs', $configs);\n $configs = array_filter($configs);\n\n if ($configs) {\n $config = array_merge(...$configs);\n } else {\n $config = [];\n ", "suffix": "ice.foo', 'FooClass')->setPublic(true);\n $configuration->setParameter('project.parameter.foo', $config['foo'] ?? 'foobar');\n }\n\n public function getAlias(): string\n {\n return 'project';\n }\n\n public function getConfiguration(arr", "middle": " }\n\n $configuration->register('project.service.bar', 'FooClass')->setPublic(true);\n $configuration->setParameter('project.parameter.bar', $config['foo'] ?? 'foobar');\n\n $configuration->register('project.serv", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/ProjectExtension.php", "language": "php", "file_size": 1053, "cut_index": 513, "middle_length": 229}} {"prefix": "_classes.php';\nrequire __DIR__.'/autowiring_classes_80.php';\nrequire __DIR__.'/intersectiontype_classes.php';\nrequire __DIR__.'/compositetype_classes.php';\n\nclass Foo\n{\n public static int $counter = 0;\n public int $foo = 0;\n\n #[Required]\n public function cloneFoo(?\\stdClass $bar = null): static\n {\n ++self::$counter;\n\n return clone $this;\n }\n}\n\nclass FooVoid\n{\n public static int $counter = 0;\n\n public function __invoke(string $name): void\n {\n ++self::$counter;\n", "suffix": " public function __construct(A $a)\n {\n }\n}\n\ninterface DInterface\n{\n}\n\ninterface EInterface extends DInterface\n{\n}\n\ninterface IInterface\n{\n}\n\nclass I implements IInterface\n{\n}\n\nclass F extends I implements EInterface\n{\n}\n\nclass G\n{\n public functi", "middle": " }\n}\n\nclass Bar\n{\n public function __construct(Foo $foo)\n {\n }\n}\n\ninterface AInterface\n{\n}\n\nclass A implements AInterface\n{\n public static function create(Foo $foo)\n {\n }\n}\n\nclass B extends A\n{\n}\n\nclass C\n{\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php", "language": "php", "file_size": 11436, "cut_index": 921, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireDecorated;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireInline;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireIterator;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutowireLocator;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Lazy;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Target;\nuse Symfony\\Component\\DependencyInjection\\ContainerIn", "suffix": "foo): static\n {\n return $this;\n }\n}\n\nclass AutowireProperty\n{\n #[Required]\n public Foo $foo;\n}\n\nclass AutowirePropertyWithTarget\n{\n #[Required]\n #[Target('foo.target')]\n public Foo $foo;\n}\n\nclass AutowireReadonlyProperty\n{\n #", "middle": "terface;\nuse Symfony\\Contracts\\Service\\Attribute\\Required;\n\nclass AutowireSetter\n{\n #[Required]\n public function setFoo(Foo $foo): void\n {\n }\n}\n\nclass AutowireWither\n{\n #[Required]\n public function withFoo(Foo $", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes_80.php", "language": "php", "file_size": 6445, "cut_index": 716, "middle_length": 229}} {"prefix": "\\LazyProxy\\PhpDumper\\DumperInterface;\n\nfunction sc_configure($instance)\n{\n $instance->configure();\n}\n\nclass BarClass extends BazClass\n{\n protected $baz;\n public $foo = 'foo';\n\n public function setBaz(BazClass $baz)\n {\n $this->baz = $baz;\n }\n\n public function getBaz()\n {\n return $this->baz;\n }\n}\n\nclass BazClass\n{\n protected $foo;\n\n public function setFoo(Foo $foo)\n {\n $this->foo = $foo;\n }\n\n public function configure($instance)\n {\n $ins", "suffix": "tion configureStatic1()\n {\n }\n}\n\nclass BazInvokableFactory\n{\n public function __invoke(): BazClass\n {\n return new BazClass();\n }\n}\n\nclass BazInvokableConfigurator\n{\n public function __invoke($instance): void\n {\n $instance", "middle": "tance->configure();\n }\n\n public static function getInstance()\n {\n return new self();\n }\n\n public static function configureStatic($instance)\n {\n $instance->configure();\n }\n\n public static func", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/classes.php", "language": "php", "file_size": 3351, "cut_index": 614, "middle_length": 229}} {"prefix": "php\n\nnamespace App;\n\nclass BarService\n{\n}\n\nclass Db\n{\n public Schema $schema;\n}\n\nclass Bus\n{\n public Handler1 $handler1;\n public Handler2 $handler2;\n\n public function __construct(public Db $db)\n {\n }\n}\n\nclass Handler1\n{\n public function __construct(\n public Db $db,\n public Schema $schema,\n public Processor $processor,\n ) {\n }\n}\n\nclass Handler2\n{\n public function __construct(\n public Db $db,\n public Schema $schema,\n public Processor $pro", "suffix": "{\n }\n}\n\nclass Processor\n{\n public function __construct(\n public Registry $registry,\n public Db $db,\n ) {\n }\n}\n\nclass Registry\n{\n public array $processor;\n}\n\nclass Schema\n{\n public function __construct(public Db $db)\n {\n ", "middle": "cessor,\n ) ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/fixture_app_services.php", "language": "php", "file_size": 790, "cut_index": 514, "middle_length": 14}} {"prefix": " public $otherInstances;\n\n public $bar = null;\n public $initialized = false;\n public $configured = false;\n public $called = false;\n public $arguments = [];\n\n public function __construct($arguments = [])\n {\n $this->arguments = $arguments;\n }\n\n public static function getInstance($arguments = [])\n {\n $obj = new self($arguments);\n $obj->called = true;\n\n return $obj;\n }\n\n public function initialize()\n {\n $this->initialized = true;\n }\n\n ", "suffix": "configured = true;\n }\n\n public function setBar($value = null)\n {\n $this->bar = $value;\n }\n\n public function setOtherInstances($otherInstances)\n {\n $this->otherInstances = $otherInstances;\n }\n}\n\nnamespace Acme;\n\nclass Foo\n", "middle": " public function configure()\n {\n $this->", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/foo.php", "language": "php", "file_size": 946, "cut_index": 606, "middle_length": 52}} {"prefix": "DependencyInjection\\Tests\\Fixtures\\CheckTypeDeclarationsPass;\n\nclass BarMethodCall\n{\n public $foo;\n\n public function setBar(Bar $bar)\n {\n }\n\n public function setFoo(\\stdClass $foo)\n {\n $this->foo = $foo;\n }\n\n public function setFoosVariadic(Foo $foo, Foo ...$foos)\n {\n $this->foo = $foo;\n }\n\n public function setFoosOptional(Foo $foo, ?Foo $fooOptional = null)\n {\n $this->foo = $foo;\n }\n\n public function setScalars(int $int, string $string, bool $b", "suffix": "ay(array $array)\n {\n }\n\n public function setIterable(iterable $iterable)\n {\n }\n\n public function setCallable(callable $callable): void\n {\n }\n\n public function setClosure(\\Closure $closure): void\n {\n }\n\n public function s", "middle": "ool = false)\n {\n }\n\n public function setArr", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/CheckTypeDeclarationsPass/BarMethodCall.php", "language": "php", "file_size": 894, "cut_index": 547, "middle_length": 52}} {"prefix": "\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\nrequire_once __DIR__.'/../includes/classes.php';\n\n$container = new ContainerBuilder();\n\n$container->setParameter('env(FOO)', 'Bar\\FaooClass');\n$container->setParameter('foo', '%env(FOO)%');\n\n$container\n ->register('service_from_anonymous_factory', '%foo%')\n ->setFactory([new Definition('%foo%'), 'getInstance'])\n ->setPublic(true)\n;\n\n$anonymousServiceWithFactory = new Definition('Bar\\F", "suffix": "onymousServiceWithFactory->setFactory('Bar\\FooClass::getInstance');\n$container\n ->register('service_with_method_call_and_factory', 'Bar\\FooClass')\n ->addMethodCall('setBar', [$anonymousServiceWithFactory])\n ->setPublic(true)\n;\n\nreturn $container;\n", "middle": "ooClass');\n$an", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container19.php", "language": "php", "file_size": 788, "cut_index": 518, "middle_length": 14}} {"prefix": "<?php\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\n\n$container = new ContainerBuilder(new ParameterBag([\n 'foo' => '%baz%',\n 'baz' => 'bar',\n 'bar' => 'foo is %%foo bar',\n 'escape' => '@escapeme',\n 'values' => [true, false, null, 0, 1000.3, 'true', 'false', 'null'],\n 'utf-8 valid string' => \"\\u{021b}\\u{1b56}\\ttest\",\n 'binary' => \"\\xf0\\xf0\\xf0\\xf0\",\n 'binary-control-char' => \"This is a Bell char \\x07\"", "suffix": "string' => 'false',\n 'binary number string' => '0b0110',\n 'numeric string' => '-1.2E2',\n 'hexadecimal number string' => '0xFF',\n 'float string' => '10100.1',\n 'positive float string' => '+10100.1',\n 'negative float string' => '-10100.1',\n", "middle": ",\n 'console banner' => \"\\e[37;44mHello\\e[30;43mWorld\\e[0m\",\n 'null string' => 'null',\n 'string of digits' => '123',\n 'string of digits prefixed with minus character' => '-123',\n 'true string' => 'true',\n 'false ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container8.php", "language": "php", "file_size": 1022, "cut_index": 512, "middle_length": 229}} {"prefix": "ponent\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Parameter;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\n$container = new ContainerBuilder();\n$container\n ->register('foo', FooClass::class)\n ->addTag('foo', ['foo' => 'foo'])\n ->addTag('foo', ['bar' => 'bar', 'baz' =>", "suffix": "foo%' => 'foo is %foo%', 'foobar' => '%foo%'], true, new Reference('service_container')])\n ->setProperties(['foo' => 'bar', 'moo' => new Reference('foo.baz'), 'qux' => ['%foo%' => 'foo is %foo%', 'foobar' => '%foo%']])\n ->addMethodCall('setBar', [new", "middle": " 'baz'])\n ->addTag('nullable', ['bar' => 'bar', 'baz' => null])\n ->addTag('foo', ['name' => 'bar', 'baz' => 'baz'])\n ->setFactory(['Bar\\\\FooClass', 'getInstance'])\n ->setArguments(['foo', new Reference('foo.baz'), ['%", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container9.php", "language": "php", "file_size": 7174, "cut_index": 716, "middle_length": 229}} {"prefix": "ilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooForCircularWithAddCalls;\n\n$public = 'public' === $visibility;\n$container = new ContainerBuilder();\n\n// factory with lazy injection\n\n$container->register('doctrine.config', 'stdClass')\n ->setProperty('resolver', new Reference('doctrine.entity_listener_resolver'))\n ->setProperty('flag', 'ok');\n\n$container->register('doctrine.entity_", "suffix": "lic)\n ->addArgument(new IteratorArgument([new Reference('doctrine.listener')]));\n$container->register('doctrine.listener', 'stdClass')->setPublic($public)\n ->addArgument(new Reference('doctrine.entity_manager'));\n\n// multiple path detection\n\n$contain", "middle": "manager', 'stdClass')->setPublic(true)\n ->setFactory([FactoryChecker::class, 'create'])\n ->addArgument(new Reference('doctrine.config'));\n$container->register('doctrine.entity_listener_resolver', 'stdClass')->setPublic($pub", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container_almost_circular.php", "language": "php", "file_size": 8822, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n$container = new ContainerBuilder();\n\n$container\n ->register('foo1', 'stdClass')\n ->setPublic(true)\n;\n\n$container\n ->register('foo2', 'stdClass')\n;\n\n$container\n ->register('foo3', 'stdClass')\n ->setShared(false)\n;\n\n$container\n ->register('foo4', 'stdClass')\n ->addError('BOOM')\n;\n\n$container\n ", "suffix": " 'foo2' => new Reference('foo2'),\n 'foo3' => new Reference('foo3'),\n 'foo4' => new Reference('foo4', $container::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE),\n 'foo5' => new Reference('foo5', $container::IGNORE_ON_UNINITIALIZED_REFERENCE", "middle": "->register('foo5', 'stdClass')\n ->setPublic(true)\n ->setSynthetic(true)\n;\n\n$container\n ->register('bar', 'stdClass')\n ->setProperty('locator', new ServiceLocatorArgument([\n 'foo1' => new Reference('foo1'),\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container_service_locator_argument.php", "language": "php", "file_size": 1053, "cut_index": 513, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n$container = new ContainerBuilder();\n\n$container\n ->register('foo1', 'stdClass')\n ->setPublic(true)\n;\n\n$container\n ->register('foo2', 'stdClass')\n;\n\n$container\n ->register('foo3', 'stdClass')\n;\n\n$container\n ->register('baz', 'stdClass')\n ->setProperty('f", "suffix": "rence('foo2', $container::IGNORE_ON_UNINITIALIZED_REFERENCE))\n ->setProperty('foo3', new Reference('foo3', $container::IGNORE_ON_UNINITIALIZED_REFERENCE))\n ->setProperty('closures', [\n new ServiceClosureArgument(new Reference('foo1', $containe", "middle": "oo3', new Reference('foo3'))\n ->setPublic(true)\n;\n\n$container\n ->register('bar', 'stdClass')\n ->setProperty('foo1', new Reference('foo1', $container::IGNORE_ON_UNINITIALIZED_REFERENCE))\n ->setProperty('foo2', new Refe", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container_uninitialized_ref.php", "language": "php", "file_size": 1646, "cut_index": 537, "middle_length": 229}} {"prefix": "php\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Bar;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\BarFactory;\n\nreturn App::config([\n 'services' => [\n '_defaults' => [\n 'public' => true,\n ],\n BarFactory::class => [\n 'arguments' => [[]],\n ],\n 'invokable_factory' => [\n 'class' => Bar::class,\n 'factory' => service(BarFactory::class),\n ", "suffix": "lass' => Bar::class,\n 'factory' => [service(BarFactory::class), 'getDefaultBar'],\n ],\n 'invokable_configurator' => [\n 'class' => Bar::class,\n 'configurator' => service(BarFactory::class),\n ],\n ],\n]);", "middle": " ],\n 'array_factory' => [\n 'c", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/array_config_factory.php", "language": "php", "file_size": 823, "cut_index": 514, "middle_length": 52}} {"prefix": "\nnamespace Testing\\NamedClosure;\n\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\n\nuse function Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\closure;\n\ninterface NamedClosureInterface\n{\n public function theMethod();\n}\n\nclass NamedClosureClass\n{\n public function __construct(...$args)\n {\n }\n\n public static function getInstance(): self\n {\n return new self();\n }\n\n public static function configure(self $instance): void\n {\n }\n}\n", "suffix": "as_factory', NamedClosureClass::class)\n ->factory(NamedClosureClass::getInstance(...))\n ->public()\n ->set('has_configurator', NamedClosureClass::class)\n ->configurator(NamedClosureClass::configure(...))\n -", "middle": "\nreturn function (ContainerConfigurator $c) {\n $c->services()\n ->set('from_callable', NamedClosureInterface::class)\n ->fromCallable(NamedClosureClass::getInstance(...))\n ->public()\n ->set('h", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/named_closure.php", "language": "php", "file_size": 1145, "cut_index": 518, "middle_length": 229}} {"prefix": "space Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype;\n\nreturn function (ContainerConfigurator $c) {\n $di = $c->services()->defaults()\n ->tag('baz');\n $di->load(Prototype::class.'\\\\', '../Prototype')\n ->public()\n ->autoconfigure()\n ->exclude(['../Prototype/OtherDir', '../Prototype/BadClasses', '../Prototype/BadAttributes', '../Prototype/SinglyImplementedInterface', '../Prototype/StaticConstructor", "suffix": "or/package', '1.1', '%service_id%')\n ->args([0])\n ->args([1])\n ->autoconfigure(false)\n ->tag('foo')\n ->parent('foo');\n $di->set('foo')->lazy()->abstract()->public();\n $di->get(Prototype\\Foo::class)->lazy(false);\n};\n", "middle": "'])\n ->factory('f')\n ->deprecate('vend", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/prototype_array.php", "language": "php", "file_size": 831, "cut_index": 523, "middle_length": 52}} {"prefix": "eter;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nrequire_once __DIR__.'/../includes/classes.php';\nrequire_once __DIR__.'/../includes/foo.php';\n\nreturn function (ContainerConfigurator $c) {\n $p = $c->parameters();\n $p->set('baz_class', 'BazClass');\n $p->set('foo_class', FooClass::class)\n ->set('foo', 'bar');\n\n $s = $c->services()->defaults()->public();\n $s->set('foo')\n ->args(['foo', service('foo.baz'), ['%foo%' => 'foo is %foo%', 'foobar' => '%foo%'], true, service('ser", "suffix": ":getInstance(...))\n ->property('foo', 'bar')\n ->property('moo', service('foo.baz'))\n ->property('qux', ['%foo%' => 'foo is %foo%', 'foobar' => '%foo%'])\n ->call('setBar', [service('bar')])\n ->call('initialize')\n ->", "middle": "vice_container')])\n ->class(FooClass::class)\n ->tag('foo', ['foo' => 'foo'])\n ->tag('foo', ['bar' => 'bar', 'baz' => 'baz'])\n ->tag('foo', ['name' => 'bar', 'baz' => 'baz'])\n ->factory(FooClass:", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/services9.php", "language": "php", "file_size": 5568, "cut_index": 716, "middle_length": 229}} {"prefix": "\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nreturn function (ContainerConfigurator $configurator) {\n $services = $configurator->services()->defaults()->public();\n\n $services->set('foo_service', \\stdClass::class);\n\n $services->set('bar_service', \\stdClass::class);\n\n $services->set('locator_dependent_service_indexed', \\ArrayObject::class)\n ->args([service_locator([\n 'foo' => service('foo_service'),\n 'bar' => service('bar_service'),\n ])", "suffix": "cator_dependent_service_mixed', \\ArrayObject::class)\n ->args([service_locator([\n 'foo' => service('foo_service'),\n service('bar_service'),\n ])]);\n\n $services->set('locator_dependent_inline_service', \\ArrayObject::clas", "middle": "]);\n\n $services->set('locator_dependent_service_not_indexed', \\ArrayObject::class)\n ->args([service_locator([\n service('foo_service'),\n service('bar_service'),\n ])]);\n\n $services->set('lo", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/services_with_service_locator_argument.php", "language": "php", "file_size": 1167, "cut_index": 518, "middle_length": 229}} {"prefix": "pace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nreturn function (ContainerConfigurator $c) {\n $services = $c->services();\n\n $services->stack('stack_a', [\n inline_service('stdClass')\n ->property('label', 'A')\n ->property('inner', service('.inner')),\n inline_service('stdClass')\n ->property('label', 'B')\n ->property('inner', service('.inner')),\n inline_service('stdClass')\n ->property('label', 'C'),\n ])->public", "suffix": "label', 'B')\n ->property('inner', service('.inner')),\n ]);\n\n $services->stack('stack_b', [\n service('stack_abstract'),\n inline_service('stdClass')\n ->property('label', 'C'),\n ])->public();\n\n $services->stack(", "middle": "();\n\n $services->stack('stack_abstract', [\n inline_service('stdClass')\n ->property('label', 'A')\n ->property('inner', service('.inner')),\n inline_service('stdClass')\n ->property('", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/stack.php", "language": "php", "file_size": 1423, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Kernel;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\AbstractBundle;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\BundleExtension;\nuse Symfony\\Compon", "suffix": "tSame('FooBarBundle', $bundle->getName());\n }\n\n public function testGetNameExplicit()\n {\n $bundle = new ExplicitlyNamedBundle();\n\n $this->assertSame('CustomName', $bundle->getName());\n }\n\n public function testGetPath()\n {\n ", "middle": "ent\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\n\nclass AbstractBundleTest extends TestCase\n{\n public function testGetNameIsGuessedFromClass()\n {\n $bundle = new FooBarBundle();\n\n $this->asser", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Kernel/AbstractBundleTest.php", "language": "php", "file_size": 3460, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Kernel;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\KernelInterface;\n\nclass FileLocatorTest extends TestCase\n{\n public func", "suffix": " ->willReturn('/bundle-name/some/path');\n $locator = new FileLocator($kernel);\n $this->assertEquals('/bundle-name/some/path', $locator->locate('@BundleName/some/path'));\n\n $kernel\n ->expects($this->never())\n ", "middle": "tion testLocate()\n {\n $kernel = $this->createMock(KernelInterface::class);\n $kernel\n ->expects($this->atLeastOnce())\n ->method('locateResource')\n ->with('@BundleName/some/path')\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Kernel/FileLocatorTest.php", "language": "php", "file_size": 1140, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\ClosureLoader;\n\nclass ClosureLoaderTest extends TestCase\n{\n public function tes", "suffix": "->assertFalse($loader->supports('foo.foo'), '->supports() returns true if the resource is loadable');\n }\n\n public function testLoad()\n {\n $loader = new ClosureLoader($container = new ContainerBuilder(), 'some-env');\n\n $loader->load(s", "middle": "tSupports()\n {\n $loader = new ClosureLoader(new ContainerBuilder());\n\n $this->assertTrue($loader->supports(static function ($container) {}), '->supports() returns true if the resource is loadable');\n $this", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/ClosureLoaderTest.php", "language": "php", "file_size": 1273, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\DirectoryLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\IniFileLoade", "suffix": "te ContainerBuilder $container;\n private DirectoryLoader $loader;\n\n public static function setUpBeforeClass(): void\n {\n self::$fixturesPath = realpath(__DIR__.'/../Fixtures/');\n }\n\n protected function setUp(): void\n {\n $loca", "middle": "r;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\n\nclass DirectoryLoaderTest extends TestCase\n{\n private static string $fixturesPath;\n\n priva", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/DirectoryLoaderTest.php", "language": "php", "file_size": 3131, "cut_index": 614, "middle_length": 229}} {"prefix": "e Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\FileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\AbstractClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\BadClasses\\MissingParent;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\Foo;\nuse Symfo", "suffix": "rSub;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\OtherDir\\AnotherSub\\DeeperBaz;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\OtherDir\\Baz;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\Stat", "middle": "ny\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\FooInterface;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\NotFoo;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\OtherDir\\Anothe", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/FileLoaderTest.php", "language": "php", "file_size": 23977, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\Resource\\GlobResource;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\G", "suffix": "ny-path', 'glob'), '->supports() returns true if the resource has the glob type');\n $this->assertFalse($loader->supports('any-path'), '->supports() returns false if the resource is not of glob type');\n }\n\n public function testLoadAddsTheGlobRe", "middle": "lobFileLoader;\n\nclass GlobFileLoaderTest extends TestCase\n{\n public function testSupports()\n {\n $loader = new GlobFileLoader(new ContainerBuilder(), new FileLocator());\n\n $this->assertTrue($loader->supports('a", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/GlobFileLoaderTest.php", "language": "php", "file_size": 1597, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\IniFileLoader;\n\nclass IniFileLoaderTest extends TestCase\n{\n protected ContainerBuilder $container;\n p", "suffix": "ures/').'/ini'));\n }\n\n public function testIniFileCanBeLoaded()\n {\n $this->loader->load('parameters.ini');\n $this->assertEquals(['foo' => 'bar', 'bar' => '%foo%'], $this->container->getParameterBag()->all(), '->load() takes a single ", "middle": "rotected IniFileLoader $loader;\n\n protected function setUp(): void\n {\n $this->container = new ContainerBuilder();\n $this->loader = new IniFileLoader($this->container, new FileLocator(realpath(__DIR__.'/../Fixt", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php", "language": "php", "file_size": 5564, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Loader;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse", "suffix": "n\\Loader\\YamlFileLoader;\n\nclass LoaderResolverTest extends TestCase\n{\n private static string $fixturesPath;\n\n private LoaderResolver $resolver;\n\n protected function setUp(): void\n {\n self::$fixturesPath = realpath(__DIR__.'/../Fixtures/'", "middle": " Symfony\\Component\\DependencyInjection\\Loader\\ClosureLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\IniFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjectio", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/LoaderResolverTest.php", "language": "php", "file_size": 1979, "cut_index": 537, "middle_length": 229}} {"prefix": "fixture_app_services.php';\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\PhpDumper;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\YamlDumper;\nuse Symfony\\Component\\DependencyInjection\\Exception\\I", "suffix": "ymfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooClassWithEnumAttribute;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooUnitEnum;\n\nclass PhpFileLoaderTest extends TestCase\n{\n public", "middle": "nvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\App;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse S", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/PhpFileLoaderTest.php", "language": "php", "file_size": 16139, "cut_index": 921, "middle_length": 229}} {"prefix": "mponent\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\IniFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Bar;\nus", "suffix": "\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooUnitEnum;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\NamedArgumentsDummy;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype;\nuse Symfony\\Component\\ExpressionLanguag", "middle": "e Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\BarInterface;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CaseSensitiveClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooClassWithEnumAttribute;", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php", "language": "php", "file_size": 66413, "cut_index": 2151, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'public_foo' => 'getPublicFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n thro", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_private_in_expression.php", "language": "php", "file_size": 1613, "cut_index": 537, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": " {\n $this->parameters = $this->getDefaultParameters();\n\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'Symfony\\\\Component\\\\DependencyInjection\\\\Tests\\\\Dumper\\\\Rot13EnvVarProcessor' => 'getRot13EnvVarProcess", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container\n{\n protected $parameters = [];\n protected \\Closure $getService;\n\n public function __construct()\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_rot13_env.php", "language": "php", "file_size": 4660, "cut_index": 614, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": " $this->services = $this->privates = [];\n $this->methodMap = [\n 'tsantos_serializer' => 'getTsantosSerializerService',\n ];\n $this->aliases = [\n 'TSantos\\\\Serializer\\\\SerializerInterface' => 'tsantos_seriali", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_tsantos.php", "language": "php", "file_size": 2387, "cut_index": 563, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "= $this->getDefaultParameters();\n\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar$' => 'getBarService',\n 'bar$!' => 'getBar2Service',\n 'foo*/oh-no' => 'getFooohnoService',\n ];\n\n ", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Unsupported_Characters extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_unsupported_characters.php", "language": "php", "file_size": 3744, "cut_index": 614, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "getDefaultParameters();\n\n $this->services = $this->privates = [];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compile a dumped container that was already compiled.');\n ", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_UrlParameters extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_url_env.php", "language": "php", "file_size": 3210, "cut_index": 614, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": "on __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'wither' => 'getWitherService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new Logi", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Service_Wither_Annotation extends Container\n{\n protected $parameters = [];\n\n public functi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_wither_annotation.php", "language": "php", "file_size": 2025, "cut_index": 563, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": ".', 'foo_class'],\n ];\n\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParameters();\n\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'foo' =>", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n private const DEPRECATED_PARAMETERS = [\n 'foo_class' => ['symfony/test', '6.3', 'The parameter \"%s\" is deprecated", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_deprecated_parameters.php", "language": "php", "file_size": 3494, "cut_index": 614, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "ters();\n\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n ", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParame", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_env_in_id.php", "language": "php", "file_size": 3764, "cut_index": 614, "middle_length": 229}} {"prefix": "n;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Errored_Definition extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this->getDefaultParameters();\n\n $this->services = $this->privates = [];\n ", "suffix": " 'b_service' => 'getBServiceService',\n 'bar' => 'getBar3Service',\n 'bar2' => 'getBar22Service',\n 'baz' => 'getBazService',\n 'configured_service' => 'getConfiguredServiceService',\n 'configured_se", "middle": " $this->syntheticIds = [\n 'request' => true,\n ];\n $this->methodMap = [\n 'BAR' => 'getBARService',\n 'BAR2' => 'getBAR2Service',\n 'a_service' => 'getAServiceService',\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_errored_definition.php", "language": "php", "file_size": 16291, "cut_index": 921, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": ">getDefaultParameters();\n\n $this->services = $this->privates = [];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compile a dumped container that was already compiled.');\n ", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_JsonParameters extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $this-", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_json_env.php", "language": "php", "file_size": 3293, "cut_index": 614, "middle_length": 229}} {"prefix": "y\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container", "suffix": "e' => 'getFooServiceService',\n 'translator.loader_1' => 'getTranslator_Loader1Service',\n 'translator.loader_2' => 'getTranslator_Loader2Service',\n 'translator.loader_3' => 'getTranslator_Loader3Service',\n 'transl", "middle": "\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar_service' => 'getBarServiceService',\n 'foo_servic", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_locator.php", "language": "php", "file_size": 5795, "cut_index": 716, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": " $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compil", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_lazy.php", "language": "php", "file_size": 2134, "cut_index": 563, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "= [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n ", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Service_Non_Shared_Lazy extends Container\n{\n protected $parameters ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_lazy_public.php", "language": "php", "file_size": 1969, "cut_index": 537, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicEx", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_resettable_as_arg.php", "language": "php", "file_size": 1568, "cut_index": 537, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicEx", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_resettable_multiple.php", "language": "php", "file_size": 1610, "cut_index": 537, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": " $this->getDefaultParameters();\n\n $this->services = $this->privates = [];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compile a dumped container that was already compile", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_QueryStringParameters extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters =", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_query_string_env.php", "language": "php", "file_size": 3189, "cut_index": 614, "middle_length": 229}} {"prefix": "y\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container", "suffix": "ncyInjection\\\\Tests\\\\Fixtures\\\\TestServiceSubscriber' => 'getTestServiceSubscriberService',\n 'foo_service' => 'getFooServiceService',\n 'late_alias' => 'getLateAliasService',\n ];\n $this->aliases = [\n 'Symfony\\\\", "middle": "\n{\n protected $parameters = [];\n protected \\Closure $getService;\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'Symfony\\\\Component\\\\Depende", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_subscriber.php", "language": "php", "file_size": 5176, "cut_index": 716, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": " public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'wither' => 'getWitherService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n ", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Service_Wither extends Container\n{\n protected $parameters = [];\n\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_wither.php", "language": "php", "file_size": 1974, "cut_index": 537, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": " $this->methodMap = [\n 'bar' => 'getBarService',\n 'baz' => 'getBazService',\n 'buz' => 'getBuzService',\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile():", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_dedup_lazy.php", "language": "php", "file_size": 3562, "cut_index": 614, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": " $this->methodMap = [\n 'Symfony\\\\Component\\\\DependencyInjection\\\\Tests\\\\Fixtures\\\\ParentNotExists' => 'getParentNotExistsService',\n 'Symfony\\\\Component\\\\DependencyInjection\\\\Tests\\\\Fixtures\\\\includes\\\\HotPath\\\\C1' => 'getC1Service", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_inline_requires.php", "language": "php", "file_size": 3764, "cut_index": 614, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicEx", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_new_in_initializer.php", "language": "php", "file_size": 1544, "cut_index": 537, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": " $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compil", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_lazy_ghost.php", "language": "php", "file_size": 2262, "cut_index": 563, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar_service' => 'getBarServiceService',\n 'foo_service' => 'getFooServiceService',\n ];\n\n $this->aliases = [];\n }\n", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_private_frozen.php", "language": "php", "file_size": 1975, "cut_index": 537, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "\n {\n $this->services = $this->privates = [];\n $this->syntheticIds = [\n 'foo5' => true,\n ];\n $this->methodMap = [\n 'bar' => 'getBarService',\n 'foo1' => 'getFoo1Service',\n ];\n\n $th", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Service_Locator_Argument extends Container\n{\n protected $parameters = [];\n protected \\Closure $getService;\n\n public function __construct()", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_service_locator_argument.php", "language": "php", "file_size": 3439, "cut_index": 614, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": "ruct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Deep_Graph extends Container\n{\n protected $parameters = [];\n\n public function __const", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_deep_graph.php", "language": "php", "file_size": 2515, "cut_index": 563, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "];\n\n public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'App\\\\Foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n ", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Inline_Self_Ref extends Container\n{\n protected $parameters = [", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_inline_self_ref.php", "language": "php", "file_size": 1582, "cut_index": 537, "middle_length": 229}} {"prefix": "ent\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Paramete", "suffix": "ction __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'foo' => 'getFooService',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicEx", "middle": "rBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n\n public fun", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_resettable.php", "language": "php", "file_size": 1601, "cut_index": 537, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": "is->getDefaultParameters();\n\n $this->services = $this->privates = [];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n {\n throw new LogicException('You cannot compile a dumped container that was already compiled.')", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_DefaultParameters extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->parameters = $th", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_default_env.php", "language": "php", "file_size": 3481, "cut_index": 614, "middle_length": 229}} {"prefix": "gument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface", "suffix": "public function __construct()\n {\n $this->services = $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n 'baz' => 'getBazService',\n ];\n\n $this->aliases = [];\n }\n\n public function", "middle": ";\n\n/**\n * @internal This class has been auto-generated by the Symfony Dependency Injection Component.\n */\nclass ProjectServiceContainer extends Container\n{\n protected $parameters = [];\n protected \\Closure $getService;\n\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_duplicates.php", "language": "php", "file_size": 2450, "cut_index": 563, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\n\n/**\n * @internal This class has been auto-genera", "suffix": " $this->privates = [];\n $this->methodMap = [\n 'bar' => 'getBarService',\n 'baz' => 'getBazService',\n 'foo1' => 'getFoo1Service',\n ];\n\n $this->aliases = [];\n }\n\n public function compile(): void\n ", "middle": "ted by the Symfony Dependency Injection Component.\n */\nclass Symfony_DI_PhpDumper_Test_Uninitialized_Reference extends Container\n{\n protected $parameters = [];\n\n public function __construct()\n {\n $this->services =", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_uninitialized_ref.php", "language": "php", "file_size": 3240, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AbstractRecursivePass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\Dependency", "suffix": "s AbstractRecursivePassTest extends TestCase\n{\n public function testGetConstructorResolvesFactoryChildDefinitionsClass()\n {\n $container = new ContainerBuilder();\n $container->setParameter('factory_dummy_class', FactoryDummy::class);\n ", "middle": "Injection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Bar;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FactoryDummy;\n\nclas", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/AbstractRecursivePassTest.php", "language": "php", "file_size": 4638, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AddBehaviorDescribingTagsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass AddBehaviorDescribingTagsPassTest extends TestCase\n{\n public function testPr", "suffix": "tainer.do_not_inline',\n 'container.service_locator',\n 'container.service_subscriber',\n 'kernel.event_subscriber',\n 'kernel.reset',\n ], $container->getParameter('container.behavior_describing_tags'));\n }", "middle": "ocessSetsParameter()\n {\n $container = new ContainerBuilder();\n\n (new AddBehaviorDescribingTagsPass(['kernel.event_subscriber', 'kernel.reset']))->process($container);\n\n $this->assertSame([\n 'con", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/AddBehaviorDescribingTagsPassTest.php", "language": "php", "file_size": 2093, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\n\n/**\n * @author Guilhem N <egetick@gmail.com>\n */\nclass PassConfi", "suffix": " $config->addPass($pass1, PassConfig::TYPE_BEFORE_OPTIMIZATION, 10);\n\n $pass2 = $this->createStub(CompilerPassInterface::class);\n $config->addPass($pass2, PassConfig::TYPE_BEFORE_OPTIMIZATION, 30);\n\n $passes = $config->getBeforeOptimi", "middle": "gTest extends TestCase\n{\n public function testPassOrdering()\n {\n $config = new PassConfig();\n $config->setBeforeOptimizationPasses([]);\n\n $pass1 = $this->createStub(CompilerPassInterface::class);\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/PassConfigTest.php", "language": "php", "file_size": 1797, "cut_index": 537, "middle_length": 229}} {"prefix": "eofConditionalsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\BarTagClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooTagClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooTaggedForInvalidDefaultMethodClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\IntTagC", "suffix": " 'my_service1' => ['my_custom_tag' => ['priority' => 100]],\n 'my_service2' => ['my_custom_tag' => ['priority' => 200]],\n 'my_service3' => ['my_custom_tag' => ['priority' => -501]],\n 'my_service4' => ['my_custom_tag' => []]", "middle": "lass;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\n\nclass PriorityTaggedServiceTraitTest extends TestCase\n{\n public function testThatCacheWarmersAreProcessedInPriorityOrder()\n {\n $services = [\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/PriorityTaggedServiceTraitTest.php", "language": "php", "file_size": 28408, "cut_index": 1331, "middle_length": 229}} {"prefix": "ony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\RegisterAutoconfigureAttributesPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\AutoconfigureFailedException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutoconfigureAttributed;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutoconfiguredInterface;\nuse Symfony\\Co", "suffix": "tedCalls;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutoconfigureRepeatedOverwrite;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutoconfigureRepeatedProperties;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Autoconfig", "middle": "mponent\\DependencyInjection\\Tests\\Fixtures\\AutoconfigureRepeated;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutoconfigureRepeatedBindings;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutoconfigureRepea", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterAutoconfigureAttributesPassTest.php", "language": "php", "file_size": 10676, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\RegisterEnvVarProcessorsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\EnvVarProcessorInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentExc", "suffix": "container.env_var_processor');\n\n (new RegisterEnvVarProcessorsPass())->process($container);\n\n $this->assertTrue($container->has('container.env_var_processors_locator'));\n $this->assertInstanceOf(SimpleProcessor::class, $container->get(", "middle": "eption;\n\nclass RegisterEnvVarProcessorsPassTest extends TestCase\n{\n public function testSimpleProcessor()\n {\n $container = new ContainerBuilder();\n $container->register('foo', SimpleProcessor::class)->addTag('", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterEnvVarProcessorsPassTest.php", "language": "php", "file_size": 3443, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\RegisterReverseContainerPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n", "suffix": " {\n $container = new ContainerBuilder();\n $container->register('foo', 'stdClass');\n $container->register('reverse_container', ReverseContainer::class)\n ->addArgument(new Reference('service_container'))\n ->addArgu", "middle": "use Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ReverseContainer;\n\nclass RegisterReverseContainerPassTest extends TestCase\n{\n public function testCompileRemovesUnusedServices()\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterReverseContainerPassTest.php", "language": "php", "file_size": 3123, "cut_index": 614, "middle_length": 229}} {"prefix": "ymfony\\Component\\DependencyInjection\\Compiler\\ResolveBindingsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveServiceSubscribersPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixt", "suffix": "estDefinition3;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriberChild;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscri", "middle": "ures\\CustomDefinition;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestDefinition1;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestDefinition2;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\T", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php", "language": "php", "file_size": 25683, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\RemoveBuildParametersPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass RemoveBuildParametersPassTest extends TestCase\n{\n public function testBuildParametersShouldBeRemoved()\n {\n $builder = new", "suffix": "', $builder->getParameter('foo'), '\"foo\" parameter must be defined.');\n $this->assertFalse($builder->hasParameter('.bar'), '\".bar\" parameter must be removed.');\n $this->assertSame(['.bar' => 'Bar'], $pass->getRemovedParameters(), '\".bar\" para", "middle": " ContainerBuilder();\n $builder->setParameter('foo', 'Foo');\n $builder->setParameter('.bar', 'Bar');\n\n $pass = new RemoveBuildParametersPass();\n $pass->process($builder);\n\n $this->assertSame('Foo", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/RemoveBuildParametersPassTest.php", "language": "php", "file_size": 3073, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\RemoveUnusedDefinitionsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveParameterPlaceHoldersPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n", "suffix": "register('foo')\n ;\n $container\n ->register('bar')\n ;\n $container\n ->register('moo')\n ->setPublic(true)\n ->setArguments([new Reference('bar')])\n ;\n\n $this->process($contai", "middle": "use Symfony\\Component\\DependencyInjection\\Reference;\n\nclass RemoveUnusedDefinitionsPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $container\n ->", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/RemoveUnusedDefinitionsPassTest.php", "language": "php", "file_size": 4682, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ReplaceAliasByActualDefinitionPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nrequire_once __DIR__.'/.", "suffix": " '\\stdClass')->setPublic(true);\n $aDefinition->setFactory([new Reference('b'), 'createA']);\n\n $bDefinition = new Definition('\\stdClass');\n $container->setDefinition('b', $bDefinition);\n\n $container->setAlias('a_alias', 'a')->set", "middle": "./Fixtures/includes/foo.php';\n\nclass ReplaceAliasByActualDefinitionPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n\n $aDefinition = $container->register('a',", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ReplaceAliasByActualDefinitionPassTest.php", "language": "php", "file_size": 4724, "cut_index": 614, "middle_length": 229}} {"prefix": "ymfony\\Component\\DependencyInjection\\Compiler\\ResettableServicePass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServicesResetter;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\ClearableService;\nuse Symfo", "suffix": "lerPass()\n {\n $container = new ContainerBuilder();\n $container->register('one', ResettableService::class)\n ->setPublic(true)\n ->addTag('kernel.reset', ['method' => 'reset']);\n $container->register('two', Cleara", "middle": "ny\\Component\\DependencyInjection\\Tests\\Fixtures\\MultiResettableService;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\ResettableService;\n\nclass ResettableServicePassTest extends TestCase\n{\n public function testCompi", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResettableServicePassTest.php", "language": "php", "file_size": 10172, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AutowirePass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveAutowireInlineAttributesPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveChildDefi", "suffix": "./Fixtures/includes/autowiring_classes.php';\n\nclass ResolveAutowireInlineAttributesPassTest extends TestCase\n{\n public function testAttribute()\n {\n $container = new ContainerBuilder();\n $container->register(Foo::class, Foo::class)\n ", "middle": "nitionsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveNamedArgumentsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nrequire_once __DIR__.'/.", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveAutowireInlineAttributesPassTest.php", "language": "php", "file_size": 3587, "cut_index": 614, "middle_length": 229}} {"prefix": "dencyInjection\\Argument\\AbstractArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\BoundArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Target;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AutowireRequiredMethodsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\DefinitionErrorExceptionPass;\nuse Symfony\\Component\\DependencyI", "suffix": ";\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\BarInterface;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Cas", "middle": "njection\\Compiler\\ResolveBindingsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveBindingsPassTest.php", "language": "php", "file_size": 15507, "cut_index": 921, "middle_length": 229}} {"prefix": "ponent\\DependencyInjection\\Compiler\\ResolveChildDefinitionsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\n\nclass ResolveChildDefinitionsPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $container->register('parent', 'foo')->setArguments(['moo', 'b'])->setProperty('foo', 'moo');\n $container->setDefinition('child', new ChildDef", "suffix": " $this->assertNotInstanceOf(ChildDefinition::class, $def);\n $this->assertEquals('bar', $def->getClass());\n $this->assertEquals(['a', 'b'], $def->getArguments());\n $this->assertEquals(['foo' => 'bar'], $def->getProperties());\n }\n", "middle": "inition('parent'))\n ->replaceArgument(0, 'a')\n ->setProperty('foo', 'bar')\n ->setClass('bar')\n ;\n\n $this->process($container);\n\n $def = $container->getDefinition('child');\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveChildDefinitionsPassTest.php", "language": "php", "file_size": 13308, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveClassPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CaseSensiti", "suffix": "r->register($serviceId);\n\n (new ResolveClassPass())->process($container);\n\n $this->assertSame($serviceId, $def->getClass());\n }\n\n public static function provideValidClassId()\n {\n yield [CaseSensitiveClass::class];\n }\n\n #", "middle": "veClass;\n\nclass ResolveClassPassTest extends TestCase\n{\n #[DataProvider('provideValidClassId')]\n public function testResolveClassFromId($serviceId)\n {\n $container = new ContainerBuilder();\n $def = $containe", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveClassPassTest.php", "language": "php", "file_size": 5176, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\DecoratorServicePass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveDecoratorStackPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definit", "suffix": " // The existing service that should be decorated\n $container->register('original_service', \\stdClass::class)\n ->setPublic(true)\n ->setProperty('label', 'original');\n\n // Define a stack that decorates the existing servic", "middle": "ion;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass ResolveDecoratorStackPassTest extends TestCase\n{\n public function testStackDecoratesExistingService()\n {\n $container = new ContainerBuilder();\n\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveDecoratorStackPassTest.php", "language": "php", "file_size": 9118, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveFactoryClassPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Def", "suffix": " $container = new ContainerBuilder();\n\n $factory = $container->register('factory', 'Foo\\Bar');\n $factory->setFactory([null, 'create']);\n\n $pass = new ResolveFactoryClassPass();\n $pass->process($container);\n\n $this->as", "middle": "inition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass ResolveFactoryClassPassTest extends TestCase\n{\n public function testProcess()\n {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveFactoryClassPassTest.php", "language": "php", "file_size": 2832, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveHotPathPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Depend", "suffix": "ner->register('foo')\n ->addTag('container.hot_path')\n ->addArgument(new IteratorArgument([new Reference('lazy')]))\n ->addArgument(new Reference('service_container'))\n ->addArgument(new Definition('', [new Referen", "middle": "encyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass ResolveHotPathPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n\n $contai", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveHotPathPassTest.php", "language": "php", "file_size": 2571, "cut_index": 563, "middle_length": 229}} {"prefix": "nent\\Config\\ResourceCheckerInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\BoundArgument;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveChildDefinitionsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveInstanceofConditionalsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exc", "suffix": "tends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $def = $container->register('foo', self::class)->addTag('tag')->setAutowired(true)->setChanges([]);\n $def->setInstanceofConditionals([\n ", "middle": "eption\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Contracts\\Service\\ResetInterface;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\nclass ResolveInstanceofConditionalsPassTest ex", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInstanceofConditionalsPassTest.php", "language": "php", "file_size": 15486, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\DecoratorServicePass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveInvalidReferencesPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\Dependen", "suffix": " ->setArguments([\n new Reference('bar', ContainerInterface::NULL_ON_INVALID_REFERENCE),\n new Reference('baz', ContainerInterface::IGNORE_ON_INVALID_REFERENCE),\n ])\n ->addMethodCall('foo', [new Refere", "middle": "cyInjection\\Reference;\n\nclass ResolveInvalidReferencesPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $def = $container\n ->register('foo')\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php", "language": "php", "file_size": 6362, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveNamedArgumentsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse ", "suffix": "entsDummy;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\NamedArgumentsVariadicsDummy;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\SimilarArgumentsDummy;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestDefinition1;\n\n/**", "middle": "Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CaseSensitiveClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FactoryDummyWithoutReturnTypes;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\NamedArgum", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveNamedArgumentsPassTest.php", "language": "php", "file_size": 8822, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveNoPreloadPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass ResolveNoPreloadPassTest extends Te", "suffix": " ->addArgument(new Reference('not_preloaded'));\n\n $container->register('preloaded')\n ->addArgument(new Reference('preloaded_dep'))\n ->addArgument(new Reference('common_dep'));\n\n $container->register('not_preloaded')", "middle": "stCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n\n $container->register('entry_point')\n ->setPublic(true)\n ->addArgument(new Reference('preloaded'))\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveNoPreloadPassTest.php", "language": "php", "file_size": 2071, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveParameterPlaceHoldersPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\n\nclass ResolveParameterPlaceHoldersPassTest extends TestCase\n{\n private ResolveParameterPlaceHolder", "suffix": ">container = $this->createContainerBuilder();\n $this->compilerPass->process($this->container);\n $this->fooDefinition = $this->container->getDefinition('foo');\n }\n\n public function testClassParametersShouldBeResolved()\n {\n $thi", "middle": "sPass $compilerPass;\n private ContainerBuilder $container;\n private Definition $fooDefinition;\n\n protected function setUp(): void\n {\n $this->compilerPass = new ResolveParameterPlaceHoldersPass();\n $this-", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveParameterPlaceHoldersPassTest.php", "language": "php", "file_size": 5276, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveReferencesToAliasesPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceExcept", "suffix": "ias('bar', 'foo');\n $def = $container\n ->register('moo')\n ->setArguments([new Reference('bar')])\n ;\n\n $this->process($container);\n\n $arguments = $def->getArguments();\n $this->assertEquals('foo', (str", "middle": "ion;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass ResolveReferencesToAliasesPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $container->setAl", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php", "language": "php", "file_size": 7072, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveTaggedIteratorArgumentPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse S", "suffix": "container = new ContainerBuilder();\n $container->register('a', 'stdClass')->addTag('foo');\n $container->register('b', 'stdClass')->addTag('foo', ['priority' => 20]);\n $container->register('c', 'stdClass')->addTag('foo', ['priority' => ", "middle": "ymfony\\Component\\DependencyInjection\\TypedReference;\n\n/**\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nclass ResolveTaggedIteratorArgumentPassTest extends TestCase\n{\n public function testProcess()\n {\n $", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveTaggedIteratorArgumentPassTest.php", "language": "php", "file_size": 4183, "cut_index": 614, "middle_length": 229}} {"prefix": "ony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AsTaggedItem;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInject", "suffix": "fony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestDefinition2;\n\nrequire_once __DIR__.'/../Fixtures/includes/classes.php';\n\nclass ServiceLocatorTagPassTest extends TestCase\n{\n public function testNoServices()\n {\n $this->expectException(Inva", "middle": "ion\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestDefinition1;\nuse Sym", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ServiceLocatorTagPassTest.php", "language": "php", "file_size": 12926, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\DecoratorServicePass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\TagDecoratorPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Com", "suffix": "r('foo', \\stdClass::class)->addTag('tag');\n $container->register('bar', \\stdClass::class)->addTag('tag');\n $container->register('decorator', \\stdClass::class)->addResourceTag('container.tag_decorator', ['decorates_tag' => 'tag']);\n\n $t", "middle": "ponent\\DependencyInjection\\Exception\\ServiceNotFoundException;\n\nclass TagDecoratorPassTest extends TestCase\n{\n public function testDecorateByTag()\n {\n $container = new ContainerBuilder();\n\n $container->registe", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/TagDecoratorPassTest.php", "language": "php", "file_size": 4569, "cut_index": 614, "middle_length": 229}} {"prefix": "omponent\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidTypeException;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\MergeExtensionConfigurationPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\RegisterEnvVarProcessorsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ValidateEnvPlaceholdersPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse", "suffix": "nConfig()\n {\n $container = new ContainerBuilder();\n $container->setParameter('env(NULLED)', null);\n $container->setParameter('env(FLOATISH)', '3.2');\n $container->registerExtension($ext = new EnvExtension());\n $contain", "middle": " Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\n\nclass ValidateEnvPlaceholdersPassTest extends TestCase\n{\n public function testEnvsAreValidatedI", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ValidateEnvPlaceholdersPassTest.php", "language": "php", "file_size": 16592, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Argument;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\LazyClosure;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\nclass LazyClosureTest extends TestCase\n{\n publ", "suffix": " from a lazy closure.');\n\n $closure->foo;\n }\n\n public function testThrowsWhenNotUsingInterface()\n {\n $this->expectException(\\RuntimeException::class);\n $this->expectExceptionMessage('Cannot create adapter for service \"foo\" bec", "middle": "ic function testMagicGetThrows()\n {\n $closure = new LazyClosure(static fn () => null);\n\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('Cannot read property \"foo\"", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Argument/LazyClosureTest.php", "language": "php", "file_size": 2288, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Argument;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\n\nclass RewindableGeneratorTest extends TestCase\n{\n public function testImplementsCountable()\n {\n $this->", "suffix": "ic function () {\n yield 1;\n }, 3);\n\n $this->assertCount(3, $generator);\n }\n\n public function testCountUsesProvidedValueAsCallback()\n {\n $called = 0;\n $generator = new RewindableGenerator(static function () {\n", "middle": "assertInstanceOf(\\Countable::class, new RewindableGenerator(static function () {\n yield 1;\n }, 1));\n }\n\n public function testCountUsesProvidedValue()\n {\n $generator = new RewindableGenerator(stat", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Argument/RewindableGeneratorTest.php", "language": "php", "file_size": 1368, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Argument;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\n\nclass TaggedIteratorArgumentTest extends TestCase\n{\n public function testWithTagOnly()\n {\n $taggedIteratorArgument = new TaggedIteratorArgument('foo');\n", "suffix": " $this->assertFalse($taggedIteratorArgument->needsIndexes());\n $this->assertNull($taggedIteratorArgument->getDefaultPriorityMethod(false));\n }\n\n public function testOnlyTagWithNeedsIndexes()\n {\n $taggedIteratorArgument = new Tagge", "middle": "\n $this->assertSame('foo', $taggedIteratorArgument->getTag());\n $this->assertNull($taggedIteratorArgument->getIndexAttribute());\n $this->assertNull($taggedIteratorArgument->getDefaultIndexMethod(false));\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Argument/TaggedIteratorArgumentTest.php", "language": "php", "file_size": 5440, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Config;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Config\\ContainerParametersResource;\nuse Symfony\\Component\\DependencyInjection\\Config\\ContainerParametersResourceChecker;\nuse Symfony\\Componen", "suffix": "tainer $container;\n\n protected function setUp(): void\n {\n $this->resource = new ContainerParametersResource(['locales' => ['fr', 'en'], 'default_locale' => 'fr']);\n $this->container = new Container();\n $this->resourceChecker = ne", "middle": "t\\DependencyInjection\\Container;\n\nclass ContainerParametersResourceCheckerTest extends TestCase\n{\n private ContainerParametersResource $resource;\n private ContainerParametersResourceChecker $resourceChecker;\n private Con", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Config/ContainerParametersResourceCheckerTest.php", "language": "php", "file_size": 2087, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Config;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Config\\ContainerParametersResource;\n\nclass ContainerParametersResourceTest extends TestCase\n{\n private ContainerParametersResource $resource", "suffix": "Same('container_parameters_f2f012423c221eddf6c9a6305f965327', (string) $this->resource);\n }\n\n public function testSerializeUnserialize()\n {\n $unserialized = unserialize(serialize($this->resource));\n\n $this->assertEquals($this->resour", "middle": ";\n\n protected function setUp(): void\n {\n $this->resource = new ContainerParametersResource(['locales' => ['fr', 'en'], 'default_locale' => 'fr']);\n }\n\n public function testToString()\n {\n $this->assert", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Config/ContainerParametersResourceTest.php", "language": "php", "file_size": 1200, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AliasDeprecatedPublicServicesPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInj", "suffix": "->register('foo')\n ->setPublic(true)\n ->addTag('container.private', ['package' => 'foo/bar', 'version' => '1.2']);\n\n (new AliasDeprecatedPublicServicesPass())->process($container);\n\n $this->assertTrue($container->hasAlia", "middle": "ection\\Exception\\InvalidArgumentException;\n\nfinal class AliasDeprecatedPublicServicesPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $container\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/AliasDeprecatedPublicServicesPassTest.php", "language": "php", "file_size": 2743, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AnalyzeServiceReferencesPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\nclass Anal", "suffix": "'b'))\n ;\n\n $container\n ->register('b')\n ->addMethodCall('setA', [$ref2 = new Reference('a')])\n ;\n\n $container\n ->register('c')\n ->addArgument($ref3 = new Reference('a'))\n ->", "middle": "yzeServiceReferencesPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n\n $container\n ->register('a')\n ->addArgument($ref1 = new Reference(", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/AnalyzeServiceReferencesPassTest.php", "language": "php", "file_size": 6986, "cut_index": 716, "middle_length": 229}} {"prefix": "rocess($container);\n try {\n (new AutowirePass())->process($container);\n $this->fail('AutowirePass should have thrown an exception');\n } catch (AutowiringFailedException $e) {\n $this->assertSame('Cannot autowire service \"Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\ElsaAction\": argument \"$notExisting\" of method \"__construct()\" has type \"Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\NotExisting\" but this class was not found.', (string) $e->getMessa", "suffix": ":class);\n $definition->setAutowired(true);\n\n (new ResolveClassPass())->process($container);\n (new AutowirePass())->process($container);\n\n $this->assertCount(1, $container->getDefinition('fooVariadic')->getArguments());\n $", "middle": "ge());\n }\n }\n\n public function testProcessVariadic()\n {\n $container = new ContainerBuilder();\n $container->register(Foo::class);\n $definition = $container->register('fooVariadic', FooVariadic:", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php", "language": "php", "file_size": 71903, "cut_index": 3790, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AutowireRequiredMethodsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveClassPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\WitherStaticR", "suffix": "ainerBuilder();\n $container->register(Foo::class);\n\n $container\n ->register('setter_injection', AutowireSetter::class)\n ->setAutowired(true);\n\n (new ResolveClassPass())->process($container);\n (new AutowireR", "middle": "eturnType;\n\nrequire_once __DIR__.'/../Fixtures/includes/autowiring_classes.php';\n\nclass AutowireRequiredMethodsPassTest extends TestCase\n{\n public function testSetterInjectionWithAttribute()\n {\n $container = new Cont", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowireRequiredMethodsPassTest.php", "language": "php", "file_size": 3351, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CheckAliasValidityPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component", "suffix": "eckAliasValidityPass\\FooNotImplementing;\n\nclass CheckAliasValidityPassTest extends TestCase\n{\n public function testProcessDetectsClassNotImplementingAliasedInterface()\n {\n $this->expectException(RuntimeException::class);\n $container = n", "middle": "\\DependencyInjection\\Tests\\Fixtures\\CheckAliasValidityPass\\FooImplementing;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CheckAliasValidityPass\\FooInterface;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Ch", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckAliasValidityPassTest.php", "language": "php", "file_size": 3115, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CheckArgumentsValidityPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\", "suffix": " $definition = $container->register('foo');\n $definition->setArguments([null, 1, 'a']);\n $definition->setMethodCalls([\n ['bar', ['a', 'b']],\n ['baz', ['c', 'd']],\n ]);\n\n $pass = new CheckArgumentsValidityP", "middle": "Exception\\RuntimeException;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass CheckArgumentsValidityPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckArgumentsValidityPassTest.php", "language": "php", "file_size": 2415, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\BoundArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AnalyzeServiceReferencesPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CheckExceptionOnInvalidReferenceBehavi", "suffix": "mfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass CheckExceptionOnInvalidReferenceBehaviorPassTest extends TestCase\n{\n ", "middle": "orPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\InlineServiceDefinitionsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Sy", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckExceptionOnInvalidReferenceBehaviorPassTest.php", "language": "php", "file_size": 5084, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CheckReferenceValidityPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Referenc", "suffix": "true);\n $container->register('b')->addArgument(new Reference('a'));\n\n $this->expectException(\\RuntimeException::class);\n\n $this->process($container);\n }\n\n public function testProcess()\n {\n $container = new ContainerBuil", "middle": "e;\n\nclass CheckReferenceValidityPassTest extends TestCase\n{\n public function testProcessDetectsReferenceToAbstractDefinition()\n {\n $container = new ContainerBuilder();\n\n $container->register('a')->setAbstract(", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckReferenceValidityPassTest.php", "language": "php", "file_size": 1363, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\PhpDumper;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Comp", "suffix": " $container = new ContainerBuilder();\n $container->register('test', 'stdClass')\n ->setPublic(true)\n ->setArguments([new Expression('custom_func(\"foobar\")')]);\n\n $container->addExpressionLanguageProvider(new class implem", "middle": "onent\\ExpressionLanguage\\ExpressionFunction;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface;\n\nclass CustomExpressionLanguageFunctionTest extends TestCase\n{\n public function testDump()\n {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/CustomExpressionLanguageFunctionTest.php", "language": "php", "file_size": 1457, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\DefinitionErrorExceptionPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyI", "suffix": "untimeException::class);\n $this->expectExceptionMessage('Things went wrong!');\n $container = new ContainerBuilder();\n $def = new Definition();\n $def->addError('Things went wrong!');\n $def->addError('Now something else!');", "middle": "njection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass DefinitionErrorExceptionPassTest extends TestCase\n{\n public function testThrowsException()\n {\n $this->expectException(R", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/DefinitionErrorExceptionPassTest.php", "language": "php", "file_size": 3038, "cut_index": 563, "middle_length": 229}} {"prefix": "ymfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AnalyzeServiceReferencesPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\InlineServiceDefinitionsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass InlineServiceDefini", "suffix": " ->register('service')\n ->setArguments([new Reference('inlinable.service')])\n ;\n\n $this->process($container);\n\n $arguments = $container->getDefinition('service')->getArguments();\n $this->assertInstanceOf(Defini", "middle": "tionsPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n $inlineable = $container\n ->register('inlinable.service')\n ;\n\n $container\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/InlineServiceDefinitionsPassTest.php", "language": "php", "file_size": 11454, "cut_index": 921, "middle_length": 229}} {"prefix": "omponent\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\MergeExtensionConfigurationContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\MergeExtensionConfigurationPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Compone", "suffix": "ressionFunctionProviderInterface;\n\nclass MergeExtensionConfigurationPassTest extends TestCase\n{\n public function testExpressionLanguageProviderForwarding()\n {\n $tmpProviders = [];\n\n $extension = $this->createMock(ExtensionInterface::cla", "middle": "nt\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\ExpressionLanguage\\Exp", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/MergeExtensionConfigurationPassTest.php", "language": "php", "file_size": 9554, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Loader\\Configurator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\AppReference;\n\nclass AppReferenceTest extends TestCase\n{\n public function testConfigWithBasicServices()\n {\n $config = [\n 'services' => [\n 'App\\\\' => [\n ", "suffix": "config = array_replace_recursive([\n 'services' => [\n '_defaults' => [\n 'autowire' => true,\n 'autoconfigure' => true,\n ],\n ],\n ], $config);\n\n $this->asse", "middle": " 'resource' => '../src/',\n ],\n 'my_service' => [\n 'class' => 'MyClass',\n ],\n ],\n ];\n\n $result = AppReference::config($config);\n\n $", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/Configurator/AppReferenceTest.php", "language": "php", "file_size": 4034, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Loader\\Configurator;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\Dep", "suffix": "ection\\Loader\\Configurator\\tagged_iterator;\nuse function Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\tagged_locator;\n\nclass ContainerConfiguratorTest extends TestCase\n{\n public function testImportForwardsExcludeAndIgnoreErrors()\n {\n ", "middle": "endencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\n\nuse function Symfony\\Component\\DependencyInj", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/Configurator/ContainerConfiguratorTest.php", "language": "php", "file_size": 4028, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\ParameterBag;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\EnvConfigurator;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\EnvPlaceholderParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\StringBack", "suffix": "num(StringBackedEnum::class), '%');\n $this->assertIsString($bag->get($name));\n }\n\n public function testGetThrowsInvalidArgumentExceptionIfEnvNameContainsNonWordCharacters()\n {\n $bag = new EnvPlaceholderParameterBag();\n $this->", "middle": "edEnum;\n\nclass EnvPlaceholderParameterBagTest extends TestCase\n{\n public function testEnumEnvVarProcessorPassesRegex()\n {\n $bag = new EnvPlaceholderParameterBag();\n $name = trim((new EnvConfigurator('FOO'))->e", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/ParameterBag/EnvPlaceholderParameterBagTest.php", "language": "php", "file_size": 8316, "cut_index": 716, "middle_length": 229}} {"prefix": "e PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Exception\\EmptyParameterValueException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjectio", "suffix": ");\n $this->assertEquals($parameters, $bag->all(), '__construct() takes an array of parameters as its first argument');\n }\n\n public function testClear()\n {\n $bag = new ParameterBag($parameters = [\n 'foo' => 'foo',\n ", "middle": "n\\ParameterBag\\ParameterBag;\n\nclass ParameterBagTest extends TestCase\n{\n public function testConstructor()\n {\n $bag = new ParameterBag($parameters = [\n 'foo' => 'foo',\n 'bar' => 'bar',\n ]", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php", "language": "php", "file_size": 17031, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AutoAliasServicePass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoun", "suffix": "('auto_alias', ['format' => '%non_existing%.example']);\n\n $pass = new AutoAliasServicePass();\n\n $this->expectException(ParameterNotFoundException::class);\n\n $pass->process($container);\n }\n\n public function testProcessWithMissingF", "middle": "dException;\n\nclass AutoAliasServicePassTest extends TestCase\n{\n public function testProcessWithMissingParameter()\n {\n $container = new ContainerBuilder();\n\n $container->register('example')\n ->addTag", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/AutoAliasServicePassTest.php", "language": "php", "file_size": 4083, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CheckDefinitionValidityPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\EnvParameterException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\n\nclass CheckDefinitionValidityPassTest extends Te", "suffix": "ption(RuntimeException::class);\n\n $this->process($container);\n }\n\n public function testProcessDetectsNonSyntheticNonAbstractDefinitionWithoutClass()\n {\n $container = new ContainerBuilder();\n $container->register('a')->setSynth", "middle": "stCase\n{\n public function testProcessDetectsSyntheticNonPublicDefinitions()\n {\n $container = new ContainerBuilder();\n $container->register('a')->setSynthetic(true)->setPublic(false);\n\n $this->expectExce", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckDefinitionValidityPassTest.php", "language": "php", "file_size": 5771, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AnalyzeServiceReferencesPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CheckCircularReferencesPass;\nu", "suffix": "ection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass CheckCircularReferencesPassTest extends TestCase\n{\n public function testProcess()\n {\n $container = new ContainerBuilder();\n ", "middle": "se Symfony\\Component\\DependencyInjection\\Compiler\\Compiler;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInj", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php", "language": "php", "file_size": 5883, "cut_index": 716, "middle_length": 229}} {"prefix": "endencyInjection\\Compiler\\DecoratorServicePass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass DecoratorServicePassTest extends TestCase\n{\n public function testProcessWithoutAlias()\n {\n $container = new Conta", "suffix": "dService('foo')\n ;\n $barDefinition = $container\n ->register('bar')\n ->setPublic(true)\n ;\n $barExtendedDefinition = $container\n ->register('bar.extended')\n ->setPublic(true)\n ", "middle": "inerBuilder();\n $fooDefinition = $container\n ->register('foo')\n ;\n $fooExtendedDefinition = $container\n ->register('foo.extended')\n ->setPublic(true)\n ->setDecorate", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/DecoratorServicePassTest.php", "language": "php", "file_size": 11656, "cut_index": 921, "middle_length": 229}} {"prefix": "jection\\Tests\\Fixtures\\Attribute\\CustomPropertyAttribute;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutoconfiguredInterface2;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutoconfiguredService1;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutoconfiguredService2;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AutowireLocatorConsumer;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\BarTagClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\", "suffix": "s\\Fixtures\\StaticMethodTag;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TaggedConsumerWithExclude;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TaggedIteratorConsumer;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Tagged", "middle": "FooBarTaggedClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooBarTaggedForDefaultPriorityClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooTagClass;\nuse Symfony\\Component\\DependencyInjection\\Test", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php", "language": "php", "file_size": 50338, "cut_index": 2151, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Loader\\Configurator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\AbstractConfigurator;\nu", "suffix": "ass AbstractConfiguratorTest extends TestCase\n{\n public function testInlineServiceIsNotAllowedWithoutAllowServices()\n {\n $configurator = new InlineServiceConfigurator(new Definition('stdClass'));\n\n $this->expectException(InvalidArgument", "middle": "se Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\InlineServiceConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ReferenceConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\ncl", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/Configurator/AbstractConfiguratorTest.php", "language": "php", "file_size": 3005, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\ParameterBag;\n\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\n\nclass FrozenParameterBagTest extends TestCase\n{\n public function testConstructor()\n {\n ", "suffix": "rameters as its first argument');\n }\n\n public function testClear()\n {\n $this->expectException(\\LogicException::class);\n $bag = new FrozenParameterBag([]);\n $bag->clear();\n }\n\n public function testSet()\n {\n $thi", "middle": " $parameters = [\n 'foo' => 'foo',\n 'bar' => 'bar',\n ];\n $bag = new FrozenParameterBag($parameters);\n $this->assertEquals($parameters, $bag->all(), '__construct() takes an array of pa", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php", "language": "php", "file_size": 2239, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Target;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AutowireRequiredPropertiesPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveClassPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Sym", "suffix": "iesPassTest extends TestCase\n{\n public function testAttribute()\n {\n $container = new ContainerBuilder();\n $container->register(Foo::class);\n\n $container->register('property_injection', AutowireProperty::class)\n ->setAu", "middle": "fony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\TypedReference;\n\nrequire_once __DIR__.'/../Fixtures/includes/autowiring_classes.php';\n\nclass AutowireRequiredPropert", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowireRequiredPropertiesPassTest.php", "language": "php", "file_size": 3636, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass CheckFactoryBuilderCircularReferencePassTest extends TestCase\n{\n public function testThrowsWhenInlinedConsumerReferen", "suffix": "->useExtension(...)\" and silently\n // produce a half-built service.\n $container = new ContainerBuilder();\n $container->register('builder', 'stdClass')\n ->addMethodCall('useExtension', [new Reference('extension')]);\n $", "middle": "cesProduct()\n {\n // The consumer (\"extension\") is private and used only by the builder's\n // method call, so it gets inlined into the builder. The dumper would emit\n // \"$instance = $a->build()\" before \"$a", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckFactoryBuilderCircularReferencePassTest.php", "language": "php", "file_size": 7989, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ExtensionCompilerPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Componen", "suffix": " protected function setUp(): void\n {\n $this->container = new ContainerBuilder();\n $this->pass = new ExtensionCompilerPass();\n }\n\n public function testProcess()\n {\n $extension1 = new CompilerPassExtension('extension1');\n ", "middle": "t\\DependencyInjection\\Extension\\Extension;\n\n/**\n * @author Wouter J <wouter@wouterj.nl>\n */\nclass ExtensionCompilerPassTest extends TestCase\n{\n private ContainerBuilder $container;\n private ExtensionCompilerPass $pass;\n\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/ExtensionCompilerPassTest.php", "language": "php", "file_size": 2307, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AsTaggedItem;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AttributeAutoconfigurationPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony", "suffix": "der();\n $container->registerAttributeForAutoconfiguration(AsTaggedItem::class, static function () {});\n $container->register('foo', \\stdClass::class)\n ->setAutoconfigured(true)\n ;\n\n (new AttributeAutoconfigurationPass", "middle": "\\Component\\DependencyInjection\\Exception\\LogicException;\n\nclass AttributeAutoconfigurationPassTest extends TestCase\n{\n public function testProcessAddsNoEmptyInstanceofConditionals()\n {\n $container = new ContainerBuil", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/AttributeAutoconfigurationPassTest.php", "language": "php", "file_size": 3090, "cut_index": 614, "middle_length": 229}} {"prefix": "ss\\Deprecated;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CheckTypeDeclarationsPass\\Foo;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CheckTypeDeclarationsPass\\FooObject;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CheckTypeDeclarationsPass\\IntersectionConstructor;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CheckTypeDeclarationsPass\\UnionConstructor;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CheckTypeDeclarationsPass\\UnionConstructorPHP82;\n", "suffix": "s\\Fixtures\\CheckTypeDeclarationsPass\\Wobble;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n * @author Julien Maulny <jmaulny@darkmira.fr>\n */\nclass CheckTypeDeclarationsPassTest extends TestCase\n{\n p", "middle": "use Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CheckTypeDeclarationsPass\\Waldo;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CheckTypeDeclarationsPass\\WaldoFoo;\nuse Symfony\\Component\\DependencyInjection\\Test", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckTypeDeclarationsPassTest.php", "language": "php", "file_size": 41134, "cut_index": 2151, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\ParameterBag;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Depende", "suffix": "ction\\ParameterBag\\ParameterBag;\n\nclass ContainerBagTest extends TestCase\n{\n private ParameterBag $parameterBag;\n private ContainerBag $containerBag;\n\n protected function setUp(): void\n {\n $this->parameterBag = new ParameterBag(['foo' =>", "middle": "ncyInjection\\ParameterBag\\ContainerBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ContainerBagInterface;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\DependencyInje", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ContainerBagTest.php", "language": "php", "file_size": 2014, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Loader\\Configurator;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\EnvConfigurator;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\StringBa", "suffix": "figurator);\n }\n\n public static function provide(): iterable\n {\n yield ['%env(FOO)%', new EnvConfigurator('FOO')];\n yield ['%env(string:FOO)%', new EnvConfigurator('string:FOO')];\n yield ['%env(string:FOO)%', (new EnvConfigurat", "middle": "ckedEnum;\n\nfinal class EnvConfiguratorTest extends TestCase\n{\n #[DataProvider('provide')]\n public function test(string $expected, EnvConfigurator $envConfigurator)\n {\n $this->assertSame($expected, (string) $envCon", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Loader/Configurator/EnvConfiguratorTest.php", "language": "php", "file_size": 1513, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\LazyProxy\\Instantiator;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * Noop proxy instantiator - produces the real service instead of a proxy instance.\n *\n * @author Marco Pivetta <ocramius@gmail.com>\n */\nclass RealSer", "suffix": " /**\n * @param-immediately-invoked-callable $realInstantiator\n *\n * @return object The real service instance\n */\n public function instantiateProxy(ContainerInterface $container, Definition $definition, string $id, callable $realInstan", "middle": "viceInstantiator implements InstantiatorInterface\n{\n", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/RealServiceInstantiator.php", "language": "php", "file_size": 956, "cut_index": 582, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Exception;\n\n/**\n * The $invalidValue property holds the raw value that failed validation, which\n * is typically untrusted user input of arbitrary size or content. The exception\n * message itself is safe to surface, but consumers should not serialize the\n * exception verbatim (", "suffix": "blic\n * properties) without redacting or truncating $invalidValue.\n */\nclass InvalidArgumentException extends \\InvalidArgumentException\n{\n public function __construct(\n string $message,\n public readonly mixed $invalidValue = null,\n ) {\n", "middle": "var_export, serialize, structured loggers dumping pu", "meta": {"filepath": "src/Symfony/Component/Uid/Exception/InvalidArgumentException.php", "language": "php", "file_size": 902, "cut_index": 547, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Factory;\n\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Uid\\Exception\\LogicException;\nuse Symfony\\Component\\Uid\\TimeBasedUidInterface;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Uid\\UuidV1;\nuse Symfony\\Component\\Uid\\UuidV3;\nuse Symfony\\Component\\Uid\\UuidV4;\nuse Symfony\\Component\\Uid\\UuidV5;\nuse Symfony\\Component\\Uid\\UuidV6;\n\nclass MockUuidFactory extends UuidFactory\n{\n private \\Iterator $seq", "suffix": "pace = null,\n ) {\n $this->sequence = match (true) {\n \\is_array($uuids) => new \\ArrayIterator($uuids),\n $uuids instanceof \\Iterator => $uuids,\n $uuids instanceof \\Traversable => new \\IteratorIterator($uuids),\n ", "middle": "uence;\n\n /**\n * @param iterable<string|Uuid> $uuids\n */\n public function __construct(\n iterable $uuids,\n private Uuid|string|null $timeBasedNode = null,\n private Uuid|string|null $nameBasedNames", "meta": {"filepath": "src/Symfony/Component/Uid/Factory/MockUuidFactory.php", "language": "php", "file_size": 5346, "cut_index": 716, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Factory;\n\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Uid\\UuidV3;\nuse Symfony\\Component\\Uid\\UuidV5;\n\nclass NameBasedUuidFactory\n{\n public function __construct(\n private string $class,\n private Uuid $namespace,\n )", "suffix": "d::v3($this->namespace, $name);\n }\n\n if (is_subclass_of($class, UuidV5::class)) {\n $uuid = Uuid::v5($this->namespace, $name);\n } else {\n $uuid = Uuid::v3($this->namespace, $name);\n }\n\n return new $cl", "middle": " {\n }\n\n public function create(string $name): UuidV5|UuidV3\n {\n switch ($class = $this->class) {\n case UuidV5::class: return Uuid::v5($this->namespace, $name);\n case UuidV3::class: return Uui", "meta": {"filepath": "src/Symfony/Component/Uid/Factory/NameBasedUuidFactory.php", "language": "php", "file_size": 1017, "cut_index": 512, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Factory;\n\nuse Symfony\\Component\\Uid\\TimeBasedUidInterface;\nuse Symfony\\Component\\Uid\\Uuid;\n\nclass TimeBasedUuidFactory\n{\n /**\n * @param class-string<Uuid&TimeBasedUidInterface> $class\n */\n public function __construct(\n private string $class,\n private ?Uuid $nod", "suffix": "?\\DateTimeInterface $time = null): Uuid&TimeBasedUidInterface\n {\n $class = $this->class;\n\n if (null === $time && null === $this->node) {\n return new $class();\n }\n\n return new $class($class::generate($time, $this->n", "middle": "e = null,\n ) {\n }\n\n public function create(", "meta": {"filepath": "src/Symfony/Component/Uid/Factory/TimeBasedUuidFactory.php", "language": "php", "file_size": 882, "cut_index": 559, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Factory;\n\nuse Symfony\\Component\\Uid\\Exception\\LogicException;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Uid\\UuidV1;\nuse Symfony\\Component\\Uid\\UuidV4;\nuse Symfony\\Component\\Uid\\UuidV5;\nuse Symfony\\Component\\Uid\\UuidV7;\n\nclass UuidFactory\n{\n private string $defaultClass;\n private string $timeBasedClass;\n private string $nam", "suffix": "uidV7::class, string|int $nameBasedClass = UuidV5::class, string|int $randomBasedClass = UuidV4::class, Uuid|string|null $timeBasedNode = null, Uuid|string|null $nameBasedNamespace = null)\n {\n if (null !== $timeBasedNode && !$timeBasedNode instan", "middle": "eBasedClass;\n private string $randomBasedClass;\n private ?Uuid $timeBasedNode;\n private ?Uuid $nameBasedNamespace;\n\n public function __construct(string|int $defaultClass = UuidV7::class, string|int $timeBasedClass = U", "meta": {"filepath": "src/Symfony/Component/Uid/Factory/UuidFactory.php", "language": "php", "file_size": 3417, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\C", "suffix": "ate', description: 'Generate a ULID')]\nclass GenerateUlidCommand extends Command\n{\n public function __construct(\n private UlidFactory $factory = new UlidFactory(),\n ) {\n parent::__construct();\n }\n\n protected function configure(): ", "middle": "omponent\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Uid\\Factory\\UlidFactory;\n\n#[AsCommand(name: 'ulid:gener", "meta": {"filepath": "src/Symfony/Component/Uid/Command/GenerateUlidCommand.php", "language": "php", "file_size": 3927, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n", "suffix": " 'Generate a UUID')]\nclass GenerateUuidCommand extends Command\n{\n public function __construct(\n private UuidFactory $factory = new UuidFactory(),\n ) {\n parent::__construct();\n }\n\n protected function configure(): void\n {\n ", "middle": "use Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Uid\\Exception\\LogicException;\nuse Symfony\\Component\\Uid\\Factory\\UuidFactory;\nuse Symfony\\Component\\Uid\\Uuid;\n\n#[AsCommand(name: 'uuid:generate', description:", "meta": {"filepath": "src/Symfony/Component/Uid/Command/GenerateUuidCommand.php", "language": "php", "file_size": 7769, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Helper\\TableSeparator;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console", "suffix": "ID')]\nclass InspectUlidCommand extends Command\n{\n protected function configure(): void\n {\n $this\n ->setDefinition([\n new InputArgument('ulid', InputArgument::REQUIRED, 'The ULID to inspect'),\n ])\n ", "middle": "\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Uid\\Ulid;\n\n#[AsCommand(name: 'ulid:inspect', description: 'Inspect a UL", "meta": {"filepath": "src/Symfony/Component/Uid/Command/InspectUlidCommand.php", "language": "php", "file_size": 2255, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Helper\\TableSeparator;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console", "suffix": "id\\TimeBasedUidInterface;\nuse Symfony\\Component\\Uid\\Uuid;\n\n#[AsCommand(name: 'uuid:inspect', description: 'Inspect a UUID')]\nclass InspectUuidCommand extends Command\n{\n protected function configure(): void\n {\n $this\n ->setDefinition", "middle": "\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Uid\\MaxUuid;\nuse Symfony\\Component\\Uid\\NilUuid;\nuse Symfony\\Component\\U", "meta": {"filepath": "src/Symfony/Component/Uid/Command/InspectUuidCommand.php", "language": "php", "file_size": 2742, "cut_index": 563, "middle_length": 229}} {"prefix": "se PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Uid\\MaxUlid;\nuse Symfony\\Component\\Uid\\NilUlid;\nuse Symfony\\Component\\Uid\\Tests\\Fixtures\\CustomUlid;\nuse Symfony\\Component\\Uid\\Ulid;\nuse Symfony\\Component\\Uid\\UuidV4;\n\nclass UlidTest extends TestCase\n{\n #[Group('time-sensitive')]\n public function testGenerate()\n {\n $a = new Ulid();\n $b = new Ulid();\n usleep(-10000);\n $c = new Ulid();\n\n $this->assertSa", "suffix": "b, -6), 'ABCDEFGHJKMNPQRSTVWXYZ', 'abcdefghijklmnopqrstuv'), 32, 10);\n $c = base_convert(strtr(substr($c, -6), 'ABCDEFGHJKMNPQRSTVWXYZ', 'abcdefghijklmnopqrstuv'), 32, 10);\n $this->assertSame(1, $b - $a);\n $this->assertSame(1, $c - $b)", "middle": "me(0, strncmp($a, $b, 20));\n $this->assertSame(0, strncmp($a, $c, 20));\n $a = base_convert(strtr(substr($a, -6), 'ABCDEFGHJKMNPQRSTVWXYZ', 'abcdefghijklmnopqrstuv'), 32, 10);\n $b = base_convert(strtr(substr($", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/UlidTest.php", "language": "php", "file_size": 13032, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Uid\\Uuid47Transformer;\nuse Symfony\\Component\\Uid\\UuidV4;\nuse Symfony\\Component\\Uid\\UuidV7;\n\n#[RequiresPhpExtension('sodium')]\nclass Uuid47TransformerTest extends TestCase\n{\n ", "suffix": "adcfe'));\n }\n\n #[TestWith([''])]\n #[TestWith(['x'])]\n #[TestWith(['tooshort'])]\n #[TestWith(['123456789012345'])]\n public function testConstructorRequiresAtLeast16ByteKey(string $secret)\n {\n $this->expectException(InvalidArgumen", "middle": "private function createConverter(): Uuid47Transformer\n {\n // K0 = 0x0123456789abcdef, K1 = 0xfedcba9876543210 (little-endian byte representation)\n return new Uuid47Transformer(hex2bin('efcdab89674523011032547698b", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/Uuid47TransformerTest.php", "language": "php", "file_size": 6996, "cut_index": 716, "middle_length": 229}} {"prefix": "se Symfony\\Component\\Uid\\UuidV5;\nuse Symfony\\Component\\Uid\\UuidV6;\nuse Symfony\\Component\\Uid\\UuidV7;\n\nclass UuidTest extends TestCase\n{\n private const A_UUID_V1 = 'd9e7a184-5d5b-11ea-a62a-3499710062d0';\n private const A_UUID_V4 = 'd6b3345b-2905-4048-a83c-b5988e765d98';\n private const A_UUID_V7 = '017f22e2-79b0-7cc3-98c4-dc0c0c07398f';\n\n #[DataProvider('provideInvalidUuids')]\n public function testConstructorWithInvalidUuid(string $uuid)\n {\n $this->expectException(InvalidArgumentExcep", "suffix": "'these are just thirty-six characters'];\n }\n\n public function testInvalidUuidContainsInvalidValue()\n {\n $invalidUuid = 'this is not a uuid';\n\n try {\n Uuid::fromString($invalidUuid);\n $this->fail(\\sprintf('Expect", "middle": "tion::class);\n $this->expectExceptionMessage('Invalid UUID.');\n\n Uuid::fromString($uuid);\n }\n\n public static function provideInvalidUuids(): iterable\n {\n yield ['this is not a uuid'];\n yield [", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/UuidTest.php", "language": "php", "file_size": 20548, "cut_index": 1331, "middle_length": 229}} {"prefix": "rgumentException;\nuse Symfony\\Component\\Uid\\Exception\\LogicException;\nuse Symfony\\Component\\Uid\\Factory\\MockUuidFactory;\nuse Symfony\\Component\\Uid\\UuidV1;\nuse Symfony\\Component\\Uid\\UuidV3;\nuse Symfony\\Component\\Uid\\UuidV4;\nuse Symfony\\Component\\Uid\\UuidV5;\nuse Symfony\\Component\\Uid\\UuidV6;\nuse Symfony\\Component\\Uid\\UuidV7;\nuse Symfony\\Component\\Uid\\UuidV8;\n\nclass MockUuidFactoryTest extends TestCase\n{\n #[DataProvider('provideSequences')]\n public function testCreate(iterable $sequence, array $expected)", "suffix": "nces(): \\Generator\n {\n $uuid1String = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';\n $uuid3String = '6ba7b810-9dad-31d1-80b4-00c04fd430c8';\n $uuid4String = '6ba7b810-9dad-41d1-80b4-00c04fd430c8';\n $uuid5String = '6ba7b810-9dad-51d1", "middle": "\n {\n $factory = new MockUuidFactory($sequence);\n foreach ($expected as $expectedUuid) {\n $this->assertEquals($expectedUuid, $factory->create());\n }\n }\n\n public static function provideSeque", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/Factory/MockUuidFactoryTest.php", "language": "php", "file_size": 10852, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Tests\\Factory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Uid\\Factory\\UlidFactory;\n\nfinal class UlidFactoryTest extends TestCase\n{\n public function testCreate()\n {\n $u", "suffix": " $ulid2 = $ulidFactory->create(new \\DateTimeImmutable('@999999.123000'));\n $this->assertSame('999999.123000', $ulid2->getDateTime()->format('U.u'));\n\n $this->assertFalse($ulid1->equals($ulid2));\n $this->assertSame(-1, $ulid1->co", "middle": "lidFactory = new UlidFactory();\n\n $ulidFactory->create();\n\n $ulid1 = $ulidFactory->create(new \\DateTimeImmutable('@999999.123000'));\n $this->assertSame('999999.123000', $ulid1->getDateTime()->format('U.u'));\n", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/Factory/UlidFactoryTest.php", "language": "php", "file_size": 1470, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Tests\\Factory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Uid\\Factory\\UuidFactory;\nuse Symfony\\Component\\Uid\\NilUuid;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Uid\\UuidV1;\nuse Symfony\\Component\\Uid\\UuidV3;\nuse Symfony\\Component\\Uid\\UuidV4;\nuse Symfony\\Compon", "suffix": ":class, (new UuidFactory())->nameBased('6f80c216-0492-4421-bd82-c10ab929ae84')->create('foo'));\n $this->assertInstanceOf(UuidV3::class, (new UuidFactory(6, 6, 3))->nameBased('6f80c216-0492-4421-bd82-c10ab929ae84')->create('foo'));\n }\n\n public ", "middle": "ent\\Uid\\UuidV5;\nuse Symfony\\Component\\Uid\\UuidV6;\nuse Symfony\\Component\\Uid\\UuidV7;\n\nfinal class UuidFactoryTest extends TestCase\n{\n public function testCreateNamedDefaultVersion()\n {\n $this->assertInstanceOf(UuidV5:", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/Factory/UuidFactoryTest.php", "language": "php", "file_size": 4080, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Uid\\Command\\GenerateUlidComman", "suffix": ").substr($time, 1, 4);\n\n $commandTester = new CommandTester(new GenerateUlidCommand());\n\n $this->assertSame(0, $commandTester->execute([]));\n\n $ulid = Ulid::fromBase32(trim($commandTester->getDisplay()));\n $this->assertEquals(\\D", "middle": "d;\nuse Symfony\\Component\\Uid\\Ulid;\n\nfinal class GenerateUlidCommandTest extends TestCase\n{\n #[Group('time-sensitive')]\n public function testDefaults()\n {\n $time = microtime(false);\n $time = substr($time, 11", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/Command/GenerateUlidCommandTest.php", "language": "php", "file_size": 4185, "cut_index": 614, "middle_length": 229}} {"prefix": "se Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Uid\\Command\\GenerateUuidCommand;\nuse Symfony\\Component\\Uid\\Factory\\UuidFactory;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Uid\\UuidV1;\nuse Symfony\\Component\\Uid\\UuidV3;\nuse Symfony\\Component\\Uid\\UuidV4;\nuse Symfony\\Component\\Uid\\UuidV5;\nuse Symfony\\Component\\Uid\\UuidV7;\n\nfinal class GenerateUuidCommandTest extends TestCase\n{\n public function testDefaults()\n ", "suffix": "))));\n\n $commandTester = new CommandTester(new GenerateUuidCommand(new UuidFactory(UuidV4::class)));\n $this->assertSame(0, $commandTester->execute([]));\n $this->assertInstanceOf(UuidV4::class, Uuid::fromRfc4122(trim($commandTester->get", "middle": "{\n $commandTester = new CommandTester(new GenerateUuidCommand());\n $this->assertSame(0, $commandTester->execute([]));\n $this->assertInstanceOf(UuidV7::class, Uuid::fromRfc4122(trim($commandTester->getDisplay(", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/Command/GenerateUuidCommandTest.php", "language": "php", "file_size": 9681, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Uid\\Command\\InspectUlidCommand;\n\nfinal class InspectUlidCommandTest extends TestCase\n{\n public function test()\n {\n $commandTester = ", "suffix": " ([\n '01E439TP9XJZ9RPFH3T1PYBCR8',\n '1BKocMc5BnrVcuq2ti4Eqm',\n '0171069d-593d-97d3-8b3e-23d06de5b308',\n ] as $ulid) {\n $this->assertSame(0, $commandTester->execute(['ulid' => $ulid]));\n $this->a", "middle": "new CommandTester(new InspectUlidCommand());\n\n $this->assertSame(1, $commandTester->execute(['ulid' => 'foobar']));\n $this->assertStringContainsString('Invalid ULID.', $commandTester->getDisplay());\n\n foreach", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/Command/InspectUlidCommandTest.php", "language": "php", "file_size": 1944, "cut_index": 537, "middle_length": 229}} {"prefix": "ctUuidCommand;\n\nfinal class InspectUuidCommandTest extends TestCase\n{\n public function testInvalid()\n {\n $commandTester = new CommandTester(new InspectUuidCommand());\n\n $this->assertSame(1, $commandTester->execute(['uuid' => 'foobar']));\n $this->assertStringContainsString('Invalid UUID.', $commandTester->getDisplay());\n }\n\n public function testNil()\n {\n $commandTester = new CommandTester(new InspectUuidCommand());\n\n $this->assertSame(0, $commandTester->execu", "suffix": " \n ----------------------- -------------------------------------- \n Version nil \n toRfc4122 (canonical) 00000000-0000-0000-0000-000000000000 \n ", "middle": "te(['uuid' => '00000000-0000-0000-0000-000000000000']));\n $this->assertSame(<<<EOF\n ----------------------- -------------------------------------- \n Label Value ", "meta": {"filepath": "src/Symfony/Component/Uid/Tests/Command/InspectUuidCommandTest.php", "language": "php", "file_size": 13149, "cut_index": 921, "middle_length": 229}} {"prefix": "GEX = '(?i:_?[A-Z][A-Z0-9_]*+)';\n public const STATE_VARNAME = 0;\n public const STATE_VALUE = 1;\n\n private string $path;\n private int $cursor;\n private int $lineno;\n private string $data;\n private int $end;\n private array $values = [];\n private array $overriddenValues = [];\n private array $loadedRawVars = [];\n private array $prodEnvs = ['prod'];\n private bool $usePutenv = false;\n private bool $deferPutenv = false;\n private array $pendingPutenv = [];\n\n public func", "suffix": " $this->prodEnvs = $prodEnvs;\n\n return $this;\n }\n\n /**\n * @param bool $usePutenv If `putenv()` should be used to define environment variables or not.\n * Beware that `putenv()` is not thread safe, that's why it", "middle": "tion __construct(\n private string $envKey = 'APP_ENV',\n private string $debugKey = 'APP_DEBUG',\n ) {\n }\n\n /**\n * @return $this\n */\n public function setProdEnvs(array $prodEnvs): static\n {\n ", "meta": {"filepath": "src/Symfony/Component/Dotenv/Dotenv.php", "language": "php", "file_size": 31617, "cut_index": 1331, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Dotenv\\Exception;\n\n/**\n * Thrown when a file has a syntax error.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class FormatException extends \\LogicException implements ExceptionInterface\n{\n public function __construct(\n string $message,\n private FormatExceptionContext $context,\n int $code = 0,\n ", "suffix": "ent::__construct(\\sprintf(\"%s in \\\"%s\\\" at line %d.\\n%s\", $message, $context->getPath(), $context->getLineno(), $context->getDetails()), $code, $previous);\n }\n\n public function getContext(): FormatExceptionContext\n {\n return $this->context;", "middle": " ?\\Throwable $previous = null,\n ) {\n par", "meta": {"filepath": "src/Symfony/Component/Dotenv/Exception/FormatException.php", "language": "php", "file_size": 923, "cut_index": 606, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Dotenv\\Exception;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class FormatExceptionContext\n{\n public function __construct(\n private string $data,\n private string $path,\n private int $lineno,\n privat", "suffix": "\n {\n $before = str_replace(\"\\n\", '\\n', substr($this->data, max(0, $this->cursor - 20), min(20, $this->cursor)));\n $after = str_replace(\"\\n\", '\\n', substr($this->data, $this->cursor, 20));\n\n return '...'.$before.$after.\"...\\n\".str_re", "middle": "e int $cursor,\n ) {\n }\n\n public function getPath(): string\n {\n return $this->path;\n }\n\n public function getLineno(): int\n {\n return $this->lineno;\n }\n\n public function getDetails(): string", "meta": {"filepath": "src/Symfony/Component/Dotenv/Exception/FormatExceptionContext.php", "language": "php", "file_size": 1090, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Dotenv\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;", "suffix": "de>\n */\n#[AsCommand(name: 'debug:dotenv', description: 'List all dotenv files with variables and values')]\nfinal class DebugCommand extends Command\n{\n public function __construct(\n private string $kernelEnvironment,\n private string $projec", "middle": "\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Dotenv\\Dotenv;\n\n/**\n * A console command to debug current dotenv files with variables and values.\n *\n * @author Christopher Hertel <mail@christopher-hertel.", "meta": {"filepath": "src/Symfony/Component/Dotenv/Command/DebugCommand.php", "language": "php", "file_size": 7621, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Dotenv\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Depen", "suffix": " as a service, e.g in your services.yaml file:\n *\n * ```yaml\n * services:\n * # [...]\n * Symfony\\Component\\Dotenv\\Command\\DotenvDumpCommand: ~\n * ```\n */\n#[Autoconfigure(bind: ['$projectDir' => '%kernel.project_dir%', '$defaultEn", "middle": "dencyInjection\\Attribute\\Autoconfigure;\nuse Symfony\\Component\\Dotenv\\Dotenv;\n\n/**\n * A console command to compile .env files into a PHP-optimized file called .env.local.php.\n *\n * To use this command, first register it explicitly", "meta": {"filepath": "src/Symfony/Component/Dotenv/Command/DotenvDumpCommand.php", "language": "php", "file_size": 4353, "cut_index": 614, "middle_length": 229}} {"prefix": " ^ line 1 offset 8\"],\n ['FOO=\\'foo', \"Missing quote to end the value in \\\".env\\\" at line 1.\\n...FOO='foo...\\n ^ line 1 offset 8\"],\n [\"FOO=\\\"foo\\nBAR=\\\"bar\\\"\", \"Missing quote to end the value in \\\".env\\\" at line 1.\\n...FOO=\\\"foo\\\\nBAR=\\\"bar\\\"...\\n ^ line 1 offset 18\"],\n ['FOO=\\'foo'.\"\\n\", \"Missing quote to end the value in \\\".env\\\" at line 1.\\n...FOO='foo\\\\n...\\n ^ line 1 offset 9\"],\n ['export FOO', \"Unable to unset ", "suffix": "fset 9\"],\n ['FOO= BAR', \"Whitespace are not supported before the value in \\\".env\\\" at line 1.\\n...FOO= BAR...\\n ^ line 1 offset 4\"],\n ['Стасян', \"Invalid character in variable name in \\\".env\\\" at line 1.\\n...Стасян...\\n ^ line 1", "middle": "an environment variable in \\\".env\\\" at line 1.\\n...export FOO...\\n ^ line 1 offset 10\"],\n ['FOO=${FOO', \"Unclosed braces on variable expansion in \\\".env\\\" at line 1.\\n...FOO=\\${FOO...\\n ^ line 1 of", "meta": {"filepath": "src/Symfony/Component/Dotenv/Tests/DotenvTest.php", "language": "php", "file_size": 46268, "cut_index": 2151, "middle_length": 229}} {"prefix": "lication;\nuse Symfony\\Component\\Console\\Helper\\FormatterHelper;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Dotenv\\Command\\DebugCommand;\nuse Symfony\\Component\\Dotenv\\Dotenv;\n\nclass DebugCommandTest extends TestCase\n{\n #[RunInSeparateProcess]\n public function testErrorOnUninitializedDotenv()\n {\n unset($_SERVER['SYMFONY_DOTENV_VARS']);\n\n $command = ", "suffix": "r->getDisplay();\n\n $this->assertStringContainsString('[ERROR] Dotenv component is not initialized', $output);\n }\n\n #[RunInSeparateProcess]\n public function testEmptyDotEnvVarsList()\n {\n $_SERVER['SYMFONY_DOTENV_VARS'] = '';\n\n ", "middle": "new DebugCommand('dev', __DIR__.'/Fixtures/Scenario1');\n $command->setHelperSet(new HelperSet([new FormatterHelper()]));\n $tester = new CommandTester($command);\n $tester->execute([]);\n $output = $teste", "meta": {"filepath": "src/Symfony/Component/Dotenv/Tests/Command/DebugCommandTest.php", "language": "php", "file_size": 14092, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Dotenv\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Dotenv\\Command\\DotenvDumpCommand;\n\nclass DotenvDumpCommandTest extends TestCase\n{\n protected function setUp(): void\n {\n unset($_SERVER['SYMFONY_DOTENV_PATH']);\n ", "suffix": "<EOF\n APP_LOCAL=yes\n EOF\n );\n }\n\n protected function tearDown(): void\n {\n @unlink(__DIR__.'/.env');\n @unlink(__DIR__.'/.env.local');\n @unlink(__DIR__.'/.env.path');\n @unlink(__DIR__.'/.env.p", "middle": " unset($_SERVER['APP_RUNTIME_OPTIONS']);\n\n file_put_contents(__DIR__.'/.env', <<<EOF\n APP_ENV=dev\n APP_SECRET=abc123\n EOF\n );\n\n file_put_contents(__DIR__.'/.env.local', <<", "meta": {"filepath": "src/Symfony/Component/Dotenv/Tests/Command/DotenvDumpCommandTest.php", "language": "php", "file_size": 3718, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\WebLink;\n\nuse Psr\\Link\\EvolvableLinkProviderInterface;\nuse Psr\\Link\\LinkInterface;\n\nclass GenericLinkProvider implements EvolvableLinkProviderInterface\n{\n /**\n * @var LinkInterface[]\n */\n private array $links = [];\n\n /**\n * @param LinkIn", "suffix": "nks;\n }\n\n public function getLinks(): array\n {\n return array_values($this->links);\n }\n\n public function getLinksByRel(string $rel): array\n {\n $links = [];\n\n foreach ($this->links as $link) {\n if (\\in_array(", "middle": "terface[] $links\n */\n public function __construct(array $links = [])\n {\n $that = $this;\n\n foreach ($links as $link) {\n $that = $that->withLink($link);\n }\n\n $this->links = $that->li", "meta": {"filepath": "src/Symfony/Component/WebLink/GenericLinkProvider.php", "language": "php", "file_size": 1484, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\WebLink;\n\nuse Psr\\Link\\EvolvableLinkProviderInterface;\n\n/**\n * Parse a list of HTTP Link headers into a list of Link instances.\n *\n * @see https://tools.ietf.org/html/rfc5988\n *\n * @author Jérôme Tamarelle <jerome@tamarelle.net>\n */\nclass HttpHeaderParser\n{\n // Regex to match each link entry: ", "suffix": "_PATTERN = '/;\\s*([a-zA-Z0-9\\-_]+)(?:\\s*=\\s*(?:\"((?:[^\"\\\\\\\\]|\\\\\\\\.)*)\"|([^\";,\\s]+)))?/';\n\n /**\n * @param string|string[] $headers Value of the \"Link\" HTTP header\n */\n public function parse(string|array $headers): EvolvableLinkProviderInterfac", "middle": "<...>; param1=...; param2=...\n private const LINK_PATTERN = '/<([^>]*)>\\s*((?:\\s*;\\s*[a-zA-Z0-9\\-_]+(?:\\s*=\\s*(?:\"(?:[^\"\\\\\\\\]|\\\\\\\\.)*\"|[^\";,\\s]+))?)*)/';\n\n // Regex to match parameters: ; key[=value]\n private const PARAM", "meta": {"filepath": "src/Symfony/Component/WebLink/HttpHeaderParser.php", "language": "php", "file_size": 3004, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\WebLink;\n\nuse Psr\\Link\\LinkInterface;\n\n/**\n * Serializes a list of Link instances to an HTTP Link header.\n *\n * @see https://tools.ietf.org/html/rfc5988\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass HttpHeaderSerializer\n{\n /**\n * Builds the value of th", "suffix": "k->isTemplated()) {\n continue;\n }\n\n $attributesParts = ['', \\sprintf('rel=\"%s\"', implode(' ', $link->getRels()))];\n foreach ($link->getAttributes() as $key => $value) {\n if (\\is_array($value)) ", "middle": "e \"Link\" HTTP header.\n *\n * @param LinkInterface[]|\\Traversable $links\n */\n public function serialize(iterable $links): ?string\n {\n $elements = [];\n foreach ($links as $link) {\n if ($lin", "meta": {"filepath": "src/Symfony/Component/WebLink/HttpHeaderSerializer.php", "language": "php", "file_size": 1751, "cut_index": 537, "middle_length": 229}} {"prefix": "k-relations/link-relations.xhtml\n public const REL_ABOUT = 'about';\n public const REL_ACL = 'acl';\n public const REL_ALTERNATE = 'alternate';\n public const REL_AMPHTML = 'amphtml';\n public const REL_APPENDIX = 'appendix';\n public const REL_APPLE_TOUCH_ICON = 'apple-touch-icon';\n public const REL_APPLE_TOUCH_STARTUP_IMAGE = 'apple-touch-startup-image';\n public const REL_ARCHIVES = 'archives';\n public const REL_AUTHOR = 'author';\n public const REL_BLOCKED_BY = 'blocked-by';\n p", "suffix": "onst REL_CONTENTS = 'contents';\n public const REL_CONVERTEDFROM = 'convertedfrom';\n public const REL_COPYRIGHT = 'copyright';\n public const REL_CREATE_FORM = 'create-form';\n public const REL_CURRENT = 'current';\n public const REL_DESCRIBEDBY", "middle": "ublic const REL_BOOKMARK = 'bookmark';\n public const REL_CANONICAL = 'canonical';\n public const REL_CHAPTER = 'chapter';\n public const REL_CITE_AS = 'cite-as';\n public const REL_COLLECTION = 'collection';\n public c", "meta": {"filepath": "src/Symfony/Component/WebLink/Link.php", "language": "php", "file_size": 9508, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\WebLink\\EventListener;\n\nuse Psr\\Link\\LinkProviderInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\WebLink\\HttpHeaderSerial", "suffix": "dLinkHeaderListener implements EventSubscriberInterface\n{\n public function __construct(\n private readonly HttpHeaderSerializer $serializer = new HttpHeaderSerializer(),\n ) {\n }\n\n public function onKernelResponse(ResponseEvent $event): vo", "middle": "izer;\n\n// Help opcache.preload discover always-needed symbols\nclass_exists(HttpHeaderSerializer::class);\n\n/**\n * Adds the Link HTTP header to the response.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n *\n * @final\n */\nclass Ad", "meta": {"filepath": "src/Symfony/Component/WebLink/EventListener/AddLinkHeaderListener.php", "language": "php", "file_size": 1547, "cut_index": 537, "middle_length": 229}} {"prefix": "riableCount;\n private ?\\SplObjectStorage $inlinedDefinitions = null;\n private ?array $serviceCalls = null;\n private array $reservedVariables = ['instance', 'class', 'this', 'container'];\n private ExpressionLanguage $expressionLanguage;\n private ?string $targetDirRegex = null;\n private int $targetDirMaxMatches;\n private string $docStar;\n private array $serviceIdToMethodNameMap;\n private array $usedMethodNames;\n private string $namespace;\n private bool $asFiles;\n private st", "suffix": "UsePrivateIds = [];\n private array $preload = [];\n private bool $addGetService = false;\n private array $locatedIds = [];\n private string $serviceLocatorTag;\n private array $exportedVariables = [];\n private array $dynamicParameters = [];\n ", "middle": "ring $hotPathTag;\n private array $preloadTags;\n private bool $inlineFactories;\n private bool $inlineRequires;\n private array $inlinedRequires = [];\n private array $circularReferences = [];\n private array $single", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php", "language": "php", "file_size": 104226, "cut_index": 3790, "middle_length": 229}} {"prefix": "nt;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ArgumentInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\EnvClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony", "suffix": "ter;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\Yaml\\Dumper as YmlDumper;\nuse Symfony\\Component\\Yaml\\Parser;\nuse Symfony\\Component\\Yaml\\Tag\\TaggedValue;\nuse Symfony\\Compon", "middle": "\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Parame", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php", "language": "php", "file_size": 15110, "cut_index": 921, "middle_length": 229}} {"prefix": "ment\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Parameter;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\n\n/**\n * XmlDumper dumps a service container as an XML string.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Martin Hasoň ", "suffix": "xml version=\"1.0\" encoding=\"utf-8\"?>\n <container xmlns=\"http://symfony.com/schema/dic/services\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://symfony.com/schema/dic/services https://symfony.com/schema/dic/servi", "middle": "<martin.hason@gmail.com>\n */\nclass XmlDumper extends Dumper\n{\n /**\n * Dumps the service container as an XML string.\n */\n public function dump(array $options = []): string\n {\n $xml = <<<EOXML\n <?", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php", "language": "php", "file_size": 19946, "cut_index": 1331, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid;\n\nif (interface_exists(\\Ds\\Key::class)) {\n /**\n * @internal\n */\n interface HashableInterface extends \\Ds\\Key\n {\n public function equals(mixed $other): bool;\n\n public function hash(): string;\n }\n} elseif (interface_exists(\\Ds\\Hashable::class)) {\n /**\n ", "suffix": "ce extends \\Ds\\Hashable\n {\n public function hash(): string;\n }\n} else {\n /**\n * @internal\n */\n interface HashableInterface\n {\n public function equals(mixed $other): bool;\n\n public function hash(): string;\n }\n}", "middle": " * @internal\n */\n interface HashableInterfa", "meta": {"filepath": "src/Symfony/Component/Uid/HashableInterface.php", "language": "php", "file_size": 868, "cut_index": 559, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Uid;\n\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n *\n * @see https://datatracker.ietf.org/doc/html/rfc9562/#section-6.6 for details about namespaces\n */\nclass Uuid extends AbstractUid\n{\n public const NAMESPACE_DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';\n public const NAMESPACE_URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';\n public const NAMESPACE_OID = '6ba7b812-9dad", "suffix": "ic const FORMAT_RFC_4122 = 1 << 3;\n public const FORMAT_RFC_9562 = self::FORMAT_RFC_4122;\n public const FORMAT_ALL = -1;\n\n protected const TYPE = 0;\n protected const NIL = '00000000-0000-0000-0000-000000000000';\n protected const MAX = 'fffff", "middle": "-11d1-80b4-00c04fd430c8';\n public const NAMESPACE_X500 = '6ba7b814-9dad-11d1-80b4-00c04fd430c8';\n\n public const FORMAT_BINARY = 1;\n public const FORMAT_BASE_32 = 1 << 1;\n public const FORMAT_BASE_58 = 1 << 2;\n publ", "meta": {"filepath": "src/Symfony/Component/Uid/Uuid.php", "language": "php", "file_size": 7492, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid;\n\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Uid\\Exception\\LogicException;\n\n/**\n * Converts between UUIDv7 and UUIDv4 using SipHash-2-4 timestamp masking.\n *\n * This allows storing time-ordered UUIDv7 in databases while emitting\n * UUIDv4-looking identifiers at API boundaries, hiding timing information", "suffix": "del: this is timestamp obfuscation, not authenticated encryption.\n * The transformation carries no integrity tag, so any well-formed v4 will\n * decode to some v7; callers must not treat decoded values as authentic and\n * should validate them against applic", "middle": ".\n *\n * The 48-bit timestamp of a UUIDv7 is XOR-masked with a keyed SipHash-2-4\n * digest derived from the UUID's own random bits, producing a valid UUIDv4.\n * The transformation is reversible with the same key.\n *\n * Security mo", "meta": {"filepath": "src/Symfony/Component/Uid/Uuid47Transformer.php", "language": "php", "file_size": 4594, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid;\n\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\n\n/**\n * A v6 UUID is lexicographically sortable and contains a 60-bit timestamp and 62 extra unique bits.\n *\n * Unlike UUIDv1, this implementation of UUIDv6 doesn't leak the MAC address of the host.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass UuidV6 extends Uuid implem", "suffix": " } else {\n parent::__construct($uuid, true);\n }\n }\n\n public function getDateTime(): \\DateTimeImmutable\n {\n return BinaryUtil::hexToDateTime('0'.substr($this->uid, 0, 8).substr($this->uid, 9, 4).substr($this->uid, 15", "middle": "ents TimeBasedUidInterface\n{\n protected const TYPE = 6;\n\n private static string $node;\n\n public function __construct(?string $uuid = null)\n {\n if (null === $uuid) {\n $this->uid = static::generate();\n", "meta": {"filepath": "src/Symfony/Component/Uid/UuidV6.php", "language": "php", "file_size": 3142, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Uid;\n\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\n\n/**\n * A v7 UUID is lexicographically sortable and contains a 58-bit timestamp and 64 extra unique bits.\n *\n * Within the same millisecond, the unique bits are incremented by a 24-bit random number.\n * This method provides microsecond precision for the timestamp, and minimizes both the\n * risk of collisions and the consumption of the OS' entropy pool.\n *\n * @author Nicolas Greka", "suffix": "rivate static string $seed;\n private static array $seedParts;\n private static int $seedIndex = 0;\n\n public function __construct(?string $uuid = null)\n {\n if (null === $uuid) {\n $this->uid = static::generate();\n } else {", "middle": "s <p@tchwork.com>\n */\nclass UuidV7 extends Uuid implements TimeBasedUidInterface\n{\n protected const TYPE = 7;\n\n private static string $time = '';\n private static int $subMs = 0;\n private static array $rand = [];\n p", "meta": {"filepath": "src/Symfony/Component/Uid/UuidV7.php", "language": "php", "file_size": 6336, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\LazyProxy\\PhpDumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\LazyProxy\\PhpDumper\\NullDumper;\n\n/**\n * Tests for {@see NullDumper}.\n *\n * @author Marco Pivetta <ocramius@gmail.com>\n */\nclass NullDumperTe", "suffix": "mper()\n {\n $dumper = new NullDumper();\n $definition = new Definition('stdClass');\n\n $this->assertFalse($dumper->isProxyCandidate($definition));\n $this->assertSame('', $dumper->getProxyFactoryCode($definition, 'foo', '(false)'", "middle": "st extends TestCase\n{\n public function testNullDu", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/NullDumperTest.php", "language": "php", "file_size": 969, "cut_index": 582, "middle_length": 52}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\LazyProxy\\Instantiator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\LazyProxy\\Inst", "suffix": "y()\n {\n $instantiator = new RealServiceInstantiator();\n $instance = new \\stdClass();\n $callback = static fn () => $instance;\n\n $this->assertSame($instance, $instantiator->instantiateProxy(new Container(), new Definition(), 'f", "middle": "antiator\\RealServiceInstantiator;\n\n/**\n * Tests for {@see RealServiceInstantiator}.\n *\n * @author Marco Pivetta <ocramius@gmail.com>\n */\nclass RealServiceInstantiatorTest extends TestCase\n{\n public function testInstantiateProx", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/LazyProxy/Instantiator/RealServiceInstantiatorTest.php", "language": "php", "file_size": 1023, "cut_index": 512, "middle_length": 229}} {"prefix": "nent\\DependencyInjection\\Tests\\Compiler\\Listener2;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\ListenerResolver;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\MyCallable;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\MyFactory;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\MyInlineService;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\SingleMethodInterface;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\Wither;\nuse Symfony\\Component\\Dependen", "suffix": "sts\\Fixtures\\DependencyContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooClassWithEnumAttribute;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooUnitEnum;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Fo", "middle": "cyInjection\\Tests\\Fixtures\\Bar;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\DependencyContainer;\nuse Symfony\\Component\\DependencyInjection\\Te", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php", "language": "php", "file_size": 110940, "cut_index": 3790, "middle_length": 229}} {"prefix": "\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Argument\\AbstractArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\EnvClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\AutowirePass;\nuse Symfony\\Compon", "suffix": "Component\\DependencyInjection\\Tests\\Fixtures\\FooClassWithDefaultArrayAttribute;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooClassWithDefaultEnumAttribute;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooClassWithDefaultObjectAtt", "middle": "ent\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\XmlDumper;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Dumper/XmlDumperTest.php", "language": "php", "file_size": 16517, "cut_index": 921, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Config;\n\nuse Symfony\\Component\\Config\\Resource\\ResourceInterface;\n\n/**\n * Tracks container parameters.\n *\n * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n *\n * @final\n */\nclass ContainerParametersResource implements ResourceInterface\n{\n /**\n * @param array $parameters The container parameters to t", "suffix": " private array $parameters,\n ) {\n }\n\n public function __toString(): string\n {\n return 'container_parameters_'.hash('xxh128', serialize($this->parameters));\n }\n\n public function getParameters(): array\n {\n return $this->pa", "middle": "rack\n */\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Config/ContainerParametersResource.php", "language": "php", "file_size": 932, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\LazyProxy\\PhpDumper;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\VarExporter\\Exception\\LogicException;\nuse Symfony\\Component\\VarExporter\\ProxyHelper;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfinal class LazyServiceDumper implements DumperInterface\n{\n public function __construct(\n private string $sa", "suffix": " if (!$definition->isLazy()) {\n throw new InvalidArgumentException(\\sprintf('Invalid definition for service \"%s\": setting the \"proxy\" tag on a service requires it to be \"lazy\".', $id ?? $definition->getClass()));\n }\n\n ", "middle": "lt = '',\n ) {\n }\n\n public function isProxyCandidate(Definition $definition, ?bool &$asGhostObject = null, ?string $id = null): bool\n {\n $asGhostObject = false;\n\n if ($definition->hasTag('proxy')) {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/LazyServiceDumper.php", "language": "php", "file_size": 6639, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\LazyProxy\\Instantiator;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * Lazy proxy instantiator, capable of instantiating a proxy given a container, the\n * service definition", "suffix": "-callable $realInstantiator\n *\n * @param string $id Identifier of the requested service\n * @param (callable(): object)|(callable(object): void) $realInstantiator A callback that creates or in", "middle": "s and a callback that produces the real service instance.\n *\n * @author Marco Pivetta <ocramius@gmail.com>\n */\ninterface InstantiatorInterface\n{\n /**\n * Instantiates a proxy object.\n *\n * @param-immediately-invoked", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php", "language": "php", "file_size": 1607, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\LazyProxy\\Instantiator;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Dependency", "suffix": "stantiator\n */\n public function instantiateProxy(ContainerInterface $container, Definition $definition, string $id, callable $realInstantiator): object\n {\n $dumper = new LazyServiceDumper();\n\n if (!$dumper->isProxyCandidate($definit", "middle": "Injection\\LazyProxy\\PhpDumper\\LazyServiceDumper;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfinal class LazyServiceInstantiator implements InstantiatorInterface\n{\n /**\n * @param-immediately-invoked-callable $realIn", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/LazyServiceInstantiator.php", "language": "php", "file_size": 1771, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Dumper;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfinal class Preloader\n{\n public static function append(string $file, array $list): void\n {\n if (!file_exists($file)) {\n throw new \\LogicException(\\sprintf('File \"%s\" does not exist.', $file));\n }\n\n $cacheDir = \\dirname($file);\n ", "suffix": "acheDir)), \\DIRECTORY_SEPARATOR, '/'), true)), \\FILE_APPEND);\n continue;\n }\n\n $classes[] = \\sprintf(\"\\$classes[] = %s;\\n\", var_export($item, true));\n }\n\n file_put_contents($file, \\sprintf(\"\\n\\$classes = []", "middle": " $classes = [];\n\n foreach ($list as $item) {\n if (str_starts_with($item, $cacheDir)) {\n file_put_contents($file, \\sprintf(\"require_once __DIR__.%s;\\n\", var_export(strtr(substr($item, \\strlen($c", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Dumper/Preloader.php", "language": "php", "file_size": 4057, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Uid;\n\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\n\n/**\n * @internal\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass BinaryUtil\n{\n public const BASE10 = [\n '' => '0123456789',\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n ];\n\n public const BASE58 = [\n '' => '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz',\n 1 => 0, 1, 2, 3, 4, 5, 6, 7, 8, 'A' => 9,\n 'B' => 10, 'C' => 11, 'D' => 12,", "suffix": " 31, 'Z' => 32, 'a' => 33,\n 'b' => 34, 'c' => 35, 'd' => 36, 'e' => 37, 'f' => 38, 'g' => 39,\n 'h' => 40, 'i' => 41, 'j' => 42, 'k' => 43, 'm' => 44, 'n' => 45,\n 'o' => 46, 'p' => 47, 'q' => 48, 'r' => 49, 's' => 50, 't' => 51,\n ", "middle": " 'E' => 13, 'F' => 14, 'G' => 15,\n 'H' => 16, 'J' => 17, 'K' => 18, 'L' => 19, 'M' => 20, 'N' => 21,\n 'P' => 22, 'Q' => 23, 'R' => 24, 'S' => 25, 'T' => 26, 'U' => 27,\n 'V' => 28, 'W' => 29, 'X' => 30, 'Y' =>", "meta": {"filepath": "src/Symfony/Component/Uid/BinaryUtil.php", "language": "php", "file_size": 6726, "cut_index": 716, "middle_length": 229}} {"prefix": "p and 80-bit of crypto-random entropy.\n *\n * @see https://github.com/ulid/spec\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass Ulid extends AbstractUid implements TimeBasedUidInterface\n{\n public const FORMAT_BINARY = 1;\n public const FORMAT_BASE_32 = 1 << 1;\n public const FORMAT_BASE_58 = 1 << 2;\n public const FORMAT_RFC_4122 = 1 << 3;\n public const FORMAT_RFC_9562 = self::FORMAT_RFC_4122;\n public const FORMAT_ALL = -1;\n\n protected const NIL = '00000000000000000000000000';\n pr", "suffix": "$this->uid = static::generate();\n } elseif (self::NIL === $ulid) {\n $this->uid = self::NIL;\n } else {\n $this->uid = strtoupper($ulid);\n\n if (self::MAX === $this->uid) {\n $this->uid = self::MAX;\n", "middle": "otected const MAX = '7ZZZZZZZZZZZZZZZZZZZZZZZZZ';\n\n private static string $time = '';\n private static array $rand = [];\n\n public function __construct(?string $ulid = null)\n {\n if (null === $ulid) {\n ", "meta": {"filepath": "src/Symfony/Component/Uid/Ulid.php", "language": "php", "file_size": 9992, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid;\n\n/**\n * A v4 UUID contains a 122-bit random number.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass UuidV4 extends Uuid\n{\n protected const TYPE = 4;\n\n public function __construct(?string $uuid = null)\n {\n if (null === $uuid)", "suffix": "/ xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\n $uuid[8] = $uuid[13] = $uuid[18] = $uuid[23] = '-';\n // Set the UUID version to 4\n // xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx\n $uuid[14] = '4';\n // Set the UUID var", "middle": " {\n // Generate 36 random hex characters (144 bits)\n // xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n $uuid = bin2hex(random_bytes(18));\n // Insert dashes to match the UUID format\n /", "meta": {"filepath": "src/Symfony/Component/Uid/UuidV4.php", "language": "php", "file_size": 1357, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\LazyProxy\\Instantiator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\LazyProxy\\Instantiator\\Laz", "suffix": "iator = new LazyServiceInstantiator();\n $instance = new class extends AbstractSayClass {\n public int $calls = 0;\n\n public function say(): string\n {\n ++$this->calls;\n\n return 'Hello from ", "middle": "yServiceInstantiator;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\AbstractSayClass;\n\nclass LazyServiceInstantiatorTest extends TestCase\n{\n public function testInstantiateAbstractClassProxy()\n {\n $instant", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/LazyProxy/Instantiator/LazyServiceInstantiatorTest.php", "language": "php", "file_size": 1446, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\Preloader;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Preload\\A;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Preload\\B;\nuse Symfony\\Component\\DependencyIn", "suffix": "s\\Preload\\DummyWithInterface;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Preload\\E;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Preload\\F;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Preload\\G;\nuse Symfony\\Component\\", "middle": "jection\\Tests\\Fixtures\\Preload\\C;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Preload\\D;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Preload\\Dummy;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixture", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Dumper/PreloaderTest.php", "language": "php", "file_size": 3001, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\LazyProxy\\PhpDumper;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * Lazy proxy dumper capable of generating the instantiation logic PHP code for proxied services.\n *\n * @author Marco Pivetta <ocramius@gmail.com>\n */\ninterf", "suffix": "is a ghost object\n */\n public function isProxyCandidate(Definition $definition, ?bool &$asGhostObject = null, ?string $id = null): bool;\n\n /**\n * Generates the code to be used to instantiate a proxy in the dumped factory code.\n */\n pub", "middle": "ace DumperInterface\n{\n /**\n * Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.\n *\n * @param bool|null &$asGhostObject Set to true after the call if the proxy ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php", "language": "php", "file_size": 1259, "cut_index": 524, "middle_length": 229}} {"prefix": "ntainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Parameter;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * GraphvizDumper dumps a service container as a graphviz file.\n *\n * You can convert the generated dot file with the dot utility (http://www.graphviz.org/):\n *\n * dot -Tpng contai", "suffix": "[\n 'graph' => ['ratio' => 'compress'],\n 'node' => ['fontsize' => '11', 'fontname' => 'Arial', 'shape' => 'record'],\n 'edge' => ['fontsize' => '9', 'fontname' => 'Arial', 'color' => 'grey', 'arrowhead' => 'open', 'arrowsize' => '0.5'],\n", "middle": "ner.dot > foo.png\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass GraphvizDumper extends Dumper\n{\n private array $nodes;\n private array $edges;\n // All values should be strings\n private array $options = ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php", "language": "php", "file_size": 9278, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\Uid;\n\nuse Symfony\\Component\\Uid\\Exception\\InvalidArgumentException;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nabstract class AbstractUid implements \\JsonSerializable, \\Stringable, HashableInterface\n{\n /**\n * The identifier in its canonic representation.\n */\n protected string $uid;\n\n /**\n * Whether the passed value is valid for the constructor of the current class.\n */\n abstract public static function isValid(s", "suffix": "ic static function fromString(string $uid): static;\n\n /**\n * @throws InvalidArgumentException When the passed value is not valid\n */\n public static function fromBinary(string $uid): static\n {\n if (16 !== \\strlen($uid)) {\n ", "middle": "tring $uid): bool;\n\n /**\n * Creates an AbstractUid from an identifier represented in any of the supported formats.\n *\n * @throws InvalidArgumentException When the passed value is not valid\n */\n abstract publ", "meta": {"filepath": "src/Symfony/Component/Uid/AbstractUid.php", "language": "php", "file_size": 5679, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\LazyProxy\\PhpDumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\LazyProxy\\PhpDumper\\LazyServiceDumper;\nuse Symfony\\Compo", "suffix": " $dumper = new LazyServiceDumper();\n $definition = (new Definition(ContainerInterface::class))->setLazy(true);\n\n $this->assertTrue($dumper->isProxyCandidate($definition));\n $this->assertStringContainsString('function get(', $dumper-", "middle": "nent\\DependencyInjection\\Tests\\Fixtures\\AbstractSayClass;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\ReadOnlyClass;\n\nclass LazyServiceDumperTest extends TestCase\n{\n public function testProxyInterface()\n {\n ", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/LazyServiceDumperTest.php", "language": "php", "file_size": 3053, "cut_index": 614, "middle_length": 229}} {"prefix": "\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\Argument\\AbstractArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\EnvClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection", "suffix": "ncyInjection\\Dumper\\YamlDumper;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\FooClassWithDefaultArrayAttribute;\nuse Symfony\\Co", "middle": "\\Compiler\\AutowirePass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\Depende", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php", "language": "php", "file_size": 12779, "cut_index": 921, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\LazyProxy\\PhpDumper;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n/**\n * Null dumper, negates any proxy code generation for any given service definition.\n *\n * @author Marco Pivetta <ocramius@gmail.com>\n *\n * @final\n */\nclass NullDumper implements DumperInterface\n{\n public function", "suffix": "GhostObject = null, ?string $id = null): bool\n {\n return $asGhostObject = false;\n }\n\n public function getProxyFactoryCode(Definition $definition, string $id, string $factoryCode): string\n {\n return '';\n }\n\n public function g", "middle": " isProxyCandidate(Definition $definition, ?bool &$as", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/NullDumper.php", "language": "php", "file_size": 987, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\Uid;\n\n/**\n * A v1 UUID contains a 60-bit timestamp and 62 extra unique bits.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass UuidV1 extends Uuid implements TimeBasedUidInterface\n{\n protected const TYPE = 1;\n\n private static string $clockSeq;\n\n public function __construct(?st", "suffix": "e(): \\DateTimeImmutable\n {\n return BinaryUtil::hexToDateTime('0'.substr($this->uid, 15, 3).substr($this->uid, 9, 4).substr($this->uid, 0, 8));\n }\n\n public function getNode(): string\n {\n return substr($this->uid, -12);\n }\n\n p", "middle": "ring $uuid = null)\n {\n if (null === $uuid) {\n $this->uid = strtolower(uuid_create(static::TYPE));\n } else {\n parent::__construct($uuid, true);\n }\n }\n\n public function getDateTim", "meta": {"filepath": "src/Symfony/Component/Uid/UuidV1.php", "language": "php", "file_size": 2419, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Config;\n\nuse Symfony\\Component\\Config\\Resource\\ResourceInterface;\nuse Symfony\\Component\\Config\\ResourceCheckerInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\n/**\n * @author Maxime Steinhausser <maxime.stein", "suffix": "ourceInterface $metadata): bool\n {\n return $metadata instanceof ContainerParametersResource;\n }\n\n public function isFresh(ResourceInterface $resource, int $timestamp): bool\n {\n foreach ($resource->getParameters() as $key => $value", "middle": "hausser@gmail.com>\n */\nclass ContainerParametersResourceChecker implements ResourceCheckerInterface\n{\n public function __construct(\n private ContainerInterface $container,\n ) {\n }\n\n public function supports(Res", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Config/ContainerParametersResourceChecker.php", "language": "php", "file_size": 1199, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Tests\\Dumper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\GraphvizDumper;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass GraphvizDumperTest extends TestCase\n{\n ", "suffix": "raphvizDumper($container = new ContainerBuilder());\n\n $this->assertStringEqualsGeneratedFile('services1.dot', $dumper->dump(), '->dump() dumps an empty container as an empty dot file');\n\n $container = include self::$fixturesPath.'/containers/", "middle": "protected static string $fixturesPath;\n\n public static function setUpBeforeClass(): void\n {\n self::$fixturesPath = realpath(__DIR__.'/../Fixtures');\n }\n\n public function testDump()\n {\n $dumper = new G", "meta": {"filepath": "src/Symfony/Component/DependencyInjection/Tests/Dumper/GraphvizDumperTest.php", "language": "php", "file_size": 4145, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\WebLink\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\WebLink\\HttpHeaderParser;\n\nclass HttpHeaderParserTest extends TestCase\n{\n public function testParse()\n {\n $parser = new HttpHeaderParser();\n\n $header = [\n '</1>; rel=\"prerender\",</2>; rel=\"dns-prefetc", "suffix": ";\n $links = $provider->getLinks();\n\n self::assertCount(5, $links);\n\n self::assertSame(['prerender'], $links[0]->getRels());\n self::assertSame('/1', $links[0]->getHref());\n self::assertSame([], $links[0]->getAttributes());", "middle": "h\"; pr=\"0.7\",</3>; rel=\"preload\"; as=\"script\"',\n '</4>; rel=\"preload\"; as=\"image\"; nopush,</5>; rel=\"alternate next\"; hreflang=\"fr\"; hreflang=\"de\"; title=\"Hello\"',\n ];\n $provider = $parser->parse($header)", "meta": {"filepath": "src/Symfony/Component/WebLink/Tests/HttpHeaderParserTest.php", "language": "php", "file_size": 3710, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\DnsMock;\n\nclass DnsMockTest extends TestCase\n{\n protected function tearDown(): void\n {\n DnsMock::withMockedHosts([]);\n }\n\n public function testCheckdnsrr()\n {\n DnsMock::withMockedHosts(['example.com' => [['type' => 'MX']]]);\n $this->assertT", "suffix": "ple.com', 'a'));\n $this->assertTrue(DnsMock::checkdnsrr('example.com', 'any'));\n $this->assertFalse(DnsMock::checkdnsrr('foobar.com', 'ANY'));\n }\n\n public function testGetmxrr()\n {\n DnsMock::withMockedHosts([\n 'exam", "middle": "rue(DnsMock::checkdnsrr('example.com'));\n\n DnsMock::withMockedHosts(['example.com' => [['type' => 'A']]]);\n $this->assertFalse(DnsMock::checkdnsrr('example.com'));\n $this->assertTrue(DnsMock::checkdnsrr('exam", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DnsMockTest.php", "language": "php", "file_size": 4375, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClassExistsMock;\nuse Symfony\\Bridge\\PhpUnit\\Tests\\Fixtures\\ExistingEnum;\nuse Symfony\\Bridge\\PhpUnit\\Tests\\Fixtures\\ExistingEnumReal;\n\nclass EnumExistsMockTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n // Require the fixture file to a", "suffix": "withMockedEnums([\n ExistingEnum::class => false,\n 'NonExistingEnum' => true,\n ]);\n }\n\n public static function tearDownAfterClass(): void\n {\n ClassExistsMock::withMockedEnums([]);\n }\n\n public function testC", "middle": "llow PHP to be fully aware of the enum existence\n require __DIR__.'/Fixtures/ExistingEnumReal.php';\n\n ClassExistsMock::register(__CLASS__);\n }\n\n protected function setUp(): void\n {\n ClassExistsMock::", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/EnumExistsMockTest.php", "language": "php", "file_size": 3225, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpunit;\nuse PHPUnit\\Framework\\Attributes\\RunInSeparateProcess;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ExpectDeprecationTrait;\n\n#[RequiresPhpunit('<10.0.0')]\nfinal class ExpectDepreca", "suffix": " $this->expectDeprecation('foo');\n @trigger_error('foo', \\E_USER_DEPRECATED);\n }\n\n /**\n * Do not remove this test in the next major version.\n *\n * @group legacy\n *\n * @runInSeparateProcess\n */\n #[Group('legacy')", "middle": "tionTraitTest extends TestCase\n{\n use ExpectDeprecationTrait;\n\n /**\n * Do not remove this test in the next major version.\n *\n * @group legacy\n */\n #[Group('legacy')]\n public function testOne()\n {\n ", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/ExpectDeprecationTraitTest.php", "language": "php", "file_size": 2482, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpunit;\nuse PHPUnit\\Framework\\TestCase;\n\n#[RequiresPhpunit('<10.0.0')]\nfinal class ExpectedDeprecationAnnotationTest extends TestCase\n{\n /**\n * Do ", "suffix": "ED);\n }\n\n /**\n * Do not remove this test in the next major versions.\n *\n * @group legacy\n *\n * @expectedDeprecation foo\n * @expectedDeprecation bar\n */\n #[Group('legacy')]\n public function testMany()\n {\n @t", "middle": "not remove this test in the next major versions.\n *\n * @group legacy\n *\n * @expectedDeprecation foo\n */\n #[Group('legacy')]\n public function testOne()\n {\n @trigger_error('foo', \\E_USER_DEPRECAT", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/ExpectedDeprecationAnnotationTest.php", "language": "php", "file_size": 1100, "cut_index": 515, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\n\n/**\n * This test is meant to be skipped.\n *\n * @requires extension ext-dummy\n */\n#[RequiresPhpExtension('ext-dummy')]\nfinal class OnlyExpectingDeprecati", "suffix": "ot remove this test in the next major versions.\n *\n * @group legacy\n *\n * @expectedDeprecation unreachable\n */\n #[Group('legacy')]\n public function testExpectingOnlyDeprecations()\n {\n $this->fail('should never be ran.');", "middle": "onSkippedTest extends TestCase\n{\n /**\n * Do n", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/OnlyExpectingDeprecationSkippedTest.php", "language": "php", "file_size": 876, "cut_index": 559, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpunit;\nuse PHPUnit\\Framework\\Exception;\nuse PHPUnit\\Framework\\TestCase;\n\n/**\n * Don't remove this test case, it tests the legacy group.\n *\n * @group legacy\n", "suffix": " @trigger_error('Test abc', \\E_USER_DEPRECATED);\n $this->addToAssertionCount(1);\n }\n\n public function testCallingOtherErrorHandler()\n {\n $this->expectException(Exception::class);\n $this->expectExceptionMessage('Test tha", "middle": " *\n * @runTestsInSeparateProcesses\n */\n#[RequiresPhpunit('<10.0.0')]\n#[Group('legacy')]\nclass ProcessIsolationTest extends TestCase\n{\n /**\n * @expectedDeprecation Test abc\n */\n public function testIsolation()\n {\n", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php", "language": "php", "file_size": 1134, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\DnsSensitive;\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\TimeSensitive;\nuse Symfony\\Bridge\\PhpUnit\\Tests\\Fixtures\\symfonyextension\\src\\ClassExtendingFinalClass;\nuse Symfony\\Bridge\\PhpUnit\\Tests\\Fixtures\\symfonyextension\\src\\FinalClass;\n\n#[DnsSensitive('App\\Foo\\A')]\n#[TimeSensitive('App\\", "suffix": "ce as of its next major version. You should not extend it from \"%s\".', FinalClass::class, ClassExtendingFinalClass::class));\n\n new ClassExtendingFinalClass();\n }\n\n #[DataProvider('mockedNamespaces')]\n #[Group('time-sensitive')]\n #[TimeSe", "middle": "Foo\\A')]\nclass SymfonyExtension extends TestCase\n{\n public function testExtensionOfFinalClass()\n {\n $this->expectUserDeprecationMessage(\\sprintf('The \"%s\" class is considered final. It may change without further noti", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/SymfonyExtension.php", "language": "php", "file_size": 5605, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Bridge\\PhpUnit\\DnsMock;\n\nclass SymfonyExtensionWithManualRegister extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n ClockMock::register(self:", "suffix": "3.4'],\n ],\n ]);\n }\n\n public static function tearDownAfterClass(): void\n {\n ClockMock::withClockMock(false);\n DnsMock::withMockedHosts([]);\n }\n\n public function testDate()\n {\n self::assertSame('2024-0", "middle": ":class);\n ClockMock::withClockMock(strtotime('2024-05-20 15:30:00'));\n\n DnsMock::register(self::class);\n DnsMock::withMockedHosts([\n 'example.com' => [\n ['type' => 'A', 'ip' => '1.2.", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/SymfonyExtensionWithManualRegister.php", "language": "php", "file_size": 1550, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Bridge\\PhpUnit\\Tests\\Fixtures\\symfonyextension\\src\\ClassExtendingFinalClass;\nuse Symfony\\Bridge\\PhpUnit\\Tests\\Fixtures\\symfonyextension\\src\\FinalClass;\n\nspl_autoload_register(function ($class) {\n if (FinalClass::class === $class) {\n require __DIR__.'/../src/FinalC", "suffix": "Attribute/DnsSensitive.php';\nrequire __DIR__.'/../../../../Attribute/TimeSensitive.php';\nrequire __DIR__.'/../../../../Extension/EnableClockMockSubscriber.php';\nrequire __DIR__.'/../../../../Extension/RegisterClockMockSubscriber.php';\nrequire __DIR__.'/../", "middle": "lass.php';\n } elseif (ClassExtendingFinalClass::class === $class) {\n require __DIR__.'/../src/ClassExtendingFinalClass.php';\n }\n});\n\nrequire __DIR__.'/../../../../SymfonyExtension.php';\nrequire __DIR__.'/../../../../", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/Fixtures/symfonyextension/tests/bootstrap.php", "language": "php", "file_size": 1393, "cut_index": 524, "middle_length": 229}} {"prefix": "ishValue()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('hi');\n Configuration::fromUrlEncodedString('hi');\n }\n\n public function testItThrowsOnUnknownConfigurationOption()\n {\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('min');\n Configuration::fromUrlEncodedString('min[total]=42');\n }\n\n public function testItThrowsOnUnknownThreshold()\n {\n $this->ex", "suffix": " $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('forty-two');\n Configuration::fromUrlEncodedString('max[total]=forty-two');\n }\n\n public function testItNoticesExceededTotalThreshold()\n {\n ", "middle": "pectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage('deep');\n Configuration::fromUrlEncodedString('max[deep]=42');\n }\n\n public function testItThrowsOnStringishThreshold()\n {\n ", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php", "language": "php", "file_size": 23921, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests\\DeprecationErrorHandler;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpunit;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler\\DeprecationGroup;\n\n#[RequiresPhpunit('<10.0.0')]\nfinal class DeprecationGroupTest extend", "suffix": "ller',\n 'get5klocMethod'\n );\n $group->addNoticeFromProceduralCode('Calling sfContext::getInstance() is deprecated');\n $this->assertCount(1, $group->notices());\n $this->assertSame(2, $group->count());\n }\n\n public", "middle": "s TestCase\n{\n public function testItGroupsByMessage()\n {\n $group = new DeprecationGroup();\n $group->addNoticeFromObject(\n 'Calling sfContext::getInstance() is deprecated',\n 'MonsterContro", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationGroupTest.php", "language": "php", "file_size": 1262, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests\\DeprecationErrorHandler;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpunit;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler\\DeprecationNotice;\n\n#[RequiresPhpunit('<10.0.0')]\nfinal class DeprecationNoticeTest extends TestCase\n", "suffix": "tice->addObjectOccurrence('MyOtherAction', '__invoke');\n\n $countsByCaller = $notice->getCountsByCaller();\n\n $this->assertCount(2, $countsByCaller);\n $this->assertArrayHasKey('MyAction::__invoke', $countsByCaller);\n $this->assert", "middle": "{\n public function testItGroupsByCaller()\n {\n $notice = new DeprecationNotice();\n $notice->addObjectOccurrence('MyAction', '__invoke');\n $notice->addObjectOccurrence('MyAction', '__invoke');\n $no", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationNoticeTest.php", "language": "php", "file_size": 1546, "cut_index": 537, "middle_length": 229}} {"prefix": "it\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler;\nuse Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler\\Deprecation;\nuse Symfony\\Bridge\\PhpUnit\\Legacy\\SymfonyTestsListenerForV7;\n\n#[RequiresPhpunit('<10.0.0')]\nclass DeprecationTest extends TestCase\n{\n private static $vendorDir;\n private static $prefixDirsPsr4;\n\n private static function getVendorDir()\n {\n if (null !== self::$vendorDir) {\n return self::$vendorDir;\n }\n\n foreach (get_declared_clas", "suffix": " if (file_exists($vendorDir.'/composer/installed.json') && @mkdir($vendorDir.'/myfakevendor/myfakepackage1', 0o777, true)) {\n break;\n }\n }\n }\n\n self::$vendorDir = $vendorDir;\n @mkdir(", "middle": "ses() as $class) {\n if ('C' === $class[0] && str_starts_with($class, 'ComposerAutoloaderInit')) {\n $r = new \\ReflectionClass($class);\n $vendorDir = \\dirname($r->getFileName(), 2);\n ", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php", "language": "php", "file_size": 11380, "cut_index": 921, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nclass ComposerLoaderFakeFallbackPsr0\n{\n public function getPrefixes()\n {\n return [];\n }\n\n public function getPrefixesPsr4()\n {\n return [];\n }\n\n public function getFallbackDirs()\n {\n return [__DIR__.'/../../fake_app_fallback/'];\n }\n\n", "suffix": "'.php';\n if (file_exists($file)) {\n require $file;\n\n return;\n }\n }\n }\n}\n\nclass ComposerAutoloaderInitFakeFallbackPsr0\n{\n private static $loader;\n\n public static function getLoader()\n {\n", "middle": " public function getFallbackDirsPsr4()\n {\n return [];\n }\n\n public function loadClass($className)\n {\n foreach ($this->getFallbackDirs() as $dir) {\n $file = $dir.strtr($className, '\\\\', '/').", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_vendor_fallback_psr0/composer/autoload_real.php", "language": "php", "file_size": 1221, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nclass ComposerLoaderFakeBis\n{\n public function getPrefixes()\n {\n return [];\n }\n\n public function getPrefixesPsr4()\n {\n return [\n 'foo\\\\lib\\\\' => [__DIR__.'/../foo/lib/'],\n ];\n }\n\n public function getFallbackDirs()\n {\n retur", "suffix": "ts_with($className, $prefix)) {\n continue;\n }\n\n foreach ($baseDirs as $baseDir) {\n $file = str_replace([$prefix, '\\\\'], [$baseDir, '/'], $className.'.php');\n if (file_exists($file)) {\n ", "middle": "n [];\n }\n\n public function getFallbackDirsPsr4()\n {\n return [];\n }\n\n public function loadClass($className)\n {\n foreach ($this->getPrefixesPsr4() as $prefix => $baseDirs) {\n if (!str_star", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_vendor_bis/composer/autoload_real.php", "language": "php", "file_size": 1411, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace App\\Services;\n\nuse acme\\lib\\SomeService;\nuse foo\\lib\\SomeOtherService;\n\nfinal class AppService\n{\n public function directDeprecationsTwoVendors()\n {\n $service1 = new SomeService();\n $service1->deprecatedApi();\n\n $service2 = new SomeOtherService();\n $servic", "suffix": "%s is deprecated, use %s_new instead.', ...$args));\n } else {\n @trigger_error(\\sprintf('Since App 3.0: %s is deprecated, use %s_new instead.', ...$args), \\E_USER_DEPRECATED);\n }\n }\n\n public function directDeprecation(bool $us", "middle": "e2->deprecatedApi();\n }\n\n public function selfDeprecation(bool $useContracts = false)\n {\n $args = [__FUNCTION__, __FUNCTION__];\n if ($useContracts) {\n trigger_deprecation('App', '3.0', \\sprintf('", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_app/AppService.php", "language": "php", "file_size": 1527, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nclass ComposerLoaderFake\n{\n public function getPrefixes()\n {\n return [];\n }\n\n public function getPrefixesPsr4()\n {\n return [\n 'App\\\\Services\\\\' => [__DIR__.'/../../fake_app/'],\n 'acme\\\\lib\\\\' => [__DIR__.'/../acme/lib/'],\n 'bar\\\\lib\\\\' =", "suffix": "urn [];\n }\n\n public function loadClass($className)\n {\n if ($file = $this->findFile($className)) {\n require $file;\n }\n }\n\n public function findFile($class)\n {\n foreach ($this->getPrefixesPsr4() as $prefix =>", "middle": "> [__DIR__.'/../bar/lib/'],\n 'fcy\\\\lib\\\\' => [__DIR__.'/../fcy/lib/'],\n ];\n }\n\n public function getFallbackDirs()\n {\n return [];\n }\n\n public function getFallbackDirsPsr4()\n {\n ret", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_vendor/composer/autoload_real.php", "language": "php", "file_size": 1727, "cut_index": 537, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace acme\\lib;\n\nuse bar\\lib\\AnotherService;\n\nclass SomeService\n{\n public function deprecatedApi(bool $useContracts = false)\n {\n $args = [__FUNCTION__, __FUNCTION__];\n if ($useContracts) {\n trigger_deprecation('acme/lib', '3.0', \\sprintf('%s is deprecated, use %s_new instead.', ...$arg", "suffix": "rintf('Since acme/lib 3.0: %s is deprecated, use %s_new instead.', ...$args), \\E_USER_DEPRECATED);\n }\n }\n\n public function indirectDeprecatedApi(bool $useContracts = false)\n {\n (new AnotherService())->deprecatedApi($useContracts);\n ", "middle": "s));\n } else {\n @trigger_error(\\sp", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_vendor/acme/lib/SomeService.php", "language": "php", "file_size": 873, "cut_index": 559, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\neval(<<<'EOPHP'\n namespace PHPUnit\\Util;\n\n class Test\n {\n public static function getGroups()\n {\n return array();\n }\n }\n EOPHP\n);\n\n@trigger_error('root deprecation', \\E_USER_DEPRECATED);\n\nclass FooTestCase\n{\n public function testLe", "suffix": "D);\n trigger_error('unsilenced foo deprecation', \\E_USER_DEPRECATED);\n }\n\n public function testNonLegacyBar()\n {\n @trigger_error('silenced bar deprecation', \\E_USER_DEPRECATED);\n trigger_error('unsilenced bar deprecation', \\E_", "middle": "gacyFoo()\n {\n @trigger_error('silenced foo deprecation', \\E_USER_DEPRECATED);\n trigger_error('unsilenced foo deprecation', \\E_USER_DEPRECATED);\n @trigger_error('silenced foo deprecation', \\E_USER_DEPRECATE", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_vendor/acme/lib/deprecation_riddled.php", "language": "php", "file_size": 1217, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nclass ComposerLoaderFakeFallbackPsr4\n{\n public function getPrefixes()\n {\n return [];\n }\n\n public function getPrefixesPsr4()\n {\n return [];\n }\n\n public function getFallbackDirs()\n {\n return [];\n }\n\n public function getFallbackDirs", "suffix": "/').'.php';\n if (file_exists($file)) {\n require $file;\n\n return;\n }\n }\n }\n}\n\nclass ComposerAutoloaderInitFakeFallbackPsr4\n{\n private static $loader;\n\n public static function getLoader()\n ", "middle": "Psr4()\n {\n return [__DIR__.'/../../fake_app_fallback/'];\n }\n\n public function loadClass($className)\n {\n foreach ($this->getFallbackDirsPsr4() as $dir) {\n $file = $dir.strtr($className, '\\\\', '", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_vendor_fallback_psr4/composer/autoload_real.php", "language": "php", "file_size": 1225, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests\\FailTests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpunit;\nuse PHPUnit\\Framework\\Attributes\\RunInSeparateProcess;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ExpectDeprecationTrait;\n\n/**\n *", "suffix": ".0.0')]\nfinal class ExpectDeprecationTraitTestFail extends TestCase\n{\n use ExpectDeprecationTrait;\n\n /**\n * Do not remove this test in the next major version.\n *\n * @group legacy\n */\n #[Group('legacy')]\n public function testOne(", "middle": " Class ExpectDeprecationTraitTestFail.\n *\n * This class is deliberately suffixed with *TestFail.php so that it is ignored\n * by PHPUnit. This test is designed to fail. See ../expectdeprecationfail.phpt.\n */\n#[RequiresPhpunit('<10", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/FailTests/ExpectDeprecationTraitTestFail.php", "language": "php", "file_size": 1452, "cut_index": 524, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests\\FailTests;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpunit;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ExpectDeprecationTrait;\n\n/**\n * This class is deliberately suffixed with *TestRisky.php so that it is ignored\n * by PHPUnit. This test is designed to fail. See .", "suffix": "0')]\nfinal class NoAssertionsTestNotRisky extends TestCase\n{\n use ExpectDeprecationTrait;\n\n /**\n * Do not remove this test in the next major version.\n */\n public function testOne()\n {\n $this->expectNotToPerformAssertions();\n }", "middle": "./expectnotrisky.phpt.\n */\n#[RequiresPhpunit('<10.0.", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestNotRisky.php", "language": "php", "file_size": 870, "cut_index": 559, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests\\FailTests;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpunit;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ExpectDeprecationTrait;\n\n/**\n * This class is deliberately suffixed with *TestRi", "suffix": " * Do not remove this test in the next major version.\n *\n * @group legacy\n */\n #[Group('legacy')]\n public function testOne()\n {\n $this->expectNotToPerformAssertions();\n $this->expectDeprecation('foo');\n @trigge", "middle": "sky.php so that it is ignored\n * by PHPUnit. This test is designed to fail. See ../expectrisky.phpt.\n */\n#[RequiresPhpunit('<10.0.0')]\nfinal class NoAssertionsTestRisky extends TestCase\n{\n use ExpectDeprecationTrait;\n\n /**\n", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestRisky.php", "language": "php", "file_size": 1211, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests\\Metadata;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\DnsSensitive;\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\TimeSensitive;\nuse Symfony\\Bridge\\PhpUnit\\Metadata\\AttributeReader;\nuse Symfony\\Bridge\\PhpUnit\\Tests\\Metadata\\Fixtures\\FooBar;\n\nclass AttributeReaderTest exten", "suffix": "= new AttributeReader();\n\n $attributes = $reader->forClassAndMethod(FooBar::class, $method, $attributeClass);\n\n self::assertContainsOnlyInstancesOf($attributeClass, $attributes);\n self::assertSame($expected, array_column($attributes, '", "middle": "ds TestCase\n{\n /**\n * @dataProvider provideReadCases\n */\n #[DataProvider('provideReadCases')]\n public function testAttributesAreRead(string $method, string $attributeClass, array $expected)\n {\n $reader ", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/Metadata/AttributeReaderTest.php", "language": "php", "file_size": 3180, "cut_index": 614, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests\\Metadata\\Fixtures;\n\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\DnsSensitive;\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\TimeSensitive;\n\n#[DnsSensitive('App\\Foo\\Bar\\A')]\n#[DnsSensitive('App\\Foo\\Bar\\B')]\n#[TimeSensitive('App\\Foo\\Bar\\A')]\nfinal class FooBar\n{\n #[DnsSens", "suffix": ")\n {\n }\n\n #[TimeSensitive('App\\Foo\\Qux\\D')]\n #[TimeSensitive('App\\Foo\\Qux\\E')]\n public function testTwo()\n {\n }\n\n #[DnsSensitive('App\\Foo\\Corge\\F')]\n #[TimeSensitive('App\\Foo\\Corge\\G')]\n public function testThree()\n {\n }", "middle": "itive('App\\Foo\\Baz\\C')]\n public function testOne(", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/Metadata/Fixtures/FooBar.php", "language": "php", "file_size": 846, "cut_index": 535, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Metadata;\n\n/**\n * @internal\n *\n * @template T of object\n */\nfinal class AttributeReader\n{\n /**\n * @var array<string, array<class-string<T>, list<T>>>\n */\n private array $cache = [];\n\n /**\n * @param class-string $className\n * @param class-string<T> $name\n *\n ", "suffix": "ttributes[$name] ?? [];\n }\n\n /**\n * @param class-string $className\n * @param class-string<T> $name\n *\n * @return list<T>\n */\n public function forMethod(string $className, string $methodName, string $name): array\n {\n ", "middle": " * @return list<T>\n */\n public function forClass(string $className, string $name): array\n {\n $attributes = $this->cache[$className] ??= $this->readAttributes(new \\ReflectionClass($className));\n\n return $a", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Metadata/AttributeReader.php", "language": "php", "file_size": 2077, "cut_index": 563, "middle_length": 229}} {"prefix": "name = null;\n $getPhpUnitConfig = static function ($probableConfig) use (&$getPhpUnitConfig) {\n if (!$probableConfig) {\n return null;\n }\n\n if (is_dir($probableConfig)) {\n return $getPhpUnitConfig($probableConfig.\\DIRECTORY_SEPARATOR.'phpunit');\n }\n\n foreach (['.xml', '.xml.dist', '.dist.xml'] as $suffix) {\n if (file_exists($candidate = $probableConfig.$suffix)) {\n return $candidate;\n", "suffix": "g option\n if ('--configuration' === $cliArgument && array_key_exists($cliArgumentIndex + 1, $argv)) {\n $phpunitConfigFilename = $getPhpUnitConfig($argv[$cliArgumentIndex + 1]);\n break;\n }\n // s", "middle": " }\n }\n\n return null;\n };\n\n foreach ($argv as $cliArgumentIndex => $cliArgument) {\n if ('--' === $cliArgument) {\n break;\n }\n // lon", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php", "language": "php", "file_size": 19029, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Processor;\n\nuse Monolog\\LogRecord;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * The base class for security token processors.\n *\n * @author Da", "suffix": " protected TokenStorageInterface $tokenStorage,\n ) {\n }\n\n abstract protected function getKey(): string;\n\n abstract protected function getToken(): ?TokenInterface;\n\n public function __invoke(LogRecord $record): LogRecord\n {\n if ($th", "middle": "ny Maillard <danymaillard93b@gmail.com>\n * @author Igor Timoshenko <igor.timoshenko@i.ua>\n *\n * @internal\n */\nabstract class AbstractTokenProcessor\n{\n private bool $processing = false;\n\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Processor/AbstractTokenProcessor.php", "language": "php", "file_size": 1641, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Processor;\n\nuse Monolog\\LogRecord;\nuse Monolog\\ResettableInterface;\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleEvent;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Contracts\\Service\\ResetInte", "suffix": "nterface\n{\n private array $commandData;\n\n public function __construct(\n private bool $includeArguments = true,\n private bool $includeOptions = false,\n ) {\n }\n\n public function __invoke(LogRecord $record): LogRecord\n {\n ", "middle": "rface;\n\n/**\n * Adds the current console command information to the log entry.\n *\n * @author Piotr Stankowski <git@trakos.pl>\n */\nfinal class ConsoleCommandProcessor implements EventSubscriberInterface, ResetInterface, ResettableI", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php", "language": "php", "file_size": 1865, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Processor;\n\nuse Monolog\\Level;\nuse Monolog\\LogRecord;\nuse Monolog\\ResettableInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Log\\DebugLoggerInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\ncl", "suffix": "stStack = null,\n ) {\n }\n\n public function __invoke(LogRecord $record): LogRecord\n {\n $key = $this->requestStack && ($request = $this->requestStack->getCurrentRequest()) ? spl_object_id($request) : '';\n\n $this->records[$key][] = [\n", "middle": "ass DebugProcessor implements DebugLoggerInterface, ResetInterface, ResettableInterface\n{\n private array $records = [];\n private array $errorCount = [];\n\n public function __construct(\n private ?RequestStack $reque", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php", "language": "php", "file_size": 2439, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Processor;\n\nuse Monolog\\LogRecord;\nuse Monolog\\ResettableInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nu", "suffix": "esetInterface, ResettableInterface\n{\n private array $routeData = [];\n\n public function __construct(\n private bool $includeParams = true,\n ) {\n $this->reset();\n }\n\n public function __invoke(LogRecord $record): LogRecord\n {\n ", "middle": "se Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Adds the current route information to the log entry.\n *\n * @author Piotr Stankowski <git@trakos.pl>\n *\n * @final\n */\nclass RouteProcessor implements EventSubscriberInterface, R", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Processor/RouteProcessor.php", "language": "php", "file_size": 2386, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Processor;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\n\n/**\n * Adds the original security token to the log entry.\n *\n * @author Igor Timoshenko <igor.timoshenko@i.ua>\n */\nfinal class SwitchUserTokenProcessor", "suffix": "tion getKey(): string\n {\n return 'impersonator_token';\n }\n\n protected function getToken(): ?TokenInterface\n {\n $token = $this->tokenStorage->getToken();\n\n if ($token instanceof SwitchUserToken) {\n return $token->", "middle": " extends AbstractTokenProcessor\n{\n protected func", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Processor/SwitchUserTokenProcessor.php", "language": "php", "file_size": 950, "cut_index": 582, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\WebLink\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\WebLink\\HttpHeaderSerializer;\nuse Symfony\\Component\\WebLink\\Link;\n\nclass HttpHeaderSerializerTest extends TestCase\n{\n private HttpHeaderSerializer $serializer;\n\n protected function setUp(): void\n", "suffix": "e('pr', 0.7),\n (new Link('preload', '/3'))->withAttribute('as', 'script')->withAttribute('nopush', false),\n (new Link('preload', '/4'))->withAttribute('as', 'image')->withAttribute('nopush', true),\n (new Link('alternate', '", "middle": " {\n $this->serializer = new HttpHeaderSerializer();\n }\n\n public function testSerialize()\n {\n $links = [\n new Link('prerender', '/1'),\n (new Link('dns-prefetch', '/2'))->withAttribut", "meta": {"filepath": "src/Symfony/Component/WebLink/Tests/HttpHeaderSerializerTest.php", "language": "php", "file_size": 1877, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\WebLink\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\WebLink\\Link;\n\n/**\n * Test case borrowed from https://github.com/php-fig/link/.\n */\nclass LinkTest extends TestCase\n{\n public function testCanSetAndRetrieveValues()\n {\n ", "suffix": " $this->assertContains('next', $link->getRels());\n $this->assertArrayHasKey('me', $link->getAttributes());\n $this->assertSame('you', $link->getAttributes()['me']);\n }\n\n public function testCanRemoveValues()\n {\n $link = (new L", "middle": " $link = (new Link())\n ->withHref('http://www.google.com')\n ->withRel('next')\n ->withAttribute('me', 'you')\n ;\n\n $this->assertSame('http://www.google.com', $link->getHref());\n ", "meta": {"filepath": "src/Symfony/Component/WebLink/Tests/LinkTest.php", "language": "php", "file_size": 2887, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n * @author Dominic Tubach <dominic.tubach@to.com>\n */\nclass ClockMock\n{\n private static $now;\n\n public static function withClockMock($enable = null): ?bool\n {\n if (null === $enable) {\n return null !== self::$now;\n }\n\n self::$now = is_numeric($enable) ? (", "suffix": "now;\n }\n\n public static function sleep($s): int\n {\n if (null === self::$now) {\n return \\sleep($s);\n }\n\n self::$now += (int) $s;\n\n return 0;\n }\n\n public static function usleep($us): void\n {\n if", "middle": "float) $enable : ($enable ? microtime(true) : null);\n\n return null;\n }\n\n public static function time(): int\n {\n if (null === self::$now) {\n return \\time();\n }\n\n return (int) self::$", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/ClockMock.php", "language": "php", "file_size": 3963, "cut_index": 614, "middle_length": 229}} {"prefix": "HPUnit\\Util\\ErrorHandler as UtilErrorHandler;\nuse Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler\\Configuration;\nuse Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler\\Deprecation;\nuse Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler\\DeprecationGroup;\nuse Symfony\\Component\\ErrorHandler\\DebugClassLoader;\n\n/**\n * Catch deprecation notices and print a summary report at the end of the test suite.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass DeprecationErrorHandler\n{\n public const MODE_DISABLED = 'disabled", "suffix": "nGroups = [];\n\n private static $isRegistered = false;\n private static $errorHandler;\n\n public function __construct()\n {\n $this->resetDeprecationGroups();\n }\n\n /**\n * Registers and configures the deprecation handler.\n *\n ", "middle": "';\n public const MODE_WEAK = 'max[total]=999999&verbose=0';\n public const MODE_STRICT = 'max[total]=0';\n\n private $mode;\n private $configuration;\n\n /**\n * @var DeprecationGroup[]\n */\n private $deprecatio", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php", "language": "php", "file_size": 16580, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit;\n\nuse Doctrine\\Deprecations\\Deprecation;\nuse PHPUnit\\Event\\Code\\Test;\nuse PHPUnit\\Event\\Code\\TestMethod;\nuse PHPUnit\\Event\\Test\\BeforeTestMethodErrored;\nuse PHPUnit\\Event\\Test\\BeforeTestMethodErroredSubscriber;\nuse PHPUnit\\Event\\Test\\Errored;\nuse PHPUnit\\Event\\Test\\ErroredSubscriber;\nuse PHPUnit\\Event\\Test\\Finished;\nuse PHPUnit\\Event\\Test\\FinishedSubscriber;\nuse PHPUnit\\Event\\Test\\Skipped;\nuse PHPUnit\\Event\\Test\\SkippedSubscriber;\nuse PHPUni", "suffix": "\\DnsSensitive;\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\TimeSensitive;\nuse Symfony\\Bridge\\PhpUnit\\Extension\\EnableClockMockSubscriber;\nuse Symfony\\Bridge\\PhpUnit\\Extension\\RegisterClockMockSubscriber;\nuse Symfony\\Bridge\\PhpUnit\\Extension\\RegisterDnsMockSubscri", "middle": "t\\Metadata\\Group;\nuse PHPUnit\\Runner\\Extension\\Extension;\nuse PHPUnit\\Runner\\Extension\\Facade;\nuse PHPUnit\\Runner\\Extension\\ParameterCollection;\nuse PHPUnit\\TextUI\\Configuration\\Configuration;\nuse Symfony\\Bridge\\PhpUnit\\Attribute", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/SymfonyExtension.php", "language": "php", "file_size": 6160, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Doctrine\\Deprecations\\Deprecation;\nuse Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler;\n\n// Skip if we're using PHPUnit >=10\nif (class_exists(PHPUnit\\Metadata\\Metadata::class)) {\n return;\n}\n\n// Detect if we need to serialize deprecations to a file.\nif (in_array(\\PHP_SAPI, [", "suffix": "OMPOSER_INSTALL') && !class_exists(PHPUnit\\TextUI\\Command::class, false)) {\n return;\n}\n\nif (isset($fileIdentifier)) {\n unset($GLOBALS['__composer_autoload_files'][$fileIdentifier]);\n}\n\nif (class_exists(Deprecation::class)) {\n Deprecation::withoutD", "middle": "'cli', 'phpdbg'], true) && $file = getenv('SYMFONY_DEPRECATIONS_SERIALIZE')) {\n DeprecationErrorHandler::collectDeprecations($file);\n\n return;\n}\n\n// Detect if we're loaded by an actual run of phpunit\nif (!defined('PHPUNIT_C", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/bootstrap.php", "language": "php", "file_size": 1162, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Extension;\n\nuse PHPUnit\\Event\\Code\\TestMethod;\nuse PHPUnit\\Event\\TestSuite\\Loaded;\nuse PHPUnit\\Event\\TestSuite\\LoadedSubscriber;\nuse PHPUnit\\Metadata\\Group;\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\TimeSensitive;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Sy", "suffix": "lic function notify(Loaded $event): void\n {\n foreach ($event->testSuite()->tests() as $test) {\n if (!$test instanceof TestMethod) {\n continue;\n }\n\n foreach ($test->metadata() as $metadata) {\n ", "middle": "mfony\\Bridge\\PhpUnit\\Metadata\\AttributeReader;\n\n/**\n * @internal\n */\nclass RegisterClockMockSubscriber implements LoadedSubscriber\n{\n public function __construct(\n private AttributeReader $reader,\n ) {\n }\n\n pub", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Extension/RegisterClockMockSubscriber.php", "language": "php", "file_size": 1437, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Legacy;\n\nuse PHPUnit\\TextUI\\Command as BaseCommand;\nuse PHPUnit\\TextUI\\Configuration\\Configuration as LegacyConfiguration;\nuse PHPUnit\\TextUI\\Configuration\\Registry;\nuse PHPUnit\\TextUI\\TestRunner as BaseRunner;\nuse PHPUnit\\TextUI\\XmlConfiguration\\Configuration;\nuse PHPUnit\\TextUI\\XmlConfigur", "suffix": ">arguments['listeners'] = [];\n\n $registeredLocally = false;\n\n foreach ($this->arguments['listeners'] as $registeredListener) {\n if ($registeredListener instanceof SymfonyTestsListener) {\n $registeredListener->globalL", "middle": "ation\\Loader;\nuse Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener;\n\n/**\n * @internal\n */\nclass CommandForV9 extends BaseCommand\n{\n protected function createRunner(): BaseRunner\n {\n $this->arguments['listeners'] ?? $this-", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/CommandForV9.php", "language": "php", "file_size": 2169, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Legacy;\n\n/**\n * @internal\n */\ntrait ConstraintTraitForV8\n{\n use ConstraintLogicTrait;\n\n /**\n * @return bool|null\n */\n public function evaluate($other, $description = '', $returnResult = false)\n {\n return $this->doEval", "suffix": "d function additionalFailureDescription($other): string\n {\n return $this->doAdditionalFailureDescription($other);\n }\n\n protected function failureDescription($other): string\n {\n return $this->doFailureDescription($other);\n }\n\n ", "middle": "uate($other, $description, $returnResult);\n }\n\n public function count(): int\n {\n return $this->doCount();\n }\n\n public function toString(): string\n {\n return $this->doToString();\n }\n\n protecte", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/ConstraintTraitForV8.php", "language": "php", "file_size": 1098, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Legacy;\n\n/**\n * @internal, use Symfony\\Bridge\\PhpUnit\\ExpectDeprecationTrait instead.\n */\ntrait ExpectDeprecationTraitBeforeV8_4\n{\n /**\n * @param string $message\n */\n protected function expectDeprecation($message): void\n {\n // Expected deprec", "suffix": "sultObject()->beStrictAboutTestsThatDoNotTestAnything(false);\n $expectedDeprecations = file_get_contents($file);\n if ($expectedDeprecations) {\n $expectedDeprecations = array_merge(unserialize($expectedDeprecations), [$m", "middle": "ations set by isolated tests need to be written to a file\n // so that the test running process can take account of them.\n if ($file = getenv('SYMFONY_EXPECTED_DEPRECATIONS_SERIALIZE')) {\n $this->getTestRe", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/ExpectDeprecationTraitBeforeV8_4.php", "language": "php", "file_size": 1511, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Legacy;\n\nuse PHPUnit\\Framework\\Constraint\\LogicalNot;\nuse PHPUnit\\Framework\\Constraint\\TraversableContains;\n\n/**\n * This trait is @internal.\n */\ntrait PolyfillAssertTrait\n{\n /**\n * @param iterable $haystack\n * @param string $message\n *\n * @return void\n */\n public static function assertContainsEquals($needle, $hays", "suffix": " $message\n *\n * @return void\n */\n public static function assertNotContainsEquals($needle, $haystack, $message = '')\n {\n $constraint = new LogicalNot(new TraversableContains($needle, false, false));\n static::assertThat($hayst", "middle": "tack, $message = '')\n {\n $constraint = new TraversableContains($needle, false, false);\n static::assertThat($haystack, $constraint, $message);\n }\n\n /**\n * @param iterable $haystack\n * @param string ", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/PolyfillAssertTrait.php", "language": "php", "file_size": 3797, "cut_index": 614, "middle_length": 229}} {"prefix": "e PHPUnit\\Framework\\TestCase;\nuse PHPUnit\\Framework\\TestSuite;\nuse PHPUnit\\Runner\\BaseTestRunner;\nuse PHPUnit\\Runner\\PhptTestCase;\nuse PHPUnit\\Util\\Blacklist;\nuse PHPUnit\\Util\\ExcludeList;\nuse PHPUnit\\Util\\Test;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Bridge\\PhpUnit\\DnsMock;\nuse Symfony\\Bridge\\PhpUnit\\ExpectDeprecationTrait;\nuse Symfony\\Component\\ErrorHandler\\DebugClassLoader;\n\n/**\n * PHP 5.3 compatible trait-like shared implementation.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n", "suffix": "$state = -1;\n private $skippedFile = false;\n private $wasSkipped = [];\n private $isSkipped = [];\n private $runsInSeparateProcess = false;\n private $checkNumAssertions = false;\n\n /**\n * @param array $mockedNamespaces List of namespaces", "middle": " */\nclass SymfonyTestsListenerTrait\n{\n public static $expectedDeprecations = [];\n public static $previousErrorHandler;\n private static $gatheredDeprecations = [];\n private static $globallyEnabled = false;\n private ", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php", "language": "php", "file_size": 14932, "cut_index": 921, "middle_length": 229}} {"prefix": "ork\\TestSuite;\nuse PHPUnit\\Metadata\\Api\\Groups;\nuse PHPUnit\\Util\\Test;\nuse Symfony\\Bridge\\PhpUnit\\Legacy\\SymfonyTestsListenerFor;\nuse Symfony\\Component\\ErrorHandler\\DebugClassLoader;\n\nclass_exists(Groups::class);\n\n/**\n * @internal\n */\nclass Deprecation\n{\n public const PATH_TYPE_VENDOR = 'path_type_vendor';\n public const PATH_TYPE_SELF = 'path_type_internal';\n public const PATH_TYPE_UNDETERMINED = 'path_type_undetermined';\n\n public const TYPE_SELF = 'type_self';\n public const TYPE_DIRECT = 'ty", "suffix": " private $originMethod;\n private $triggeringFile;\n private $triggeringClass;\n\n /** @var string[] Absolute paths to vendor directories */\n private static $vendors;\n\n /**\n * @var string[] Absolute paths to source or tests of the project,", "middle": "pe_direct';\n public const TYPE_INDIRECT = 'type_indirect';\n public const TYPE_UNDETERMINED = 'type_undetermined';\n\n private $trace = [];\n private $message;\n private $languageDeprecation;\n private $originClass;\n ", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php", "language": "php", "file_size": 14674, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler;\n\n/**\n * @internal\n */\nfinal class DeprecationGroup\n{\n private $count = 0;\n\n /**\n * @var DeprecationNotice[] keys are messages\n */\n private $deprecationNotices = [];\n\n public function addNoticeFromObject(strin", "suffix": "essage): void\n {\n $this->deprecationNotice($message)->addProceduralOccurrence();\n $this->addNotice();\n }\n\n public function addNotice(): void\n {\n ++$this->count;\n }\n\n private function deprecationNotice(string $message)", "middle": "g $message, string $class, string $method): void\n {\n $this->deprecationNotice($message)->addObjectOccurrence($class, $method);\n $this->addNotice();\n }\n\n public function addNoticeFromProceduralCode(string $m", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/DeprecationGroup.php", "language": "php", "file_size": 1327, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\CoversClass;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\n\n/**\n * @author Dominic Tubach <dominic.tubach@to.com>\n *\n * @covers \\Symfony\\Bridge\\PhpUnit\\ClockMock\n */\n#[CoversClass(ClockMock::class)]\ncl", "suffix": "125);\n }\n\n public function testTime()\n {\n $this->assertSame(1234567890, time());\n }\n\n public function testSleep()\n {\n sleep(2);\n $this->assertSame(1234567892, time());\n }\n\n public function testMicrotime()\n {\n", "middle": "ass ClockMockTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n ClockMock::register(__CLASS__);\n }\n\n protected function setUp(): void\n {\n ClockMock::withClockMock(1234567890.", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/ClockMockTest.php", "language": "php", "file_size": 1912, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\WebLink\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\WebLink\\GenericLinkProvider;\nuse Symfony\\Component\\WebLink\\Link;\n\n/**\n * Test case borrowed from https://github.com/php-fig/link/.\n */\nclass GenericLinkProviderTest extends TestCase\n{\n public function testCanAddLinksByMethod", "suffix": ">withLink($link);\n\n $this->assertContains($link, $provider->getLinks());\n }\n\n public function testCanAddLinksByConstructor()\n {\n $link = (new Link())\n ->withHref('http://www.google.com')\n ->withRel('next')\n ", "middle": "()\n {\n $link = (new Link())\n ->withHref('http://www.google.com')\n ->withRel('next')\n ->withAttribute('me', 'you')\n ;\n\n $provider = (new GenericLinkProvider())\n -", "meta": {"filepath": "src/Symfony/Component/WebLink/Tests/GenericLinkProviderTest.php", "language": "php", "file_size": 2271, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit;\n\n/**\n * @author Roland Franssen <franssen.roland@gmail.com>\n */\nclass ClassExistsMock\n{\n private static $classes = [];\n\n private static $enums = [];\n\n /**\n * Configures the classes to be checked upon existence.\n *\n * @param array $classes Mocked class names as keys (cas", "suffix": "ums to be checked upon existence.\n *\n * @param array $enums Mocked enums names as keys (case-sensitive, without leading root namespace slash) and booleans as values\n */\n public static function withMockedEnums(array $enums): void\n {\n ", "middle": "e-sensitive, without leading root namespace slash) and booleans as values\n */\n public static function withMockedClasses(array $classes): void\n {\n self::$classes = $classes;\n }\n\n /**\n * Configures the en", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/ClassExistsMock.php", "language": "php", "file_size": 2936, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass DnsMock\n{\n private static $hosts = [];\n private static $dnsTypes = [\n 'A' => \\DNS_A,\n 'MX' => \\DNS_MX,\n 'NS' => \\DNS_NS,\n 'SOA' => \\DNS_SOA,\n 'PTR' => \\DNS_PTR,\n 'CNAME' => \\DNS_CNAME,\n 'AAAA' => \\DNS_AAAA,\n 'A6' => \\DNS_A6,\n 'SRV' => \\DNS_SRV,\n 'NAPTR' => \\DNS_NAPTR,\n 'TXT' => \\DNS_TXT,\n 'HINFO'", "suffix": "turned by dns_get_record() as values\n */\n public static function withMockedHosts(array $hosts): void\n {\n self::$hosts = $hosts;\n }\n\n public static function checkdnsrr($hostname, $type = 'MX'): bool\n {\n if (!self::$hosts) {\n", "middle": " => \\DNS_HINFO,\n 'CAA' => '\\\\' !== \\DIRECTORY_SEPARATOR ? \\DNS_CAA : 0,\n ];\n\n /**\n * Configures the mock values for DNS queries.\n *\n * @param array $hosts Mocked hosts as keys, arrays of DNS records as re", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/DnsMock.php", "language": "php", "file_size": 6074, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Extension;\n\nuse PHPUnit\\Event\\Code\\TestMethod;\nuse PHPUnit\\Event\\TestSuite\\Loaded;\nuse PHPUnit\\Event\\TestSuite\\LoadedSubscriber;\nuse PHPUnit\\Metadata\\Group;\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\DnsSensitive;\nuse Symfony\\Bridge\\PhpUnit\\DnsMock;\nuse Symfo", "suffix": "unction notify(Loaded $event): void\n {\n foreach ($event->testSuite()->tests() as $test) {\n if (!$test instanceof TestMethod) {\n continue;\n }\n\n foreach ($test->metadata() as $metadata) {\n ", "middle": "ny\\Bridge\\PhpUnit\\Metadata\\AttributeReader;\n\n/**\n * @internal\n */\nclass RegisterDnsMockSubscriber implements LoadedSubscriber\n{\n public function __construct(\n private AttributeReader $reader,\n ) {\n }\n\n public f", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Extension/RegisterDnsMockSubscriber.php", "language": "php", "file_size": 1426, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Legacy;\n\n/**\n * @internal\n */\ntrait ConstraintLogicTrait\n{\n private function doEvaluate($other, $description, $returnResult)\n {\n $success = false;\n\n if ($this->matches($other)) {\n $success = true;\n }\n\n ", "suffix": "r): string\n {\n return '';\n }\n\n private function doCount(): int\n {\n return 1;\n }\n\n private function doFailureDescription($other): string\n {\n return $this->exporter()->export($other).' '.$this->toString();\n }\n\n ", "middle": "if ($returnResult) {\n return $success;\n }\n\n if (!$success) {\n $this->fail($other, $description);\n }\n\n return null;\n }\n\n private function doAdditionalFailureDescription($othe", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/ConstraintLogicTrait.php", "language": "php", "file_size": 1155, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Legacy;\n\n/**\n * @internal\n */\ntrait ConstraintTraitForV9\n{\n use ConstraintLogicTrait;\n\n public function evaluate($other, string $description = '', bool $returnResult = false): ?bool\n {\n return $this->doEvaluate($other, $descript", "suffix": "ailureDescription($other): string\n {\n return $this->doAdditionalFailureDescription($other);\n }\n\n protected function failureDescription($other): string\n {\n return $this->doFailureDescription($other);\n }\n\n protected function m", "middle": "ion, $returnResult);\n }\n\n public function count(): int\n {\n return $this->doCount();\n }\n\n public function toString(): string\n {\n return $this->doToString();\n }\n\n protected function additionalF", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/ConstraintTraitForV9.php", "language": "php", "file_size": 1076, "cut_index": 515, "middle_length": 229}} {"prefix": " * @var string\n */\n private $regex;\n\n /**\n * @var bool\n */\n private $enabled = true;\n\n /**\n * @var bool[]\n */\n private $verboseOutput;\n\n /**\n * @var string[]\n */\n private $ignoreDeprecationPatterns = [];\n\n /**\n * @var bool\n */\n private $generateBaseline = false;\n\n /**\n * @var string\n */\n private $baselineFile = '';\n\n /**\n * @var array\n */\n private $baselineDeprecations = [];\n\n /**\n * @var string|null\n */", "suffix": "k trace\n * @param bool[] $verboseOutput Keyed by groups\n * @param string $ignoreFile The path to the ignore deprecation patterns file\n * @param bool $generateBaseline Whether to generate or update the baseline file\n ", "middle": "\n private $logFile;\n\n /**\n * @param int[] $thresholds A hash associating groups to thresholds\n * @param string $regex Will be matched against messages, to decide whether to display a stac", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Configuration.php", "language": "php", "file_size": 12400, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PhpUnit\\ClassExistsMock;\n\nclass ClassExistsMockTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n ClassExistsMock::register(__CLASS__);\n }\n\n protected function setUp(): void\n {\n ClassExistsMock::withMockedClasses([\n ExistingClass::class => false,\n 'NonExistingClass' => true,\n ExistingInterface::cl", "suffix": " true,\n ]);\n }\n\n public function testClassExists()\n {\n $this->assertFalse(class_exists(ExistingClass::class));\n $this->assertFalse(class_exists(ExistingClass::class, false));\n $this->assertFalse(class_exists('\\\\'.Existi", "middle": "ass => false,\n 'NonExistingInterface' => true,\n ExistingTrait::class => false,\n 'NonExistingTrait' => true,\n ]);\n\n ClassExistsMock::withMockedEnums([\n 'NonExistingEnum' =>", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/ClassExistsMockTest.php", "language": "php", "file_size": 6979, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\WebLink\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent", "suffix": "ony\\Component\\WebLink\\Link;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass AddLinkHeaderListenerTest extends TestCase\n{\n public function testOnKernelResponse()\n {\n $request = new Request([], [], ['_links' => new GenericLinkProvide", "middle": ";\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\WebLink\\EventListener\\AddLinkHeaderListener;\nuse Symfony\\Component\\WebLink\\GenericLinkProvider;\nuse Symf", "meta": {"filepath": "src/Symfony/Component/WebLink/Tests/EventListener/AddLinkHeaderListenerTest.php", "language": "php", "file_size": 1986, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit;\n\nuse PHPUnit\\Framework\\Test;\nuse PHPUnit\\Framework\\TestCase;\nuse PHPUnit\\Framework\\TestListener;\nuse PHPUnit\\Framework\\TestListenerDefaultImplementation;\nuse PHPUnit\\Framework\\Warning;\nuse PHPUnit\\Util\\Annotation\\Registry;\nuse PHPUnit\\Util\\Test as TestUtil;\n\nclass CoverageListener implements TestListener\n{\n use TestListenerDefaultImpleme", "suffix": "olver ?? static function (Test $test): ?string {\n $class = $test::class;\n\n $sutFqcn = str_replace('\\\\Tests\\\\', '\\\\', $class);\n $sutFqcn = preg_replace('{Test$}', '', $sutFqcn);\n\n return class_exists($sutFqcn) ? $", "middle": "ntation;\n\n private $sutFqcnResolver;\n private $warningOnSutNotFound;\n\n public function __construct(?callable $sutFqcnResolver = null, bool $warningOnSutNotFound = false)\n {\n $this->sutFqcnResolver = $sutFqcnRes", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/CoverageListener.php", "language": "php", "file_size": 3584, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Legacy;\n\nuse PHPUnit\\TextUI\\Command as BaseCommand;\nuse PHPUnit\\TextUI\\TestRunner as BaseRunner;\nuse PHPUnit\\Util\\Configuration;\nuse Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener;\n\n/**\n * @internal\n */\nclass CommandForV8 extends BaseCommand\n{\n protected function cr", "suffix": " if ($registeredListener instanceof SymfonyTestsListener) {\n $registeredListener->globalListenerDisabled();\n $registeredLocally = true;\n break;\n }\n }\n\n if (isset($this->arguments['confi", "middle": "eateRunner(): BaseRunner\n {\n $this->arguments['listeners'] ?? $this->arguments['listeners'] = [];\n\n $registeredLocally = false;\n\n foreach ($this->arguments['listeners'] as $registeredListener) {\n ", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/CommandForV8.php", "language": "php", "file_size": 1760, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Legacy;\n\nuse PHPUnit\\Framework\\Test;\nuse PHPUnit\\Framework\\TestListener;\nuse PHPUnit\\Framework\\TestListenerDefaultImplementation;\nuse PHPUnit\\Framework\\TestSuite;\n\n/**\n * Collects and replays skipped tests.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n ", "suffix": "t = new SymfonyTestsListenerTrait($mockedNamespaces);\n }\n\n public function globalListenerDisabled()\n {\n $this->trait->globalListenerDisabled();\n }\n\n public function startTestSuite(TestSuite $suite): void\n {\n $this->trait->st", "middle": "*\n * @internal\n */\nclass SymfonyTestsListenerForV7 implements TestListener\n{\n use TestListenerDefaultImplementation;\n\n private $trait;\n\n public function __construct(array $mockedNamespaces = [])\n {\n $this->trai", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerForV7.php", "language": "php", "file_size": 1407, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Tests;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpunit;\nuse PHPUnit\\Framework\\TestCase;\n\n#[RequiresPhpunit('<10.0.0')]\nclass CoverageListenerTest extends TestCase\n{\n public function test()\n {\n $dir = __DIR__.'/../Tests/Fixtures/coverage';\n $phpunit = $_SERVER['argv'][0]", "suffix": "lode(\"\\n\", $output);\n $this->assertMatchesRegularExpression('/FooCov\\n\\s*Methods:\\s+100.00%[^\\n]+Lines:\\s+100.00%/', $output);\n\n $output = '';\n exec(\"$php $phpunit -c $dir/phpunit-with-listener.xml.dist $dir/tests/ --coverage-text --co", "middle": ";\n\n $php = $this->findCoverageDriver();\n\n $output = '';\n exec(\"$php $phpunit -c $dir/phpunit-without-listener.xml.dist $dir/tests/ --coverage-text --colors=never 2> /dev/null\", $output);\n $output = imp", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php", "language": "php", "file_size": 2610, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Extension;\n\nuse PHPUnit\\Event\\Code\\TestMethod;\nuse PHPUnit\\Event\\Test\\PreparationStarted;\nuse PHPUnit\\Event\\Test\\PreparationStartedSubscriber;\nuse PHPUnit\\Metadata\\Group;\nuse Symfony\\Bridge\\PhpUnit\\Attribute\\TimeSensitive;\nuse Symfony\\Bridge\\PhpUnit\\Clo", "suffix": ",\n ) {\n }\n\n public function notify(PreparationStarted $event): void\n {\n $test = $event->test();\n\n if (!$test instanceof TestMethod) {\n return;\n }\n\n foreach ($test->metadata() as $metadata) {\n if", "middle": "ckMock;\nuse Symfony\\Bridge\\PhpUnit\\Metadata\\AttributeReader;\n\n/**\n * @internal\n */\nclass EnableClockMockSubscriber implements PreparationStartedSubscriber\n{\n public function __construct(\n private AttributeReader $reader", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Extension/EnableClockMockSubscriber.php", "language": "php", "file_size": 1357, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler;\n\n/**\n * @internal\n */\nfinal class DeprecationNotice\n{\n private $count = 0;\n\n /**\n * @var int[]\n */\n private $countsByCaller = [];\n\n public function addObjectOccurrence($class, $method): void\n {\n if (!isset($this->countsByCaller[\"$class::$method\"])) {\n ", "suffix": "\n }\n ++$this->countsByCaller[\"$class::$method\"];\n ++$this->count;\n }\n\n public function addProceduralOccurrence(): void\n {\n ++$this->count;\n }\n\n public function getCountsByCaller(): array\n {\n return $this", "middle": " $this->countsByCaller[\"$class::$method\"] = 0;", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/DeprecationNotice.php", "language": "php", "file_size": 991, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PhpUnit\\Legacy;\n\n/**\n * @internal use Symfony\\Bridge\\PhpUnit\\ExpectDeprecationTrait instead\n */\ntrait ExpectDeprecationTraitForV8_4\n{\n /**\n * @param string $message\n */\n public function expectDeprecation(): void\n {\n if (1 > \\func_num_args() || !\\is_string($message = func_get_", "suffix": "to a file\n // so that the test running process can take account of them.\n if ($file = getenv('SYMFONY_EXPECTED_DEPRECATIONS_SERIALIZE')) {\n $this->getTestResultObject()->beStrictAboutTestsThatDoNotTestAnything(false);\n $", "middle": "arg(0))) {\n throw new \\InvalidArgumentException(\\sprintf('The \"%s()\" method requires the string $message argument.', __FUNCTION__));\n }\n\n // Expected deprecations set by isolated tests need to be written ", "meta": {"filepath": "src/Symfony/Bridge/PhpUnit/Legacy/ExpectDeprecationTraitForV8_4.php", "language": "php", "file_size": 2392, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Handler;\n\nuse Monolog\\Handler\\ChromePHPHandler as BaseChromePhpHandler;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\n\n/**\n * ChromePhpHandler.\n *\n * @author Christophe Coevoet <stof@notk.org>\n *\n * @final\n */\nc", "suffix": "e(ResponseEvent $event): void\n {\n if (!$event->isMainRequest()) {\n return;\n }\n\n if (!preg_match(static::USER_AGENT_REGEX, $event->getRequest()->headers->get('User-Agent', ''))) {\n self::$sendHeaders = false;\n ", "middle": "lass ChromePhpHandler extends BaseChromePhpHandler\n{\n private array $headers = [];\n private Response $response;\n\n /**\n * Adds the headers to the response once it's created.\n */\n public function onKernelRespons", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php", "language": "php", "file_size": 1783, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Handler;\n\nuse Monolog\\Formatter\\FormatterInterface;\nuse Monolog\\Formatter\\LineFormatter;\nuse Monolog\\Handler\\AbstractProcessingHandler;\nuse Monolog\\Level;\nuse Monolog\\LogRecord;\nuse Symfony\\Bridge\\Monolog\\Formatter\\ConsoleFormatter;\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleCommandEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent;\nuse Symfony\\Component\\Console\\Input\\InputInterface;", "suffix": "\n\n/**\n * Writes logs to the console output depending on its verbosity setting.\n *\n * It is disabled by default and gets activated as soon as a command is executed.\n * Instead of listening to the console events, the output can also be set manually.\n *\n * Th", "middle": "\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper;", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php", "language": "php", "file_size": 7084, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Attribute;\n\nuse Symfony\\Bridge\\Doctrine\\ArgumentResolver\\EntityValueResolver;\nuse Symfony\\Component\\HttpKernel\\Attribute\\ValueResolver;\n\n/**\n * Indicates that a controller argument should receive an Entity.\n */\n#[\\Attribute(\\Attribute::TARGET_PARAMETER)]\nclass MapEntity extends ValueResolver\n{\n /**\n * @param class-string|null ", "suffix": "ntity using the {@see https://symfony.com/doc/current/components/expression_language.html ExpressionLanguage} syntax.\n * Any request attribute are available as a variable, and your entity repository in t", "middle": " $class The entity class\n * @param string|null $objectManager Specify the object manager used to retrieve the entity\n * @param string|null $expr An expression to fetch the e", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Attribute/MapEntity.php", "language": "php", "file_size": 4393, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Types;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Types\\ConversionException;\nuse Doctrine\\DBAL\\Types\\Exception\\InvalidType;\nuse Doctrine\\DBAL\\Types\\Exception\\ValueNotConvertible;\nuse Doctrine\\DBAL\\Types\\Type;\nuse Symfony\\Component\\Uid\\AbstractUid;\n\nabstract class Abstr", "suffix": " {\n if ($this->hasNativeGuidType($platform)) {\n return $platform->getGuidTypeDeclarationSQL($column);\n }\n\n return $platform->getBinaryTypeDeclarationSQL([\n 'length' => 16,\n 'fixed' => true,\n ])", "middle": "actUidType extends Type\n{\n /**\n * @return class-string<AbstractUid>\n */\n abstract protected function getUidClass(): string;\n\n public function getSQLDeclaration(array $column, AbstractPlatform $platform): string\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Types/AbstractUidType.php", "language": "php", "file_size": 2999, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Types;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Types\\DateTimeImmutableType;\nuse Symfony\\Component\\Clock\\DatePoint;\n\nfinal class DatePointType extends DateTimeImmutableType\n{\n public const NAME = 'date_point';\n\n ", "suffix": " === $value || $value instanceof DatePoint) {\n return $value;\n }\n\n $value = parent::convertToPHPValue($value, $platform);\n\n return DatePoint::createFromInterface($value);\n }\n\n public function getName(): string\n {\n ", "middle": " /**\n * @param T $value\n *\n * @return (T is null ? null : DatePoint)\n *\n * @template T\n */\n public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?DatePoint\n {\n if (null", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Types/DatePointType.php", "language": "php", "file_size": 1031, "cut_index": 513, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Types;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Types\\DateImmutableType;\nuse Symfony\\Component\\Clock\\DatePoint;\n\nfinal class DayPointType extends DateImmutableType\n{\n public const NAME = 'day_point';\n\n /**\n * @return ($value is null ? null : DatePoint)\n */\n public func", "suffix": "m $platform): ?DatePoint\n {\n if (null === $value || $value instanceof DatePoint) {\n return $value;\n }\n\n $value = parent::convertToPHPValue($value, $platform);\n\n return DatePoint::createFromInterface($value);\n }\n", "middle": "tion convertToPHPValue(mixed $value, AbstractPlatfor", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Types/DayPointType.php", "language": "php", "file_size": 970, "cut_index": 582, "middle_length": 52}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Types;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Types\\TimeImmutableType;\nuse Symfony\\Component\\Clock\\DatePoint;\n\nfinal class TimePointType extends TimeImmutableType\n{\n public const NAME = 'time_point';\n\n /**\n * @return ($value is null ? null : DatePoint)\n */\n public fu", "suffix": "orm $platform): ?DatePoint\n {\n if (null === $value || $value instanceof DatePoint) {\n return $value;\n }\n\n $value = parent::convertToPHPValue($value, $platform);\n\n return DatePoint::createFromInterface($value);\n ", "middle": "nction convertToPHPValue(mixed $value, AbstractPlatf", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Types/TimePointType.php", "language": "php", "file_size": 972, "cut_index": 582, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\DataCollector;\n\nuse Doctrine\\DBAL\\Types\\ConversionException;\nuse Doctrine\\DBAL\\Types\\Type;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Symfony\\Bridge\\Doctrine\\Middleware\\Debug\\DebugDataHolder;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\VarDumper\\Caster\\Caster;\nuse Symfony\\Component\\VarDumper\\Cloner\\Stub;\n\n/", "suffix": "t(\n private ManagerRegistry $registry,\n private DebugDataHolder $debugDataHolder,\n ) {\n $this->connections = $registry->getConnectionNames();\n $this->managers = $registry->getManagerNames();\n }\n\n public function collect", "middle": "**\n * DoctrineDataCollector.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass DoctrineDataCollector extends DataCollector\n{\n private array $connections;\n private array $managers;\n\n public function __construc", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php", "language": "php", "file_size": 6591, "cut_index": 716, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\DataCollector;\n\nfinal class ObjectParameter\n{\n private bool $stringable;\n private string $class;\n\n public function __construct(\n private readonly object $object,\n private readonly ?\\Throwable $error,\n ) {\n $this->stringable = $this->object instanceof \\Stringable;\n $this", "suffix": " getObject(): object\n {\n return $this->object;\n }\n\n public function getError(): ?\\Throwable\n {\n return $this->error;\n }\n\n public function isStringable(): bool\n {\n return $this->stringable;\n }\n\n public functio", "middle": "->class = $object::class;\n }\n\n public function", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/DataCollector/ObjectParameter.php", "language": "php", "file_size": 954, "cut_index": 582, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Form;\n\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Symfony\\Bridge\\Doctrine\\Form\\Type\\EntityType;\nuse Symfony\\Component\\Form\\AbstractExtension;\nuse Symfony\\Component\\Form\\FormTypeGuesserInterface;\n\nclass DoctrineOrmExtension extends AbstractExtension\n{\n public function _", "suffix": "try,\n ) {\n }\n\n protected function loadTypes(): array\n {\n return [\n new EntityType($this->registry),\n ];\n }\n\n protected function loadTypeGuesser(): ?FormTypeGuesserInterface\n {\n return new DoctrineOrmType", "middle": "_construct(\n protected ManagerRegistry $regis", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Form/DoctrineOrmExtension.php", "language": "php", "file_size": 889, "cut_index": 547, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Form;\n\nuse Doctrine\\DBAL\\Types\\Types;\nuse Doctrine\\ORM\\Mapping\\ClassMetadata;\nuse Doctrine\\ORM\\Mapping\\ClassMetadataInfo;\nuse Doctrine\\ORM\\Mapping\\FieldMapping;\nuse Doctrine\\ORM\\Mapping\\JoinColumnMapping;\nuse Doctrine\\ORM\\Mapping\\MappingException as LegacyMappingException;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Doctrine\\Persistence\\Mapping\\MappingException;\nuse Doctrine\\Persistence\\Proxy;\nuse Symfony\\Bridge\\Doctrine\\Form\\Type\\EntityT", "suffix": "n\\Core\\Type\\DateTimeType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\Textare", "middle": "ype;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\DateIntervalType;\nuse Symfony\\Component\\Form\\Extensio", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php", "language": "php", "file_size": 8373, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Form\\ChoiceList;\n\nuse Doctrine\\Persistence\\ObjectManager;\nuse Symfony\\Component\\Form\\ChoiceList\\Loader\\AbstractChoiceLoader;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\n\n/**\n * Loads choices using a Doctrine object manager.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass DoctrineChoiceLoader extends AbstractChoiceLo", "suffix": "s the object loading for one of the Doctrine\n * mapper implementations.\n *\n * @param string $class The class name of the loaded objects\n */\n public function __construct(\n private readonly ObjectManager $manager,\n string $cl", "middle": "ader\n{\n /** @var class-string */\n private readonly string $class;\n\n /**\n * Creates a new choice loader.\n *\n * Optionally, an implementation of {@link EntityLoaderInterface} can be\n * passed which optimize", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php", "language": "php", "file_size": 4200, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Form\\ChoiceList;\n\nuse Doctrine\\Persistence\\Mapping\\ClassMetadata;\nuse Doctrine\\Persistence\\ObjectManager;\nuse Symfony\\Component\\Form\\Exception\\RuntimeException;\n\n/**\n * A utility for reading object IDs.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @internal\n */\nclass IdReader\n{\n private readonly bool $singleId;\n private", "suffix": "lassMetadata,\n ) {\n $ids = $classMetadata->getIdentifierFieldNames();\n $idType = $classMetadata->getTypeOfField(current($ids));\n\n $singleId = 1 === \\count($ids);\n $this->idField = current($ids);\n\n // single field assoc", "middle": " readonly bool $intId;\n private readonly string $idField;\n private readonly ?self $associationIdReader;\n\n public function __construct(\n private readonly ObjectManager $om,\n private readonly ClassMetadata $c", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php", "language": "php", "file_size": 3096, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Form\\ChoiceList;\n\nuse Doctrine\\DBAL\\ArrayParameterType;\nuse Doctrine\\DBAL\\Types\\ConversionException;\nuse Doctrine\\DBAL\\Types\\Type;\nuse Doctrine\\ORM\\QueryBuilder;\nuse Symfony\\Bridge\\Doctrine\\Types\\AbstractUidType;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * Loads entities using a {@link QueryBuilder} instance.", "suffix": " QueryBuilder $queryBuilder,\n ) {\n }\n\n public function getEntities(): array\n {\n return $this->queryBuilder->getQuery()->execute();\n }\n\n public function getEntitiesByIds(string $identifier, array $values): array\n {\n if (nu", "middle": "\n *\n * @author Benjamin Eberlei <kontakt@beberlei.de>\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass ORMQueryBuilderLoader implements EntityLoaderInterface\n{\n public function __construct(\n private readonly", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php", "language": "php", "file_size": 4082, "cut_index": 614, "middle_length": 229}} {"prefix": "\nuse Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\DoctrineChoiceLoader;\nuse Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\EntityLoaderInterface;\nuse Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\IdReader;\nuse Symfony\\Bridge\\Doctrine\\Form\\DataTransformer\\CollectionToArrayTransformer;\nuse Symfony\\Bridge\\Doctrine\\Form\\EventListener\\MergeDoctrineCollectionListener;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\ChoiceList\\ChoiceList;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\CachingFactoryDecorator;\nuse", "suffix": "OptionsResolver\\OptionsResolver;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\nabstract class DoctrineType extends AbstractType implements ResetInterface\n{\n /**\n * @var IdReader[]\n */\n private array $idReaders", "middle": " Symfony\\Component\\Form\\Exception\\RuntimeException;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php", "language": "php", "file_size": 10978, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Form\\Type;\n\nuse Doctrine\\ORM\\Query\\Parameter;\nuse Doctrine\\ORM\\QueryBuilder;\nuse Doctrine\\Persistence\\ObjectManager;\nuse Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\ORMQueryBuilderLoader;\nuse Symfony\\Component\\Form\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\OptionsResolver\\Options;\nuse Symfony\\Component\\OptionsResolver\\OptionsReso", "suffix": "ache choice lists\n // for equal query builders\n $queryBuilderNormalizer = static function (Options $options, $queryBuilder) {\n if (\\is_callable($queryBuilder)) {\n $queryBuilder = $queryBuilder($options['em']->getRepo", "middle": "lver;\n\nclass EntityType extends DoctrineType\n{\n public function configureOptions(OptionsResolver $resolver): void\n {\n parent::configureOptions($resolver);\n\n // Invoke the query builder closure so that we can c", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php", "language": "php", "file_size": 3148, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Form\\EventListener;\n\nuse Doctrine\\Common\\Collections\\Collection;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\n\n/**\n * Merge changes from the request to a Do", "suffix": "ineCollectionListener implements EventSubscriberInterface\n{\n public static function getSubscribedEvents(): array\n {\n // Higher priority than core MergeCollectionListener so that this one\n // is called before\n return [\n ", "middle": "ctrine\\Common\\Collections\\Collection instance.\n *\n * This works with ORM, MongoDB and CouchDB instances of the collection interface.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @see Collection\n */\nclass MergeDoctr", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php", "language": "php", "file_size": 1488, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Form\\DataTransformer;\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\nuse Doctrine\\Common\\Collections\\Collection;\nuse Doctrine\\Common\\Collections\\ReadableCollection;\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\Transfo", "suffix": "public function transform(mixed $collection): mixed\n {\n if (null === $collection) {\n return [];\n }\n\n // For cases when the collection getter returns $collection->toArray()\n // in order to prevent modifications of t", "middle": "rmationFailedException;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n *\n * @implements DataTransformerInterface<Collection|array, array>\n */\nclass CollectionToArrayTransformer implements DataTransformerInterface\n{\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Form/DataTransformer/CollectionToArrayTransformer.php", "language": "php", "file_size": 1617, "cut_index": 537, "middle_length": 229}} {"prefix": "ctrine\\ORM\\Mapping\\AssociationMapping;\nuse Doctrine\\ORM\\Mapping\\ClassMetadata;\nuse Doctrine\\ORM\\Mapping\\EmbeddedClassMapping;\nuse Doctrine\\ORM\\Mapping\\FieldMapping;\nuse Doctrine\\ORM\\Mapping\\JoinColumnMapping;\nuse Doctrine\\ORM\\Mapping\\MappingException as OrmMappingException;\nuse Doctrine\\Persistence\\Mapping\\MappingException;\nuse Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExt", "suffix": "ractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface\n{\n public function __construct(\n private readonly EntityManagerInterface $entityManager,\n ) {\n }\n\n public function getProp", "middle": "ractorInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\TypeIdentifier;\n\n/**\n * Extracts data using Doctrine ORM and ODM metadata.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass DoctrineExt", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php", "language": "php", "file_size": 10528, "cut_index": 921, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection;\n\nuse Doctrine\\DBAL\\Driver as DriverInterface;\nuse Doctrine\\DBAL\\Driver\\Connection as ConnectionInterface;\nuse Doctrine\\DBAL\\Driver\\Middleware\\AbstractDriverMiddleware;\n\nfinal class Driver extends AbstractDriverMiddle", "suffix": "ttl,\n private readonly string $connectionName,\n ) {\n parent::__construct($driver);\n }\n\n public function connect(array $params): ConnectionInterface\n {\n $timestamp = time();\n $connection = parent::connect($params);\n ", "middle": "ware\n{\n /**\n * @param \\ArrayObject<string, int> $connectionExpiries\n */\n public function __construct(\n DriverInterface $driver,\n private \\ArrayObject $connectionExpiries,\n private readonly int $", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Middleware/IdleConnection/Driver.php", "language": "php", "file_size": 1119, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse ", "suffix": "eadonly \\ArrayObject $connectionExpiries,\n private ContainerInterface $container,\n ) {\n }\n\n public function onKernelRequest(RequestEvent $event): void\n {\n if (HttpKernelInterface::MAIN_REQUEST !== $event->getRequestType()) {\n ", "middle": "Symfony\\Component\\HttpKernel\\KernelEvents;\n\nfinal class Listener implements EventSubscriberInterface\n{\n /**\n * @param \\ArrayObject<string, int> $connectionExpiries\n */\n public function __construct(\n private r", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Middleware/IdleConnection/Listener.php", "language": "php", "file_size": 1849, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Middleware\\Debug;\n\nuse Doctrine\\DBAL\\Driver\\Connection as ConnectionInterface;\nuse Doctrine\\DBAL\\Driver\\Middleware\\AbstractConnectionMiddleware;\nuse Doctrine\\DBAL\\Driver\\Result;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * @author Laurent VOULLEMIER <laurent.voullemier@gmail.com>\n * @author Alexander M. Turek <me@derrabus.de>\n *\n * @i", "suffix": "ly ?Stopwatch $stopwatch,\n private readonly string $connectionName,\n ) {\n parent::__construct($connection);\n }\n\n public function prepare(string $sql): Statement\n {\n return new Statement(\n parent::prepare($sql),\n ", "middle": "nternal\n */\nfinal class Connection extends AbstractConnectionMiddleware\n{\n public function __construct(\n ConnectionInterface $connection,\n private readonly DebugDataHolder $debugDataHolder,\n private readon", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Middleware/Debug/Connection.php", "language": "php", "file_size": 3293, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Middleware\\Debug;\n\n/**\n * @author Laurent VOULLEMIER <laurent.voullemier@gmail.com>\n */\nclass DebugDataHolder\n{\n private array $data = [];\n\n public function addQuery(string $connectionName, Query $query): void\n {\n $this->data[$con", "suffix": " at this point\n ];\n }\n\n public function getData(): array\n {\n foreach ($this->data as $connectionName => $dataForConn) {\n foreach ($dataForConn as $idx => $data) {\n if (\\is_callable($data['executionMS'])) {\n ", "middle": "nectionName][] = [\n 'sql' => $query->getSql(),\n 'params' => $query->getParams(),\n 'types' => $query->getTypes(),\n 'executionMS' => $query->getDuration(...), // stop() may not be called", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Middleware/Debug/DebugDataHolder.php", "language": "php", "file_size": 1250, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Middleware\\Debug;\n\nuse Doctrine\\DBAL\\Driver as DriverInterface;\nuse Doctrine\\DBAL\\Driver\\Connection as ConnectionInterface;\nuse Doctrine\\DBAL\\Driver\\Middleware\\AbstractDriverMiddleware;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * @author L", "suffix": " $debugDataHolder,\n private readonly ?Stopwatch $stopwatch,\n private readonly string $connectionName,\n ) {\n parent::__construct($driver);\n }\n\n public function connect(array $params): ConnectionInterface\n {\n $connecti", "middle": "aurent VOULLEMIER <laurent.voullemier@gmail.com>\n *\n * @internal\n */\nfinal class Driver extends AbstractDriverMiddleware\n{\n public function __construct(\n DriverInterface $driver,\n private readonly DebugDataHolder", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Middleware/Debug/Driver.php", "language": "php", "file_size": 1210, "cut_index": 518, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Middleware\\Debug;\n\nuse Doctrine\\DBAL\\Driver as DriverInterface;\nuse Doctrine\\DBAL\\Driver\\Middleware as MiddlewareInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * Middleware to collect debug data.\n *\n * @author Laurent VOULLEMIE", "suffix": "ch,\n private readonly string $connectionName = 'default',\n ) {\n }\n\n public function wrap(DriverInterface $driver): DriverInterface\n {\n return new Driver($driver, $this->debugDataHolder, $this->stopwatch, $this->connectionName);\n ", "middle": "R <laurent.voullemier@gmail.com>\n */\nfinal class Middleware implements MiddlewareInterface\n{\n public function __construct(\n private readonly DebugDataHolder $debugDataHolder,\n private readonly ?Stopwatch $stopwat", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Middleware/Debug/Middleware.php", "language": "php", "file_size": 1003, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Middleware\\Debug;\n\nuse Doctrine\\DBAL\\ParameterType;\n\n/**\n * @author Laurent VOULLEMIER <laurent.voullemier@gmail.com>\n *\n * @internal\n */\nclass Query\n{\n private array $params = [];\n\n /** @var array<ParameterType|int> */\n private array $types = [];\n\n private ?float $start = null;", "suffix": "on stop(): void\n {\n if (null !== $this->start) {\n $this->duration = microtime(true) - $this->start;\n }\n }\n\n public function setParam(string|int $param, mixed &$variable, ParameterType|int $type): void\n {\n // Nume", "middle": "\n private ?float $duration = null;\n\n public function __construct(\n private readonly string $sql,\n ) {\n }\n\n public function start(): void\n {\n $this->start = microtime(true);\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Middleware/Debug/Query.php", "language": "php", "file_size": 2484, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Middleware\\Debug;\n\nuse Doctrine\\DBAL\\Driver\\Middleware\\AbstractStatementMiddleware;\nuse Doctrine\\DBAL\\Driver\\Result as ResultInterface;\nuse Doctrine\\DBAL\\Driver\\Statement as StatementInterface;\nuse Doctrine\\DBAL\\ParameterType;\nuse Symfony\\Component\\Stopwatch\\Stopwa", "suffix": "public function __construct(\n StatementInterface $statement,\n private readonly DebugDataHolder $debugDataHolder,\n private readonly string $connectionName,\n string $sql,\n private readonly ?Stopwatch $stopwatch = null,\n ", "middle": "tch;\n\n/**\n * @author Laurent VOULLEMIER <laurent.voullemier@gmail.com>\n * @author Alexander M. Turek <me@derrabus.de>\n *\n * @internal\n */\nfinal class Statement extends AbstractStatementMiddleware\n{\n private Query $query;\n\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Middleware/Debug/Statement.php", "language": "php", "file_size": 1784, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\SchemaListener;\n\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Driver\\Exception as DBALDriverException;\nuse Doctrine\\DBAL\\Exception\\DatabaseObjectExistsException;\nuse Doctrine\\DBAL\\Exception\\DatabaseObjectNotFoundException;\nuse Doctrine\\DBAL\\Schema\\Name\\Identifier;\nuse Doctrine\\DBAL\\Schema\\Name\\UnqualifiedName;\nuse Doctrine\\DBAL\\Schema\\NamedObject;\nuse Doctrine\\DBAL\\Schema\\PrimaryKeyConstraint;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrin", "suffix": "oid;\n\n /**\n * @param callable(): Schema $configurator returns the (possibly new) schema with the table added\n *\n * @param-immediately-invoked-callable $configurator\n */\n protected function filterSchemaChanges(Schema $schema, Connectio", "middle": "e\\DBAL\\Schema\\Table;\nuse Doctrine\\DBAL\\Types\\Types;\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\n\nabstract class AbstractSchemaListener\n{\n abstract public function postGenerateSchema(GenerateSchemaEventArgs $event): v", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/SchemaListener/AbstractSchemaListener.php", "language": "php", "file_size": 6741, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\SchemaListener;\n\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse Symfony\\Component\\Cache\\Adapter\\DoctrineDbalAdapter;\n\n/**\n * Automatically adds the cache table needed for the DoctrineDbalAdapter of\n * the Cache component.\n */\nclass DoctrineD", "suffix": " ) {\n }\n\n public function postGenerateSchema(GenerateSchemaEventArgs $event): void\n {\n $connection = $event->getEntityManager()->getConnection();\n $schema = $event->getSchema();\n\n foreach ($this->dbalAdapters as $dbalAdapter) ", "middle": "balCacheAdapterSchemaListener extends AbstractSchemaListener\n{\n /**\n * @param iterable<mixed, DoctrineDbalAdapter> $dbalAdapters\n */\n public function __construct(\n private readonly iterable $dbalAdapters,\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/SchemaListener/DoctrineDbalCacheAdapterSchemaListener.php", "language": "php", "file_size": 1378, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\SchemaListener;\n\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse Symfony\\Component\\Lock\\PersistingStoreInterface;\nuse Symfony\\Component\\Lock\\Store\\DoctrineDbalStore;\n\nfinal class LockStoreSchemaListener extends AbstractSchemaListener\n{\n /*", "suffix": "event): void\n {\n $connection = $event->getEntityManager()->getConnection();\n $schema = $event->getSchema();\n\n foreach ($this->stores as $store) {\n if (!$store instanceof DoctrineDbalStore) {\n continue;\n ", "middle": "*\n * @param iterable<mixed, PersistingStoreInterface> $stores\n */\n public function __construct(\n private readonly iterable $stores,\n ) {\n }\n\n public function postGenerateSchema(GenerateSchemaEventArgs $", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/SchemaListener/LockStoreSchemaListener.php", "language": "php", "file_size": 1368, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\SchemaListener;\n\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineTransport;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\n/**\n * Automatically adds any required database tables", "suffix": "rivate readonly iterable $transports,\n ) {\n }\n\n public function postGenerateSchema(GenerateSchemaEventArgs $event): void\n {\n $connection = $event->getEntityManager()->getConnection();\n $schema = $event->getSchema();\n\n forea", "middle": " to the Doctrine Schema.\n */\nclass MessengerTransportDoctrineSchemaListener extends AbstractSchemaListener\n{\n /**\n * @param iterable<mixed, TransportInterface> $transports\n */\n public function __construct(\n p", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/SchemaListener/MessengerTransportDoctrineSchemaListener.php", "language": "php", "file_size": 1527, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\SchemaListener;\n\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\PdoSessionHandler;\n\nfinal class PdoSessionHandlerSchemaListener extends AbstractSchemaListener\n{\n private PdoSessionH", "suffix": " }\n\n public function postGenerateSchema(GenerateSchemaEventArgs $event): void\n {\n if (!isset($this->sessionHandler)) {\n return;\n }\n\n $connection = $event->getEntityManager()->getConnection();\n $schema = $event", "middle": "andler $sessionHandler;\n\n public function __construct(\\SessionHandlerInterface $sessionHandler)\n {\n if ($sessionHandler instanceof PdoSessionHandler) {\n $this->sessionHandler = $sessionHandler;\n }\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/SchemaListener/PdoSessionHandlerSchemaListener.php", "language": "php", "file_size": 1413, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\SchemaListener;\n\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse Symfony\\Bridge\\Doctrine\\Security\\RememberMe\\DoctrineTokenProvider;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\PersistentRememberMeHandler;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\", "suffix": "am iterable<mixed, RememberMeHandlerInterface> $rememberMeHandlers\n */\n public function __construct(\n private readonly iterable $rememberMeHandlers,\n ) {\n }\n\n public function postGenerateSchema(GenerateSchemaEventArgs $event): void\n ", "middle": "RememberMeHandlerInterface;\n\n/**\n * Automatically adds the rememberme table needed for the {@see DoctrineTokenProvider}.\n */\nclass RememberMeTokenProviderDoctrineSchemaListener extends AbstractSchemaListener\n{\n /**\n * @par", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/SchemaListener/RememberMeTokenProviderDoctrineSchemaListener.php", "language": "php", "file_size": 1810, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\CacheWarmer;\n\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerInterface;\n\n/**\n * The proxy generator cache warmer generates all entity proxies.\n *\n * In the process of generating proxies the cache for all the metadata is primed also,\n * sinc", "suffix": " private readonly ManagerRegistry $registry,\n ) {\n }\n\n /**\n * This cache warmer is not optional, without proxies fatal error occurs!\n */\n public function isOptional(): bool\n {\n return false;\n }\n\n public function warm", "middle": "e this information is necessary to build the proxies in the first place.\n *\n * @author Benjamin Eberlei <kontakt@beberlei.de>\n */\nfinal class ProxyCacheWarmer implements CacheWarmerInterface\n{\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php", "language": "php", "file_size": 2403, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Handler\\FingersCrossed;\n\nuse Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy;\nuse Monolog\\Level;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Handler\\FingersCrossed\\HttpCodeActivationStrategy;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\H", "suffix": "onsWithoutCode()\n {\n $this->expectException(\\LogicException::class);\n new HttpCodeActivationStrategy(new RequestStack(), [['urls' => []]], new ErrorLevelActivationStrategy(Level::Warning));\n }\n\n public function testExclusionsWithoutU", "middle": "ttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpExceptionInterface;\n\nclass HttpCodeActivationStrategyTest extends TestCase\n{\n public function testExclusi", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Handler/FingersCrossed/HttpCodeActivationStrategyTest.php", "language": "php", "file_size": 3725, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Handler;\n\nuse Monolog\\Formatter\\FormatterInterface;\nuse Monolog\\Formatter\\HtmlFormatter;\nuse Monolog\\Formatter\\LineFormatter;\nuse Monolog\\Handler\\AbstractProcessingHandler;\nuse Monolog\\Level;\nuse Monolog\\LogRecord;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Mime\\Email;\n\n/**\n * @author Alexander Borisov <boshurik@gmail.com>\n */\nfinal class MailerHandler extends AbstractProcessingHandler\n{\n public const TRUNCATION_M", "suffix": "disable truncation, otherwise the value must be at\n * least the length of self::TRUNCATION_MARKER. When triggered,\n * the trailing characters are replaced with the marker, so", "middle": "ARKER = '[...]';\n\n private \\Closure|Email $messageTemplate;\n\n /**\n * @param int<0, max> $subjectMaxLength The maximum number of characters of the formatted subject;\n * pass 0 to ", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Handler/MailerHandler.php", "language": "php", "file_size": 5501, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Handler;\n\nuse Monolog\\Formatter\\FormatterInterface;\nuse Monolog\\Handler\\AbstractProcessingHandler;\nuse Monolog\\Level;\nuse Monolog\\LogRecord;\nuse Symfony\\Bridge\\Monolog\\Formatter\\VarDumperFormatter;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n *\n * @internal\n */\nfinal class ServerLogHandler extends AbstractProcessingHandler\n{\n pri", "suffix": " bool $bubble = true, array $context = [])\n {\n parent::__construct($level, $bubble);\n\n if (!str_contains($host, '://')) {\n $host = 'tcp://'.$host;\n }\n\n $this->host = $host;\n $this->context = stream_context_c", "middle": "vate string $host;\n\n /**\n * @var resource\n */\n private $context;\n\n /**\n * @var resource|null\n */\n private $socket;\n\n public function __construct(string $host, string|int|Level $level = Level::Debug,", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Handler/ServerLogHandler.php", "language": "php", "file_size": 3352, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Handler\\FingersCrossed;\n\nuse Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface;\nuse Monolog\\LogRecord;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpExceptionInterface;\n\n/**\n * Activation strategy that ignores certain HTTP codes.\n ", "suffix": "s each exclusion must have a \"code\" and \"urls\" keys\n */\n public function __construct(\n private RequestStack $requestStack,\n private array $exclusions,\n private ActivationStrategyInterface $inner,\n ) {\n foreach ($exclus", "middle": "*\n * @author Shaun Simmons <shaun@envysphere.com>\n * @author Pierrick Vignand <pierrick.vignand@gmail.com>\n */\nfinal class HttpCodeActivationStrategy implements ActivationStrategyInterface\n{\n /**\n * @param array $exclusion", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Handler/FingersCrossed/HttpCodeActivationStrategy.php", "language": "php", "file_size": 2250, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine;\n\nuse Doctrine\\Common\\EventArgs;\nuse Doctrine\\Common\\EventManager;\nuse Doctrine\\Common\\EventSubscriber;\nuse Psr\\Container\\ContainerInterface;\n\n/**\n * Allows lazy loading of listener and subscriber services.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass ContainerAwareEventManager extends EventManager\n{\n private array $initialized = [];\n private bool $initializedSubscribers = false;\n private array $initializedHas", "suffix": "$container,\n private array $listeners = [],\n ) {\n }\n\n public function dispatchEvent(string $eventName, ?EventArgs $eventArgs = null): void\n {\n if (!$this->initializedSubscribers) {\n $this->initializeSubscribers();\n ", "middle": "hMapping = [];\n private array $methods = [];\n\n /**\n * @param list<array{string[], string|object}> $listeners List of [events, listener] tuples\n */\n public function __construct(\n private ContainerInterface ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php", "language": "php", "file_size": 6615, "cut_index": 716, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\IdGenerator;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\Id\\AbstractIdGenerator;\nuse Symfony\\Component\\Uid\\Factory\\UlidFactory;\nuse Symfony\\Component\\Uid\\Ulid;\n\nfinal class UlidGenerator extends AbstractIdGenerator\n{\n public function __construct(", "suffix": "te readonly ?UlidFactory $factory = null,\n ) {\n }\n\n public function generateId(EntityManagerInterface $em, $entity): Ulid\n {\n if ($this->factory) {\n return $this->factory->create();\n }\n\n return new Ulid();\n }\n", "middle": "\n priva", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/IdGenerator/UlidGenerator.php", "language": "php", "file_size": 808, "cut_index": 536, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\IdGenerator;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\Id\\AbstractIdGenerator;\nuse Symfony\\Component\\Uid\\Factory\\NameBasedUuidFactory;\nuse Symfony\\Component\\Uid\\Factory\\RandomBasedUuidFactory;\nuse Symfony\\Component\\Uid\\Factory\\TimeBasedUuidFactory;\nuse Symfony\\Component\\Uid", "suffix": "meBasedUuidFactory $factory;\n private ?string $entityGetter = null;\n\n public function __construct(?UuidFactory $factory = null)\n {\n $this->protoFactory = $this->factory = $factory ?? new UuidFactory();\n }\n\n public function generateId(", "middle": "\\Factory\\UuidFactory;\nuse Symfony\\Component\\Uid\\Uuid;\n\nfinal class UuidGenerator extends AbstractIdGenerator\n{\n private readonly UuidFactory $protoFactory;\n private UuidFactory|NameBasedUuidFactory|RandomBasedUuidFactory|Ti", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/IdGenerator/UuidGenerator.php", "language": "php", "file_size": 2164, "cut_index": 563, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests;\n\nuse Monolog\\Level;\nuse Monolog\\Logger;\nuse Monolog\\LogRecord;\n\nclass RecordFactory\n{\n public static function create(int|string|Level $level = 'warning', string|\\Stringable $message = 'test', string $channel = 'test', array $context = [], \\DateTimeImmutable $datetime = new \\Dat", "suffix": "{\n return new LogRecord(\n message: (string) $message,\n context: $context,\n level: Logger::toMonologLevel($level),\n channel: $channel,\n datetime: $datetime,\n extra: $extra,\n );\n", "middle": "eTimeImmutable(), array $extra = []): LogRecord\n ", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/RecordFactory.php", "language": "php", "file_size": 875, "cut_index": 559, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Processor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Processor\\ConsoleCommandProcessor;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Event\\ConsoleEvent;\nuse Symfony\\Component\\Console\\Input", "suffix": "n'];\n private const TEST_NAME = 'some:test';\n\n public function testProcessor()\n {\n $processor = new ConsoleCommandProcessor();\n $processor->addCommandData($this->getConsoleEvent());\n\n $record = $processor(RecordFactory::create", "middle": "\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\n\nclass ConsoleCommandProcessorTest extends TestCase\n{\n private const TEST_ARGUMENTS = ['test' => 'argument'];\n private const TEST_OPTIONS = ['test' => 'optio", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Processor/ConsoleCommandProcessorTest.php", "language": "php", "file_size": 2411, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Processor;\n\nuse Monolog\\LogRecord;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Processor\\RouteProcessor;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nclass RouteProcessorTest extends TestCase\n{\n private co", "suffix": "t = $this->mockFilledRequest();\n $processor = new RouteProcessor();\n $processor->addRouteData($this->getRequestEvent($request));\n\n $record = $processor($this->createRecord());\n\n $this->assertArrayHasKey('requests', $record['extr", "middle": "nst TEST_CONTROLLER = 'App\\Controller\\SomeController::someMethod';\n private const TEST_ROUTE = 'someRouteName';\n private const TEST_PARAMS = ['param1' => 'value1'];\n\n public function testProcessor()\n {\n $reques", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Processor/RouteProcessorTest.php", "language": "php", "file_size": 5806, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Processor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Processor\\SwitchUserTokenProcessor;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Secu", "suffix": "\n * @author Igor Timoshenko <igor.timoshenko@i.ua>\n */\nclass SwitchUserTokenProcessorTest extends TestCase\n{\n public function testProcessor()\n {\n $originalToken = new UsernamePasswordToken(new InMemoryUser('original_user', 'password', ['ROLE_S", "middle": "rity\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\n/**\n * Tests the SwitchUserTokenProcessor.\n *", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Processor/SwitchUserTokenProcessorTest.php", "language": "php", "file_size": 1759, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Handler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Handler\\ChromePhpHandler;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEve", "suffix": " $request = Request::create('/');\n $request->headers->remove('User-Agent');\n\n $response = new Response('foo');\n $event = new ResponseEvent($this->createStub(HttpKernelInterface::class), $request, HttpKernelInterface::MAIN_REQUES", "middle": "nt;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nclass ChromePhpHandlerTest extends TestCase\n{\n public function testOnKernelResponseShouldNotTriggerDeprecation()\n {\n $this->expectNotToPerformAssertions();\n\n", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Handler/ChromePhpHandlerTest.php", "language": "php", "file_size": 1113, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Handler;\n\nuse Monolog\\Formatter\\FormatterInterface;\nuse Monolog\\Formatter\\LogstashFormatter;\nuse Monolog\\Level;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Handler\\ElasticsearchLogstashHandler;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\n\nclass ElasticsearchLogstashHandlerTest extends TestCase\n{\n public functio", "suffix": " {\"@timestamp\":\"2020-01-01T00:00:00.000000+01:00\",\"@version\":1,\"host\":\"my hostname\",\"message\":\"My info message\",\"type\":\"application\",\"channel\":\"app\",\"level\":\"INFO\",\"monolog_level\":200}\n\n\n EOBODY;\n\n // Monolog 1X\n if (\\", "middle": "n testHandle()\n {\n $callCount = 0;\n $responseFactory = function ($method, $url, $options) use (&$callCount) {\n $body = <<<EOBODY\n {\"index\":{\"_index\":\"log\",\"_type\":\"_doc\"}}\n ", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Handler/ElasticsearchLogstashHandlerTest.php", "language": "php", "file_size": 5961, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Handler;\n\nuse Monolog\\Logger;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Handler\\FirePHPHandler;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\", "suffix": "new Logger('my_logger', [$handler]);\n\n $logger->warning('This does not look right.');\n\n $request = new Request();\n $request->headers->set('User-Agent', 'Mozilla/5.0 (FirePHP/1.0)');\n\n $response = $this->dispatchResponseEvent($ha", "middle": "HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\nclass FirePHPHandlerTest extends TestCase\n{\n public function testLogHandling()\n {\n $handler = $this->createHandler();\n $logger = ", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Handler/FirePHPHandlerTest.php", "language": "php", "file_size": 4728, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Formatter;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Formatter\\ConsoleFormatter;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\VarDumper\\Cloner\\VarCloner;\n\nclass ConsoleFormatterTest extends TestCase\n{\n ", "suffix": "<fg=cyan>WARNING </> <comment>[test]</> test\\n\", $formatter->format($record));\n }\n\n public function testPlaceholderInMessageWithDataContext()\n {\n $formatter = new ConsoleFormatter(['colors' => false]);\n\n // LogRecord::$context must ", "middle": " public function testFormat()\n {\n $record = RecordFactory::create(datetime: new \\DateTimeImmutable('2013-01-13 12:34:56 Europe/Berlin'));\n $formatter = new ConsoleFormatter();\n\n self::assertSame(\"12:34:56 ", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Formatter/ConsoleFormatterTest.php", "language": "php", "file_size": 1293, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Handler;\n\nuse Monolog\\Formatter\\FormatterInterface;\nuse Monolog\\Formatter\\LogstashFormatter;\nuse Monolog\\Handler\\AbstractHandler;\nuse Monolog\\Handler\\FormattableHandlerTrait;\nuse Monolog\\Handler\\ProcessableHandlerTrait;\nuse Monolog\\Level;\nuse Monolog\\LogRecord;\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Contracts\\HttpClient\\Exception\\ExceptionInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\nuse Symfony\\Contracts", "suffix": "w down your application if Elasticsearch takes times to\n * answer. Even if all HTTP calls are done asynchronously.\n *\n * In a development environment, it's fine to keep the default configuration:\n * for each log, an HTTP request will be made to push the lo", "middle": "\\HttpClient\\ResponseInterface;\n\n/**\n * Push logs directly to Elasticsearch and format them according to Logstash specification.\n *\n * This handler dials directly with the HTTP interface of Elasticsearch. This\n * means it will slo", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Handler/ElasticsearchLogstashHandler.php", "language": "php", "file_size": 5480, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Formatter;\n\nuse Monolog\\Formatter\\FormatterInterface;\nuse Monolog\\LogRecord;\nuse Symfony\\Component\\VarDumper\\Cloner\\VarCloner;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nfinal class VarDumperFormatter implements FormatterInterface\n{\n", "suffix": "d = $record->toArray();\n\n $record['context'] = $this->cloner->cloneVar($record['context']);\n $record['extra'] = $this->cloner->cloneVar($record['extra']);\n\n return $record;\n }\n\n public function formatBatch(array $records): mixed\n", "middle": " private VarCloner $cloner;\n\n public function __construct(?VarCloner $cloner = null)\n {\n $this->cloner = $cloner ?? new VarCloner();\n }\n\n public function format(LogRecord $record): mixed\n {\n $recor", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Formatter/VarDumperFormatter.php", "language": "php", "file_size": 1150, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog;\n\nuse Monolog\\Level;\nuse Monolog\\LogRecord;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Processor\\DebugProcessor;\nuse Symfony\\Bridge\\Monolog\\Tests\\Processor\\ClassThatInheritDebugProcessor;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestS", "suffix": "bugProcessor();\n $processor($record);\n\n $records = $processor->getLogs();\n self::assertCount(1, $records);\n self::assertSame(1546300860, $records[0]['timestamp']);\n }\n\n public function testDatetimeRfc3339Format()\n {\n ", "middle": "tack;\n\nclass DebugProcessorTest extends TestCase\n{\n public function testDatetimeFormat()\n {\n $record = RecordFactory::create(datetime: new \\DateTimeImmutable('2019-01-01T00:01:00+00:00'));\n $processor = new De", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Processor/DebugProcessorTest.php", "language": "php", "file_size": 3452, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Processor;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Processor\\TokenProcessor;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Stora", "suffix": "aillard93b@gmail.com>\n */\nclass TokenProcessorTest extends TestCase\n{\n public function testProcessor()\n {\n $token = new UsernamePasswordToken(new InMemoryUser('user', 'password', ['ROLE_USER']), 'provider', ['ROLE_USER']);\n $tokenStorag", "middle": "ge\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\n\n/**\n * Tests the TokenProcessor.\n *\n * @author Dany Maillard <danym", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Processor/TokenProcessorTest.php", "language": "php", "file_size": 2631, "cut_index": 563, "middle_length": 229}} {"prefix": " PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Formatter\\ConsoleFormatter;\nuse Symfony\\Bridge\\Monolog\\Handler\\ConsoleHandler;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleCommandEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component", "suffix": "he ConsoleFormatter.\n *\n * @author Tobias Schultze <http://tobion.de>\n */\nclass ConsoleHandlerTest extends TestCase\n{\n public function testConstructor()\n {\n $handler = new ConsoleHandler(null, false);\n $this->assertFalse($handler->getBu", "middle": "\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\Console\\Output\\Output;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\n\n/**\n * Tests the ConsoleHandler and also t", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Handler/ConsoleHandlerTest.php", "language": "php", "file_size": 14666, "cut_index": 921, "middle_length": 229}} {"prefix": "PUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Handler\\MailerHandler;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Mime\\Email;\n\nclass MailerHandlerTest extends TestCase\n{\n private MockObject&MailerInterface $mailer;\n\n protected function setUp(): void\n {\n $this->mailer = $this->createMock(MailerInterface::class);\n }\n\n public function testHandle()\n {\n $handl", "suffix": "'send')\n ->with($this->callback(static fn (Email $email) => 'Alert: WARNING message' === $email->getSubject() && null === $email->getHtmlBody()))\n ;\n $handler->handle($this->getRecord(Level::Warning, 'message'));\n }\n\n public ", "middle": "er = new MailerHandler($this->mailer, (new Email())->subject('Alert: %level_name% %message%'));\n $handler->setFormatter(new LineFormatter());\n $this->mailer\n ->expects($this->once())\n ->method(", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Handler/MailerHandlerTest.php", "language": "php", "file_size": 9279, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Handler;\n\nuse Monolog\\Handler\\FirePHPHandler as BaseFirePHPHandler;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\n\n/**\n * FirePHPHandler.\n *\n * @author Jordi Boggiano <j.boggiano@seld.be>\n *\n * @final\n */\nclass ", "suffix": "(ResponseEvent $event): void\n {\n if (!$event->isMainRequest()) {\n return;\n }\n\n $request = $event->getRequest();\n if (!preg_match('{\\bFirePHP/\\d+\\.\\d+\\b}', $request->headers->get('User-Agent', ''))\n && !$", "middle": "FirePHPHandler extends BaseFirePHPHandler\n{\n private array $headers = [];\n private ?Response $response = null;\n\n /**\n * Adds the headers to the response once it's created.\n */\n public function onKernelResponse", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php", "language": "php", "file_size": 1885, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Handler;\n\nuse Monolog\\Handler\\AbstractHandler;\nuse Monolog\\Level;\nuse Monolog\\Logger;\nuse Monolog\\LogRecord;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\NotifierInterface;\n\n/**\n * Uses Notifier as a log handler.\n *\n * @author Fabien Potencier <fab", "suffix": "\n ) {\n parent::__construct(Logger::toMonologLevel($level)->isLowerThan(Level::Error) ? Level::Error : $level, $bubble);\n }\n\n public function handle(LogRecord $record): bool\n {\n if (!$this->isHandling($record)) {\n return", "middle": "ien@symfony.com>\n */\nfinal class NotifierHandler extends AbstractHandler\n{\n public function __construct(\n private NotifierInterface $notifier,\n string|int|Level $level = Level::Error,\n bool $bubble = true,", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Handler/NotifierHandler.php", "language": "php", "file_size": 2218, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine;\n\nuse Doctrine\\Persistence\\AbstractManagerRegistry;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\VarExporter\\LazyObjectInterface;\n\n/**\n * References Doctrine connections and entity/document managers.\n *\n * @author Lukas Kahwe Smith <smith@pooteeweet.org>\n */\nab", "suffix": " resetService($name): void\n {\n if (!$this->container->initialized($name)) {\n return;\n }\n $manager = $this->container->get($name);\n\n if ($manager instanceof LazyObjectInterface) {\n if (!$manager->resetLaz", "middle": "stract class ManagerRegistry extends AbstractManagerRegistry\n{\n protected Container $container;\n\n protected function getService($name): object\n {\n return $this->container->get($name);\n }\n\n protected function", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/ManagerRegistry.php", "language": "php", "file_size": 2856, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Command;\n\nuse Monolog\\Formatter\\FormatterInterface;\nuse Monolog\\Handler\\HandlerInterface;\nuse Monolog\\Level;\nuse Monolog\\LogRecord;\nuse Symfony\\Bridge\\Monolog\\Formatter\\ConsoleFormatter;\nuse Symfony\\Bridge\\Monolog\\Handler\\ConsoleHandler;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Exception\\RuntimeExcept", "suffix": "ony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Cloner\\Stub;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\n#[AsCommand(name: 'server:log', description: 'Start a log server that displays logs in real time')]\nclass ServerLogCo", "middle": "ion;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symf", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php", "language": "php", "file_size": 6536, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Handler;\n\nuse Monolog\\Formatter\\JsonFormatter;\nuse Monolog\\Level;\nuse Monolog\\Processor\\ProcessIdProcessor;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Formatter\\VarDumperFormatter;\nuse Symfony\\Bridge\\Monolog\\Handler\\ServerLogHandler;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\VarDumper\\Cloner\\", "suffix": ".0.0.1:9999');\n $this->assertInstanceOf(VarDumperFormatter::class, $handler->getFormatter());\n\n $formatter = new JsonFormatter();\n $handler->setFormatter($formatter);\n $this->assertSame($formatter, $handler->getFormatter());\n ", "middle": "Data;\nuse Symfony\\Component\\VarDumper\\Cloner\\Stub;\n\n/**\n * Tests the ServerLogHandler.\n */\nclass ServerLogHandlerTest extends TestCase\n{\n public function testFormatter()\n {\n $handler = new ServerLogHandler('tcp://127", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Handler/ServerLogHandlerTest.php", "language": "php", "file_size": 4293, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Formatter;\n\nuse Monolog\\Formatter\\FormatterInterface;\nuse Monolog\\Level;\nuse Monolog\\LogRecord;\nuse Symfony\\Component\\Console\\Formatter\\OutputFormatter;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Cloner\\Stub;\nuse Symfony\\Component\\VarDumper\\Cloner\\VarCloner;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper;\n\n/**\n * Formats incoming records for console output by coloring them depending on log level.\n *\n * @au", "suffix": "% <comment>[%channel%]</> %message%%context%%extra%\\n\";\n public const SIMPLE_DATE = 'H:i:s';\n\n private const LEVEL_COLOR_MAP = [\n Level::Debug->value => 'fg=white',\n Level::Info->value => 'fg=green',\n Level::Notice->value => 'fg=", "middle": "thor Tobias Schultze <http://tobion.de>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nfinal class ConsoleFormatter implements FormatterInterface\n{\n public const SIMPLE_FORMAT = \"%datetime% %start_tag%%level_name%%end_tag", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php", "language": "php", "file_size": 6430, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Processor;\n\nuse Monolog\\Processor\\WebProcessor as BaseWebProcessor;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * WebProcessor ", "suffix": "uct(?array $extraFields = null)\n {\n // Pass an empty array as the default null value would access $_SERVER\n parent::__construct([], $extraFields);\n }\n\n public function onKernelRequest(RequestEvent $event): void\n {\n if ($eve", "middle": "override to read from the HttpFoundation's Request.\n *\n * @author Jordi Boggiano <j.boggiano@seld.be>\n *\n * @final\n */\nclass WebProcessor extends BaseWebProcessor implements EventSubscriberInterface\n{\n public function __constr", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Processor/WebProcessor.php", "language": "php", "file_size": 1364, "cut_index": 524, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Validator;\n\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Symfony\\Component\\Validator\\ObjectInitializerInterface;\n\n/**\n * Automatically loads proxy object before validation.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass DoctrineInitia", "suffix": "ts ObjectInitializerInterface\n{\n public function __construct(\n protected ManagerRegistry $registry,\n ) {\n }\n\n public function initialize(object $object): void\n {\n $this->registry->getManagerForClass($object::class)?->initialize", "middle": "lizer implemen", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Validator/DoctrineInitializer.php", "language": "php", "file_size": 817, "cut_index": 522, "middle_length": 14}} {"prefix": "pository;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\DoctrineChoiceLoader;\nuse Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\EntityLoaderInterface;\nuse Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\IdReader;\nuse Symfony\\Component\\Form\\ChoiceList\\ArrayChoiceList;\nuse Symfony\\Component\\Form\\Exception\\LogicException;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass DoctrineChoiceLoaderTest extends TestCase\n{\n private ObjectManager $om;\n private ObjectRepository $repo", "suffix": "tUp(): void\n {\n $this->om = $this->createStub(ObjectManager::class);\n $this->repository = $this->createMock(ObjectRepository::class);\n $this->class = 'stdClass';\n $this->idReader = $this->createStub(IdReader::class);\n ", "middle": "sitory;\n private string $class;\n private IdReader $idReader;\n private EntityLoaderInterface $objectLoader;\n private \\stdClass $obj1;\n private \\stdClass $obj2;\n private \\stdClass $obj3;\n\n protected function se", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/DoctrineChoiceLoaderTest.php", "language": "php", "file_size": 12001, "cut_index": 921, "middle_length": 229}} {"prefix": "e\\ORM\\AbstractQuery;\nuse Doctrine\\ORM\\Query;\nuse Doctrine\\ORM\\QueryBuilder;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\ORMQueryBuilderLoader;\nuse Symfony\\Bridge\\Doctrine\\Tests\\DoctrineTestHelper;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\CustomUuidIdType;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\EmbeddedIdentifierEntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\LegacyQueryMock;\nu", "suffix": "ponent\\Form\\Exception\\TransformationFailedException;\nuse Symfony\\Component\\Uid\\Uuid;\n\nclass ORMQueryBuilderLoaderTest extends TestCase\n{\n protected function tearDown(): void\n {\n if (Type::hasType('uuid')) {\n Type::overrideType('uuid", "middle": "se Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\SingleIntIdEntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\SingleStringIdEntity;\nuse Symfony\\Bridge\\Doctrine\\Types\\UlidType;\nuse Symfony\\Bridge\\Doctrine\\Types\\UuidType;\nuse Symfony\\Com", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php", "language": "php", "file_size": 9366, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Form\\Type;\n\nuse Doctrine\\ORM\\EntityManager;\nuse Doctrine\\ORM\\Tools\\SchemaTool;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse Symfony\\Bridge\\Doctrine\\Form\\DoctrineOrmExtension;\nuse Symfony\\Bridge\\Doctrine\\Tests\\DoctrineTestHelper;\nuse Symfony\\B", "suffix": "reDeprecations]\n#[Group('doctrine-dbal-workaround')]\nclass EntityTypePerformanceTest extends FormPerformanceTestCase\n{\n private const ENTITY_CLASS = SingleIntIdEntity::class;\n\n private EntityManager $em;\n\n protected function getExtensions(): array", "middle": "ridge\\Doctrine\\Tests\\Fixtures\\SingleIntIdEntity;\nuse Symfony\\Component\\Form\\Extension\\Core\\CoreExtension;\nuse Symfony\\Component\\Form\\Test\\FormPerformanceTestCase;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\n#[Igno", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php", "language": "php", "file_size": 3879, "cut_index": 614, "middle_length": 229}} {"prefix": ":hasType('uuid')) {\n Type::overrideType('uuid', UuidType::class);\n } else {\n Type::addType('uuid', UuidType::class);\n }\n if (!Type::hasType('ulid')) {\n Type::addType('ulid', UlidType::class);\n }\n\n $this->em = DoctrineTestHelper::createTestEntityManager();\n $this->emRegistry = $this->createRegistryMock($this->em);\n\n parent::setUp();\n\n $schemaTool = new SchemaTool($this->em);\n $classes = [\n $this->em->ge", "suffix": "lf::SINGLE_STRING_IDENT_CLASS),\n $this->em->getClassMetadata(self::SINGLE_ASSOC_IDENT_CLASS),\n $this->em->getClassMetadata(self::SINGLE_STRING_CASTABLE_IDENT_CLASS),\n $this->em->getClassMetadata(self::COMPOSITE_IDENT_CLASS)", "middle": "tClassMetadata(self::ITEM_GROUP_CLASS),\n $this->em->getClassMetadata(self::SINGLE_IDENT_CLASS),\n $this->em->getClassMetadata(self::SINGLE_IDENT_NO_TO_STRING_CLASS),\n $this->em->getClassMetadata(se", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php", "language": "php", "file_size": 73406, "cut_index": 3790, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Form\\EventListener;\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Form\\EventListener\\MergeDoctrineCollectionListener;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Form\\FormBuilder;\nuse Symf", "suffix": "ate EventDispatcher $dispatcher;\n private FormFactoryInterface $factory;\n\n protected function setUp(): void\n {\n $this->collection = new ArrayCollection(['test']);\n $this->dispatcher = new EventDispatcher();\n $this->factory = $", "middle": "ony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\n\nclass MergeDoctrineCollectionListenerTest extends TestCase\n{\n private ArrayCollection $collection;\n priv", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Form/EventListener/MergeDoctrineCollectionListenerTest.php", "language": "php", "file_size": 2085, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Form\\DataTransformer;\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\nuse Doctrine\\Common\\Collections\\ReadableCollection;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Form\\DataTransformer\\CollectionToArrayTransformer;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailedException;\n\n/**\n * @author Bernhard Schussek", "suffix": "ArrayTransformer();\n }\n\n public function testTransform()\n {\n $array = [\n 2 => 'foo',\n 3 => 'bar',\n ];\n\n $this->assertSame($array, $this->transformer->transform(new ArrayCollection($array)));\n }\n\n /*", "middle": " <bschussek@gmail.com>\n */\nclass CollectionToArrayTransformerTest extends TestCase\n{\n private CollectionToArrayTransformer $transformer;\n\n protected function setUp(): void\n {\n $this->transformer = new CollectionTo", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php", "language": "php", "file_size": 4860, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo;\n\nuse Doctrine\\Common\\Collections\\Collection;\nuse Doctrine\\Common\\EventManager;\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Types\\Type as DBALType;\nuse Doctrine\\ORM\\EntityManager;\nuse Doctrine\\ORM\\Mapping\\Driver\\AttributeDriver;\nuse Doctrine\\ORM\\ORMSetup;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\P", "suffix": "ures\\DoctrineEnum;\nuse Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures\\DoctrineGeneratedValue;\nuse Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures\\DoctrineRelation;\nuse Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures\\DoctrineWithEmbedded;\nuse S", "middle": "ropertyInfo\\DoctrineExtractor;\nuse Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures\\DoctrineDummy;\nuse Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures\\DoctrineEmbeddable;\nuse Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixt", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php", "language": "php", "file_size": 7470, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\Id;\nuse Doctrine\\ORM\\Mapping\\ManyToMany;\nuse Doctrine\\ORM\\Mapping\\ManyToOne;\nuse Doctrine\\ORM\\Mapping\\OneToMany;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\n#[E", "suffix": "\n\n #[ManyToMany(targetEntity: DoctrineRelation::class, indexBy: 'rguid')]\n protected $indexedRguid;\n\n #[ManyToMany(targetEntity: DoctrineRelation::class, indexBy: 'rguid_column')]\n protected $indexedBar;\n\n #[OneToMany(targetEntity: DoctrineR", "middle": "ntity]\nclass DoctrineDummy\n{\n #[Id, Column(type: 'smallint')]\n public $id;\n\n #[ManyToOne(targetEntity: DoctrineRelation::class)]\n public $foo;\n\n #[ManyToMany(targetEntity: DoctrineRelation::class)]\n public $bar;", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/Fixtures/DoctrineDummy.php", "language": "php", "file_size": 2526, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\Id;\n\n#[Entity]\nclass DoctrineEnum\n{\n #[Id, Column(type: 'smallint')]\n public $id;\n\n #[Column(type: 'string', enumType: EnumString::class)]\n protected $enumString;\n\n #[Column(type: 'integer', enumTyp", "suffix": "olumn(type: 'array', enumType: EnumString::class)]\n protected $enumStringArray;\n\n #[Column(type: 'simple_array', enumType: EnumInt::class)]\n protected $enumIntArray;\n\n #[Column(type: 'custom_foo', enumType: EnumInt::class)]\n protected $enumC", "middle": "e: EnumInt::class)]\n protected $enumInt;\n\n #[C", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/Fixtures/DoctrineEnum.php", "language": "php", "file_size": 923, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Types\\ConversionException;\nuse Doctrine\\DBAL\\Types\\Type;\n\n/**\n * @author Teoh Han Hui <teohhanhui@gmail.com>\n */\nclass DoctrineFooType extends Type\n{\n private const NAM", "suffix": "ypeDeclarationSQL([]);\n }\n\n public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string\n {\n if (null === $value) {\n return null;\n }\n if (!$value instanceof Foo) {\n throw new Conver", "middle": "E = 'foo';\n\n public function getName(): string\n {\n return self::NAME;\n }\n\n public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string\n {\n return $platform->getClobT", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/Fixtures/DoctrineFooType.php", "language": "php", "file_size": 1672, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\GeneratedValue;\nuse Doctrine\\ORM\\Mapping\\Id;\nuse Doctrine\\ORM\\Mapping\\OneToMany;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\n#[Entity]\nclass DoctrineGeneratedValue\n{\n #[Id, GeneratedValue(strategy: 'A", "suffix": " #[Column]\n public $foo;\n\n #[Column(type: 'integer', name: 'gen_value_col_id')]\n public $valueId;\n\n #[OneToMany(targetEntity: DoctrineRelation::class, mappedBy: 'generatedValueRelation', indexBy: 'rguid_column', orphanRemoval: true)]\n protec", "middle": "UTO'), Column(type: 'integer')]\n public $id;\n\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/Fixtures/DoctrineGeneratedValue.php", "language": "php", "file_size": 936, "cut_index": 606, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\PropertyInfo\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\Id;\nuse Doctrine\\ORM\\Mapping\\JoinColumn;\nuse Doctrine\\ORM\\Mapping\\ManyToOne;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\n", "suffix": "mmy::class, inversedBy: 'indexedFoo')]\n protected $foo;\n\n #[ManyToOne(targetEntity: DoctrineDummy::class)]\n protected $baz;\n\n #[Column(type: 'datetime')]\n private $dt;\n\n #[Column(type: 'foo')]\n private $customType;\n\n #[Column(type: ", "middle": "#[Entity]\nclass DoctrineRelation\n{\n #[Id, Column(type: 'smallint')]\n public $id;\n\n #[Column(type: 'guid', name: 'rguid_column')]\n protected $rguid;\n\n #[Column(type: 'guid')]\n #[ManyToOne(targetEntity: DoctrineDu", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/Fixtures/DoctrineRelation.php", "language": "php", "file_size": 1490, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Middleware\\IdleConnection;\n\nuse Doctrine\\DBAL\\Driver as DriverInterface;\nuse Doctrine\\DBAL\\Driver\\Connection as ConnectionInterface;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Middleware\\Id", "suffix": "eateStub(ConnectionInterface::class);\n\n $driverMock->expects($this->once())\n ->method('connect')\n ->willReturn($connectionMock);\n\n $connectionExpiries = new \\ArrayObject();\n\n $driver = new Driver($driverMock, $con", "middle": "leConnection\\Driver;\n\nclass DriverTest extends TestCase\n{\n #[Group('time-sensitive')]\n public function testConnect()\n {\n $driverMock = $this->createMock(DriverInterface::class);\n $connectionMock = $this->cr", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Middleware/IdleConnection/DriverTest.php", "language": "php", "file_size": 1290, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Middleware\\IdleConnection;\n\nuse Doctrine\\DBAL\\Connection as ConnectionInterface;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpFou", "suffix": "nExpiries = new \\ArrayObject(['connectionone' => time() - 30, 'connectiontwo' => time() + 40]);\n\n $connectionOneMock = $this->createStub(ConnectionInterface::class);\n\n $container = new Container();\n $container->set('doctrine.dbal.conne", "middle": "ndation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\nclass ListenerTest extends TestCase\n{\n public function testOnKernelRequest()\n {\n $connectio", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Middleware/IdleConnection/ListenerTest.php", "language": "php", "file_size": 1950, "cut_index": 537, "middle_length": 229}} {"prefix": "L\\Result;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\DBAL\\Statement;\nuse Doctrine\\DBAL\\Types\\Types;\nuse Doctrine\\ORM\\ORMSetup;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Middleware\\Debug\\DebugDataHolder;\nuse Symfony\\Bridge\\Doctrine\\Middleware\\Debug\\Middleware;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n#[RequiresPhpExtension('pd", "suffix": "hClockMock(false);\n }\n\n private function init(bool $withStopwatch = true): void\n {\n $this->stopwatch = $withStopwatch ? new Stopwatch() : null;\n\n $config = ORMSetup::createConfiguration(true);\n $config->setSchemaManagerFactory", "middle": "o_sqlite')]\nclass MiddlewareTest extends TestCase\n{\n private DebugDataHolder $debugDataHolder;\n private Connection $conn;\n private ?Stopwatch $stopwatch;\n\n protected function setUp(): void\n {\n ClockMock::wit", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Middleware/Debug/MiddlewareTest.php", "language": "php", "file_size": 10256, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace SchemaListener;\n\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\DriverManager;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\SchemaListener\\AbstractSchemaListener;\n\n#[RequiresPhpExtension('pdo_sqlite')]\nclass AbstractSc", "suffix": "inct in-memory SQLite databases\n $connection1 = DriverManager::getConnection($connectionParams);\n $connection2 = DriverManager::getConnection($connectionParams);\n\n self::assertTrue($this->getIsSameDatabaseChecker($connection1)($connect", "middle": "hemaListenerTest extends TestCase\n{\n public function testSameDatabaseChecker()\n {\n $connectionParams = [\n 'dbname' => ':memory:',\n 'driver' => 'pdo_sqlite',\n ];\n // Create two dist", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/SchemaListener/AbstractSchemaListenerTest.php", "language": "php", "file_size": 1871, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\SchemaListener;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\SchemaListener\\DoctrineDbalCacheAdap", "suffix": " $dbalConnection = $this->createStub(Connection::class);\n $dbalConnection->method('getConfiguration')->willReturn(new Configuration());\n $entityManager = $this->createMock(EntityManagerInterface::class);\n $entityManager->expects(", "middle": "terSchemaListener;\nuse Symfony\\Component\\Cache\\Adapter\\DoctrineDbalAdapter;\n\nclass DoctrineDbalCacheAdapterSchemaListenerTest extends TestCase\n{\n public function testPostGenerateSchema()\n {\n $schema = new Schema();\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/SchemaListener/DoctrineDbalCacheAdapterSchemaListenerTest.php", "language": "php", "file_size": 3104, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\SchemaListener;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\B", "suffix": "chema = new Schema();\n $dbalConnection = $this->createStub(Connection::class);\n $dbalConnection->method('getConfiguration')->willReturn(new Configuration());\n $entityManager = $this->createMock(EntityManagerInterface::class);\n $", "middle": "ridge\\Doctrine\\SchemaListener\\LockStoreSchemaListener;\nuse Symfony\\Component\\Lock\\Store\\DoctrineDbalStore;\n\nclass LockStoreSchemaListenerTest extends TestCase\n{\n public function testPostGenerateSchemaLockPdo()\n {\n $s", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/SchemaListener/LockStoreSchemaListenerTest.php", "language": "php", "file_size": 2993, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\DiscriminatorColumn;\nuse Doctrine\\ORM\\Mapping\\DiscriminatorMap;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\Id;\nuse Doctrine\\ORM\\Mapping\\InheritanceType;\n\n#[Entity, InheritanceType('SINGLE_TABLE'), DiscriminatorColumn(name: 'discr', type: 'strin", "suffix": "ee' => 'Employee'])]\nclass Person\n{\n public function __construct(\n #[Id, Column]\n protected int $id,\n\n #[Column]\n public string $name,\n ) {\n }\n\n public function __toString(): string\n {\n return $this->name;\n", "middle": "g'), DiscriminatorMap(['person' => 'Person', 'employ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/Person.php", "language": "php", "file_size": 922, "cut_index": 606, "middle_length": 52}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Doctrine\\DBAL\\Types\\Types;\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\Id;\n\n#[Entity(repositoryClass: SingleIntIdEntityRepository::class)]\nclass SingleIntIdEntity\n{\n #[Column(type: Types::JSON, nullable: true)]\n p", "suffix": " __construct(\n #[Id, Column(type: 'integer')]\n protected int $id,\n\n #[Column(type: 'string', nullable: true)]\n public ?string $name,\n ) {\n }\n\n public function __toString(): string\n {\n return (string) $this->na", "middle": "ublic mixed $phoneNumbers = [];\n\n public function", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/SingleIntIdEntity.php", "language": "php", "file_size": 879, "cut_index": 559, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\GeneratedValue;\nuse Doctrine\\ORM\\Mapping\\Id;\n\n#[Entity]\nclass SingleStringCastableIdEntity\n{\n #[Id, Column(type: 'string'), Generate", "suffix": "astableObjectIdentity($id);\n }\n\n public function __toString(): string\n {\n return (string) $this->name;\n }\n}\n\nclass StringCastableObjectIdentity\n{\n public function __construct(\n protected readonly int $id,\n ) {\n }\n\n pub", "middle": "dValue(strategy: 'NONE')]\n protected StringCastableObjectIdentity $id;\n\n public function __construct(\n int $id,\n\n #[Column(nullable: true)]\n public ?string $name,\n ) {\n $this->id = new StringC", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/SingleStringCastableIdEntity.php", "language": "php", "file_size": 1083, "cut_index": 515, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nclass UpdateCompositeObjectNoToStringIdEntity\n{\n /**\n * @var SingleIntIdNoToStringEntity\n */\n protected $object1;\n\n /**\n * @var SingleIntIdNoToStringEntity\n */\n protected $object2;\n\n public $name;\n\n public function __construct(SingleIntIdNoToStringEntity $obj", "suffix": " {\n $this->object1 = $object1;\n $this->object2 = $object2;\n $this->name = $name;\n }\n\n public function getObject1(): SingleIntIdNoToStringEntity\n {\n return $this->object1;\n }\n\n public function getObject2(): Singl", "middle": "ect1, SingleIntIdNoToStringEntity $object2, $name)\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/UpdateCompositeObjectNoToStringIdEntity.php", "language": "php", "file_size": 958, "cut_index": 582, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Form;\n\nuse Doctrine\\DBAL\\Types\\Types;\nuse Doctrine\\ORM\\Mapping\\ClassMetadata;\nuse Doctrine\\ORM\\Mapping\\JoinColumnMapping;\nuse Doctrine\\ORM\\Mapping\\ManyToOneAssociationMapping;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Doctrine\\Persistence\\ObjectManager;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Form\\DoctrineOrmTypeGuesser;\nuse Symfony\\Component\\Form\\Guess\\Guess;\nuse ", "suffix": "cted)\n {\n $classMetadata = $this->createMock(ClassMetadata::class);\n $classMetadata->fieldMappings['field'] = true;\n $classMetadata->expects($this->once())->method('getTypeOfField')->with('field')->willReturn($type);\n\n $this-", "middle": "Symfony\\Component\\Form\\Guess\\TypeGuess;\nuse Symfony\\Component\\Form\\Guess\\ValueGuess;\n\nclass DoctrineOrmTypeGuesserTest extends TestCase\n{\n #[DataProvider('requiredType')]\n public function testTypeGuesser(string $type, $expe", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php", "language": "php", "file_size": 6185, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Validator;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\Mapping\\ClassMetadata as OrmClassMetadata;\nuse Doctrine\\ORM\\Mapping\\FieldMapping;\nuse Doctrine\\ORM\\Mapping\\MappingException as OrmMappingException;\nuse Doctrine\\Persistence\\Mapping\\MappingException;\nuse Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Constraints\\Valid;\nuse Symf", "suffix": "erface;\n\n/**\n * Guesses and loads the appropriate constraints using Doctrine's metadata.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nfinal class DoctrineLoader implements LoaderInterface\n{\n use AutoMappingTrait;\n\n public function __construct(", "middle": "ony\\Component\\Validator\\Mapping\\AutoMappingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AutoMappingTrait;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderInt", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Validator/DoctrineLoader.php", "language": "php", "file_size": 5828, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Attribute\\HasNamedArguments;\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * Constraint for the Unique Entity validator.\n *\n * @author Benjamin Eberlei <kontakt@beberlei.de>\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::IS_REPEATABLE)]\nclass UniqueEntity extends Constrain", "suffix": "y used.';\n public string $service = 'doctrine.orm.validator.unique';\n public ?string $em = null;\n public ?string $entityClass = null;\n public string $repositoryMethod = 'findBy';\n public array|string $fields = [];\n public ?string $errorPa", "middle": "t\n{\n public const NOT_UNIQUE_ERROR = '23bd9dbf-6b9b-41cd-a99e-4844bcf3077f';\n\n protected const ERROR_NAMES = [\n self::NOT_UNIQUE_ERROR => 'NOT_UNIQUE_ERROR',\n ];\n\n public string $message = 'This value is alread", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php", "language": "php", "file_size": 3503, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests;\n\nuse Doctrine\\Common\\EventManager;\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\ORM\\Configuration;\nuse Doctrine\\ORM\\EntityManager;\nuse Doctrine\\ORM\\Mapping\\Driver\\AttributeDriver;\nuse Doctrine\\ORM\\Mapping\\Driver\\XmlDriver;\nuse Do", "suffix": "* @author Bernhard Schussek <bschussek@gmail.com>\n */\nfinal class DoctrineTestHelper\n{\n /**\n * Returns an entity manager for testing.\n */\n public static function createTestEntityManager(?Configuration $config = null): EntityManager\n {\n ", "middle": "ctrine\\ORM\\ORMSetup;\nuse Doctrine\\Persistence\\Mapping\\Driver\\MappingDriverChain;\nuse Doctrine\\Persistence\\Mapping\\Driver\\SymfonyFileLocator;\nuse PHPUnit\\Framework\\TestCase;\n\n/**\n * Provides utility functions needed in tests.\n *\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/DoctrineTestHelper.php", "language": "php", "file_size": 2791, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\EntityRepository;\nuse Doctrine\\ORM\\Repository\\RepositoryFactory;\n\n/**\n * @author Andreas Braun <alcaeus@alcaeus.org>\n */\nfinal class TestRepositoryFactory implements RepositoryFactory\n{\n /**\n ", "suffix": "->getRepositoryHash($entityManager, $entityName);\n\n return $this->repositoryList[$repositoryHash] ??= $this->createRepository($entityManager, $entityName);\n }\n\n public function setRepository(EntityManagerInterface $entityManager, string $entit", "middle": "* @var array<string, EntityRepository>\n */\n private array $repositoryList = [];\n\n public function getRepository(EntityManagerInterface $entityManager, $entityName): EntityRepository\n {\n $repositoryHash = $this", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/TestRepositoryFactory.php", "language": "php", "file_size": 1851, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\IdGenerator;\n\nuse Doctrine\\ORM\\EntityManager;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\IdGenerator\\UlidGenerator;\nuse Symfony\\Component\\Uid\\Factory\\UlidFactory;\nuse Symfony\\Component\\Uid\\Ulid;\n\n", "suffix": " $ulid = $generator->generateId($em, new Entity());\n\n $this->assertInstanceOf(Ulid::class, $ulid);\n $this->assertTrue(Ulid::isValid($ulid));\n }\n\n public function testUlidFactory()\n {\n $ulid = new Ulid('00000000000000000", "middle": "class UlidGeneratorTest extends TestCase\n{\n public function testUlidCanBeGenerated()\n {\n $em = (new \\ReflectionClass(EntityManager::class))->newInstanceWithoutConstructor();\n $generator = new UlidGenerator();\n", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/IdGenerator/UlidGeneratorTest.php", "language": "php", "file_size": 1390, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Types;\n\nuse Doctrine\\DBAL\\Exception;\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Types\\Type;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Types\\DayPointType;\nuse Symfony\\Component\\Clock\\DatePoint;\n\nfinal class DayPointTypeTest extends TestCase\n{\n pri", "suffix": "e {\n Type::addType($name, DayPointType::class);\n }\n }\n\n protected function setUp(): void\n {\n if (!class_exists(DatePoint::class)) {\n self::markTestSkipped('The DatePoint class is not available.');\n }\n ", "middle": "vate DayPointType $type;\n\n public static function setUpBeforeClass(): void\n {\n $name = DayPointType::NAME;\n if (Type::hasType($name)) {\n Type::overrideType($name, DayPointType::class);\n } els", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Types/DayPointTypeTest.php", "language": "php", "file_size": 3262, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Types;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Platforms\\MariaDBPlatform;\nuse Doctrine\\DBAL\\Platforms\\MySQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\SQLitePlatform;\nuse Doctrine\\DBAL\\Types\\ConversionException;\nuse Doctrine\\DBAL\\Types\\Type;\nuse PHPUnit\\Framework\\Attri", "suffix": " DUMMY_ULID = '01EEDQEK6ZAZE93J8KG5B4MBJC';\n\n private UlidType $type;\n\n public static function setUpBeforeClass(): void\n {\n if (Type::hasType('ulid')) {\n Type::overrideType('ulid', UlidType::class);\n } else {\n T", "middle": "butes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Types\\UlidType;\nuse Symfony\\Component\\Uid\\AbstractUid;\nuse Symfony\\Component\\Uid\\Ulid;\n\nfinal class UlidTypeTest extends TestCase\n{\n private const", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Types/UlidTypeTest.php", "language": "php", "file_size": 4520, "cut_index": 614, "middle_length": 229}} {"prefix": "ine\\Persistence\\ManagerRegistry;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\DataCollector\\DoctrineDataCollector;\nuse Symfony\\Bridge\\Doctrine\\Middleware\\Debug\\DebugDataHolder;\nuse Symfony\\Bridge\\Doctrine\\Middleware\\Debug\\Query;\nuse Symfony\\Bridge\\PhpUnit\\ClockMock;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDum", "suffix": "nections()\n {\n $c = $this->createCollector([]);\n $c->collect(new Request(), new Response());\n $c = unserialize(serialize($c));\n $this->assertEquals(['default' => 'doctrine.dbal.default_connection'], $c->getConnections());\n ", "middle": "per;\n\nclass DoctrineDataCollectorTest extends TestCase\n{\n protected function setUp(): void\n {\n ClockMock::register(self::class);\n ClockMock::withClockMock(1500000000);\n }\n\n public function testCollectCon", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php", "language": "php", "file_size": 10794, "cut_index": 921, "middle_length": 229}} {"prefix": "ce\\ObjectRepository;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\ArgumentResolver\\Console\\EntityValueResolver;\nuse Symfony\\Bridge\\Doctrine\\Attribute\\MapEntity;\nuse Symfony\\Component\\Console\\ArgumentResolver\\Exception\\NearMissValueResolverException;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input", "suffix": "lass EntityValueResolverTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!interface_exists(ValueResolverInterface::class)) {\n self::markTestSkipped('Requires symfony/console >= 8.1');\n }\n }\n", "middle": "\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\n\nc", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Console/ArgumentResolver/EntityValueResolverTest.php", "language": "php", "file_size": 16520, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity;\nuse Symfony\\Component\\Validator\\Constraints as Assert;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\n#[ORM\\Entity, UniqueEntity(fi", "suffix": "\\Length(min: 5)]\n public $mergedMaxLength;\n\n #[ORM\\Column(length: 20), Assert\\Length(min: 1, max: 10)]\n public $alreadyMappedMaxLength;\n\n #[ORM\\Column(unique: true)]\n public $unique;\n\n #[ORM\\Column(unique: true)]\n public $alreadyMapped", "middle": "elds: [\"alreadyMappedUnique\"])]\nclass DoctrineLoaderEntity extends DoctrineLoaderParentEntity\n{\n #[ORM\\Id, ORM\\Column]\n public $id;\n\n #[ORM\\Column(length: 20)]\n public $maxLength;\n\n #[ORM\\Column(length: 20), Assert", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/DoctrineLoaderEntity.php", "language": "php", "file_size": 1437, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Doctrine\\Persistence\\Mapping\\ClassMetadata;\nuse Doctrine\\Persistence\\Mapping\\ClassMetadataFactory;\nuse Doctrine\\Persistence\\ObjectManager;\nuse Doctrine\\Persistence\\ObjectRepository;\n\nclass DummyManager implements ObjectManager\n{\n ", "suffix": "{\n }\n\n public function merge($object)\n {\n }\n\n public function clear($objectName = null): void\n {\n }\n\n public function detach($object): void\n {\n }\n\n public function refresh($object): void\n {\n }\n\n public function flu", "middle": " public $bar;\n\n public function __construct()\n {\n }\n\n public function find($className, $id): ?object\n {\n }\n\n public function persist($object): void\n {\n }\n\n public function remove($object): void\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/DummyManager.php", "language": "php", "file_size": 1452, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\Id;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n", "suffix": "#[Column]\n public string $name,\n ) {\n }\n\n public function getRoles(): array\n {\n }\n\n public function getPassword(): ?string\n {\n }\n\n public function getUserIdentifier(): string\n {\n return $this->name;\n }\n\n #[", "middle": "#[Entity]\nclass User implements UserInterface, PasswordAuthenticatedUserInterface\n{\n public function __construct(\n #[Id, Column]\n protected ?int $id1,\n\n #[Id, Column]\n protected ?int $id2,\n\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/User.php", "language": "php", "file_size": 1136, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Monolog\\Tests\\Processor;\n\nuse Monolog\\Level;\nuse Monolog\\LogRecord;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Monolog\\Processor\\WebProcessor;\nuse Symfony\\Bridge\\Monolog\\Tests\\RecordFactory;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;", "suffix": "est($event);\n $record = $processor($this->getRecord());\n\n $this->assertCount(5, $record['extra']);\n $this->assertEquals($server['REQUEST_URI'], $record['extra']['url']);\n $this->assertEquals($server['REMOTE_ADDR'], $record['extr", "middle": "\n\nclass WebProcessorTest extends TestCase\n{\n public function testUsesRequestServerData()\n {\n [$event, $server] = $this->createRequestEvent();\n\n $processor = new WebProcessor();\n $processor->onKernelRequ", "meta": {"filepath": "src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php", "language": "php", "file_size": 4193, "cut_index": 614, "middle_length": 229}} {"prefix": "octrine\\Persistence\\Mapping\\ClassMetadata;\nuse Doctrine\\Persistence\\Mapping\\MappingException as PersistenceMappingException;\nuse Doctrine\\Persistence\\ObjectManager;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\n\n/**\n * Unique Entity Validator checks if ", "suffix": "istry $registry,\n ) {\n }\n\n /**\n * @throws UnexpectedTypeException\n * @throws ConstraintDefinitionException\n */\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof UniqueEnt", "middle": "one or a set of fields contain unique values.\n *\n * @author Benjamin Eberlei <kontakt@beberlei.de>\n */\nclass UniqueEntityValidator extends ConstraintValidator\n{\n public function __construct(\n private readonly ManagerReg", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php", "language": "php", "file_size": 12828, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests;\n\nuse Doctrine\\Common\\EventSubscriber;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\ContainerAwareEventManager;\nuse Symfony\\Component\\DependencyInjection\\Container;\n\nclass ContainerAwareEventManagerTest extends TestCase\n{\n private Container $container;\n private ContainerAwareEventManager $evm;\n\n protected function setUp(): void\n {\n $this->container = new Container();\n $this->evm = new Container", "suffix": "->container->set('list1', $listener1 = new MyListener());\n $this->container->set('list2', $listener2 = new MyListener());\n\n $this->assertSame([$listener1, $listener2], array_values($this->evm->getListeners('foo')));\n }\n\n public function", "middle": "AwareEventManager($this->container);\n }\n\n public function testDispatchEventRespectOrder()\n {\n $this->evm = new ContainerAwareEventManager($this->container, [[['foo'], 'list1'], [['foo'], 'list2']]);\n\n $this", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/ContainerAwareEventManagerTest.php", "language": "php", "file_size": 8893, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Types;\n\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\SQLitePlatform;\nuse Doctrine\\DBAL\\Types\\Type;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Types\\DatePointType;\nuse Symfony\\Component\\Clock\\DatePoint;\n\nfinal class DatePointTypeTest exte", "suffix": "pe::class);\n } else {\n Type::addType($name, DatePointType::class);\n }\n }\n\n protected function setUp(): void\n {\n $this->type = Type::getType(DatePointType::NAME);\n }\n\n public function testDatePointConvertsToDat", "middle": "nds TestCase\n{\n private DatePointType $type;\n\n public static function setUpBeforeClass(): void\n {\n $name = DatePointType::NAME;\n if (Type::hasType($name)) {\n Type::overrideType($name, DatePointTy", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Types/DatePointTypeTest.php", "language": "php", "file_size": 2574, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Types;\n\nuse Doctrine\\DBAL\\Exception;\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Types\\Type;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Types\\TimePointType;\nuse Symfony\\Component\\Clock\\DatePoint;\n\nfinal class TimePointTypeTest extends TestCase\n{\n p", "suffix": "} else {\n Type::addType($name, TimePointType::class);\n }\n }\n\n protected function setUp(): void\n {\n if (!class_exists(DatePoint::class)) {\n self::markTestSkipped('The DatePoint class is not available.');\n ", "middle": "rivate TimePointType $type;\n\n public static function setUpBeforeClass(): void\n {\n $name = TimePointType::NAME;\n if (Type::hasType($name)) {\n Type::overrideType($name, TimePointType::class);\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Types/TimePointTypeTest.php", "language": "php", "file_size": 3264, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping as ORM;\n\n/**\n * an entity that has two objects (class without toString methods) as primary key.\n */\n#[ORM\\Entity]\nclass CompositeObjectNoToStringIdEntity\n{\n public function __construct(\n #[OR", "suffix": " #[ORM\\JoinColumn(name: 'object_two_id')]\n protected SingleIntIdNoToStringEntity $objectTwo,\n ) {\n }\n\n public function getObjectOne(): SingleIntIdNoToStringEntity\n {\n return $this->objectOne;\n }\n\n public function getObje", "middle": "M\\Id]\n #[ORM\\ManyToOne(cascade: ['persist'])]\n #[ORM\\JoinColumn(name: 'object_one_id')]\n protected SingleIntIdNoToStringEntity $objectOne,\n\n #[ORM\\Id]\n #[ORM\\ManyToOne(cascade: ['persist'])]\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/CompositeObjectNoToStringIdEntity.php", "language": "php", "file_size": 1084, "cut_index": 515, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\Id;\n\n#[Entity]\nclass SingleIntIdWithPrivateNameEntity\n{\n public function __construct(\n #[Id, Column(type: 'integer')]\n p", "suffix": "id,\n\n #[Column(type: 'string', nullable: true)]\n private ?string $name,\n ) {\n }\n\n public function getName(): ?string\n {\n return $this->name;\n }\n\n public function __toString(): string\n {\n return (string) $thi", "middle": "rotected int $", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/SingleIntIdWithPrivateNameEntity.php", "language": "php", "file_size": 804, "cut_index": 517, "middle_length": 14}} {"prefix": "p\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\Type;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Types\\StringType;\n\nclass StringWrapperType extends StringType\n{\n public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string\n {\n", "suffix": "lue->getString() : null;\n }\n\n public function convertToPHPValue($value, AbstractPlatform $platform): StringWrapper\n {\n return new StringWrapper($value);\n }\n\n public function getName(): string\n {\n return 'string_wrapper';\n ", "middle": " return $value instanceof StringWrapper ? $va", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/Type/StringWrapperType.php", "language": "php", "file_size": 829, "cut_index": 516, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\IdGenerator;\n\nuse Doctrine\\ORM\\EntityManager;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\IdGenerator\\UuidGenerator;\nuse Symfony\\Component\\Uid\\Factory\\UuidFactory;\nuse Symfony\\Component\\Uid\\TimeBasedUidInterface;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Ui", "suffix": "nerator();\n $uuid = $generator->generateId($em, new Entity());\n\n $this->assertInstanceOf(Uuid::class, $uuid);\n }\n\n public function testCustomUuidfactory()\n {\n $uuid = new UuidV4();\n $em = (new \\ReflectionClass(EntityMan", "middle": "d\\UuidV4;\n\nclass UuidGeneratorTest extends TestCase\n{\n public function testUuidCanBeGenerated()\n {\n $em = (new \\ReflectionClass(EntityManager::class))->newInstanceWithoutConstructor();\n $generator = new UuidGe", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/IdGenerator/UuidGeneratorTest.php", "language": "php", "file_size": 3020, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests;\n\nuse Doctrine\\Persistence\\ObjectManager;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\DummyManager;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\PhpDumper;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\VarExporter", "suffix": "ue);\n $container->getDefinition('foo')->setLazy(true)->addTag('proxy', ['interface' => ObjectManager::class]);\n $container->compile();\n\n $dumper = new PhpDumper($container);\n eval('?>'.$dumper->dump(['class' => 'LazyServiceDoctr", "middle": "\\LazyObjectInterface;\n\nclass ManagerRegistryTest extends TestCase\n{\n public function testResetService()\n {\n $container = new ContainerBuilder();\n\n $container->register('foo', DummyManager::class)->setPublic(tr", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/ManagerRegistryTest.php", "language": "php", "file_size": 6669, "cut_index": 716, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Doctrine\\ORM\\Mapping\\Column;\nuse Doctrine\\ORM\\Mapping\\Entity;\nuse Doctrine\\ORM\\Mapping\\Id;\nuse Doctrine\\ORM\\Mapping\\JoinColumn;\nuse Doctrine\\ORM\\Mapping\\OneToOne;\n\n#[Entity]\nclass SingleAssociationToIntIdEntity\n{\n publ", "suffix": "ade: ['ALL'])]\n #[JoinColumn()]\n protected SingleIntIdNoToStringEntity $entity,\n\n #[Column(nullable: true)]\n public ?string $name,\n ) {\n }\n\n public function __toString(): string\n {\n return $this->name;\n }\n}", "middle": "ic function __construct(\n #[Id, OneToOne(casc", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Fixtures/SingleAssociationToIntIdEntity.php", "language": "php", "file_size": 823, "cut_index": 514, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Types;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Platforms\\MariaDBPlatform;\nuse Doctrine\\DBAL\\Platforms\\MySQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform;\nuse Doctrine\\DBAL\\Platforms\\SQLitePlatform;\nuse Doctrine\\DBAL\\Types\\ConversionException;\nuse Doctrine\\DBAL\\Types\\Type;\nuse PHPUnit\\Framework\\Attri", "suffix": " DUMMY_UUID = '9f755235-5a2d-4aba-9605-e9962b312e50';\n\n private UuidType $type;\n\n public static function setUpBeforeClass(): void\n {\n if (Type::hasType('uuid')) {\n Type::overrideType('uuid', UuidType::class);\n } else {\n ", "middle": "butes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Types\\UuidType;\nuse Symfony\\Component\\Uid\\AbstractUid;\nuse Symfony\\Component\\Uid\\Uuid;\n\nfinal class UuidTypeTest extends TestCase\n{\n private const", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Types/UuidTypeTest.php", "language": "php", "file_size": 4839, "cut_index": 614, "middle_length": 229}} {"prefix": "m;\nuse Doctrine\\DBAL\\Result;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Symfony\\Bridge\\Doctrine\\Messenger\\DoctrinePingConnectionMiddleware;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\UnrecoverableMessageHandlingException;\nuse Symfony\\Component\\Messenger\\Stamp\\ConsumedByWorkerStamp;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\n\nclass DoctrinePingConnectionMiddlewareTest extends MiddlewareTestCase\n{\n ", "suffix": "entityManager = $this->createStub(EntityManagerInterface::class);\n $entityManager->method('getConnection')->willReturn($connection);\n $managerRegistry = $this->createStub(ManagerRegistry::class);\n $managerRegistry->method('getManager')", "middle": " private string $entityManagerName = 'default';\n\n public function testMiddlewarePingOk()\n {\n $connection = $this->createMock(Connection::class);\n $connection->method('isConnected')->willReturn(true);\n $", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Messenger/DoctrinePingConnectionMiddlewareTest.php", "language": "php", "file_size": 10187, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Messenger;\n\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse Symfony\\Bridge\\Doctrine\\Messenger\\DoctrineTransactionMiddleware;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\Unrecoverable", "suffix": "ManagerInterface $entityManager;\n private DoctrineTransactionMiddleware $middleware;\n\n protected function setUp(): void\n {\n $this->connection = $this->createMock(Connection::class);\n\n $this->entityManager = $this->createStub(EntityMa", "middle": "MessageHandlingException;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\n\nclass DoctrineTransactionMiddlewareTest extends MiddlewareTestCase\n{\n private MockObject&Connection $connection;\n private Entity", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Messenger/DoctrineTransactionMiddlewareTest.php", "language": "php", "file_size": 4518, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Registers additional validators.\n *\n * @author Benjamin Eberlei <kontakt@beberlei.de>\n *", "suffix": " $this->updateValidatorMappingFiles($container, 'xml', 'xml');\n $this->updateValidatorMappingFiles($container, 'yaml', 'yml');\n }\n\n /**\n * Gets the validation mapping files for the format and extends them with\n * files matching ", "middle": "/\nclass DoctrineValidationPass implements CompilerPassInterface\n{\n public function __construct(\n private readonly string $managerType,\n ) {\n }\n\n public function process(ContainerBuilder $container): void\n {\n", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php", "language": "php", "file_size": 1979, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass;\n\nuse Symfony\\Bridge\\Doctrine\\Types\\DatePointType;\nuse Symfony\\Bridge\\Doctrine\\Types\\DayPointType;\nuse Symfony\\Bridge\\Doctrine\\Types\\TimePointType;\nuse Symfony\\Component\\Clock\\DatePoint;\nuse Symfony\\Component\\Dependency", "suffix": "er): void\n {\n if (!class_exists(DatePoint::class)) {\n return;\n }\n\n if (!$container->hasParameter('doctrine.dbal.connection_factory.types')) {\n return;\n }\n\n $types = $container->getParameter('doctr", "middle": "Injection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nfinal class RegisterDatePointTypePass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $contain", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterDatePointTypePass.php", "language": "php", "file_size": 1342, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass;\n\nuse Symfony\\Bridge\\Doctrine\\ContainerAwareEventManager;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\Dependency", "suffix": "connections.\n *\n * @author Jeremy Mikola <jmikola@gmail.com>\n * @author Alexander <iam.asm89@gmail.com>\n * @author David Maicher <mail@dmaicher.de>\n */\nclass RegisterEventListenersAndSubscribersPass implements CompilerPassInterface\n{\n private array $con", "middle": "Injection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Registers event listeners to the available doctrine ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php", "language": "php", "file_size": 5757, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Base class for the doctrine bundles to provide a compiler pass class that\n * helps", "suffix": "gsPass classes\n * in the DoctrineBundle resp.\n * DoctrineMongodbBundle, DoctrineCouchdbBundle and DoctrinePhpcrBundle.\n *\n * @author David Buchmann <david@liip.ch>\n */\nabstract class RegisterMappingsPass implements CompilerPassInterface\n{\n /**\n * Th", "middle": " to register doctrine mappings.\n *\n * The compiler pass is meant to register the mappings with the metadata\n * chain driver corresponding to one of the object managers.\n *\n * For concrete implementations, see the RegisterXyMappin", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php", "language": "php", "file_size": 7769, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass;\n\nuse Symfony\\Bridge\\Doctrine\\Types\\UlidType;\nuse Symfony\\Bridge\\Doctrine\\Types\\UuidType;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuil", "suffix": "\n return;\n }\n\n if (!$container->hasParameter('doctrine.dbal.connection_factory.types')) {\n return;\n }\n\n $typeDefinition = $container->getParameter('doctrine.dbal.connection_factory.types');\n\n if (!is", "middle": "der;\nuse Symfony\\Component\\Uid\\AbstractUid;\n\nfinal class RegisterUidTypePass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!class_exists(AbstractUid::class)) {", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterUidTypePass.php", "language": "php", "file_size": 1347, "cut_index": 524, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage;\n\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Creates Symfony Request and Response instances from PSR-7 ones.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\n", "suffix": " * Creates a Symfony Request instance from a PSR-7 one.\n */\n public function createRequest(ServerRequestInterface $psrRequest, bool $streamed = false): Request;\n\n /**\n * Creates a Symfony Response instance from a PSR-7 one.\n */\n pub", "middle": "interface HttpFoundationFactoryInterface\n{\n /**\n ", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/HttpFoundationFactoryInterface.php", "language": "php", "file_size": 988, "cut_index": 582, "middle_length": 52}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage;\n\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Creates PSR HTTP Request and Response instances from Symfony ones.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n ", "suffix": " * Creates a PSR-7 Request instance from a Symfony one.\n */\n public function createRequest(Request $symfonyRequest): ServerRequestInterface;\n\n /**\n * Creates a PSR-7 Response instance from a Symfony one.\n */\n public function createR", "middle": "*/\ninterface HttpMessageFactoryInterface\n{\n /**\n ", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/HttpMessageFactoryInterface.php", "language": "php", "file_size": 948, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Factory;\n\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Psr\\Http\\Message\\StreamInterface;\nuse Psr\\Http\\Message\\UploadedFileInterface;\nuse Symfony\\Bridge\\PsrHttpMessage\\HttpFoundationFactoryInterface;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Request;\nus", "suffix": " /**\n * @param int $responseBufferMaxLength The maximum output buffering size for each iteration when sending the response\n */\n public function __construct(\n private readonly int $responseBufferMaxLength = 16372,\n ) {\n }\n\n public", "middle": "e Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass HttpFoundationFactory implements HttpFoundationFactoryInterface\n{\n ", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Factory/HttpFoundationFactory.php", "language": "php", "file_size": 4769, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Factory;\n\nuse Http\\Discovery\\Psr17Factory as DiscoveryPsr17Factory;\nuse Nyholm\\Psr7\\Factory\\Psr17Factory as NyholmPsr17Factory;\nuse Psr\\Http\\Message\\ResponseFactoryInterface;\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\ServerRequestFactoryInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Psr\\Http\\Message\\StreamFactoryInterface;\nuse Psr\\Http\\Message\\UploadedFileFactoryInterface;\nuse Psr\\Http\\Message\\UploadedF", "suffix": "quest;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\n\n/**\n * Builds Psr\\HttpMessage instances using a PSR-17 implementation.\n *\n * @author Antonio J. García Lagar <aj@garcialagar.es>\n * @author Auréli", "middle": "ileInterface;\nuse Symfony\\Bridge\\PsrHttpMessage\\HttpMessageFactoryInterface;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\Re", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Factory/PsrHttpFactory.php", "language": "php", "file_size": 7837, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Factory;\n\nuse Psr\\Http\\Message\\UploadedFileInterface;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException;\nuse Symfony\\Component\\HttpFoundation\\File\\File;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile as BaseUploadedFile;\n\n/**\n * @author Nicolas Grekas <p@tchwor", "suffix": "adedFileInterface $psrUploadedFile,\n callable $getTemporaryPath,\n ) {\n $error = $psrUploadedFile->getError();\n $path = '';\n\n if (\\UPLOAD_ERR_NO_FILE !== $error) {\n $path = $psrUploadedFile->getStream()->getMetadata", "middle": "k.com>\n */\nclass UploadedFile extends BaseUploadedFile\n{\n private bool $test = false;\n\n /**\n * @param-immediately-invoked-callable $getTemporaryPath\n */\n public function __construct(\n private readonly Uplo", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Factory/UploadedFile.php", "language": "php", "file_size": 2109, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\EventListener;\n\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Symfony\\Bridge\\PsrHttpMessage\\Factory\\HttpFoundationFactory;\nuse Symfony\\Bridge\\PsrHttpMessage\\HttpFoundationFactoryInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symf", "suffix": "ander M. Turek <me@derrabus.de>\n */\nfinal class PsrResponseListener implements EventSubscriberInterface\n{\n private readonly HttpFoundationFactoryInterface $httpFoundationFactory;\n\n public function __construct(?HttpFoundationFactoryInterface $httpFoun", "middle": "ony\\Component\\HttpKernel\\Event\\ViewEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\n/**\n * Converts PSR-7 Response to HttpFoundation Response using the bridge.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n * @author Alex", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/EventListener/PsrResponseListener.php", "language": "php", "file_size": 1711, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Tests\\Functional;\n\nuse Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures\\App\\Kernel;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\n/**\n * @author Alexander M. Turek <me@derrabus.de>\n */\nfinal class ControllerTest extends WebTestCase\n{\n publ", "suffix": "$crawler->text());\n }\n\n public function testRequestAction()\n {\n $client = self::createClient();\n $crawler = $client->request('POST', '/request', [], [], [], 'some content');\n\n self::assertResponseStatusCodeSame(403);\n s", "middle": "ic function testServerRequestAction()\n {\n $client = self::createClient();\n $crawler = $client->request('GET', '/server-request');\n\n self::assertResponseStatusCodeSame(200);\n self::assertSame('GET', ", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Functional/ControllerTest.php", "language": "php", "file_size": 1478, "cut_index": 524, "middle_length": 229}} {"prefix": " Psr7Request;\nuse Nyholm\\Psr7\\Stream as Psr7Stream;\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Symfony\\Bridge\\PsrHttpMessage\\Factory\\HttpFoundationFactory;\nuse Symfony\\Bridge\\PsrHttpMessage\\Factory\\PsrHttpFactory;\nuse Symfony\\Bridge\\PsrHttpMessage\\HttpFoundationFactoryInterface;\nuse Symfony\\Bridge\\PsrHttpMessage\\HttpMessageFactoryInterface;\nuse Symfony\\Component\\HttpFoundation\\Cookie;", "suffix": "t lose data.\n *\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\nclass CovertTest extends TestCase\n{\n protected function setUp(): void\n {\n if (!class_exists(Psr7Request::class)) {\n $this->markTestSkipped('nyholm/psr7 is not in", "middle": "\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Test to convert a request/response back and forth to make sure we do no", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Functional/CovertTest.php", "language": "php", "file_size": 11045, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures;\n\nuse Psr\\Http\\Message\\MessageInterface;\nuse Psr\\Http\\Message\\StreamInterface;\n\n/**\n * Message.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass Message implements MessageInterface\n{\n public function __construct(\n private readonly string $version = '1", "suffix": "ion withProtocolVersion($version): never\n {\n throw new \\BadMethodCallException('Not implemented.');\n }\n\n public function getHeaders(): array\n {\n return $this->headers;\n }\n\n public function hasHeader($name): bool\n {\n ", "middle": ".1',\n private array $headers = [],\n private readonly StreamInterface $body = new Stream(),\n ) {\n }\n\n public function getProtocolVersion(): string\n {\n return $this->version;\n }\n\n public funct", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/Message.php", "language": "php", "file_size": 2022, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures;\n\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\StreamInterface;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass Response extends Message implements ResponseInterface\n{\n public function __cons", "suffix": " }\n\n public function getStatusCode(): int\n {\n return $this->statusCode;\n }\n\n public function withStatus($code, $reasonPhrase = ''): never\n {\n throw new \\BadMethodCallException('Not implemented.');\n }\n\n public function ge", "middle": "truct(\n string $version = '1.1',\n array $headers = [],\n StreamInterface $body = new Stream(),\n private readonly int $statusCode = 200,\n ) {\n parent::__construct($version, $headers, $body);\n ", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/Response.php", "language": "php", "file_size": 1101, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures;\n\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Psr\\Http\\Message\\StreamInterface;\nuse Psr\\Http\\Message\\UriInterface;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass ServerRequest extends Message implements ServerRequestInterface\n{\n private readonly UriInterface $uri;\n\n public function __construct(\n ", "suffix": "g|null $uri = null,\n private readonly array $server = [],\n private readonly array $cookies = [],\n private readonly array $query = [],\n private readonly array $uploadedFiles = [],\n private readonly array|object|null $data ", "middle": " string $version = '1.1',\n array $headers = [],\n ?StreamInterface $body = null,\n private readonly string $requestTarget = '/',\n private readonly string $method = 'GET',\n UriInterface|strin", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/ServerRequest.php", "language": "php", "file_size": 3509, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures;\n\nuse Psr\\Http\\Message\\StreamInterface;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass Stream implements StreamInterface\n{\n private bool $eof = true;\n\n public function __construct(\n private readonly string $stringConte", "suffix": "t/plain,'.$this->stringContent, 'r');\n }\n\n public function getSize(): ?int\n {\n return null;\n }\n\n public function tell(): int\n {\n return 0;\n }\n\n public function eof(): bool\n {\n return $this->eof;\n }\n\n pu", "middle": "nt = '',\n ) {\n }\n\n public function __toString(): string\n {\n return $this->stringContent;\n }\n\n public function close(): void\n {\n }\n\n public function detach()\n {\n return fopen('data://tex", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/Stream.php", "language": "php", "file_size": 1772, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures;\n\nuse Psr\\Http\\Message\\StreamInterface;\nuse Psr\\Http\\Message\\UploadedFileInterface;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass UploadedFile implements UploadedFileInterface\n{\n public function __construct(\n ", "suffix": "entMediaType = null,\n ) {\n }\n\n public function getStream(): StreamInterface\n {\n return new Stream(file_get_contents($this->filePath));\n }\n\n public function moveTo($targetPath): void\n {\n rename($this->filePath, $targetPath", "middle": " private readonly string $filePath,\n private readonly ?int $size = null,\n private readonly int $error = \\UPLOAD_ERR_OK,\n private readonly ?string $clientFileName = null,\n private readonly ?string $cli", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/UploadedFile.php", "language": "php", "file_size": 1378, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures;\n\nuse Psr\\Http\\Message\\UriInterface;\n\n/**\n * @author Rougin Royce Gutib <rougingutib@gmail.com>\n */\nclass Uri implements UriInterface\n{\n private readonly string $scheme;\n private readonly string $userInfo;\n private readonly string $host;\n private readonly ?s", "suffix": "se_url($uriString);\n\n $this->scheme = $parts['scheme'] ?? '';\n $this->userInfo = $parts['user'] ?? '';\n $this->host = $parts['host'] ?? '';\n $this->port = $parts['port'] ?? null;\n $this->path = $parts['path'] ?? '';\n ", "middle": "tring $port;\n private readonly string $path;\n private readonly string $query;\n private readonly string $fragment;\n\n public function __construct(\n private readonly string $uriString,\n ) {\n $parts = par", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/Uri.php", "language": "php", "file_size": 2997, "cut_index": 563, "middle_length": 229}} {"prefix": "s\\Fixtures\\App;\n\nuse Nyholm\\Psr7\\Factory\\Psr17Factory;\nuse Psr\\Http\\Message\\ResponseFactoryInterface;\nuse Psr\\Http\\Message\\ServerRequestFactoryInterface;\nuse Psr\\Http\\Message\\StreamFactoryInterface;\nuse Psr\\Http\\Message\\UploadedFileFactoryInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Bridge\\PsrHttpMessage\\ArgumentValueResolver\\PsrServerRequestResolver;\nuse Symfony\\Bridge\\PsrHttpMessage\\EventListener\\PsrResponseListener;\nuse Symfony\\Bridge\\PsrHttpMessage\\Factory\\HttpFoundationFactory;\nuse Symfony\\Bridge\\Psr", "suffix": "PsrRequestController;\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\nuse Symfony\\Component\\HttpKernel\\Kern", "middle": "HttpMessage\\Factory\\PsrHttpFactory;\nuse Symfony\\Bridge\\PsrHttpMessage\\HttpFoundationFactoryInterface;\nuse Symfony\\Bridge\\PsrHttpMessage\\HttpMessageFactoryInterface;\nuse Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures\\App\\Controller\\", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/App/Kernel.php", "language": "php", "file_size": 3027, "cut_index": 563, "middle_length": 229}} {"prefix": "Bridge\\PsrHttpMessage\\Tests\\Fixtures\\App\\Controller;\n\nuse Psr\\Http\\Message\\MessageInterface;\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ResponseFactoryInterface;\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Psr\\Http\\Message\\StreamFactoryInterface;\n\nfinal class PsrRequestController\n{\n public function __construct(\n private readonly ResponseFactoryInterface $responseFactory,\n private readonly StreamFactoryInterface $streamFactory,\n ", "suffix": "teStream(sprintf('<html><body>%s</body></html>', $request->getMethod())));\n }\n\n public function requestAction(RequestInterface $request): ResponseInterface\n {\n return $this->responseFactory\n ->createResponse()\n ->withS", "middle": " ) {\n }\n\n public function serverRequestAction(ServerRequestInterface $request): ResponseInterface\n {\n return $this->responseFactory\n ->createResponse()\n ->withBody($this->streamFactory->crea", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/App/Controller/PsrRequestController.php", "language": "php", "file_size": 1536, "cut_index": 537, "middle_length": 229}} {"prefix": "ry\\HttpFoundationFactory;\nuse Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures\\Response;\nuse Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures\\ServerRequest;\nuse Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures\\Stream;\nuse Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures\\UploadedFile;\nuse Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures\\Uri;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile as HttpFoundationUploa", "suffix": "cted function setUp(): void\n {\n $this->factory = new HttpFoundationFactory();\n $this->tmpDir = sys_get_temp_dir();\n }\n\n public function testCreateRequest()\n {\n $stdClass = new \\stdClass();\n $serverRequest = new Serve", "middle": "dedFile;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass HttpFoundationFactoryTest extends TestCase\n{\n /** @var HttpFoundationFactory */\n private $factory;\n\n /** @var string */\n private $tmpDir;\n\n prote", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Factory/HttpFoundationFactoryTest.php", "language": "php", "file_size": 9816, "cut_index": 921, "middle_length": 229}} {"prefix": ";\nuse Symfony\\Bridge\\PsrHttpMessage\\Factory\\PsrHttpFactory;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n * @author Antonio J. García Lagar <aj@garcialagar.es>\n * @author Aurélien Pillevesse <aurelienp", "suffix": "')]\n public function testCreateRequest(PsrHttpFactory $factory)\n {\n $stdClass = new \\stdClass();\n $request = new Request(\n [\n 'bar' => ['baz' => '42'],\n 'foo' => '1',\n ],\n [", "middle": "illevesse@hotmail.fr>\n */\nclass PsrHttpFactoryTest extends TestCase\n{\n private string $tmpDir;\n\n protected function setUp(): void\n {\n $this->tmpDir = sys_get_temp_dir();\n }\n\n #[DataProvider('provideFactories", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/Factory/PsrHttpFactoryTest.php", "language": "php", "file_size": 10669, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\PsrHttpMessage\\EventListener\\PsrResponseListener;\nuse Symfony\\Bridge\\PsrHttpMessage\\Tests\\Fixtures\\Response;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKerne", "suffix": " {\n $listener = new PsrResponseListener();\n $event = $this->createEventMock(new Response());\n $listener->onKernelView($event);\n\n self::assertTrue($event->hasResponse());\n }\n\n public function testDoesNotConvertControllerRe", "middle": "l\\Event\\ViewEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass PsrResponseListenerTest extends TestCase\n{\n public function testConvertsControllerResult()\n ", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/EventListener/PsrResponseListenerTest.php", "language": "php", "file_size": 1600, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\Tests\\ArgumentValueResolver;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Http\\Message\\MessageInterface;\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Symfony\\Bridge\\PsrHttpMessage\\ArgumentValueResolver\\PsrServerRequestResolver;\nuse Symfony\\Bridge", "suffix": "rRequestResolverTest extends TestCase\n{\n public function testServerRequest()\n {\n $symfonyRequest = new Request();\n $psrRequest = $this->createStub(ServerRequestInterface::class);\n\n $resolver = $this->bootstrapResolver($symfonyReq", "middle": "\\PsrHttpMessage\\HttpMessageFactoryInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\n\n/**\n * @author Alexander M. Turek <me@derrabus.de>\n */\nfinal class PsrServe", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/Tests/ArgumentValueResolver/PsrServerRequestResolverTest.php", "language": "php", "file_size": 2460, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\PsrHttpMessage\\ArgumentValueResolver;\n\nuse Psr\\Http\\Message\\MessageInterface;\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Symfony\\Bridge\\PsrHttpMessage\\HttpMessageFactoryInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse", "suffix": "d.\n *\n * @author Iltar van der Berg <kjarli@gmail.com>\n * @author Alexander M. Turek <me@derrabus.de>\n */\nfinal class PsrServerRequestResolver implements ValueResolverInterface\n{\n private const SUPPORTED_TYPES = [\n ServerRequestInterface::class =", "middle": " Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\n\n/**\n * Injects the RequestInterface, MessageInterface or ServerRequestInterface when requeste", "meta": {"filepath": "src/Symfony/Bridge/PsrHttpMessage/ArgumentValueResolver/PsrServerRequestResolver.php", "language": "php", "file_size": 1508, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\FlashBagAwareSessionInterface;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInte", "suffix": "kenStorageInterface $tokenStorage;\n private RequestStack $requestStack;\n private string $environment;\n private bool $debug;\n private LocaleSwitcher $localeSwitcher;\n private array $enabledLocales;\n\n public function setTokenStorage(TokenSt", "middle": "rface;\nuse Symfony\\Component\\Translation\\LocaleSwitcher;\n\n/**\n * Exposes some Symfony parameters and services as an \"app\" global variable.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass AppVariable\n{\n private To", "meta": {"filepath": "src/Symfony/Bridge/Twig/AppVariable.php", "language": "php", "file_size": 6090, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig;\n\nuse Composer\\InstalledVersions;\nuse Symfony\\Bundle\\FullStack;\nuse Twig\\Error\\SyntaxError;\nuse Twig\\TwigFilter;\nuse Twig\\TwigFunction;\n\n/**\n * @internal\n */\nclass UndefinedCallableHandler\n{\n private const FILTER_COMPONENTS = [\n 'emojify' => 'emoji',\n 'humanize' => 'form',\n 'form_encode_currency' => 'form',\n 'seri", "suffix": "et' => 'asset',\n 'asset_version' => 'asset',\n 'importmap' => 'asset-mapper',\n 'dump' => 'debug-bundle',\n 'encore_entry_link_tags' => 'webpack-encore-bundle',\n 'encore_entry_script_tags' => 'webpack-encore-bundle',\n ", "middle": "alize' => 'serializer',\n 'trans' => 'translation',\n 'sanitize_html' => 'html-sanitizer',\n 'yaml_encode' => 'yaml',\n 'yaml_dump' => 'yaml',\n ];\n\n private const FUNCTION_COMPONENTS = [\n 'ass", "meta": {"filepath": "src/Symfony/Bridge/Twig/UndefinedCallableHandler.php", "language": "php", "file_size": 4398, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\Asset\\Packages;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFunction;\n\n/**\n * Twig extension for the Symfony Asset component.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class AssetExtension extend", "suffix": "..)),\n new TwigFunction('asset_version', $this->getAssetVersion(...)),\n ];\n }\n\n /**\n * Returns the public url/path of an asset.\n *\n * If the package used to generate the path is an instance of\n * UrlPackage, you will", "middle": "s AbstractExtension\n{\n public function __construct(\n private Packages $packages,\n ) {\n }\n\n public function getFunctions(): array\n {\n return [\n new TwigFunction('asset', $this->getAssetUrl(.", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/AssetExtension.php", "language": "php", "file_size": 1430, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Bridge\\Twig\\TokenParser\\DumpTokenParser;\nuse Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface;\nuse Symfony\\Component\\VarDumper\\Dumper\\HtmlDumper;\nuse Twig\\Environment;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\Template;\nuse Twig\\TwigFunct", "suffix": "erface $cloner,\n private ?HtmlDumper $dumper = null,\n ) {\n }\n\n public function getFunctions(): array\n {\n return [\n new TwigFunction('dump', $this->dump(...), ['is_safe' => ['html'], 'needs_context' => true, 'needs_envir", "middle": "ion;\n\n/**\n * Provides integration of the dump() function with Twig.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nfinal class DumpExtension extends AbstractExtension\n{\n public function __construct(\n private ClonerInt", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/DumpExtension.php", "language": "php", "file_size": 1995, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\Emoji\\EmojiTransliterator;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFilter;\n\n/**\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nfinal class EmojiExtension extends AbstractExtension\n{\n private static array $translitera", "suffix": "ojify\" filter as the \"Emoji\" component is not installed. Try running \"composer require symfony/emoji\".');\n }\n }\n\n public function getFilters(): array\n {\n return [\n new TwigFilter('emojify', $this->emojify(...)),\n ];", "middle": "tors = [];\n\n public function __construct(\n private readonly string $defaultCatalog = 'text',\n ) {\n if (!class_exists(EmojiTransliterator::class)) {\n throw new \\LogicException('You cannot use the \"em", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/EmojiExtension.php", "language": "php", "file_size": 1604, "cut_index": 537, "middle_length": 229}} {"prefix": "t;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\NearMissValueResolverException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\nclass EntityValueResolverTest extends TestCase\n{\n public function testResolveWithoutClass()\n {\n $manager = $this->createStub(ObjectManager::class);\n $registry = $this->createRegistry($manager);\n $resolver = new EntityValueResolver($registry);\n\n $request = new Req", "suffix": "anager = $this->createStub(ObjectManager::class);\n $registry = $this->createRegistry($manager);\n $resolver = new EntityValueResolver($registry, null, new MapEntity(disabled: true));\n\n $request = new Request();\n $argument = $this", "middle": "uest();\n $argument = new ArgumentMetadata('arg', null, false, false, null);\n\n $this->assertSame([], $resolver->resolve($request, $argument));\n }\n\n public function testResolveWithoutAttribute()\n {\n $m", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php", "language": "php", "file_size": 18908, "cut_index": 1331, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFunction;\n\n/**\n * ExpressionExtension gives a way to create Expressions from a template.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class ExpressionExtensio", "suffix": "tFunctions(): array\n {\n return [\n new TwigFunction('expression', $this->createExpression(...)),\n ];\n }\n\n public function createExpression(string $expression): Expression\n {\n return new Expression($expression);\n ", "middle": "n extends AbstractExtension\n{\n public function ge", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/ExpressionExtension.php", "language": "php", "file_size": 873, "cut_index": 559, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\SchemaListener;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfo", "suffix": "maListenerTest extends TestCase\n{\n public function testPostGenerateSchemaPdo()\n {\n $schema = new Schema();\n $dbalConnection = $this->createStub(Connection::class);\n $dbalConnection->method('getConfiguration')->willReturn(new Conf", "middle": "ny\\Bridge\\Doctrine\\SchemaListener\\PdoSessionHandlerSchemaListener;\nuse Symfony\\Bridge\\Doctrine\\Tests\\DoctrineTestHelper;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\PdoSessionHandler;\n\nclass PdoSessionHandlerSche", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/SchemaListener/PdoSessionHandlerSchemaListenerTest.php", "language": "php", "file_size": 4036, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Security\\RememberMe;\n\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\ORM\\ORMSetup;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Bridge\\Doctrine\\", "suffix": "oid\n {\n if (!getenv('POSTGRES_HOST')) {\n self::markTestSkipped('Missing POSTGRES_HOST env variable');\n }\n }\n\n protected function bootstrapProvider(): DoctrineTokenProvider\n {\n $config = ORMSetup::createConfigurat", "middle": "Security\\RememberMe\\DoctrineTokenProvider;\n\n#[Group('integration')]\n#[RequiresPhpExtension('pdo_pgsql')]\nclass DoctrineTokenProviderPostgresTest extends DoctrineTokenProviderTest\n{\n public static function setUpBeforeClass(): v", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Security/RememberMe/DoctrineTokenProviderPostgresTest.php", "language": "php", "file_size": 2005, "cut_index": 537, "middle_length": 229}} {"prefix": "neTestHelper;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\BaseUser;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\DoctrineLoaderEmbed;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\DoctrineLoaderEntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\DoctrineLoaderEnum;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\DoctrineLoaderNestedEmbed;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\DoctrineLoaderNoAutoMappingEntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\DoctrineLoaderParentEntity;\nuse Symfony\\Bridge\\Doctrine\\Valida", "suffix": "Mapping\\CascadingStrategy;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\PropertyMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\TraversalStrategy;\nuse Symfony\\Component\\Validator\\Tests\\Fixtures\\NestedAttr", "middle": "tor\\Constraints\\UniqueEntity;\nuse Symfony\\Bridge\\Doctrine\\Validator\\DoctrineLoader;\nuse Symfony\\Component\\Validator\\Constraints\\Length;\nuse Symfony\\Component\\Validator\\Mapping\\AutoMappingStrategy;\nuse Symfony\\Component\\Validator\\", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Validator/DoctrineLoaderTest.php", "language": "php", "file_size": 11291, "cut_index": 921, "middle_length": 229}} {"prefix": "ntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\SingleIntIdStringWrapperNameEntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\SingleIntIdWithPrivateNameEntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\SingleStringIdEntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\Type\\StringWrapper;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\Type\\StringWrapperType;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\UpdateCompositeIntIdEntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\UpdateCompositeObjectNoToStringIdEntity;", "suffix": "epositoryFactory;\nuse Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity;\nuse Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntityValidator;\nuse Symfony\\Component\\Uid\\Uuid;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Val", "middle": "\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\UpdateEmployeeProfile;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\UserUuidNameDto;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\UserUuidNameEntity;\nuse Symfony\\Bridge\\Doctrine\\Tests\\TestR", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php", "language": "php", "file_size": 36762, "cut_index": 2151, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Messenger;\n\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse Symfony\\Bridge\\Doctrine\\Messenger\\DoctrineCloseConnectionMiddleware;\nuse Symfony\\Component\\Messenger\\Envelope;\n", "suffix": "eConnectionMiddlewareTest extends MiddlewareTestCase\n{\n private MockObject&Connection $connection;\n private EntityManagerInterface $entityManager;\n private ManagerRegistry $managerRegistry;\n private DoctrineCloseConnectionMiddleware $middleware", "middle": "use Symfony\\Component\\Messenger\\Exception\\UnrecoverableMessageHandlingException;\nuse Symfony\\Component\\Messenger\\Stamp\\ConsumedByWorkerStamp;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\n\nclass DoctrineClos", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Messenger/DoctrineCloseConnectionMiddlewareTest.php", "language": "php", "file_size": 3019, "cut_index": 563, "middle_length": 229}} {"prefix": "Persistence\\ManagerRegistry;\nuse Doctrine\\Persistence\\ObjectManager;\nuse Doctrine\\Persistence\\ObjectRepository;\nuse Doctrine\\Persistence\\Proxy;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Security\\User\\EntityUserProvider;\nuse Symfony\\Bridge\\Doctrine\\Security\\User\\UserLoaderInterface;\nuse Symfony\\Bridge\\Doctrine\\Tests\\DoctrineTestHelper;\nuse Symfony\\Bridge\\Doctrine\\Tests\\Fixtures\\User;\nuse Symfony\\Com", "suffix": "sswordUpgraderInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n#[IgnoreDeprecations]\n#[Group('doctrine-dbal-workaround')]\nclass EntityUserProviderTest extends TestCase\n{\n public function testRefreshUserGetsUserByPrimaryKey()\n {\n ", "middle": "ponent\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\Pa", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Security/User/EntityUserProviderTest.php", "language": "php", "file_size": 9907, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\DependencyInjection\\CompilerPass;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\ContainerAwareEventManager;\nuse Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass\\RegisterEventListenersAndSubscribersPass;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\D", "suffix": " $container = $this->createBuilder();\n\n $abstractDefinition = new Definition('stdClass');\n $abstractDefinition->setAbstract(true);\n $abstractDefinition->addTag('doctrine.event_listener', ['event' => 'test']);\n\n $container->se", "middle": "ependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\n\nclass RegisterEventListenersAndSubscribersPassTest extends TestCase\n{\n public function testExceptionOnAbstractTaggedListener()\n {\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPassTest.php", "language": "php", "file_size": 8781, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\DependencyInjection\\CompilerPass;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass\\RegisterUidTypePass;\nuse Symfony\\Bridge\\Doctrine\\Types\\UlidType;\nuse Symfony\\Bridge\\Doctrine\\Types\\UuidType;\nuse Symfo", "suffix": "ne.dbal.connection_factory.types', ['foo' => 'bar']);\n (new RegisterUidTypePass())->process($container);\n\n $expected = [\n 'foo' => 'bar',\n 'uuid' => ['class' => UuidType::class],\n 'ulid' => ['class' => UlidTyp", "middle": "ny\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass RegisterUidTypePassTest extends TestCase\n{\n public function testRegistered()\n {\n $container = new ContainerBuilder();\n $container->setParameter('doctri", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterUidTypePassTest.php", "language": "php", "file_size": 1354, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Messenger;\n\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageFailedEvent;\nuse Symfony\\Component\\Messenger\\Event\\WorkerMessageHandledEvent;\n\n/**\n", "suffix": "lic function __construct(\n private readonly ManagerRegistry $managerRegistry,\n ) {\n }\n\n public function onWorkerMessageHandled(): void\n {\n $this->clearEntityManagers();\n }\n\n public function onWorkerMessageFailed(): void\n ", "middle": " * Clears entity managers between messages being handled to avoid outdated data.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass DoctrineClearEntityManagerWorkerSubscriber implements EventSubscriberInterface\n{\n pub", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php", "language": "php", "file_size": 1473, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Messenger;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\n\n/**\n * Middleware to log when transacti", "suffix": "ct(\n ManagerRegistry $managerRegistry,\n ?string $entityManagerName = null,\n private readonly ?LoggerInterface $logger = null,\n ) {\n parent::__construct($managerRegistry, $entityManagerName);\n }\n\n protected function hand", "middle": "on has been left open.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nclass DoctrineOpenTransactionLoggerMiddleware extends AbstractDoctrineMiddleware\n{\n private bool $isHandling = false;\n\n public function __constru", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Messenger/DoctrineOpenTransactionLoggerMiddleware.php", "language": "php", "file_size": 1822, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Messenger;\n\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Exception as DBALException;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\ConsumedByWorkerStamp;\n\n/**\n * Checks whether the connection is still open", "suffix": " Envelope $envelope, StackInterface $stack): Envelope\n {\n if (null !== $envelope->last(ConsumedByWorkerStamp::class)) {\n // In multi-EM mode (no explicit entityManagerName), ping every manager and let healthy ones\n // procee", "middle": " or reconnects otherwise.\n *\n * @author Fuong <insidestyles@gmail.com>\n */\nclass DoctrinePingConnectionMiddleware extends AbstractDoctrineMiddleware\n{\n protected function handleForManager(EntityManagerInterface $entityManager,", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Messenger/DoctrinePingConnectionMiddleware.php", "language": "php", "file_size": 3327, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\ArgumentResolver;\n\nuse Doctrine\\DBAL\\Types\\ConversionException;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\NoResultException;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Doctrine\\Persistence\\ObjectManager;\nuse Symfony\\Bridge\\Doctrine\\Attribute\\MapEntity;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\n\n/**\n * P", "suffix": "\n *\n * @internal\n */\ntrait EntityValueResolverTrait\n{\n /**\n * Gets the entity manager for the given class.\n */\n private function getManager(ManagerRegistry $registry, ?string $name, string $class): ?ObjectManager\n {\n if (null === $n", "middle": "rovides common entity resolution logic for both HTTP and Console value resolvers.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Jérémy Derussé <jeremy@derusse.com>\n * @author Robin Chalas <robin.chalas@gmail.com>", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/ArgumentResolver/EntityValueResolverTrait.php", "language": "php", "file_size": 4509, "cut_index": 614, "middle_length": 229}} {"prefix": "ne\\DBAL\\Schema\\Name\\UnqualifiedName;\nuse Doctrine\\DBAL\\Schema\\PrimaryKeyConstraint;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Doctrine\\DBAL\\Types\\Types;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentTokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\TokenProviderInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\TokenVerifierInte", "suffix": "n\n * the client machine, and thus the security is improved.\n *\n * This depends only on doctrine in order to get a database connection\n * and to do the conversion of the datetime column.\n *\n * In order to use this class, you need the following table in your", "middle": "rface;\nuse Symfony\\Component\\Security\\Core\\Exception\\TokenNotFoundException;\n\n/**\n * This class provides storage for the tokens that is set in \"remember-me\"\n * cookies. This way no password secrets will be stored in the cookies o", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php", "language": "php", "file_size": 9416, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Security\\User;\n\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Doctrine\\Persistence\\Mapping\\ClassMetadata;\nuse Doctrine\\Persistence\\ObjectManager;\nuse Doctrine\\Persistence\\ObjectRepository;\nuse Doctrine\\Persistence\\Proxy;\nuse Symfony\\Component\\Security\\Core\\Exception\\UnsupportedUserException;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\AttributesBasedUserProviderInterface;\nuse", "suffix": "Core\\User\\UserProviderInterface;\n\n/**\n * Wrapper around a Doctrine ObjectManager.\n *\n * Provides provisioning for Doctrine entity users.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n *\n * @templa", "middle": " Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\PasswordUpgraderInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php", "language": "php", "file_size": 6018, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\DependencyInjection\\Security\\UserProvider;\n\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\UserProvider\\UserProviderFactoryInterface;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ChildDefi", "suffix": "rg>\n *\n * @final\n */\nclass EntityFactory implements UserProviderFactoryInterface\n{\n public function __construct(\n private readonly string $key,\n private readonly string $providerId,\n ) {\n }\n\n public function create(ContainerBuilde", "middle": "nition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * EntityFactory creates services for Doctrine user provider.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Christophe Coevoet <stof@notk.o", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php", "language": "php", "file_size": 1893, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Security\\RememberMe;\n\nuse Doctrine\\DBAL\\DriverManager;\nuse Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory;\nuse Doctrine\\ORM\\ORMSetup;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Security\\RememberMe\\DoctrineTokenProvider;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentToken;\nuse Symfony\\Component\\Security\\Core\\Exception\\TokenNotFoundExcept", "suffix": "ken::class, 'getClass')) {\n $token = new PersistentToken('someClass', 'someUser', 'someSeries', 'tokenValue', new \\DateTimeImmutable('2013-01-26T18:23:51'), false);\n } else {\n $token = new PersistentToken('someUser', 'someSerie", "middle": "ion;\n\n#[RequiresPhpExtension('pdo_sqlite')]\nclass DoctrineTokenProviderTest extends TestCase\n{\n public function testCreateNewToken()\n {\n $provider = $this->bootstrapProvider();\n\n if (method_exists(PersistentTo", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Security/RememberMe/DoctrineTokenProviderTest.php", "language": "php", "file_size": 6790, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\SchemaListener;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\SchemaListener\\RememberMeTokenProviderDoctrineSchemaListener;\nuse Sy", "suffix": "rsistentRememberMeHandler;\n\nclass RememberMeTokenProviderDoctrineSchemaListenerTest extends TestCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!class_exists(PersistentRememberMeHandler::class)) {\n self::markTestSkip", "middle": "mfony\\Bridge\\Doctrine\\Security\\RememberMe\\DoctrineTokenProvider;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\Pe", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/SchemaListener/RememberMeTokenProviderDoctrineSchemaListenerTest.php", "language": "php", "file_size": 3323, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Validator\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\nclass UniqueEntityTest extends TestCase\n{\n ", "suffix": ");\n\n /** @var UniqueEntity $constraint */\n [$constraint] = $metadata->getConstraints();\n self::assertSame(['email'], $constraint->fields);\n self::assertTrue($constraint->ignoreNull);\n self::assertSame('doctrine.orm.valida", "middle": " public function testAttributeWithDefaultProperty()\n {\n $metadata = new ClassMetadata(UniqueEntityDummyOne::class);\n $loader = new AttributeLoader();\n self::assertTrue($loader->loadClassMetadata($metadata)", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityTest.php", "language": "php", "file_size": 2966, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Messenger;\n\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse Psr\\Log\\AbstractLogger;\nuse Symfony\\Bridge\\Doctrine\\Messenger\\DoctrineOpenTransactionLoggerMiddleware;\nuse Symf", "suffix": " MockObject&Connection $connection;\n private EntityManagerInterface $entityManager;\n private DoctrineOpenTransactionLoggerMiddleware $middleware;\n\n protected function setUp(): void\n {\n $this->logger = new class extends AbstractLogger {\n ", "middle": "ony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\n\nclass DoctrineOpenTransactionLoggerMiddlewareTest extends MiddlewareTestCase\n{\n private AbstractLogger $logger;\n private", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Messenger/DoctrineOpenTransactionLoggerMiddlewareTest.php", "language": "php", "file_size": 2188, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\DependencyInjection\\CompilerPass;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass\\RegisterMappingsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definit", "suffix": " $this->expectExceptionMessage('Could not find the manager name parameter in the container. Tried the following parameter names: \"manager.param.one\", \"manager.param.two\"');\n\n $this->process($container, [\n 'manager.param.one',\n ", "middle": "ion;\n\nclass RegisterMappingsPassTest extends TestCase\n{\n public function testNoDriverParmeterException()\n {\n $container = $this->createBuilder();\n\n $this->expectException(\\InvalidArgumentException::class);\n ", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterMappingsPassTest.php", "language": "php", "file_size": 1565, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Messenger;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\ConsumedByWorkerStamp;\n\n/**\n * Closes connection an", "suffix": " $entityManager, Envelope $envelope, StackInterface $stack): Envelope\n {\n try {\n $connection = $entityManager->getConnection();\n\n return $stack->next()->handle($envelope, $stack);\n } finally {\n if (null !==", "middle": "d therefore saves number of connections.\n *\n * @author Fuong <insidestyles@gmail.com>\n */\nclass DoctrineCloseConnectionMiddleware extends AbstractDoctrineMiddleware\n{\n protected function handleForManager(EntityManagerInterface", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Messenger/DoctrineCloseConnectionMiddleware.php", "language": "php", "file_size": 1120, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\ArgumentResolver;\n\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Doctrine\\Persistence\\ObjectManager;\nuse Symfony\\Bridge\\Doctrine\\Attribute\\MapEntity;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata;\nuse Symfony\\Component\\HttpKernel\\Exception\\NearMi", "suffix": "émy Derussé <jeremy@derusse.com>\n */\nfinal class EntityValueResolver implements ValueResolverInterface\n{\n use EntityValueResolverTrait;\n\n public function __construct(\n private ManagerRegistry $registry,\n private ?ExpressionLanguage $exp", "middle": "ssValueResolverException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\n/**\n * Yields the entity matching the criteria provided in the route.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Jér", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/ArgumentResolver/EntityValueResolver.php", "language": "php", "file_size": 5591, "cut_index": 716, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Security\\User;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * Represents a class that loads UserInterface objects from Doctrine source for the authentication system.\n *\n * This interface is meant to facilitate the loading o", "suffix": "l Trojanowski <michal@kmt-studio.pl>\n */\ninterface UserLoaderInterface\n{\n /**\n * Loads the user for the given user identifier (e.g. username or email).\n *\n * This method must return null if the user is not found.\n */\n public function ", "middle": "f a User from Doctrine source using a custom method.\n * If you want to implement your own logic of retrieving the user from Doctrine your repository should implement this\n * interface.\n *\n * @see UserInterface\n *\n * @author Micha", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Security/User/UserLoaderInterface.php", "language": "php", "file_size": 1058, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\SchemaListener;\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\DBAL\\Schema\\Sequence;\nuse Doctrine\\DBAL\\Schema\\Table;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\Tools\\Event\\GenerateSchemaEventArgs;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\SchemaListener\\MessengerTransportDoctrineSchemaListener;\nuse Symfony\\Component\\Messenger\\Bridge\\Doctrin", "suffix": "a = new Schema();\n $dbalConnection = $this->createStub(Connection::class);\n $dbalConnection->method('getConfiguration')->willReturn(new Configuration());\n $entityManager = $this->createMock(EntityManagerInterface::class);\n $enti", "middle": "e\\Transport\\DoctrineTransport;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\n\nclass MessengerTransportDoctrineSchemaListenerTest extends TestCase\n{\n public function testPostGenerateSchema()\n {\n $schem", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/SchemaListener/MessengerTransportDoctrineSchemaListenerTest.php", "language": "php", "file_size": 6917, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Messenger;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Symfony\\Bridge\\Doctrine\\Messenger\\DoctrineClearEntityManagerWorkerSubscriber;\nuse Symfony\\Component\\Messenger\\Test\\Middleware\\MiddlewareTestCase;\n\n", "suffix": "ntityManager1->expects($this->once())\n ->method('clear');\n\n $entityManager2 = $this->createMock(EntityManagerInterface::class);\n $entityManager2->expects($this->once())\n ->method('clear');\n\n $managerRegistry = $th", "middle": "class DoctrineClearEntityManagerWorkerSubscriberTest extends MiddlewareTestCase\n{\n public function testMiddlewareClearEntityManager()\n {\n $entityManager1 = $this->createMock(EntityManagerInterface::class);\n $e", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/Messenger/DoctrineClearEntityManagerWorkerSubscriberTest.php", "language": "php", "file_size": 1316, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Messenger;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\UnrecoverableMessageHandlingException;\nuse Symfony\\Component\\Messenger\\Mi", "suffix": "reInterface\n{\n public function __construct(\n protected ManagerRegistry $managerRegistry,\n protected ?string $entityManagerName = null,\n ) {\n }\n\n final public function handle(Envelope $envelope, StackInterface $stack): Envelope\n ", "middle": "ddleware\\MiddlewareInterface;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\n\n/**\n * @author Konstantin Myakshin <molodchick@gmail.com>\n *\n * @internal\n */\nabstract class AbstractDoctrineMiddleware implements Middlewa", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Messenger/AbstractDoctrineMiddleware.php", "language": "php", "file_size": 1489, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\ArgumentResolver\\Console;\n\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse Doctrine\\Persistence\\ObjectManager;\nuse Symfony\\Bridge\\Doctrine\\ArgumentResolver\\EntityValueResolverTrait;\nuse Symfony\\Bridge\\Doctrine\\Attribute\\MapEntity;\nuse Symfony\\Component\\Console\\ArgumentResolver\\Exception\\NearMissValueResolverException;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\A", "suffix": "rface;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\String\\UnicodeString;\n\n/**\n * Resolves a Command parameter holding the #[MapEntity] attribute to an Entity.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @au", "middle": "rgument;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputInte", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/ArgumentResolver/Console/EntityValueResolver.php", "language": "php", "file_size": 6987, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\DependencyInjection\\CompilerPass;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass\\RegisterDatePointTypePass;\nuse Symfony\\Bridge\\Doctrine\\Types\\DatePointType;\nuse Symfony\\Bridge\\Doctrine\\Types\\DayPoint", "suffix": "ner = new ContainerBuilder();\n $container->setParameter('doctrine.dbal.connection_factory.types', ['foo' => 'bar']);\n (new RegisterDatePointTypePass())->process($container);\n\n $expected = [\n 'foo' => 'bar',\n 'date", "middle": "Type;\nuse Symfony\\Bridge\\Doctrine\\Types\\TimePointType;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass RegisterDatePointTypePassTest extends TestCase\n{\n public function testRegistered()\n {\n $contai", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterDatePointTypePassTest.php", "language": "php", "file_size": 1304, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Doctrine\\Messenger;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Symfony\\Component\\Messenger\\Envelope;\nuse Symfony\\Component\\Messenger\\Exception\\HandlerFailedException;\nuse Symfony\\Component\\Messenger\\Middleware\\StackInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\Handled", "suffix": "orManager(EntityManagerInterface $entityManager, Envelope $envelope, StackInterface $stack): Envelope\n {\n $entityManager->getConnection()->beginTransaction();\n\n $success = false;\n try {\n $envelope = $stack->next()->handle", "middle": "Stamp;\n\n/**\n * Wraps all handlers in a single doctrine transaction.\n *\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\nclass DoctrineTransactionMiddleware extends AbstractDoctrineMiddleware\n{\n protected function handleF", "meta": {"filepath": "src/Symfony/Bridge/Doctrine/Messenger/DoctrineTransactionMiddleware.php", "language": "php", "file_size": 1937, "cut_index": 537, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Psr\\Container\\ContainerInterface;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFilter;\n\n/**\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nfinal class HtmlSanitizerExtension extends AbstractExtension\n{\n publi", "suffix": "r('sanitize_html', $this->sanitize(...), ['is_safe' => ['html']]),\n ];\n }\n\n public function sanitize(string $html, ?string $sanitizer = null): string\n {\n return $this->sanitizers->get($sanitizer ?? $this->defaultSanitizer)->sanitize(", "middle": "c function __construct(\n private ContainerInterface $sanitizers,\n private string $defaultSanitizer = 'default',\n ) {\n }\n\n public function getFilters(): array\n {\n return [\n new TwigFilte", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/HtmlSanitizerExtension.php", "language": "php", "file_size": 1013, "cut_index": 512, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\UrlHelper;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFunction;\n\n/**\n * Twig extension for the Symfony HttpFoundation component.\n *\n * @author Fabien Potencier <fabie", "suffix": "rn [\n new TwigFunction('absolute_url', $this->generateAbsoluteUrl(...)),\n new TwigFunction('relative_path', $this->generateRelativePath(...)),\n ];\n }\n\n /**\n * Returns the absolute URL for the given absolute or relativ", "middle": "n@symfony.com>\n */\nfinal class HttpFoundationExtension extends AbstractExtension\n{\n public function __construct(\n private UrlHelper $urlHelper,\n ) {\n }\n\n public function getFunctions(): array\n {\n retu", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/HttpFoundationExtension.php", "language": "php", "file_size": 1638, "cut_index": 537, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Node;\n\nuse Twig\\Attribute\\YieldReady;\nuse Twig\\Compiler;\nuse Twig\\Node\\Expression\\AbstractExpression;\nuse Twig\\Node\\Node;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\n#[YieldReady]\nfinal class TransDefaultDomainNode extends Node\n{\n public", "suffix": "nstruct(AbstractExpression $expr, int $lineno = 0)\n {\n parent::__construct(['expr' => $expr], [], $lineno);\n }\n\n public function compile(Compiler $compiler): void\n {\n // noop as this node is just a marker for TranslationDefaultDom", "middle": " function __co", "meta": {"filepath": "src/Symfony/Bridge/Twig/Node/TransDefaultDomainNode.php", "language": "php", "file_size": 815, "cut_index": 522, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentHandler;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentUriGeneratorInterface;\n\n/**\n * Provides integration with the HttpKernel component.\n", "suffix": "or = null,\n ) {\n }\n\n /**\n * Renders a fragment.\n *\n * @see FragmentHandler::render()\n */\n public function renderFragment(string|ControllerReference $uri, array $options = []): string\n {\n $strategy = $options['strategy'", "middle": " *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class HttpKernelRuntime\n{\n public function __construct(\n private FragmentHandler $handler,\n private ?FragmentUriGeneratorInterface $fragmentUriGenerat", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/HttpKernelRuntime.php", "language": "php", "file_size": 1914, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\Stopwatch\\StopwatchEvent;\nuse Twig\\Extension\\ProfilerExtension as BaseProfilerExtension;\nuse Twig\\Profiler\\Profile;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal", "suffix": " private ?Stopwatch $stopwatch = null,\n ) {\n parent::__construct($profile);\n\n $this->events = new \\SplObjectStorage();\n }\n\n public function enter(Profile $profile): void\n {\n if ($this->stopwatch && $profile->isTemplate", "middle": " class ProfilerExtension extends BaseProfilerExtension\n{\n /**\n * @var \\SplObjectStorage<Profile, StopwatchEvent>\n */\n private \\SplObjectStorage $events;\n\n public function __construct(\n Profile $profile,\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/ProfilerExtension.php", "language": "php", "file_size": 1417, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\Security\\Acl\\Voter\\FieldVote;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\UserAuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Sy", "suffix": "ymfony.com>\n */\nfinal class SecurityExtension extends AbstractExtension\n{\n public function __construct(\n private ?AuthorizationCheckerInterface $securityChecker = null,\n private ?ImpersonateUrlGenerator $impersonateUrlGenerator = null,\n ", "middle": "mfony\\Component\\Security\\Http\\Impersonate\\ImpersonateUrlGenerator;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFunction;\n\n/**\n * SecurityExtension exposes security context features.\n *\n * @author Fabien Potencier <fabien@s", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/SecurityExtension.php", "language": "php", "file_size": 6268, "cut_index": 716, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Bridge\\Twig\\TokenParser\\StopwatchTokenParser;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TokenParser\\TokenParserInterface;\n\n/**\n * Twig extension for the stopwatch helper.\n *\n * @", "suffix": "\n\n public function getStopwatch(): Stopwatch\n {\n return $this->stopwatch;\n }\n\n /**\n * @return TokenParserInterface[]\n */\n public function getTokenParsers(): array\n {\n return [\n /*\n * {% stopwat", "middle": "author Wouter J <wouter@wouterj.nl>\n */\nfinal class StopwatchExtension extends AbstractExtension\n{\n public function __construct(\n private ?Stopwatch $stopwatch = null,\n private bool $enabled = true,\n ) {\n }", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/StopwatchExtension.php", "language": "php", "file_size": 1230, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\WebLink\\GenericLinkProvider;\nuse Symfony\\Component\\WebLink\\Link;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFunction;\n\n/**\n * Twig extension for the Symfony WebLink component.\n *\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nfinal class WebLinkExtens", "suffix": "is->link(...)),\n new TwigFunction('preload', $this->preload(...)),\n new TwigFunction('dns_prefetch', $this->dnsPrefetch(...)),\n new TwigFunction('preconnect', $this->preconnect(...)),\n new TwigFunction('prefetch'", "middle": "ion extends AbstractExtension\n{\n public function __construct(\n private RequestStack $requestStack,\n ) {\n }\n\n public function getFunctions(): array\n {\n return [\n new TwigFunction('link', $th", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/WebLinkExtension.php", "language": "php", "file_size": 4207, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\Yaml\\Dumper as YamlDumper;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFilter;\n\n/**\n * Provides integration of the Yaml component with Twig.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class YamlEx", "suffix": "];\n }\n\n public function encode(mixed $input, int $inline = 0, int $dumpObjects = 0): string\n {\n static $dumper;\n\n $dumper ??= new YamlDumper();\n\n return $dumper->dump($input, $inline, 0, $dumpObjects);\n }\n\n public functi", "middle": "tension extends AbstractExtension\n{\n public function getFilters(): array\n {\n return [\n new TwigFilter('yaml_encode', $this->encode(...)),\n new TwigFilter('yaml_dump', $this->dump(...)),\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/YamlExtension.php", "language": "php", "file_size": 1390, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Mime;\n\nuse League\\HTMLToMarkdown\\HtmlConverterInterface;\nuse Symfony\\Component\\Mime\\BodyRendererInterface;\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\HtmlToTextConverter\\DefaultHtmlToTextConverter;\nuse Symfony\\Component\\Mime\\HtmlToTextConverter\\Htm", "suffix": "Fabien Potencier <fabien@symfony.com>\n */\nfinal class BodyRenderer implements BodyRendererInterface\n{\n private HtmlToTextConverterInterface $converter;\n\n public function __construct(\n private Environment $twig,\n private array $context =", "middle": "lToTextConverterInterface;\nuse Symfony\\Component\\Mime\\HtmlToTextConverter\\LeagueHtmlToMarkdownConverter;\nuse Symfony\\Component\\Mime\\Message;\nuse Symfony\\Component\\Translation\\LocaleSwitcher;\nuse Twig\\Environment;\n\n/**\n * @author ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Mime/BodyRenderer.php", "language": "php", "file_size": 3038, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Mime;\n\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\Part\\AbstractPart;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Twig\\Extra\\CssInliner\\CssInlinerExtension;\nuse Twig\\Extra\\Inky\\InkyExtension;\nuse Twig\\Extra\\Markdown\\MarkdownExtension;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass NotificationEmail extends TemplatedEmail\n{\n public cons", "suffix": " = [\n 'importance' => self::IMPORTANCE_LOW,\n 'content' => '',\n 'exception' => false,\n 'action_text' => null,\n 'action_url' => null,\n 'markdown' => false,\n 'raw' => false,\n 'footer_text' => 'Notificati", "middle": "t IMPORTANCE_URGENT = 'urgent';\n public const IMPORTANCE_HIGH = 'high';\n public const IMPORTANCE_MEDIUM = 'medium';\n public const IMPORTANCE_LOW = 'low';\n\n private string $theme = 'default';\n private array $context", "meta": {"filepath": "src/Symfony/Bridge/Twig/Mime/NotificationEmail.php", "language": "php", "file_size": 7769, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\DataCollector;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface;\nuse Twig\\Environment;\nuse Twig\\Error\\LoaderError;\nuse Twig\\Markup;\nuse Twig\\Profiler\\Dumper\\HtmlDump", "suffix": "function __construct(\n private Profile $profile,\n private ?Environment $twig = null,\n ) {\n }\n\n public function collect(Request $request, Response $response, ?\\Throwable $exception = null): void\n {\n }\n\n public function reset(", "middle": "er;\nuse Twig\\Profiler\\Profile;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass TwigDataCollector extends DataCollector implements LateDataCollectorInterface\n{\n private array $computed;\n\n public ", "meta": {"filepath": "src/Symfony/Bridge/Twig/DataCollector/TwigDataCollector.php", "language": "php", "file_size": 5026, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\TokenParser;\n\nuse Symfony\\Bridge\\Twig\\Node\\DumpNode;\nuse Twig\\Node\\Expression\\Variable\\LocalVariable;\nuse Twig\\Node\\Node;\nuse Twig\\Node\\Nodes;\nuse Twig\\Token;\nuse Twig\\TokenParser\\AbstractTokenParser;\n\n/**\n * Token Parser for the 'dump' tag.\n *\n * Dump variables with:\n", "suffix": ": Node\n {\n $values = null;\n if (!$this->parser->getStream()->test(Token::BLOCK_END_TYPE)) {\n $values = $this->parseMultitargetExpression();\n }\n $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);\n\n re", "middle": " *\n * {% dump %}\n * {% dump foo %}\n * {% dump foo, bar %}\n *\n * @author Julien Galenski <julien.galenski@gmail.com>\n */\nfinal class DumpTokenParser extends AbstractTokenParser\n{\n public function parse(Token $token)", "meta": {"filepath": "src/Symfony/Bridge/Twig/TokenParser/DumpTokenParser.php", "language": "php", "file_size": 1537, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\TokenParser;\n\nuse Symfony\\Bridge\\Twig\\Node\\StopwatchNode;\nuse Twig\\Node\\Expression\\Variable\\LocalVariable;\nuse Twig\\Node\\Node;\nuse Twig\\Token;\nuse Twig\\TokenParser\\AbstractTokenParser;\n\n/**\n * Token Parser for the stopwatch tag.\n *\n * @author Wouter J <wouter@wouterj.n", "suffix": " = $token->getLine();\n $stream = $this->parser->getStream();\n\n // {% stopwatch 'bar' %}\n $name = $this->parser->parseExpression();\n\n $stream->expect(Token::BLOCK_END_TYPE);\n\n // {% endstopwatch %}\n $body = $this->p", "middle": "l>\n */\nfinal class StopwatchTokenParser extends AbstractTokenParser\n{\n public function __construct(\n private bool $stopwatchIsAvailable,\n ) {\n }\n\n public function parse(Token $token): Node\n {\n $lineno", "meta": {"filepath": "src/Symfony/Bridge/Twig/TokenParser/StopwatchTokenParser.php", "language": "php", "file_size": 1510, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\TokenParser;\n\nuse Symfony\\Bridge\\Twig\\Node\\TransNode;\nuse Twig\\Error\\SyntaxError;\nuse Twig\\Node\\Expression\\AbstractExpression;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Node;\nuse Twig\\Node\\TextNode;\nuse Twig\\Token;\nuse Twig\\TokenParser\\AbstractTokenParser;\n\n/**\n * Token Parser for", "suffix": " $stream = $this->parser->getStream();\n\n $count = null;\n $vars = new ArrayExpression([], $lineno);\n $domain = null;\n $locale = null;\n\n if (!$stream->test(Token::BLOCK_END_TYPE)) {\n if ($stream->test('count')) {", "middle": " the 'trans' tag.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class TransTokenParser extends AbstractTokenParser\n{\n public function parse(Token $token): Node\n {\n $lineno = $token->getLine();\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/TokenParser/TransTokenParser.php", "language": "php", "file_size": 2754, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Node;\n\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Twig\\Attribute\\YieldReady;\nuse Twig\\Compiler;\nuse Twig\\Node\\Node;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\n#[YieldReady]\nfinal class FormThemeNode extends Node\n{\n public function", "suffix": "compiler): void\n {\n $compiler\n ->addDebugInfo($this)\n ->write('$this->env->getRuntime(')\n ->string(FormRenderer::class)\n ->raw(')->setTheme(')\n ->subcompile($this->getNode('form'))\n ", "middle": " __construct(Node $form, Node $resources, int $lineno, bool $only = false)\n {\n parent::__construct(['form' => $form, 'resources' => $resources], ['only' => $only], $lineno);\n }\n\n public function compile(Compiler $", "meta": {"filepath": "src/Symfony/Bridge/Twig/Node/FormThemeNode.php", "language": "php", "file_size": 1206, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Node;\n\nuse Twig\\Compiler;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Expression\\ConstantExpression;\nuse Twig\\Node\\Expression\\FunctionExpression;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nfinal class SearchAndRenderBlockNode extends FunctionExpression\n{\n public function compile(Compiler $compiler): void\n {\n ", "suffix": " $arguments = iterator_to_array($this->getNode('arguments'));\n $blockNameSuffix = $matches[1];\n\n if (isset($arguments[0])) {\n $compiler->subcompile($arguments[0]);\n $compiler->raw(', \\''.$blockNameSuffix.'\\'');\n\n ", "middle": " $compiler->addDebugInfo($this);\n $compiler->raw('$this->env->getRuntime(\\'Symfony\\Component\\Form\\FormRenderer\\')->searchAndRenderBlock(');\n\n preg_match('/_([^_]+)$/', $this->getAttribute('name'), $matches);\n\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Node/SearchAndRenderBlockNode.php", "language": "php", "file_size": 4665, "cut_index": 614, "middle_length": 229}} {"prefix": "nParser\\FormThemeTokenParser;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceGroupView;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFilter;\nuse Twig\\TwigFunction;\nuse Twig\\TwigTest;\n\n/**\n * FormExtension extends Twig wit", "suffix": "e ?TranslatorInterface $translator = null,\n ) {\n }\n\n public function getTokenParsers(): array\n {\n return [\n // {% form_theme form \"SomeBundle::widgets.twig\" %}\n new FormThemeTokenParser(),\n ];\n }\n\n publ", "middle": "h form capabilities.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nfinal class FormExtension extends AbstractExtension\n{\n public function __construct(\n privat", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/FormExtension.php", "language": "php", "file_size": 10292, "cut_index": 921, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Node;\n\nuse Twig\\Compiler;\nuse Twig\\Node\\Expression\\FunctionExpression;\n\n/**\n * Compiles a call to {@link \\Symfony\\Component\\Form\\FormRendererInterface::renderBlock()}.\n *\n * The function name is used as block name. For example, if the function name\n * is \"", "suffix": "ler->addDebugInfo($this);\n $arguments = iterator_to_array($this->getNode('arguments'));\n $compiler->write('$this->env->getRuntime(\\'Symfony\\Component\\Form\\FormRenderer\\')->renderBlock(');\n\n if (isset($arguments[0])) {\n $comp", "middle": "foo\", the block \"foo\" will be rendered.\n *\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nfinal class RenderBlockNode extends FunctionExpression\n{\n public function compile(Compiler $compiler): void\n {\n $compi", "meta": {"filepath": "src/Symfony/Bridge/Twig/Node/RenderBlockNode.php", "language": "php", "file_size": 1306, "cut_index": 524, "middle_length": 229}} {"prefix": " Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FileType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\RadioType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormError;\n\n/**\n * Abstract class providing test cases for the Bootstrap 5 horizontal Twig form theme.\n *\n * @author Romain Monteil <monteil.romain@gmail.com>\n */\nabstract class AbstractBootstrap5HorizontalLayoutTestCase extends AbstractBootstrap5LayoutTestCa", "suffix": "w($form->get('name')->createView());\n\n $this->assertMatchesXpath($html,\n '/div\n [@class=\"mb-3 row\"]\n [\n ./label\n [@for=\"name\"]\n [@class=\"col-form-label col-sm-2 required\"]\n /following-sibling::div", "middle": "se\n{\n public function testRow()\n {\n $form = $this->factory->createNamed('')->add('name', TextType::class);\n $form->get('name')->addError(new FormError('[trans]Error![/trans]'));\n $html = $this->renderRo", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5HorizontalLayoutTestCase.php", "language": "php", "file_size": 10593, "cut_index": 921, "middle_length": 229}} {"prefix": "tRow()\n {\n $form = $this->factory->createNamed('')->add('name', TextType::class);\n $form->get('name')->addError(new FormError('[trans]Error![/trans]'));\n $html = $this->renderRow($form->get('name')->createView());\n\n $this->assertMatchesXpath($html,\n '/div\n [@class=\"mb-3\"]\n [\n ./label[@for=\"name\"]\n /following-sibling::input[@id=\"name\"]\n /following-sibling::div\n [@class=\"invalid-feedback d-block\"]\n [.=\"[trans]Error![/tr", "suffix": "Error('[trans]Error![/trans]'));\n $html = $this->renderRow($form->get('name')->createView(), [\n 'row_attr' => [\n 'class' => 'mb-5',\n ],\n ]);\n\n $this->assertMatchesXpath($html,\n '/div\n ", "middle": "ans]\"]\n ]\n [count(./div)=1]\n'\n );\n }\n\n public function testRowWithCustomClass()\n {\n $form = $this->factory->createNamed('')->add('name', TextType::class);\n $form->get('name')->addError(new Form", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php", "language": "php", "file_size": 60885, "cut_index": 2151, "middle_length": 229}} {"prefix": "l,\n '/div\n [\n ./label[@for=\"name\"]\n /following-sibling::ul\n [./li[.=\"[trans]Error![/trans]\"]]\n [count(./li)=1]\n /following-sibling::input[@id=\"name\"]\n ]\n'\n );\n }\n\n public function testRowOverrideVariables()\n {\n $view = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType')->createView();\n $html = $this->renderRow($view, [\n 'attr' => ['class' => 'my&class'],\n 'la", "suffix": "foo&bar[/trans]\"]\n /following-sibling::input[@id=\"name\"][@class=\"my&class\"]\n ]\n'\n );\n }\n\n public function testRepeatedRow()\n {\n $form = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\Repeate", "middle": "bel' => 'foo&bar',\n 'label_attr' => ['class' => 'my&label&class'],\n ]);\n\n $this->assertMatchesXpath($html,\n '/div\n [\n ./label[@for=\"name\"][@class=\"my&label&class required\"][.=\"[trans]", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/AbstractDivLayoutTestCase.php", "language": "php", "file_size": 33274, "cut_index": 1331, "middle_length": 229}} {"prefix": " testLabelOnForm()\n {\n $form = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType', null, ['widget' => 'choice']);\n $view = $form->createView();\n $this->renderWidget($view, ['label' => 'foo']);\n $html = $this->renderLabel($view);\n\n $this->assertMatchesXpath($html,\n '/label\n [@class=\"required\"]\n [.=\"[trans]Name[/trans]\"]\n'\n );\n }\n\n public function testLabelWithCustomTextPassedAsOption()\n {\n $fo", "suffix": "ssertMatchesXpath($html,\n '/label\n [@for=\"name\"]\n [.=\"[trans]Custom label[/trans]\"]\n'\n );\n }\n\n public function testLabelWithCustomTextPassedDirectly()\n {\n $form = $this->factory->createNamed('name', 'Symfony\\Componen", "middle": "rm = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType', null, [\n 'label' => 'Custom label',\n ]);\n $html = $this->renderLabel($form->createView());\n\n $this->a", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php", "language": "php", "file_size": 91770, "cut_index": 3790, "middle_length": 229}} {"prefix": "tCase extends AbstractLayoutTestCase\n{\n public function testRow()\n {\n $form = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType');\n $form->addError(new FormError('[trans]Error![/trans]'));\n $view = $form->createView();\n $html = $this->renderRow($view);\n\n $this->assertMatchesXpath($html,\n '/tr\n [\n ./td\n [./label[@for=\"name\"]]\n /following-sibling::td\n [\n ./ul\n ", "suffix": "alse()\n {\n $form = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType', null, [\n 'label' => false,\n ]);\n $html = $this->renderRow($form->createView());\n\n $this->assertMatchesXp", "middle": " [./li[.=\"[trans]Error![/trans]\"]]\n [count(./li)=1]\n /following-sibling::input[@id=\"name\"]\n ]\n ]\n'\n );\n }\n\n public function testLabelIsNotRenderedWhenSetToF", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/AbstractTableLayoutTestCase.php", "language": "php", "file_size": 17031, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\DumpExtension;\nuse Symfony\\Component\\VarDumper\\Cloner\\VarCloner;\nuse Symfony\\Component\\VarDumper\\Dumper\\HtmlDumper;\nuse Symfony\\Component\\VarDumper\\VarDumper;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\n\nclas", "suffix": " $twig = new Environment(new ArrayLoader(['template' => $template]), [\n 'debug' => $debug,\n 'cache' => false,\n 'optimizations' => 0,\n ]);\n $twig->addExtension($extension);\n\n $dumped = null;\n $exc", "middle": "s DumpExtensionTest extends TestCase\n{\n #[DataProvider('getDumpTags')]\n public function testDumpTag($template, $debug, $expectedOutput, $expectedDumped)\n {\n $extension = new DumpExtension(new VarCloner());\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/DumpExtensionTest.php", "language": "php", "file_size": 4842, "cut_index": 614, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\EmojiExtension;\n\n#[RequiresPhpExtension('intl')]\nclass EmojiExtensionTest extends TestCase\n{\n #[TestWith([", "suffix": ")]\n #[TestWith(['🅰', ':a:', 'github'])]\n public function testEmojify(string $expected, string $string, ?string $catalog = null)\n {\n $extension = new EmojiExtension();\n $this->assertSame($expected, $extension->emojify($string, $catalo", "middle": "'🅰️', ':a:'])]\n #[TestWith(['🅰️', ':a:', 'slack']", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/EmojiExtensionTest.php", "language": "php", "file_size": 893, "cut_index": 559, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\ExpressionExtension;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\n\nclass ExpressionExtensionTest extends TestCase\n{\n public function testExpressionCreation()\n {\n $template = \"{", "suffix": "ronment(new ArrayLoader(['template' => $template]), ['debug' => true, 'cache' => false, 'autoescape' => 'html', 'optimizations' => 0]);\n $twig->addExtension(new ExpressionExtension());\n\n $output = $twig->render('template');\n $this->ass", "middle": "{ expression('1 == 1') }}\";\n $twig = new Envi", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/ExpressionExtensionTest.php", "language": "php", "file_size": 893, "cut_index": 547, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\StubTranslator;\n\nclass FormExtensionBootstrap3HorizontalLayoutTest extends Abs", "suffix": "s/Form',\n __DIR__.'/Fixtures/templates/form',\n ];\n }\n\n protected function getTwigExtensions(): array\n {\n return [\n new TranslationExtension(new StubTranslator()),\n new FormExtension(),\n ];\n ", "middle": "tractBootstrap3HorizontalLayoutTestCase\n{\n protected array $testableFeatures = [\n 'choice_attr',\n ];\n\n protected function getTemplatePaths(): array\n {\n return [\n __DIR__.'/../../Resources/view", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionBootstrap3HorizontalLayoutTest.php", "language": "php", "file_size": 1185, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\StubTranslator;\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManager;\nuse Twig\\Envir", "suffix": "ctory->create('Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', null, [\n 'method' => 'get',\n 'action' => '',\n ]);\n\n $html = $this->renderStart($form->createView());\n\n $this->assertSame('<form name=\"form\" meth", "middle": "onment;\nuse Twig\\Loader\\FilesystemLoader;\n\nclass FormExtensionBootstrap3LayoutTest extends AbstractBootstrap3LayoutTestCase\n{\n public function testStartTagHasNoActionAttributeWhenActionIsEmpty()\n {\n $form = $this->fa", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionBootstrap3LayoutTest.php", "language": "php", "file_size": 3369, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\StubTranslator;\n\n/**\n * Class providing test cases for the Bootstrap 4 Twig form the", "suffix": "\n ];\n\n protected function getTemplatePaths(): array\n {\n return [\n __DIR__.'/../../Resources/views/Form',\n __DIR__.'/Fixtures/templates/form',\n ];\n }\n\n protected function getTwigExtensions(): array\n {\n ", "middle": "me.\n *\n * @author Hidde Wieringa <hidde@hiddewieringa.nl>\n */\nclass FormExtensionBootstrap4HorizontalLayoutTest extends AbstractBootstrap4HorizontalLayoutTestCase\n{\n protected array $testableFeatures = [\n 'choice_attr',", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionBootstrap4HorizontalLayoutTest.php", "language": "php", "file_size": 1314, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\StubTranslator;\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManager;\nuse Twig\\Envir", "suffix": "s AbstractBootstrap4LayoutTestCase\n{\n public function testStartTagHasNoActionAttributeWhenActionIsEmpty()\n {\n $form = $this->factory->create('Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', null, [\n 'method' => 'get',\n ", "middle": "onment;\nuse Twig\\Loader\\FilesystemLoader;\n\n/**\n * Class providing test cases for the Bootstrap 4 horizontal Twig form theme.\n *\n * @author Hidde Wieringa <hidde@hiddewieringa.nl>\n */\nclass FormExtensionBootstrap4LayoutTest extend", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionBootstrap4LayoutTest.php", "language": "php", "file_size": 3536, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\StubTranslator;\n\n/**\n * Class providing test cases for the Bootstrap 5 horizontal Tw", "suffix": "choice_attr',\n ];\n\n protected function getTemplatePaths(): array\n {\n return [\n __DIR__.'/../../Resources/views/Form',\n __DIR__.'/Fixtures/templates/form',\n ];\n }\n\n protected function getTwigExtensions(): a", "middle": "ig form theme.\n *\n * @author Romain Monteil <monteil.romain@gmail.com>\n */\nclass FormExtensionBootstrap5HorizontalLayoutTest extends AbstractBootstrap5HorizontalLayoutTestCase\n{\n protected array $testableFeatures = [\n '", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionBootstrap5HorizontalLayoutTest.php", "language": "php", "file_size": 1327, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\StubTranslator;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\Money", "suffix": " *\n * @author Romain Monteil <monteil.romain@gmail.com>\n */\nclass FormExtensionBootstrap5LayoutTest extends AbstractBootstrap5LayoutTestCase\n{\n public function testStartTagHasNoActionAttributeWhenActionIsEmpty()\n {\n $form = $this->factory->cre", "middle": "Type;\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManager;\nuse Twig\\Environment;\nuse Twig\\Loader\\FilesystemLoader;\n\n/**\n * Class providing test cases for the Bootstrap 5 Twig form theme.\n", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionBootstrap5LayoutTest.php", "language": "php", "file_size": 3415, "cut_index": 614, "middle_length": 229}} {"prefix": " {\n $form = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType', null, ['widget' => 'choice']);\n $view = $form->createView();\n $this->renderWidget($view, ['label' => 'foo']);\n $html = $this->renderLabel($view);\n\n $this->assertMatchesXpath($html,\n '/label\n [@class=\"label required\"]\n [.=\"[trans]Name[/trans]\"]\n'\n );\n }\n\n public function testLabelDoesNotRenderFieldAttributes()\n {\n $form = $this->fac", "suffix": " ]);\n\n $this->assertMatchesXpath($html,\n '/label\n [@for=\"name\"]\n [@class=\"label required\"]\n'\n );\n }\n\n public function testHelp()\n {\n $form = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extens", "middle": "tory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType');\n $html = $this->renderLabel($form->createView(), null, [\n 'attr' => [\n 'class' => 'my&class',\n ],\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionDaisyUi5LayoutTest.php", "language": "php", "file_size": 27278, "cut_index": 1331, "middle_length": 229}} {"prefix": "ension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\StubTranslator;\nuse Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView;\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManager;\nuse Twig\\Environment;\nuse Twig\\Loader\\FilesystemLoader;\n\nclass FormExtensionDivLayoutTest extends AbstractDivLayoutTestCase\n{\n public function testThemeBlockInheritanceUsingUse()\n", "suffix": " $this->assertMatchesXpath(\n $this->renderWidget($view),\n '/input[@type=\"email\"][@rel=\"theme\"]'\n );\n }\n\n public function testThemeBlockInheritanceUsingExtend()\n {\n $view = $this->factory\n ->createNam", "middle": " {\n $view = $this->factory\n ->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType')\n ->createView()\n ;\n\n $this->setTheme($view, ['theme_use.html.twig']);\n\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionDivLayoutTest.php", "language": "php", "file_size": 11475, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Translation;\n\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Translation\\Extractor\\AbstractFileExtractor;\nuse Symfony\\Component\\Translation\\Extractor\\ExtractorInterface;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse T", "suffix": "m>\n */\nclass TwigExtractor extends AbstractFileExtractor implements ExtractorInterface\n{\n /**\n * Default domain for found messages.\n */\n private string $defaultDomain = 'messages';\n\n /**\n * Prefix for found message.\n */\n private", "middle": "wig\\Environment;\nuse Twig\\Error\\Error;\nuse Twig\\Source;\n\n/**\n * TwigExtractor extracts translation messages from a twig template.\n *\n * @author Michel Salib <michelsalib@hotmail.com>\n * @author Fabien Potencier <fabien@symfony.co", "meta": {"filepath": "src/Symfony/Bridge/Twig/Translation/TwigExtractor.php", "language": "php", "file_size": 2508, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\NodeVisitor;\n\n/**\n * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>\n */\nclass Scope\n{\n private array $data = [];\n private bool $left = false;\n\n public function __construct(\n private ?self $parent = null,\n ) {\n }\n\n /**\n * Op", "suffix": "his->left = true;\n\n return $this->parent;\n }\n\n /**\n * Stores data into current scope.\n *\n * @return $this\n *\n * @throws \\LogicException\n */\n public function set(string $key, mixed $value): static\n {\n if ($t", "middle": "ens a new child scope.\n */\n public function enter(): self\n {\n return new self($this);\n }\n\n /**\n * Closes current scope and returns parent one.\n */\n public function leave(): ?self\n {\n $t", "meta": {"filepath": "src/Symfony/Bridge/Twig/NodeVisitor/Scope.php", "language": "php", "file_size": 1887, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\NodeVisitor;\n\nuse Symfony\\Bridge\\Twig\\Node\\TransNode;\nuse Twig\\Environment;\nuse Twig\\Node\\Expression\\Binary\\ConcatBinary;\nuse Twig\\Node\\Expression\\ConstantExpression;\nuse Twig\\Node\\Expression\\FilterExpression;\nuse Twig\\Node\\Expression\\FunctionExpression;\nuse Twig\\Node\\Node;\nuse Twig\\NodeVisitor\\NodeVisitorInterface;\n\n/**\n * TranslationNodeVisitor extracts translation messages.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class ", "suffix": "his->enabled = true;\n $this->messages = [];\n }\n\n public function disable(): void\n {\n $this->enabled = false;\n $this->messages = [];\n }\n\n public function getMessages(): array\n {\n return $this->messages;\n }\n\n ", "middle": "TranslationNodeVisitor implements NodeVisitorInterface\n{\n public const UNDEFINED_DOMAIN = '_undefined';\n\n private bool $enabled = false;\n private array $messages = [];\n\n public function enable(): void\n {\n $t", "meta": {"filepath": "src/Symfony/Bridge/Twig/NodeVisitor/TranslationNodeVisitor.php", "language": "php", "file_size": 6282, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Attribute\\HasNamedArguments;\nuse Symfony\\Component\\Validator\\Constraint;\n\n/**\n * @author Mokhtar Tlili <tlili.mokhtar@gmail.com>\n */\n#[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TAR", "suffix": "LID_TWIG_ERROR',\n ];\n\n #[HasNamedArguments]\n public function __construct(\n public string $message = 'This value is not a valid Twig template.',\n public bool $skipDeprecations = true,\n ?array $groups = null,\n mixed $payl", "middle": "GET_METHOD | \\Attribute::IS_REPEATABLE)]\nclass Twig extends Constraint\n{\n public const INVALID_TWIG_ERROR = 'e7fc55d5-e586-4cc1-924e-d27ee7fcd1b5';\n\n protected const ERROR_NAMES = [\n self::INVALID_TWIG_ERROR => 'INVA", "meta": {"filepath": "src/Symfony/Bridge/Twig/Validator/Constraints/Twig.php", "language": "php", "file_size": 1082, "cut_index": 515, "middle_length": 229}} {"prefix": "sole\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\Sy", "suffix": "and output encountered errors.\n *\n * @author Marc Weistroff <marc.weistroff@sensiolabs.com>\n * @author Jérôme Tamarelle <jerome@tamarelle.net>\n */\n#[AsCommand(name: 'lint:twig', description: 'Lint a Twig template and outputs encountered errors')]\nclass Lin", "middle": "mfonyStyle;\nuse Symfony\\Component\\Finder\\Finder;\nuse Twig\\Environment;\nuse Twig\\Error\\Error;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Loader\\FilesystemLoader;\nuse Twig\\Source;\n\n/**\n * Command that will validate your template syntax ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Command/LintCommand.php", "language": "php", "file_size": 11859, "cut_index": 921, "middle_length": 229}} {"prefix": "\nuse Symfony\\Bridge\\Twig\\AppVariable;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockArraySessionStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Compon", "suffix": "ppVariable = new AppVariable();\n }\n\n #[DataProvider('debugDataProvider')]\n public function testDebug($debugFlag)\n {\n $this->appVariable->setDebug($debugFlag);\n\n $this->assertEquals($debugFlag, $this->appVariable->getDebug());\n ", "middle": "ent\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Translation\\LocaleSwitcher;\n\nclass AppVariableTest extends TestCase\n{\n protected AppVariable $appVariable;\n\n protected function setUp(): void\n {\n $this->a", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/AppVariableTest.php", "language": "php", "file_size": 10514, "cut_index": 921, "middle_length": 229}} {"prefix": "html = $this->renderLabel($form->createView(), null, [\n 'label_attr' => [\n 'class' => 'my&class',\n ],\n ]);\n\n $this->assertMatchesXpath($html, '/label[@for=\"name\"][@class=\"my&class control-label required\"][.=\"[trans]<b>Bolded label</b>[/trans]\"]');\n $this->assertMatchesXpath($html, '/label[@for=\"name\"][@class=\"my&class control-label required\"]/b[.=\"Bolded label\"]', 0);\n }\n\n public function testLabelHtmlIsTrue()\n {\n $form = $this->facto", "suffix": "iew(), null, [\n 'label_attr' => [\n 'class' => 'my&class',\n ],\n ]);\n\n $this->assertMatchesXpath($html, '/label[@for=\"name\"][@class=\"my&class control-label required\"][.=\"[trans]<b>Bolded label</b>[/trans]\"]'", "middle": "ry->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType', null, [\n 'label' => '<b>Bolded label</b>',\n 'label_html' => true,\n ]);\n\n $html = $this->renderLabel($form->createV", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php", "language": "php", "file_size": 96036, "cut_index": 3790, "middle_length": 229}} {"prefix": " [./span[.=\"[trans]Error![/trans]\"]]\n ]\n [count(./span)=1]\n /following-sibling::input[@id=\"name\"]\n ]\n'\n );\n }\n\n public function testLabelOnForm()\n {\n $form = $this->factory->createNamed('name', DateType::class, null, ['widget' => 'choice']);\n $view = $form->createView();\n $this->renderWidget($view, ['label' => 'foo']);\n $html = $this->renderLabel($view);\n\n $this->assertMatchesXpath($html,\n '/legend\n [@class=\"c", "suffix": "his->renderLabel($form->createView(), null, [\n 'attr' => [\n 'class' => 'my&class',\n ],\n ]);\n\n $this->assertMatchesXpath($html,\n '/label\n [@for=\"name\"]\n [@class=\"required\"]\n'\n );\n ", "middle": "ol-form-label required\"]\n [.=\"[trans]Name[/trans]\"]\n'\n );\n }\n\n public function testLabelDoesNotRenderFieldAttributes()\n {\n $form = $this->factory->createNamed('name', TextType::class);\n $html = $t", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php", "language": "php", "file_size": 40016, "cut_index": 2151, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Node;\n\nuse Twig\\Attribute\\YieldReady;\nuse Twig\\Compiler;\nuse Twig\\Node\\Expression\\AssignNameExpression;\nuse Twig\\Node\\Expression\\Variable\\LocalVariable;\nuse Twig\\Node\\Node;\n\n/**\n * Represents a stopwatch node.\n *\n * @author Wouter J <wouter@wouterj.nl>\n */\n#[YieldReady", "suffix": "r' => $var], [], $lineno);\n }\n\n public function compile(Compiler $compiler): void\n {\n $compiler\n ->addDebugInfo($this)\n ->write('')\n ->subcompile($this->getNode('var'))\n ->raw(' = ')\n -", "middle": "]\nfinal class StopwatchNode extends Node\n{\n public function __construct(Node $name, Node $body, AssignNameExpression|LocalVariable $var, int $lineno = 0)\n {\n parent::__construct(['body' => $body, 'name' => $name, 'va", "meta": {"filepath": "src/Symfony/Bridge/Twig/Node/StopwatchNode.php", "language": "php", "file_size": 1561, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\Security\\Http\\Logout\\LogoutUrlGenerator;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFunction;\n\n/**\n * LogoutUrlHelper provides generator functions for the logout URL to Twig.\n *\n * @author Jeremy Mikola <jmikola@gmail.com>\n */\n", "suffix": " new TwigFunction('logout_url', $this->getLogoutUrl(...)),\n new TwigFunction('logout_path', $this->getLogoutPath(...)),\n ];\n }\n\n /**\n * Generates the relative logout URL for the firewall.\n *\n * @param string|null $key T", "middle": "final class LogoutUrlExtension extends AbstractExtension\n{\n public function __construct(\n private LogoutUrlGenerator $generator,\n ) {\n }\n\n public function getFunctions(): array\n {\n return [\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/LogoutUrlExtension.php", "language": "php", "file_size": 1515, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Expression\\ConstantExpression;\nuse Twig\\Node\\Node;\nuse Twig\\TwigFunction;\n\n/**\n * Provides integration of the Routing component with Twig.\n *\n * @author Fabien Potencier <fabien", "suffix": "return [\n new TwigFunction('url', $this->getUrl(...), ['is_safe_callback' => $this->isUrlGenerationSafe(...)]),\n new TwigFunction('path', $this->getPath(...), ['is_safe_callback' => $this->isUrlGenerationSafe(...)]),\n ];\n }\n", "middle": "@symfony.com>\n */\nfinal class RoutingExtension extends AbstractExtension\n{\n public function __construct(\n private UrlGeneratorInterface $generator,\n ) {\n }\n\n public function getFunctions(): array\n {\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/RoutingExtension.php", "language": "php", "file_size": 3419, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\Workflow\\Registry;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\TransitionBlockerList;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFunction;\n\n/**\n * WorkflowExtension.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n * @author Carlos Pereira De Amorim <carlos@shauri.fr>\n *", "suffix": "new TwigFunction('workflow_can', $this->canTransition(...)),\n new TwigFunction('workflow_transitions', $this->getEnabledTransitions(...)),\n new TwigFunction('workflow_transition', $this->getEnabledTransition(...)),\n new Twi", "middle": "/\nfinal class WorkflowExtension extends AbstractExtension\n{\n public function __construct(\n private Registry $workflowRegistry,\n ) {\n }\n\n public function getFunctions(): array\n {\n return [\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php", "language": "php", "file_size": 3936, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Mime;\n\nuse Symfony\\Component\\Mime\\Email;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass TemplatedEmail extends Email\n{\n private ?string $htmlTemplate = null;\n private ?string $textTemplate = null;\n private ?string $locale = null;\n private array $context = [];\n\n /", "suffix": "lTemplate(?string $template): static\n {\n $this->htmlTemplate = $template;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function locale(?string $locale): static\n {\n $this->locale = $locale;\n\n retur", "middle": "**\n * @return $this\n */\n public function textTemplate(?string $template): static\n {\n $this->textTemplate = $template;\n\n return $this;\n }\n\n /**\n * @return $this\n */\n public function htm", "meta": {"filepath": "src/Symfony/Bridge/Twig/Mime/TemplatedEmail.php", "language": "php", "file_size": 2346, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Form;\n\nuse Symfony\\Component\\Form\\AbstractRendererEngine;\nuse Symfony\\Component\\Form\\FormView;\nuse Twig\\Environment;\nuse Twig\\Template;\n\n/**\n * @author Bernhard Schussek <bschussek@gmail.com>\n */\nclass TwigRendererEngine extends AbstractRendererEngine\n{\n private Template $template;\n\n public function __construct(\n array $defaultThemes,\n private Environment $environment,\n ) {\n parent::__construct($defaultThemes);\n ", "suffix": "t->getGlobals();\n\n ob_start();\n\n // By contract,This method can only be called after getting the resource\n // (which is passed to the method). Getting a resource for the first time\n // (with an empty cache) is guaranteed to invo", "middle": " }\n\n public function renderBlock(FormView $view, mixed $resource, string $blockName, array $variables = []): string\n {\n $cacheKey = $view->vars[self::CACHE_KEY_VAR];\n\n $context = $variables + $this->environmen", "meta": {"filepath": "src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php", "language": "php", "file_size": 7215, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Node;\n\nuse Twig\\Attribute\\YieldReady;\nuse Twig\\Compiler;\nuse Twig\\Node\\Expression\\Variable\\LocalVariable;\nuse Twig\\Node\\Node;\n\n/**\n * @author Julien Galenski <julien.galenski@gmail.com>\n */\n#[YieldReady]\nfinal class DumpNode extends Node\n{\n public function __construct(\n private LocalV", "suffix": "o);\n }\n\n public function compile(Compiler $compiler): void\n {\n if ($this->varPrefix instanceof LocalVariable) {\n $varPrefix = $this->varPrefix->getAttribute('name');\n } else {\n $varPrefix = $this->varPrefix;\n ", "middle": "ariable|string $varPrefix,\n ?Node $values,\n int $lineno,\n ) {\n $nodes = [];\n if (null !== $values) {\n $nodes['values'] = $values;\n }\n\n parent::__construct($nodes, [], $linen", "meta": {"filepath": "src/Symfony/Bridge/Twig/Node/DumpNode.php", "language": "php", "file_size": 3000, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\NodeVisitor;\n\nuse Symfony\\Bridge\\Twig\\Node\\TransDefaultDomainNode;\nuse Symfony\\Bridge\\Twig\\Node\\TransNode;\nuse Twig\\Environment;\nuse Twig\\Node\\BlockNode;\nuse Twig\\Node\\EmptyNode;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Expression\\ConstantExpression;\nuse Twig\\Node\\Expression\\FilterExpression;\nuse Twig\\Node\\Expression\\Variable\\Ass", "suffix": "tencier <fabien@symfony.com>\n */\nfinal class TranslationDefaultDomainNodeVisitor implements NodeVisitorInterface\n{\n private Scope $scope;\n\n public function __construct()\n {\n $this->scope = new Scope();\n }\n\n public function enterNode(N", "middle": "ignContextVariable;\nuse Twig\\Node\\Expression\\Variable\\ContextVariable;\nuse Twig\\Node\\ModuleNode;\nuse Twig\\Node\\Node;\nuse Twig\\Node\\Nodes;\nuse Twig\\Node\\SetNode;\nuse Twig\\NodeVisitor\\NodeVisitorInterface;\n\n/**\n * @author Fabien Po", "meta": {"filepath": "src/Symfony/Bridge/Twig/NodeVisitor/TranslationDefaultDomainNodeVisitor.php", "language": "php", "file_size": 3969, "cut_index": 614, "middle_length": 229}} {"prefix": "erface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\Finder\\Finder;\nuse Twig\\Environment;\nuse Twig\\Loader\\ChainLoader;\nuse Twig\\Loader\\FilesystemLoader;\n\n/**\n * Lists twig functions, filters, globals and tests present in the current project.\n *\n * @author Jordi Boggiano <j.boggiano@seld.be>\n */\n#[AsCommand(name: 'debug:twig', description: 'Show a list of twig functions, filters, globals and tests')]\nclass DebugCom", "suffix": "private array $bundlesMetadata = [],\n private ?string $twigDefaultPath = null,\n private ?FileLinkFormatter $fileLinkFormatter = null,\n ) {\n parent::__construct();\n }\n\n protected function configure(): void\n {\n $this\n ", "middle": "mand extends Command\n{\n /**\n * @var FilesystemLoader[]\n */\n private array $filesystemLoaders;\n\n public function __construct(\n private Environment $twig,\n private ?string $projectDir = null,\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Command/DebugCommand.php", "language": "php", "file_size": 21025, "cut_index": 1331, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nabstract class AbstractBootstrap3HorizontalLayoutTestCase extends AbstractBootstrap3LayoutTestCase\n{\n public function testLabelOnForm()\n {\n $form = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType', null, ['widget' => 'choice']);\n $view = $form->createView();\n $this->renderWidget($view, ['label' => 'foo']);\n $html = $this->renderLabel($view);\n\n $t", "suffix": " $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType');\n $html = $this->renderLabel($form->createView(), null, [\n 'attr' => [\n 'class' => 'my&class',\n ],\n ]);\n\n ", "middle": "his->assertMatchesXpath($html,\n '/label\n [@class=\"col-sm-2 control-label required\"]\n [.=\"[trans]Name[/trans]\"]\n'\n );\n }\n\n public function testLabelDoesNotRenderFieldAttributes()\n {\n $form =", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3HorizontalLayoutTestCase.php", "language": "php", "file_size": 7513, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFunction;\n\n/**\n * Provides integration with the HttpKernel component.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfi", "suffix": "]]),\n new TwigFunction('render_*', [HttpKernelRuntime::class, 'renderFragmentStrategy'], ['is_safe' => ['html']]),\n new TwigFunction('fragment_uri', [HttpKernelRuntime::class, 'generateFragmentUri']),\n new TwigFunction('con", "middle": "nal class HttpKernelExtension extends AbstractExtension\n{\n public function getFunctions(): array\n {\n return [\n new TwigFunction('render', [HttpKernelRuntime::class, 'renderFragment'], ['is_safe' => ['html'", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php", "language": "php", "file_size": 1277, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Extension;\n\nuse Symfony\\Bridge\\Twig\\NodeVisitor\\TranslationDefaultDomainNodeVisitor;\nuse Symfony\\Bridge\\Twig\\NodeVisitor\\TranslationNodeVisitor;\nuse Symfony\\Bridge\\Twig\\TokenParser\\TransDefaultDomainTokenParser;\nuse Symfony\\Bridge\\Twig\\TokenParser\\TransTokenParser;\nuse Symfony\\Component\\Translation\\TranslatableMessage;\nuse Symfony\\Contracts\\Tra", "suffix": "opcache.preload discover always-needed symbols\nclass_exists(TranslatorInterface::class);\nclass_exists(TranslatorTrait::class);\n\n/**\n * Provides integration of the Translation component with Twig.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfina", "middle": "nslation\\TranslatableInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorTrait;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFilter;\nuse Twig\\TwigFunction;\n\n// Help ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Extension/TranslationExtension.php", "language": "php", "file_size": 4744, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Mime;\n\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\Mime\\Part\\File;\nuse Twig\\Environment;\n\n/**\n * @internal\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class WrappedTemplatedEmail\n{\n public function __construct(\n private Environment $twig,\n private TemplatedEmail $message,\n ) {\n }\n\n public function toName(): string\n {\n return $this->mess", "suffix": "/images/logo.png').\n * @param string|null $contentType The media type (i.e. MIME type) of the image file (e.g. 'image/png').\n * Some email clients require this to display embedded images.\n * @param string|null $n", "middle": "age->getTo()[0]->getName();\n }\n\n /**\n * @param string $image A Twig path to the image file. It's recommended to define\n * some Twig namespace for email images (e.g. '@email", "meta": {"filepath": "src/Symfony/Bridge/Twig/Mime/WrappedTemplatedEmail.php", "language": "php", "file_size": 5125, "cut_index": 716, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\TokenParser;\n\nuse Symfony\\Bridge\\Twig\\Node\\TransDefaultDomainNode;\nuse Twig\\Node\\Node;\nuse Twig\\Token;\nuse Twig\\TokenParser\\AbstractTokenParser;\n\n/**\n * Token Parser for the 'trans_default_domain' tag.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class TransDefaultDomainTokenParser extends AbstractTokenParser\n{\n publ", "suffix": "$expr = $this->parser->parseExpression();\n\n $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);\n\n return new TransDefaultDomainNode($expr, $token->getLine());\n }\n\n public function getTag(): string\n {\n return 'trans_defa", "middle": "ic function parse(Token $token): Node\n {\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/TokenParser/TransDefaultDomainTokenParser.php", "language": "php", "file_size": 935, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeException;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedValueException;\nuse Twig\\Environment;\nuse Twig\\Error\\Er", "suffix": " }\n\n public function validate(mixed $value, Constraint $constraint): void\n {\n if (!$constraint instanceof Twig) {\n throw new UnexpectedTypeException($constraint, Twig::class);\n }\n\n if (null === $value || '' === $value)", "middle": "ror;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Source;\n\n/**\n * @author Mokhtar Tlili <tlili.mokhtar@gmail.com>\n */\nclass TwigValidator extends ConstraintValidator\n{\n public function __construct(private Environment $twig)\n {\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Validator/Constraints/TwigValidator.php", "language": "php", "file_size": 2757, "cut_index": 563, "middle_length": 229}} {"prefix": "ng test cases for the Bootstrap 4 horizontal Twig form theme.\n *\n * @author Hidde Wieringa <hidde@hiddewieringa.nl>\n */\nabstract class AbstractBootstrap4HorizontalLayoutTestCase extends AbstractBootstrap4LayoutTestCase\n{\n public function testLabel()\n {\n $form = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType');\n $view = $form->createView();\n $this->renderWidget($view, ['label' => 'foo']);\n $html = $this->renderLabel($view);\n\n ", "suffix": " $form = $this->factory->createNamed('name', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType', null, [\n 'translation_domain' => false,\n ]);\n\n $this->assertMatchesXpath($this->renderLabel($form->createView()),\n '", "middle": "$this->assertMatchesXpath($html,\n '/div\n [@class=\"col-sm-2\"]\n [./label\n [@for=\"name\"]\n [.=\"[trans]Name[/trans]\"]\n ]\n'\n );\n }\n\n public function testLabelWithoutTranslation()\n {\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4HorizontalLayoutTestCase.php", "language": "php", "file_size": 15851, "cut_index": 921, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Attribute;\n\n/**\n * Define the template to render in the controller.\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS | \\Attribute::TARGET_METHOD | \\Attribute::TARGET_FUNCTION)]\nclass Template\n{\n /**\n * @param string $template The name of the template to render\n * @param string[]|null $vars The cont", "suffix": " * @param bool $stream Enables streaming the template\n * @param string|null $block The name of the block to use in the template\n */\n public function __construct(\n public string $template,\n public ?array $vars = null", "middle": "roller method arguments to pass to the template\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Attribute/Template.php", "language": "php", "file_size": 983, "cut_index": 582, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Node;\n\nuse Twig\\Attribute\\YieldReady;\nuse Twig\\Compiler;\nuse Twig\\Node\\Expression\\AbstractExpression;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Expression\\ConstantExpression;\nuse Twig\\Node\\Expression\\Variable\\ContextVariable;\nuse Twig\\Node\\Node;\nuse Twig\\Node\\TextNode;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\n#[Yi", "suffix": " = 0)\n {\n $nodes = ['body' => $body];\n if (null !== $domain) {\n $nodes['domain'] = $domain;\n }\n if (null !== $count) {\n $nodes['count'] = $count;\n }\n if (null !== $vars) {\n $node", "middle": "eldReady]\nfinal class TransNode extends Node\n{\n public function __construct(Node $body, ?Node $domain = null, ?AbstractExpression $count = null, ?AbstractExpression $vars = null, ?AbstractExpression $locale = null, int $lineno", "meta": {"filepath": "src/Symfony/Bridge/Twig/Node/TransNode.php", "language": "php", "file_size": 4051, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\TokenParser;\n\nuse Symfony\\Bridge\\Twig\\Node\\FormThemeNode;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Node;\nuse Twig\\Token;\nuse Twig\\TokenParser\\AbstractTokenParser;\n\n/**\n * Token Parser for the 'form_theme' tag.\n *\n * @author Fabien Potencier <fabien@symfo", "suffix": "his->parser->parseExpression();\n $only = false;\n\n if ($this->parser->getStream()->test(Token::NAME_TYPE, 'with')) {\n $this->parser->getStream()->next();\n $resources = $this->parser->parseExpression();\n\n if ($t", "middle": "ny.com>\n */\nfinal class FormThemeTokenParser extends AbstractTokenParser\n{\n public function parse(Token $token): Node\n {\n $lineno = $token->getLine();\n $stream = $this->parser->getStream();\n\n $form = $t", "meta": {"filepath": "src/Symfony/Bridge/Twig/TokenParser/FormThemeTokenParser.php", "language": "php", "file_size": 1597, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\RoutingExtension;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Node\\Expression\\FilterE", "suffix": "der(), ['debug' => true, 'cache' => false, 'autoescape' => 'html', 'optimizations' => 0]);\n $twig->addExtension(new RoutingExtension($this->createStub(UrlGeneratorInterface::class)));\n\n $nodes = $twig->parse($twig->tokenize(new Source($templa", "middle": "xpression;\nuse Twig\\Source;\n\nclass RoutingExtensionTest extends TestCase\n{\n #[DataProvider('getEscapingTemplates')]\n public function testEscaping($template, $mustBeEscaped)\n {\n $twig = new Environment(new ArrayLoa", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/RoutingExtensionTest.php", "language": "php", "file_size": 2127, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\NodeVisitor;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\NodeVisitor\\TranslationDefaultDomainNodeVisitor;\nuse Symfony\\Bridge\\Twig\\NodeVisitor\\TranslationNodeVisitor;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Node;\n\n", "suffix": "function testDefaultDomainAssignment(Node $node)\n {\n $env = new Environment(new ArrayLoader(), ['cache' => false, 'autoescape' => false, 'optimizations' => 0]);\n $visitor = new TranslationDefaultDomainNodeVisitor();\n\n // visit trans", "middle": "class TranslationDefaultDomainNodeVisitorTest extends TestCase\n{\n private static string $message = 'message';\n private static string $domain = 'domain';\n\n #[DataProvider('getDefaultDomainAssignmentTestData')]\n public ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php", "language": "php", "file_size": 3295, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\NodeVisitor;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\NodeVisitor\\TranslationNodeVisitor;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Expression\\ConstantExpression", "suffix": "('getMessagesExtractionTestData')]\n public function testMessagesExtraction(Node $node, array $expectedMessages)\n {\n $env = new Environment(new ArrayLoader(), ['cache' => false, 'autoescape' => false, 'optimizations' => 0]);\n $visitor = ", "middle": ";\nuse Twig\\Node\\Expression\\FilterExpression;\nuse Twig\\Node\\Expression\\Variable\\ContextVariable;\nuse Twig\\Node\\Node;\nuse Twig\\Node\\Nodes;\nuse Twig\\TwigFilter;\n\nclass TranslationNodeVisitorTest extends TestCase\n{\n #[DataProvider", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php", "language": "php", "file_size": 2263, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\NodeVisitor;\n\nuse Symfony\\Bridge\\Twig\\Node\\TransDefaultDomainNode;\nuse Symfony\\Bridge\\Twig\\Node\\TransNode;\nuse Twig\\Node\\BodyNode;\nuse Twig\\Node\\EmptyNode;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Expression\\ConstantExpression;\nuse Twig\\Node\\Expres", "suffix": " new BodyNode([new ConstantExpression($content, 0)]),\n null,\n new EmptyNode(),\n new EmptyNode(),\n new EmptyNode(),\n new EmptyNode(),\n new Source('', '')\n );\n }\n\n public static f", "middle": "sion\\FilterExpression;\nuse Twig\\Node\\ModuleNode;\nuse Twig\\Node\\Nodes;\nuse Twig\\Source;\nuse Twig\\TwigFilter;\n\nclass TwigNodeProvider\n{\n public static function getModule($content)\n {\n return new ModuleNode(\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/NodeVisitor/TwigNodeProvider.php", "language": "php", "file_size": 1888, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Validator\\Constraints;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Validator\\Constraints\\Twig;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\n\n/**\n * @author Mokhtar Tlili <tlili", "suffix": "er->loadClassMetadata($metadata));\n\n [$bConstraint] = $metadata->getPropertyMetadata('b')[0]->getConstraints();\n self::assertSame('myMessage', $bConstraint->message);\n self::assertSame(['Default', 'TwigDummy'], $bConstraint->groups);\n\n", "middle": ".mokhtar@gmail.com>\n */\nclass TwigTest extends TestCase\n{\n public function testAttributes()\n {\n $metadata = new ClassMetadata(TwigDummy::class);\n $loader = new AttributeLoader();\n self::assertTrue($load", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Validator/Constraints/TwigTest.php", "language": "php", "file_size": 1625, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Validator\\Constraints;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse Symfony\\Bridge\\Twig\\Validator\\Constraints\\Twig;\nuse Symfony\\Bridge\\Twig\\Validator\\Constraints\\TwigValidator;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\Test\\ConstraintValidatorTes", "suffix": "se\n{\n protected function createValidator(): TwigValidator\n {\n $environment = new Environment(new ArrayLoader());\n $environment->addFilter(new TwigFilter('humanize_filter', static fn ($v) => $v));\n $options = ['deprecation_info' =", "middle": "tCase;\nuse Twig\\DeprecatedCallableInfo;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\TwigFilter;\n\n/**\n * @author Mokhtar Tlili <tlili.mokhtar@gmail.com>\n */\nclass TwigValidatorTest extends ConstraintValidatorTestCa", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Validator/Constraints/TwigValidatorTest.php", "language": "php", "file_size": 4243, "cut_index": 614, "middle_length": 229}} {"prefix": "use Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Twig\\Environment;\nuse Twig\\Loader\\ChainLoader;\nuse Twig\\Loader\\FilesystemLoader;\n\nclass DebugCommandTest extends TestCase\n{\n public function testDebugCommand()\n {\n $tester = $this->createCommandTester();\n $ret = $tester->execute([], ['decorated' => false]);\n\n ", "suffix": "r = $this->createCommandTester();\n $ret = $tester->execute(['--filter' => 'abs', '--format' => 'json'], ['decorated' => false]);\n\n $expected = [\n 'filters' => ['abs' => []],\n ];\n\n $this->assertEquals(0, $ret, 'Returns", "middle": " $this->assertEquals(0, $ret, 'Returns 0 in case of success');\n $this->assertStringContainsString('Functions', trim($tester->getDisplay()));\n }\n\n public function testFilterAndJsonFormatOptions()\n {\n $teste", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Command/DebugCommandTest.php", "language": "php", "file_size": 11797, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Command\\LintCommand;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfo", "suffix": "lic function testLintCorrectFile()\n {\n $tester = $this->createCommandTester();\n $filename = $this->createFile('{{ foo }}');\n\n $ret = $tester->execute(['filename' => [$filename]], ['verbosity' => OutputInterface::VERBOSITY_VERBOSE, '", "middle": "ny\\Component\\Console\\Tester\\CommandTester;\nuse Twig\\DeprecatedCallableInfo;\nuse Twig\\Environment;\nuse Twig\\Loader\\FilesystemLoader;\nuse Twig\\TwigFilter;\n\nclass LintCommandTest extends TestCase\n{\n private array $files;\n\n pub", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php", "language": "php", "file_size": 7921, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Attribute\\Template;\nuse Symfony\\Bridge\\Twig\\EventListener\\TemplateAttributeListener;\nuse Symfony\\Bridge\\Twig\\Tests\\Fixtures\\TemplateAttributeController;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfo", "suffix": "nvironment;\nuse Twig\\Loader\\ArrayLoader;\n\nclass TemplateAttributeListenerTest extends TestCase\n{\n public function testAttribute()\n {\n $twig = $this->createMock(Environment::class);\n $twig->expects($this->exactly(3))\n ->method", "middle": "ny\\Component\\HttpKernel\\Event\\ControllerArgumentsMetadata;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ViewEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Twig\\E", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/EventListener/TemplateAttributeListenerTest.php", "language": "php", "file_size": 6335, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\ErrorRenderer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\ErrorRenderer\\TwigErrorRenderer;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer;\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHt", "suffix": "tiveRenderer = $this->createMock(HtmlErrorRenderer::class);\n $nativeRenderer\n ->expects($this->once())\n ->method('render')\n ->with($exception)\n ;\n\n (new TwigErrorRenderer(new Environment(new ArrayLoader", "middle": "tpException;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\n\nclass TwigErrorRendererTest extends TestCase\n{\n public function testFallbackToNativeRendererIfDebugOn()\n {\n $exception = new \\Exception();\n\n $na", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/ErrorRenderer/TwigErrorRendererTest.php", "language": "php", "file_size": 2050, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Test;\n\nuse Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine;\nuse Symfony\\Bridge\\Twig\\Test\\Traits\\RuntimeLoaderProvider;\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Symfony\\Component\\Form\\FormRendererInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\Test\\FormIntegrationTestCase;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenM", "suffix": "e\n{\n use RuntimeLoaderProvider;\n\n protected FormRendererInterface $renderer;\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $loader = new FilesystemLoader($this->getTemplatePaths());\n\n $environment = new Environm", "middle": "anager;\nuse Twig\\Environment;\nuse Twig\\Extension\\ExtensionInterface;\nuse Twig\\Loader\\FilesystemLoader;\n\n/**\n * @author Romain Monteil <monteil.romain@gmail.com>\n */\nabstract class FormLayoutTestCase extends FormIntegrationTestCas", "meta": {"filepath": "src/Symfony/Bridge/Twig/Test/FormLayoutTestCase.php", "language": "php", "file_size": 4895, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\ErrorRenderer;\n\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer;\nuse Symfony\\Component\\ErrorHandler\\Exception\\FlattenException;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Twig\\Environment;\n\n/", "suffix": "rorRendererInterface\n{\n private HtmlErrorRenderer $fallbackErrorRenderer;\n private \\Closure|bool $debug;\n\n /**\n * @param bool|callable $debug The debugging mode as a boolean or a callable that should return it\n */\n public function __con", "middle": "**\n * Provides the ability to render custom Twig-based HTML error pages\n * in non-debug mode, otherwise falls back to HtmlErrorRenderer.\n *\n * @author Yonel Ceruto <yonelceruto@gmail.com>\n */\nclass TwigErrorRenderer implements Er", "meta": {"filepath": "src/Symfony/Bridge/Twig/ErrorRenderer/TwigErrorRenderer.php", "language": "php", "file_size": 2859, "cut_index": 563, "middle_length": 229}} {"prefix": "LogProcessorPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\AssetsContextPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\ContainerBuilderDebugDumpPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\DeprecateJsonStreamerValueTransformerTagPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\ErrorLoggerCompilerPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\JsonPathPass;\nuse Symfony\\Bundle\\FrameworkBundle\\Depe", "suffix": "lerPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\TestServiceContainerRealRefPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\TestServiceContainerWeakRefPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjectio", "middle": "ndencyInjection\\Compiler\\PhpConfigReferenceDumpPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\ProfilerPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\RemoveUnusedSessionMarshallingHand", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php", "language": "php", "file_size": 15079, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\TestBrowserToken;\nuse Symfony\\Component\\BrowserKit\\Cookie;\nuse Symfony\\Component\\BrowserKit\\CookieJar;\nuse Symfony\\Component\\BrowserKit\\History;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\HttpKernel", "suffix": " requests to a Kernel object.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass KernelBrowser extends HttpKernelBrowser\n{\n private bool $hasPerformedRequest = false;\n private bool $profiler = false;\n private bool $reboot = true;\n\n p", "middle": "\\HttpKernelBrowser;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profile as HttpProfile;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * Simulates a browser and makes", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php", "language": "php", "file_size": 8701, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\HttpCache;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\Esi;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache as BaseHttpCache;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\Store;\nuse Symfon", "suffix": "bien Potencier <fabien@symfony.com>\n */\nclass HttpCache extends BaseHttpCache\n{\n protected ?string $cacheDir = null;\n\n private ?StoreInterface $store = null;\n private array $options;\n\n /**\n * @param $cache The cache directory (default used ", "middle": "y\\Component\\HttpKernel\\HttpCache\\StoreInterface;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\SurrogateInterface;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\n/**\n * Manages HTTP cache objects in a Container.\n *\n * @author Fa", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php", "language": "php", "file_size": 2640, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DataCollector;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\RouterDataCollector as BaseRouterDataCollector;\n\n/**\n * @au", "suffix": "roller)) {\n $controller = $controller[0];\n }\n\n if ($controller instanceof RedirectController && $request->attributes->has('_route')) {\n return $request->attributes->get('_route');\n }\n\n return parent::guessR", "middle": "thor Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass RouterDataCollector extends BaseRouterDataCollector\n{\n public function guessRoute(Request $request, mixed $controller): string\n {\n if (\\is_array($cont", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DataCollector/RouterDataCollector.php", "language": "php", "file_size": 1035, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Routing;\n\nuse Symfony\\Component\\Routing\\Loader\\AttributeClassLoader;\nuse Symfony\\Component\\Routing\\Route;\n\n/**\n * AttributeRouteControllerLoader is an implementation of AttributeClassLoader\n * that sets the '_controller' default based on the class and method", "suffix": "efault parameter of a given Route instance.\n */\n protected function configureRoute(Route $route, \\ReflectionClass $class, \\ReflectionMethod $method, object $attr): void\n {\n if ('__invoke' === $method->getName()) {\n $route->setDe", "middle": " names.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Alexandre Daubois <alex.daubois@gmail.com>\n */\nclass AttributeRouteControllerLoader extends AttributeClassLoader\n{\n /**\n * Configures the _controller d", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Routing/AttributeRouteControllerLoader.php", "language": "php", "file_size": 1725, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Routing;\n\nuse Symfony\\Component\\Config\\Exception\\LoaderLoadException;\nuse Symfony\\Component\\Config\\Loader\\DelegatingLoader as BaseDelegatingLoader;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolverInterface;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * DelegatingLoader delegates route loading to other loaders using a loade", "suffix": "lass DelegatingLoader extends BaseDelegatingLoader\n{\n private bool $loading = false;\n\n public function __construct(\n LoaderResolverInterface $resolver,\n private array $defaultOptions = [],\n private array $defaultRequirements = []", "middle": "r resolver.\n *\n * This implementation resolves the _controller attribute from the short notation\n * to the fully-qualified form (from a:b:c to class::method).\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nc", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php", "language": "php", "file_size": 3324, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Routing;\n\nuse Symfony\\Component\\Routing\\Matcher\\CompiledUrlMatcher;\nuse Symfony\\Component\\Routing\\Matcher\\RedirectableUrlMatcherInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @internal\n */\nclass RedirectableCompiled", "suffix": "ony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\RedirectController::urlRedirectAction',\n 'path' => $path,\n 'permanent' => true,\n 'scheme' => $scheme,\n 'httpPort' => $this->context->getHttpPort(),\n 'httpsPort", "middle": "UrlMatcher extends CompiledUrlMatcher implements RedirectableUrlMatcherInterface\n{\n public function redirect(string $path, string $route, ?string $scheme = null): array\n {\n return [\n '_controller' => 'Symf", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Routing/RedirectableCompiledUrlMatcher.php", "language": "php", "file_size": 1127, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Routing;\n\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Config\\Resource\\FileExistenceResource;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\DependencyInjection\\Config\\ContainerParametersResource;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface as SymfonyContainerInterface;\nuse Symfony\\Component\\Dep", "suffix": "text;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Routing\\Router as BaseRouter;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\n\n/**\n * This Router creates the Loader only when the cache is empty.\n *\n * @author Fabien Pot", "middle": "endencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\WarmableInterface;\nuse Symfony\\Component\\Routing\\RequestCon", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Routing/Router.php", "language": "php", "file_size": 7320, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Routing\\Attribute;\n\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AutoconfigureTag;\n\n/**\n * Service tag to autoconfigure routing condition services.\n *\n * You can tag a service:\n *\n * #[AsRoutingConditionService('foo')]\n * class So", "suffix": " #[Route('/page', condition: \"service('foo').bar()\")]\n * public function page(): Response\n * {\n * // ...\n * }\n * }\n */\n#[\\Attribute(\\Attribute::TARGET_CLASS)]\nclass AsRoutingConditionService extends Autoconfig", "middle": "meFooService\n * {\n * public function bar(): bool\n * {\n * // ...\n * }\n * }\n *\n * Then you can use the tagged service in the routing condition:\n *\n * class PageController\n * {\n * ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Routing/Attribute/AsRoutingConditionService.php", "language": "php", "file_size": 1488, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Console;\n\nuse Composer\\InstalledVersions;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Console\\Application as BaseApplication;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Command\\TraceableCommand;\nuse Symfony\\Component\\Console\\Debug\\CliRequest;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\Consol", "suffix": "ent\\HttpKernel\\KernelInterface;\nuse Symfony\\Contracts\\Service\\ContainerAwareInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Application extends BaseApplication implements ContainerAwareInterface\n{\n private bool $commandsRegist", "middle": "eOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Compon", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Console/Application.php", "language": "php", "file_size": 7893, "cut_index": 716, "middle_length": 229}} {"prefix": "fony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>\n *\n * @internal\n */\nabstract class D", "suffix": " ($object instanceof ContainerBuilder) {\n (new AnalyzeServiceReferencesPass(false, false))->process($object);\n }\n\n $deprecatedParameters = [];\n if ($object instanceof ContainerBuilder && isset($options['parameter']) && ($par", "middle": "escriptor implements DescriptorInterface\n{\n protected OutputInterface $output;\n\n public function describe(OutputInterface $output, mixed $object, array $options = []): void\n {\n $this->output = $output;\n\n if", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php", "language": "php", "file_size": 18100, "cut_index": 1331, "middle_length": 229}} {"prefix": "encyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass JsonDescriptor extends Descriptor\n{\n protected function describeRouteCollection(RouteCollection $routes, array $options = []): void\n {\n $data = [];\n for", "suffix": "routes))[$name] ?? []) {\n $data[$name]['aliases'] = $aliases;\n }\n }\n\n $this->writeData($data, $options);\n }\n\n protected function describeRoute(Route $route, array $options = []): void\n {\n $this->write", "middle": "each ($routes->all() as $name => $route) {\n $data[$name] = $this->getRouteData($route);\n if (($showAliases ??= $options['show_aliases'] ?? false) && $aliases = ($reverseAliases ??= $this->getReverseAliases($", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.php", "language": "php", "file_size": 17404, "cut_index": 1331, "middle_length": 229}} {"prefix": "nt\\Routing\\RouteCollection;\n\n/**\n * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass MarkdownDescriptor extends Descriptor\n{\n protected function describeRouteCollection(RouteCollection $routes, array $options = []): void\n {\n $first = true;\n foreach ($routes->all() as $name => $route) {\n if ($first) {\n $first = false;\n } else {\n $this->write(\"\\n\\n\");\n }\n $this->describeRoute(", "suffix": "es: \\n%s\", implode(\"\\n\", array_map(static fn (string $alias): string => \\sprintf(' - %s', $alias), $aliases))));\n }\n }\n $this->write(\"\\n\");\n }\n\n protected function describeRoute(Route $route, array $options = []): void\n ", "middle": "$route, ['name' => $name]);\n if (($showAliases ??= $options['show_aliases'] ?? false) && $aliases = ($reverseAliases ??= $this->getReverseAliases($routes))[$name] ?? []) {\n $this->write(\\sprintf(\"- Alias", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/MarkdownDescriptor.php", "language": "php", "file_size": 18877, "cut_index": 1331, "middle_length": 229}} {"prefix": "omponent\\DependencyInjection\\Argument\\ServiceLocatorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Sym", "suffix": "VERB_COLORS = [\n 'ANY' => 'default',\n 'GET' => 'blue',\n 'QUERY' => 'blue',\n 'HEAD' => 'magenta',\n 'OPTIONS' => 'blue',\n 'POST' => 'green',\n 'PUT' => 'yellow',\n 'PATCH' => 'yellow',\n 'DELETE' =>", "middle": "fony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass TextDescriptor extends Descriptor\n{\n private const ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php", "language": "php", "file_size": 30323, "cut_index": 1331, "middle_length": 229}} {"prefix": "ony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass XmlDescriptor extends Descriptor\n{\n protected function describeRouteCollection(RouteCollection ", "suffix": "s->writeDocument($this->getRouteDocument($route, $options['name'] ?? null));\n }\n\n protected function describeContainerParameters(ParameterBag $parameters, array $options = []): void\n {\n $this->writeDocument($this->getContainerParametersDocu", "middle": "$routes, array $options = []): void\n {\n $this->writeDocument($this->getRouteCollectionDocument($routes, $options));\n }\n\n protected function describeRoute(Route $route, array $options = []): void\n {\n $thi", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php", "language": "php", "file_size": 27278, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Console\\Helper;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Descriptor\\JsonDescriptor;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Descriptor\\MarkdownDescriptor;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Descriptor\\TextDescriptor;\nuse Symf", "suffix": "François Simon <jeanfrancois.simon@sensiolabs.com>\n *\n * @internal\n */\nclass DescriptorHelper extends BaseDescriptorHelper\n{\n public function __construct(?FileLinkFormatter $fileLinkFormatter = null)\n {\n $this\n ->register('txt', new", "middle": "ony\\Bundle\\FrameworkBundle\\Console\\Descriptor\\XmlDescriptor;\nuse Symfony\\Component\\Console\\Helper\\DescriptorHelper as BaseDescriptorHelper;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\n\n/**\n * @author Jean-", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Console/Helper/DescriptorHelper.php", "language": "php", "file_size": 1218, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Kernel;\n\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\KernelTrait;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;\nuse Symfony\\Component\\Routing\\Loader\\PhpFileLoader as RoutingPhpFileLoader;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n/**\n *", "suffix": "ation as private doRegisterContainerConfiguration;\n initializeBundles as protected doInitializeBundles;\n initializeContainer as protected doInitializeContainer;\n getKernelParameters as private doGetKernelParameters;\n getBundlesD", "middle": " A Kernel that provides configuration hooks.\n *\n * @author Ryan Weaver <ryan@knpuniversity.com>\n * @author Fabien Potencier <fabien@symfony.com>\n */\ntrait MicroKernelTrait\n{\n use KernelTrait {\n registerContainerConfigur", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php", "language": "php", "file_size": 5717, "cut_index": 716, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\ErrorHandler\\ErrorRenderer;\n\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface;\n\n/**\n * @internal\n *\n * @author Yonel Ceruto <open@yceruto.dev>\n */\nfinal class RuntimeModeErrorRendererSelector\n{\n /**\n * @param \\Closure():", "suffix": "aram \\Closure(): ErrorRendererInterface $cliErrorRenderer\n */\n public static function select(bool $isWebMode, \\Closure $htmlErrorRenderer, \\Closure $cliErrorRenderer): ErrorRendererInterface\n {\n return ($isWebMode ? $htmlErrorRenderer : $c", "middle": " ErrorRendererInterface $htmlErrorRenderer\n * @p", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/ErrorHandler/ErrorRenderer/RuntimeModeErrorRendererSelector.php", "language": "php", "file_size": 865, "cut_index": 529, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Secrets;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nabstract class AbstractVault\n{\n protected ?string $lastMessage = null;\n\n public function getLastMessage(): ?string\n {\n return $this->lastMessage;\n }\n\n abstract pub", "suffix": "ing $name): bool;\n\n /**\n * @return array<string, string|null>\n */\n abstract public function list(bool $reveal = false): array;\n\n protected function validateName(string $name): void\n {\n if (!preg_match('/^\\w++$/D', $name)) {\n ", "middle": "lic function generateKeys(bool $override = false): bool;\n\n abstract public function seal(string $name, string $value): void;\n\n abstract public function reveal(string $name): ?string;\n\n abstract public function remove(str", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Secrets/AbstractVault.php", "language": "php", "file_size": 1285, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Secrets;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass DotenvVault extends AbstractVault\n{\n public function __construct(\n private string $dotenvFile,\n ) {\n $this->dotenvFile = strtr($dotenvFile, '/', \\DIRECTORY_SEPARATOR);\n }\n\n public function generateKeys(bool $override = false): bool\n {\n ", "suffix": " $this->validateName($name);\n $v = str_replace(\"'\", \"'\\\\''\", $value);\n\n $content = is_file($this->dotenvFile) ? file_get_contents($this->dotenvFile) : '';\n $content = preg_replace(\"/^$name=((\\\\\\\\'|'[^']++')++|.*)/m\", \"$name='$v'\", $", "middle": " $this->lastMessage = 'The dotenv vault doesn\\'t encrypt secrets thus doesn\\'t need keys.';\n\n return false;\n }\n\n public function seal(string $name, string $value): void\n {\n $this->lastMessage = null;\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Secrets/DotenvVault.php", "language": "php", "file_size": 3123, "cut_index": 614, "middle_length": 229}} {"prefix": "mponent\\VarExporter\\VarExporter;\n\n/**\n * @author Tobias Schultze <http://tobion.de>\n * @author Jérémy Derussé <jeremy@derusse.com>\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass SodiumVault extends AbstractVault implements EnvVarLoaderInterface\n{\n private ?string $encryptionKey = null;\n private string|\\Stringable|null $decryptionKey = null;\n private string $pathPrefix;\n private ?string $secretsDir;\n\n /**\n * @param $decryptionKey A string or a stringable object that defines the privat", "suffix": "|\\Stringable|null $decryptionKey = null,\n private ?string $derivedSecretEnvVar = null,\n ) {\n $this->pathPrefix = rtrim(strtr($secretsDir, '/', \\DIRECTORY_SEPARATOR), \\DIRECTORY_SEPARATOR).\\DIRECTORY_SEPARATOR.basename($secretsDir).'.';\n ", "middle": "e key to use to decrypt the vault\n * or null to store generated keys in the provided $secretsDir\n */\n public function __construct(\n string $secretsDir,\n #[\\SensitiveParameter] string", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php", "language": "php", "file_size": 9326, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\SerializerExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\SerializerRuntime;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\SerializerModelFixture;\nuse Symfony\\Compo", "suffix": "ny\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\RuntimeLoader\\ContainerRuntimeLoa", "middle": "nent\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Encoder\\YamlEncoder;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfo", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/SerializerExtensionTest.php", "language": "php", "file_size": 2454, "cut_index": 563, "middle_length": 229}} {"prefix": "nExtension;\nuse Symfony\\Component\\Translation\\Loader\\ArrayLoader;\nuse Symfony\\Component\\Translation\\Translator;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\nuse Twig\\Environment;\nuse Twig\\Error\\SyntaxError;\nuse Twig\\Loader\\ArrayLoader as TwigArrayLoader;\nuse Twig\\TemplateWrapper;\n\nclass TranslationExtensionTest extends TestCase\n{\n public function testEscaping()\n {\n $output = $this->getTemplate('{% trans %}Percent: %value%%% (%msg%){% endtrans %}')->render(['value' => 12, 'msg' => 'app", "suffix": "->getTemplate($template)->render($variables)) {\n echo $template.\"\\n\";\n $loader = new TwigArrayLoader(['index' => $template]);\n $twig = new Environment($loader, ['debug' => true, 'cache' => false]);\n $twig->addExt", "middle": "rox.']);\n\n $this->assertEquals('Percent: 12% (approx.)', $output);\n }\n\n #[DataProvider('getTransTests')]\n public function testTrans($template, $expected, array $variables = [])\n {\n if ($expected != $this", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php", "language": "php", "file_size": 11953, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\WorkflowExtension;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MethodMarkingStore;\nuse Symfony\\Component\\Workflow\\Metadata\\InMemoryMetadataStore;\nuse Symfony\\Component\\Workflow\\Registry;\nuse Symfony\\Component\\Workflow\\S", "suffix": " private WorkflowExtension $extension;\n private Transition $t1;\n\n protected function setUp(): void\n {\n $places = ['ordered', 'waiting_for_payment', 'processed'];\n $transitions = [\n $this->t1 = new Transition('t1', 'order", "middle": "upportStrategy\\InstanceOfSupportStrategy;\nuse Symfony\\Component\\Workflow\\Transition;\nuse Symfony\\Component\\Workflow\\TransitionBlockerList;\nuse Symfony\\Component\\Workflow\\Workflow;\n\nclass WorkflowExtensionTest extends TestCase\n{\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/WorkflowExtensionTest.php", "language": "php", "file_size": 4734, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Flow\\Type\\NavigatorFlowType;\nuse Symfony\\Component\\Form\\Flow\\Type\\NextFlowType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Co", "suffix": "e::class, [\n 'clear_submission' => true,\n ]);\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'with_reset' => true,\n ]);\n }\n\n public function get", "middle": "mponent\\OptionsResolver\\OptionsResolver;\n\nfinal class RegisterNavigatorType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->add('skip', NextFlowTyp", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/Fixtures/FormFlow/RegisterNavigatorType.php", "language": "php", "file_size": 1112, "cut_index": 515, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow\\Step;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nfinal class RegisterConfirmatio", "suffix": "ldForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->add('agreeTerms', CheckboxType::class);\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'inh", "middle": "nType extends AbstractType\n{\n public function bui", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/Fixtures/FormFlow/Step/RegisterConfirmationType.php", "language": "php", "file_size": 927, "cut_index": 547, "middle_length": 52}} {"prefix": "ny\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\Form\\Test\\FormIntegrationTestCase;\nuse Symfony\\Component\\Translation\\TranslatableMessage;\n\nclass FormExtensionFieldHelpersTest extends FormIntegrationTestCase\n{\n private FormExtension $rawExtension;\n private FormExtension $translatorExtension;\n ", "suffix": " = new FormExtension();\n $this->translatorExtension = new FormExtension(new StubTranslator());\n\n $data = [\n 'username' => 'tgalopin',\n 'choice_multiple' => ['sugar', 'salt'],\n ];\n\n $form = $this->factory->c", "middle": " private FormView $view;\n\n protected function getTypes(): array\n {\n return [new TextType(), new ChoiceType()];\n }\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->rawExtension", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionFieldHelpersTest.php", "language": "php", "file_size": 13688, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\StubTranslator;\n\nclass FormExtensionTableLayoutTest extends AbstractTableLayoutTestCase\n{\n public function testStartTagHasNoActionAttributeWhenActionIsEmpty()\n {\n $form = $this->factory->create('Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', null, [\n ", "suffix": "TagHasActionAttributeWhenActionIsZero()\n {\n $form = $this->factory->create('Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', null, [\n 'method' => 'get',\n 'action' => '0',\n ]);\n\n $html = $this->renderStart(", "middle": " 'method' => 'get',\n 'action' => '',\n ]);\n\n $html = $this->renderStart($form->createView());\n\n $this->assertSame('<form name=\"form\" method=\"get\">', $html);\n }\n\n public function testStart", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionTableLayoutTest.php", "language": "php", "file_size": 5781, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\HttpFoundationExtension;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\UrlHelper;\nuse Symfony\\Component\\Routing\\RequestContext;\n\nclass HttpFoundationExtensionTest extends TestCase\n{\n #[DataProvider('getGenerateAbsoluteUrlData'", "suffix": "er($stack));\n\n $this->assertEquals($expected, $extension->generateAbsoluteUrl($path));\n }\n\n public static function getGenerateAbsoluteUrlData()\n {\n return [\n ['http://localhost/foo.png', '/foo.png', '/foo/bar.html'],\n ", "middle": ")]\n public function testGenerateAbsoluteUrl($expected, $path, $pathinfo)\n {\n $stack = new RequestStack();\n $stack->push(Request::create($pathinfo));\n $extension = new HttpFoundationExtension(new UrlHelp", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/HttpFoundationExtensionTest.php", "language": "php", "file_size": 5393, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\ImportMapExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\ImportMapRuntime;\nuse Symfony\\Component\\AssetMapper\\ImportMap\\ImportMapRenderer;\nuse Symfony\\Component\\DependencyInjection\\ServiceL", "suffix": "Environment(new ArrayLoader([\n 'template' => '{{ importmap(\"application\") }}',\n ]), ['debug' => true, 'cache' => false, 'autoescape' => 'html', 'optimizations' => 0]);\n $twig->addExtension(new ImportMapExtension());\n $import", "middle": "ocator;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\RuntimeLoader\\ContainerRuntimeLoader;\n\nclass ImportMapExtensionTest extends TestCase\n{\n public function testItRendersTheImportmap()\n {\n $twig = new ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/ImportMapExtensionTest.php", "language": "php", "file_size": 1644, "cut_index": 537, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow\\Step;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nfinal class RegisterOrganizationTyp", "suffix": "rm(FormBuilderInterface $builder, array $options): void\n {\n $builder->add('company', TextType::class);\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'inherit_data' ", "middle": "e extends AbstractType\n{\n public function buildFo", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/Fixtures/FormFlow/Step/RegisterOrganizationType.php", "language": "php", "file_size": 916, "cut_index": 547, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Mime;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Mime\\NotificationEmail;\n\nclass NotificationEmailTest extends TestCase\n{\n public function test()\n {\n $email = (new NotificationEmail())\n ->markdown('Foo')\n ->exception(new \\Exception())\n ->importance(NotificationEmail::IMPORTANCE_HIGH)\n ->action('Bar', 'http://example.com/')\n ->context(['a' => 'b'])\n ;\n\n", "suffix": "//example.com/',\n 'markdown' => true,\n 'raw' => false,\n 'a' => 'b',\n 'footer_text' => 'Notification email sent by Symfony',\n ], $email->getContext());\n }\n\n public function testSerialize()\n {\n ", "middle": " $this->assertEquals([\n 'importance' => NotificationEmail::IMPORTANCE_HIGH,\n 'content' => 'Foo',\n 'exception' => true,\n 'action_text' => 'Bar',\n 'action_url' => 'http:", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Mime/NotificationEmailTest.php", "language": "php", "file_size": 5919, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Mime;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Mime\\BodyRenderer;\nuse Symfony\\Bridge\\Twig\\Mime\\TemplatedEmail;\nuse Symfony\\Bridge\\Twig\\Mime\\WrappedTemplatedEmail;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Loader\\FilesystemLoader;\n\n/**\n * @author Alexander Hofbauer", "suffix": "ody = $email->toString();\n\n $inlineParts = array_values(array_filter($email->getAttachments(), static fn (DataPart $part) => $part->hasContentId()));\n self::assertCount(3, $inlineParts);\n\n $contentId1 = $inlineParts[0]->getContentId();", "middle": " <a.hofbauer@fify.at\n */\nclass WrappedTemplatedEmailTest extends TestCase\n{\n public function testEmailImage()\n {\n $email = $this->buildEmail('email/image.html.twig');\n $html = $email->getHtmlBody();\n $b", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Mime/WrappedTemplatedEmailTest.php", "language": "php", "file_size": 4510, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\TokenParser;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Node\\FormThemeNode;\nuse Symfony\\Bridge\\Twig\\TokenParser\\FormThemeTokenParser;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Expression\\ConstantExpression;\nuse Twi", "suffix": "{\n $env = new Environment(new ArrayLoader(), ['cache' => false, 'autoescape' => false, 'optimizations' => 0]);\n $env->addTokenParser(new FormThemeTokenParser());\n $source = new Source($source, '');\n $stream = $env->tokenize($sou", "middle": "g\\Node\\Expression\\Variable\\ContextVariable;\nuse Twig\\Parser;\nuse Twig\\Source;\n\nclass FormThemeTokenParserTest extends TestCase\n{\n #[DataProvider('getTestsForFormTheme')]\n public function testCompile($source, $expected)\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php", "language": "php", "file_size": 4041, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Node;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Node\\FormThemeNode;\nuse Symfony\\Bridge\\Twig\\Test\\Traits\\RuntimeLoaderProvider;\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Symfony\\Component\\Form\\FormRendererEngineInterface;\nuse Twig\\Compiler;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Node\\Expression\\ArrayE", "suffix": "ructor()\n {\n $form = new ContextVariable('form', 0);\n $resources = new Nodes([\n new ConstantExpression('tpl1', 0),\n new ConstantExpression('tpl2', 0),\n ]);\n\n $node = new FormThemeNode($form, $resources, ", "middle": "xpression;\nuse Twig\\Node\\Expression\\ConstantExpression;\nuse Twig\\Node\\Expression\\Variable\\ContextVariable;\nuse Twig\\Node\\Nodes;\n\nclass FormThemeTest extends TestCase\n{\n use RuntimeLoaderProvider;\n\n public function testConst", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php", "language": "php", "file_size": 3852, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Node;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Node\\TransNode;\nuse Twig\\Compiler;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Node\\Expression\\Variable\\ContextVariable;\nuse Twig\\Node\\TextNode;\n\n/**\n * @author Asmir Mustafic <goetas@", "suffix": "y, null, null, $vars);\n\n $env = new Environment(new ArrayLoader(), ['strict_variables' => true]);\n $compiler = new Compiler($env);\n\n $this->assertEquals(\n \\sprintf(\n 'yield $this->env->getExtension(\\'Symfony\\B", "middle": "gmail.com>\n */\nclass TransNodeTest extends TestCase\n{\n public function testCompileStrict()\n {\n $body = new TextNode('trans %var%', 0);\n $vars = new ContextVariable('foo', 0);\n $node = new TransNode($bod", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php", "language": "php", "file_size": 1797, "cut_index": 537, "middle_length": 229}} {"prefix": "use Symfony\\Bridge\\Twig\\Extension\\SecurityExtension;\nuse Symfony\\Component\\Security\\Acl\\Voter\\FieldVote;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\UserAuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass SecurityExtensionTest extends TestCase\n{\n public stati", "suffix": "essDecision::class => true]);\n }\n\n #[DataProvider('provideObjectFieldAclCases')]\n public function testIsGrantedCreatesFieldVoteObjectWhenFieldNotNull($object, $field, $expectedSubject)\n {\n $securityChecker = $this->createMock(Authorizati", "middle": "c function setUpBeforeClass(): void\n {\n ClassExistsMock::register(SecurityExtension::class);\n }\n\n protected function tearDown(): void\n {\n ClassExistsMock::withMockedClasses([FieldVote::class => true, Acc", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/SecurityExtensionTest.php", "language": "php", "file_size": 10890, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\StopwatchExtension;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\Stopwatch\\StopwatchEvent;\nuse Twig\\Environment;\nuse Twig\\Error\\RuntimeError;\nuse Twig\\Error\\SyntaxError;\nuse Twig\\Loader\\ArrayLoad", "suffix": "r\" %}', []);\n }\n\n #[DataProvider('getTimingTemplates')]\n public function testTiming($template, $events)\n {\n $twig = new Environment(new ArrayLoader(['template' => $template]), ['debug' => true, 'cache' => false, 'autoescape' => 'html', '", "middle": "er;\n\nclass StopwatchExtensionTest extends TestCase\n{\n public function testFailIfStoppingWrongEvent()\n {\n $this->expectException(SyntaxError::class);\n $this->testTiming('{% stopwatch \"foo\" %}{% endstopwatch \"ba", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php", "language": "php", "file_size": 3470, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\WebLinkExtension;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\WebLink\\Link;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass WebLinkExtensionTest extends TestCase\n{\n private", "suffix": "st);\n\n $this->extension = new WebLinkExtension($requestStack);\n }\n\n public function testLink()\n {\n $this->assertEquals('/foo.css', $this->extension->link('/foo.css', 'preload', ['as' => 'style', 'nopush' => true]));\n\n $link = ", "middle": " Request $request;\n private WebLinkExtension $extension;\n\n protected function setUp(): void\n {\n $this->request = new Request();\n\n $requestStack = new RequestStack();\n $requestStack->push($this->reque", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/WebLinkExtensionTest.php", "language": "php", "file_size": 3312, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow;\n\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow\\Data\\Register;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow\\Step\\RegisterConfirmationType;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow\\Step\\Register", "suffix": "ony\\Component\\Form\\Flow\\FormFlowBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass RegisterType extends AbstractFlowType\n{\n public function buildFormFlow(FormFlowBuilderInterface $builder, array $options): void\n {\n ", "middle": "CredentialsType;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow\\Step\\RegisterOrganizationType;\nuse Symfony\\Component\\Form\\Flow\\AbstractFlowType;\nuse Symfony\\Component\\Form\\Flow\\DataStorage\\InMemoryDataStorage;\nuse Symf", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/Fixtures/FormFlow/RegisterType.php", "language": "php", "file_size": 1607, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow\\Data\\Register;\nuse Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow\\RegisterType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Test\\FormIntegrationTestCase;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\n\nclass FormExtensionFlowHelpersTest extends FormIntegrationTestCase\n{\n ", "suffix": " = new Register();\n\n $view = $this->factory->create(RegisterType::class, $data)\n ->getStepForm()\n ->createView();\n\n $this->assertSame(3, $this->rawExtension->getFormFlowTotalSteps($view));\n $this->assertSame(['org", "middle": " private FormExtension $rawExtension;\n\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->rawExtension = new FormExtension();\n }\n\n public function testFlowAtFirstStep()\n {\n $data", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionFlowHelpersTest.php", "language": "php", "file_size": 7454, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\HttpKernelExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\HttpKernelRuntime;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Compon", "suffix": "FragmentRendererInterface;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentUriGenerator;\nuse Twig\\Environment;\nuse Twig\\Error\\RuntimeError;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\RuntimeLoader\\ContainerRuntimeLoader;\n\nclass HttpKernelExtensionTest extends", "middle": "ent\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentHandler;\nuse Symfony\\Component\\HttpKernel\\Fragment\\", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php", "language": "php", "file_size": 4426, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Mime;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Mime\\BodyRenderer;\nuse Symfony\\Bridge\\Twig\\Mime\\TemplatedEmail;\nuse Symfony\\Component\\Mime\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Mime\\HtmlToTextConverter\\DefaultHtmlToTextConverter;\nuse Symfony\\Component\\Mime\\HtmlToTextConverter\\HtmlToTextConverterInterface;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse", "suffix": "blic function testRenderTextOnly()\n {\n $email = $this->prepareEmail('Text', null);\n $this->assertEquals('Text', $email->getBody()->bodyToString());\n }\n\n public function testRenderHtmlOnlyWithDefaultConverter()\n {\n $html = '", "middle": " Symfony\\Component\\Mime\\Part\\Multipart\\AlternativePart;\nuse Symfony\\Component\\Translation\\LocaleSwitcher;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\TwigFunction;\n\nclass BodyRendererTest extends TestCase\n{\n pu", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Mime/BodyRendererTest.php", "language": "php", "file_size": 7147, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Node;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Node\\DumpNode;\nuse Twig\\Compiler;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\nuse Twig\\Node\\Expression\\Variable\\ContextVariable;\nuse Twig\\Node\\Nodes;\n\nclass DumpNodeTest extends TestCase\n{\n public function testNoVar()\n {\n $node = new DumpNode('bar', null, 7", "suffix": "ext as $barkey => $barval) {\n if (!$barval instanceof \\Twig\\Template) {\n $barvars[$barkey] = $barval;\n }\n }\n // line 7\n \\Symfony\\Component\\VarDumper\\V", "middle": ");\n\n $env = new Environment(new ArrayLoader());\n $compiler = new Compiler($env);\n\n $expected = <<<'EOTXT'\n if ($this->env->isDebug()) {\n $barvars = [];\n foreach ($cont", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Node/DumpNodeTest.php", "language": "php", "file_size": 3409, "cut_index": 614, "middle_length": 229}} {"prefix": "use Twig\\Loader\\ArrayLoader;\nuse Twig\\Node\\Expression\\ArrayExpression;\nuse Twig\\Node\\Expression\\ConstantExpression;\nuse Twig\\Node\\Expression\\Ternary\\ConditionalTernary;\nuse Twig\\Node\\Expression\\Variable\\ContextVariable;\nuse Twig\\Node\\Nodes;\nuse Twig\\TwigFunction;\n\nclass SearchAndRenderBlockNodeTest extends TestCase\n{\n public function testCompileWidget()\n {\n $arguments = new Nodes([\n new ContextVariable('form', 0),\n ]);\n\n $node = new SearchAndRenderBlockNode(new TwigFunc", "suffix": "Renderer\\')->searchAndRenderBlock(%s, \\'widget\\')',\n $this->getVariableGetter('form')\n ),\n trim($compiler->compile($node)->getSource())\n );\n }\n\n public function testCompileWidgetWithVariables()\n {\n ", "middle": "tion('form_widget'), $arguments, 0);\n\n $compiler = new Compiler(new Environment(new ArrayLoader()));\n\n $this->assertEquals(\n \\sprintf(\n '$this->env->getRuntime(\\'Symfony\\Component\\Form\\Form", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php", "language": "php", "file_size": 9943, "cut_index": 921, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures;\n\nuse Symfony\\Contracts\\Translation\\TranslatableInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass StubTranslator implements TranslatorInterface\n{\n public function trans($id, array $parameters = [], $domain = null, $locale = null", "suffix": "> $v) {\n if ($v instanceof TranslatableInterface) {\n $parameters[$k] = $v->trans($this, $locale);\n }\n }\n\n return '[trans]'.strtr($id, $parameters).'[/trans]';\n }\n\n public function getLocale(): string", "middle": "): string\n {\n foreach ($parameters as $k =", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/Fixtures/StubTranslator.php", "language": "php", "file_size": 891, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\HtmlSanitizerExtension;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitizerInterface;\nuse Twig\\Environment;\nuse Twig\\Loader\\Array", "suffix": "sanitize_html(\"bar\") }}',\n ]);\n\n $twig = new Environment($loader, ['debug' => true, 'cache' => false, 'autoescape' => 'html', 'optimizations' => 0]);\n\n $fooSanitizer = $this->createMock(HtmlSanitizerInterface::class);\n $fooSanit", "middle": "Loader;\n\nclass HtmlSanitizerExtensionTest extends TestCase\n{\n public function testSanitizeHtml()\n {\n $loader = new ArrayLoader([\n 'foo' => '{{ \"foobar\"|sanitize_html }}',\n 'bar' => '{{ \"foobar\"|", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/HtmlSanitizerExtensionTest.php", "language": "php", "file_size": 1685, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Mime;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Mime\\TemplatedEmail;\nuse Symfony\\Component\\Mime\\Part\\DataPart;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\PhpDocExtractor;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer;\nuse Symfony\\Component\\Serializer\\No", "suffix": "extends TestCase\n{\n public function test()\n {\n $email = new TemplatedEmail();\n $email->context($context = ['product' => 'Symfony']);\n $this->assertEquals($context, $email->getContext());\n\n $email->textTemplate($template = ", "middle": "rmalizer\\MimeMessageNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\nuse Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer;\nuse Symfony\\Component\\Serializer\\Serializer;\n\nclass TemplatedEmailTest ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Mime/TemplatedEmailTest.php", "language": "php", "file_size": 4816, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Translation;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Translation\\TwigExtractor;\nuse Symfony\\Component\\Translation\\IdentityTranslator;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\n\nclass TwigExtractorTest extends TestCase\n{\n public const CUSTOM_DOMAIN = 'domain'", "suffix": " 'cache' => false,\n 'autoescape' => false,\n ]);\n $twig->addExtension(new TranslationExtension(new IdentityTranslator()));\n\n $extractor = new TwigExtractor($twig);\n $extractor->setPrefix('prefix');\n $catalo", "middle": ";\n\n #[DataProvider('getExtractData')]\n public function testExtract($template, $messages)\n {\n $twig = new Environment(new ArrayLoader(), [\n 'strict_variables' => true,\n 'debug' => true,\n ", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php", "language": "php", "file_size": 6535, "cut_index": 716, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Extension\\Fixtures\\FormFlow\\Step;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\FormBuilderInter", "suffix": "dd('email', EmailType::class);\n $builder->add('password', PasswordType::class);\n }\n\n public function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setDefaults([\n 'inherit_data' => true,\n ]);\n }", "middle": "face;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nfinal class RegisterCredentialsType extends AbstractType\n{\n public function buildForm(FormBuilderInterface $builder, array $options): void\n {\n $builder->a", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Extension/Fixtures/FormFlow/Step/RegisterCredentialsType.php", "language": "php", "file_size": 1034, "cut_index": 512, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\EventListener;\n\nuse Symfony\\Bridge\\Twig\\Attribute\\Template;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent;\nuse Symfony\\C", "suffix": "tributesListener;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Twig\\Environment;\n\nclass TemplateAttributeListener implements EventSubscriberInterface\n{\n public function __construct(\n private Environment $twig,\n ) {\n }\n\n public func", "middle": "omponent\\HttpKernel\\Event\\ControllerArgumentsMetadata;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerAttributeEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\ViewEvent;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ControllerAt", "meta": {"filepath": "src/Symfony/Bridge/Twig/EventListener/TemplateAttributeListener.php", "language": "php", "file_size": 4070, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bridge\\Twig\\Tests\\Form;\n\nuse Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Compo", "suffix": "lectionsDoNotReuseParentBlockPrefixCache()\n {\n $renderer = $this->createRenderer();\n\n $form = $this->factory->create(TaskManagerType::class);\n $form->submit([\n 'taskLists' => [\n [\n 'tasks", "middle": "nent\\Form\\FormRenderer;\nuse Symfony\\Component\\Form\\Test\\FormIntegrationTestCase;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\n\nclass TwigRendererEngineTest extends FormIntegrationTestCase\n{\n public function testNestedCol", "meta": {"filepath": "src/Symfony/Bridge/Twig/Tests/Form/TwigRendererEngineTest.php", "language": "php", "file_size": 3073, "cut_index": 614, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\AssetMapper\\AssetMapperDevServerSubscriber;\nuse Symfony\\Component\\AssetMapper\\AssetMapperInterface;\nuse Symfony\\Component\\AssetMapper\\AssetMapperRepository;\nuse Symfony\\Component\\AssetMapper\\Command\\AssetMapperCompileCommand;\nuse Symfony\\Component\\AssetMapper\\Command\\CompressAssetsCommand;\nuse Symfony\\Component\\AssetMapper\\Command\\DebugAssetMapperCommand;\nuse Symfony\\Component\\AssetMapper\\Command\\ImportMapAuditCommand;\nuse Symfony\\Component\\AssetMapper\\Command\\ImportMapInstallCommand;", "suffix": "Mapper\\Command\\ImportMapUpdateCommand;\nuse Symfony\\Component\\AssetMapper\\CompiledAssetMapperConfigReader;\nuse Symfony\\Component\\AssetMapper\\Compiler\\CssAssetUrlCompiler;\nuse Symfony\\Component\\AssetMapper\\Compiler\\JavaScriptImportPathCompiler;\nuse Symfony\\C", "middle": "\nuse Symfony\\Component\\AssetMapper\\Command\\ImportMapOutdatedCommand;\nuse Symfony\\Component\\AssetMapper\\Command\\ImportMapRemoveCommand;\nuse Symfony\\Component\\AssetMapper\\Command\\ImportMapRequireCommand;\nuse Symfony\\Component\\Asset", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/asset_mapper.php", "language": "php", "file_size": 12285, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\RouterCacheWarmer;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController;\nuse Symfony\\Bundle\\FrameworkBundle\\Routing\\AttributeRouteControllerLoader;\nuse Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader;\nuse Symfony\\Bundle\\FrameworkBundle\\R", "suffix": "uting\\Generator\\CompiledUrlGenerator;\nuse Symfony\\Component\\Routing\\Generator\\Dumper\\CompiledUrlGeneratorDumper;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\Loader\\AttributeDirectoryLoader;\nuse Symfony\\Compo", "middle": "outing\\RedirectableCompiledUrlMatcher;\nuse Symfony\\Bundle\\FrameworkBundle\\Routing\\Router;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\HttpKernel\\EventListener\\RouterListener;\nuse Symfony\\Component\\Ro", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/routing.php", "language": "php", "file_size": 9127, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Scheduler\\EventListener\\DispatchSchedulerEventListener;\nuse Symfony\\Component\\Scheduler\\Messenger\\SchedulerTransportFactory;\nuse Symfony\\Component\\Scheduler\\Messenger\\Serializer\\Normalizer\\SchedulerTriggerNo", "suffix": "r', ServiceCallMessageHandler::class)\n ->args([\n tagged_locator('scheduler.task'),\n ])\n ->tag('messenger.message_handler')\n ->set('scheduler.messenger_transport_factory', SchedulerTransportFactory::cla", "middle": "rmalizer;\nuse Symfony\\Component\\Scheduler\\Messenger\\ServiceCallMessageHandler;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('scheduler.messenger.service_call_message_handle", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/scheduler.php", "language": "php", "file_size": 1680, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\DotenvVault;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\SodiumVault;\nuse Symfony\\Component\\DependencyInjection\\StaticEnvVarLoader;\n\nreturn static function (ContainerConfigur", "suffix": "ion_key')->ignoreOnInvalid(),\n abstract_arg('Secret env var, set in FrameworkExtension'),\n ])\n\n ->set('secrets.env_var_loader', StaticEnvVarLoader::class)\n ->args([service('secrets.vault')])\n ->tag('co", "middle": "ator $container) {\n $container->services()\n ->set('secrets.vault', SodiumVault::class)\n ->args([\n abstract_arg('Secret dir, set in FrameworkExtension'),\n service('secrets.decrypt", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/secrets.php", "language": "php", "file_size": 1344, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bridge\\Twig\\Extension\\CsrfExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\CsrfRuntime;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManager;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface;\nuse Symfony\\Component\\Security\\Csrf\\SameOr", "suffix": "r;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\SessionTokenStorage;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\TokenStorageInterface;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('security", "middle": "iginCsrfListener;\nuse Symfony\\Component\\Security\\Csrf\\SameOriginCsrfTokenManager;\nuse Symfony\\Component\\Security\\Csrf\\TokenGenerator\\TokenGeneratorInterface;\nuse Symfony\\Component\\Security\\Csrf\\TokenGenerator\\UriSafeTokenGenerato", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/security_csrf.php", "language": "php", "file_size": 2915, "cut_index": 563, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Semaphore\\SemaphoreFactory;\nuse Symfony\\Component\\Semaphore\\Serializer\\SemaphoreKeyNormalizer;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('semaphore.factory.abstract', SemaphoreFactory::class)-", "suffix": ")])\n ->call('setLogger', [service('logger')->ignoreOnInvalid()])\n ->tag('monolog.logger', ['channel' => 'semaphore'])\n\n ->set('serializer.normalizer.semaphore_key', SemaphoreKeyNormalizer::class)\n ->tag('serializer.n", "middle": ">abstract()\n ->args([abstract_arg('Store'", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/semaphore.php", "language": "php", "file_size": 953, "cut_index": 582, "middle_length": 52}} {"prefix": "armer;\nuse Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\SerializerErrorRenderer;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\SerializerExtractor;\nuse Symfony\\Component\\Serializer\\Encoder\\CsvEncoder;\nuse Symfony\\Component\\Serializer\\Encoder\\DecoderInterface;\nuse Symfony\\Component\\Serializer\\Encoder\\EncoderInterface;\n", "suffix": "Metadata;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorResolverInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\CacheClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component", "middle": "use Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Encoder\\XmlEncoder;\nuse Symfony\\Component\\Serializer\\Encoder\\YamlEncoder;\nuse Symfony\\Component\\Serializer\\Mapping\\ClassDiscriminatorFromClass", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/serializer.php", "language": "php", "file_size": 12005, "cut_index": 921, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Serializer\\DataCollector\\SerializerDataCollector;\nuse Symfony\\Component\\Serializer\\Debug\\TraceableSerializer;\n\nreturn static function (ContainerConfigurator $container) {\n $contain", "suffix": "llector'),\n 'default',\n ])\n\n ->set('serializer.data_collector', SerializerDataCollector::class)\n ->tag('data_collector', [\n 'template' => '@WebProfiler/Collector/serializer.html.twig',\n ", "middle": "er->services()\n ->set('debug.serializer', TraceableSerializer::class)\n ->decorate('serializer')\n ->args([\n service('debug.serializer.inner'),\n service('serializer.data_co", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/serializer_debug.php", "language": "php", "file_size": 1048, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\Parameter;\nuse Symfony\\Component\\DependencyInjection\\ServicesResetterInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Ht", "suffix": "nel\\CacheWarmer\\CacheWarmerAggregate;\nuse Symfony\\Component\\HttpKernel\\Config\\FileLocator as LegacyFileLocator;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\ServicesResetterInterface as LegacyServicesResetterInterface;\nuse Symfony\\Component\\HttpKer", "middle": "tpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\HttpFoundation\\UriSigner;\nuse Symfony\\Component\\HttpFoundation\\UrlHelper;\nuse Symfony\\Component\\HttpKernel\\CacheClearer\\ChainCacheClearer;\nuse Symfony\\Component\\HttpKer", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/services.php", "language": "php", "file_size": 6469, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionFactory;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\AbstractSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\IdentityMarshaller;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\MarshallingSession", "suffix": "age\\Handler\\StrictSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockFileSessionStorageFactory;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorag", "middle": "Handler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeFileSessionHandler;\nuse Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\SessionHandlerFactory;\nuse Symfony\\Component\\HttpFoundation\\Session\\Stor", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/session.php", "language": "php", "file_size": 4946, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\FrameworkBundle\\KernelBrowser;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\TestContainer;\nuse Symfony\\Component\\BrowserKit\\CookieJar;\nuse Symfony\\Component\\BrowserKit\\History;\nuse Symfony\\Component\\DependencyInject", "suffix": "rvices()\n ->set('test.client', KernelBrowser::class)\n ->args([\n service('kernel'),\n param('test.client.parameters'),\n service('test.client.history'),\n service('test.client.cookie", "middle": "ion\\ServiceLocator;\nuse Symfony\\Component\\HttpKernel\\EventListener\\SessionListener;\n\nreturn static function (ContainerConfigurator $container) {\n $container->parameters()->set('test.client.parameters', []);\n\n $container->se", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/test.php", "language": "php", "file_size": 1976, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\TranslationsCacheWarmer;\nuse Symfony\\Bundle\\FrameworkBundle\\Translation\\Translator;\nuse Symfony\\Component\\Translation\\Dumper\\CsvFileDumper;\nuse Symfony\\Component\\Translation\\Dumper\\IcuResFileDumper;\nuse Symfony\\Component\\Translation\\Dumper\\IniFileDumper;\nuse Symfony\\Component\\Translation\\Dumper\\JsonFileDumper;\nuse Symfony", "suffix": "nt\\Translation\\Dumper\\XliffFileDumper;\nuse Symfony\\Component\\Translation\\Dumper\\YamlFileDumper;\nuse Symfony\\Component\\Translation\\Extractor\\ChainExtractor;\nuse Symfony\\Component\\Translation\\Extractor\\ExtractorInterface;\nuse Symfony\\Component\\Translation\\Ex", "middle": "\\Component\\Translation\\Dumper\\MoFileDumper;\nuse Symfony\\Component\\Translation\\Dumper\\PhpFileDumper;\nuse Symfony\\Component\\Translation\\Dumper\\PoFileDumper;\nuse Symfony\\Component\\Translation\\Dumper\\QtFileDumper;\nuse Symfony\\Compone", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/translation.php", "language": "php", "file_size": 8590, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Translation\\DataCollector\\TranslationDataCollector;\nuse Symfony\\Component\\Translation\\DataCollectorTranslator;\n\nreturn static function (ContainerConfigurator $container) {\n $containe", "suffix": "nore'])\n\n ->set('data_collector.translation', TranslationDataCollector::class)\n ->args([service('translator.data_collector')])\n ->tag('data_collector', [\n 'template' => '@WebProfiler/Collector/translation.html.tw", "middle": "r->services()\n ->set('translator.data_collector', DataCollectorTranslator::class)\n ->args([service('translator.data_collector.inner')])\n ->tag('kernel.reset', ['method' => 'reset', 'on_invalid' => 'ig", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/translation_debug.php", "language": "php", "file_size": 1103, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\Translation\\Bridge\\Crowdin\\CrowdinProviderFactory;\nuse Symfony\\Component\\Translation\\Bridge\\Loco\\LocoProviderFactory;\nuse Symfony\\Component\\Translation\\Bridge\\Lokalise\\LokaliseProviderFactory;\nuse Symfony\\Component\\Translation\\Bridge\\Phras", "suffix": "ectionFactory;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('translation.provider_collection', TranslationProviderCollection::class)\n ", "middle": "e\\PhraseProviderFactory;\nuse Symfony\\Component\\Translation\\Provider\\NullProviderFactory;\nuse Symfony\\Component\\Translation\\Provider\\TranslationProviderCollection;\nuse Symfony\\Component\\Translation\\Provider\\TranslationProviderColl", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/translation_providers.php", "language": "php", "file_size": 3654, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\TypeInfo\\TypeContext\\TypeContextFactory;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\ReflectionParameterTypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\ReflectionPropertyTypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeReso", "suffix": "return static function (ContainerConfigurator $container) {\n $container->services()\n // type context\n ->set('type_info.type_context_factory', TypeContextFactory::class)\n ->args([\n service('type_info.resolver.strin", "middle": "lver\\ReflectionReturnTypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\ReflectionTypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolver;\nuse Symfony\\Component\\TypeInfo\\TypeResolver\\TypeResolverInterface;\n\n", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/type_info.php", "language": "php", "file_size": 2476, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Uid\\Factory\\NameBasedUuidFactory;\nuse Symfony\\Component\\Uid\\Factory\\RandomBasedUuidFactory;\nuse Symfony\\Component\\Uid\\Factory\\TimeBasedUuidFactory;\nuse Symfony\\Component\\Uid\\Factory\\UlidFactory;\nuse Symfony\\", "suffix": "lias(UlidFactory::class, 'ulid.factory')\n\n ->set('uuid.factory', UuidFactory::class)\n ->alias(UuidFactory::class, 'uuid.factory')\n\n ->set('name_based_uuid.factory', NameBasedUuidFactory::class)\n ->factory([service('uuid.fact", "middle": "Component\\Uid\\Factory\\UuidFactory;\nuse Symfony\\Component\\Uid\\Uuid47Transformer;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('ulid.factory', UlidFactory::class)\n ->a", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/uid.php", "language": "php", "file_size": 1877, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\ValidatorCacheWarmer;\nuse Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter;\nuse Symfony\\Component\\Clock\\ClockInterface;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Validator\\Constraints\\EmailValidator;\nuse Symfony\\Component\\Validator\\Constraints\\ExpressionLanguageProvider;\nuse Symfony\\Comp", "suffix": "dator\\Constraints\\WhenValidator;\nuse Symfony\\Component\\Validator\\ContainerConstraintValidatorFactory;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\PropertyInfoLoader;\nuse Symfony\\Component\\Validator\\Validation;\nuse Symfony\\Component\\Validator\\Validator\\V", "middle": "onent\\Validator\\Constraints\\ExpressionValidator;\nuse Symfony\\Component\\Validator\\Constraints\\NoSuspiciousCharactersValidator;\nuse Symfony\\Component\\Validator\\Constraints\\NotCompromisedPasswordValidator;\nuse Symfony\\Component\\Vali", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/validator.php", "language": "php", "file_size": 5641, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Validator\\DataCollector\\ValidatorDataCollector;\nuse Symfony\\Component\\Validator\\Validator\\TraceableValidator;\n\nreturn static function (ContainerConfigurator $container) {\n $container->service", "suffix": "tate_checker')->nullOnInvalid(),\n ])\n ->tag('kernel.reset', [\n 'method' => 'reset',\n ])\n\n ->set('data_collector.validator', ValidatorDataCollector::class)\n ->args([\n service('", "middle": "s()\n ->set('debug.validator', TraceableValidator::class)\n ->decorate('validator', null, 255)\n ->args([\n service('debug.validator.inner'),\n service('profiler.is_disabled_s", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/validator_debug.php", "language": "php", "file_size": 1253, "cut_index": 524, "middle_length": 229}} {"prefix": "Controller\\ControllerHelper;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerResolver;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\BackedEnumValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\DateTimeValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolv", "suffix": "HttpKernel\\Controller\\ArgumentResolver\\RequestHeaderValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestPayloadValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestValueResolver;\nuse Symfony\\Comp", "middle": "er\\DefaultValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\QueryParameterValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestAttributeValueResolver;\nuse Symfony\\Component\\", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/web.php", "language": "php", "file_size": 9656, "cut_index": 921, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\WebLink\\EventListener\\AddLinkHeaderListener;\nuse Symfony\\Component\\WebLink\\HttpHeaderParser;\nuse Symfony\\Component\\WebLink\\HttpHeaderSerializer;\n\nreturn static function (ContainerConfig", "suffix": "nk.http_header_parser', HttpHeaderParser::class)\n ->alias(HttpHeaderParser::class, 'web_link.http_header_parser')\n\n ->set('web_link.add_link_header_listener', AddLinkHeaderListener::class)\n ->args([\n service('web_lin", "middle": "urator $container) {\n $container->services()\n\n ->set('web_link.http_header_serializer', HttpHeaderSerializer::class)\n ->alias(HttpHeaderSerializer::class, 'web_link.http_header_serializer')\n\n ->set('web_li", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/web_link.php", "language": "php", "file_size": 1097, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Webhook\\Client\\RequestParser;\nuse Symfony\\Component\\Webhook\\Controller\\WebhookController;\nuse Symfony\\Component\\Webhook\\Messenger\\SendWebhookHandler;\nuse Symfony\\Component\\Webhook\\Server\\HeadersConfigurator;\nuse Symfony\\Component\\Web", "suffix": "r;\nuse Symfony\\Component\\Webhook\\Server\\Transport;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('webhook.transport', Transport::class)\n ->args([\n service('http_client'),\n ", "middle": "hook\\Server\\HeaderSignatureConfigurator;\nuse Symfony\\Component\\Webhook\\Server\\JsonBodyConfigurator;\nuse Symfony\\Component\\Webhook\\Server\\NativeJsonPayloadSerializer;\nuse Symfony\\Component\\Webhook\\Server\\SerializerPayloadSerialize", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/webhook.php", "language": "php", "file_size": 2621, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Workflow\\EventListener\\ExpressionLanguage;\nuse Symfony\\Component\\Workflow\\MarkingStore\\MethodMarkingStore;\nuse Symfony\\Component\\Workflow\\Registry;\nuse Symfony\\Component\\Workflow\\StateMachine;\nuse Symfony\\Co", "suffix": "finition'),\n abstract_arg('marking store'),\n service('event_dispatcher')->ignoreOnInvalid(),\n abstract_arg('workflow name'),\n abstract_arg('events to dispatch'),\n ])\n ->abstr", "middle": "mponent\\Workflow\\Workflow;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('workflow.abstract', Workflow::class)\n ->args([\n abstract_arg('workflow de", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/workflow.php", "language": "php", "file_size": 1709, "cut_index": 537, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Workflow\\DataCollector\\WorkflowDataCollector;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('data_collector.workflow', WorkflowDataCollector::class)\n ", "suffix": " => '@WebProfiler/Collector/workflow.html.twig',\n 'id' => 'workflow',\n ])\n ->args([\n tagged_iterator('workflow', 'name'),\n service('event_dispatcher'),\n service('debug.file_l", "middle": "->tag('data_collector', [\n 'template'", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/workflow_debug.php", "language": "php", "file_size": 896, "cut_index": 547, "middle_length": 52}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nif ('cli' !== \\PHP_SAPI) {\n throw new Exception('This script must be run from the command line.');\n}\n\nrequire dirname(__DIR__, 6).'/vendor/autoload.php';\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\Compiler\\UnusedTagsPassUtils;\n\n$target = dirname(__DIR__, 2).'/Dependenc", "suffix": " file_get_contents($target);\n$contents = preg_replace('{private const KNOWN_TAGS = \\[(.+?)\\];}sm', \"private const KNOWN_TAGS = [\\n '\".implode(\"',\\n '\", UnusedTagsPassUtils::getDefinedTags()).\"',\\n ];\", $contents);\nfile_put_contents($target", "middle": "yInjection/Compiler/UnusedTagsPass.php';\n$contents =", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/bin/check-unused-known-tags.php", "language": "php", "file_size": 851, "cut_index": 529, "middle_length": 52}} {"prefix": "pe;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\nuse Symfony\\Component\\HttpFoundation\\Exception\\SessionNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundatio", "suffix": "el\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\RouterInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token", "middle": "n\\Response;\nuse Symfony\\Component\\HttpFoundation\\ResponseHeaderBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\FlashBagAwareSessionInterface;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKern", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.php", "language": "php", "file_size": 19299, "cut_index": 1331, "middle_length": 229}} {"prefix": "pe;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\nuse Symfony\\Component\\HttpFoundation\\Exception\\SessionNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundatio", "suffix": "el\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\RouterInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token", "middle": "n\\Response;\nuse Symfony\\Component\\HttpFoundation\\ResponseHeaderBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\FlashBagAwareSessionInterface;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKern", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Controller/ControllerHelper.php", "language": "php", "file_size": 19016, "cut_index": 1331, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Controller;\n\nuse Symfony\\Component\\HttpKernel\\Controller\\ContainerControllerResolver;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass ControllerResolver extends ContainerControllerResolver\n{\n protected ", "suffix": "troller->setContainer($this->container)) {\n throw new \\LogicException(\\sprintf('\"%s\" has no container set, did you forget to define it as a service subscriber?', $class));\n }\n\n $controller->setContainer($previousContain", "middle": "function instantiateController(string $class): object\n {\n $controller = parent::instantiateController($class);\n\n if ($controller instanceof AbstractController) {\n if (null === $previousContainer = $con", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php", "language": "php", "file_size": 1050, "cut_index": 513, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\HeaderUtils;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\n\n/**\n * Redirects a request to another URL.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @fi", "suffix": " * Redirects to another route with the given name.\n *\n * The response status code is 302 if the permanent parameter is false (default),\n * and 301 if the redirection is permanent.\n *\n * In case the route name is empty, the status code w", "middle": "nal\n */\nclass RedirectController\n{\n public function __construct(\n private ?UrlGeneratorInterface $router = null,\n private ?int $httpPort = null,\n private ?int $httpsPort = null,\n ) {\n }\n\n /**\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php", "language": "php", "file_size": 7348, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Twig\\Environment;\n\n/**\n * TemplateController.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass TemplateController\n{\n public function __construct(\n private ?Environment $twig = null,\n ", "suffix": "roxy) caching\n * @param bool|null $private Whether or not caching should apply for client caches only\n * @param array $context The context (arguments) of the template\n * @param int $statusCode The HTTP status code to return with", "middle": " ) {\n }\n\n /**\n * Renders a template.\n *\n * @param string $template The template name\n * @param int|null $maxAge Max age for client caching\n * @param int|null $sharedAge Max age for shared (p", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Controller/TemplateController.php", "language": "php", "file_size": 2615, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\CacheWarmer;\n\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\NullAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter;\nuse Symfony\\Component\\Config\\Resource\\ClassExistenceResource;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmer", "suffix": "ring $phpArrayFile,\n ) {\n }\n\n public function isOptional(): bool\n {\n return true;\n }\n\n public function warmUp(string $cacheDir, ?string $buildDir = null): array\n {\n $arrayAdapter = new ArrayAdapter();\n\n spl_autoloa", "middle": "Interface;\n\nabstract class AbstractPhpFileCacheWarmer implements CacheWarmerInterface\n{\n /**\n * @param string $phpArrayFile The PHP file where metadata are cached\n */\n public function __construct(\n private st", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php", "language": "php", "file_size": 2522, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Translation;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\Config\\Resource\\DirectoryResource;\nuse Symfony\\Component\\Config\\Resource\\FileExistenceResource;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\WarmableInterface;\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Formatter\\MessageFormatterInterface;\nuse Symfony\\Component\\Translation\\Translator as BaseTranslator", "suffix": " 'resource_files' => [],\n 'scanned_directories' => [],\n 'cache_vary' => [],\n ];\n\n /**\n * @var list<string>\n */\n private array $resourceLocales;\n\n /**\n * Holds parameters from addResource() calls so we can defer the ", "middle": ";\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class Translator extends BaseTranslator implements WarmableInterface\n{\n protected array $options = [\n 'cache_dir' => null,\n 'debug' => false,\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php", "language": "php", "file_size": 5729, "cut_index": 716, "middle_length": 229}} {"prefix": "y\\Component\\Cache\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Cache\\Adapter\\ApcuAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\DoctrineDbalAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\MemcachedAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PdoAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\ProxyAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapte", "suffix": "heClearer;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\NamespacedPoolInterface;\nuse Symfony\\Contracts\\Cache\\TagAwareCacheInterface;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ", "middle": "r;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse Symfony\\Component\\Cache\\Marshaller\\DefaultMarshaller;\nuse Symfony\\Component\\Cache\\Messenger\\EarlyExpirationHandler;\nuse Symfony\\Component\\HttpKernel\\CacheClearer\\Psr6Cac", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/cache.php", "language": "php", "file_size": 9790, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector;\nuse Symfony\\Component\\Console\\DataCollector\\CommandDataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\AjaxDataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\ConfigDataCollector;\nuse Symfony\\Component\\HttpKernel\\Dat", "suffix": "llector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\TimeDataCollector;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\nreturn static function (ContainerConfigurator $container) {\n ", "middle": "aCollector\\EventDataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\ExceptionDataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LoggerDataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\MemoryDataCo", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/collectors.php", "language": "php", "file_size": 4337, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Console\\ArgumentResolver\\TraceableArgumentResolver as TraceableConsoleArgumentResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\NotTaggedControllerValueResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\Tracea", "suffix": "ainer->services()\n ->set('debug.event_dispatcher', TraceableEventDispatcher::class)\n ->decorate('event_dispatcher')\n ->args([\n service('debug.event_dispatcher.inner'),\n service('debug.stopwatch'),\n", "middle": "bleArgumentResolver;\nuse Symfony\\Component\\HttpKernel\\Controller\\TraceableControllerResolver;\nuse Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher;\n\nreturn static function (ContainerConfigurator $container) {\n $cont", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.php", "language": "php", "file_size": 2464, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\FrameworkBundle\\ErrorHandler\\ErrorRenderer\\RuntimeModeErrorRendererSelector;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\CliErrorRenderer;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\ErrorRendererInterface;\nuse Symfony\\Compone", "suffix": "rgs([\n inline_service()\n ->factory([HtmlErrorRenderer::class, 'isDebug'])\n ->args([\n service('request_stack'),\n param('kernel.debug'),\n ])", "middle": "nt\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('error_handler.error_renderer.html', HtmlErrorRenderer::class)\n ->a", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/error_renderer.php", "language": "php", "file_size": 2184, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Form\\Extension\\Csrf\\Type\\FormTypeCsrfExtension;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('form.type_extension.csrf', FormTyp", "suffix": " service('translator')->nullOnInvalid(),\n param('validator.translation_domain'),\n service('form.server_params'),\n param('form.type_extension.csrf.field_attr'),\n param('.form.type_extension.", "middle": "eCsrfExtension::class)\n ->args([\n service('security.csrf.token_manager'),\n param('form.type_extension.csrf.enabled'),\n param('form.type_extension.csrf.field_name'),\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/form_csrf.php", "language": "php", "file_size": 1082, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\FormDataCollector;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\FormDataExtractor;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\Proxy\\ResolvedTypeFactoryDataCollector", "suffix": ")\n ->set('form.resolved_type_factory', ResolvedTypeFactoryDataCollectorProxy::class)\n ->args([\n inline_service(ResolvedFormTypeFactory::class),\n service('data_collector.form'),\n ])\n\n ->set('", "middle": "Proxy;\nuse Symfony\\Component\\Form\\Extension\\DataCollector\\Type\\DataCollectorTypeExtension;\nuse Symfony\\Component\\Form\\ResolvedFormTypeFactory;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services(", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/form_debug.php", "language": "php", "file_size": 1531, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Http\\Client\\HttpAsyncClient;\nuse Psr\\Http\\Client\\ClientInterface;\nuse Psr\\Http\\Message\\ResponseFactoryInterface;\nuse Psr\\Http\\Message\\StreamFactoryInterface;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Component\\HttpClient\\HttplugClient", "suffix": "se Symfony\\Component\\HttpClient\\UriTemplateHttpClient;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('cache.http_client.pool')\n ->paren", "middle": ";\nuse Symfony\\Component\\HttpClient\\Messenger\\PingWebhookMessageHandler;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Psr18Client;\nuse Symfony\\Component\\HttpClient\\Retry\\GenericRetryStrategy;\nu", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/http_client.php", "language": "php", "file_size": 4406, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Lock\\LockFactory;\nuse Symfony\\Component\\Lock\\Serializer\\LockKeyNormalizer;\nuse Symfony\\Component\\Lock\\Store\\CombinedStore;\nuse Symfony\\Component\\Lock\\Store\\FlockStore;\nuse Symfony\\Component\\Lock\\Store\\Semaph", "suffix": "t()\n ->args([abstract_arg('List of stores'), service('lock.strategy.majority')])\n\n ->set('lock.strategy.majority', ConsensusStrategy::class)\n\n ->set('lock.factory.abstract', LockFactory::class)->abstract()\n ->args([abstr", "middle": "oreStore;\nuse Symfony\\Component\\Lock\\Strategy\\ConsensusStrategy;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('lock.store.combined.abstract', CombinedStore::class)->abstrac", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/lock.php", "language": "php", "file_size": 1804, "cut_index": 537, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Mailer\\DataCollector\\MessageDataCollector;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('mailer.data_collector', MessageDataCol", "suffix": "\n ->args([\n service('mailer.message_logger_listener'),\n ])\n ->tag('data_collector', [\n 'template' => '@WebProfiler/Collector/mailer.html.twig',\n 'id' => 'mailer',\n ])\n", "middle": "lector::class)", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer_debug.php", "language": "php", "file_size": 793, "cut_index": 514, "middle_length": 14}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Mailer\\Bridge\\AhaSend\\RemoteEvent\\AhaSendPayloadConverter;\nuse Symfony\\Component\\Mailer\\Bridge\\AhaSend\\Webhook\\AhaSendRequestParser;\nuse Symfony\\Component\\Mailer\\Bridge\\Brevo\\RemoteEvent\\BrevoPayloadConverter;\nuse Symfony\\Component\\Mailer\\Bridge\\Brevo\\Webhook\\BrevoRequestParser;\nuse Symfony\\Component\\Mailer\\Bridge\\Mailchimp\\RemoteEvent\\MailchimpPayloadConverter;\nuse Symfony\\Component", "suffix": "ymfony\\Component\\Mailer\\Bridge\\Mailgun\\RemoteEvent\\MailgunPayloadConverter;\nuse Symfony\\Component\\Mailer\\Bridge\\Mailgun\\Webhook\\MailgunRequestParser;\nuse Symfony\\Component\\Mailer\\Bridge\\Mailjet\\RemoteEvent\\MailjetPayloadConverter;\nuse Symfony\\Component\\Mai", "middle": "\\Mailer\\Bridge\\Mailchimp\\Webhook\\MailchimpRequestParser;\nuse Symfony\\Component\\Mailer\\Bridge\\MailerSend\\RemoteEvent\\MailerSendPayloadConverter;\nuse Symfony\\Component\\Mailer\\Bridge\\MailerSend\\Webhook\\MailerSendRequestParser;\nuse S", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer_webhook.php", "language": "php", "file_size": 6147, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Notifier\\Bridge;\nuse Symfony\\Component\\Notifier\\Transport\\AbstractTransportFactory;\nuse Symfony\\Component\\Notifier\\Transport\\NullTransportFactory;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n\n ->set('notifier.transport_factory.abstract', AbstractTransportFactory::class)\n ->abstract()\n ->args([\n se", "suffix": "twork\\ChatworkTransportFactory::class,\n 'discord' => Bridge\\Discord\\DiscordTransportFactory::class,\n 'fake-chat' => Bridge\\FakeChat\\FakeChatTransportFactory::class,\n 'firebase' => Bridge\\Firebase\\FirebaseTransportFactory::class,\n ", "middle": "rvice('event_dispatcher'),\n service('http_client')->ignoreOnInvalid(),\n ]);\n\n $chatterFactories = [\n 'bluesky' => Bridge\\Bluesky\\BlueskyTransportFactory::class,\n 'chatwork' => Bridge\\Cha", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_transports.php", "language": "php", "file_size": 7676, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Notifier\\Bridge\\Lox24\\Webhook\\Lox24RequestParser;\nuse Symfony\\Component\\Notifier\\Bridge\\Smsbox\\Webhook\\SmsboxRequestParser;\nuse Symfony\\Component\\Notifier\\Bridge\\Sweego\\Webhook\\SweegoRequestParser;\nuse Symfo", "suffix": " ->set('notifier.webhook.request_parser.lox24', Lox24RequestParser::class)\n ->alias(Lox24RequestParser::class, 'notifier.webhook.request_parser.lox24')\n\n ->set('notifier.webhook.request_parser.smsbox', SmsboxRequestParser::class)\n ", "middle": "ny\\Component\\Notifier\\Bridge\\Twilio\\Webhook\\TwilioRequestParser;\nuse Symfony\\Component\\Notifier\\Bridge\\Vonage\\Webhook\\VonageRequestParser;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_webhook.php", "language": "php", "file_size": 1623, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessor;\nuse Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyReadInfoExtractorInterface;\nuse Symfony\\Componen", "suffix": " abstract_arg('magic methods allowed, set by the extension'),\n abstract_arg('throw exceptions, set by the extension'),\n service('cache.property_access')->ignoreOnInvalid(),\n service(PropertyReadInfoExtrac", "middle": "t\\PropertyInfo\\PropertyWriteInfoExtractorInterface;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('property_accessor', PropertyAccessor::class)\n ->args([\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/property_access.php", "language": "php", "file_size": 1224, "cut_index": 518, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\HttpKernel\\EventListener\\RateLimitAttributeListener;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactory;\n\nreturn static function (ContainerConfigurator $container) {\n $container-", "suffix": "abstract_arg('config'),\n abstract_arg('storage'),\n null,\n ])\n\n ->set('rate_limiter.attribute_listener', RateLimitAttributeListener::class)\n ->tag('kernel.event_subscriber')\n ->args([tagg", "middle": ">services()\n ->set('cache.rate_limiter')\n ->parent('cache.app')\n ->tag('cache.pool')\n\n ->set('limiter', RateLimiterFactory::class)\n ->abstract()\n ->args([\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/rate_limiter.php", "language": "php", "file_size": 1044, "cut_index": 513, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Asset\\Context\\RequestStackContext;\nuse Symfony\\Component\\Asset\\Package;\nuse Symfony\\Component\\Asset\\Packages;\nuse Symfony\\Component\\Asset\\PathPackage;\nuse Symfony\\Component\\Asset\\UrlPackage;\nuse Symfony\\Component\\Asset\\VersionStrateg", "suffix": "$container->parameters()\n ->set('asset.request_context.base_path', null)\n ->set('asset.request_context.secure', null)\n ;\n\n $container->services()\n ->set('assets.packages', Packages::class)\n ->args([\n ser", "middle": "y\\EmptyVersionStrategy;\nuse Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy;\nuse Symfony\\Component\\Asset\\VersionStrategy\\StaticVersionStrategy;\n\nreturn static function (ContainerConfigurator $container) {\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/assets.php", "language": "php", "file_size": 2775, "cut_index": 563, "middle_length": 229}} {"prefix": "ssetsInstallCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CacheClearCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolClearCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolDeleteCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolInvalidateTagsCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolListCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolPruneCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CacheWarmupCommand;\nuse Symfony\\Bundle\\Framewor", "suffix": "Command;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\DebugAutowiringCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\EventDispatcherDebugCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\RouterDebugCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\Ro", "middle": "kBundle\\Command\\ConfigDebugCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ConfigDumpReferenceCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerDebugCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerLint", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/console.php", "language": "php", "file_size": 16807, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\CachingFactoryDecorator;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\DefaultChoiceListFactory;\nuse Symfony\\Component\\Form\\ChoiceList\\Factory\\PropertyAccessDecorator;\nuse Symfony\\Component\\Form\\EnumFormTypeGuesser;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\ColorType;\nuse Symfony\\Component\\Form\\Ex", "suffix": "xtension\\Core\\Type\\TransformationFailureExtension;\nuse Symfony\\Component\\Form\\Extension\\DependencyInjection\\DependencyInjectionExtension;\nuse Symfony\\Component\\Form\\Extension\\HtmlSanitizer\\Type\\TextTypeHtmlSanitizerExtension;\nuse Symfony\\Component\\Form\\Ext", "middle": "tension\\Core\\Type\\FileType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\Form\\E", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/form.php", "language": "php", "file_size": 7974, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\LazyLoadingFragmentHandler;\nuse Symfony\\Component\\HttpKernel\\Fragment\\EsiFragmentRenderer;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentUriGenerator;\nuse Symfony\\Component\\HttpKernel\\Fragment\\Fragm", "suffix": "n static function (ContainerConfigurator $container) {\n $container->parameters()\n ->set('fragment.renderer.hinclude.global_template', null)\n ->set('fragment.path', '/_fragment')\n ;\n\n $container->services()\n ->set('fragment.han", "middle": "entUriGeneratorInterface;\nuse Symfony\\Component\\HttpKernel\\Fragment\\HIncludeFragmentRenderer;\nuse Symfony\\Component\\HttpKernel\\Fragment\\InlineFragmentRenderer;\nuse Symfony\\Component\\HttpKernel\\Fragment\\SsiFragmentRenderer;\n\nretur", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/fragment_renderer.php", "language": "php", "file_size": 2886, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Mailer\\Command\\MailerTestCommand;\nuse Symfony\\Component\\Mailer\\EventListener\\DkimSignedMessageListener;\nuse Symfony\\Component\\Mailer\\EventListener\\EnvelopeListener;\nuse Symfony\\Component\\Mailer\\EventListener\\MessageListener;\nuse Symfony\\Component\\Mailer\\EventListener\\MessageLoggerLis", "suffix": "mfony\\Component\\Mailer\\Mailer;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Mailer\\Messenger\\MessageHandler;\nuse Symfony\\Component\\Mailer\\Transport;\nuse Symfony\\Component\\Mailer\\Transport\\TransportInterface;\nuse Symfony\\Component\\Mai", "middle": "tener;\nuse Symfony\\Component\\Mailer\\EventListener\\MessengerTransportListener;\nuse Symfony\\Component\\Mailer\\EventListener\\SmimeEncryptedMessageListener;\nuse Symfony\\Component\\Mailer\\EventListener\\SmimeSignedMessageListener;\nuse Sy", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer.php", "language": "php", "file_size": 4605, "cut_index": 614, "middle_length": 229}} {"prefix": "eLocator;\nuse Symfony\\Component\\Messenger\\Bridge\\AmazonSqs\\Transport\\AmazonSqsTransportFactory;\nuse Symfony\\Component\\Messenger\\Bridge\\Amqp\\Transport\\AmqpTransportFactory;\nuse Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdTransportFactory;\nuse Symfony\\Component\\Messenger\\Bridge\\Redis\\Transport\\RedisTransportFactory;\nuse Symfony\\Component\\Messenger\\EventListener\\AddErrorDetailsStampListener;\nuse Symfony\\Component\\Messenger\\EventListener\\DispatchPcntlSignalListener;\nuse Symfony\\Component\\M", "suffix": "Messenger\\EventListener\\SendFailedMessageForRetryListener;\nuse Symfony\\Component\\Messenger\\EventListener\\SendFailedMessageToFailureTransportListener;\nuse Symfony\\Component\\Messenger\\EventListener\\StopWorkerOnCustomStopExceptionListener;\nuse Symfony\\Compone", "middle": "essenger\\EventListener\\ReleaseDeduplicationLockOnFailureListener;\nuse Symfony\\Component\\Messenger\\EventListener\\ResetMemoryUsageListener;\nuse Symfony\\Component\\Messenger\\EventListener\\ResetServicesListener;\nuse Symfony\\Component\\", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/messenger.php", "language": "php", "file_size": 12726, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\ObjectMapper\\Metadata\\ObjectMapperMetadataFactoryInterface;\nuse Symfony\\Component\\ObjectMapper\\Metadata\\ReflectionObjectMapperMetadataFactory;\nuse Symfony\\Component\\ObjectMapper\\Metadata\\ReverseClassObjectMa", "suffix": "('object_mapper.metadata_factory', ReflectionObjectMapperMetadataFactory::class)\n ->alias(ObjectMapperMetadataFactoryInterface::class, 'object_mapper.metadata_factory')\n\n ->set('object_mapper.metadata_factory.reverse_class', ReverseClassObjec", "middle": "pperMetadataFactory;\nuse Symfony\\Component\\ObjectMapper\\ObjectMapper;\nuse Symfony\\Component\\ObjectMapper\\ObjectMapperInterface;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/object_mapper.php", "language": "php", "file_size": 1645, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\PropertyInfo\\Extractor\\ConstructorExtractor;\nuse Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor;\nuse Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyDescriptio", "suffix": "t\\PropertyInfo\\PropertyInitializableExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyReadInfoExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterf", "middle": "nExtractorInterface;\nuse Symfony\\Component\\PropertyInfo\\PropertyInfoCacheExtractor;\nuse Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor;\nuse Symfony\\Component\\PropertyInfo\\PropertyInfoExtractorInterface;\nuse Symfony\\Componen", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/property_info.php", "language": "php", "file_size": 2840, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\HttpKernel\\Debug\\ErrorHandlerConfigurator;\nuse Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener;\n\nreturn static function (C", "suffix": "->public()\n ->args([\n service('logger')->nullOnInvalid(),\n null, // Log levels map for enabled error levels\n param('debug.error_handler.throw_at'),\n param('kernel.debug'),\n ", "middle": "ontainerConfigurator $container) {\n $container->parameters()->set('debug.error_handler.throw_at', -1);\n\n $container->services()\n ->set('debug.error_handler_configurator', ErrorHandlerConfigurator::class)\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/debug_prod.php", "language": "php", "file_size": 1586, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\JsonStreamer\\CacheWarmer\\StreamerCacheWarmer;\nuse Symfony\\Component\\JsonStreamer\\JsonStreamReader;\nuse Symfony\\Component\\JsonStreamer\\JsonStreamWriter;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\GenericTypePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\PropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Read\\AttributePropertyMetadataLoader as ReadAt", "suffix": "taLoader as WriteAttributePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Write\\DateTimeTypePropertyMetadataLoader as WriteDateTimeTypePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\DateIntervalValueObjectTransfor", "middle": "tributePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Read\\DateTimeTypePropertyMetadataLoader as ReadDateTimeTypePropertyMetadataLoader;\nuse Symfony\\Component\\JsonStreamer\\Mapping\\Write\\AttributePropertyMetada", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/json_streamer.php", "language": "php", "file_size": 7101, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Mailer\\Bridge\\AhaSend\\Transport\\AhaSendTransportFactory;\nuse Symfony\\Component\\Mailer\\Bridge\\Amazon\\Transport\\SesTransportFactory;\nuse Symfony\\Component\\Mailer\\Bridge\\Azure\\Transport\\AzureTransportFactory;\nuse Symfony\\Component\\Mailer\\Bridge\\Brevo\\Transport\\BrevoTransportFactory;\nuse", "suffix": "ory;\nuse Symfony\\Component\\Mailer\\Bridge\\MailerSend\\Transport\\MailerSendTransportFactory;\nuse Symfony\\Component\\Mailer\\Bridge\\Mailgun\\Transport\\MailgunTransportFactory;\nuse Symfony\\Component\\Mailer\\Bridge\\Mailjet\\Transport\\MailjetTransportFactory;\nuse Symf", "middle": " Symfony\\Component\\Mailer\\Bridge\\Google\\Transport\\GmailTransportFactory;\nuse Symfony\\Component\\Mailer\\Bridge\\Infobip\\Transport\\InfobipTransportFactory;\nuse Symfony\\Component\\Mailer\\Bridge\\Mailchimp\\Transport\\MandrillTransportFact", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer_transports.php", "language": "php", "file_size": 4236, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\FrameworkBundle\\EventListener\\ConsoleProfilerListener;\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Component\\HttpKernel\\Debug\\VirtualRequestStack;\nuse Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener;\nuse ", "suffix": "ner) {\n $container->services()\n ->set('profiler', Profiler::class)\n ->public()\n ->args([service('profiler.storage'), service('logger')->nullOnInvalid()])\n ->tag('monolog.logger', ['channel' => 'profiler'])\n ", "middle": "Symfony\\Component\\HttpKernel\\Profiler\\FileProfilerStorage;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\nuse Symfony\\Component\\HttpKernel\\Profiler\\ProfilerStateChecker;\n\nreturn static function (ContainerConfigurator $contai", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.php", "language": "php", "file_size": 2873, "cut_index": 563, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitizer;\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitizerConfig;\nuse Symfony\\Component\\HtmlSanitizer\\HtmlSanitizerInterface;\n\nreturn static function (ContainerCon", "suffix": "mlSanitizer::class)\n ->args([service('html_sanitizer.config.default')])\n ->tag('html_sanitizer', ['sanitizer' => 'default'])\n\n ->alias('html_sanitizer', 'html_sanitizer.sanitizer.default')\n ->alias(HtmlSanitizerInterface", "middle": "figurator $container) {\n $container->services()\n ->set('html_sanitizer.config.default', HtmlSanitizerConfig::class)\n ->call('allowSafeElements', [], true)\n\n ->set('html_sanitizer.sanitizer.default', Ht", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/html_sanitizer.php", "language": "php", "file_size": 1034, "cut_index": 513, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\CachePoolClearerCacheWarmer;\nuse Symfony\\Component\\Cache\\DataCollector\\CacheDataCollector;\n\nreturn static function (ContainerConfigurator $container) {\n $container->s", "suffix": " 'template' => '@WebProfiler/Collector/cache.html.twig',\n 'id' => 'cache',\n 'priority' => 275,\n ])\n\n // CacheWarmer used in dev to clear cache pool\n ->set('cache_pool_clearer.cache_warmer',", "middle": "ervices()\n // DataCollector (public to prevent inlining, made private in CacheCollectorPass)\n ->set('data_collector.cache', CacheDataCollector::class)\n ->public()\n ->tag('data_collector', [\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/cache_debug.php", "language": "php", "file_size": 1317, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bridge\\Monolog\\Handler\\NotifierHandler;\nuse Symfony\\Component\\Notifier\\Channel\\BrowserChannel;\nuse Symfony\\Component\\Notifier\\Channel\\ChannelPolicy;\nuse Symfony\\Component\\Notifier\\Channel\\ChatChannel;\nuse Symfony\\Component\\Notifier\\Channel\\DesktopChannel;\nuse Symfony\\Component\\Notifier\\Channel\\EmailChannel;\nuse Symfony\\Component\\Notifier\\Channel\\PushChannel;\nuse Symfony\\Component\\Notifier\\Chan", "suffix": "iledMessageToNotifierListener;\nuse Symfony\\Component\\Notifier\\FlashMessage\\DefaultFlashMessageImportanceMapper;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\nuse Symfony\\Component\\Notifier\\Message\\DesktopMessage;\nuse Symfony\\Component\\Notifier\\Messag", "middle": "nel\\SmsChannel;\nuse Symfony\\Component\\Notifier\\Chatter;\nuse Symfony\\Component\\Notifier\\ChatterInterface;\nuse Symfony\\Component\\Notifier\\EventListener\\NotificationLoggerListener;\nuse Symfony\\Component\\Notifier\\EventListener\\SendFa", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier.php", "language": "php", "file_size": 5950, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\CacheWarmer;\n\nuse Symfony\\Component\\HttpKernel\\CacheClearer\\Psr6CacheClearer;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerInterface;\n\n/**\n * Clears the cache pools when warming up the cache.\n *\n * Do not use in production!\n *\n * @aut", "suffix": "Psr6CacheClearer $poolClearer,\n private array $pools = [],\n ) {\n }\n\n public function warmUp(string $cacheDir, ?string $buildDir = null): array\n {\n foreach ($this->pools as $pool) {\n if ($this->poolClearer->hasPool($pool", "middle": "hor Teoh Han Hui <teohhanhui@gmail.com>\n *\n * @internal\n */\nfinal class CachePoolClearerCacheWarmer implements CacheWarmerInterface\n{\n /**\n * @param string[] $pools\n */\n public function __construct(\n private ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/CachePoolClearerCacheWarmer.php", "language": "php", "file_size": 1266, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\CacheWarmer;\n\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\CacheClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Factory\\ClassMetadataFactory;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader;\nuse Symf", "suffix": "YamlFileLoader;\n\n/**\n * Warms up serializer metadata.\n *\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nfinal class SerializerCacheWarmer extends AbstractPhpFileCacheWarmer\n{\n /**\n * @param LoaderInterface[] $loaders The serializer m", "middle": "ony\\Component\\Serializer\\Mapping\\Loader\\LoaderChain;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\XmlFileLoader;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/SerializerCacheWarmer.php", "language": "php", "file_size": 2740, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\CacheWarmer;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerInterface;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\WarmableInterface;\nuse Symfony\\Component\\Routing\\RouterInterface;\nuse Symfony\\Contracts\\Servic", "suffix": "iberInterface\n{\n /**\n * As this cache warmer is optional, dependencies should be lazy-loaded, that's why a container should be injected.\n */\n public function __construct(\n private ContainerInterface $container,\n ) {\n }\n\n publi", "middle": "e\\ServiceSubscriberInterface;\n\n/**\n * Generates the router matcher and generator classes.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\nclass RouterCacheWarmer implements CacheWarmerInterface, ServiceSubscr", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php", "language": "php", "file_size": 1729, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\CacheWarmer;\n\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter;\nuse Symfony\\Component\\Validator\\Mapping\\Factory\\LazyLoadingMetadataFactory;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\LoaderChain;\nuse Symfony\\Compon", "suffix": "Warms up validator metadata.\n *\n * @author Titouan Galopin <galopintitouan@gmail.com>\n */\nfinal class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer\n{\n /**\n * @param string $phpArrayFile The PHP file where metadata are cached\n */\n pu", "middle": "ent\\Validator\\Mapping\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\XmlFileLoader;\nuse Symfony\\Component\\Validator\\Mapping\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\Validator\\ValidatorBuilder;\n\n/**\n * ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php", "language": "php", "file_size": 3144, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\EventListener;\n\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Debug\\CliRequest;\nuse Symfony\\Component\\Console\\Event\\ConsoleCommandEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleErrorEvent;\nuse Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFounda", "suffix": ";\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n/**\n * @internal\n *\n * @author Jules Pietri <jules@heahprod.com>\n */\nfinal class ConsoleProfilerListener implements EventSubscriberInterface\n{\n private ?\\Throwable $error = null;\n /** @var \\SplObjectStora", "middle": "tion\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profile;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/EventListener/ConsoleProfilerListener.php", "language": "php", "file_size": 5314, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\EventListener;\n\nuse Symfony\\Component\\Console\\ConsoleEvents;\nuse Symfony\\Component\\Console\\Event\\ConsoleErrorEvent;\nuse Symfony\\Component\\Console\\Exception\\CommandNotFoundException;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\n\n/**\n * Suggests a package, that shoul", "suffix": "tMissingPackageSubscriber implements EventSubscriberInterface\n{\n private const PACKAGES = [\n 'doctrine' => [\n 'fixtures' => ['DoctrineFixturesBundle', 'doctrine/doctrine-fixtures-bundle --dev'],\n 'mongodb' => ['DoctrineMongo", "middle": "d be installed (via composer),\n * if the package is missing, and the input command namespace can be mapped to a Symfony bundle.\n *\n * @author Przemysław Bogusz <przemyslaw.bogusz@tubotax.pl>\n *\n * @internal\n */\nfinal class Sugges", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/EventListener/SuggestMissingPackageSubscriber.php", "language": "php", "file_size": 2584, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests;\n\nuse Symfony\\Bundle\\FrameworkBundle\\KernelBrowser;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\AbstractWebTestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass KernelBrowserTest extends AbstractWebTestCase\n{\n ", "suffix": "GET', '/');\n $client->request('GET', '/');\n }\n\n public function testDisabledRebootKernel()\n {\n $mock = $this->getKernelMock();\n $mock->expects($this->never())->method('shutdown');\n\n $client = new KernelBrowser($mock);\n ", "middle": " public function testRebootKernelBetweenRequests()\n {\n $mock = $this->getKernelMock();\n $mock->expects($this->once())->method('shutdown');\n\n $client = new KernelBrowser($mock);\n $client->request('", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/KernelBrowserTest.php", "language": "php", "file_size": 2421, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nabstract class AbstractAttributeRoutingTestCase extends AbstractWebTestCase\n{\n #[DataProvider('getRoutes')]\n public function testAnnotatedC", "suffix": "his->assertSame(200, $client->getResponse()->getStatusCode());\n $this->assertSame($expectedValue, $client->getResponse()->getContent());\n\n $router = self::getContainer()->get('router');\n\n $this->assertSame('/annotated/create-transactio", "middle": "ontroller(string $path, string $expectedValue)\n {\n $client = $this->createClient(['test_case' => $this->getTestCaseApp(), 'root_config' => 'config.yml']);\n $client->request('GET', '/annotated'.$path);\n\n $t", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/AbstractAttributeRoutingTestCase.php", "language": "php", "file_size": 1609, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase as BaseWebTestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\AppKernel;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nabstract class AbstractWebTest", "suffix": " self::assertEquals('http://localhost'.$location, $response->headers->get('Location'));\n }\n\n public static function setUpBeforeClass(): void\n {\n static::deleteTmpDir();\n }\n\n public static function tearDownAfterClass(): void\n ", "middle": "Case extends BaseWebTestCase\n{\n public static function assertRedirect($response, $location)\n {\n self::assertTrue($response->isRedirect(), 'Response is not a redirect, got status code: '.$response->getStatusCode());\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/AbstractWebTestCase.php", "language": "php", "file_size": 2202, "cut_index": 563, "middle_length": 229}} {"prefix": "}\n\n public static function mapQueryStringProvider(): iterable\n {\n yield 'empty query string mapping nullable attribute' => [\n 'uri' => '/map-query-string-to-nullable-attribute.json',\n 'query' => [],\n 'expectedResponse' => '',\n 'expectedStatusCode' => 204,\n ];\n\n yield 'valid query string mapping nullable attribute' => [\n 'uri' => '/map-query-string-to-nullable-attribute.json',\n 'query' => ['filter' => ['status' => 'a", "suffix": "}\n }\n JSON,\n 'expectedStatusCode' => 200,\n ];\n\n yield 'invalid query string mapping nullable attribute' => [\n 'uri' => '/map-query-string-to-nullable-attribute.json',\n 'query' => ", "middle": "pproved', 'quantity' => '4']],\n 'expectedResponse' => <<<'JSON'\n {\n \"filter\": {\n \"status\": \"approved\",\n \"quantity\": 4\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php", "language": "php", "file_size": 47204, "cut_index": 2151, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass Autowir", "suffix": "utowired_services');\n $this->assertInstanceOf(EventDispatcher::class, $autowiredServices->getDispatcher(), 'The event_dispatcher service should be injected if the debug is not enabled');\n\n static::bootKernel(['debug' => true]);\n\n $auto", "middle": "ingTypesTest extends AbstractWebTestCase\n{\n public function testEventDispatcherAutowiring()\n {\n static::bootKernel(['debug' => false]);\n\n $autowiredServices = self::getContainer()->get('test.autowiring_types.a", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/AutowiringTypesTest.php", "language": "php", "file_size": 1760, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\AssetsInstallCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\LegacyBundle\\Entity\\LegacyPerson;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\ModernBundle\\src\\Entity\\ModernPerson;\nuse S", "suffix": "(['test_case' => 'BundlePaths']);\n $projectDir = tempnam(sys_get_temp_dir(), 'sf_bundle_paths_');\n\n $fs = new Filesystem();\n $fs->remove($projectDir);\n $fs->mkdir($projectDir.'/public');\n $command = (new Application($kern", "middle": "ymfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass BundlePathsTest extends AbstractWebTestCase\n{\n public function testBundlePublicDir()\n {\n $kernel = static::bootKernel", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/BundlePathsTest.php", "language": "php", "file_size": 3793, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Attribute\\Cache;\nuse Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface;\nuse Symfony\\Component\\HttpKernel\\ControllerMetadata\\Ar", "suffix": "WithEtag()\n {\n $client = self::createClient(['test_case' => 'CacheAttributeListener']);\n\n $client->request('GET', '/', [], [], ['HTTP_IF_NONE_MATCH' => \\sprintf('\"%s\"', hash('sha256', '12345'))]);\n\n self::assertTrue($client->getResp", "middle": "gumentMetadata;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Attribute\\IsGranted;\n\nclass CacheAttributeListenerTest extends AbstractWebTestCase\n{\n public function testAnonymousUser", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CacheAttributeListenerTest.php", "language": "php", "file_size": 2931, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolClearCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse S", "suffix": "oot_config' => 'config.yml']);\n }\n\n public function testClearPrivatePool()\n {\n $tester = $this->createCommandTester();\n $tester->execute(['pools' => ['cache.private_pool']], ['decorated' => false]);\n\n $tester->assertCommandIsS", "middle": "ymfony\\Component\\Finder\\SplFileInfo;\n\n#[Group('functional')]\nclass CachePoolClearCommandTest extends AbstractWebTestCase\n{\n protected function setUp(): void\n {\n static::bootKernel(['test_case' => 'CachePoolClear', 'r", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolClearCommandTest.php", "language": "php", "file_size": 6786, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolListCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\n#[Group('functional')]\ncl", "suffix": "ols()\n {\n $tester = $this->createCommandTester(['cache.app', 'cache.system']);\n $tester->execute([]);\n\n $tester->assertCommandIsSuccessful('cache:pool:list exits with 0 in case of success');\n $this->assertStringContainsString", "middle": "ass CachePoolListCommandTest extends AbstractWebTestCase\n{\n protected function setUp(): void\n {\n static::bootKernel(['test_case' => 'CachePools', 'root_config' => 'config.yml']);\n }\n\n public function testListPo", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolListCommandTest.php", "language": "php", "file_size": 1650, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\Error\\Warning;\nuse Symfony\\Component\\Cache\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter;\nuse Symfony\\Component\\Cache", "suffix": "rface::class);\n }\n\n #[RequiresPhpExtension('redis')]\n #[Group('integration')]\n public function testRedisCachePools()\n {\n $this->skipIfRedisUnavailable();\n\n try {\n $this->doTestCachePools(['root_config' => 'redis_conf", "middle": "\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass CachePoolsTest extends AbstractWebTestCase\n{\n public function testCachePools()\n {\n $this->doTestCachePools([], AdapterInte", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolsTest.php", "language": "php", "file_size": 4144, "cut_index": 614, "middle_length": 229}} {"prefix": "tributes\\TestWith;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ConfigDebugCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\EnvVarLoader\\StatefulEnvVarLoader;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\Command", "suffix": "dTester($debug);\n $ret = $tester->execute([]);\n\n $this->assertSame(0, $ret, 'Returns 0 in case of success');\n $this->assertStringContainsString('Available registered bundles with their extension alias if available', $tester->getDisplay", "middle": "Tester;\n\n#[Group('functional')]\nclass ConfigDebugCommandTest extends AbstractWebTestCase\n{\n #[TestWith([true])]\n #[TestWith([false])]\n public function testShowList(bool $debug)\n {\n $tester = $this->createComman", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ConfigDebugCommandTest.php", "language": "php", "file_size": 12234, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ConfigDumpReferenceCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nus", "suffix": "debug)\n {\n $tester = $this->createCommandTester($debug);\n $ret = $tester->execute([]);\n\n $this->assertSame(0, $ret, 'Returns 0 in case of success');\n $this->assertStringContainsString('Available registered bundles with their ", "middle": "e Symfony\\Component\\Console\\Tester\\CommandTester;\n\n#[Group('functional')]\nclass ConfigDumpReferenceCommandTest extends AbstractWebTestCase\n{\n #[TestWith([true])]\n #[TestWith([false])]\n public function testShowList(bool $", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ConfigDumpReferenceCommandTest.php", "language": "php", "file_size": 6585, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Tester\\ApplicationTester;\n\n#[Group('functional')]\nclass ConsoleArgumentResolverTest extends AbstractWebTe", "suffix": "arent::setUpBeforeClass();\n }\n\n protected function setUp(): void\n {\n static::bootKernel(['test_case' => 'ConsoleArgumentResolver', 'root_config' => 'config.yml']);\n }\n\n public function testCustomArgumentResolver()\n {\n $appli", "middle": "stCase\n{\n public static function setUpBeforeClass(): void\n {\n if (!interface_exists(ValueResolverInterface::class)) {\n self::markTestSkipped('Console ArgumentResolver not available.');\n }\n\n p", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ConsoleArgumentResolverTest.php", "language": "php", "file_size": 5015, "cut_index": 614, "middle_length": 229}} {"prefix": "tWebTestCase\n{\n public function testDumpContainerIfNotExists()\n {\n static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'config.yml', 'debug' => true]);\n\n $application = new Application(static::$kernel);\n $application->setAutoExit(false);\n\n @unlink(static::getContainer()->getParameter('debug.container.dump'));\n\n $tester = new ApplicationTester($application);\n $tester->run(['command' => 'debug:container']);\n\n $this->assertFileExists(stat", "suffix": "pplication = new Application(static::$kernel);\n $application->setAutoExit(false);\n\n $tester = new ApplicationTester($application);\n $tester->run(['command' => 'debug:container']);\n\n $this->assertStringContainsString('public', $t", "middle": "ic::getContainer()->getParameter('debug.container.dump'));\n }\n\n public function testNoDebug()\n {\n static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'config.yml', 'debug' => false]);\n\n $a", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php", "language": "php", "file_size": 18611, "cut_index": 1331, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\n/**\n * Checks that the container compiles correctly when all the bundle features are enabled.\n */\nclass ContainerDumpTest extends AbstractWebTestCase\n{\n public function testContainerCompilationInDebug()\n {\n $this->createClient(['test_case' => 'ContainerDump', 'root_config' => 'config.yml']);\n\n ", "suffix": "('serializer'));\n }\n\n public function testContainerCompilation()\n {\n $this->createClient(['test_case' => 'ContainerDump', 'root_config' => 'config.yml', 'debug' => false]);\n\n $this->assertTrue(static::getContainer()->has('serializer'", "middle": " $this->assertTrue(static::getContainer()->has", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDumpTest.php", "language": "php", "file_size": 926, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\n#[Group('functional')]\nclass ContainerLintC", "suffix": "tring $expectedOutput)\n {\n $kernel = static::createKernel([\n 'test_case' => 'ContainerLint',\n 'root_config' => $configFile,\n 'debug' => true,\n ]);\n $this->application = new Application($kernel);\n\n ", "middle": "ommandTest extends AbstractWebTestCase\n{\n private Application $application;\n\n #[DataProvider('containerLintProvider')]\n public function testLintContainer(string $configFile, bool $resolveEnvVars, int $expectedExitCode, s", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerLintCommandTest.php", "language": "php", "file_size": 1877, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\DebugAutowiringCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\ClassAliasExampleClass;\nuse Symfony\\Component\\Console\\Tester\\ApplicationTester;\nuse Symfony\\Component\\Console\\Tester\\CommandCompl", "suffix": "cFunctionality()\n {\n static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'config.yml']);\n\n $application = new Application(static::$kernel);\n $application->setAutoExit(false);\n\n $tester = new ApplicationTeste", "middle": "etionTester;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Routing\\RouterInterface;\n\n#[Group('functional')]\nclass DebugAutowiringCommandTest extends AbstractWebTestCase\n{\n public function testBasi", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/DebugAutowiringCommandTest.php", "language": "php", "file_size": 6526, "cut_index": 716, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nclass ErrorHandlerWebTestCase extends AbstractWebTestCase\n{\n public function testHtmlErrorResponseOnCliContext()\n {\n $client = self::createClient(['test_case' => 'ErrorHandler', 'root_config' => 'config.yml', 'debug' => false]);\n ", "suffix": " self::assertResponseStatusCodeSame(500, $client->getResponse()->getStatusCode());\n self::assertStringContainsString('<!DOCTYPE html>', $client->getResponse()->getContent());\n self::assertStringContainsString('Oops! An Error Occurred', $cli", "middle": " $client->request('GET', '/_error/500.html');\n\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ErrorHandlerWebTestCase.php", "language": "php", "file_size": 898, "cut_index": 547, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\n\nclass FragmentTest extends AbstractWebTestCase\n{\n #[DataProvider('getConfigs')]\n public function testFragment($insulate)\n {\n $client = $this->createClient(['test_case' => 'Fra", "suffix": " txt\n --\n html\n --\n es\n --\n fr\n TXT,\n $client->getResponse()->getContent()\n );\n }\n\n public static function getConfigs()\n {\n return [\n ", "middle": "gment', 'root_config' => 'config.yml', 'debug' => true]);\n if ($insulate) {\n $client->insulate();\n }\n\n $client->request('GET', '/fragment_home');\n\n $this->assertEquals(<<<TXT\n bar", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/FragmentTest.php", "language": "php", "file_size": 1608, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass HttpClientTest extends AbstractWebTestCase\n{\n public function testHttpClientAssertions()\n {\n ", "suffix": "ttpClientRequest('https://symfony.com/');\n $this->assertHttpClientRequest('https://symfony.com/', 'GET', null, [], 'symfony.http_client');\n $this->assertHttpClientRequest('https://symfony.com/', 'POST', 'foo', [], 'symfony.http_client');\n ", "middle": " $client = $this->createClient(['test_case' => 'HttpClient', 'root_config' => 'config.yml', 'debug' => true]);\n $client->enableProfiler();\n $client->request('GET', '/http_client_call');\n\n $this->assertH", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/HttpClientTest.php", "language": "php", "file_size": 2232, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\JsonStreamer\\Dto\\Dummy;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\JsonStreamer\\Height;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\JsonStreamer\\StreamerDumper;\nuse Symfony\\Component\\JsonStreamer\\StreamReaderInterface;\nuse S", "suffix": "\n */\nclass JsonStreamerTest extends AbstractWebTestCase\n{\n protected function setUp(): void\n {\n static::bootKernel(['test_case' => 'JsonStreamer']);\n }\n\n public function testWrite()\n {\n /** @var StreamWriterInterface $writer */", "middle": "ymfony\\Component\\JsonStreamer\\StreamWriterInterface;\nuse Symfony\\Component\\JsonStreamer\\Transformer\\PropertyValueTransformerInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\n\n/**\n * @author Mathias Arlaud <mathias.arlaud@gmail.com>", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/JsonStreamerTest.php", "language": "php", "file_size": 3600, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass KernelTestCaseFreshCacheTest extends AbstractWebTestCase\n{\n private static string $trackedFile;\n\n public static function setUpBeforeClass(): void\n {\n parent::setUpBeforeClass();\n\n self:", "suffix": "\n\n public function testContainerIsRebuiltWhenTrackedFileAppears()\n {\n @unlink(self::$trackedFile);\n\n // First boot: container is built tracking the file as non-existing\n static::bootKernel(['test_case' => 'TestServiceContainer', ", "middle": ":$trackedFile = sys_get_temp_dir().'/'.static::getVarDir().'/tracked_file.yaml';\n }\n\n public static function tearDownAfterClass(): void\n {\n parent::tearDownAfterClass();\n\n @unlink(self::$trackedFile);\n }", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/KernelTestCaseFreshCacheTest.php", "language": "php", "file_size": 2419, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Bundle\\FullStack;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Mailer\\Mailer;\nuse Symfony\\Component\\Mailer\\SentMessage;\nuse Symfony\\Component\\Mailer\\Transport\\AbstractTransport;\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Componen", "suffix": " $envelope = $message->getEnvelope();\n\n $this->assertEquals(\n [new Address('redirected@example.org')],\n $envelope->getRecipients()\n );\n\n $this->assertEquals('sender@example.org', $envelope->ge", "middle": "t\\Mime\\Email;\n\nclass MailerTest extends AbstractWebTestCase\n{\n public function testEnvelopeListener()\n {\n self::bootKernel(['test_case' => 'Mailer']);\n\n $onDoSend = function (SentMessage $message) {\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/MailerTest.php", "language": "php", "file_size": 4195, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\MimeType\\CustomMimeTypeGuesser;\nuse Symfony\\Component\\Mime\\MimeTypes;\n\n#[Group('functional')]\nclass MimeTypeGuesserBootTest extends AbstractWebTestCase\n{\n ", "suffix": "pe() (and any other static call site) silently\n * falls back to a fresh, default-only MimeTypes instance, dropping every guesser\n * tagged \"mime.mime_type_guesser\" in the container.\n */\n public function testCustomGuesserIsAppliedAfterKernelB", "middle": " /**\n * Verifies that booting the kernel eagerly instantiates the \"mime_types\" service,\n * so that MimeTypes::setDefault() fires before any code calls MimeTypes::getDefault().\n *\n * Without this, File::getMimeTy", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/MimeTypeGuesserBootTest.php", "language": "php", "file_size": 2069, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresMethod;\nuse Symfony\\Bundle\\MercureBundle\\MercureBundle;\n\nfinal class NotificationTest extends AbstractWebTestCase\n{\n #[RequiresMethod(MercureBundle::class, 'build')]\n public function testNotif", "suffix": "nt(3);\n $first = 0;\n $second = 1;\n $third = 2;\n $this->assertNotificationIsNotQueued($this->getNotifierEvent($first));\n $this->assertNotificationIsNotQueued($this->getNotifierEvent($second));\n\n $notification = $thi", "middle": "ierAssertion()\n {\n $client = $this->createClient(['test_case' => 'Notifier', 'root_config' => 'config.yml', 'debug' => true]);\n $client->request('GET', '/send_notification');\n\n $this->assertNotificationCou", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/NotificationTest.php", "language": "php", "file_size": 1997, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\ObjectMapper\\CollectionSource;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\ObjectMapper\\CollectionSourceItem;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\ObjectMapper\\Collection", "suffix": "ectMapperTest extends AbstractWebTestCase\n{\n public function testObjectMapper()\n {\n static::bootKernel(['test_case' => 'ObjectMapper']);\n\n /** @var Symfony\\Component\\ObjectMapper\\ObjectMapperInterface<ObjectMapped> */\n $objectMap", "middle": "Target;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\ObjectMapper\\ObjectMapped;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\ObjectMapper\\ObjectToBeMapped;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass Obj", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ObjectMapperTest.php", "language": "php", "file_size": 1833, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\n\nclass ProfilerTest extends AbstractWebTestCase\n{\n #[DataProvider('getConfigs')]\n public function testProfilerIsDisabled($insulate)\n {\n $client = $this->createClient(['test_cas", "suffix": "nable the profiler for the next request\n $client->enableProfiler();\n $this->assertNull($client->getProfile());\n $client->request('GET', '/profiler');\n $this->assertIsObject($client->getProfile());\n\n $client->request('GET'", "middle": "e' => 'Profiler', 'root_config' => 'config.yml']);\n if ($insulate) {\n $client->insulate();\n }\n\n $client->request('GET', '/profiler');\n $this->assertNull($client->getProfile());\n\n // e", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ProfilerTest.php", "language": "php", "file_size": 1865, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Config\\ConfigCache;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\n/**\n * @internal\n *\n * @author Robin Chalas <robin.chalas@gmail.com>\n * @author Nicolas Grekas <p@tchwork.com>\n */\ntrait ", "suffix": "face $kernel): ContainerBuilder\n {\n if (isset($this->container)) {\n return $this->container;\n }\n\n $file = $kernel->isDebug() ? $kernel->getContainer()->getParameter('debug.container.dump') : false;\n\n if (!$file || ", "middle": "BuildDebugContainerTrait\n{\n protected ContainerBuilder $container;\n\n /**\n * Loads the ContainerBuilder from the cache.\n *\n * @throws \\LogicException\n */\n protected function getContainerBuilder(KernelInter", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/BuildDebugContainerTrait.php", "language": "php", "file_size": 2325, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\n#[Group('functional')]\nclass RouterDebugCommandTest extends AbstractWebTestCase\n{\n private Application $applicatio", "suffix": "on testDumpAllRoutes()\n {\n $tester = $this->createCommandTester();\n $ret = $tester->execute([]);\n $display = $tester->getDisplay();\n\n $this->assertSame(0, $ret, 'Returns 0 in case of success');\n $this->assertStringCont", "middle": "n;\n\n protected function setUp(): void\n {\n $kernel = static::createKernel(['test_case' => 'RouterDebug', 'root_config' => 'config.yml']);\n $this->application = new Application($kernel);\n }\n\n public functi", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/RouterDebugCommandTest.php", "language": "php", "file_size": 6958, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\n\nclass RoutingConditionServiceTest extends AbstractWebTestCase\n{\n #[DataProvider('provideRoutes')]\n public function testCondition(int $code, string $path)\n {\n $client = static:", "suffix": "rable\n {\n yield 'allowed by an autoconfigured service' => [\n 200,\n '/allowed/manually-tagged',\n ];\n\n yield 'allowed by a manually tagged service' => [\n 200,\n '/allowed/auto-configured',\n ", "middle": ":createClient(['test_case' => 'RoutingConditionService']);\n\n $client->request('GET', $path);\n $this->assertSame($code, $client->getResponse()->getStatusCode());\n }\n\n public static function provideRoutes(): ite", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/RoutingConditionServiceTest.php", "language": "php", "file_size": 1705, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n", "suffix": "r cache pools.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\n#[AsCommand(name: 'cache:pool:clear', description: 'Clear cache pools')]\nfinal class CachePoolClearCommand extends Command\n{\n /**\n * @param string[]|null $poolNames\n */\n public f", "middle": "use Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\HttpKernel\\CacheClearer\\Psr6CacheClearer;\n\n/**\n * Clea", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolClearCommand.php", "language": "php", "file_size": 5094, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\S", "suffix": "tends Command\n{\n /**\n * @param string[] $poolNames\n */\n public function __construct(\n private array $poolNames,\n ) {\n parent::__construct();\n }\n\n protected function configure(): void\n {\n $this\n ->se", "middle": "tyle\\SymfonyStyle;\n\n/**\n * List available cache pools.\n *\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\n#[AsCommand(name: 'cache:pool:list', description: 'List available cache pools')]\nfinal class CachePoolListCommand ex", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolListCommand.php", "language": "php", "file_size": 1425, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterfa", "suffix": "olPruneCommand extends Command\n{\n /**\n * @param iterable<mixed, PruneableInterface> $pools\n */\n public function __construct(\n private iterable $pools,\n ) {\n parent::__construct();\n }\n\n protected function configure(): vo", "middle": "ce;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * Cache pool pruner command.\n *\n * @author Rob Frawley 2nd <rmf@src.run>\n */\n#[AsCommand(name: 'cache:pool:prune', description: 'Prune cache pools')]\nfinal class CachePo", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolPruneCommand.php", "language": "php", "file_size": 1934, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Definition\\Dumper\\XmlReferenceDumper;\nuse Symfony\\Component\\Config\\Definition\\Dumper\\YamlReferenceDumper;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgument", "suffix": "Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ConfigurationExtensionInterface;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * A console command for dumping available configuration reference.\n *\n * @author Kevin Bond <k", "middle": "Exception;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php", "language": "php", "file_size": 7616, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Config\\ConfigCache;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\De", "suffix": "tion\\Compiler\\ResolveFactoryClassPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveParameterPlaceHoldersPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentExcep", "middle": "pendencyInjection\\Compiler\\CheckAliasValidityPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CheckTypeDeclarationsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjec", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/ContainerLintCommand.php", "language": "php", "file_size": 5214, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Helper\\DescriptorHelper;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface", "suffix": "y\\Contracts\\Service\\ServiceProviderInterface;\n\n/**\n * A console command for retrieving information about event dispatcher.\n *\n * @author Matthieu Auger <mail@matthieuauger.com>\n *\n * @final\n */\n#[AsCommand(name: 'debug:event-dispatcher', description: 'Disp", "middle": ";\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfon", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/EventDispatcherDebugCommand.php", "language": "php", "file_size": 5968, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Conso", "suffix": "ponent\\Routing\\RouterInterface;\n\n/**\n * A console command to test route matching.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\n#[AsCommand(name: 'router:match', description: 'Help debug routes by simulating a path info match')]\nclas", "middle": "le\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface;\nuse Symfony\\Component\\Routing\\Matcher\\TraceableUrlMatcher;\nuse Symfony\\Com", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php", "language": "php", "file_size": 4223, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse S", "suffix": "ncrypt all local secrets to the vault')]\nfinal class SecretsEncryptFromLocalCommand extends Command\n{\n public function __construct(\n private AbstractVault $vault,\n private ?AbstractVault $localVault = null,\n ) {\n parent::__constr", "middle": "ymfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\n#[AsCommand(name: 'secrets:encrypt-from-local', description: 'E", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsEncryptFromLocalCommand.php", "language": "php", "file_size": 2101, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Helper\\Dumper;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\C", "suffix": "russe.com>\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\n#[AsCommand(name: 'secrets:list', description: 'List all secrets')]\nfinal class SecretsListCommand extends Command\n{\n public function __construct(\n private AbstractVault $va", "middle": "onsole\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * @author Tobias Schultze <http://tobion.de>\n * @author Jérémy Derussé <jeremy@de", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsListCommand.php", "language": "php", "file_size": 3347, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgume", "suffix": "ny\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * @author Jérémy Derussé <jeremy@derusse.com>\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\n#[AsCommand(name: 'secrets:remove', description: 'Remove a secret from the vault')]\nfinal class Secre", "middle": "nt;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfo", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsRemoveCommand.php", "language": "php", "file_size": 3214, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOptio", "suffix": " Jérémy Derussé <jeremy@derusse.com>\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\n#[AsCommand(name: 'secrets:set', description: 'Set a secret in the vault')]\nfinal class SecretsSetCommand extends Command\n{\n public function __construct(\n", "middle": "n;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * @author Tobias Schultze <http://tobion.de>\n * @author", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsSetCommand.php", "language": "php", "file_size": 5351, "cut_index": 716, "middle_length": 229}} {"prefix": "mfonyStyle;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Translation\\Catalogue\\MergeOperation;\nuse Symfony\\Component\\Translation\\Catalogue\\TargetOperation;\nuse Symfony\\Component\\Translation\\Extractor\\ExtractorInterface;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\MessageCatalogueInterface;\nuse Symfony\\Component\\Translation\\Reader\\TranslationReaderInterface;\nuse Symfony\\Component\\Translation\\Writer\\TranslationWriterInterface;\n\n/**\n * A comm", "suffix": "g translations keys from code to translation files')]\nclass TranslationExtractCommand extends Command\n{\n private const ASC = 'asc';\n private const DESC = 'desc';\n private const SORT_ORDERS = [self::ASC, self::DESC];\n private const FORMATS = [\n ", "middle": "and that parses templates to extract translation messages and adds them\n * into the translation files.\n *\n * @author Michel Salib <michelsalib@hotmail.com>\n */\n#[AsCommand(name: 'translation:extract', description: 'Extract missin", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/TranslationExtractCommand.php", "language": "php", "file_size": 20027, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Yaml\\Command\\LintCommand as BaseLintCommand;\n\n/**\n * Validates YAML files syntax and outputs encountered errors.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n * @author ", "suffix": "t()\n {\n $directoryIteratorProvider = function ($directory, $default) {\n if (!is_dir($directory)) {\n $directory = $this->getApplication()->getKernel()->locateResource($directory);\n }\n\n return $defaul", "middle": "Robin Chalas <robin.chalas@gmail.com>\n *\n * @final\n */\n#[AsCommand(name: 'lint:yaml', description: 'Lint a YAML file and outputs encountered errors')]\nclass YamlLintCommand extends BaseLintCommand\n{\n public function __construc", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/YamlLintCommand.php", "language": "php", "file_size": 1558, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Helper\\Table;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\StyleInterface;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ConfigurationExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\n", "suffix": " class AbstractConfigCommand extends ContainerDebugCommand\n{\n protected function listBundles(OutputInterface|StyleInterface $output): void\n {\n $title = 'Available registered bundles with their extension alias if available';\n $headers = ", "middle": "\n/**\n * A console command for dumping available configuration reference.\n *\n * @author Kevin Bond <kevinbond@gmail.com>\n * @author Wouter J <waldio.webdesign@gmail.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n */\nabstract", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php", "language": "php", "file_size": 6610, "cut_index": 716, "middle_length": 229}} {"prefix": "Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\Filesystem\\Exception\\IOException;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\", "suffix": "ommand(name: 'assets:install', description: 'Install bundle\\'s web assets under a public directory')]\nclass AssetsInstallCommand extends Command\n{\n public const METHOD_COPY = 'copy';\n public const METHOD_ABSOLUTE_SYMLINK = 'absolute symlink';\n pub", "middle": "Component\\HttpKernel\\KernelInterface;\n\n/**\n * Command that places bundle web assets into a given directory.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Gábor Egyed <gabor.egyed@gmail.com>\n *\n * @final\n */\n#[AsC", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php", "language": "php", "file_size": 10150, "cut_index": 921, "middle_length": 229}} {"prefix": "Console\\Exception\\RuntimeException;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\Preloader;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Filesystem\\Exception\\IOException;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Compon", "suffix": "ien@symfony.com>\n *\n * @final\n */\n#[AsCommand(name: 'cache:clear', description: 'Clear the cache')]\nclass CacheClearCommand extends Command\n{\n private Filesystem $filesystem;\n\n public function __construct(\n private CacheClearerInterface $cache", "middle": "ent\\HttpKernel\\CacheClearer\\CacheClearerInterface;\nuse Symfony\\Component\\HttpKernel\\RebootableInterface;\n\n/**\n * Clear and Warmup the cache.\n *\n * @author Francis Besset <francis.besset@gmail.com>\n * @author Fabien Potencier <fab", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php", "language": "php", "file_size": 10070, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nus", "suffix": "use Symfony\\Contracts\\Cache\\TagAwareCacheInterface;\nuse Symfony\\Contracts\\Service\\ServiceProviderInterface;\n\n/**\n * @author Kevin Bond <kevinbond@gmail.com>\n */\n#[AsCommand(name: 'cache:pool:invalidate-tags', description: 'Invalidate cache tags for all or ", "middle": "e Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\n", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolInvalidateTagsCommand.php", "language": "php", "file_size": 3746, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component", "suffix": "armup the cache.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @final\n */\n#[AsCommand(name: 'cache:warmup', description: 'Warm up an empty cache')]\nclass CacheWarmupCommand extends Command\n{\n public function __construct(\n private Cach", "middle": "\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\DependencyInjection\\Dumper\\Preloader;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerAggregate;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\WarmableInterface;\n\n/**\n * W", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php", "language": "php", "file_size": 2859, "cut_index": 563, "middle_length": 229}} {"prefix": "se Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\", "suffix": "njection\\ParameterBag\\ParameterBag;\n\n/**\n * A console command for retrieving information about services.\n *\n * @author Ryan Weaver <ryan@thatsquality.com>\n *\n * @internal\n */\n#[AsCommand(name: 'debug:container', description: 'Display current services for a", "middle": "DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\DependencyI", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php", "language": "php", "file_size": 16194, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Sym", "suffix": "pt all secrets and stores them in the local vault')]\nfinal class SecretsDecryptToLocalCommand extends Command\n{\n public function __construct(\n private AbstractVault $vault,\n private ?AbstractVault $localVault = null,\n ) {\n parent", "middle": "fony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\n#[AsCommand(name: 'secrets:decrypt-to-local', description: 'Decry", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsDecryptToLocalCommand.php", "language": "php", "file_size": 3357, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Com", "suffix": "the value of a secret')]\nfinal class SecretsRevealCommand extends Command\n{\n public function __construct(\n private readonly AbstractVault $vault,\n private readonly ?AbstractVault $localVault = null,\n ) {\n parent::__construct();\n ", "middle": "ponent\\Console\\Output\\ConsoleOutputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * @internal\n */\n#[AsCommand(name: 'secrets:reveal', description: 'Reveal ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsRevealCommand.php", "language": "php", "file_size": 2449, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Translation\\Command\\XliffLintCommand as BaseLintCommand;\n\n/**\n * Validates XLIFF files syntax and outputs encountered errors.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info", "suffix": "ffLintCommand extends BaseLintCommand\n{\n public function __construct()\n {\n $directoryIteratorProvider = function ($directory, $default) {\n if (!is_dir($directory)) {\n $directory = $this->getApplication()->getKernel()-", "middle": ">\n * @author Robin Chalas <robin.chalas@gmail.com>\n * @author Javier Eguiluz <javier.eguiluz@gmail.com>\n *\n * @final\n */\n#[AsCommand(name: 'lint:xliff', description: 'Lint an XLIFF file and outputs encountered errors')]\nclass Xli", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/XliffLintCommand.php", "language": "php", "file_size": 1628, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\CacheWarmer;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerInterface;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\WarmableInterface;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\nuse Symfony\\Contr", "suffix": "erInterface\n{\n private TranslatorInterface $translator;\n\n /**\n * As this cache warmer is optional, dependencies should be lazy-loaded, that's why a container should be injected.\n */\n public function __construct(\n private ContainerIn", "middle": "acts\\Translation\\TranslatorInterface;\n\n/**\n * Generates the catalogues for translations.\n *\n * @author Xavier Leune <xavier.leune@gmail.com>\n */\nfinal class TranslationsCacheWarmer implements CacheWarmerInterface, ServiceSubscrib", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php", "language": "php", "file_size": 1605, "cut_index": 537, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\TypeInfo\\Type;\n\nclass PropertyInfoTest extends AbstractWebTestCase\n{\n public function testPhpDocPriority()\n {\n static::bootKernel(['test_case' => 'Serializer']);\n\n $propertyI", "suffix": "getContainer()->get('property_info');\n\n $this->assertEquals(Type::array(Type::int()), $propertyInfo->getType(Dummy::class, 'codes'));\n }\n}\n\nclass Dummy\n{\n /**\n * @param int[] $codes\n */\n public function setCodes(array $codes)\n {\n", "middle": "nfo = static::", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/PropertyInfoTest.php", "language": "php", "file_size": 792, "cut_index": 514, "middle_length": 14}} {"prefix": "ent\\Config\\Definition\\Processor;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Exception\\LogicException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Ou", "suffix": "nent\\DependencyInjection\\Extension\\ConfigurationExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * A console command for dumping available configuration reference.\n *\n * @aut", "middle": "tput\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ValidateEnvPlaceholdersPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Compo", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php", "language": "php", "file_size": 11386, "cut_index": 921, "middle_length": 229}} {"prefix": " Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\n\n/**\n * A console command for autowiring information.\n *\n * @author R", "suffix": "blic function __construct(\n ?string $name = null,\n private ?FileLinkFormatter $fileLinkFormatter = null,\n ) {\n parent::__construct($name);\n }\n\n protected function configure(): void\n {\n $this\n ->setDefiniti", "middle": "yan Weaver <ryan@knpuniversity.com>\n *\n * @internal\n */\n#[AsCommand(name: 'debug:autowiring', description: 'List classes/interfaces you can use for autowiring')]\nclass DebugAutowiringCommand extends ContainerDebugCommand\n{\n pu", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/DebugAutowiringCommand.php", "language": "php", "file_size": 10290, "cut_index": 921, "middle_length": 229}} {"prefix": "Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Translation\\Catalo", "suffix": "\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\Reader\\TranslationReaderInterface;\nuse Symfony\\Component\\Translation\\Translator;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\n/**\n * Helps finding unused or missing translation messages in a g", "middle": "gue\\MergeOperation;\nuse Symfony\\Component\\Translation\\DataCollectorTranslator;\nuse Symfony\\Component\\Translation\\Extractor\\ExtractorInterface;\nuse Symfony\\Component\\Translation\\LoggingTranslator;\nuse Symfony\\Component\\Translation", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php", "language": "php", "file_size": 15145, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Composer\\InstalledVersions;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Helper\\Helper;\nuse Symfony\\Component\\Console\\Helper\\TableSeparator;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nus", "suffix": "v>\n *\n * @final\n */\n#[AsCommand(name: 'about', description: 'Display information about the current project')]\nclass AboutCommand extends Command\n{\n protected function configure(): void\n {\n $this\n ->setHelp(<<<'EOT'\n T", "middle": "e Symfony\\Component\\HttpKernel\\KernelInterface;\n\n/**\n * A console command to display information about the current installation.\n *\n * @author Roland Franssen <franssen.roland@gmail.com>\n * @author Joppe De Cuyper <hello@joppe.de", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php", "language": "php", "file_size": 6037, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Helper\\DescriptorHelper;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\", "suffix": "er\\FileLinkFormatter;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Routing\\RouterInterface;\n\n/**\n * A console command for retrieving information about routes.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Tobias Sch", "middle": "Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\ErrorHandler\\ErrorRender", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php", "language": "php", "file_size": 7462, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse", "suffix": "te an item from a cache pool.\n *\n * @author Pierre du Plessis <pdples@gmail.com>\n */\n#[AsCommand(name: 'cache:pool:delete', description: 'Delete an item from a cache pool')]\nfinal class CachePoolDeleteCommand extends Command\n{\n /**\n * @param string[", "middle": " Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\HttpKernel\\CacheClearer\\Psr6CacheClearer;\n\n/**\n * Dele", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolDeleteCommand.php", "language": "php", "file_size": 2782, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutputInterface;\nuse Sym", "suffix": "rk.com>\n *\n * @internal\n */\n#[AsCommand(name: 'secrets:generate-keys', description: 'Generate new encryption keys')]\nfinal class SecretsGenerateKeysCommand extends Command\n{\n public function __construct(\n private AbstractVault $vault,\n pri", "middle": "fony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\n\n/**\n * @author Tobias Schultze <http://tobion.de>\n * @author Jérémy Derussé <jeremy@derusse.com>\n * @author Nicolas Grekas <p@tchwo", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsGenerateKeysCommand.php", "language": "php", "file_size": 3651, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nclass SubRequestsTest extends AbstractWebTestCase\n{\n public function testStateAfterSubRequest()\n {\n $client = $this->createClient(['test_case' => 'Session', 'root_config' => 'config.yml']);\n $cli", "suffix": "bRequestControllerServicesAreResolved()\n {\n $client = $this->createClient(['test_case' => 'ControllerServiceResolution', 'root_config' => 'config.yml']);\n $client->request('GET', 'https://localhost/subrequest');\n\n $this->assertEqual", "middle": "ent->request('GET', 'https://localhost/subrequest/en');\n\n $this->assertEquals('--fr/json--en/html--fr/json--http://localhost/subrequest/fragment/en', $client->getResponse()->getContent());\n }\n\n public function testSu", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SubRequestsTest.php", "language": "php", "file_size": 1054, "cut_index": 513, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\Depends;\nuse PHPUnit\\Framework\\Attributes\\DoesNotPerformAssertions;\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\TestContainer;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\TestServiceContainer\\NonPublicService;\nuse Symf", "suffix": "workBundle\\Tests\\Functional\\Bundle\\TestBundle\\TestServiceContainer\\UnusedPrivateService;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\nclass TestServiceContainerTest extends AbstractWebTestCase\n{\n public function testLog", "middle": "ony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\TestServiceContainer\\PrivateService;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\TestServiceContainer\\PublicService;\nuse Symfony\\Bundle\\Frame", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/TestServiceContainerTest.php", "language": "php", "file_size": 4503, "cut_index": 614, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterfa", "suffix": "k')->getCurrentRequest();\n $path['_controller'] = self::class.'::fragmentAction';\n $subRequest = $request->duplicate([], null, $path);\n\n return $this->container->get('http_kernel')->handle($subRequest, HttpKernelInterface::SUB_REQUEST)", "middle": "ce;\n\nclass SubRequestServiceResolutionController\n{\n public function __construct(private ContainerInterface $container)\n {\n }\n\n public function indexAction()\n {\n $request = $this->container->get('request_stac", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SubRequestServiceResolutionController.php", "language": "php", "file_size": 1119, "cut_index": 515, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Routing\\Attribute\\Route;\nuse Symfony\\Component\\Uid\\Ulid;\nuse Symfony\\Component\\Uid\\UuidV1;\n\nclass UidController\n{\n #[Route(pa", "suffix": "cdefghijkmnopqrstuvwxyz]{22}'])]\n public function specificFormatInAttribute(Ulid $id): Response\n {\n return new Response($id);\n }\n\n #[Route(path: '/3/uuid-v1/{id<[0123456789ABCDEFGHJKMNPQRSTVWXYZabcdefghjkmnpqrstvwxyz]{26}>}')]\n public", "middle": "th: '/1/uuid-v1/{userId}')]\n public function anyFormat(UuidV1 $userId): Response\n {\n return new Response($userId);\n }\n\n #[Route(path: '/2/ulid/{id}', requirements: ['id' => '[123456789ABCDEFGHJKLMNPQRSTUVWXYZab", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/UidController.php", "language": "php", "file_size": 1377, "cut_index": 524, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\TestServiceContainer;\n\nclass PublicService\n{\n private NonPublicService $nonPublicService;\n private PrivateService $privateService;\n private PrivateService $decorated;\n public object $nonS", "suffix": "rvice,\n object $nonSharedAlias,\n ) {\n $this->nonPublicService = $nonPublicService;\n $this->privateService = $privateService;\n $this->decorated = $decorated;\n $this->nonSharedService = $nonSharedService;\n $this->", "middle": "haredService;\n public object $nonSharedAlias;\n\n public function __construct(\n NonPublicService $nonPublicService,\n PrivateService $privateService,\n PrivateService $decorated,\n object $nonSharedSe", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TestServiceContainer/PublicService.php", "language": "php", "file_size": 1040, "cut_index": 513, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\TransDebug;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass TransSubscriberService implements ServiceSubscriberInterface\n{\n private ContainerInterface $co", "suffix": "nterface $container)\n {\n $this->container = $container;\n }\n\n public static function getSubscribedServices(): array\n {\n return ['translator' => TranslatorInterface::class];\n }\n\n public function hello(): string\n {\n r", "middle": "ntainer;\n\n public function __construct(ContainerI", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TransDebug/TransSubscriberService.php", "language": "php", "file_size": 981, "cut_index": 582, "middle_length": 52}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\DependencyInjection;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\DependencyInjection\\Config\\CustomConfig;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse ", "suffix": " {\n $this->customConfig = $customConfig;\n }\n\n public function getConfigTreeBuilder(): TreeBuilder\n {\n $treeBuilder = new TreeBuilder('test');\n\n $this->customConfig?->addConfiguration($treeBuilder->getRootNode());\n\n ret", "middle": "Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\n\nclass Configuration implements ConfigurationInterface\n{\n private ?CustomConfig $customConfig;\n\n public function __construct(?CustomConfig $customConfig = null)\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/DependencyInjection/Configuration.php", "language": "php", "file_size": 1023, "cut_index": 512, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\DependencyInjection;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\DependencyInjection\\Config\\CustomConfig;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Depe", "suffix": "pendExtensionInterface\n{\n private ?CustomConfig $customConfig = null;\n\n public function load(array $configs, ContainerBuilder $container): void\n {\n $configuration = $this->getConfiguration($configs, $container);\n $this->processConfig", "middle": "ndencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface;\n\nclass TestExtension extends Extension implements Pre", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/DependencyInjection/TestExtension.php", "language": "php", "file_size": 1516, "cut_index": 537, "middle_length": 229}} {"prefix": "s part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\DependencyInjection\\Config;\n\nclass CustomConfig\n{\n public function addConfiguration($rootNode)\n {\n $rootNode\n ->children()\n ->scalarNode('custom')->end()\n ->arrayNode('", "suffix": " ->children()\n ->scalarNode('child1')->end()\n ->scalarNode('child2')->end()\n ->end()\n ->end()\n ->end()\n ->end()\n ;\n }\n}", "middle": "array')\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/DependencyInjection/Config/CustomConfig.php", "language": "php", "file_size": 807, "cut_index": 536, "middle_length": 14}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\DataCollector;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController;\nuse Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Componen", "suffix": "NoRouteAtrribute()\n {\n $collector = new RouterDataCollector();\n\n $request = Request::create('http://test.com/foo?bar=baz');\n $response = new RedirectResponse('http://test.com/redirect');\n\n $event = $this->createControllerEven", "middle": "t\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\ControllerEvent;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass RouterDataCollectorTest extends TestCase\n{\n public function testRouteRedirectController", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DataCollector/RouterDataCollectorTest.php", "language": "php", "file_size": 2319, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Routing;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Routing\\AttributeRouteControllerLoader;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Routing\\Fixtures\\InvokableController;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Ro", "suffix": "\n $collection = $loader->load(InvokableController::class);\n\n $route = $collection->get('lol');\n $this->assertSame(InvokableController::class, $route->getDefault('_controller'));\n }\n\n public function testConfigureRouteSetsControll", "middle": "uting\\Fixtures\\MethodActionControllers;\n\nclass AttributeRouteControllerLoaderTest extends TestCase\n{\n public function testConfigureRouteSetsControllerForInvokable()\n {\n $loader = new AttributeRouteControllerLoader();", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Routing/AttributeRouteControllerLoaderTest.php", "language": "php", "file_size": 1448, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Routing;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolver;\nuse Symfony\\Component\\Config\\Loader\\LoaderResolverInterface;\nuse Symfo", "suffix": "egatingLoader(new LoaderResolver());\n $this->assertTrue(true, '__construct() takes a LoaderResolverInterface as its first argument.');\n }\n\n public function testLoadDefaultOptions()\n {\n $loaderResolver = $this->createMock(LoaderResolv", "middle": "ny\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Routing\\RouteCompiler;\n\nclass DelegatingLoaderTest extends TestCase\n{\n public function testConstructorApi()\n {\n new Del", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Routing/DelegatingLoaderTest.php", "language": "php", "file_size": 2447, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Routing;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableCompiledUrlMatcher;\nuse Symfony\\Component\\Routing\\Matcher\\Dumper\\CompiledUrlMatcherDumper;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\Route;\nuse Sym", "suffix": "te('/foo/'));\n\n $matcher = $this->getMatcher($routes, $context = new RequestContext());\n\n $this->assertEquals(\n [\n '_controller' => 'Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController::urlRedirectAction',\n ", "middle": "fony\\Component\\Routing\\RouteCollection;\n\nclass RedirectableCompiledUrlMatcherTest extends TestCase\n{\n public function testRedirectWhenNoSlash()\n {\n $routes = new RouteCollection();\n $routes->add('foo', new Rou", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableCompiledUrlMatcherTest.php", "language": "php", "file_size": 2422, "cut_index": 563, "middle_length": 229}} {"prefix": "metersResourceChecker;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException;\nuse Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ContainerBag;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\Routing\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass Rout", "suffix": "ny\\Component\\DependencyInjection\\ContainerInterface\" instance or provide the $parameters argument of the \"Symfony\\Bundle\\FrameworkBundle\\Routing\\Router::__construct\" method');\n new Router($this->createStub(ContainerInterface::class), 'foo');\n }\n\n", "middle": "erTest extends TestCase\n{\n public function testConstructThrowsOnNonSymfonyNorPsr11Container()\n {\n $this->expectException(\\LogicException::class);\n $this->expectExceptionMessage('You should either pass a \"Symfo", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php", "language": "php", "file_size": 20726, "cut_index": 1331, "middle_length": 229}} {"prefix": "\\MockObject\\MockObject;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\EventListener\\SuggestMissingPackageSubscriber;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Event\\ConsoleErrorEvent;\nuse Symfony\\Component\\Console\\Exception\\CommandNotFoundException;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\Console\\Test", "suffix": "ntDispatcher\\EventDispatcher;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\nuse Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass ", "middle": "er\\ApplicationTester;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\Eve", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Console/ApplicationTest.php", "language": "php", "file_size": 11346, "cut_index": 921, "middle_length": 229}} {"prefix": " PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\FooUnitEnum;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\EventDispatcher", "suffix": "): void\n {\n $this->colSize = getenv('COLUMNS');\n putenv('COLUMNS=121');\n }\n\n protected function tearDown(): void\n {\n putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');\n }\n\n #[DataProvider('getDescribeRout", "middle": "\\EventDispatcher;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nabstract class AbstractDescriptorTestCase extends TestCase\n{\n private string|false $colSize;\n\n protected function setUp(", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTestCase.php", "language": "php", "file_size": 14471, "cut_index": 921, "middle_length": 229}} {"prefix": "\\Fixtures\\Suit;\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\Argument\\AbstractArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Compon", "suffix": "tion();\n foreach (self::getRoutes() as $name => $route) {\n $collection1->add($name, $route);\n }\n\n $routesWithGenericHost = new RouteCollection();\n $routesWithGenericHost->add('some_route', new RouteStub(\n '", "middle": "ent\\Routing\\CompiledRoute;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nclass ObjectsProvider\n{\n public static function getRouteCollections()\n {\n $collection1 = new RouteCollec", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/ObjectsProvider.php", "language": "php", "file_size": 13493, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Descriptor\\TextDescriptor;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Symfony\\Component\\Routing\\Route;\n\nclass TextDescriptorTest extends A", "suffix": " static function getFormat()\n {\n return 'txt';\n }\n\n public static function getDescribeRouteWithControllerLinkTestData()\n {\n $getDescribeData = static::getDescribeRouteTestData();\n\n foreach ($getDescribeData as $key => &$dat", "middle": "bstractDescriptorTestCase\n{\n private static ?FileLinkFormatter $fileLinkFormatter = null;\n\n protected static function getDescriptor()\n {\n return new TextDescriptor(static::$fileLinkFormatter);\n }\n\n protected", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/TextDescriptorTest.php", "language": "php", "file_size": 2378, "cut_index": 563, "middle_length": 229}} {"prefix": "er\\ParamConfigurator as Param;\n\n/**\n * This class provides array-shapes for configuring the services and bundles of an application.\n *\n * Services declared with the config() method below are autowired and autoconfigured by default.\n *\n * This is for apps only. Bundles SHOULD NOT use it.\n *\n * Example:\n *\n * ```php\n * // config/services.php\n * namespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n *\n * return App::config([\n * 'services' => [\n * 'App\\\\' => [\n", "suffix": "l,\n * }>\n * @psalm-type ParametersConfig = array<string, scalar|\\UnitEnum|array<scalar|\\UnitEnum|array<mixed>|Param|null>|Param|null>\n * @psalm-type ArgumentsType = list<mixed>|array<string, mixed>\n * @psalm-type CallType = array<string, ArgumentsType>|arr", "middle": " * 'resource' => '../src/',\n * ],\n * ],\n * ]);\n * ```\n *\n * @psalm-type ImportsConfig = list<string|array{\n * resource: string,\n * type?: string|null,\n * ignore_errors?: boo", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/reference.php", "language": "php", "file_size": 8277, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Console;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Dependenc", "suffix": "owire] with service reference\n #[Autowire(service: 'Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Console\\TestService')]\n TestService $autowiredService,\n // Test #[Autowire] with parameter\n #[Autowire('%kernel.environment%')]\n ", "middle": "yInjection\\Attribute\\Autowire;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\Target;\n\n#[AsCommand('app:advanced')]\nclass AdvancedCommand\n{\n public function __invoke(\n OutputInterface $output,\n // Test #[Aut", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Console/AdvancedCommand.php", "language": "php", "file_size": 1656, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Console;\n\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Test value resolver that should be auto-tagged.\n */\nfinal class AutoTaggedValueResolver ", "suffix": "ion resolve(string $argumentName, InputInterface $input, ReflectionMember $member): iterable\n {\n if ('autoTagged' === $argumentName && 'string' === $member->getType()?->getName()) {\n return ['auto-tagged-value'];\n }\n\n ret", "middle": "implements ValueResolverInterface\n{\n public funct", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Console/AutoTaggedValueResolver.php", "language": "php", "file_size": 930, "cut_index": 606, "middle_length": 52}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Console;\n\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\ncl", "suffix": "('customOption' !== $argumentName || !$type instanceof \\ReflectionNamedType || CustomType::class !== $type->getName()) {\n return [];\n }\n\n $value = $input->hasOption('format') ? $input->getOption('format') : 'default';\n\n yiel", "middle": "ass CustomOptionValueResolver implements ValueResolverInterface\n{\n public function resolve(string $argumentName, InputInterface $input, ReflectionMember $member): iterable\n {\n $type = $member->getType();\n\n if ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Console/CustomOptionValueResolver.php", "language": "php", "file_size": 1044, "cut_index": 513, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Console;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\Option;\nuse Symfony\\Component\\Console\\Attribute\\ValueResolver;\nuse Symfony\\Component\\Console", "suffix": "nterface $output,\n #[ValueResolver(CustomTypeValueResolver::class)] CustomType $custom,\n #[Argument] string $name,\n TestService $service,\n #[ValueResolver(CustomOptionValueResolver::class)] CustomType $customOption,\n #[Ar", "middle": "\\Command\\Command;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n#[AsCommand(name: 'app:custom-type', description: 'Tests custom argument resolver')]\nclass CustomTypeCommand\n{\n public function __invoke(\n OutputI", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Console/CustomTypeCommand.php", "language": "php", "file_size": 1699, "cut_index": 537, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Console;\n\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\ReflectionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\nc", "suffix": "!$type instanceof \\ReflectionNamedType || CustomType::class !== $type->getName()) {\n return [];\n }\n\n $name = $input->hasArgument('name') ? $input->getArgument('name') : 'default';\n\n yield new CustomType('resolved:' . $name);", "middle": "lass CustomTypeValueResolver implements ValueResolverInterface\n{\n public function resolve(string $argumentName, InputInterface $input, ReflectionMember $member): iterable\n {\n $type = $member->getType();\n\n if (", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Console/CustomTypeValueResolver.php", "language": "php", "file_size": 1006, "cut_index": 512, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Console;\n\nuse Symfony\\Component\\Console\\Attribute\\Argument;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\ValueResolver;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony", "suffix": "utInterface $output,\n #[Argument] string $scenario,\n string $autoTagged = '',\n #[ValueResolver('targeted')] ?CustomType $targeted = null,\n ): int {\n if ('auto-tagged' === $scenario) {\n $output->writeln('Auto-tagged", "middle": "\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Tests both auto-tagged and targeted value resolver autoconfiguration.\n */\n#[AsCommand('app:resolver-test')]\nclass ResolverTestCommand\n{\n public function __invoke(\n Outp", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Console/ResolverTestCommand.php", "language": "php", "file_size": 1193, "cut_index": 518, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Console;\n\nuse Symfony\\Component\\Console\\ArgumentResolver\\ValueResolver\\ValueResolverInterface;\nuse Symfony\\Component\\Console\\Attribute\\AsTargetedValueResolver;\nuse Symfony\\Component\\Console\\Attribute\\Reflection\\Reflect", "suffix": "InputInterface $input, ReflectionMember $member): iterable\n {\n if ('targeted' === $argumentName && CustomType::class === $member->getType()?->getName()) {\n return [new CustomType('targeted-value')];\n }\n\n return [];\n }\n", "middle": "ionMember;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n#[AsTargetedValueResolver('targeted')]\nfinal class TargetedCustomValueResolver implements ValueResolverInterface\n{\n public function resolve(string $argumentName, ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Console/TargetedCustomValueResolver.php", "language": "php", "file_size": 999, "cut_index": 512, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Console;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Attribute\\MapInput;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n#[AsCommand(name: 'app:validated-input',", "suffix": "idatedInputCommand\n{\n public function __invoke(\n OutputInterface $output,\n #[MapInput]\n ValidatedInput $input,\n ): int {\n $output->writeln('Name: '.$input->name);\n $output->writeln('Email: '.$input->email);\n\n ", "middle": " description: 'Tests validated MapInput')]\nclass Val", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Console/ValidatedInputCommand.php", "language": "php", "file_size": 889, "cut_index": 547, "middle_length": 52}} {"prefix": "e is used for translation message extraction tests\n<?php echo $view['translator']->trans('single-quoted key') ?>\n<?php echo $view['translator']->trans('double-quoted key') ?>\n<?php echo $view['translator']->trans(<<<'EOF'\nheredoc key\nEOF\n) ?>\n<?php echo $view['translator']->trans(<<<'EOF'\nnowdoc key\nEOF\n) ?>\n<?php echo $view['translator']->trans(\n \"double-quoted key with whitespace and escaped \\$\\n\\\" sequences\"\n) ?>\n<?php echo $view['translator']->trans(\n 'single-quoted key with whitespace and nonesca", "suffix": " sequences\nEOF\n) ?>\n\n<?php echo $view['translator']->trans('single-quoted key with \"quote mark at the end\"') ?>\n\n<?php echo $view['translator']->trans('other-domain-test-no-params-short-array', [], 'not_messages'); ?>\n\n<?php echo $view['translator']->trans", "middle": "ped \\$\\n\\' sequences'\n) ?>\n<?php echo $view['translator']->trans(<<<EOF\nheredoc key with whitespace and escaped \\$\\n sequences\nEOF\n) ?>\n<?php echo $view['translator']->trans(<<<'EOF'\nnowdoc key with whitespace and nonescaped \\$\\n", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php", "language": "php", "file_size": 1402, "cut_index": 524, "middle_length": 229}} {"prefix": "er;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Scheduler\\Attribute\\AsCronTask;\n\n#[AsCronTask(expression: '* * * * *', schedule: 'dummy_command')]\n#[AsCronTask(expression: '0 * * * *', arguments: 'test', schedule: 'dummy_command')]\n#[AsCommand(name: 'test:dummy-command')]\nclass", "suffix": "ray $calls = [];\n\n public function configure(): void\n {\n $this->addArgument('dummy-argument', InputArgument::OPTIONAL);\n }\n\n public function execute(InputInterface $input, ?OutputInterface $output = null): int\n {\n self::$calls[", "middle": " DummyCommand extends Command\n{\n public static ar", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Messenger/DummyCommand.php", "language": "php", "file_size": 989, "cut_index": 582, "middle_length": 52}} {"prefix": "Bundle\\FrameworkBundle\\Tests\\Fixtures\\Messenger;\n\nuse Symfony\\Component\\Scheduler\\Attribute\\AsCronTask;\nuse Symfony\\Component\\Scheduler\\Attribute\\AsPeriodicTask;\n\n#[AsCronTask(expression: '* * * * *', arguments: [1], schedule: 'dummy_task')]\n#[AsCronTask(expression: '0 * * * *', timezone: 'Europe/Berlin', arguments: ['2'], schedule: 'dummy_task', method: 'method2')]\n#[AsPeriodicTask(frequency: 5, arguments: [3], schedule: 'dummy_task')]\n#[AsPeriodicTask(frequency: '1 day', from: '2023-10-25 09:59:00Z', jitt", "suffix": " day', from: '2023-10-25 09:59:00Z', arguments: ['9b'], schedule: 'dummy_task', method: 'method5')]\n#[AsPeriodicTask(frequency: '1 day', from: '2023-10-25 09:59:00Z', arguments: ['named' => '9'], schedule: 'dummy_task', method: 'method5')]\nclass DummyTask\n", "middle": "er: 60, arguments: ['4'], schedule: 'dummy_task', method: 'method4')]\n#[AsPeriodicTask(frequency: '1 day', from: '2023-10-25 09:59:00Z', arguments: ['9'], schedule: 'dummy_task', method: 'method5')]\n#[AsPeriodicTask(frequency: '1", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Messenger/DummyTask.php", "language": "php", "file_size": 1557, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Kernel;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symf", "suffix": "or\\RoutingConfigurator;\n\nclass ConcreteMicroKernel extends Kernel implements EventSubscriberInterface\n{\n use MicroKernelTrait {\n getKernelParameters as public;\n }\n\n private string $cacheDir;\n\n public function onKernelException(ExceptionE", "middle": "ony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Routing\\Loader\\Configurat", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Kernel/ConcreteMicroKernel.php", "language": "php", "file_size": 2814, "cut_index": 563, "middle_length": 229}} {"prefix": "\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Loader\\ClosureLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurat", "suffix": "\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;\n\nrequire_once __DIR__.'/default/src/DefaultKernel.php';\nrequire_once __DIR__.'/flex-style/src/FlexStyleMicroKernel.php';\n\nclass MicroKernelTraitTest extend", "middle": "or\\ContainerConfigurator;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Kernel/MicroKernelTraitTest.php", "language": "php", "file_size": 11944, "cut_index": 921, "middle_length": 229}} {"prefix": "*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Kernel;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\nabstract class MinimalKernel extends Kernel\n{\n use MicroKernelTrait;\n\n private string $cacheDir;\n\n public function ", "suffix": "__construct('test', false);\n\n $this->cacheDir = sys_get_temp_dir().'/'.$cacheDir;\n }\n\n public function getCacheDir(): string\n {\n return $this->cacheDir;\n }\n\n public function getLogDir(): string\n {\n return $this->cache", "middle": "__construct(string $cacheDir)\n {\n parent::", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Kernel/MinimalKernel.php", "language": "php", "file_size": 841, "cut_index": 520, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\TranslationDebugCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\n#[Group('functional')]\nclass TranslationDebugCom", "suffix": " $this->application = new Application($kernel);\n }\n\n public function testDumpAllTrans()\n {\n $tester = $this->createCommandTester();\n $ret = $tester->execute(['locale' => 'en']);\n\n $this->assertSame(\n TranslationDeb", "middle": "mandTest extends AbstractWebTestCase\n{\n private Application $application;\n\n protected function setUp(): void\n {\n $kernel = static::createKernel(['test_case' => 'TransDebug', 'root_config' => 'config.yml']);\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/TranslationDebugCommandTest.php", "language": "php", "file_size": 2251, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Extension;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Dep", "suffix": ");\n $treeBuilder->getRootNode()\n ->children()\n ->booleanNode('enabled')->defaultTrue()->end()\n ->end()\n ;\n\n return $treeBuilder;\n }\n\n public function load(array $configs, ContainerBuilder $con", "middle": "endencyInjection\\Extension\\Extension;\n\nclass TestDumpExtension extends Extension implements ConfigurationInterface\n{\n public function getConfigTreeBuilder(): TreeBuilder\n {\n $treeBuilder = new TreeBuilder('test_dump'", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Extension/TestDumpExtension.php", "language": "php", "file_size": 1171, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Extension\\TestDumpExtension;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Depende", "suffix": "ests.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass AppKernel extends Kernel implements ExtensionInterface, ConfigurationInterface\n{\n private string $varDir;\n private string $testCase;\n private string $rootConfig;\n\n public ", "middle": "ncyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\n/**\n * App Test Kernel for functional t", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/AppKernel.php", "language": "php", "file_size": 4657, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\JsonStreamer;\n\nuse Symfony\\Component\\JsonStreamer\\Transformer\\PropertyValueTransformerInterface;\nuse Symfony\\Component\\JsonStreamer\\ValueTransformer\\ValueTransformerInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony", "suffix": " {\n public function transform(mixed $value, array $options = []): string\n {\n return $value[0].'..'.$value[1];\n }\n\n public static function getStreamValueType(): BuiltinType\n {\n return Type::string(", "middle": "\\Component\\TypeInfo\\Type\\BuiltinType;\n\n// BC layer for \"symfony/json-streamer\" < 8.1\nif (!interface_exists(PropertyValueTransformerInterface::class)) {\n class RangeToStringValueTransformer implements ValueTransformerInterface\n", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/JsonStreamer/RangeToStringValueTransformer.php", "language": "php", "file_size": 1399, "cut_index": 524, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\DefaultConfigTestBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\n\nclass Configuration implements ConfigurationInterface\n{\n public function getConfigTreeBuilder(): TreeBuilder\n {\n $tree", "suffix": " $treeBuilder->getRootNode()\n ->children()\n ->scalarNode('foo')->defaultValue('%default_config_test_foo%')->end()\n ->scalarNode('baz')->defaultValue('%env(BAZ)%')->end()\n ->end();\n\n return $t", "middle": "Builder = new TreeBuilder('default_config_test');\n\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/DefaultConfigTestBundle/DependencyInjection/Configuration.php", "language": "php", "file_size": 934, "cut_index": 606, "middle_length": 52}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\DefaultConfigTestBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\n\nclass DefaultConfigTestExtension extends Extension\n{\n public function load(array $c", "suffix": " $configuration = new Configuration();\n $config = $this->processConfiguration($configuration, $configs);\n\n $container->setParameter('default_config_test', $config['foo']);\n $container->setParameter('default_config_test', $config['b", "middle": "onfigs, ContainerBuilder $container): void\n {\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/DefaultConfigTestBundle/DependencyInjection/DefaultConfigTestExtension.php", "language": "php", "file_size": 882, "cut_index": 559, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\DependencyInjection\\Config\\CustomConfig;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CheckTypeDeclarationsPass;\nuse Symfony\\Compone", "suffix": "lass TestBundle extends Bundle\n{\n public function build(ContainerBuilder $container): void\n {\n parent::build($container);\n\n /** @var DependencyInjection\\TestExtension $extension */\n $extension = $container->getExtension('test');\n", "middle": "nt\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\FrozenParameterBag;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nc", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TestBundle.php", "language": "php", "file_size": 1498, "cut_index": 524, "middle_length": 229}} {"prefix": "\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\AutowiringTypes;\n\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\nclass AutowiredServices\n{\n public function __construct(\n private readonl", "suffix": "herInterface $dispatcher,\n private readonly CacheItemPoolInterface $cachePool,\n ) {\n }\n\n public function getDispatcher()\n {\n return $this->dispatcher;\n }\n\n public function getCachePool()\n {\n return $this->cachePool", "middle": "y EventDispatc", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/AutowiringTypes/AutowiredServices.php", "language": "php", "file_size": 797, "cut_index": 517, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Mailer\\MailerInterface;\nuse Symfony\\Component\\Mime\\Address;\nuse Symfony\\Component\\Mime\\Email;\nuse Symfony\\Component\\Mime\\Part\\Da", "suffix": "e@symfony.com')\n ->addCc('cc@symfony.com')\n ->text('Bar!')\n ->html('<p>Foo</p>')\n ->addPart(new DataPart(file_get_contents(__FILE__), 'foobar.php'))\n );\n\n $mailer->send((new Email())->to('fabien@sym", "middle": "taPart;\n\nclass EmailController\n{\n public function indexAction(MailerInterface $mailer)\n {\n $mailer->send((new Email())->to('fabien@symfony.com')->from('fabien@symfony.com')->subject('Foo')\n ->addReplyTo('m", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/EmailController.php", "language": "php", "file_size": 1390, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass HttpClientController\n{\n public function index(HttpClientInterface $httpClient, H", "suffix": "o']);\n $symfonyHttpClient->request('POST', '/', ['body' => ['foo' => 'bar']]);\n $symfonyHttpClient->request('POST', '/', ['json' => ['foo' => 'bar']]);\n $symfonyHttpClient->request('POST', '/', [\n 'headers' => ['X-Test-Heade", "middle": "ttpClientInterface $symfonyHttpClient): Response\n {\n $httpClient->request('GET', 'https://symfony.com/');\n\n $symfonyHttpClient->request('GET', '/');\n $symfonyHttpClient->request('POST', '/', ['body' => 'fo", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/HttpClientController.php", "language": "php", "file_size": 1180, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Notifier\\Notification\\Notification;\nuse Symfony\\Component\\Notifier\\NotifierInterface;\nuse Symfony\\Component\\Notifier\\Recipient\\R", "suffix": "('Symfony is awesome!');\n $notifier->send($firstNotification);\n\n $secondNotification = (new Notification('New urgent notification'))\n ->importance(Notification::IMPORTANCE_URGENT)\n ;\n $notifier->send($secondNotificati", "middle": "ecipient;\n\nfinal class NotificationController\n{\n public function indexAction(NotifierInterface $notifier)\n {\n $firstNotification = new Notification('Hello World!', ['chat/slack']);\n $firstNotification->content", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/NotificationController.php", "language": "php", "file_size": 1258, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Tester\\ExecutionResult;\n\n#[Group('functional')]\nclass RunCommandTest extends AbstractWebTestCase\n{\n protec", "suffix": "nd('list');\n\n $this->assertInstanceOf(ExecutionResult::class, $result);\n $this->assertSame(Command::SUCCESS, $result->statusCode);\n $this->assertStringContainsString('Available commands:', $result->getOutput());\n }\n\n public funct", "middle": "ted function setUp(): void\n {\n static::bootKernel(['test_case' => 'RunCommand', 'root_config' => 'config.yml']);\n }\n\n public function testRunCommandReturnsExecutionResult()\n {\n $result = static::runComma", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/RunCommandTest.php", "language": "php", "file_size": 1415, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\TranslatableBackedEnum;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\AppKernel;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author Kévin Dunglas <dunglas@gm", "suffix": "erializer.alias')->deserialize('{\"bars\": [{\"id\": 1}, {\"id\": 2}]}', Foo::class, 'json');\n\n $bar1 = new Bar();\n $bar1->id = 1;\n $bar2 = new Bar();\n $bar2->id = 2;\n\n $expected = new Foo();\n $expected->bars = [$bar1, $", "middle": "ail.com>\n */\nclass SerializerTest extends AbstractWebTestCase\n{\n public function testDeserializeArrayOfObject()\n {\n static::bootKernel(['test_case' => 'Serializer']);\n\n $result = static::getContainer()->get('s", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SerializerTest.php", "language": "php", "file_size": 3725, "cut_index": 614, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Slugger\\SlugConstructArgService;\n\n#[Group('functional')]\nclass SluggerLocaleAwareTest extends AbstractWebTestCase\n{\n ", "suffix": " testLocalizedSlugger()\n {\n $kernel = static::createKernel(['test_case' => 'Slugger', 'root_config' => 'config.yml']);\n $kernel->boot();\n\n $service = $kernel->getContainer()->get(SlugConstructArgService::class);\n\n $this->asse", "middle": " #[RequiresPhpExtension('intl')]\n public function", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SluggerLocaleAwareTest.php", "language": "php", "file_size": 961, "cut_index": 582, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\n\nclass SubReques", "suffix": "fr', '_format' => 'json']);\n $altUrl = $this->generateUrl('subrequest_fragment', ['_locale' => 'fr', '_format' => 'json']);\n\n // simulates a failure during the rendering of a fragment...\n // should render fr/json\n $content = $ha", "middle": "tController\n{\n public function __construct(private ContainerInterface $container)\n {\n }\n\n public function indexAction($handler)\n {\n $errorUrl = $this->generateUrl('subrequest_fragment_error', ['_locale' => '", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SubRequestController.php", "language": "php", "file_size": 2377, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPStan\\PhpDocParser\\Parser\\PhpDocParser;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\TypeInfo\\Dummy;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\TypeInfo\\Type;\n\nclass TypeInfoTest extends Ab", "suffix": "eflectionProperty(Dummy::class, 'name')));\n\n if (!class_exists(PhpDocParser::class)) {\n $this->markTestSkipped('\"phpstan/phpdoc-parser\" dependency is required.');\n }\n\n $this->assertEquals(Type::int(), static::getContainer()-", "middle": "stractWebTestCase\n{\n public function testComponent()\n {\n static::bootKernel(['test_case' => 'TypeInfo']);\n\n $this->assertEquals(Type::string(), static::getContainer()->get('type_info.resolver')->resolve(new \\R", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/TypeInfoTest.php", "language": "php", "file_size": 1397, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\JsonStreamer;\n\nuse Symfony\\Component\\JsonStreamer\\Transformer\\ValueObjectTransformerInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony\\Component\\TypeInfo\\Type\\BuiltinType;\n\n/**\n * @implements ValueObjectTransf", "suffix": "n $object->value.' '.$object->unit;\n }\n\n public function reverseTransform(int|float|string|bool|null $scalar, array $options = []): object\n {\n return new Height(...explode(' ', $scalar));\n }\n\n public static function getStreamValueType", "middle": "ormerInterface<Height, string>\n */\nclass HeightValueObjectTransformer implements ValueObjectTransformerInterface\n{\n public function transform(object $object, array $options = []): int|float|string|bool|null\n {\n retur", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/JsonStreamer/HeightValueObjectTransformer.php", "language": "php", "file_size": 1168, "cut_index": 518, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\JsonStreamer;\n\nuse Symfony\\Component\\JsonStreamer\\Transformer\\PropertyValueTransformerInterface;\nuse Symfony\\Component\\JsonStreamer\\ValueTransformer\\ValueTransformerInterface;\nuse Symfony\\Component\\TypeInfo\\Type;\nuse Symfony", "suffix": " {\n public function transform(mixed $value, array $options = []): array\n {\n return array_map(static fn (string $v): int => (int) $v, explode('..', $value));\n }\n\n public static function getStreamValueType(): Builtin", "middle": "\\Component\\TypeInfo\\Type\\BuiltinType;\n\n// BC layer for \"symfony/json-streamer\" < 8.1\nif (!interface_exists(PropertyValueTransformerInterface::class)) {\n class StringToRangeValueTransformer implements ValueTransformerInterface\n", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/JsonStreamer/StringToRangeValueTransformer.php", "language": "php", "file_size": 1493, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\RoutingConditionServiceBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Routing\\Attribute\\Route;\n\nclass DefaultController\n{\n #[Route(\n path: '/allowed/manually-tagged',\n condition: 'service(\"manually_tag", "suffix": ".flip(false)',\n )]\n public function allowedByAutoConfigured(): Response\n {\n return new Response();\n }\n\n #[Route(\n path: '/allowed/auto-configured-non-aliased',\n condition: 'service(\"auto_configured_non_aliased\").alwaysTr", "middle": "ged\").giveMeTrue()',\n )]\n public function allowedByManuallyTagged(): Response\n {\n return new Response();\n }\n\n #[Route(\n path: '/allowed/auto-configured',\n condition: 'service(\"auto_configured\")", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/RoutingConditionServiceBundle/Controller/DefaultController.php", "language": "php", "file_size": 2078, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Routing\\Attribute\\Route;\n\nclass AnnotatedController\n{\n #[Route('/null_request', name: 'null_", "suffix": "blic function argumentDefaultNullWithoutRouteParamAction($value = null): Response\n {\n return new Response($value);\n }\n\n #[Route('/null_argument_with_route_param/{value}', name: 'null_argument_with_route_param')]\n public function argument", "middle": "request')]\n public function requestDefaultNullAction(?Request $request = null): Response\n {\n return new Response($request ? $request::class : null);\n }\n\n #[Route('/null_argument', name: 'null_argument')]\n pu", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/AnnotatedController.php", "language": "php", "file_size": 1543, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Contra", "suffix": "his->container = $container;\n }\n\n public function profileAction()\n {\n return new Response('Welcome '.$this->container->get('security.token_storage')->getToken()->getUserIdentifier().'!');\n }\n\n public static function getSubscribedServi", "middle": "cts\\Service\\ServiceSubscriberInterface;\n\nclass SecurityController implements ServiceSubscriberInterface\n{\n private ContainerInterface $container;\n\n public function __construct(ContainerInterface $container)\n {\n $t", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SecurityController.php", "language": "php", "file_size": 1128, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass SecurityTest extends AbstractWebTestCase\n{\n #[DataProvider('getUsers')]\n public function testLoginUser(string $username, array $roles, ?string $firewallContext)\n {\n $user = new InMemoryUser($username, 'the-password', $roles);\n $cl", "suffix": "wallContext);\n }\n\n $client->request('GET', '/'.($firewallContext ?? 'main').'/user_profile');\n $this->assertEquals('Welcome '.$username.'!', $client->getResponse()->getContent());\n }\n\n public static function getUsers()\n {\n ", "middle": "ient = $this->createClient(['test_case' => 'Security', 'root_config' => 'config.yml']);\n\n if (null === $firewallContext) {\n $client->loginUser($user);\n } else {\n $client->loginUser($user, $fire", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SecurityTest.php", "language": "php", "file_size": 5760, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass SessionController\n{", "suffix": "e\n if (!$session->has('name')) {\n if (!$name) {\n return new Response('<html><body>You are new here and gave no name.</body></html>');\n }\n\n // remember name\n $session->set('name', $name);\n\n ", "middle": "\n public function __construct(protected ContainerInterface $container)\n {\n }\n\n public function welcomeAction(Request $request, $name = null)\n {\n $session = $request->getSession();\n\n // new session cas", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SessionController.php", "language": "php", "file_size": 2350, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\Uid\\Ulid;\nuse Symfony\\Component\\Uid\\UuidV1;\nuse Symfony\\Component\\Uid\\UuidV4;\nuse Symfony\\Component\\Uid\\UuidV6;\n\nclass UidTest extends AbstractWebTestCase\n{\n protected function setUp(): void\n {\n self::deleteTmpDir();\n }\n\n public function testArgumentValueResolverDisabled()\n ", "suffix": "onMessage('Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller\\UidController::anyFormat(): Argument #1 ($userId) must be of type Symfony\\Component\\Uid\\UuidV1, string given');\n\n $client->request('GET', '/1/uuid-v1/'.new UuidV", "middle": " {\n $client = $this->createClient(['test_case' => 'Uid', 'root_config' => 'config_disabled.yml']);\n $client->catchExceptions(false);\n\n $this->expectException(\\TypeError::class);\n $this->expectExcepti", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/UidTest.php", "language": "php", "file_size": 3570, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\JsonStreamer\\Dto;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\JsonStreamer\\Height;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\app\\JsonStreamer\\RangeToStringValueTransformer;\nuse Symfony\\Bundle\\Fra", "suffix": "mer\\Attribute\\ValueTransformer;\n\n#[JsonStreamable]\nclass Dummy\n{\n #[StreamedName('@name')]\n #[ValueTransformer(\n nativeToStream: 'strtoupper',\n streamToNative: 'strtolower',\n )]\n public string $name = 'dummy';\n\n #[ValueTransfor", "middle": "meworkBundle\\Tests\\Functional\\app\\JsonStreamer\\StringToRangeValueTransformer;\nuse Symfony\\Component\\JsonStreamer\\Attribute\\JsonStreamable;\nuse Symfony\\Component\\JsonStreamer\\Attribute\\StreamedName;\nuse Symfony\\Component\\JsonStrea", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/JsonStreamer/Dto/Dummy.php", "language": "php", "file_size": 1219, "cut_index": 518, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\EnvVarLoader;\n\nuse Symfony\\Component\\DependencyInjection\\EnvVarLoaderInterface;\n\n/**\n * Simulates a vault-like env var loader whose secrets are populated via static\n * state. This allows tests to contr", "suffix": "r implements EnvVarLoaderInterface\n{\n private static array $envVars = [];\n\n public static function setEnvVar(string $name, string $value): void\n {\n self::$envVars[$name] = $value;\n }\n\n public static function reset(): void\n {\n ", "middle": "ol what the loader returns and to verify\n * that the running container's already-initialized processor (with its cached\n * env var state) is used by ConfigDebugCommand instead of a freshly-built one.\n */\nclass StatefulEnvVarLoade", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/EnvVarLoader/StatefulEnvVarLoader.php", "language": "php", "file_size": 1116, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Messenger\\BarMessage;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Messenger\\DummyCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Messenger\\DummySchedule;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Messenger\\DummyTask;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Fixtures\\Messenger\\FooMessage;\nuse Symfony\\Component\\Clock\\MockClock;\nuse Symfony\\Com", "suffix": "duler\\RecurringMessage;\n\nclass SchedulerTest extends AbstractWebTestCase\n{\n public function testScheduler()\n {\n $scheduledMessages = [\n RecurringMessage::every('5 minutes', $foo = new FooMessage(), new \\DateTimeImmutable('2020-01-01", "middle": "ponent\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Messenger\\MessageBusInterface;\nuse Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp;\nuse Symfony\\Component\\Scheduler\\Messenger\\SchedulerTransport;\nuse Symfony\\Component\\Sche", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SchedulerTest.php", "language": "php", "file_size": 5431, "cut_index": 716, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\ExtensionWithoutConfigTestBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\n\nclass ExtensionWithoutCo", "suffix": " public function getNamespace(): string\n {\n return '';\n }\n\n /**\n * To be removed when symfony/dependency-injection is bumped to 8.0+.\n */\n public function getXsdValidationBasePath(): string|false\n {\n return false;\n ", "middle": "nfigTestExtension implements ExtensionInterface\n{\n public function load(array $configs, ContainerBuilder $container): void\n {\n }\n\n /**\n * To be removed when symfony/dependency-injection is bumped to 8.0+.\n */\n", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/ExtensionWithoutConfigTestBundle/DependencyInjection/ExtensionWithoutConfigTestExtension.php", "language": "php", "file_size": 1106, "cut_index": 515, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\n\nclass SessionTest extends AbstractWebTestCase\n{\n /**\n * Tests session attributes persist.\n */\n #[DataProvider('getConfigs')]\n public function testWelcome($config, $insulate)\n {\n $client = $this->createClient(['test_case' => 'Session', 'root_config' => $config]);\n if ($insulate) {\n $client->insulate();\n }\n\n // ", "suffix": "GET', '/session/drak');\n $this->assertStringContainsString('Hello drak, nice to meet you.', $crawler->text());\n\n // prove remembered name\n $crawler = $client->request('GET', '/session');\n $this->assertStringContainsString('Welco", "middle": "no session\n $crawler = $client->request('GET', '/session');\n $this->assertStringContainsString('You are new here and gave no name.', $crawler->text());\n\n // remember name\n $crawler = $client->request('", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SessionTest.php", "language": "php", "file_size": 6033, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\TestBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Controller\\ControllerReference;\nuse Symfony\\Component\\HttpKernel\\Fragment\\FragmentUr", "suffix": "blic function inlinedAction($options, $_format)\n {\n return new Response($options['bar']->getBar().' '.$_format);\n }\n\n public function customFormatAction($_format)\n {\n return new Response($_format);\n }\n\n public function custo", "middle": "iGeneratorInterface;\nuse Twig\\Environment;\n\nclass FragmentController\n{\n public function indexAction(Environment $twig)\n {\n return new Response($twig->render('fragment.html.twig', ['bar' => new Bar()]));\n }\n\n pu", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/FragmentController.php", "language": "php", "file_size": 1608, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolInvalidateTagsCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Dependency", "suffix": "is->createCommand(['foo' => null, 'bar' => null]));\n\n $suggestions = $tester->complete(['--pool=']);\n\n $this->assertSame(['foo', 'bar'], $suggestions);\n }\n\n public function testInvalidatesTagsForAllPoolsByDefault()\n {\n $tagsTo", "middle": "Injection\\ServiceLocator;\nuse Symfony\\Contracts\\Cache\\TagAwareCacheInterface;\n\nclass CachePoolInvalidateTagsCommandTest extends TestCase\n{\n public function testComplete()\n {\n $tester = new CommandCompletionTester($th", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/CachePoolInvalidateTagsCommandTest.php", "language": "php", "file_size": 4640, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command\\CacheClearCommand;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Command\\CacheClearCommand\\Fixture\\TestAppKernel;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Symfony\\Component\\Config\\ConfigCacheFactory;\nuse Symfony\\Component\\Config\\Resource\\ResourceInterface", "suffix": "\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Finder\\Finder;\n\nclass CacheClearCommandTest extends TestCase\n{\n private TestAppKernel $kernel;\n private Filesystem $fs;\n\n protected function setUp(): void\n {\n $this->fs = new Filesystem();\n ", "middle": ";\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\Filesystem\\Exception\\IOException;\nuse Symfony\\Component", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/CacheClearCommand/CacheClearCommandTest.php", "language": "php", "file_size": 5077, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command\\CacheClearCommand\\Fixture;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpK", "suffix": " ];\n }\n\n public function getProjectDir(): string\n {\n return __DIR__.'/test';\n }\n\n public function registerContainerConfiguration(LoaderInterface $loader): void\n {\n $loader->load(__DIR__.\\DIRECTORY_SEPARATOR.'config.yml');", "middle": "ernel\\CacheWarmer\\CacheWarmerInterface;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\nclass TestAppKernel extends Kernel\n{\n public function registerBundles(): iterable\n {\n return [\n new FrameworkBundle(),\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/CacheClearCommand/Fixture/TestAppKernel.php", "language": "php", "file_size": 1578, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command\\AboutCommand;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\AboutCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Command\\AboutCommand\\Fixture\\TestAppKernel;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Sy", "suffix": "ted function setUp(): void\n {\n $this->fs = new Filesystem();\n }\n\n public function testAboutWithReadableFiles()\n {\n $kernel = new TestAppKernel('test', true);\n $this->fs->mkdir($kernel->getProjectDir());\n\n $this->fs->", "middle": "mfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Filesystem\\Exception\\IOException;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass AboutCommandTest extends TestCase\n{\n private Filesystem $fs;\n\n protec", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/AboutCommand/AboutCommandTest.php", "language": "php", "file_size": 2992, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command\\AboutCommand\\Fixture;\n\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\K", "suffix": "turn __DIR__.'/test';\n }\n\n public function registerContainerConfiguration(LoaderInterface $loader): void\n {\n $loader->load(static function (ContainerBuilder $container) {\n $container->loadFromExtension('framework', []);\n }", "middle": "ernel;\n\nclass TestAppKernel extends Kernel\n{\n public function registerBundles(): iterable\n {\n return [\n new FrameworkBundle(),\n ];\n }\n\n public function getProjectDir(): string\n {\n re", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/AboutCommand/Fixture/TestAppKernel.php", "language": "php", "file_size": 1088, "cut_index": 515, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Test;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Com", "suffix": "ace;\n\nclass KernelTestCaseHttpCacheTest extends KernelTestCase\n{\n private static string $baseDir;\n\n public static function setUpBeforeClass(): void\n {\n self::$baseDir = sys_get_temp_dir().'/sf_http_cache_kernel_testcase_'.uniqid('', true);\n", "middle": "ponent\\HttpKernel\\HttpCache\\HttpCache;\nuse Symfony\\Component\\HttpKernel\\HttpCache\\Store;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\HttpKernel\\KernelInterf", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Test/KernelTestCaseHttpCacheTest.php", "language": "php", "file_size": 4171, "cut_index": 614, "middle_length": 229}} {"prefix": "omponent\\DomCrawler\\Crawler;\nuse Symfony\\Component\\HttpFoundation\\Cookie as HttpFoundationCookie;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass WebTestCaseTest extends TestCase\n{\n public function testAssertResponseIsSuccessful()\n {\n $this->getResponseTester(new Response())->assertResponseIsSuccessful();\n $this->expectException(AssertionFailedError::class);\n $this->expectExceptionMessage(\"Failed asserting that the Response is su", "suffix": "Response())->assertResponseStatusCodeSame(200);\n $this->getResponseTester(new Response('', 404))->assertResponseStatusCodeSame(404);\n $this->expectException(AssertionFailedError::class);\n $this->expectExceptionMessage(\"Failed asserting", "middle": "ccessful.\\nHTTP/1.0 404 Not Found\");\n $this->getResponseTester(new Response('', 404))->assertResponseIsSuccessful();\n }\n\n public function testAssertResponseStatusCodeSame()\n {\n $this->getResponseTester(new ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php", "language": "php", "file_size": 24025, "cut_index": 1331, "middle_length": 229}} {"prefix": "\nuse Symfony\\Component\\Webhook\\Controller\\WebhookController;\n\nclass ConfigurationTest extends TestCase\n{\n public function testDefaultConfig()\n {\n $processor = new Processor();\n $config = $processor->processConfiguration(new Configuration(true), [[\n 'secret' => 's3cr3t',\n 'serializer' => ['default_context' => ['foo' => 'bar']],\n ]]);\n\n $this->assertEquals(self::getBundleDefaultConfig(), $config);\n }\n\n public function getTestValidSessionName()\n ", "suffix": "Name($sessionName)\n {\n $processor = new Processor();\n\n $this->expectException(InvalidConfigurationException::class);\n\n $processor->processConfiguration(\n new Configuration(true),\n [[\n 'session' =", "middle": "{\n return [\n [null],\n ['PHPSESSID'],\n ['a&b'],\n [',_-!@#$%^*(){}:<>/?'],\n ];\n }\n\n #[DataProvider('getTestInvalidSessionName')]\n public function testInvalidSession", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php", "language": "php", "file_size": 45711, "cut_index": 2151, "middle_length": 229}} {"prefix": "tion\\InvalidDefinitionException;\nuse Symfony\\Component\\Workflow\\Metadata\\InMemoryMetadataStore;\nuse Symfony\\Component\\Workflow\\WorkflowEvents;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\Cache\\TagAwareCacheInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nabstract class FrameworkExtensionTestCase extends TestCase\n{\n private static array $containerCache = [];\n\n abstract protected function loadFromFile(ContainerBuilder $container, $file);\n\n public function testFo", "suffix": ".csrf.enabled'));\n $this->assertEquals('%form.type_extension.csrf.enabled%', $def->getArgument(1));\n $this->assertEquals('_csrf', $container->getParameter('form.type_extension.csrf.field_name'));\n $this->assertEquals('%form.type_extens", "middle": "rmCsrfProtection()\n {\n $container = $this->createContainerFromFile('full');\n\n $def = $container->getDefinition('form.type_extension.csrf');\n\n $this->assertTrue($container->getParameter('form.type_extension", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php", "language": "php", "file_size": 159347, "cut_index": 7068, "middle_length": 229}} {"prefix": "r\\PhpFileLoader;\nuse Symfony\\Component\\Mailer\\Bridge\\Brevo\\Webhook\\BrevoRequestParser;\nuse Symfony\\Component\\Mailer\\Bridge\\Postmark\\Webhook\\PostmarkRequestParser;\nuse Symfony\\Component\\Messenger\\Tests\\Fixtures\\DummyMessage;\nuse Symfony\\Component\\RateLimiter\\CompoundRateLimiterFactory;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactoryInterface;\nuse Symfony\\Component\\Validator\\Constraints\\Email;\nuse Symfony\\Component\\Workflow\\Definition;\nuse Symfony\\Component\\Workflow\\DependencyInjection\\WorkflowValidatorP", "suffix": "function loadFromFile(ContainerBuilder $container, $file)\n {\n $loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/Fixtures/php'));\n $loader->load($file.'.php');\n }\n\n public function testAssetsCannotHavePathAndUrl()\n ", "middle": "ass;\nuse Symfony\\Component\\Workflow\\Exception\\InvalidDefinitionException;\nuse Symfony\\Component\\Workflow\\Validator\\DefinitionValidatorInterface;\n\nclass PhpFrameworkExtensionTest extends FrameworkExtensionTestCase\n{\n protected ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/PhpFrameworkExtensionTest.php", "language": "php", "file_size": 22965, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loade", "suffix": "or(__DIR__.'/Fixtures/yml'));\n $loader->load($file.'.yml');\n }\n\n public function testWorkflowWithSimplisticPlaceFollowedByComplexPlaceWithAlternativeSyntax()\n {\n $this->expectException(InvalidConfigurationException::class);\n $", "middle": "r\\YamlFileLoader;\n\nclass YamlFrameworkExtensionTest extends FrameworkExtensionTestCase\n{\n protected function loadFromFile(ContainerBuilder $container, $file)\n {\n $loader = new YamlFileLoader($container, new FileLocat", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/YamlFrameworkExtensionTest.php", "language": "php", "file_size": 1809, "cut_index": 537, "middle_length": 229}} {"prefix": "omExtension('framework', [\n 'assets' => [\n 'version' => 'SomeVersionScheme',\n 'base_urls' => 'http://cdn.example.com',\n 'version_format' => '%%s?version=%%s',\n 'packages' => [\n 'images_path' => [\n 'base_path' => '/foo',\n ],\n 'images' => [\n 'version' => '1.0.0',\n 'base_urls' => ['http://images1.example.com', 'http://images2.example.com'],\n ],\n 'foo' => [\n 'version'", "suffix": " 'base_urls' => ['https://bar2.example.com'],\n 'version_strategy' => 'assets.custom_version_strategy',\n ],\n 'json_manifest_strategy' => [\n 'json_manifest_path' => '/path/to/manifest.json',\n ],\n", "middle": " => '1.0.0',\n 'version_format' => '%%s-%%s',\n ],\n 'bar' => [\n 'base_urls' => ['https://bar2.example.com'],\n ],\n 'bar_version_strategy' => [\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/assets.php", "language": "php", "file_size": 1746, "cut_index": 537, "middle_length": 229}} {"prefix": "\n 'cache' => [\n 'pools' => [\n 'cache.foo' => [\n 'adapter' => 'cache.adapter.apcu',\n 'default_lifetime' => 30,\n ],\n 'cache.baz' => [\n 'adapter' => 'cache.adapter.filesystem',\n 'default_lifetime' => 7,\n ],\n 'cache.foobar' => [\n 'adapter' => 'cache.adapter.psr6',\n 'default_lifetime' => 10,\n 'provider' => 'app.cache_pool',\n ],\n ", "suffix": "'default_lifetime' => 12,\n 'adapter' => [\n 'cache.adapter.array',\n 'cache.adapter.filesystem',\n 'redis://foo' => 'cache.adapter.redis',\n ],\n ],\n 'c", "middle": " 'cache.def' => [\n 'default_lifetime' => 'PT11S',\n ],\n 'cache.expr' => [\n 'default_lifetime' => '13 seconds',\n ],\n 'cache.chain' => [\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/cache.php", "language": "php", "file_size": 2044, "cut_index": 563, "middle_length": 229}} {"prefix": "y\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\ConflictHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\ServiceUnavailableHttpException;\n\n$container->loadFromExtension('framework', [\n 'exceptions' => [\n BadRequestHttpException::class => [\n 'log_level' => 'info',\n 'status_code' => 422,\n ],\n NotFoundHttpException::class => [\n ", "suffix": "null,\n ],\n ConflictHttpException::class => [\n 'log_level' => 'info',\n 'status_code' => 0,\n ],\n ServiceUnavailableHttpException::class => [\n 'log_level' => null,\n 'status_code' => 500,\n", "middle": "'log_level' => 'info',\n 'status_code' => ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/exceptions.php", "language": "php", "file_size": 859, "cut_index": 529, "middle_length": 52}} {"prefix": "\n 'secret' => 's3cr3t',\n 'default_locale' => 'fr',\n 'enabled_locales' => ['fr', 'en'],\n 'csrf_protection' => true,\n 'form' => [\n 'csrf_protection' => [\n 'field_name' => '_csrf',\n ],\n ],\n 'trust_x_sendfile_type_header' => true,\n 'esi' => [\n 'enabled' => true,\n ],\n 'ssi' => [\n 'enabled' => true,\n ],\n 'profiler' => [\n 'only_exceptions' => true,\n 'enabled' => false,\n ],\n 'router' => [\n 'resource' => '%kernel.pr", "suffix": " 'name' => '_SYMFONY',\n 'cookie_lifetime' => 86400,\n 'cookie_path' => '/',\n 'cookie_domain' => 'example.com',\n 'cookie_secure' => true,\n 'cookie_samesite' => 'lax',\n 'cookie_httponly' => false,\n 'use_c", "middle": "oject_dir%/config/routing.xml',\n 'type' => 'xml',\n 'utf8' => true,\n ],\n 'session' => [\n 'storage_factory_id' => 'session.storage.factory.native',\n 'handler_id' => 'session.handler.native_file',\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php", "language": "php", "file_size": 2542, "cut_index": 563, "middle_length": 229}} {"prefix": "omExtension('framework', [\n 'html_sanitizer' => [\n 'sanitizers' => [\n 'custom' => [\n 'default_action' => 'allow',\n 'allow_safe_elements' => true,\n 'allow_static_elements' => true,\n 'allow_elements' => [\n 'iframe' => 'src',\n 'custom-tag' => ['data-attr', 'data-attr-1'],\n 'custom-tag-2' => '*',\n ],\n 'block_elements' => ['section'],\n ", "suffix": " 'data-attr' => ['custom-tag'],\n 'data-attr-1' => [],\n 'data-attr-2' => '*',\n ],\n 'force_attributes' => [\n 'a' => ['rel' => 'noopener noreferrer'],\n ", "middle": " 'drop_elements' => ['video'],\n 'allow_attributes' => [\n 'src' => ['iframe'],\n 'data-attr' => '*',\n ],\n 'drop_attributes' => [\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/html_sanitizer.php", "language": "php", "file_size": 1822, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n$container->loadFromExtension('framework', [\n 'http_client' => [\n 'default_options' => [\n 'headers' => ['X-powered' => 'PHP'],\n 'max_redirects' => 2,\n 'http_version' => '2.0',\n 'resolve' => ['localhost' => '127.0.0.1'],\n 'proxy' => 'proxy.org',\n 'timeout' => 3.5,\n 'max_duration' => 10.1,\n 'bindto' => '127.0.0.1',\n 'verify_peer' => true,\n 'verify_host' => true,\n 'cafile' =>", "suffix": " 'RC4-SHA:TLS13-AES-128-GCM-SHA256',\n 'peer_fingerprint' => [\n 'pin-sha256' => ['14s5erg62v1v8471g2revg48r7==', 'jsda84hjtyd4821bgfesd215bsfg5412='],\n 'md5' => 'sdhtb481248721thbr=',\n ],\n 'extr", "middle": " '/etc/ssl/cafile',\n 'capath' => '/etc/ssl',\n 'local_cert' => '/etc/ssl/cert.pem',\n 'local_pk' => '/etc/ssl/private_key.pem',\n 'passphrase' => 'password123456',\n 'ciphers' =>", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/http_client_full_default_options.php", "language": "php", "file_size": 1055, "cut_index": 513, "middle_length": 229}} {"prefix": "p\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nreturn static function (ContainerConfigurator $container) {\n $container->extension('framework', [\n 'mailer' => [\n 'transports' => [\n 'transport1' => 'smtp://example1.com',\n 'transport2' => 'smtp://example2.com',\n ],\n 'envelope' => [\n 'sender' => 'sender@example.org',\n 'recipients' => ['redirected@example.org', 'redirected1@example.org", "suffix": "@example\\.org', '.*@example\\.com'],\n ],\n 'headers' => [\n 'from' => 'from@example.org',\n 'bcc' => ['bcc1@example.org', 'bcc2@example.org'],\n 'foo' => 'bar',\n ],\n ],\n ]);", "middle": "'],\n 'allowed_recipients' => ['foobar", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/mailer_with_transports.php", "language": "php", "file_size": 828, "cut_index": 516, "middle_length": 52}} {"prefix": "hp\n\n$container->loadFromExtension('framework', [\n 'serializer' => true,\n 'messenger' => [\n 'failure_transport' => 'failed',\n 'serializer' => [\n 'default_serializer' => 'messenger.transport.symfony_serializer',\n ],\n 'transports' => [\n 'default' => 'amqp://localhost/%2f/messages',\n 'customised' => [\n 'dsn' => 'amqp://localhost/%2f/messages?exchange_name=exchange_name',\n 'options' => ['queue' => ['name' => 'Queue']", "suffix": "3,\n 'max_delay' => 100,\n ],\n 'rate_limiter' => 'customised_worker',\n ],\n 'failed' => 'in-memory:///',\n 'redis' => 'redis://127.0.0.1:6379/messages',\n 'beanstalkd' ", "middle": "],\n 'serializer' => 'messenger.transport.native_php_serializer',\n 'retry_strategy' => [\n 'max_retries' => 10,\n 'delay' => 7,\n 'multiplier' => ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/messenger_transports.php", "language": "php", "file_size": 1105, "cut_index": 515, "middle_length": 229}} {"prefix": "onfigurator\\ContainerConfigurator $container) {\n $container->services()->alias('test_workflow', 'workflow.test_workflow')->public();\n $container->extension('framework', [\n 'workflows' => [\n 'test_workflow' => [\n 'type' => 'workflow',\n 'supports' => [\n 'Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\FrameworkExtensionTestCase',\n ],\n 'initial_marking' => ['start'],\n 'places' => [\n ", "suffix": "e',\n 'end',\n 'alternative',\n ],\n 'transitions' => [\n 'base_transition' => [\n 'from' => ['start'],\n 'to' => ['end'],\n ", "middle": " 'start',\n 'middl", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflow_base_config.php", "language": "php", "file_size": 962, "cut_index": 582, "middle_length": 52}} {"prefix": "ponent\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator $container) {\n $container->extension('framework', [\n 'workflows' => [\n 'test_workflow' => [\n 'type' => 'workflow',\n 'supports' => [\n 'Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\FrameworkExtensionTestCase',\n ],\n 'initial_marking' => ['start'],\n 'places' => [\n 'start',\n 'middle", "suffix": "lternative',\n ],\n 'transitions' => [\n 'base_transition' => [\n 'from' => ['middle'],\n 'to' => ['alternative'],\n ],\n ],\n ", "middle": "',\n 'end',\n 'a", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflow_override_config.php", "language": "php", "file_size": 883, "cut_index": 547, "middle_length": 52}} {"prefix": "\\FrameworkBundle\\Tests\\DependencyInjection\\FrameworkExtensionTestCase;\n\n$container->loadFromExtension('framework', [\n 'workflows' => [\n 'article' => [\n 'type' => 'workflow',\n 'supports' => [\n FrameworkExtensionTestCase::class,\n ],\n 'initial_marking' => ['draft'],\n 'metadata' => [\n 'title' => 'article workflow',\n 'description' => 'workflow for articles',\n ],\n 'places' => [\n ", "suffix": " 'name' => 'approved_by_journalist',\n ],\n 'wait_for_spellchecker',\n 'approved_by_spellchecker',\n 'published',\n ],\n 'transitions' => [\n 'reques", "middle": " 'draft' => [\n 'metadata' => [\n 'foo' => 'bar',\n ],\n ],\n 'wait_for_journalist',\n 'approved_by_journalist' => [\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflow_with_complex_place_follow_by_simplistic_place_config.php", "language": "php", "file_size": 1731, "cut_index": 537, "middle_length": 229}} {"prefix": "\\FrameworkBundle\\Tests\\DependencyInjection\\FrameworkExtensionTestCase;\n\n$container->loadFromExtension('framework', [\n 'workflows' => [\n 'article' => [\n 'type' => 'workflow',\n 'supports' => [\n FrameworkExtensionTestCase::class,\n ],\n 'initial_marking' => ['draft'],\n 'places' => [\n 'draft',\n 'wait_for_journalist',\n 'approved_by_journalist',\n 'wait_for_spellchecker',\n ", "suffix": "journalist', 'wait_for_spellchecker'],\n ],\n 'journalist_approval' => [\n 'from' => 'wait_for_journalist',\n 'to' => 'approved_by_journalist',\n ],\n 'spellchecker", "middle": " 'approved_by_spellchecker',\n 'published',\n ],\n 'transitions' => [\n 'request_review' => [\n 'from' => 'draft',\n 'to' => ['wait_for_", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflow_with_guard_expression.php", "language": "php", "file_size": 1652, "cut_index": 537, "middle_length": 229}} {"prefix": "\\FrameworkBundle\\Tests\\DependencyInjection\\FrameworkExtensionTestCase;\n\n$container->loadFromExtension('framework', [\n 'workflows' => [\n 'article' => [\n 'type' => 'workflow',\n 'supports' => [\n FrameworkExtensionTestCase::class,\n ],\n 'initial_marking' => ['draft'],\n 'places' => [\n 'draft',\n 'wait_for_journalist',\n 'approved_by_journalist',\n 'wait_for_spellchecker',\n ", "suffix": " 'from' => 'draft',\n 'to' => ['wait_for_journalist', 'wait_for_spellchecker'],\n ],\n 'journalist_approval' => [\n 'from' => ['wait_for_journalist'],\n 'to' => 'approv", "middle": " 'approved_by_spellchecker',\n 'published',\n ],\n // We also test different configuration formats here\n 'transitions' => [\n 'request_review' => [\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflow_with_multiple_transitions_with_same_name.php", "language": "php", "file_size": 1694, "cut_index": 537, "middle_length": 229}} {"prefix": "hp\n\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\FrameworkExtensionTestCase;\n\n$container->loadFromExtension('framework', [\n 'workflows' => [\n 'my_workflow' => [\n 'type' => 'state_machine',\n 'marking_store' => [\n 'type' => 'method',\n 'property' => 'state',\n ],\n 'supports' => [\n FrameworkExtensionTestCase::class,\n ],\n 'events_to_dispatch' => [],\n 'places' => [\n ", "suffix": " ],\n 'to' => [\n 'two',\n ],\n ],\n 'count_to_three' => [\n 'from' => [\n 'two',\n ],\n 't", "middle": " 'one',\n 'two',\n 'three',\n ],\n 'transitions' => [\n 'count_to_two' => [\n 'from' => [\n 'one',\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflow_with_no_events_to_dispatch.php", "language": "php", "file_size": 1120, "cut_index": 515, "middle_length": 229}} {"prefix": "\\FrameworkBundle\\Tests\\DependencyInjection\\FrameworkExtensionTestCase;\n\n$container->loadFromExtension('framework', [\n 'workflows' => [\n 'article' => [\n 'type' => 'workflow',\n 'supports' => [\n FrameworkExtensionTestCase::class,\n ],\n 'initial_marking' => ['draft'],\n 'metadata' => [\n 'title' => 'article workflow',\n 'description' => 'workflow for articles',\n ],\n 'places' => [\n ", "suffix": " ],\n 'approved_by_journalist' => [\n 'name' => 'approved_by_journalist',\n ],\n 'wait_for_spellchecker',\n 'approved_by_spellchecker',\n 'published',\n ", "middle": " 'draft',\n 'wait_for_journalist' => [\n 'metadata' => [\n 'description' => 'The article is awaiting approval of an authorized journalist.',\n ],\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflow_with_simplistic_place_follow_by_complex_place_config.php", "language": "php", "file_size": 1797, "cut_index": 537, "middle_length": 229}} {"prefix": "\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\FrameworkExtensionTestCase;\n\n$container->loadFromExtension('framework', [\n 'workflows' => [\n 'my_workflow' => [\n 'type' => 'state_machine',\n 'marking_store' => [\n 'property' => 'state',\n ],\n 'supports' => [\n FrameworkExtensionTestCase::class,\n ],\n 'events_to_dispatch' => [\n 'workflow.leave',\n 'workflow.completed'", "suffix": " 'one',\n ],\n 'to' => [\n 'two',\n ],\n ],\n 'count_to_three' => [\n 'from' => [\n 'two',", "middle": ",\n ],\n 'places' => [\n 'one',\n 'two',\n 'three',\n ],\n 'transitions' => [\n 'count_to_two' => [\n 'from' => [\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflow_with_specified_events_to_dispatch.php", "language": "php", "file_size": 1169, "cut_index": 518, "middle_length": 229}} {"prefix": "ainer->loadFromExtension('framework', [\n 'workflows' => [\n 'article' => [\n 'type' => 'workflow',\n 'supports' => [\n FrameworkExtensionTestCase::class,\n ],\n 'definition_validators' => [\n Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\Fixtures\\Workflow\\Validator\\DefinitionValidator::class,\n ],\n 'initial_marking' => ['draft'],\n 'metadata' => [\n 'title' => 'article workflo", "suffix": "t_for_spellchecker',\n 'approved_by_spellchecker',\n 'published',\n ],\n 'transitions' => [\n 'request_review' => [\n 'from' => 'draft',\n 'to' => ['wait_for_", "middle": "w',\n 'description' => 'workflow for articles',\n ],\n 'places' => [\n 'draft',\n 'wait_for_journalist',\n 'approved_by_journalist',\n 'wai", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflows.php", "language": "php", "file_size": 4061, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\DeprecateJsonStreamerValueTransf", "suffix": "ertyValueTransformerTagToLegacyValueTransformers()\n {\n $container = new ContainerBuilder();\n\n $container->register('json_streamer.stream_reader')->setArguments([null]);\n $container->register('json_streamer.stream_writer')->setArgume", "middle": "ormerTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass DeprecateJsonStreamerValueTransformerTagPassTest extends TestCase\n{\n #[Group('legacy')]\n #[IgnoreDeprecations]\n public function testAddProp", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/DeprecateJsonStreamerValueTransformerTagPassTest.php", "language": "php", "file_size": 1921, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\TestWith;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\PhpConfigReferenceDumpPass;\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Resource\\F", "suffix": "\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nclass PhpConfigReferenceDumpPassTest extends TestCase\n{\n private string $readOnlyDir;\n private string $tempDir;\n\n protected function setUp(): void\n {\n $this->tempDi", "middle": "ileResource;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface;\nuse Symfony\\Component", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/PhpConfigReferenceDumpPassTest.php", "language": "php", "file_size": 8828, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\DataCollector\\AbstractDataCollector;\nuse Symfony\\Bundle\\FrameworkBundle\\DataCollector\\TemplateAwareDataCollectorInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compil", "suffix": "ainerBuilder;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface;\n\nclass ProfilerPassTest extends TestCase\n{\n /**\n * Tests that collector", "middle": "er\\ProfilerPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveChildDefinitionsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveInstanceofConditionalsPass;\nuse Symfony\\Component\\DependencyInjection\\Cont", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php", "language": "php", "file_size": 4887, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\TestServiceContainerRealRefPass;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\TestServiceContainerWeakRefPass;\nuse Symfony\\Bundle\\FrameworkBundle", "suffix": "y\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\nclass TestServiceContainerRefPassesTest extends TestCase\n{\n public function testProcess()\n {\n $conta", "middle": "\\Test\\TestContainer;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfon", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TestServiceContainerRefPassesTest.php", "language": "php", "file_size": 4558, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\EventDispatcherDebugCommand;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocato", "suffix": "unction testComplete(array $input, array $expectedSuggestions)\n {\n $tester = $this->createCommandCompletionTester();\n\n $suggestions = $tester->complete($input);\n\n $this->assertSame($expectedSuggestions, $suggestions);\n }\n\n pub", "middle": "r;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\Mailer\\Event\\MessageEvent;\n\nclass EventDispatcherDebugCommandTest extends TestCase\n{\n #[DataProvider('provideCompletionSuggestions')]\n public f", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/EventDispatcherDebugCommandTest.php", "language": "php", "file_size": 2384, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\SecretsDecryptToLocalCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\SodiumVault;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n#[Req", "suffix": "ir().'/sf_secrets/main/';\n $this->localDir = sys_get_temp_dir().'/sf_secrets/local/';\n\n $fs = new Filesystem();\n $fs->remove([$this->mainDir, $this->localDir]);\n\n $mainVault = new SodiumVault($this->mainDir);\n $mainVault-", "middle": "uiresPhpExtension('sodium')]\nclass SecretsDecryptToLocalCommandTest extends TestCase\n{\n private string $mainDir;\n private string $localDir;\n\n protected function setUp(): void\n {\n $this->mainDir = sys_get_temp_d", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/SecretsDecryptToLocalCommandTest.php", "language": "php", "file_size": 3675, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\SecretsGenerateKeysCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\SodiumVault;\nuse Symfony\\Component\\Console\\Tester\\CommandTes", "suffix": "p';\n private const DEC_KEY_FILE = 'test.decrypt.private.php';\n\n protected function setUp(): void\n {\n $this->secretsDir = sys_get_temp_dir().'/sf_secrets/test/';\n (new Filesystem())->remove($this->secretsDir);\n }\n\n protected fun", "middle": "ter;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n#[RequiresPhpExtension('sodium')]\nclass SecretsGenerateKeysCommandTest extends TestCase\n{\n private string $secretsDir;\n private const ENC_KEY_FILE = 'test.encrypt.public.ph", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/SecretsGenerateKeysCommandTest.php", "language": "php", "file_size": 3166, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\BackupGlobals;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\SecretsListCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\DotenvVault;\nuse Symfony", "suffix": "->method('list')->willReturn(['A' => 'a', 'B' => 'b', 'C' => null, 'D' => null, 'E' => null]);\n\n $_ENV = ['A' => '', 'B' => 'A', 'C' => '', 'D' => false, 'E' => null];\n $localVault = new DotenvVault('/not/a/path');\n\n $command = new Sec", "middle": "\\Component\\Console\\Tester\\CommandTester;\n\nclass SecretsListCommandTest extends TestCase\n{\n #[BackupGlobals(true)]\n public function testExecute()\n {\n $vault = $this->createStub(AbstractVault::class);\n $vault", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/SecretsListCommandTest.php", "language": "php", "file_size": 2053, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\SecretsSetCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Component\\Console\\", "suffix": " $this->createStub(AbstractVault::class);\n $vault->method('list')->willReturn(['SECRET' => null, 'OTHER_SECRET' => null]);\n $localVault = $this->createStub(AbstractVault::class);\n $command = new SecretsSetCommand($vault, $localVault);\n", "middle": "Tester\\CommandCompletionTester;\n\nclass SecretsSetCommandTest extends TestCase\n{\n #[DataProvider('provideCompletionSuggestions')]\n public function testComplete(array $input, array $expectedSuggestions)\n {\n $vault =", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/SecretsSetCommandTest.php", "language": "php", "file_size": 1426, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\TranslationExtractCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface;", "suffix": "nt\\Translation\\Reader\\TranslationReader;\nuse Symfony\\Component\\Translation\\Translator;\nuse Symfony\\Component\\Translation\\Writer\\TranslationWriter;\n\nclass TranslationExtractCommandCompletionTest extends TestCase\n{\n private Filesystem $fs;\n private str", "middle": "\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\ExtensionPresentBundle\\ExtensionPresentBundle;\nuse Symfony\\Component\\Translation\\Extractor\\ExtractorInterface;\nuse Symfony\\Compone", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationExtractCommandCompletionTest.php", "language": "php", "file_size": 5163, "cut_index": 716, "middle_length": 229}} {"prefix": "Command\\TranslationExtractCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Translation\\Extractor\\ExtractorInterface;\nuse Symfony\\Component\\Translation\\MessageCatalogue;\nuse Symfony\\Component\\Translation\\MessageCatalog", "suffix": "ase\n{\n private Filesystem $fs;\n private string $translationDir;\n\n public function testDumpMessagesAndClean()\n {\n $tester = $this->createCommandTester(['messages' => ['foo' => 'foo']]);\n $tester->execute(['command' => 'translation:", "middle": "ueInterface;\nuse Symfony\\Component\\Translation\\Reader\\TranslationReader;\nuse Symfony\\Component\\Translation\\Translator;\nuse Symfony\\Component\\Translation\\Writer\\TranslationWriter;\n\nclass TranslationExtractCommandTest extends TestC", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationExtractCommandTest.php", "language": "php", "file_size": 15694, "cut_index": 921, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Kernel;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\nclass DefaultKernel extends Kernel\n{\n use MicroKernelTrait;\n\n public function __invoke(): Response\n {\n return new Response('OK');\n }\n\n privat", "suffix": "(): string\n {\n return $this->cacheDir ??= sys_get_temp_dir().'/sf_default_kernel';\n }\n\n public function getLogDir(): string\n {\n return $this->cacheDir;\n }\n\n public function getProjectDir(): string\n {\n return \\dirna", "middle": "e string $cacheDir;\n\n public function getCacheDir", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Kernel/default/src/DefaultKernel.php", "language": "php", "file_size": 935, "cut_index": 606, "middle_length": 52}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Secrets;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\DotenvVault;\nuse Symfony\\Component\\Dotenv\\Dotenv;\n\nclass DotenvVaultTest extends TestCase\n{\n private string $envFile;\n\n protected function setUp(): void\n {\n ", "suffix": ")\n {\n $vault = new DotenvVault($this->envFile);\n\n $this->assertFalse($vault->generateKeys());\n $this->assertSame('The dotenv vault doesn\\'t encrypt secrets thus doesn\\'t need keys.', $vault->getLastMessage());\n }\n\n public func", "middle": " $this->envFile = sys_get_temp_dir().'/sf_secrets.env.test';\n @unlink($this->envFile);\n }\n\n protected function tearDown(): void\n {\n @unlink($this->envFile);\n }\n\n public function testGenerateKeys(", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Secrets/DotenvVaultTest.php", "language": "php", "file_size": 1828, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Secrets;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\SodiumVault;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\String\\LazyString;\n\n#[RequiresPhpExtension('sodium')]\nclass SodiumVaultTest extends TestCase\n{\n private st", "suffix": "lesystem->remove($this->secretsDir);\n }\n\n protected function tearDown(): void\n {\n $this->filesystem->remove($this->secretsDir);\n }\n\n public function testGenerateKeys()\n {\n $vault = new SodiumVault($this->secretsDir);\n\n ", "middle": "ring $secretsDir;\n private Filesystem $filesystem;\n\n protected function setUp(): void\n {\n $this->filesystem = new Filesystem();\n $this->secretsDir = sys_get_temp_dir().'/sf_secrets/test/';\n $this->fi", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Secrets/SodiumVaultTest.php", "language": "php", "file_size": 3426, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Controller;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerHelper;\n\nclass ControllerHelperTest extends AbstractControllerTest\n{\n protected function createControl", "suffix": " parent::__construct($container);\n }\n };\n }\n\n public function testSync()\n {\n $r = new \\ReflectionClass(ControllerHelper::class);\n $m = $r->getMethod('getSubscribedServices');\n $helperSrc = file($r->get", "middle": "ler()\n {\n return new class extends ControllerHelper {\n public function __construct()\n {\n }\n\n public function setContainer(ContainerInterface $container)\n {\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerHelperTest.php", "language": "php", "file_size": 2342, "cut_index": 563, "middle_length": 229}} {"prefix": ";\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\n\n/**\n * @author Marcin Sikon <marcin.sikon@gmail.com>\n */\nclass RedirectControllerTest extends TestCase\n{\n public function testEmptyRoute()\n {\n $request = new Request();\n $controller = new RedirectController();\n\n try {", "suffix": "me(410, $e->getStatusCode());\n }\n\n try {\n $controller->redirectAction($request, '', false);\n $this->fail('Expected Symfony\\Component\\HttpKernel\\Exception\\HttpException to be thrown');\n } catch (HttpException $e) {", "middle": "\n $controller->redirectAction($request, '', true);\n $this->fail('Expected Symfony\\Component\\HttpKernel\\Exception\\HttpException to be thrown');\n } catch (HttpException $e) {\n $this->assertSa", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Controller/RedirectControllerTest.php", "language": "php", "file_size": 16751, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Controller;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;\n\nclass TestAbstractController extends AbstractController\n{\n private bool $throwOnUnexpectedService;\n\n public function __construct", "suffix": "\n }\n\n public function setContainer(ContainerInterface $container): ?ContainerInterface\n {\n if (!$this->throwOnUnexpectedService) {\n return parent::setContainer($container);\n }\n\n $expected = self::getSubscribedServic", "middle": "($throwOnUnexpectedService = true)\n {\n $this->throwOnUnexpectedService = $throwOnUnexpectedService;\n }\n\n public function __call(string $method, array $arguments)\n {\n return $this->$method(...$arguments);", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Controller/TestAbstractController.php", "language": "php", "file_size": 1836, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\CacheWarmer;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\SerializerCacheWarmer;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\NullAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderChain;\nuse Symfony\\Component\\Serializer\\Mapping\\Loader\\XmlFileLoader;\nuse Symfony\\Component\\S", "suffix": "his->arrayPool)) {\n $this->arrayPool->clear();\n unset($this->arrayPool);\n }\n }\n\n private function getArrayPool(string $file): PhpArrayAdapter\n {\n return $this->arrayPool = new PhpArrayAdapter($file, new NullAdap", "middle": "erializer\\Mapping\\Loader\\YamlFileLoader;\n\nclass SerializerCacheWarmerTest extends TestCase\n{\n private PhpArrayAdapter $arrayPool;\n\n protected function tearDown(): void\n {\n parent::tearDown();\n\n if (isset($t", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/SerializerCacheWarmerTest.php", "language": "php", "file_size": 6642, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolClearCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\Framework", "suffix": "arer\\Psr6CacheClearer;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass CachePoolClearCommandTest extends TestCase\n{\n #[DataProvider('provideCompletionSuggestions')]\n public function testComplete(array $input, array $expectedSuggestions)\n ", "middle": "Bundle\\Tests\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpKernel\\CacheCle", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/CachePoolClearCommandTest.php", "language": "php", "file_size": 1954, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolPruneCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Symfony\\Component\\Cache\\PruneableInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nu", "suffix": "lic function testCommandWithPools()\n {\n $tester = $this->getCommandTester($this->getKernel(), $this->getRewindableGenerator());\n $tester->execute([]);\n }\n\n public function testCommandWithNoPools()\n {\n $tester = $this->getCo", "middle": "se Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass CachePruneCommandTest extends TestCase\n{\n pub", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/CachePruneCommandTest.php", "language": "php", "file_size": 4265, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\RouterDebugCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\RouterMatchCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nus", "suffix": ";\nuse Symfony\\Component\\Routing\\RouterInterface;\n\nclass RouterMatchCommandTest extends TestCase\n{\n public function testWithMatchPath()\n {\n $tester = $this->createCommandTester();\n $ret = $tester->execute(['path_info' => '/foo', 'foo'], ", "middle": "e Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php", "language": "php", "file_size": 2821, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\SecretsRemoveCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Component\\Console\\Tester\\Com", "suffix": " $vault = $this->createStub(AbstractVault::class);\n $vault->method('list')->willReturn(['SECRET' => null, 'OTHER_SECRET' => null]);\n if ($withLocalVault) {\n $localVault = $this->createStub(AbstractVault::class);\n $", "middle": "mandCompletionTester;\n\nclass SecretsRemoveCommandTest extends TestCase\n{\n #[DataProvider('provideCompletionSuggestions')]\n public function testComplete(bool $withLocalVault, array $input, array $expectedSuggestions)\n {\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/SecretsRemoveCommandTest.php", "language": "php", "file_size": 1704, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\BackupGlobals;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\SecretsRevealCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\DotenvVault;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\C", "suffix": "n(['secretKey' => 'secretValue']);\n\n $command = new SecretsRevealCommand($vault);\n\n $tester = new CommandTester($command);\n $this->assertSame(Command::SUCCESS, $tester->execute(['name' => 'secretKey']));\n\n $this->assertEquals('s", "middle": "omponent\\Console\\Tester\\CommandTester;\n\nclass SecretsRevealCommandTest extends TestCase\n{\n public function testExecute()\n {\n $vault = $this->createStub(AbstractVault::class);\n $vault->method('list')->willRetur", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/SecretsRevealCommandTest.php", "language": "php", "file_size": 3368, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\XliffLintCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Application as BaseApplication;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Sym", "suffix": "he\n * rest of the features are tested in the Translation component.\n *\n * @author Javier Eguiluz <javier.eguiluz@gmail.com>\n */\nclass XliffLintCommandTest extends TestCase\n{\n private array $files;\n\n public function testGetHelp()\n {\n $comman", "middle": "fony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\n/**\n * Tests the part of the XliffLintCommand managed by the FrameworkBundle. T", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/XliffLintCommandTest.php", "language": "php", "file_size": 3622, "cut_index": 614, "middle_length": 229}} {"prefix": "dle\\Translation\\Translator;\nuse Symfony\\Component\\Config\\Resource\\DirectoryResource;\nuse Symfony\\Component\\Config\\Resource\\FileExistenceResource;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Translation\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\Translation\\Formatter\\MessageFormatter;\nuse Symfony\\Component\\Translation\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Translation\\Loader\\YamlFileLoader;\nuse Symfony\\Component", "suffix": "get_temp_dir().'/sf_translation';\n $this->deleteTmpDir();\n }\n\n protected function tearDown(): void\n {\n $this->deleteTmpDir();\n }\n\n protected function deleteTmpDir()\n {\n if (!file_exists($dir = $this->tmpDir)) {\n ", "middle": "\\Translation\\MessageCatalogue;\nuse Symfony\\Contracts\\Translation\\TranslatorInterface;\n\nclass TranslatorTest extends TestCase\n{\n protected string $tmpDir;\n\n protected function setUp(): void\n {\n $this->tmpDir = sys_", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php", "language": "php", "file_size": 15795, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Controller;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Container\\ContainerInterface as Psr11ContainerInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerResolver;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse S", "suffix": "this->expectExceptionMessage('\"Symfony\\\\Bundle\\\\FrameworkBundle\\\\Tests\\\\Controller\\\\TestAbstractController\" has no container set, did you forget to define it as a service subscriber?');\n\n class_exists(AbstractControllerTest::class);\n\n $contro", "middle": "ymfony\\Component\\HttpFoundation\\Request;\n\nclass ControllerResolverTest extends TestCase\n{\n public function testAbstractControllerGetsContainerWhenNotSet()\n {\n $this->expectException(\\LogicException::class);\n $", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerResolverTest.php", "language": "php", "file_size": 4590, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\n\n/**\n * @author Kévin Dunglas <dunglas@gmail.com>\n */\nclass TemplateControllerTest extends TestCase\n{\n public function testMethodSignaturesMatch(", "suffix": "ray_map(strval(...), $templateActionRef->getParameters()),\n array_map(strval(...), $invokeRef->getParameters()),\n );\n }\n\n public function testTwig()\n {\n $twig = $this->createMock(Environment::class);\n $twig->expects", "middle": ")\n {\n $ref = new \\ReflectionClass(TemplateController::class);\n\n $templateActionRef = $ref->getMethod('templateAction');\n $invokeRef = $ref->getMethod('__invoke');\n\n $this->assertSame(\n ar", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Controller/TemplateControllerTest.php", "language": "php", "file_size": 4411, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\CacheWarmer;\n\nuse Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\ValidatorCacheWarmer;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Symfony\\Component\\Cache\\Adapter\\NullAdapter;\nuse Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter;\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\nuse Symfony\\Component\\Validator\\ValidatorBuilder;\n\nclass ValidatorCacheWarmerTest extends TestCase\n{\n private PhpArrayAdapter $arrayPool;", "suffix": " getArrayPool(string $file): PhpArrayAdapter\n {\n return $this->arrayPool = new PhpArrayAdapter($file, new NullAdapter());\n }\n\n public function testWarmUp()\n {\n $validatorBuilder = new ValidatorBuilder();\n $validatorBuilder-", "middle": "\n\n protected function tearDown(): void\n {\n parent::tearDown();\n\n if (isset($this->arrayPool)) {\n $this->arrayPool->clear();\n unset($this->arrayPool);\n }\n }\n\n private function", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/ValidatorCacheWarmerTest.php", "language": "php", "file_size": 7839, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\SecretsEncryptFromLocalCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\AbstractVault;\nuse Symfony\\Bundle\\FrameworkBundle\\Secrets\\SodiumVault;\nuse Symfony\\Component\\Console\\Tester\\Comman", "suffix": "esystem $fs;\n\n protected function setUp(): void\n {\n $this->vaultDir = sys_get_temp_dir().'/sf_secrets/vault_'.uniqid();\n $this->localVaultDir = sys_get_temp_dir().'/sf_secrets/local_'.uniqid();\n $this->fs = new Filesystem();\n ", "middle": "dTester;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\n#[RequiresPhpExtension('sodium')]\nclass SecretsEncryptFromLocalCommandTest extends TestCase\n{\n private string $vaultDir;\n private string $localVaultDir;\n private Fil", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/SecretsEncryptFromLocalCommandTest.php", "language": "php", "file_size": 3613, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\YamlLintCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Application as BaseApplication;\nuse Symfony\\Component\\Console\\Helper\\HelperSet;\nuse Symfony\\Component\\Console\\Input\\InputDefinition;\nuse Symf", "suffix": ".com>\n */\nclass YamlLintCommandTest extends TestCase\n{\n private array $files;\n\n public function testLintCorrectFile()\n {\n $tester = $this->createCommandTester();\n $filename = $this->createFile('foo: bar');\n\n $tester->execute(\n", "middle": "ony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\n/**\n * Tests the YamlLintCommand.\n *\n * @author Robin Chalas <robin.chalas@gmail", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/YamlLintCommandTest.php", "language": "php", "file_size": 5011, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Kernel;\n\nuse Psr\\Log\\LoggerInterface;\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Http", "suffix": "use MicroKernelTrait {\n configureRoutes as traitConfigureRoutes;\n }\n\n private string $cacheDir;\n\n public function halloweenAction(\\stdClass $o)\n {\n return new Response($o->halloween);\n }\n\n #[Route('/easter')]\n public func", "middle": "Foundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Routing\\Attribute\\Route;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;\n\nclass FlexStyleMicroKernel extends Kernel\n{\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Kernel/flex-style/src/FlexStyleMicroKernel.php", "language": "php", "file_size": 2810, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\CacheWarmer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\RouterCacheWarmer;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\WarmableInterface;\nuse Symfony\\Component\\Routing\\RouterInterface;\n\nc", "suffix": "nterface::class);\n $routerMock->expects($this->once())->method('warmUp')->with('/tmp/cache', '/tmp/build')->willReturn([]);\n\n $container->set('router', $routerMock);\n $routerCacheWarmer = new RouterCacheWarmer($container);\n\n $ro", "middle": "lass RouterCacheWarmerTest extends TestCase\n{\n public function testWarmUpWithWarmableInterfaceWithBuildDir()\n {\n $container = new Container();\n\n $routerMock = $this->createMock(testRouterInterfaceWithWarmableI", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/RouterCacheWarmerTest.php", "language": "php", "file_size": 2986, "cut_index": 563, "middle_length": 229}} {"prefix": "Command\\TranslationDebugCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\Functional\\Bundle\\ExtensionWithoutConfigTestBundle\\ExtensionWithoutConfigTestBundle;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Bundl", "suffix": "anslator;\n\nclass TranslationDebugCommandTest extends TestCase\n{\n private Filesystem $fs;\n private string $translationDir;\n\n public function testDebugMissingMessages()\n {\n $tester = $this->createCommandTester(['foo' => 'foo']);\n $r", "middle": "e\\BundleInterface;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Translation\\Extractor\\ExtractorInterface;\nuse Symfony\\Component\\Translation\\Reader\\TranslationReader;\nuse Symfony\\Component\\Translation\\Tr", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php", "language": "php", "file_size": 10981, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse Psr\\Cache\\CacheItemPoolInterface;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\CachePoolDeleteCommand;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Tests\\TestCase;\nuse Symfony\\Com", "suffix": "ernel\\CacheClearer\\Psr6CacheClearer;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nclass CachePoolDeleteCommandTest extends TestCase\n{\n public function testCommandWithValidKey()\n {\n $cachePool = $this->createMock(CacheItemPoolInterface::c", "middle": "ponent\\Cache\\Adapter\\ArrayAdapter;\nuse Symfony\\Component\\Console\\Tester\\CommandCompletionTester;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpK", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Command/CachePoolDeleteCommandTest.php", "language": "php", "file_size": 4321, "cut_index": 614, "middle_length": 229}} {"prefix": "Flow\\FormFlowBuilderInterface;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormConfigInterface;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\\FormView;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\nuse Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\File\\File;\nuse Symfony\\Component\\HttpFoundation\\JsonRe", "suffix": "HttpFoundation\\ResponseHeaderBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBag;\nuse Symfony\\Component\\HttpFoundation\\Session\\Session;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundH", "middle": "sponse;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Controller/AbstractControllerTest.php", "language": "php", "file_size": 27199, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Bundle\\FrameworkBundle\\DataCollector\\TemplateAwareDataCollectorInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyI", "suffix": "ilerPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (false === $container->hasDefinition('profiler')) {\n return;\n }\n\n $definition = $container->getDefinition('", "middle": "njection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Adds tagged data_collector services to profiler service.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Prof", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php", "language": "php", "file_size": 2330, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Routing;\n\nuse Symfony\\Component\\DependencyInjection\\Config\\ContainerParametersResource;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\nfinal class LogoutRouteLoader\n{\n /**\n * @param array<string, string> $logoutUri", "suffix": "rivate readonly array $logoutUris,\n private readonly string $parameterName,\n ) {\n }\n\n public function __invoke(): RouteCollection\n {\n $collection = new RouteCollection();\n $collection->addResource(new ContainerParametersRes", "middle": "s Logout URIs indexed by the corresponding firewall name\n * @param string $parameterName Name of the container parameter containing {@see $logoutUris} value\n */\n public function __construct(\n p", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Routing/LogoutRouteLoader.php", "language": "php", "file_size": 1559, "cut_index": 537, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Test;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\n/**\n * A very limited token that is used to login in tests using the KernelBrowser.\n *\n * @author Wouter de J", "suffix": " parent::__construct($roles);\n\n if (null !== $user) {\n $this->setUser($user);\n }\n }\n\n public function getFirewallName(): string\n {\n return $this->firewallName;\n }\n\n public function getCredentials(): mixed", "middle": "ong <wouter@wouterj.nl>\n */\nclass TestBrowserToken extends AbstractToken\n{\n public function __construct(\n array $roles = [],\n ?UserInterface $user = null,\n private string $firewallName = 'main',\n ) {\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/TestBrowserToken.php", "language": "php", "file_size": 1323, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\RememberMe;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\RememberMeDetails;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\RememberMeHandlerInterface;\n\n/**\n * Used as a \"workaround\"", "suffix": " private RememberMeHandlerInterface $handler,\n ) {\n }\n\n public function createRememberMeCookie(UserInterface $user): void\n {\n $this->handler->createRememberMeCookie($user);\n }\n\n public function consumeRememberMeCookie(Remembe", "middle": " for tagging aliases in the RememberMeFactory.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @internal\n */\nfinal class DecoratedRememberMeHandler implements RememberMeHandlerInterface\n{\n public function __construct(\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/RememberMe/DecoratedRememberMeHandler.php", "language": "php", "file_size": 1251, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\RememberMe;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallAwareTrait;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\Us", "suffix": "rewall.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nfinal class FirewallAwareRememberMeHandler implements RememberMeHandlerInterface\n{\n use FirewallAwareTrait;\n\n private const FIREWALL_OPTION = 'remember_me';\n\n public function __construct", "middle": "er\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\RememberMeDetails;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\RememberMeHandlerInterface;\n\n/**\n * Decorates {@see RememberMeHandlerInterface} for the current fi", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/RememberMe/FirewallAwareRememberMeHandler.php", "language": "php", "file_size": 1740, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\LoginLink;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallAwareTrait;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Request", "suffix": "ink handler for the current firewall.\n *\n * @author Ryan Weaver <ryan@symfonycasts.com>\n */\nclass FirewallAwareLoginLinkHandler implements LoginLinkHandlerInterface\n{\n use FirewallAwareTrait;\n\n private const FIREWALL_OPTION = 'login_link';\n\n publi", "middle": "Stack;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\LoginLinkDetails;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\LoginLinkHandlerInterface;\n\n/**\n * Decorates the login l", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/LoginLink/FirewallAwareLoginLinkHandler.php", "language": "php", "file_size": 1670, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\SecurityBundle\\DataCollector\\SecurityDataCollector;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('data_collector.security', SecurityDa", "suffix": "ervice('security.access.decision_manager'),\n service('security.firewall.map'),\n service('debug.security.firewall')->nullOnInvalid(),\n ])\n ->tag('data_collector', [\n 'template' => '@Security", "middle": "taCollector::class)\n ->args([\n service('security.untracked_token_storage'),\n service('security.role_hierarchy'),\n service('security.logout_url_generator'),\n s", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/collectors.php", "language": "php", "file_size": 1130, "cut_index": 518, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\SecurityBundle\\Command\\DebugFirewallCommand;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('security.command.debug_firewall', DebugFirewallCommand::class)\n ->args([\n", "suffix": " service('security.firewall.context_locator'),\n tagged_locator('event_dispatcher.dispatcher', 'name'),\n [],\n false,\n ])\n ->tag('console.command', ['command' => 'debug:firewall'])\n ", "middle": " param('security.firewalls'),\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/debug_console.php", "language": "php", "file_size": 874, "cut_index": 559, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\Extension\\PasswordHasher\\EventListener\\PasswordHasherListener;\nuse Symfony\\Component\\Form\\Extension\\PasswordHa", "suffix": "swordHasher\\Hasher\\PasswordHasherFactoryInterface;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\UserPasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\UserPasswordHasherInterface;\n\nreturn static function (ContainerConfigurator $container) {\n $co", "middle": "sher\\Type\\FormTypePasswordHasherExtension;\nuse Symfony\\Component\\Form\\Extension\\PasswordHasher\\Type\\PasswordTypePasswordHasherExtension;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactory;\nuse Symfony\\Component\\Pas", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/password_hasher.php", "language": "php", "file_size": 2358, "cut_index": 563, "middle_length": 229}} {"prefix": "e\\EventListener\\FirewallListener;\nuse Symfony\\Bundle\\SecurityBundle\\Routing\\LogoutRouteLoader;\nuse Symfony\\Bundle\\SecurityBundle\\Security;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\LazyFirewallContext;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage as BaseExpressio", "suffix": "ymfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\UsageTrackingTokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager;\nuse Symf", "middle": "nLanguage;\nuse Symfony\\Component\\Ldap\\Security\\LdapUserProvider;\nuse Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationTrustResolver;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse S", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/security.php", "language": "php", "file_size": 14887, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\SecurityBundle\\Security\\UserAuthenticator;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticatorManager;\nuse Symfony\\Component\\Security\\Http\\Authentication\\UserAuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\FormLoginAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\HttpBasicAut", "suffix": "\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\nuse Symfony\\Component\\Security\\Http\\EventListener\\CheckCredentialsListener;\nuse Symfony\\Component\\Security\\Http\\EventListener\\LoginThrottlingListener;\nuse Symfony\\Component\\Security\\Http\\EventL", "middle": "henticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\JsonLoginAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\RemoteUserAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\X509Authenticator;", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/security_authenticator.php", "language": "php", "file_size": 6821, "cut_index": 716, "middle_length": 229}} {"prefix": "omponent\\Core\\JWK;\nuse Jose\\Component\\Core\\JWKSet;\nuse Jose\\Component\\Encryption\\Algorithm\\ContentEncryption\\A128CBCHS256;\nuse Jose\\Component\\Encryption\\Algorithm\\ContentEncryption\\A128GCM;\nuse Jose\\Component\\Encryption\\Algorithm\\ContentEncryption\\A192CBCHS384;\nuse Jose\\Component\\Encryption\\Algorithm\\ContentEncryption\\A192GCM;\nuse Jose\\Component\\Encryption\\Algorithm\\ContentEncryption\\A256CBCHS512;\nuse Jose\\Component\\Encryption\\Algorithm\\ContentEncryption\\A256GCM;\nuse Jose\\Component\\Encryption\\Algorithm\\KeyE", "suffix": "S384;\nuse Jose\\Component\\Signature\\Algorithm\\ES512;\nuse Jose\\Component\\Signature\\Algorithm\\PS256;\nuse Jose\\Component\\Signature\\Algorithm\\PS384;\nuse Jose\\Component\\Signature\\Algorithm\\PS512;\nuse Jose\\Component\\Signature\\Algorithm\\RS256;\nuse Jose\\Component\\S", "middle": "ncryption\\ECDHES;\nuse Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\ECDHSS;\nuse Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\RSAOAEP;\nuse Jose\\Component\\Signature\\Algorithm\\ES256;\nuse Jose\\Component\\Signature\\Algorithm\\E", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/security_authenticator_access_token.php", "language": "php", "file_size": 9954, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\SecurityBundle\\LoginLink\\FirewallAwareLoginLinkHandler;\nuse Symfony\\Component\\DependencyInjection\\Parameter;\nuse Symfony\\Component\\Security\\Core\\Signature\\ExpiredSignatureStorage;\nuse Symfony\\Component\\Security\\Core\\Signature\\SignatureH", "suffix": "tic function (ContainerConfigurator $container) {\n $container->services()\n ->set('security.authenticator.login_link', LoginLinkAuthenticator::class)\n ->abstract()\n ->args([\n abstract_arg('the login link handle", "middle": "asher;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\LoginLinkAuthenticator;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\LoginLinkHandler;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\LoginLinkHandlerInterface;\n\nreturn sta", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/security_authenticator_login_link.php", "language": "php", "file_size": 2854, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\SecurityBundle\\RememberMe\\FirewallAwareRememberMeHandler;\nuse Symfony\\Component\\DependencyInjection\\Parameter;\nuse Symfony\\Component\\Security\\Core\\Signature\\SignatureHasher;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\RememberMeAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Ev", "suffix": "RememberMe\\RememberMeHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\ResponseListener;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\SignatureRememberMeHandler;\n\nreturn static function (ContainerConfigurator $container) {\n $container->", "middle": "entListener\\CheckRememberMeConditionsListener;\nuse Symfony\\Component\\Security\\Http\\EventListener\\RememberMeListener;\nuse Symfony\\Component\\Security\\Http\\RememberMe\\PersistentRememberMeHandler;\nuse Symfony\\Component\\Security\\Http\\", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/security_authenticator_remember_me.php", "language": "php", "file_size": 4098, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener;\nuse Symfony\\Bundle\\SecurityBundle\\EventListener\\VoteListener;\nuse Symfony\\Component\\Security\\Core\\Authorization\\TraceableAccessDecisionManager;\n\nreturn static fun", "suffix": " ->args([\n service('debug.security.access.decision_manager.inner'),\n ])\n ->tag('kernel.reset', ['method' => 'reset', 'on_invalid' => 'ignore'])\n\n ->set('debug.security.voter.vote_listener', VoteListener::cl", "middle": "ction (ContainerConfigurator $container) {\n $container->services()\n ->set('debug.security.access.decision_manager', TraceableAccessDecisionManager::class)\n ->decorate('security.access.decision_manager')\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/security_debug.php", "language": "php", "file_size": 1615, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\nuse Symfony\\Component\\Security\\Http\\AccessMap;\nuse Symfony\\Component\\Security\\Http\\Authentication\\CustomAuthenticationFailureHandler;\nuse Symfony\\Component\\Security\\Http\\Authentication\\CustomAuthenticationSuccessHandler;\nuse Symfony\\Component\\Security\\Http\\Authentication\\DefaultAuthenticationFailureHandler;\nuse Symfony\\Component\\Security\\Http\\Authe", "suffix": "ecurity\\Http\\EventListener\\DefaultLogoutListener;\nuse Symfony\\Component\\Security\\Http\\EventListener\\SessionLogoutListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\AccessListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\ChannelListener;\nuse Symfon", "middle": "ntication\\DefaultAuthenticationSuccessHandler;\nuse Symfony\\Component\\Security\\Http\\EventListener\\ClearSiteDataLogoutListener;\nuse Symfony\\Component\\Security\\Http\\EventListener\\CookieClearingLogoutListener;\nuse Symfony\\Component\\S", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/security_listeners.php", "language": "php", "file_size": 7375, "cut_index": 716, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bridge\\Twig\\Extension\\LogoutUrlExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\SecurityExtension;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n -", "suffix": "y', SecurityExtension::class)\n ->args([\n service('security.authorization_checker')->ignoreOnInvalid(),\n service('security.impersonate_url_generator')->ignoreOnInvalid(),\n ])\n ->tag('twig.extens", "middle": ">set('twig.extension.logout_url', LogoutUrlExtension::class)\n ->args([\n service('security.logout_url_generator'),\n ])\n ->tag('twig.extension')\n\n ->set('twig.extension.securit", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Resources/config/templating_twig.php", "language": "php", "file_size": 1012, "cut_index": 512, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\CacheWarmer;\n\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\ExpressionLanguage;\n\nfinal class ExpressionCacheWarmer i", "suffix": "Language,\n ) {\n }\n\n public function isOptional(): bool\n {\n return true;\n }\n\n public function warmUp(string $cacheDir, ?string $buildDir = null): array\n {\n foreach ($this->expressions as $expression) {\n $this->e", "middle": "mplements CacheWarmerInterface\n{\n /**\n * @param iterable<mixed, Expression|string> $expressions\n */\n public function __construct(\n private iterable $expressions,\n private ExpressionLanguage $expression", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/CacheWarmer/ExpressionCacheWarmer.php", "language": "php", "file_size": 1163, "cut_index": 518, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Command;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\LazyFirewallContext;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Completion\\CompletionInput;\nuse Symfony\\Component\\Console\\Completion\\CompletionSuggestions;\nuse Symfony\\Component\\Console\\Input\\InputArgum", "suffix": "nt\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator;\n\n/**\n * @author Timo Bakx <timobakx@gmail.com>\n */\n#[AsCo", "middle": "ent;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle;\nuse Symfony\\Compone", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Command/DebugFirewallCommand.php", "language": "php", "file_size": 9072, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\", "suffix": "o dump the role hierarchy as a Mermaid flowchart.\n *\n * @author Damien Fernandes <damien.fernandes24@gmail.com>\n */\n#[AsCommand(name: 'debug:security:role-hierarchy', description: 'Dump the role hierarchy as a Mermaid flowchart')]\nclass SecurityRoleHierarc", "middle": "Console\\Style\\SymfonyStyle;\nuse Symfony\\Component\\Security\\Core\\Dumper\\MermaidDirection;\nuse Symfony\\Component\\Security\\Core\\Dumper\\MermaidDumper;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchyInterface;\n\n/**\n * Command t", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Command/SecurityRoleHierarchyDumpCommand.php", "language": "php", "file_size": 2837, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\EventListener;\n\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap;\nuse Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Security\\Http\\Firewall;\nuse Symf", "suffix": "sser@gmail.com>\n */\nclass FirewallListener extends Firewall\n{\n public function __construct(\n private FirewallMapInterface $map,\n EventDispatcherInterface $dispatcher,\n private LogoutUrlGenerator $logoutUrlGenerator,\n ) {\n ", "middle": "ony\\Component\\Security\\Http\\FirewallMapInterface;\nuse Symfony\\Component\\Security\\Http\\Logout\\LogoutUrlGenerator;\nuse Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface;\n\n/**\n * @author Maxime Steinhausser <maxime.steinhau", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php", "language": "php", "file_size": 2043, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\TraceableAccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Event\\VoteEvent;\n\n/**\n * Listen to vote ev", "suffix": "cessDecisionManager $traceableAccessDecisionManager,\n ) {\n }\n\n public function onVoterVote(VoteEvent $event): void\n {\n $this->traceableAccessDecisionManager->addVoterVote($event->getVoter(), $event->getAttributes(), $event->getVote(), $e", "middle": "ents from traceable voters.\n *\n * @author Laurent VOULLEMIER <laurent.voullemier@gmail.com>\n *\n * @internal\n */\nclass VoteListener implements EventSubscriberInterface\n{\n public function __construct(\n private TraceableAc", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/EventListener/VoteListener.php", "language": "php", "file_size": 1172, "cut_index": 518, "middle_length": 229}} {"prefix": "e Symfony\\Component\\Security\\Core\\Authentication\\Token\\NullToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\UserAuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\LogicExce", "suffix": "face;\nuse Symfony\\Component\\Security\\Http\\Authentication\\UserAuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component", "middle": "ption;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\UserCheckerInterface;\nuse Symfony\\Component\\Security\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInter", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/SecurityTest.php", "language": "php", "file_size": 21466, "cut_index": 1331, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase as BaseWebTestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\app\\AppKernel;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\nabstract class AbstractWebTestCa", "suffix": "response, 0, $p + 3) : $response));\n self::assertEquals('http://localhost'.$location, $response->headers->get('Location'));\n }\n\n public static function setUpBeforeClass(): void\n {\n static::deleteTmpDir();\n }\n\n public static fun", "middle": "se extends BaseWebTestCase\n{\n public static function assertRedirect($response, $location)\n {\n self::assertTrue($response->isRedirect(), \"Response is not a redirect, got:\\n\".(($p = strpos($response, '-->')) ? substr($", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/AbstractWebTestCase.php", "language": "php", "file_size": 2238, "cut_index": 563, "middle_length": 229}} {"prefix": "ibutes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\RequiresPhpExtension;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\HttpClient\\MockHttpClient;\nuse Symfony\\Component\\HttpClient\\Response\\MockResponse;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass AccessTokenTest extends AbstractWebTestCase\n{\n public function testNoTokenHandlerConfiguredShouldFail()\n {\n $this->expectException(InvalidConfigurationException::class);\n $this", "suffix": "\n }\n\n public function testNoTokenExtractorsConfiguredShouldFail()\n {\n $this->expectException(InvalidConfigurationException::class);\n $this->expectExceptionMessage('The path \"security.firewalls.main.access_token.token_extractors\" shou", "middle": "->expectExceptionMessage('The child config \"token_handler\" under \"security.firewalls.main.access_token\" must be configured.');\n $this->createClient(['test_case' => 'AccessToken', 'root_config' => 'config_no_handler.yml']);", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/AccessTokenTest.php", "language": "php", "file_size": 22845, "cut_index": 1331, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\n\nclass AuthenticatorTest extends AbstractWebTestCase\n{\n #[DataProvider('provideEmails')]\n public function testFirewallUserProvider($email, $withinFirewall)\n {\n $client = $this->createClient(['test_case' => 'Authenticator', 'root_config' => 'firewall_user", "suffix": "il.'\"}', $client->getResponse()->getContent());\n } else {\n $this->assertJsonStringEqualsJsonString('{\"error\":\"Invalid credentials.\"}', $client->getResponse()->getContent());\n }\n }\n\n #[DataProvider('provideEmails')]\n public", "middle": "_provider.yml']);\n\n $client->request('GET', '/profile', [], [], [\n 'HTTP_X-USER-EMAIL' => $email,\n ]);\n\n if ($withinFirewall) {\n $this->assertJsonStringEqualsJsonString('{\"email\":\"'.$ema", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/AuthenticatorTest.php", "language": "php", "file_size": 4290, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\TraceableAccessDecisionManager;\n\nclass AutowiringTypesTest extends ", "suffix": "ices');\n $this->assertInstanceOf(AccessDecisionManager::class, $autowiredServices->getAccessDecisionManager(), 'The security.access.decision_manager service should be injected in debug mode');\n\n static::bootKernel(['debug' => true]);\n\n ", "middle": "AbstractWebTestCase\n{\n public function testAccessDecisionManagerAutowiring()\n {\n static::bootKernel(['debug' => false]);\n\n $autowiredServices = static::getContainer()->get('test.autowiring_types.autowired_serv", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/AutowiringTypesTest.php", "language": "php", "file_size": 1514, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Bundle\\FrameworkBundle\\KernelBrowser;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\nclass CsrfFormLoginTest extends AbstractWebTestCase\n{\n #[DataProvider('provideClientOptions')]\n public f", "suffix": "rf.token_storage')->setToken('foo', 'bar');\n });\n\n $form = $client->request('GET', '/login')->selectButton('login')->form();\n $form['user_login[username]'] = 'johannes';\n $form['user_login[password]'] = 'test';\n $client->", "middle": "unction testFormLoginAndLogoutWithCsrfTokens($options)\n {\n $client = $this->createClient($options);\n\n $this->callInRequestContext($client, static function () {\n static::getContainer()->get('security.cs", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/CsrfFormLoginTest.php", "language": "php", "file_size": 5526, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\AuthenticationEvents;\nuse Symfony\\Component\\Security\\Core\\Event\\Authentication", "suffix": "SecurityEvents;\n\nfinal class EventAliasTest extends AbstractWebTestCase\n{\n public function testAliasedEvents()\n {\n $client = $this->createClient(['test_case' => 'AliasedEvents', 'root_config' => 'config.yml']);\n $container = $client->ge", "middle": "SuccessEvent;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Event\\InteractiveLoginEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\SwitchUserEvent;\nuse Symfony\\Component\\Security\\Http\\", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/EventAliasTest.php", "language": "php", "file_size": 1935, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FirewallEntryPointBundle\\Security\\EntryPointStub;\n\nclass FirewallEntryPointTest extends AbstractWebTestCase\n{\n public function testItUsesTheConfiguredEntryPointFromTheExceptionListenerWithFormLoginAndNoCredentials()\n {\n $client = $this->c", "suffix": "oot_config' => 'config_form_login.yml']);\n\n $client->request('GET', '/secure/resource');\n\n $this->assertEquals(\n EntryPointStub::RESPONSE_TEXT,\n $client->getResponse()->getContent(),\n \"Custom entry point wasn'", "middle": "reateClient(['test_case' => 'FirewallEntryPoint', 'r", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/FirewallEntryPointTest.php", "language": "php", "file_size": 944, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\n\nclass FormLoginTest extends AbstractWebTestCase\n{\n #[DataProvider('provideClientOptions')]\n public function testFormLogin(array $options)\n {\n $client = $this->createClient($options);\n\n $form = $client->request('GET', '/login')->selectButton('login')->form();\n $form['_username'] = 'johannes';\n ", "suffix": "ing('Hello johannes!', $text);\n $this->assertStringContainsString('You\\'re browsing to path \"/profile\".', $text);\n }\n\n #[DataProvider('provideClientOptions')]\n public function testFormLogout(array $options)\n {\n $client = $this->cr", "middle": "$form['_password'] = 'test';\n $client->submit($form);\n\n $this->assertRedirect($client->getResponse(), '/profile');\n\n $text = $client->followRedirect()->text(null, true);\n $this->assertStringContainsStr", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/FormLoginTest.php", "language": "php", "file_size": 5867, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Ldap\\Adapter\\AdapterInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\CollectionInterface;\nuse Symfony\\Component\\Ldap\\Adapter\\ConnectionInterface;\nuse Symfo", "suffix": " $kernel = self::createKernel(['test_case' => 'JsonLoginLdap', 'root_config' => 'config.yml']);\n $kernel->boot();\n\n $this->assertInstanceOf(Kernel::class, $kernel);\n }\n\n public function testDefaultJsonLdapLoginSuccess()\n {\n ", "middle": "ny\\Component\\Ldap\\Adapter\\ExtLdap\\Adapter;\nuse Symfony\\Component\\Ldap\\Adapter\\QueryInterface;\nuse Symfony\\Component\\Ldap\\Entry;\n\nclass JsonLoginLdapTest extends AbstractWebTestCase\n{\n public function testKernelBoot()\n {\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/JsonLoginLdapTest.php", "language": "php", "file_size": 2577, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\n\nclass JsonLoginTest extends AbstractWebTestCase\n{\n public function testDefaultJsonLoginSuccess()\n {\n $client = $this->createClient(['test_case' => 'JsonLogin', 'root_config' => 'config.yml']);\n ", "suffix": "ss, $response);\n $this->assertSame(200, $response->getStatusCode());\n $this->assertSame(['message' => 'Welcome @dunglas!'], json_decode($response->getContent(), true));\n }\n\n public function testDefaultJsonLoginFailure()\n {\n $c", "middle": "$client->request('POST', '/chk', [], [], ['CONTENT_TYPE' => 'application/json'], '{\"user\": {\"login\": \"dunglas\", \"password\": \"foo\"}}');\n $response = $client->getResponse();\n\n $this->assertInstanceOf(JsonResponse::cla", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/JsonLoginTest.php", "language": "php", "file_size": 2754, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\Attributes\\Group;\n\nclass LocalizedRoutesAsPathTest extends AbstractWebTestCase\n{\n #[DataProvider('getLocales')]\n public function testLoginLogoutProcedure(string $locale)\n {\n $client", "suffix": " $form['_username'] = 'johannes';\n $form['_password'] = 'test';\n $client->submit($form);\n\n $this->assertRedirect($client->getResponse(), '/'.$locale.'/profile');\n $this->assertEquals('Profile', $client->followRedirect()->te", "middle": " = $this->createClient(['test_case' => 'StandardFormLogin', 'root_config' => 'localized_routes.yml']);\n\n $crawler = $client->request('GET', '/'.$locale.'/login');\n $form = $crawler->selectButton('login')->form();\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/LocalizedRoutesAsPathTest.php", "language": "php", "file_size": 2748, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Test;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBagInterface;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\n/**\n * A special container use", "suffix": "ces.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\nclass TestContainer extends Container\n{\n public function __construct(\n private KernelInterface $kernel,\n private string $privateServicesLocatorId,\n private array ", "middle": "d in tests. This gives access to both public and\n * private services. The container will not include private services that have\n * been inlined or removed. Private services will be removed when they are not\n * used by other servi", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/TestContainer.php", "language": "php", "file_size": 4204, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\LoginLinkHandlerInterface;\n\n/**\n * @author Ryan Weaver <ryan@symfony", "suffix": "bug' => true]);\n\n // we need an active request that is under the firewall to use the linker\n $request = Request::create('/get-login-link');\n self::getContainer()->get(RequestStack::class)->push($request);\n\n /** @var LoginLinkHan", "middle": "casts.com>\n */\nclass LoginLinkAuthenticationTest extends AbstractWebTestCase\n{\n public function testLoginLinkSuccess()\n {\n $client = $this->createClient(['test_case' => 'LoginLink', 'root_config' => 'config.yml', 'de", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/LoginLinkAuthenticationTest.php", "language": "php", "file_size": 2154, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\KernelBrowser;\nuse Symfony\\Component\\BrowserKit\\Cookie;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\n\nclass LogoutTe", "suffix": "ent->disableReboot();\n\n $client->request('POST', '/login', [\n '_username' => 'johannes',\n '_password' => 'test',\n ]);\n\n $this->callInRequestContext($client, static function () {\n static::getContainer()-", "middle": "st extends AbstractWebTestCase\n{\n public function testCsrfTokensAreClearedOnLogout()\n {\n $client = $this->createClient(['test_case' => 'LogoutWithoutSessionInvalidation', 'root_config' => 'config.yml']);\n $cli", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/LogoutTest.php", "language": "php", "file_size": 3617, "cut_index": 614, "middle_length": 229}} {"prefix": "MessageMiddleware;\nuse Symfony\\Component\\Messenger\\Middleware\\RouterContextMiddleware;\nuse Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportFactoryInterface as MessengerTransportFactoryInterface;\nuse Symfony\\Component\\Messenger\\Transport\\TransportInterface;\nuse Symfony\\Component\\Mime\\Header\\Headers;\nuse Symfony\\Component\\Mime\\MimeTypeGuesserInterface;\nuse Symfony\\Component\\Mime\\MimeTypes;\nuse Symfony\\Component\\Notifier\\Bridge as Noti", "suffix": "tifier\\Notifier;\nuse Symfony\\Component\\Notifier\\Recipient\\Recipient;\nuse Symfony\\Component\\Notifier\\TexterInterface;\nuse Symfony\\Component\\Notifier\\Transport\\TransportFactoryInterface as NotifierTransportFactoryInterface;\nuse Symfony\\Component\\ObjectMapper", "middle": "fierBridge;\nuse Symfony\\Component\\Notifier\\Bridge\\FakeChat\\FakeChatTransportFactory;\nuse Symfony\\Component\\Notifier\\Bridge\\FakeSms\\FakeSmsTransportFactory;\nuse Symfony\\Component\\Notifier\\ChatterInterface;\nuse Symfony\\Component\\No", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php", "language": "php", "file_size": 199469, "cut_index": 7068, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass AddDebugLog", "suffix": "sDefinition('monolog.logger_prototype')) {\n return;\n }\n if (!$container->hasDefinition('debug.log_processor')) {\n return;\n }\n\n $container->getDefinition('monolog.logger_prototype')\n ->setConfigur", "middle": "ProcessorPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('profiler')) {\n return;\n }\n if (!$container->ha", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php", "language": "php", "file_size": 1085, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\Config\\ConfigCache;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ResolveEnvPlaceholdersPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder", "suffix": "loner;\n\n/**\n * Dumps the ContainerBuilder to a cache file so that it can be used by\n * debugging tools such as the debug:container console command.\n *\n * @author Ryan Weaver <ryan@thatsquality.com>\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass", "middle": ";\nuse Symfony\\Component\\DependencyInjection\\Dumper\\XmlDumper;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\EnvPlaceholderParameterBag;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\VarExporter\\DeepC", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php", "language": "php", "file_size": 3040, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * @internal\n */", "suffix": "rn;\n }\n\n $definition = $container->getDefinition('debug.error_handler_configurator');\n if ($container->hasDefinition('monolog.logger.php')) {\n $definition->replaceArgument(0, new Reference('monolog.logger.php'));\n }\n ", "middle": "\nclass ErrorLoggerCompilerPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('debug.error_handler_configurator')) {\n retu", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ErrorLoggerCompilerPass.php", "language": "php", "file_size": 1181, "cut_index": 518, "middle_length": 229}} {"prefix": "peGenerator;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Definition\\PrototypedArrayNode;\nuse Symfony\\Component\\Config\\Loader\\ParamConfigurator;\nuse Symfony\\Component\\Config\\Resource\\FileResource;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\ConfigurationExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Extens", "suffix": "y\\Component\\Routing\\Loader\\Configurator\\RoutesReference;\n\n/**\n * @internal\n */\nclass PhpConfigReferenceDumpPass implements CompilerPassInterface\n{\n private const REFERENCE_TEMPLATE = <<<'PHP'\n <?php\n\n // This file is auto-generated and is ", "middle": "ion\\ExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\BundleInterface;\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\AppReference;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfon", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/PhpConfigReferenceDumpPass.php", "language": "php", "file_size": 9321, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Re", "suffix": "sDefinition('test.private_services_locator')) {\n return;\n }\n\n $privateContainer = $container->getDefinition('test.private_services_locator');\n $definitions = $container->getDefinitions();\n $privateServices = $privateC", "middle": "ference;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass TestServiceContainerRealRefPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->ha", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerRealRefPass.php", "language": "php", "file_size": 2893, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Ref", "suffix": "Definition('test.private_services_locator')) {\n return;\n }\n\n $privateServices = [];\n $definitions = $container->getDefinitions();\n\n foreach ($definitions as $id => $definition) {\n if ($inner = $definition->", "middle": "erence;\n\n/**\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass TestServiceContainerWeakRefPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->has", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php", "language": "php", "file_size": 2440, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Find all service tags which are defined, but not used and yield a warning log message.\n *\n * @author Florian Pfitzer <pfitzer@wurzel3.de>\n */\nclass UnusedTagsPass implements CompilerPassInterface\n{\n private const KNOWN_TAGS = [\n 'asset_mapper.compiler',\n", "suffix": "_value_resolver',\n 'console.command',\n 'console.command.service_arguments',\n 'container.env_var_loader',\n 'container.env_var_processor',\n 'container.excluded',\n 'container.hot_path',\n 'container.no_preload',", "middle": " 'assets.package',\n 'auto_alias',\n 'cache.pool',\n 'cache.pool.clearer',\n 'cache.taggable',\n 'chatter.transport_factory',\n 'config_cache.resource_checker',\n 'console.argument", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php", "language": "php", "file_size": 5116, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle;\n\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\AddExpressionLanguageProvidersPass;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\AddSecurityVotersPass;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\AddSessionDomainConstraintPass;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\CleanRememberMeVerifierPass;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\M", "suffix": "\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\RegisterGlobalSecurityEventListenersPass;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\RegisterLdapLocatorPass;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\RegisterTok", "middle": "akeFirewallsEventDispatcherTraceablePass;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\RegisterCsrfFeaturesPass;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\RegisterEntryPointPass;\nuse Symfony", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/SecurityBundle.php", "language": "php", "file_size": 6837, "cut_index": 716, "middle_length": 229}} {"prefix": "allMap;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionMan", "suffix": "ace;\nuse Symfony\\Component\\Security\\Http\\Firewall\\SwitchUserListener;\nuse Symfony\\Component\\Security\\Http\\FirewallMapInterface;\nuse Symfony\\Component\\Security\\Http\\Logout\\LogoutUrlGenerator;\nuse Symfony\\Component\\VarDumper\\Caster\\ClassStub;\nuse Symfony\\Com", "middle": "agerInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\TraceableAccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\TraceableVoter;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchyInterf", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php", "language": "php", "file_size": 13584, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\Finder\\Finder;\n\nclass UnusedTagsPassUtils\n{\n public static function getDefinedTags(): array\n {\n $tags = [\n 'container.tracked_for_reset' => true,\n 'proxy' => true,\n 'routing.controller' => true,\n ];\n\n // get all tags", "suffix": " if (preg_match_all('{<tag name=\"([^\"]+)\"}', $contents, $matches)) {\n foreach ($matches[1] as $match) {\n $tags[$match] = true;\n }\n }\n if (preg_match_all('{<argument type=\"tag", "middle": " used in XML configs\n $files = Finder::create()->files()->name('*.xml')->path('Resources')->notPath('Tests')->in(\\dirname(__DIR__, 5));\n foreach ($files as $file) {\n $contents = file_get_contents($file);\n", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassUtils.php", "language": "php", "file_size": 3100, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\LogicalAnd;\nuse PHPUnit\\Framework\\Constraint\\LogicalNot;\nuse Symfony\\Component\\DomCrawler\\Crawler;\nuse Symfony\\Component\\DomCrawler\\Test\\Constraint as DomCrawlerConstraint;\nuse Symfony\\Component\\DomCrawler\\Test\\Constraint\\CrawlerSelectorExists;\n\n/**\n * Ideas borrowed from Laravel Dusk's assertions.\n *\n * @see https://laravel.com/docs/5.7/dusk#available-assertions\n */\ntrait DomCrawlerAssertionsT", "suffix": "ction assertSelectorNotExists(string $selector, string $message = ''): void\n {\n self::assertThat(self::getCrawler(), new LogicalNot(new CrawlerSelectorExists($selector)), $message);\n }\n\n public static function assertSelectorCount(int $expec", "middle": "rait\n{\n public static function assertSelectorExists(string $selector, string $message = ''): void\n {\n self::assertThat(self::getCrawler(), new CrawlerSelectorExists($selector), $message);\n }\n\n public static fun", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/DomCrawlerAssertionsTrait.php", "language": "php", "file_size": 6562, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Test;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Config\\Resource\\SelfCheckingResourceChecker;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * KernelTest", "suffix": " use NotificationAssertionsTrait;\n\n protected static ?string $class = null;\n protected static ?KernelInterface $kernel = null;\n protected static bool $booted = false;\n\n private static bool $kernelHasBeenRebooted = false;\n\n protected function", "middle": "Case is the base class for tests needing a Kernel.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nabstract class KernelTestCase extends TestCase\n{\n use ConsoleCommandAssertionsTrait;\n use MailerAssertionsTrait;\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php", "language": "php", "file_size": 6381, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\LogicalNot;\nuse Symfony\\Component\\Mailer\\Event\\MessageEvent;\nuse Symfony\\Component\\Mailer\\Event\\MessageEvents;\nuse Symfony\\Component\\Mailer\\Test\\Constraint as MailerConstraint;\nuse Symfony\\Component\\Mime\\RawMessage;\nuse Symfony\\Component\\Mime\\Test\\Constraint as MimeConstraint;\n\ntrait MailerAssertionsTrait\n{\n public static function assertEmailCount(int $count, ?string $transport = null, strin", "suffix": "ransport = null, string $message = ''): void\n {\n self::assertThat(self::getMessageMailerEvents(), new MailerConstraint\\EmailCount($count, $transport, true), $message);\n }\n\n public static function assertEmailIsQueued(MessageEvent $event, str", "middle": "g $message = ''): void\n {\n self::assertThat(self::getMessageMailerEvents(), new MailerConstraint\\EmailCount($count, $transport), $message);\n }\n\n public static function assertQueuedEmailCount(int $count, ?string $t", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/MailerAssertionsTrait.php", "language": "php", "file_size": 5919, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Test;\n\nuse Symfony\\Bundle\\FrameworkBundle\\KernelBrowser;\nuse Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException;\n\n/**\n * WebTestCase is the base class for functional tests.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nabstrac", "suffix": "\n *\n * @param array $options An array of options to pass to the createKernel method\n * @param array $server An array of server parameters\n */\n protected static function createClient(array $options = [], array $server = []): KernelBrowse", "middle": "t class WebTestCase extends KernelTestCase\n{\n use WebTestAssertionsTrait;\n\n protected function tearDown(): void\n {\n parent::tearDown();\n self::getClient(null);\n }\n\n /**\n * Creates a KernelBrowser.", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php", "language": "php", "file_size": 1930, "cut_index": 537, "middle_length": 229}} {"prefix": "aultValue(['%env(default::SYMFONY_TRUSTED_PROXIES)%'])\n ->end()\n ->arrayNode('trusted_headers', 'trusted_header')\n ->performNoDeepMerging()\n ->beforeNormalization()->ifString()->then(static fn ($v) => $v ? [$v] : [])->end()\n ->prototype('scalar')->end()\n ->defaultValue(['%env(default::SYMFONY_TRUSTED_HEADERS)%'])\n ->end()\n ->scalarNode('error_controller')\n ", "suffix": " $willBeAvailable = static function (string $package, string $class, ?string $parentPackage = null) {\n $parentPackages = (array) $parentPackage;\n $parentPackages[] = 'symfony/framework-bundle';\n\n return ContainerBuilder", "middle": " ->defaultValue('error_controller')\n ->end()\n ->booleanNode('handle_all_throwables')->info('HttpKernel will handle all kinds of \\Throwable.')->defaultTrue()->end()\n ->end()\n ;\n\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php", "language": "php", "file_size": 165478, "cut_index": 7068, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author Mathias Arlaud <mathias.arlaud@gmail.com>\n *\n * @internal to be ", "suffix": "reamer.stream_writer')) {\n return;\n }\n\n foreach ($container->findTaggedServiceIds('json_streamer.value_transformer', true) as $id => $_) {\n $definition = $container->getDefinition($id);\n if ($definition->hasTa", "middle": "removed in Symfony 9.0\n */\nclass DeprecateJsonStreamerValueTransformerTagPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('json_st", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/DeprecateJsonStreamerValueTransformerTagPass.php", "language": "php", "file_size": 1397, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Collects metadata (arity, return type) for custom JsonPath functions\n * ", "suffix": "rawler')) {\n return;\n }\n\n $metadata = [];\n foreach ($container->findTaggedServiceIds('json_path.function') as $tags) {\n foreach ($tags as $attributes) {\n if (!isset($attributes['name'])) {\n ", "middle": "and injects it into the json_path.crawler service.\n */\nclass JsonPathPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('json_path.c", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/JsonPathPass.php", "language": "php", "file_size": 1369, "cut_index": 524, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Translation\\TranslatorBagInterface;\nuse Symfony\\Cont", "suffix": "e.command.translation_lint') || !$container->has('translator')) {\n return;\n }\n\n $translatorClass = $container->getParameterBag()->resolveValue($container->findDefinition('translator')->getClass());\n\n if (!is_subclass_of($tra", "middle": "racts\\Translation\\TranslatorInterface;\n\nfinal class TranslationLintCommandPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('consol", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationLintCommandPass.php", "language": "php", "file_size": 1212, "cut_index": 518, "middle_length": 229}} {"prefix": "tion\\Exception\\SessionNotFoundException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecision;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface;\nuse Sym", "suffix": "rity\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Csrf\\CsrfToken;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\BadgeInterface;\nuse Symfony\\Component\\Se", "middle": "fony\\Component\\Security\\Core\\Authorization\\UserAuthorizationCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\LogicException;\nuse Symfony\\Component\\Security\\Core\\Exception\\LogoutException;\nuse Symfony\\Component\\Secu", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Security.php", "language": "php", "file_size": 11950, "cut_index": 921, "middle_length": 229}} {"prefix": "LogicalNot;\nuse PHPUnit\\Framework\\ExpectationFailedException;\nuse Symfony\\Component\\BrowserKit\\AbstractBrowser;\nuse Symfony\\Component\\BrowserKit\\History;\nuse Symfony\\Component\\BrowserKit\\Request as BrowserKitRequest;\nuse Symfony\\Component\\BrowserKit\\Response as BrowserKitResponse;\nuse Symfony\\Component\\BrowserKit\\Test\\Constraint as BrowserKitConstraint;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Test\\Constraint as Respons", "suffix": "public static function setBrowserKitAssertionsAsVerbose(bool $verbose): void\n {\n self::$defaultVerboseMode = $verbose;\n }\n\n public static function assertResponseIsSuccessful(string $message = '', ?bool $verbose = null): void\n {\n s", "middle": "eConstraint;\n\n/**\n * Ideas borrowed from Laravel Dusk's assertions.\n *\n * @see https://laravel.com/docs/5.7/dusk#available-assertions\n */\ntrait BrowserKitAssertionsTrait\n{\n private static bool $defaultVerboseMode = true;\n\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/BrowserKitAssertionsTrait.php", "language": "php", "file_size": 11549, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Test;\n\nuse Symfony\\Bundle\\FrameworkBundle\\KernelBrowser;\nuse Symfony\\Component\\HttpClient\\DataCollector\\HttpClientDataCollector;\n\n/**\n * @author Mathieu Santostefano <msantostefano@protonmail.com>\n */\ntrait HttpClientAssertionsTrait\n{\n public static function assertHttpClientRequest(string $expectedUrl, string $expectedMethod = 'GET', string|array|null $expectedBody = null, array $expectedHeaders = [], string $httpClientId = 'http_", "suffix": "est. Please ensure to call \"$client->enableProfiler()\" before making the request.');\n }\n\n /** @var HttpClientDataCollector $httpClientDataCollector */\n $httpClientDataCollector = $profile->getCollector('http_client');\n $expected", "middle": "client'): void\n {\n /** @var KernelBrowser $client */\n $client = static::getClient();\n\n if (!($profile = $client->getProfile())) {\n static::fail('The Profiler must be enabled for the current requ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/HttpClientAssertionsTrait.php", "language": "php", "file_size": 5329, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjecti", "suffix": " }\n\n if (!$container->hasDefinition('router.request_context')) {\n $container->setParameter('asset.request_context.base_path', $container->getParameter('asset.request_context.base_path') ?? '');\n $container->setParameter('asset", "middle": "on\\Reference;\n\nclass AssetsContextPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('assets.context')) {\n return;\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AssetsContextPass.php", "language": "php", "file_size": 1681, "cut_index": 537, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass TranslationUpdateCommandPass implements CompilerPassInterface", "suffix": ">getParameterBag()->resolveValue($container->findDefinition('translation.writer')->getClass());\n\n if (!method_exists($translationWriterClass, 'getFormats')) {\n $container->removeDefinition('console.command.translation_extract');\n }", "middle": "\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('console.command.translation_extract')) {\n return;\n }\n\n $translationWriterClass = $container-", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationUpdateCommandPass.php", "language": "php", "file_size": 1006, "cut_index": 512, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\UnusedTagsPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass UnusedTagsPassTest extends TestCase\n{\n ", "suffix": "ster('bar')\n ->addTag('kenrel.event_subscriber');\n\n $pass->process($container);\n\n $this->assertSame([\\sprintf('%s: Tag \"kenrel.event_subscriber\" was defined on service(s) \"foo\", \"bar\", but was never used. Did you mean \"kernel.event", "middle": "public function testProcess()\n {\n $pass = new UnusedTagsPass();\n\n $container = new ContainerBuilder();\n $container->register('foo')\n ->addTag('kenrel.event_subscriber');\n $container->regi", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassTest.php", "language": "php", "file_size": 1928, "cut_index": 537, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass VirtualRequestStackPass", "suffix": "n('debug.event_dispatcher')) {\n $container->getDefinition('debug.event_dispatcher')->replaceArgument(3, new Reference('request_stack', ContainerBuilder::NULL_ON_INVALID_REFERENCE));\n }\n\n if ($container->hasDefinition('debug.log_pro", "middle": " implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if ($container->has('.virtual_request_stack')) {\n return;\n }\n\n if ($container->hasDefinitio", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/VirtualRequestStackPass.php", "language": "php", "file_size": 1147, "cut_index": 518, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author Ahmed TAILOULOUTE <ahmed.tailouloute@gmail.com>\n */\nclass ", "suffix": " return;\n }\n\n $isMarshallerDecorated = false;\n\n foreach ($container->getDefinitions() as $definition) {\n $decorated = $definition->getDecoratedService();\n if (null !== $decorated && 'session.marshaller' === $deco", "middle": "RemoveUnusedSessionMarshallingHandlerPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('session.marshalling_handler')) {\n ", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RemoveUnusedSessionMarshallingHandlerPass.php", "language": "php", "file_size": 1241, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Test;\n\nuse PHPUnit\\Framework\\Constraint\\LogicalNot;\nuse Symfony\\Component\\Notifier\\Event\\MessageEvent;\nuse Symfony\\Component\\Notifier\\Event\\NotificationEvents;\nuse Symfony\\Component\\Notifier\\Message\\MessageInterface;\nuse Symfony\\Component\\Notifier\\Test\\Constraint as NotifierConstraint;\n\n/**\n * @author Smaïne Milianni <smaine.milianni", "suffix": "nts(), new NotifierConstraint\\NotificationCount($count, $transportName), $message);\n }\n\n public static function assertQueuedNotificationCount(int $count, ?string $transportName = null, string $message = ''): void\n {\n self::assertThat(self::", "middle": "@gmail.com>\n */\ntrait NotificationAssertionsTrait\n{\n public static function assertNotificationCount(int $count, ?string $transportName = null, string $message = ''): void\n {\n self::assertThat(self::getNotificationEve", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/NotificationAssertionsTrait.php", "language": "php", "file_size": 4044, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Test;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandFailed;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandIsInvalid;\nuse Symfony\\Component\\Console\\Tester\\Constraint\\CommandIsSuccessful;\nuse Symfony\\Component\\", "suffix": "mmand arguments and options\n * @param string[] $interactiveInputs An array of strings representing each input passed to the command input stream\n * @param array<\\Closure(string): string> $normalizers\n */\n public static", "middle": "Console\\Tester\\ExecutionResult;\n\ntrait ConsoleCommandAssertionsTrait\n{\n /**\n * Runs a console command and returns the execution result.\n *\n * @param array $input An array of co", "meta": {"filepath": "src/Symfony/Bundle/FrameworkBundle/Test/ConsoleCommandAssertionsTrait.php", "language": "php", "file_size": 3204, "cut_index": 614, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\SecurityBundle\\SecurityBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AutowiringBundle\\AutowiringBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\TestBundle;\n\n/*\n * This file is part of the ", "suffix": "symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nreturn [\n new FrameworkBundle(),\n new SecurityBundle(),\n new AutowiringBundle(),\n new TestBundle", "middle": "Symfony package.\n *\n * (c) Fabien Potencier <fabien@", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AutowiringTypes/bundles.php", "language": "php", "file_size": 850, "cut_index": 535, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FormLoginBundle\\DependencyInjection;\n\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FormLoginBundle\\Security\\LocalizedFormFailureHandler;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\Dependenc", "suffix": "nds Extension\n{\n public function load(array $configs, ContainerBuilder $container): void\n {\n $container\n ->register('localized_form_failure_handler', LocalizedFormFailureHandler::class)\n ->addArgument(new Reference('route", "middle": "yInjection\\Reference;\n\nclass FormLoginExtension exte", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FormLoginBundle/DependencyInjection/FormLoginExtension.php", "language": "php", "file_size": 937, "cut_index": 606, "middle_length": 52}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AccessTokenBundle\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authentication\\Auth", "suffix": "ticationFailureHandler implements AuthenticationFailureHandlerInterface\n{\n public function onAuthenticationFailure(Request $request, AuthenticationException $exception): Response\n {\n return new JsonResponse(['message' => 'Something went wrong'", "middle": "enticationFailureHandlerInterface;\n\nclass JsonAuthen", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/AccessTokenBundle/Security/Http/JsonAuthenticationFailureHandler.php", "language": "php", "file_size": 931, "cut_index": 606, "middle_length": 52}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AccessTokenBundle\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Securit", "suffix": "terface;\n\nclass JsonAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface\n{\n public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response\n {\n return new JsonResponse(['message' => \\sprintf", "middle": "y\\Http\\Authentication\\AuthenticationSuccessHandlerIn", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/AccessTokenBundle/Security/Http/JsonAuthenticationSuccessHandler.php", "language": "php", "file_size": 949, "cut_index": 582, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AccessTokenBundle\\Security\\Handler;\n\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Ac", "suffix": "UserBadge\n {\n return match ($accessToken) {\n 'VALID_ACCESS_TOKEN' => new UserBadge('dunglas'),\n 'SELF_CONTAINED_ACCESS_TOKEN' => new UserBadge('dunglas', static fn () => new InMemoryUser('dunglas', null, ['ROLE_USER'])),\n ", "middle": "cessTokenHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\n\nclass AccessTokenHandler implements AccessTokenHandlerInterface\n{\n public function getUserBadgeFrom(string $accessToken): ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/AccessTokenBundle/Security/Handler/AccessTokenHandler.php", "language": "php", "file_size": 1098, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\RememberMeBundle\\Security;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentTokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\TokenProviderInterface;\nuse Symfony\\Component\\Security\\Co", "suffix": "{\n // only reset the \"internal db\" for new tests\n if (self::$kernelClass !== $kernel::class) {\n self::$kernelClass = $kernel::class;\n self::$db = [];\n }\n }\n\n public function loadTokenBySeries(string $series)", "middle": "re\\Exception\\TokenNotFoundException;\n\nclass StaticTokenProvider implements TokenProviderInterface\n{\n private static array $db = [];\n private static ?string $kernelClass = null;\n\n public function __construct($kernel)\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/RememberMeBundle/Security/StaticTokenProvider.php", "language": "php", "file_size": 1938, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\RememberMeBundle\\Security;\n\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Co", "suffix": "UserProvider $inner)\n {\n $this->inner = $inner;\n }\n\n public function loadUserByUsername($username): UserInterface\n {\n return $this->changeUser($this->inner->loadUserByUsername($username));\n }\n\n public function loadUserByIden", "middle": "re\\User\\UserProviderInterface;\n\nclass UserChangingUserProvider implements UserProviderInterface\n{\n private InMemoryUserProvider $inner;\n\n public static bool $changePassword = false;\n\n public function __construct(InMemory", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/RememberMeBundle/Security/UserChangingUserProvider.php", "language": "php", "file_size": 1753, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\RequestTrackerBundle\\EventSubscriber;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\n\nfinal class RequestTrackerSubscriber implements EventSubscriberInterface\n{\n ", "suffix": "function getSubscribedEvents(): array\n {\n return [\n RequestEvent::class => 'onRequest',\n ];\n }\n\n public function onRequest(RequestEvent $event)\n {\n $this->lastRequest = $event->getRequest();\n }\n\n public fun", "middle": " private ?Request $lastRequest;\n\n public static ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/RequestTrackerBundle/EventSubscriber/RequestTrackerSubscriber.php", "language": "php", "file_size": 972, "cut_index": 582, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\RequestTrackerBundle\\DependencyInjection;\n\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\RequestTrackerBundle\\EventSubscriber\\RequestTrackerSubscriber;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component", "suffix": "ss RequestTrackerExtension extends Extension\n{\n public function load(array $configs, ContainerBuilder $container): void\n {\n $container->register('request_tracker_subscriber', RequestTrackerSubscriber::class)\n ->setPublic(true)\n ", "middle": "\\DependencyInjection\\Extension\\Extension;\n\nfinal cla", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/RequestTrackerBundle/DependencyInjection/RequestTrackerExtension.php", "language": "php", "file_size": 907, "cut_index": 547, "middle_length": 52}} {"prefix": "\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\T", "suffix": "on\\Voter\\Vote;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Firewall\\AbstractListe", "middle": "oken\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\Authorization\\TraceableAccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\TraceableVoter;\nuse Symfony\\Component\\Security\\Core\\Authorizati", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php", "language": "php", "file_size": 19887, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Routing;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Routing\\LogoutRouteLoader;\nuse Symfony\\Component\\DependencyInjection\\Config\\ContainerParametersResource;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\", "suffix": " = new LogoutRouteLoader($logoutPaths, 'parameterName');\n $collection = $loader();\n\n self::assertInstanceOf(RouteCollection::class, $collection);\n self::assertCount(1, $collection);\n self::assertEquals(new Route('/logout'), $col", "middle": "Routing\\RouteCollection;\n\nclass LogoutRouteLoaderTest extends TestCase\n{\n public function testLoad()\n {\n $logoutPaths = [\n 'main' => '/logout',\n 'admin' => '/logout',\n ];\n\n $loader", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Routing/LogoutRouteLoaderTest.php", "language": "php", "file_size": 1499, "cut_index": 524, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Fixtures;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationExc", "suffix": "\nclass DummyAuthenticator implements AuthenticatorInterface\n{\n public function supports(Request $request): ?bool\n {\n return null;\n }\n\n public function authenticate(Request $request): Passport\n {\n }\n\n public function createToken(", "middle": "eption;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\PassportInterface;\n", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Fixtures/DummyAuthenticator.php", "language": "php", "file_size": 1501, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\LoginLink;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\LoginLink\\FirewallAwareLoginLinkHandler;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext;\nuse Symfony\\Bundle\\SecurityBundle\\Securit", "suffix": "ny\\Component\\Security\\Http\\LoginLink\\LoginLinkDetails;\nuse Symfony\\Component\\Security\\Http\\LoginLink\\LoginLinkHandlerInterface;\n\nclass FirewallAwareLoginLinkHandlerTest extends TestCase\n{\n public function testSuccessfulDecoration()\n {\n $user =", "middle": "y\\FirewallMap;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfo", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/LoginLink/FirewallAwareLoginLinkHandlerTest.php", "language": "php", "file_size": 2585, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\CacheWarmer;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\CacheWarmer\\ExpressionCacheWarmer;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ParsedExpression;\nuse Symfony\\Component\\Secu", "suffix": " [$expressions[0], ['token', 'user', 'object', 'subject', 'role_names', 'request', 'trust_resolver']],\n [$expressions[1], ['token', 'user', 'object', 'subject', 'role_names', 'request', 'trust_resolver']],\n ];\n\n $expressionLan", "middle": "rity\\Core\\Authorization\\ExpressionLanguage;\n\nclass ExpressionCacheWarmerTest extends TestCase\n{\n public function testWarmUp()\n {\n $expressions = [new Expression('A'), new Expression('B')];\n\n $series = [\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/CacheWarmer/ExpressionCacheWarmerTest.php", "language": "php", "file_size": 1648, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Command\\DebugFirewallCommand;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Fixtures\\DummyAuthenticator;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\EventDispat", "suffix": "Names = ['main', 'api'];\n\n $command = new DebugFirewallCommand($firewallNames, new Container(), new Container(), []);\n $tester = new CommandTester($command);\n\n $this->assertSame(0, $tester->execute([]));\n $this->assertStringCont", "middle": "cher\\EventDispatcher;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\n\nclass DebugFirewallCommandTest extends TestCase\n{\n public function testFirewallListOutputMatchesFixture()\n {\n $firewall", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Command/DebugFirewallCommandTest.php", "language": "php", "file_size": 7141, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Command;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Command\\SecurityRoleHierarchyDumpCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\nuse Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy;\n\nclass", "suffix": "'ROLE_USER'],\n ];\n\n $roleHierarchy = new RoleHierarchy($hierarchy);\n $command = new SecurityRoleHierarchyDumpCommand($roleHierarchy);\n $commandTester = new CommandTester($command);\n\n $exitCode = $commandTester->execute([]", "middle": " SecurityRoleHierarchyDumpCommandTest extends TestCase\n{\n public function testExecuteWithRoleHierarchy()\n {\n $hierarchy = [\n 'ROLE_ADMIN' => ['ROLE_USER'],\n 'ROLE_SUPER_ADMIN' => ['ROLE_ADMIN', ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Command/SecurityRoleHierarchyDumpCommandTest.php", "language": "php", "file_size": 2673, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\EventListener\\VoteListener;\nuse Symfony\\Component\\Security\\Core\\Authorization\\TraceableAccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Authorizatio", "suffix": " $traceableAccessDecisionManager = $this\n ->getMockBuilder(TraceableAccessDecisionManager::class)\n ->disableOriginalConstructor()\n ->onlyMethods(['addVoterVote'])\n ->getMock();\n\n $traceableAccessDecision", "middle": "n\\Voter\\VoterInterface;\nuse Symfony\\Component\\Security\\Core\\Event\\VoteEvent;\n\nclass VoteListenerTest extends TestCase\n{\n public function testOnVoterVote()\n {\n $voter = $this->createStub(VoterInterface::class);\n\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/EventListener/VoteListenerTest.php", "language": "php", "file_size": 1369, "cut_index": 524, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Debug;\n\nuse PHPUnit\\Framework\\Attributes\\Group;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKe", "suffix": "oken\\TokenInterface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticatorManager;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticatorMana", "middle": "rnel\\HttpKernelInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\Authentication\\T", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Debug/TraceableFirewallListenerTest.php", "language": "php", "file_size": 6369, "cut_index": 716, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FirewallEntryPointBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Com", "suffix": "lass FirewallEntryPointExtension extends Extension\n{\n public function load(array $configs, ContainerBuilder $container): void\n {\n $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));\n $loader->load(", "middle": "ponent\\DependencyInjection\\Loader\\YamlFileLoader;\n\nc", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FirewallEntryPointBundle/DependencyInjection/FirewallEntryPointExtension.php", "language": "php", "file_size": 862, "cut_index": 529, "middle_length": 52}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FormLoginBundle;\n\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FormLoginBundle\\Controller\\LocalizedController;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FormLoginBundle\\Controller\\Logi", "suffix": " parent::build($container);\n\n $container\n ->register(LoginController::class)\n ->setPublic(true)\n ->addTag('container.service_subscriber');\n\n $container\n ->register(LocalizedController::class)\n", "middle": "nController;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nclass FormLoginBundle extends Bundle\n{\n public function build(ContainerBuilder $container): void\n {\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FormLoginBundle/FormLoginBundle.php", "language": "php", "file_size": 1092, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FormLoginBundle\\Controller;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Component\\Security\\C", "suffix": "\n private ContainerInterface $container;\n\n public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }\n\n public function loginAction(Request $request, ?UserInterface $user = null)\n {\n // ", "middle": "ore\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\nuse Twig\\Environment;\n\nclass LoginController implements ServiceSubscriberInterface\n{", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FormLoginBundle/Controller/LoginController.php", "language": "php", "file_size": 2295, "cut_index": 563, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\n\nclass MissingUserProviderTest extends AbstractWebTestCase\n{\n public function testUserProviderIsNeeded()\n {\n $client = $this->createClient(['test_case' => 'MissingUserProvider', 'root_config' => 'config.yml']);\n\n ", "suffix": "ption::class);\n $this->expectExceptionMessage('\"default\" firewall requires a user provider but none was defined');\n\n $client->request('GET', '/', [], [], [\n 'PHP_AUTH_USER' => 'username',\n 'PHP_AUTH_PW' => 'pa$$word',\n ", "middle": " $this->expectException(InvalidConfigurationExce", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/MissingUserProviderTest.php", "language": "php", "file_size": 932, "cut_index": 606, "middle_length": 52}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\n\nclass SecurityRoutingIntegrationTest extends AbstractWebTestCase\n{\n #[DataProvider('provideConfigs')]\n public function testRoutingErrorIsNotExposedForProtectedResourceWhenAnonymous(array $options)\n {\n $client = $this->createClient($options);\n $client->request('GET', '/protected_resource');\n\n $this->assertRedirect($client->getResponse(), '/", "suffix": "ted_resource');\n\n $this->assertEquals(404, $client->getResponse()->getStatusCode(), (string) $client->getResponse());\n }\n\n #[DataProvider('provideConfigs')]\n public function testRoutingErrorIsNotExposedForProtectedResourceWhenLoggedInWithIn", "middle": "login');\n }\n\n #[DataProvider('provideConfigs')]\n public function testRoutingErrorIsExposedWhenNotProtected(array $options)\n {\n $client = $this->createClient($options);\n $client->request('GET', '/unprotec", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/SecurityRoutingIntegrationTest.php", "language": "php", "file_size": 6411, "cut_index": 716, "middle_length": 229}} {"prefix": "urityBundle\\Security;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AuthenticatorBundle\\ApiAuthenticator;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\SecuredPageBundle\\Security\\Core\\User\\ArrayUserProvider;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\C", "suffix": "fony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\n\nclass SecurityTest extends AbstractWebTestCase\n{\n public function testServiceIsFunctional()\n {\n $kernel = self::crea", "middle": "omponent\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Sym", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/SecurityTest.php", "language": "php", "file_size": 12134, "cut_index": 921, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\SecurityBundle\\SecurityBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\CsrfFormLoginBundle\\CsrfFormLoginBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\TestBundle;\nuse Symfony\\Bundle\\TwigBundle\\TwigBundle;\n\n/*\n * This file is part of the Symfony package.\n *\n * ", "suffix": "the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nreturn [\n new FrameworkBundle(),\n new SecurityBundle(),\n new TwigBundle(),\n new CsrfFormLoginBundle(),\n new TestBund", "middle": "(c) Fabien Potencier <fabien@symfony.com>\n *\n * For ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/CsrfFormLogin/bundles.php", "language": "php", "file_size": 923, "cut_index": 606, "middle_length": 52}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\SecurityBundle\\SecurityBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FirewallEntryPointBundle\\FirewallEntryPointBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\TestBundle;\n\n/*\n * This file is part of the Symfony ", "suffix": "com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nreturn [\n new FrameworkBundle(),\n new SecurityBundle(),\n new FirewallEntryPointBundle(),\n new TestBundle", "middle": "package.\n *\n * (c) Fabien Potencier <fabien@symfony.", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/FirewallEntryPoint/bundles.php", "language": "php", "file_size": 874, "cut_index": 559, "middle_length": 52}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\SecurityBundle\\SecurityBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AccessTokenBundle\\AccessTokenBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\TestBundle;\n\n/*\n * This file is part", "suffix": "<fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nreturn [\n new SecurityBundle(),\n new FrameworkBundle(),\n new AccessTokenBundle(),\n new T", "middle": " of the Symfony package.\n *\n * (c) Fabien Potencier ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AccessToken/bundles.php", "language": "php", "file_size": 853, "cut_index": 529, "middle_length": 52}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\SecurityBundle\\SecurityBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\JsonLoginBundle\\JsonLoginBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\TestBundle;\n\n/*\n * This file is part of the Sy", "suffix": "mfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nreturn [\n new SecurityBundle(),\n new FrameworkBundle(),\n new JsonLoginBundle(),\n new TestBundle(),", "middle": "mfony package.\n *\n * (c) Fabien Potencier <fabien@sy", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/JsonLogin/bundles.php", "language": "php", "file_size": 847, "cut_index": 535, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\SecuredPageBundle\\Security\\Core\\User;\n\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\UserWithoutEquatable;\nuse Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Sec", "suffix": " function addUser(UserInterface $user)\n {\n $this->users[$user->getUserIdentifier()] = $user;\n }\n\n public function setUser($username, UserInterface $user)\n {\n $this->users[$username] = $user;\n }\n\n public function getUser($use", "middle": "urity\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\n\nclass ArrayUserProvider implements UserProviderInterface\n{\n /** @var UserInterface[] */\n private array $users = [];\n\n public", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/SecuredPageBundle/Security/Core/User/ArrayUserProvider.php", "language": "php", "file_size": 2071, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AuthenticatorBundle;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\", "suffix": "ractAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\SelfValidatingPassport;\n\nclass Ap", "middle": "Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Abst", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/AuthenticatorBundle/ApiAuthenticator.php", "language": "php", "file_size": 2312, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AuthenticatorBundle;\n\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory\\FormLoginFactory;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse S", "suffix": "ContainerBuilder $container, string $firewallName, array $config, string $userProviderId): string\n {\n $authenticatorId = 'security.authenticator.dummy_form_login.'.$firewallName;\n $options = array_intersect_key($config, $this->options);\n ", "middle": "ymfony\\Component\\DependencyInjection\\Reference;\n\nclass DummyFormLoginFactory extends FormLoginFactory\n{\n public function getKey(): string\n {\n return 'dummy_form_login';\n }\n\n public function createAuthenticator(", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/AuthenticatorBundle/DummyFormLoginFactory.php", "language": "php", "file_size": 1716, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\JsonLoginBundle\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authentication\\Authen", "suffix": "cationFailureHandler implements AuthenticationFailureHandlerInterface\n{\n public function onAuthenticationFailure(Request $request, AuthenticationException $exception): Response\n {\n return new JsonResponse(['message' => 'Something went wrong'],", "middle": "ticationFailureHandlerInterface;\n\nclass JsonAuthenti", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/JsonLoginBundle/Security/Http/JsonAuthenticationFailureHandler.php", "language": "php", "file_size": 929, "cut_index": 606, "middle_length": 52}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\EventBundle\\EventSubscriber;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Core\\Event\\AuthenticationFailureEvent;\nuse Symfony\\Component\\Security\\Core\\Event\\AuthenticationSu", "suffix": "hods = [];\n\n public static function getSubscribedEvents(): array\n {\n return [\n AuthenticationSuccessEvent::class => 'onAuthenticationSuccess',\n AuthenticationFailureEvent::class => 'onAuthenticationFailure',\n I", "middle": "ccessEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\InteractiveLoginEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\SwitchUserEvent;\n\nfinal class TestSubscriber implements EventSubscriberInterface\n{\n public array $calledMet", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/EventBundle/EventSubscriber/TestSubscriber.php", "language": "php", "file_size": 1285, "cut_index": 524, "middle_length": 229}} {"prefix": "is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\EventBundle\\DependencyInjection;\n\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\EventBundle\\EventSubscriber\\TestSubscriber;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjec", "suffix": "n extends Extension\n{\n public function load(array $configs, ContainerBuilder $container): void\n {\n $container->register('test_subscriber', TestSubscriber::class)\n ->setPublic(true)\n ->addTag('kernel.event_subscriber');\n ", "middle": "tion\\Extension\\Extension;\n\nfinal class EventExtensio", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/EventBundle/DependencyInjection/EventExtension.php", "language": "php", "file_size": 849, "cut_index": 535, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FormLoginBundle\\Controller;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\nuse Symfony\\Contracts\\Service\\ServiceS", "suffix": " $this->container = $container;\n }\n\n public function loginAction(Request $request)\n {\n // get the login error if there is one\n if ($request->attributes->has(SecurityRequestAttributes::AUTHENTICATION_ERROR)) {\n $error = $re", "middle": "ubscriberInterface;\nuse Twig\\Environment;\n\nclass LocalizedController implements ServiceSubscriberInterface\n{\n private ContainerInterface $container;\n\n public function __construct(ContainerInterface $container)\n {\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FormLoginBundle/Controller/LocalizedController.php", "language": "php", "file_size": 2336, "cut_index": 563, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpFoundation\\ResponseHeaderBag;\n\nclass RememberMeCookieTest extends AbstractWebTestCase\n{\n #[DataProvider('getSessionRememberMeSecureCookieFlagAutoHttpsM", "suffix": "equest('POST', '/login', [\n '_username' => 'test',\n '_password' => 'test',\n ], [], [\n 'HTTPS' => (int) $https,\n ]);\n\n $cookies = $client->getResponse()->headers->getCookies(ResponseHeaderBag::COOKIES_AR", "middle": "ap')]\n public function testSessionRememberMeSecureCookieFlagAuto($https, $expectedSecureFlag)\n {\n $client = $this->createClient(['test_case' => 'RememberMeCookie', 'root_config' => 'config.yml']);\n\n $client->r", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/RememberMeCookieTest.php", "language": "php", "file_size": 1289, "cut_index": 524, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\Security\\Http\\Firewall\\SwitchUserListener;\n\nclass SwitchUserTest extends AbstractWebTestCase\n{\n #[DataProvider('getTestParameters')]\n public function testSwitchUser($originalUser, $targetUser", "suffix": "s->assertEquals($expectedStatus, $client->getResponse()->getStatusCode());\n $this->assertEquals($expectedUser, $client->getProfile()->getCollector('security')->getUser());\n }\n\n public function testSwitchedUserCanSwitchToOther()\n {\n $", "middle": ", $expectedUser, $expectedStatus)\n {\n $client = $this->createAuthenticatedClient($originalUser, ['root_config' => 'switchuser.yml']);\n\n $client->request('GET', '/profile?_switch_user='.$targetUser);\n\n $thi", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/SwitchUserTest.php", "language": "php", "file_size": 3791, "cut_index": 614, "middle_length": 229}} {"prefix": " * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\SecurityBundle\\SecurityBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FormLoginBundle\\FormLoginBundle;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\RequestTrackerBundle\\RequestTrack", "suffix": "Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\TestBundle;\nuse Symfony\\Bundle\\TwigBundle\\TwigBundle;\n\nreturn [\n new FrameworkBundle(),\n new SecurityBundle(),\n new TwigBundle(),\n new FormLoginBundle(),\n new RequestTrackerBundle(),\n ", "middle": "erBundle;\nuse ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/StandardFormLogin/bundles.php", "language": "php", "file_size": 813, "cut_index": 522, "middle_length": 14}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CheckTypeDeclarationsPass;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nclass TestBundle extends Bun", "suffix": "ntainer): void\n {\n $container->setParameter('container.build_hash', 'test_bundle');\n $container->setParameter('container.build_time', time());\n $container->setParameter('container.build_id', 'test_bundle');\n\n $container->addC", "middle": "dle\n{\n public function build(ContainerBuilder $co", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/TestBundle.php", "language": "php", "file_size": 987, "cut_index": 582, "middle_length": 52}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AuthenticatorBundle;\n\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\SecurityExtension;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nclass AuthenticatorBundle extends Bundle\n{\n public function build(Contain", "suffix": "ild($container);\n\n $this->configureSecurityExtension($container);\n }\n\n private function configureSecurityExtension(ContainerBuilder $container): void\n {\n /** @var SecurityExtension $extension */\n $extension = $container->getEx", "middle": "erBuilder $container): void\n {\n parent::bu", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/AuthenticatorBundle/AuthenticatorBundle.php", "language": "php", "file_size": 994, "cut_index": 582, "middle_length": 52}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\JsonLoginBundle\\Security\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\", "suffix": "rface;\n\nclass JsonAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface\n{\n public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response\n {\n return new JsonResponse(['message' => \\sprintf('", "middle": "Http\\Authentication\\AuthenticationSuccessHandlerInte", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/JsonLoginBundle/Security/Http/JsonAuthenticationSuccessHandler.php", "language": "php", "file_size": 947, "cut_index": 582, "middle_length": 52}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FirewallEntryPointBundle\\Security;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\EntryPoin", "suffix": "ntStub implements AuthenticationEntryPointInterface\n{\n public const RESPONSE_TEXT = '2be8e651259189d841a19eecdf37e771e2431741';\n\n public function start(Request $request, ?AuthenticationException $authException = null): Response\n {\n return n", "middle": "t\\AuthenticationEntryPointInterface;\n\nclass EntryPoi", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FirewallEntryPointBundle/Security/EntryPointStub.php", "language": "php", "file_size": 897, "cut_index": 547, "middle_length": 52}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\FormLoginBundle\\Security;\n\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Routing\\Generator\\U", "suffix": "\n\nclass LocalizedFormFailureHandler implements AuthenticationFailureHandlerInterface\n{\n private RouterInterface $router;\n\n public function __construct(RouterInterface $router)\n {\n $this->router = $router;\n }\n\n public function onAuthen", "middle": "rlGeneratorInterface;\nuse Symfony\\Component\\Routing\\RouterInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterface;", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FormLoginBundle/Security/LocalizedFormFailureHandler.php", "language": "php", "file_size": 1224, "cut_index": 518, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\CsrfFormLoginBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\HiddenType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Comp", "suffix": "esolver\\OptionsResolver;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\n\n/**\n * Form type for use with the Security component's form-based authentication\n * listener.\n *\n * @author Henrik Bjornskov <henrik@bjrnskov.dk>\n * @author Jeremy Mik", "middle": "onent\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\FormError;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form\\FormEvents;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\OptionsR", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/CsrfFormLoginBundle/Form/UserLoginType.php", "language": "php", "file_size": 2986, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\CsrfFormLoginBundle\\Controller;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\CsrfFormLoginBundle\\Form\\UserLoginType;\nuse Symfony\\Component\\Form\\FormFactoryInterface;\nuse Symfony\\Compo", "suffix": "rInterface\n{\n private ContainerInterface $container;\n\n public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }\n\n public function loginAction()\n {\n $form = $this->container->get('form.", "middle": "nent\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\nuse Twig\\Environment;\n\nclass LoginController implements ServiceSubscribe", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/CsrfFormLoginBundle/Controller/LoginController.php", "language": "php", "file_size": 1851, "cut_index": 537, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\LoginLink;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHan", "suffix": "ler implements AuthenticationSuccessHandlerInterface\n{\n public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response\n {\n return new JsonResponse(['message' => \\sprintf('Welcome %s!', $token->getUserIdentifier())]", "middle": "dlerInterface;\n\nclass TestCustomLoginLinkSuccessHand", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/LoginLink/TestCustomLoginLinkSuccessHandler.php", "language": "php", "file_size": 925, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\app;\n\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\n/**\n * App Test Kernel for functional tests.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass AppKernel ", "suffix": "/'.$testCase)) {\n throw new \\InvalidArgumentException(\\sprintf('The test case \"%s\" does not exist.', $testCase));\n }\n $this->varDir = $varDir;\n $this->testCase = $testCase;\n\n $fs = new Filesystem();\n foreach ((", "middle": "extends Kernel\n{\n private string $varDir;\n private string $testCase;\n private array $rootConfig;\n\n public function __construct($varDir, $testCase, $rootConfig, $environment, $debug)\n {\n if (!is_dir(__DIR__.'", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php", "language": "php", "file_size": 2966, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\RememberMeBundle\\Security\\UserChangingUserProvider;\n\nclass RememberMeTest extends AbstractWebTestCase\n{\n protected function setUp(): void\n {\n UserChangingUserProvider::$changePassword = false;\n }\n", "suffix": "\n $client->request('POST', '/login', [\n '_username' => 'johannes',\n '_password' => 'test',\n ]);\n $this->assertSame(302, $client->getResponse()->getStatusCode());\n\n $client->request('GET', '/profile');\n ", "middle": "\n #[DataProvider('provideConfigs')]\n public function testRememberMe(array $options)\n {\n $client = $this->createClient(array_merge_recursive(['root_config' => 'config.yml', 'test_case' => 'RememberMe'], $options));", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/RememberMeTest.php", "language": "php", "file_size": 3714, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Functional\\Bundle\\AuthenticatorBundle;\n\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Securi", "suffix": "rity\\Http\\Authenticator\\Passport\\Credentials\\PasswordCredentials;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Passport;\nuse Symfony\\Component\\Security\\Http\\SecurityRequestAttributes;\nuse Symfony\\Component\\Security\\Http\\Util\\TargetPathTrait;\n", "middle": "ty\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AbstractLoginFormAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge;\nuse Symfony\\Component\\Secu", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/AuthenticatorBundle/LoginFormAuthenticator.php", "language": "php", "file_size": 2221, "cut_index": 563, "middle_length": 229}} {"prefix": "\n 'memory' => null,\n ],\n ],\n 'firewalls' => [\n 'firewall1' => [\n 'provider' => 'default',\n 'access_token' => [\n 'token_handler' => [\n 'oidc' => [\n 'algorithms' => ['RS256'],\n 'issuers' => ['https://www.example.com'],\n 'audience' => 'audience',\n 'keyset' => '{\"keys\":[{\"kty\":\"RSA\",\"n\":\"abc\",\"e\":\"AQAB\"}]}',\n 'en", "suffix": " => true,\n 'keyset' => '{\"keys\":[{\"kty\":\"RSA\",\"n\":\"abc\",\"e\":\"AQAB\",\"d\":\"def\"}]}',\n 'algorithms' => ['RSA-OAEP'],\n ],\n ],\n ],\n ],\n ", "middle": "cryption' => [\n 'enabled'", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/access_token_oidc_encryption.php", "language": "php", "file_size": 932, "cut_index": 606, "middle_length": 52}} {"prefix": ", [\n 'providers' => [\n 'default' => [\n 'memory' => null,\n ],\n ],\n 'firewalls' => [\n 'firewall1' => [\n 'provider' => 'default',\n 'access_token' => [\n 'token_handler' => [\n 'oidc_user_info' => [\n 'base_uri' => [\n 'https://www.example.com/realms/demo/protocol/openid-connect/userinfo',\n 'https://www.github.com/realms/demo/protocol/openid-co", "suffix": " 'discovery' => [\n 'cache' => [\n 'id' => 'oidc_cache',\n ],\n ],\n ],\n ],\n ],\n ],\n ", "middle": "nnect/userinfo',\n ],\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/access_token_oidc_user_info_multiple_discovery.php", "language": "php", "file_size": 876, "cut_index": 559, "middle_length": 52}} {"prefix": "\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Fixtures\\UserProviderFactory;\n\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\UserProvider\\UserProviderFactoryInterface;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Fixtures\\UserProvider\\DummyProvider;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\nclass CustomProviderFactory impl", "suffix": " $definition->setArgument('$foo', $config['foo']);\n }\n\n public function getKey(): string\n {\n return 'custom';\n }\n\n public function addConfiguration(NodeDefinition $builder): void\n {\n $builder\n ->children()\n ", "middle": "ements UserProviderFactoryInterface\n{\n public function create(ContainerBuilder $container, string $id, array $config): void\n {\n $definition = $container->setDefinition($id, new Definition(DummyProvider::class));\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/UserProviderFactory/CustomProviderFactory.php", "language": "php", "file_size": 1139, "cut_index": 518, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Security;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\", "suffix": "irewallMapTest extends TestCase\n{\n private const ATTRIBUTE_FIREWALL_CONTEXT = '_firewall_context';\n\n public function testGetListenersWithEmptyMap()\n {\n $request = new Request();\n\n $map = [];\n $container = $this->createMock(Con", "middle": "Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcherInterface;\nuse Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\LogoutListener;\n\nclass F", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Security/FirewallMapTest.php", "language": "php", "file_size": 3826, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Security;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\LazyFirewallContext;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInte", "suffix": "estPostRequestWithOnlyLazyAuthenticatorsIsHandledLazily()\n {\n $lazyListener = $this->createMock(FirewallListenerInterface::class);\n $lazyListener->expects($this->once())->method('supports')->willReturn(null);\n // authenticate() must", "middle": "rface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInterface;\n\nclass LazyFirewallContextTest extends TestCase\n{\n public function t", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Security/LazyFirewallContextTest.php", "language": "php", "file_size": 1713, "cut_index": 537, "middle_length": 229}} {"prefix": "ework\\Attributes\\IgnoreDeprecations;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\MainConfiguration;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory\\AuthenticatorFactoryInterface;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\Definition\\Processor;\nuse Symfony\\Component\\Security\\Http\\Authentication\\ExposeSecurityLevel;\n\nclass MainConfigurationTest extends TestCase\n{\n /**\n * T", "suffix": " ],\n ],\n 'firewalls' => [\n 'stub' => [],\n ],\n ];\n\n public function testNoConfigForProvider()\n {\n $config = [\n 'providers' => [\n 'stub' => [],\n ],\n ];\n\n $pr", "middle": "he minimal, required config needed to not have any required validation\n * issues.\n */\n protected static array $minimalConfig = [\n 'providers' => [\n 'stub' => [\n 'id' => 'foo',\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php", "language": "php", "file_size": 12612, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Security;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig;\n\nclass FirewallConfigTest extends TestCase\n{\n public function testGetters()\n {\n $authenticators = ['form_login', 'remember_me'];\n $options = [\n 'r", "suffix": "y_point',\n 'access_denied_url' => 'foo_access_denied_url',\n 'access_denied_handler' => 'foo_access_denied_handler',\n 'user_checker' => 'foo_user_checker',\n 'switch_user' => ['provider' => null, 'parameter' => '_s", "middle": "equest_matcher' => 'foo_request_matcher',\n 'security' => false,\n 'stateless' => false,\n 'provider' => 'foo_provider',\n 'context' => 'foo_context',\n 'entry_point' => 'foo_entr", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Security/FirewallConfigTest.php", "language": "php", "file_size": 2545, "cut_index": 563, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\n\nclass YamlCompleteConfigurationTest exte", "suffix": "nfigurationTestCase\n{\n protected function getLoader(ContainerBuilder $container)\n {\n return new YamlFileLoader($container, new FileLocator(__DIR__.'/Fixtures/yml'));\n }\n\n protected function getFileExtension()\n {\n return 'yml';\n", "middle": "nds CompleteCo", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/YamlCompleteConfigurationTest.php", "language": "php", "file_size": 792, "cut_index": 514, "middle_length": 14}} {"prefix": "Entity\\User1' => 'plaintext',\n 'JMS\\FooBundle\\Entity\\User2' => [\n 'algorithm' => 'sha1',\n 'encode_as_base64' => false,\n 'iterations' => 5,\n ],\n 'JMS\\FooBundle\\Entity\\User3' => [\n 'algorithm' => 'md5',\n ],\n 'JMS\\FooBundle\\Entity\\User4' => [\n 'id' => 'security.hasher.foo',\n ],\n 'JMS\\FooBundle\\Entity\\User5' => [\n 'algorithm' => 'pbkdf2',\n 'hash_algorithm' => 'sha1',\n 'encode_", "suffix": " => 100,\n 'cost' => 15,\n ],\n 'JMS\\FooBundle\\Entity\\User7' => [\n 'algorithm' => 'auto',\n ],\n ],\n 'providers' => [\n 'default' => [\n 'memory' => [\n 'users' => [\n ", "middle": "as_base64' => false,\n 'iterations' => 5,\n 'key_length' => 30,\n ],\n 'JMS\\FooBundle\\Entity\\User6' => [\n 'algorithm' => 'native',\n 'time_cost' => 8,\n 'memory_cost'", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/container1.php", "language": "php", "file_size": 3617, "cut_index": 614, "middle_length": 229}} {"prefix": "ny\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\AttributesRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\HostRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\MethodRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\PathRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\PortRequestMatcher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\NativePasswordHasher;\nuse Symfony\\Component\\PasswordHash", "suffix": "onManager;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Strategy\\AffirmativeStrategy;\nuse Symfony\\Component\\Security\\Core\\User\\UserCheckerInterface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticatorManager;\nuse Symfony\\Component\\Securit", "middle": "er\\Hasher\\Pbkdf2PasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\PlaintextPasswordHasher;\nuse Symfony\\Component\\PasswordHasher\\Hasher\\SodiumPasswordHasher;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisi", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTestCase.php", "language": "php", "file_size": 32963, "cut_index": 1331, "middle_length": 229}} {"prefix": "php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\n\nclass PhpCompleteConfigurationTest extend", "suffix": "igurationTestCase\n{\n protected function getLoader(ContainerBuilder $container)\n {\n return new PhpFileLoader($container, new FileLocator(__DIR__.'/Fixtures/php'));\n }\n\n protected function getFileExtension()\n {\n return 'php';\n ", "middle": "s CompleteConf", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/PhpCompleteConfigurationTest.php", "language": "php", "file_size": 789, "cut_index": 514, "middle_length": 14}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Security;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext;\nuse Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener;\nuse Symfony\\Component\\Secur", "suffix": " $this->getExceptionListenerMock();\n $logoutListener = $this->getLogoutListenerMock();\n $listeners = [static function () {}];\n\n $context = new FirewallContext($listeners, $exceptionListener, $logoutListener, $config);\n\n $this->a", "middle": "ity\\Http\\Firewall\\LogoutListener;\n\nclass FirewallContextTest extends TestCase\n{\n public function testGetters()\n {\n $config = new FirewallConfig('main', 'user_checker', 'request_matcher');\n $exceptionListener =", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Security/FirewallContextTest.php", "language": "php", "file_size": 1538, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\Security;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\UserAuthenticator;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\HttpFoundation\\Re", "suffix": "pBasicAuthenticator;\n\nclass UserAuthenticatorTest extends TestCase\n{\n public function testThrowsLogicExceptionIfCurrentRequestIsNull()\n {\n $container = new Container();\n $firewallMap = new FirewallMap($container, []);\n $requestSt", "middle": "quest;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUser;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserProvider;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Htt", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/Security/UserAuthenticatorTest.php", "language": "php", "file_size": 1800, "cut_index": 537, "middle_length": 229}} {"prefix": "questMatcher\\PathRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\PasswordHasher\\PasswordHasherInterface;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\User\\InMemoryUserChecker;\nuse Symfony\\Component\\Security\\Core\\User\\UserCheckerInterface;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfony\\Component\\Security\\Core\\User\\User", "suffix": "sport;\n\nclass SecurityExtensionTest extends TestCase\n{\n public function testInvalidCheckPath()\n {\n $container = $this->getRawContainer();\n\n $container->loadFromExtension('security', [\n 'providers' => [\n 'defaul", "middle": "ProviderInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\HttpBasicAuthenticator;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Pas", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php", "language": "php", "file_size": 40220, "cut_index": 2151, "middle_length": 229}} {"prefix": "Tests\\DependencyInjection\\Fixtures\\UserProviderFactory;\n\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\UserProvider\\UserProviderFactoryInterface;\nuse Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Fixtures\\UserProvider\\DummyProvider;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\nclass DummyProviderFactory implements UserProviderFactoryInterface\n{\n ", "suffix": "$id, $config): void\n {\n $container->setDefinition($id, new Definition(DummyProvider::class));\n }\n\n public function getKey(): string\n {\n return 'foo';\n }\n\n public function addConfiguration(NodeDefinition $node): void\n {\n ", "middle": "public function create(ContainerBuilder $container, ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/UserProviderFactory/DummyProviderFactory.php", "language": "php", "file_size": 873, "cut_index": 559, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Monolog\\Processor\\ProcessorInterface;\nuse Symfony\\Component\\DependencyInjection\\Argument\\BoundArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\", "suffix": "ed_token_storage\" to ProcessorInterface instances.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n *\n * @internal\n */\nclass RegisterTokenUsageTrackingPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {", "middle": "Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface;\n\n/**\n * Injects the session tracker enabler in \"security.context_listener\" + binds \"security.untrack", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterTokenUsageTrackingPass.php", "language": "php", "file_size": 2275, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Bundle\\SecurityBundle\\RememberMe\\DecoratedRememberMeHandler;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Replaces the DecoratedRememberMeHandler", "suffix": "ty.remember_me_handler';\n\n public function process(ContainerBuilder $container): void\n {\n $handledFirewalls = [];\n foreach ($container->findTaggedServiceIds(self::HANDLER_TAG) as $definitionId => $rememberMeHandlerTags) {\n $d", "middle": " services with the real definition.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @internal\n */\nfinal class ReplaceDecoratedRememberMeHandlerPass implements CompilerPassInterface\n{\n private const HANDLER_TAG = 'securi", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/ReplaceDecoratedRememberMeHandlerPass.php", "language": "php", "file_size": 2138, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definitio", "suffix": "listeners based on the execution order provided by FirewallListenerInterface::getPriority().\n *\n * @author Christian Scheb <me@christianscheb.de>\n */\nclass SortFirewallListenersPass implements CompilerPassInterface\n{\n public function process(ContainerBu", "middle": "n;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInterface;\n\n/**\n * Sorts firewall ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/SortFirewallListenersPass.php", "language": "php", "file_size": 3043, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\UserProvider;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Contain", "suffix": "*/\nclass InMemoryFactory implements UserProviderFactoryInterface\n{\n public function create(ContainerBuilder $container, string $id, array $config): void\n {\n $definition = $container->setDefinition($id, new ChildDefinition('security.user.provid", "middle": "erBuilder;\nuse Symfony\\Component\\DependencyInjection\\Parameter;\n\n/**\n * InMemoryFactory creates services for the memory provider.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Christophe Coevoet <stof@notk.org>\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php", "language": "php", "file_size": 2353, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\UserProvider;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Contain", "suffix": "lass LdapFactory implements UserProviderFactoryInterface\n{\n public function create(ContainerBuilder $container, string $id, array $config): void\n {\n $container\n ->setDefinition($id, new ChildDefinition('security.user.provider.ldap')", "middle": "erBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * LdapFactory creates services for Ldap user provider.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n * @author Charles Sarrazin <charles@sarraz.in>\n */\nc", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php", "language": "php", "file_size": 2986, "cut_index": 563, "middle_length": 229}} {"prefix": "ackage.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\UserProvider;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * UserProviderFactoryInterface is the interface for all user provider factories.\n *\n * @author Fabien Poten", "suffix": "oet <stof@notk.org>\n */\ninterface UserProviderFactoryInterface\n{\n public function create(ContainerBuilder $container, string $id, array $config): void;\n\n public function getKey(): string;\n\n public function addConfiguration(NodeDefinition $builder)", "middle": "cier <fabien@symfony.com>\n * @author Christophe Coev", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/UserProviderFactoryInterface.php", "language": "php", "file_size": 877, "cut_index": 559, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Lukas Kahwe Smith <smith@pooteeweet.org>\n * @auth", "suffix": " 'login_path' => '/login',\n ];\n\n protected array $defaultSuccessHandlerOptions = [\n 'always_use_default_target_path' => false,\n 'default_target_path' => '/',\n 'login_path' => '/login',\n 'target_path_parameter' => '_", "middle": "or Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nabstract class AbstractFactory implements AuthenticatorFactoryInterface\n{\n protected array $options = [\n 'check_path' => '/login_check',\n 'use_forward' => false,\n", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php", "language": "php", "file_size": 4472, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\AccessToken\\TokenHandlerFactoryInterface;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Dependen", "suffix": "ractFactory implements StatelessAuthenticatorFactoryInterface\n{\n private const PRIORITY = -40;\n\n /**\n * @param array<TokenHandlerFactoryInterface> $tokenHandlerFactories\n */\n public function __construct(private readonly array $tokenHandler", "middle": "cyInjection\\Reference;\n\n/**\n * AccessTokenFactory creates services for Access Token authentication.\n *\n * @author Florent Morselli <florent.morselli@spomky-labs.com>\n *\n * @internal\n */\nfinal class AccessTokenFactory extends Abst", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AccessTokenFactory.php", "language": "php", "file_size": 6020, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\ninterface AuthenticatorFacto", "suffix": "rewall configuration.\n */\n public function getKey(): string;\n\n public function addConfiguration(NodeDefinition $builder): void;\n\n /**\n * Creates the authenticator service(s) for the provided configuration.\n *\n * @param array<string", "middle": "ryInterface\n{\n /**\n * Defines the priority at which the authenticator is called.\n */\n public function getPriority(): int;\n\n /**\n * Defines the configuration key used to reference the provider\n * in the fi", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php", "language": "php", "file_size": 1278, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * @author Wouter de J", "suffix": " {\n return 'custom_authenticators';\n }\n\n /**\n * @param ArrayNodeDefinition $builder\n */\n public function addConfiguration(NodeDefinition $builder): void\n {\n // get the parent array node builder (\"firewalls\") from inside t", "middle": "ong <wouter@wouterj.nl>\n *\n * @internal\n */\nclass CustomAuthenticatorFactory implements AuthenticatorFactoryInterface\n{\n public function getPriority(): int\n {\n return 0;\n }\n\n public function getKey(): string\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/CustomAuthenticatorFactory.php", "language": "php", "file_size": 1852, "cut_index": 537, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Can be implemented by a security factory to add a listener to the firewall.\n *\n * @author Christian Scheb <me@christianscheb.de>\n */\ninterface FirewallListenerFac", "suffix": "listener services for the provided configuration.\n *\n * @param array<string, mixed> $config\n *\n * @return string[] The listener service IDs to be used by the firewall\n */\n public function createListeners(ContainerBuilder $container, ", "middle": "toryInterface\n{\n /**\n * Creates the firewall ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/FirewallListenerFactoryInterface.php", "language": "php", "file_size": 902, "cut_index": 547, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * FormLoginFactory creates services for form login authentication.\n ", "suffix": "_construct()\n {\n $this->addOption('username_parameter', '_username');\n $this->addOption('password_parameter', '_password');\n $this->addOption('csrf_parameter', '_csrf_token');\n $this->addOption('csrf_token_id', 'authenticate'", "middle": "*\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n *\n * @internal\n */\nclass FormLoginFactory extends AbstractFactory\n{\n public const PRIORITY = -30;\n\n public function _", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/FormLoginFactory.php", "language": "php", "file_size": 2343, "cut_index": 563, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\n\n/**\n * FormLoginLdapFactory creates services for form login ldap authentication.\n *\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n * @", "suffix": "t::addConfiguration($node);\n\n $node\n ->children()\n ->scalarNode('service')->defaultValue('ldap')->end()\n ->scalarNode('dn_string')->defaultValue('{user_identifier}')->end()\n ->scalarNode('query", "middle": "author Charles Sarrazin <charles@sarraz.in>\n *\n * @internal\n */\nclass FormLoginLdapFactory extends FormLoginFactory\n{\n use LdapFactoryTrait;\n\n public function addConfiguration(NodeDefinition $node): void\n {\n paren", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/FormLoginLdapFactory.php", "language": "php", "file_size": 1199, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjec", "suffix": " public const PRIORITY = -50;\n\n public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProviderId): string\n {\n $authenticatorId = 'security.authenticator.http_basic.'.$firewallName;\n ", "middle": "tion\\Reference;\n\n/**\n * HttpBasicFactory creates services for HTTP basic authentication.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @internal\n */\nclass HttpBasicFactory implements AuthenticatorFactoryInterface\n{\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/HttpBasicFactory.php", "language": "php", "file_size": 1735, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Security\\Core\\Exception\\LogicException;", "suffix": "internal\n */\nclass HttpBasicLdapFactory extends HttpBasicFactory\n{\n use LdapFactoryTrait;\n\n public function create(ContainerBuilder $container, string $id, array $config, string $userProvider, ?string $defaultEntryPoint): array\n {\n $provide", "middle": "\n\n/**\n * HttpBasicFactory creates services for HTTP basic authentication.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Grégoire Pineau <lyrixx@lyrixx.info>\n * @author Charles Sarrazin <charles@sarraz.in>\n *\n * @", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/HttpBasicLdapFactory.php", "language": "php", "file_size": 3415, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * JsonLoginFactory creates services for JSON login authentication.\n ", "suffix": "', 'username');\n $this->addOption('password_path', 'password');\n $this->defaultFailureHandlerOptions = [];\n $this->defaultSuccessHandlerOptions = [];\n }\n\n public function getPriority(): int\n {\n return self::PRIORITY;\n ", "middle": "*\n * @author Kévin Dunglas <dunglas@gmail.com>\n *\n * @internal\n */\nclass JsonLoginFactory extends AbstractFactory\n{\n public const PRIORITY = -40;\n\n public function __construct()\n {\n $this->addOption('username_path", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/JsonLoginFactory.php", "language": "php", "file_size": 2035, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\n\n/**\n * JsonLoginLdapFactory creates services for json login ldap authentication.\n *\n * @internal\n */\nclass JsonLoginLdapFactory exten", "suffix": "('service')->defaultValue('ldap')->end()\n ->scalarNode('dn_string')->defaultValue('{user_identifier}')->end()\n ->scalarNode('query_string')->end()\n ->scalarNode('search_dn')->defaultValue('')->end()\n ", "middle": "ds JsonLoginFactory\n{\n use LdapFactoryTrait;\n\n public function addConfiguration(NodeDefinition $node): void\n {\n parent::addConfiguration($node);\n\n $node\n ->children()\n ->scalarNode", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/JsonLoginLdapFactory.php", "language": "php", "file_size": 1099, "cut_index": 515, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Security;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Security\\Http\\FirewallMapInterface;\n\n/**\n * This is a lazy-loading firewall map implementation.\n *\n * Listeners will only be initialized if we really need them.\n *\n * @", "suffix": "}\n\n public function getListeners(Request $request): array\n {\n $context = $this->getFirewallContext($request);\n\n if (null === $context) {\n return [[], null, null];\n }\n\n return [$context->getListeners(), $context-", "middle": "author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass FirewallMap implements FirewallMapInterface\n{\n public function __construct(\n private ContainerInterface $container,\n private iterable $map,\n ) {\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.php", "language": "php", "file_size": 2114, "cut_index": 563, "middle_length": 229}} {"prefix": "oseSecurityLevel;\nuse Symfony\\Component\\Security\\Http\\EntryPoint\\AuthenticationEntryPointInterface;\nuse Symfony\\Component\\Security\\Http\\Session\\SessionAuthenticationStrategy;\n\n/**\n * SecurityExtension configuration structure.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass MainConfiguration implements ConfigurationInterface\n{\n /** @internal */\n public const STRATEGY_AFFIRMATIVE = 'affirmative';\n /** @internal */\n public const STRATEGY_CONSENSUS = 'consensus';\n /** @internal", "suffix": "struct(\n private array $factories,\n private array $userProviderFactories,\n ) {\n }\n\n /**\n * Generates the configuration tree builder.\n */\n public function getConfigTreeBuilder(): TreeBuilder\n {\n $tb = new TreeBuil", "middle": " */\n public const STRATEGY_UNANIMOUS = 'unanimous';\n /** @internal */\n public const STRATEGY_PRIORITY = 'priority';\n\n /**\n * @param array<AuthenticatorFactoryInterface> $factories\n */\n public function __con", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php", "language": "php", "file_size": 20602, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * Registers the expres", "suffix": " if ($container->has('security.expression_language')) {\n $definition = $container->findDefinition('security.expression_language');\n foreach ($container->findTaggedServiceIds('security.expression_language_provider', true) as $id =>", "middle": "sion language providers.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass AddExpressionLanguageProvidersPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php", "language": "php", "file_size": 1393, "cut_index": 524, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Uses the session domain to restrict allowed redirection targets.\n *\n * @author Nicolas", "suffix": "ns') || !$container->has('security.http_utils')) {\n return;\n }\n\n $sessionOptions = $container->getParameter('session.storage.options');\n $domainRegexp = empty($sessionOptions['cookie_domain']) ? '%%s' : \\sprintf('(?:%%%%s|(?", "middle": " Grekas <p@tchwork.com>\n */\nclass AddSessionDomainConstraintPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasParameter('session.storage.optio", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSessionDomainConstraintPass.php", "language": "php", "file_size": 1651, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse S", "suffix": "function process(ContainerBuilder $container): void\n {\n if (!$container->has('event_dispatcher') || !$container->hasParameter('security.firewalls')) {\n return;\n }\n\n if (!$container->getParameter('kernel.debug') || !$conta", "middle": "ymfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher;\n\n/**\n * @author Mathieu Lechat <mathieu.lechat@les-tilleuls.coop>\n */\nclass MakeFirewallsEventDispatcherTraceablePass implements CompilerPassInterface\n{\n public ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php", "language": "php", "file_size": 2804, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Security\\Csrf\\TokenStorage\\Clearab", "suffix": "er\\IsCsrfTokenValidAttributeListener;\n\n/**\n * @author Christian Flothmann <christian.flothmann@sensiolabs.de>\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @internal\n */\nclass RegisterCsrfFeaturesPass implements CompilerPassInterface\n{\n public fun", "middle": "leTokenStorageInterface;\nuse Symfony\\Component\\Security\\Http\\EventListener\\CsrfProtectionListener;\nuse Symfony\\Component\\Security\\Http\\EventListener\\CsrfTokenClearingLogoutListener;\nuse Symfony\\Component\\Security\\Http\\EventListen", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterCsrfFeaturesPass.php", "language": "php", "file_size": 3107, "cut_index": 614, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Sy", "suffix": "\nclass RegisterLdapLocatorPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n $definition = $container->setDefinition('security.ldap_locator', new Definition(ServiceLocator::class));\n\n ", "middle": "mfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ServiceLocator;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @internal\n */", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterLdapLocatorPass.php", "language": "php", "file_size": 1361, "cut_index": 524, "middle_length": 229}} {"prefix": "amespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Fixtures\\Authenticator;\n\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory\\AuthenticatorFactoryInterface;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass CustomAuthenticator implements AuthenticatorFactoryInterface\n{\n public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProvider", "suffix": "ator.custom.'.$firewallName;\n }\n\n public function getKey(): string\n {\n return 'custom';\n }\n\n public function addConfiguration(NodeDefinition $builder): void\n {\n }\n\n public function getPriority(): int\n {\n return 0;\n ", "middle": "Id): string\n {\n return 'security.authentic", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/Authenticator/CustomAuthenticator.php", "language": "php", "file_size": 835, "cut_index": 520, "middle_length": 52}} {"prefix": "\\AddSecurityVotersPass;\nuse Symfony\\Component\\DependencyInjection\\Attribute\\AsTaggedItem;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager;\nuse Symfony\\Component\\Security\\Core\\Autho", "suffix": "estNoVoters()\n {\n $container = new ContainerBuilder();\n $container\n ->register('security.access.decision_manager', AccessDecisionManager::class)\n ->addArgument([])\n ;\n\n $compilerPass = new AddSecurityVot", "middle": "rization\\Voter\\Vote;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Voter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\nclass AddSecurityVotersPassTest extends TestCase\n{\n public function t", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php", "language": "php", "file_size": 9460, "cut_index": 921, "middle_length": 229}} {"prefix": "workBundle\\DependencyInjection\\FrameworkExtension;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\AddSessionDomainConstraintPass;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\SecurityExtension;\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Kernel\\ServicesBundle;\nuse Symfony\\", "suffix": "_secure' => true, 'cookie_samesite' => 'lax']);\n\n $utils = $container->get('security.http_utils');\n $request = Request::create('/', 'get');\n\n $this->assertTrue($utils->createRedirectResponse($request, 'https://symfony.com/blog')->isRed", "middle": "Component\\HttpFoundation\\Request;\n\nclass AddSessionDomainConstraintPassTest extends TestCase\n{\n public function testSessionCookie()\n {\n $container = $this->createContainer(['cookie_domain' => '.symfony.com.', 'cookie", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSessionDomainConstraintPassTest.php", "language": "php", "file_size": 9801, "cut_index": 921, "middle_length": 229}} {"prefix": "dle\\SecurityBundle\\DependencyInjection\\SecurityExtension;\nuse Symfony\\Bundle\\SecurityBundle\\SecurityBundle;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\EventDispatcher\\DependencyInjection\\RegisterListenersPass;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Security\\Core\\AuthenticationEvents;\nuse Symfony\\Component\\S", "suffix": "eractiveLoginEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginFailureEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\nuse Symfony\\Component\\Security\\Http\\SecurityEvents;\n\nclass ", "middle": "ecurity\\Core\\Event\\AuthenticationSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\AuthenticationTokenCreatedEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\Int", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/RegisterGlobalSecurityEventListenersPassTest.php", "language": "php", "file_size": 9837, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\SortFirewallListenersPass;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext;\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Contai", "suffix": "rface;\n\nclass SortFirewallListenersPassTest extends TestCase\n{\n public function testSortFirewallListeners()\n {\n $container = new ContainerBuilder();\n $container->setParameter('security.firewalls', ['main']);\n\n $container->registe", "middle": "nerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInte", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/SortFirewallListenersPassTest.php", "language": "php", "file_size": 3342, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Security\\Factory;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory\\AbstractFactory;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass AbstractFactoryTest extends TestCase\n{\n private ContainerBuilder $container;\n\n protected funct", "suffix": "s = [\n 'remember_me' => true,\n 'login_path' => '/bar',\n ];\n\n if ($serviceId) {\n $options['failure_handler'] = $serviceId;\n $this->container->register($serviceId, \\stdClass::class);\n }\n\n ", "middle": "ion setUp(): void\n {\n $this->container = new ContainerBuilder();\n }\n\n #[DataProvider('getFailureHandlers')]\n public function testDefaultFailureHandler($serviceId, $defaultHandlerInjection)\n {\n $option", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php", "language": "php", "file_size": 5322, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Debug;\n\nuse Symfony\\Bundle\\SecurityBundle\\EventListener\\FirewallListener;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\LazyFirewallContext;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\TraceableAuthenticatorManager", "suffix": "ds FirewallListener implements ResetInterface\n{\n private array $wrappedListeners = [];\n private ?TraceableAuthenticatorManagerListener $authenticatorManagerListener = null;\n\n public function getWrappedListeners(): array\n {\n return array_", "middle": "Listener;\nuse Symfony\\Contracts\\Service\\ResetInterface;\n\n/**\n * Firewall collecting called security listeners and authenticators.\n *\n * @author Robin Chalas <robin.chalas@gmail.com>\n */\nfinal class TraceableFirewallListener exten", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php", "language": "php", "file_size": 3428, "cut_index": 614, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Security;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\n\n/**\n * Provides basic functionality for services mapped by the firewall name\n * in a container locator.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n *", "suffix": "eIdentifier = str_replace('FirewallAware', '', static::class);\n if (null === $request = $this->requestStack->getCurrentRequest()) {\n throw new \\LogicException('Cannot determine the correct '.$serviceIdentifier.' to use: there is no active", "middle": " @internal\n */\ntrait FirewallAwareTrait\n{\n private ContainerInterface $locator;\n private RequestStack $requestStack;\n private FirewallMap $firewallMap;\n\n private function getForFirewall(): object\n {\n $servic", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Security/FirewallAwareTrait.php", "language": "php", "file_size": 1884, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Security;\n\nuse Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInterface;\nuse Symfony\\Component\\Security\\Http\\Firewall\\LogoutListener;\n\n/**\n * This is a wrapper around the actual firewal", "suffix": ", FirewallListenerInterface> $listeners\n */\n public function __construct(\n private iterable $listeners,\n private ?ExceptionListener $exceptionListener = null,\n private ?LogoutListener $logoutListener = null,\n private ?Fir", "middle": "l configuration which allows us\n * to lazy load the context for one specific firewall only when we need it.\n *\n * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n */\nclass FirewallContext\n{\n /**\n * @param iterable<mixed", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php", "language": "php", "file_size": 1548, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Security;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Http\\Event\\LazyResponseEvent;\nuse Symfony\\Component\\Security\\Http", "suffix": "d by the access listener.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass LazyFirewallContext extends FirewallContext implements FirewallListenerInterface\n{\n public function __construct(\n iterable $listeners,\n ?ExceptionListener $ex", "middle": "\\Firewall\\ExceptionListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInterface;\nuse Symfony\\Component\\Security\\Http\\Firewall\\LogoutListener;\n\n/**\n * Lazily calls authentication listeners when actually require", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Security/LazyFirewallContext.php", "language": "php", "file_size": 2464, "cut_index": 563, "middle_length": 229}} {"prefix": "\\DependencyInjection\\Extension\\PrependExtensionInterface;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\nuse Symfony\\Component\\Form\\Extension\\PasswordHasher\\PasswordHasherExtension;\nuse Symfony\\Component\\HttpFoundation\\ChainRequestMatcher;\nuse Symfony\\Component\\HttpFoundat", "suffix": "estMatcher\\MethodRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\PathRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\PortRequestMatcher;\nuse Symfony\\Component\\HttpKernel\\KernelEvents;\nuse Symfony\\Component\\PasswordHa", "middle": "ion\\RequestMatcher\\AttributesRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\HostRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\RequestMatcher\\IpsRequestMatcher;\nuse Symfony\\Component\\HttpFoundation\\Requ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php", "language": "php", "file_size": 52029, "cut_index": 2151, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Dependenc", "suffix": "blic function process(ContainerBuilder $container): void\n {\n if (!$container->hasParameter('security.firewalls')) {\n return;\n }\n\n $firewalls = $container->getParameter('security.firewalls');\n foreach ($firewalls as", "middle": "yInjection\\Reference;\nuse Symfony\\Component\\Security\\Http\\EntryPoint\\AuthenticationEntryPointInterface;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n */\nclass RegisterEntryPointPass implements CompilerPassInterface\n{\n pu", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php", "language": "php", "file_size": 3980, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\AddExpressionLanguageProvidersPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse", "suffix": "->addCompilerPass(new AddExpressionLanguageProvidersPass());\n\n $definition = new Definition(\\stdClass::class);\n $definition->addTag('security.expression_language_provider');\n $container->setDefinition('some_security_provider', $definit", "middle": " Symfony\\Component\\DependencyInjection\\Reference;\n\nclass AddExpressionLanguageProvidersPassTest extends TestCase\n{\n public function testProcessForSecurity()\n {\n $container = new ContainerBuilder();\n $container", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php", "language": "php", "file_size": 2413, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\RegisterEntryPointPass;\nuse Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig;\nuse Symfony\\Component\\DependencyInjection\\Argument\\AbstractArgument;\nuse Symfony\\Component\\DependencyInjection\\ChildDefin", "suffix": "ent\\Security\\Core\\Authentication\\Token\\TokenInterface;\nuse Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException;\nuse Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException;\nuse Symfony\\Component\\Security\\Http\\Authentication\\Authenti", "middle": "ition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Compon", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/RegisterEntryPointsPassTest.php", "language": "php", "file_size": 3855, "cut_index": 614, "middle_length": 229}} {"prefix": "\\OidcUserInfoTokenHandlerFactory;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\AccessToken\\ServiceTokenHandlerFactory;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory\\AccessTokenFactory;\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Com", "suffix": "dc\\OidcTokenHandler;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nclass AccessTokenFactoryTest extends TestCase\n{\n public function testBasicServiceConfiguration()\n {\n $container = new Conta", "middle": "ponent\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oidc\\OidcTokenGenerator;\nuse Symfony\\Component\\Security\\Http\\AccessToken\\Oi", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AccessTokenFactoryTest.php", "language": "php", "file_size": 30519, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Security\\Factory;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory\\LoginLinkFactory;\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\De", "suffix": "te' => 'app_check_login_link',\n 'lifetime' => 500,\n 'signature_properties' => ['email', 'password'],\n 'success_handler' => 'success_handler_service_id',\n 'failure_handler' => 'failure_handler_service_id',\n ", "middle": "pendencyInjection\\ContainerBuilder;\n\nclass LoginLinkFactoryTest extends TestCase\n{\n public function testBasicServiceConfiguration()\n {\n $container = new ContainerBuilder();\n\n $config = [\n 'check_rou", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/LoginLinkFactoryTest.php", "language": "php", "file_size": 1805, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Security;\n\n/**\n * @author Robin Chalas <robin.chalas@gmail.com>\n */\nfinal class FirewallConfig\n{\n public function __construct(\n private readonly string $name,\n private readonly string $userChecker,\n private readonly ?string $requestMatcher = null,\n priva", "suffix": "tryPoint = null,\n private readonly ?string $accessDeniedHandler = null,\n private readonly ?string $accessDeniedUrl = null,\n private readonly array $authenticators = [],\n private readonly ?array $switchUser = null,\n privat", "middle": "te readonly bool $securityEnabled = true,\n private readonly bool $stateless = false,\n private readonly ?string $provider = null,\n private readonly ?string $context = null,\n private readonly ?string $en", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Security/FirewallConfig.php", "language": "php", "file_size": 2586, "cut_index": 563, "middle_length": 229}} {"prefix": " file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Cleans up the remember me verifier cache if cache is missing.\n *\n * @author Jo", "suffix": "emberMeVerifierPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('cache.system')) {\n $container->removeDefinition('cache.security_token_verifier');", "middle": "rdi Boggiano <j.boggiano@seld.be>\n */\nclass CleanRem", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/CleanRememberMeVerifierPass.php", "language": "php", "file_size": 856, "cut_index": 529, "middle_length": 52}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Security\\Core\\AuthenticationEvents;\nuse Symfony\\Component\\Security\\Core\\Event\\AuthenticationSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\A", "suffix": "ny\\Component\\Security\\Http\\Event\\LoginSuccessEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\LogoutEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\TokenDeauthenticatedEvent;\nuse Symfony\\Component\\Security\\Http\\SecurityEvents;\n\n/**\n * Makes sure all event", "middle": "uthenticationTokenCreatedEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\CheckPassportEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\InteractiveLoginEvent;\nuse Symfony\\Component\\Security\\Http\\Event\\LoginFailureEvent;\nuse Symfo", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterGlobalSecurityEventListenersPass.php", "language": "php", "file_size": 3136, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler\\RegisterTokenUsageTrackingPass;\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nu", "suffix": "uthentication\\Token\\Storage\\UsageTrackingTokenStorage;\nuse Symfony\\Component\\Security\\Http\\Firewall\\ContextListener;\n\nclass RegisterTokenUsageTrackingPassTest extends TestCase\n{\n public function testTokenStorageIsUntrackedIfSessionIsMissing()\n {\n ", "middle": "se Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpFoundation\\Session\\SessionFactory;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\nuse Symfony\\Component\\Security\\Core\\A", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/RegisterTokenUsageTrackingPassTest.php", "language": "php", "file_size": 4091, "cut_index": 614, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Debug;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\RequestEvent;\nuse Symfony\\Component\\Security\\Core\\Exception\\LazyResponseException;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\Debug\\Tracea", "suffix": "ps a lazy security listener.\n *\n * @author Robin Chalas <robin.chalas@gmail.com>\n *\n * @internal\n */\nfinal class WrappedLazyListener extends AbstractListener\n{\n private ?Response $response = null;\n private FirewallListenerInterface $listener;\n pri", "middle": "bleAuthenticatorManagerListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\AbstractListener;\nuse Symfony\\Component\\Security\\Http\\Firewall\\FirewallListenerInterface;\nuse Symfony\\Component\\VarDumper\\Caster\\ClassStub;\n\n/**\n * Wra", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Debug/WrappedLazyListener.php", "language": "php", "file_size": 2346, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\SecurityExtension;\nuse Symfony\\Bundle\\SecurityBundle\\SecurityBundle;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\DecoratorServicePass;\nuse Symfony\\Componen", "suffix": "se Symfony\\Component\\Stopwatch\\Stopwatch;\n\nclass MakeFirewallsEventDispatcherTraceablePassTest extends TestCase\n{\n private ContainerBuilder $container;\n\n protected function setUp(): void\n {\n $this->container = new ContainerBuilder();\n ", "middle": "t\\DependencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nu", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePassTest.php", "language": "php", "file_size": 2764, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Argument\\TaggedIteratorArgument;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInje", "suffix": "ymfony\\Component\\Security\\Core\\Authorization\\Voter\\TraceableVoter;\nuse Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface;\n\n/**\n * Adds all configured security voters to the access decision manager.\n *\n * @author Johannes M. Schmitt <schmit", "middle": "ction\\Compiler\\PriorityTaggedServiceTrait;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse S", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php", "language": "php", "file_size": 2757, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\Security;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Security\\Core\\User\\UserInterface;\nuse Symfon", "suffix": " the current firewall.\n *\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @final\n */\nclass UserAuthenticator implements UserAuthenticatorInterface\n{\n use FirewallAwareTrait;\n\n public function __construct(FirewallMap $firewallMap, ContainerInterfa", "middle": "y\\Component\\Security\\Http\\Authentication\\UserAuthenticatorInterface;\nuse Symfony\\Component\\Security\\Http\\Authenticator\\AuthenticatorInterface;\n\n/**\n * A decorator that delegates all method calls to the authenticator\n * manager of", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/Security/UserAuthenticator.php", "language": "php", "file_size": 1518, "cut_index": 537, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Stateless authenticators are authenticators that can work without a user provider.\n *\n * This situation can only occur in state", "suffix": "g <wouter@wouterj.nl>\n */\ninterface StatelessAuthenticatorFactoryInterface extends AuthenticatorFactoryInterface\n{\n public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, ?string $userProviderId): string|ar", "middle": "less firewalls, as statefull firewalls\n * need the user provider to refresh the user in each subsequent request. A\n * stateless authenticator can be used on both stateless and statefull authenticators.\n *\n * @author Wouter de Jon", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/StatelessAuthenticatorFactoryInterface.php", "language": "php", "file_size": 1004, "cut_index": 512, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\TwigBundle\\Tests\\TestCase;\nuse Symfony\\Bundle\\TwigBundle\\TwigBundle;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer;\nu", "suffix": "$kernel->boot();\n\n $this->assertTrue($kernel->getContainer()->hasParameter('twig.default_path'));\n $this->assertNotEmpty($kernel->getContainer()->getParameter('twig.default_path'));\n }\n\n protected function setUp(): void\n {\n $t", "middle": "se Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\nclass EmptyAppTest extends TestCase\n{\n public function testBootEmptyApp()\n {\n $kernel = new EmptyAppKernel('test', true);\n ", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/Functional/EmptyAppTest.php", "language": "php", "file_size": 2162, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\TwigBundle\\Tests\\TestCase;\nuse Symfony\\Bundle\\TwigBundle\\TwigBundle;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Compo", "suffix": "ot();\n\n $container = $kernel->getContainer();\n $content = $container->get('twig.alias')->render('index.html.twig');\n $this->assertStringContainsString('{ a: b }', $content);\n }\n\n protected function setUp(): void\n {\n $th", "middle": "nent\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\nclass NoTemplatingEntryTest extends TestCase\n{\n public function test()\n {\n $kernel = new NoTemplatingEntryKernel('dev', true);\n $kernel->bo", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php", "language": "php", "file_size": 2406, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Configuration;\nuse Symfony\\Component\\Config\\Definition\\Processor;\n\nclass ConfigurationTest extends TestCase\n{\n public function testDoNoDuplicateDefaul", "suffix": "ut]);\n\n $this->assertEquals(['form_div_layout.html.twig'], $config['form_themes']);\n }\n\n public function testGlobalsAreNotNormalized()\n {\n $input = [\n 'globals' => ['some-global' => true],\n ];\n\n $processor = ", "middle": "tFormResources()\n {\n $input = [\n 'form_themes' => ['form_div_layout.html.twig'],\n ];\n\n $processor = new Processor();\n $config = $processor->processConfiguration(new Configuration(), [$inp", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php", "language": "php", "file_size": 1918, "cut_index": 537, "middle_length": 229}} {"prefix": "ependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader;\nuse Symfony\\Component\\DependencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer;\nuse Symfony\\Component\\Form\\FormRenderer;\nuse Symfony\\Component\\Mailer\\Mailer;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\Validator\\Val", "suffix": " $container->registerExtension(new TwigExtension());\n $container->loadFromExtension('twig');\n $this->compileContainer($container);\n\n $this->assertEquals(Environment::class, $container->getDefinition('twig')->getClass(), '->load()", "middle": "idator\\ValidatorInterface;\nuse Twig\\Environment;\nuse Twig\\Runtime\\EscaperRuntime;\n\nclass TwigExtensionTest extends TestCase\n{\n public function testLoadEmptyConfiguration()\n {\n $container = $this->createContainer();\n ", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php", "language": "php", "file_size": 18050, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\AppVariable;\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler\\ExtensionPass;\nuse Symfony\\Bundle\\TwigBundle\\TemplateIterator;\nuse Symfony\\Component\\DependencyInj", "suffix": ")\n {\n $container = new ContainerBuilder();\n $container->setParameter('kernel.debug', false);\n\n $container->register('twig.app_variable', AppVariable::class);\n $container->register('twig.extension.yaml');\n $container->r", "middle": "ection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Twig\\Loader\\FilesystemLoader;\n\nclass ExtensionPassTest extends TestCase\n{\n public function testProcessDoesNotDropExistingFileLoaderMethodCalls(", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/ExtensionPassTest.php", "language": "php", "file_size": 1677, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler\\SafeClassPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\nuse Twig\\Runtime\\EscaperRuntime;\n\nclass SafeClassPassTest extends TestCase\n{\n private ContainerBuilder $container;\n private SafeClassPass $pass;\n\n prote", "suffix": "function testSafeClassWithStringStrategy()\n {\n $this->container->register('my_class')->setClass(\\stdClass::class)\n ->addResourceTag('twig.safe_class', ['strategy' => 'html']);\n\n $this->pass->process($this->container);\n\n $", "middle": "cted function setUp(): void\n {\n $this->container = new ContainerBuilder();\n $this->container->register('twig.runtime.escaper', EscaperRuntime::class);\n $this->pass = new SafeClassPass();\n }\n\n public ", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/SafeClassPassTest.php", "language": "php", "file_size": 6133, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler\\TwigEnvironmentPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Dependenc", "suffix": "ion('twig');\n $twigDefinition->setPublic(true);\n $builder = new ContainerBuilder();\n $builder->setDefinition('twig', $twigDefinition);\n $pass = new TwigEnvironmentPass();\n\n $definition = new Definition('test_extension_1')", "middle": "yInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\nclass TwigEnvironmentPassTest extends TestCase\n{\n public function testPassWithTwoExtensionsWithPriority()\n {\n $twigDefinition = new Definit", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigEnvironmentPassTest.php", "language": "php", "file_size": 2842, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler\\TwigLoaderPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\n\nclass TwigLoa", "suffix": "r();\n $this->builder->register('twig');\n $this->chainLoader = new Definition('loader');\n $this->pass = new TwigLoaderPass();\n }\n\n public function testMapperPassWithOneTaggedLoader()\n {\n $this->builder->register('test_lo", "middle": "derPassTest extends TestCase\n{\n private ContainerBuilder $builder;\n private Definition $chainLoader;\n private TwigLoaderPass $pass;\n\n protected function setUp(): void\n {\n $this->builder = new ContainerBuilde", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php", "language": "php", "file_size": 3161, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Mime\\HtmlToTextConverter\\HtmlToTextConverterInterface;\n\n/**\n * TwigExtension configuration structure.\n *\n * @author Jeremy Mikola <jmikola@gmail.com>\n */\nclass Configuration implements ConfigurationInterf", "suffix": "\n\n $rootNode\n ->docUrl('https://symfony.com/doc/{version:major}.{version:minor}/reference/configuration/twig.html', 'symfony/twig-bundle')\n ;\n\n $this->addFormThemesSection($rootNode);\n $this->addGlobalsSection($rootNo", "middle": "ace\n{\n /**\n * Generates the configuration tree builder.\n */\n public function getConfigTreeBuilder(): TreeBuilder\n {\n $treeBuilder = new TreeBuilder('twig');\n $rootNode = $treeBuilder->getRootNode();", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php", "language": "php", "file_size": 8542, "cut_index": 716, "middle_length": 229}} {"prefix": "per\\AssetMapper;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Config\\Resource\\FileExistenceResource;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\Mailer\\Mailer;\nuse Symfony\\Component\\Translation\\Local", "suffix": "nterface;\nuse Twig\\Extension\\RuntimeExtensionInterface;\nuse Twig\\Loader\\LoaderInterface;\n\n/**\n * TwigExtension.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Jeremy Mikola <jmikola@gmail.com>\n */\nclass TwigExtension extends Extension\n{\n ", "middle": "eSwitcher;\nuse Symfony\\Component\\Translation\\Translator;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Twig\\Attribute\\AsTwigFilter;\nuse Twig\\Attribute\\AsTwigFunction;\nuse Twig\\Attribute\\AsTwigTest;\nuse Twig\\Extension\\ExtensionI", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php", "language": "php", "file_size": 10579, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Configurator;\n\nuse Symfony\\Bridge\\Twig\\UndefinedCallableHandler;\nuse Twig\\Environment;\nuse Twig\\Extension\\CoreExtension;\n\n/**\n * Twig environment configurator.\n *\n * @author Christian Flothmann <christian.flothmann@xabbuh.de>\n */\nclass Environ", "suffix": "t,\n private string $thousandsSeparator,\n ) {\n }\n\n public function configure(Environment $environment): void\n {\n $environment->getExtension(CoreExtension::class)->setDateFormat($this->dateFormat, $this->intervalFormat);\n\n if", "middle": "mentConfigurator\n{\n public function __construct(\n private string $dateFormat,\n private string $intervalFormat,\n private ?string $timezone,\n private int $decimals,\n private string $decimalPoin", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php", "language": "php", "file_size": 1638, "cut_index": 537, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicExceptio", "suffix": "ister an instance of AttributeExtension for each service using the\n * PHP attributes to declare Twig callables.\n *\n * @author Jérôme Tamarelle <jerome@tamarelle.net>\n *\n * @internal\n */\nfinal class AttributeExtensionPass implements CompilerPassInterface\n{\n", "middle": "n;\nuse Twig\\Attribute\\AsTwigFilter;\nuse Twig\\Attribute\\AsTwigFunction;\nuse Twig\\Attribute\\AsTwigTest;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\Extension\\AttributeExtension;\nuse Twig\\Extension\\ExtensionInterface;\n\n/**\n * Reg", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/AttributeExtensionPass.php", "language": "php", "file_size": 2570, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Component\\Asset\\Packages;\nuse Symfony\\Component\\DependencyInjection\\Alias;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Emoji\\EmojiTransliterator;\nuse Symfony\\Component\\ExpressionLanguage\\Expression;\nuse Symfony\\Component\\Routing\\Generator", "suffix": "ionPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!class_exists(Packages::class)) {\n $container->removeDefinition('twig.extension.assets');\n }\n\n if (!class_e", "middle": "\\UrlGeneratorInterface;\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\nuse Symfony\\Component\\Workflow\\Workflow;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>\n */\nclass Extens", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php", "language": "php", "file_size": 6001, "cut_index": 716, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony", "suffix": "container->hasDefinition('twig.runtime_loader')) {\n return;\n }\n\n $definition = $container->getDefinition('twig.runtime_loader');\n $mapping = [];\n foreach ($container->findTaggedServiceIds('twig.runtime', true) as $id ", "middle": "\\Component\\DependencyInjection\\Reference;\n\n/**\n * Registers Twig runtime services.\n */\nclass RuntimeLoaderPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/RuntimeLoaderPass.php", "language": "php", "file_size": 1254, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException;\n\n/**\n * Registers safe classes for Twig's esca", "suffix": "ntainer): void\n {\n if (!$container->hasDefinition('twig.runtime.escaper')) {\n return;\n }\n\n $definition = $container->getDefinition('twig.runtime.escaper');\n\n foreach ($container->findTaggedResourceIds('twig.safe_cl", "middle": "per.\n */\nfinal class SafeClassPass implements CompilerPassInterface\n{\n private const BUILTIN_STRATEGIES = ['html', 'js', 'css', 'url', 'html_attr', 'html_attr_relaxed', 'all'];\n\n public function process(ContainerBuilder $co", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/SafeClassPass.php", "language": "php", "file_size": 2609, "cut_index": 563, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\PriorityTaggedServiceTrait;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Adds tagged twig.extension services t", "suffix": "oid\n {\n if (false === $container->hasDefinition('twig')) {\n return;\n }\n\n $definition = $container->getDefinition('twig');\n\n // Extensions must always be registered before everything else.\n // For instance, g", "middle": "o twig service.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass TwigEnvironmentPass implements CompilerPassInterface\n{\n use PriorityTaggedServiceTrait;\n\n public function process(ContainerBuilder $container): v", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php", "language": "php", "file_size": 2117, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\Dependen", "suffix": "uilder $container): void\n {\n if (false === $container->hasDefinition('twig')) {\n return;\n }\n\n $prioritizedLoaders = [];\n $found = 0;\n\n foreach ($container->findTaggedServiceIds('twig.loader', true) as $id =>", "middle": "cyInjection\\Reference;\n\n/**\n * Adds services tagged twig.loader as Twig loaders.\n *\n * @author Daniel Leech <daniel@dantleech.com>\n */\nclass TwigLoaderPass implements CompilerPassInterface\n{\n public function process(ContainerB", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php", "language": "php", "file_size": 1863, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Csp;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * Handles Content-Security-Policy HTTP header for the WebProfiler Bundle.\n *\n * @author Romain Neutron <imprec@gmail.com>\n *\n * @internal\n */\nclass ContentSecurityPolicyHandler\n{\n private bool $cspDisabled = false;\n\n public function __construct(\n private NonceGenerator $nonceGenerator,\n ) {\n }\n\n /**\n * ", "suffix": "e the same nonce as origin\n * - The response - A call to getNonces() has already been done previously. Same nonce are returned\n * - They are otherwise randomly generated\n */\n public function getNonces(Request $request, Response $response)", "middle": "Returns an array of nonces to be used in Twig templates and Content-Security-Policy headers.\n *\n * Nonce can be provided by;\n * - The request - In case HTML content is fetched via AJAX and inserted in DOM, it must us", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Csp/ContentSecurityPolicyHandler.php", "language": "php", "file_size": 8957, "cut_index": 716, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\WebProfilerBundle\\Controller\\ExceptionPanelController;\nuse Symfony\\Bundle\\WebProfilerBundle\\Controller\\ProfilerController;\nuse Symfony\\Bundle\\WebProfilerBundle\\Controller\\RouterController;\nuse Symfony\\Bundle\\WebProfilerBundle\\Csp\\ContentSecurityPolicyHandler;\nuse Symfony\\Bundle\\WebProfi", "suffix": "mfony\\Component\\VarDumper\\Dumper\\HtmlDumper;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n\n ->set('web_profiler.controller.profiler', ProfilerController::class)\n ->public()\n ->args([\n ", "middle": "lerBundle\\Csp\\NonceGenerator;\nuse Symfony\\Bundle\\WebProfilerBundle\\Profiler\\CodeExtension;\nuse Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Sy", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Resources/config/profiler.php", "language": "php", "file_size": 3461, "cut_index": 614, "middle_length": 229}} {"prefix": "\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bundle\\WebProfilerBundle\\EventListener\\WebDebugToolbarListener;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n\n ->set('web_profiler.debug_toolbar', W", "suffix": " service('router')->ignoreOnInvalid(),\n abstract_arg('paths that should be excluded from the AJAX requests shown in the toolbar'),\n service('web_profiler.csp.handler'),\n service('data_collector.dump')->ignoreO", "middle": "ebDebugToolbarListener::class)\n ->args([\n service('twig'),\n param('web_profiler.debug_toolbar.intercept_redirects'),\n param('web_profiler.debug_toolbar.mode'),\n ", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Resources/config/toolbar.php", "language": "php", "file_size": 1168, "cut_index": 518, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;\n\nreturn static function (RoutingConfigurator $routes): void {\n $routes->add('_profiler_home', '/')\n ->controller('web_profiler.controller.profiler::homeAction')\n ;\n $routes->add('_profiler_search', '/search')\n ", "suffix": "profiler_phpinfo', '/phpinfo')\n ->controller('web_profiler.controller.profiler::phpinfoAction')\n ;\n $routes->add('_profiler_xdebug', '/xdebug')\n ->controller('web_profiler.controller.profiler::xdebugAction')\n ;\n $routes->add('_pro", "middle": " ->controller('web_profiler.controller.profiler::searchAction')\n ;\n $routes->add('_profiler_search_bar', '/search_bar')\n ->controller('web_profiler.controller.profiler::searchBarAction')\n ;\n $routes->add('_", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Resources/config/routing/profiler.php", "language": "php", "file_size": 1957, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Controller;\n\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\n\n/**\n * Re", "suffix": " ?Profiler $profiler = null,\n ) {\n }\n\n /**\n * Renders the exception panel stacktrace for the given token.\n */\n public function body(string $token): Response\n {\n if (null === $this->profiler) {\n throw new NotFoundHtt", "middle": "nders the exception panel.\n *\n * @author Yonel Ceruto <yonelceruto@gmail.com>\n *\n * @internal\n */\nclass ExceptionPanelController\n{\n public function __construct(\n private HtmlErrorRenderer $errorRenderer,\n private", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Controller/ExceptionPanelController.php", "language": "php", "file_size": 1558, "cut_index": 537, "middle_length": 229}} {"prefix": "ndle\\WebProfilerBundle\\Profiler\\TemplateManager;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\AutoExpireFlashBag;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DumpDataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\ExceptionDataCollector;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoun", "suffix": "ass ProfilerController\n{\n private TemplateManager $templateManager;\n\n public function __construct(\n private UrlGeneratorInterface $generator,\n private ?Profiler $profiler,\n private Environment $twig,\n private array $templa", "middle": "dHttpException;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Twig\\Environment;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @internal\n */\ncl", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php", "language": "php", "file_size": 15460, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Controller;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Co", "suffix": "ing\\RouterInterface;\nuse Twig\\Environment;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @internal\n */\nclass RouterController\n{\n /**\n * @param ExpressionFunctionProviderInterface[] $expressionLanguageProviders\n */\n public functi", "middle": "mponent\\HttpKernel\\Profiler\\Profiler;\nuse Symfony\\Component\\Routing\\Matcher\\TraceableUrlMatcher;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcherInterface;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Symfony\\Component\\Rout", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php", "language": "php", "file_size": 3363, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Twig;\n\nuse Symfony\\Component\\VarDumper\\Cloner\\Data;\nuse Symfony\\Component\\VarDumper\\Dumper\\HtmlDumper;\nuse Twig\\Environment;\nuse Twig\\Extension\\ProfilerExtension;\nuse Twig\\Profiler\\Profile;\nuse Twig\\Runtime\\EscaperRuntime;\nuse Twig\\TwigFunction;\n\n/**\n * Twig extension for the profiler.\n *\n * @author Fabien Potencier <fabien@symfony", "suffix": "construct(?HtmlDumper $dumper = null)\n {\n $this->dumper = $dumper ?? new HtmlDumper();\n $this->dumper->setOutput($this->output = fopen('php://memory', 'r+'));\n }\n\n public function enter(Profile $profile): void\n {\n ++$this->", "middle": ".com>\n *\n * @internal\n */\nclass WebProfilerExtension extends ProfilerExtension\n{\n private HtmlDumper $dumper;\n\n /**\n * @var resource\n */\n private $output;\n\n private int $stackLevel = 0;\n\n public function __", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Twig/WebProfilerExtension.php", "language": "php", "file_size": 3193, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\EventListener;\n\nuse Symfony\\Bundle\\FullStack;\nuse Symfony\\Bundle\\WebProfilerBundle\\Csp\\ContentSecurityPolicyHandler;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFoundation\\EventStreamResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\ServerEvent;\nuse Symfony\\Component\\HttpFoundation\\Session\\Flash\\Au", "suffix": "nelEvents;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Twig\\Environment;\n\n/**\n * WebDebugToolbarListener injects the Web Debug Toolbar.\n *\n * The onKernelResponse method must be connected to the kernel.response event.\n *\n * The WDT i", "middle": "toExpireFlashBag;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DumpDataCollector;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\Ker", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/EventListener/WebDebugToolbarListener.php", "language": "php", "file_size": 8613, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Tests\\Functional;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;\nuse Symfony\\Bundle\\TwigBundle\\TwigBundle;\nuse Symfony\\Bundle\\WebProfilerBundle\\WebProfilerBundle;\nuse Symfony\\Component\\Config\\", "suffix": "\\Kernel;\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;\n\nclass WebProfilerBundleKernel extends Kernel\n{\n use MicroKernelTrait;\n\n public function __construct()\n {\n parent::__construct('test', false);\n }\n\n public", "middle": "Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DumpDataCollector;\nuse Symfony\\Component\\HttpKernel", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/Functional/WebProfilerBundleKernel.php", "language": "php", "file_size": 2853, "cut_index": 563, "middle_length": 229}} {"prefix": "Csp\\ContentSecurityPolicyHandler;\nuse Symfony\\Bundle\\WebProfilerBundle\\Csp\\NonceGenerator;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass ContentSecurityPolicyHandlerTest extends TestCase\n{\n #[DataProvider('provideRequestAndResponses')]\n public function testGetNonces($nonce, $expectedNonce, Request $request, Response $response)\n {\n $cspHandler = new ContentSecurityPolicyHandler($this->mockNonceGenerator($nonce));\n\n $this->assertSame", "suffix": "e $response, array $expectedCsp)\n {\n $cspHandler = new ContentSecurityPolicyHandler($this->mockNonceGenerator($nonce));\n\n $this->assertSame($expectedNonce, $cspHandler->updateResponseHeaders($request, $response));\n\n $this->assertFal", "middle": "($expectedNonce, $cspHandler->getNonces($request, $response));\n }\n\n #[DataProvider('provideRequestAndResponsesForOnKernelResponse')]\n public function testOnKernelResponse($nonce, $expectedNonce, Request $request, Respons", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/Csp/ContentSecurityPolicyHandlerTest.php", "language": "php", "file_size": 12359, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Tests\\Resources;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\n\nclass IconTest extends TestCase\n{\n #[DataProvider('provideIconFilePaths')]\n public function testIconFileContents($iconFilePath)\n {\n $iconFileP", "suffix": " icon must use \"http://www.w3.org/2000/svg\" as its \"xmlns\" value.', $iconFilePath));\n\n $this->assertMatchesRegularExpression('~<svg .* width=\"\\d+\".+>.*</svg>~s', file_get_contents($iconFilePath), \\sprintf('The SVG file of the \"%s\" icon must include ", "middle": "ath = realpath($iconFilePath);\n $svgFileContents = file_get_contents($iconFilePath);\n\n $this->assertStringContainsString('xmlns=\"http://www.w3.org/2000/svg\"', $svgFileContents, \\sprintf('The SVG metadata of the \"%s\"", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/Resources/IconTest.php", "language": "php", "file_size": 1697, "cut_index": 537, "middle_length": 229}} {"prefix": "n Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Tests\\Resources;\n\nuse PHPUnit\\Framework\\TestCase;\n\n/**\n * Make sure we can minify content in toolbar.\n *\n * @author Tobias Nyholm <tobias.nyholm@gmail.com>\n */\nclass MinifyTest extends TestCase\n{\n public function testNoSingleLineComments()\n {\n $dir = \\dirname(__DIR__, 2).'/Resources/view", "suffix": "twig') as $jsFile) {\n $fileContents = file_get_contents($dir.'/base_js.html.twig');\n $fileContents = str_replace('\\'//\\'', '', $fileContents);\n\n $this->assertEquals(0, substr_count($fileContents, '//'), 'There cannot be any", "middle": "s/Profiler';\n\n foreach (glob($dir.'/*js.html.", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/Resources/MinifyTest.php", "language": "php", "file_size": 989, "cut_index": 582, "middle_length": 52}} {"prefix": " Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DumpDataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\ExceptionDataCollector;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profile;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Twig\\Environment;\nuse Twig", "suffix": "ace::class);\n\n $controller = new ProfilerController($urlGenerator, null, new Environment(new ArrayLoader()), []);\n\n $this->expectException(NotFoundHttpException::class);\n $this->expectExceptionMessage('The profiler must be enabled.');\n", "middle": "\\Loader\\ArrayLoader;\nuse Twig\\Loader\\LoaderInterface;\n\nclass ProfilerControllerTest extends WebTestCase\n{\n public function testHomeActionWithProfilerDisabled()\n {\n $urlGenerator = $this->createStub(UrlGeneratorInterf", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php", "language": "php", "file_size": 20318, "cut_index": 1331, "middle_length": 229}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\KernelBrowser;\nuse Symfony\\Bundle\\FrameworkBundle\\Routing\\Router;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\nuse Symfony\\Bundle\\WebProfilerBundle\\Tests\\Functional\\WebProfilerBundl", "suffix": " $kernel = new WebProfilerBundleKernel();\n $client = new KernelBrowser($kernel);\n $client->disableReboot();\n $client->getKernel()->boot();\n\n /** @var Router $router */\n $router = $client->getContainer()->get('router')", "middle": "eKernel;\nuse Symfony\\Component\\DomCrawler\\Crawler;\nuse Symfony\\Component\\Routing\\Route;\n\nclass RouterControllerTest extends WebTestCase\n{\n public function testFalseNegativeTrace()\n {\n $path = '/foo/bar:123/baz';\n\n ", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/RouterControllerTest.php", "language": "php", "file_size": 1455, "cut_index": 524, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\AccessToken;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfo", "suffix": "\n $container->setDefinition($id, new ChildDefinition('security.access_token_handler.cas'));\n\n $container\n ->register('security.access_token_handler.cas', Cas2Handler::class)\n ->setArguments([\n new Referenc", "middle": "ny\\Component\\Security\\Http\\AccessToken\\Cas\\Cas2Handler;\n\nclass CasTokenHandlerFactory implements TokenHandlerFactoryInterface\n{\n public function create(ContainerBuilder $container, string $id, array|string $config): void\n {", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/CasTokenHandlerFactory.php", "language": "php", "file_size": 2043, "cut_index": 563, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\AccessToken;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Config", "suffix": "ray|string $config): void\n {\n $container->setDefinition($id, new ChildDefinition('security.access_token_handler.oauth2'));\n }\n\n public function getKey(): string\n {\n return 'oauth2';\n }\n\n public function addConfiguration(Node", "middle": "ures a token handler for an OAuth2 Token Introspection endpoint.\n *\n * @internal\n */\nclass OAuth2TokenHandlerFactory implements TokenHandlerFactoryInterface\n{\n public function create(ContainerBuilder $container, string $id, ar", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OAuth2TokenHandlerFactory.php", "language": "php", "file_size": 1086, "cut_index": 515, "middle_length": 229}} {"prefix": "hp\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\AccessToken;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Config", "suffix": " public function create(ContainerBuilder $container, string $id, array|string $config): void\n {\n $container->setDefinition($id, new ChildDefinition($config));\n }\n\n public function getKey(): string\n {\n return 'id';\n }\n\n publ", "middle": "ures a token handler from a service id.\n *\n * @see \\Symfony\\Bundle\\SecurityBundle\\Tests\\DependencyInjection\\Security\\Factory\\AccessTokenFactoryTest\n */\nclass ServiceTokenHandlerFactory implements TokenHandlerFactoryInterface\n{\n ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/ServiceTokenHandlerFactory.php", "language": "php", "file_size": 1119, "cut_index": 515, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\DebugBundle;\n\nuse Symfony\\Bundle\\DebugBundle\\DependencyInjection\\Compiler\\DumpDataCollectorPass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\nuse Symfony\\Component\\VarDumper\\VarDumper;\n\n/**\n * @author Nicolas Gr", "suffix": " is here to lazy load the dump stack. This default\n // configuration is overridden in CLI mode on 'console.command' event.\n // The dump data collector is used by default, so dump output is sent to\n // the WDT. In a CLI cont", "middle": "ekas <p@tchwork.com>\n */\nclass DebugBundle extends Bundle\n{\n public function boot(): void\n {\n if ($this->container->getParameter('kernel.debug')) {\n $container = $this->container;\n\n // This code", "meta": {"filepath": "src/Symfony/Bundle/DebugBundle/DebugBundle.php", "language": "php", "file_size": 2019, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Monolog\\Formatter\\FormatterInterface;\nuse Symfony\\Bridge\\Monolog\\Command\\ServerLogCommand;\nuse Symfony\\Bridge\\Monolog\\Formatter\\ConsoleFormatter;\nuse Symfony\\Bridge\\Twig\\Extension\\DumpExtension;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DumpDataCollector;\nuse Symfony\\Component\\HttpKernel\\EventListener\\DumpListener;\nuse Symfony\\Component\\VarDumper\\Cloner\\VarCloner;\nuse Symfony\\Component\\VarDumper\\", "suffix": "nt\\VarDumper\\Dumper\\ContextProvider\\CliContextProvider;\nuse Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\RequestContextProvider;\nuse Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\SourceContextProvider;\nuse Symfony\\Component\\VarDumper\\Dumper\\Cont", "middle": "Command\\Descriptor\\CliDescriptor;\nuse Symfony\\Component\\VarDumper\\Command\\Descriptor\\HtmlDescriptor;\nuse Symfony\\Component\\VarDumper\\Command\\ServerDumpCommand;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper;\nuse Symfony\\Compone", "meta": {"filepath": "src/Symfony/Bundle/DebugBundle/Resources/config/services.php", "language": "php", "file_size": 5811, "cut_index": 716, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Parameter;\nuse Symfony\\Component\\Depe", "suffix": "miter\\RateLimiterFactoryInterface;\nuse Symfony\\Component\\RateLimiter\\Storage\\CacheStorage;\nuse Symfony\\Component\\Security\\Http\\RateLimiter\\DefaultLoginRateLimiter;\n\n/**\n * @author Wouter de Jong <wouter@wouterj.nl>\n *\n * @internal\n */\nclass LoginThrottling", "middle": "ndencyInjection\\Reference;\nuse Symfony\\Component\\HttpFoundation\\RateLimiter\\RequestRateLimiterInterface;\nuse Symfony\\Component\\Lock\\LockInterface;\nuse Symfony\\Component\\RateLimiter\\RateLimiterFactory;\nuse Symfony\\Component\\RateLi", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginThrottlingFactory.php", "language": "php", "file_size": 5552, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjec", "suffix": " RemoteUserFactory implements AuthenticatorFactoryInterface\n{\n public const PRIORITY = -10;\n\n public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProviderId): string\n {\n $authent", "middle": "tion\\Reference;\n\n/**\n * RemoteUserFactory creates services for REMOTE_USER based authentication.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Maxime Douailin <maxime.douailin@gmail.com>\n *\n * @internal\n */\nclass", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/RemoteUserFactory.php", "language": "php", "file_size": 1856, "cut_index": 537, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\DebugBundle\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\DebugBundle\\DebugBundle;\nuse Symfony\\Bundle\\DebugBundle\\DependencyInjection\\Compiler\\DumpDataCollectorPass;\nuse Symfony\\Bundle\\DebugBundle\\DependencyInjection\\DebugExtension;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Depen", "suffix": "er\\Caster\\ReflectionCaster;\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper;\nuse Symfony\\Component\\VarDumper\\Server\\Connection;\nuse Symfony\\Component\\VarDumper\\Server\\DumpServer;\n\nclass DebugExtensionTest extends TestCase\n{\n public function testLoadWit", "middle": "dencyInjection\\ParameterBag\\ParameterBag;\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DumpDataCollector;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\VarDump", "meta": {"filepath": "src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php", "language": "php", "file_size": 6138, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\DebugBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\n\n/**\n * DebugExtension configuration structure.\n *\n * @author Nicolas Grekas <p@tchwork.com>\n */\nclass Configuration implements Configuration", "suffix": "com/doc/{version:major}.{version:minor}/reference/configuration/debug.html', 'symfony/debug-bundle')\n ->children()\n ->integerNode('max_items')\n ->info('Max number of displayed items past the first level, -1 mean", "middle": "Interface\n{\n public function getConfigTreeBuilder(): TreeBuilder\n {\n $treeBuilder = new TreeBuilder('debug');\n\n $rootNode = $treeBuilder->getRootNode();\n $rootNode\n ->docUrl('https://symfony.", "meta": {"filepath": "src/Symfony/Bundle/DebugBundle/DependencyInjection/Configuration.php", "language": "php", "file_size": 2285, "cut_index": 563, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\DebugBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Bundle\\WebProfilerBundle\\EventListener\\WebDebugToolbarListener;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component", "suffix": "pDataCollectorPass implements CompilerPassInterface\n{\n public function process(ContainerBuilder $container): void\n {\n if (!$container->hasDefinition('data_collector.dump')) {\n return;\n }\n\n $definition = $container->get", "middle": "\\DependencyInjection\\Reference;\n\n/**\n * Registers the file link format for the {@link \\Symfony\\Component\\HttpKernel\\DataCollector\\DumpDataCollector}.\n *\n * @author Christian Flothmann <christian.flothmann@xabbuh.de>\n */\nclass Dum", "meta": {"filepath": "src/Symfony/Bundle/DebugBundle/DependencyInjection/Compiler/DumpDataCollectorPass.php", "language": "php", "file_size": 1580, "cut_index": 537, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle;\n\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler\\AttributeExtensionPass;\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler\\ExtensionPass;\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler\\RuntimeLoaderPass;\nuse Symfony\\Bundle\\TwigBun", "suffix": "ndencyInjection\\Compiler\\PassConfig;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\n/**\n * Bundle.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass TwigBundle extends Bundle\n{\n p", "middle": "dle\\DependencyInjection\\Compiler\\SafeClassPass;\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler\\TwigEnvironmentPass;\nuse Symfony\\Bundle\\TwigBundle\\DependencyInjection\\Compiler\\TwigLoaderPass;\nuse Symfony\\Component\\Depe", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/TwigBundle.php", "language": "php", "file_size": 1716, "cut_index": 537, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bridge\\Twig\\Command\\DebugCommand;\nuse Symfony\\Bundle\\TwigBundle\\Command\\LintCommand;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n ->set('twig.", "suffix": "\n service('debug.file_link_formatter')->nullOnInvalid(),\n ])\n ->tag('console.command')\n\n ->set('twig.command.lint', LintCommand::class)\n ->args([service('twig'), abstract_arg('File name pattern')])\n ", "middle": "command.debug', DebugCommand::class)\n ->args([\n service('twig'),\n param('kernel.project_dir'),\n param('kernel.bundles_metadata'),\n param('twig.default_path'),", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Resources/config/console.php", "language": "php", "file_size": 1041, "cut_index": 513, "middle_length": 229}} {"prefix": "he Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bridge\\Twig\\Mime\\BodyRenderer;\nuse Symfony\\Component\\Mailer\\EventListener\\MessageListener;\nuse Symfony\\Component\\Mime\\BodyRendererInterface;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services(", "suffix": "ageListener::class)\n ->args([null, service('twig.mime_body_renderer')])\n ->tag('kernel.event_subscriber')\n\n ->set('twig.mime_body_renderer', BodyRenderer::class)\n ->args([service('twig')])\n ->alias(BodyRendere", "middle": ")\n ->set('twig.mailer.message_listener', Mess", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Resources/config/mailer.php", "language": "php", "file_size": 910, "cut_index": 547, "middle_length": 52}} {"prefix": "taCollector\\TwigDataCollector;\nuse Symfony\\Bridge\\Twig\\ErrorRenderer\\TwigErrorRenderer;\nuse Symfony\\Bridge\\Twig\\EventListener\\TemplateAttributeListener;\nuse Symfony\\Bridge\\Twig\\Extension\\AssetExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\EmojiExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\ExpressionExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\HtmlSanitizerExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\HttpFoundationExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\HttpKernelExtension;\nuse Symfony\\Bridge\\Twig\\Extensio", "suffix": "ime;\nuse Symfony\\Bridge\\Twig\\Extension\\StopwatchExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\TranslationExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\WebLinkExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\WorkflowExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\Ya", "middle": "n\\HttpKernelRuntime;\nuse Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\RoutingExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\SerializerExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\SerializerRunt", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Resources/config/twig.php", "language": "php", "file_size": 9215, "cut_index": 921, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Tests;\n\nuse Symfony\\Bundle\\TwigBundle\\TemplateIterator;\nuse Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface;\nuse Symfony\\Component\\HttpKernel\\Kernel;\n\nclass TemplateIteratorTest extends TestCase\n{\n public function testGetIterator()\n {\n $iterator = new TemplateIterator($th", "suffix": " [\n '@!Bar/index.html.twig',\n '@Bar/index.html.twig',\n '@Bar/layout.html.twig',\n '@Foo/index.html.twig',\n '@Foo/not-twig.js',\n 'layout.html.twig',\n ],", "middle": "is->createKernelMock(), [__DIR__.'/Fixtures/templates/Foo' => 'Foo'], __DIR__.'/DependencyInjection/Fixtures/templates');\n\n $sorted = iterator_to_array($iterator);\n sort($sorted);\n $this->assertEquals(\n ", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/TemplateIteratorTest.php", "language": "php", "file_size": 2129, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Tests\\Functional;\n\nuse PHPUnit\\Framework\\Attributes\\After;\nuse PHPUnit\\Framework\\Attributes\\Before;\nuse Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle;\nuse Symfony\\Bundle\\TwigBundle\\Tests\\TestCase;\nuse Symfony\\Bundle\\TwigBundle\\TwigBundle;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\Conta", "suffix": "tion;\nuse Twig\\Attribute\\AsTwigTest;\nuse Twig\\Environment;\nuse Twig\\Error\\RuntimeError;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\Extension\\AttributeExtension;\n\nclass AttributeExtensionTest extends TestCase\n{\n public function testExtensionWithAttri", "middle": "inerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\Filesystem\\Filesystem;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Twig\\Attribute\\AsTwigFilter;\nuse Twig\\Attribute\\AsTwigFunc", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Tests/Functional/AttributeExtensionTest.php", "language": "php", "file_size": 4941, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\AccessToken;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Ref", "suffix": "toryInterface\n{\n public function create(ContainerBuilder $container, string $id, array|string $config): void\n {\n $clientDefinition = (new ChildDefinition('security.access_token_handler.oidc_user_info.http_client'))\n ->replaceArgumen", "middle": "erence;\nuse Symfony\\Contracts\\Cache\\CacheInterface;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * Configures a token handler for an OIDC server.\n */\nclass OidcUserInfoTokenHandlerFactory implements TokenHandlerFac", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcUserInfoTokenHandlerFactory.php", "language": "php", "file_size": 4433, "cut_index": 614, "middle_length": 229}} {"prefix": "ony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\AccessToken;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\n/**\n * Allows creating configurable token handlers.\n */\ninterface TokenHandlerFactoryInterface\n{\n /**\n * Creates a generic token handler service.\n */\n ", "suffix": ", string $id, array|string $config): void;\n\n /**\n * Gets a generic token handler configuration key.\n */\n public function getKey(): string;\n\n /**\n * Adds a generic token handler configuration.\n */\n public function addConfiguratio", "middle": " public function create(ContainerBuilder $container", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/TokenHandlerFactoryInterface.php", "language": "php", "file_size": 944, "cut_index": 606, "middle_length": 52}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference", "suffix": "@wouterj.nl>\n *\n * @internal\n */\ntrait LdapFactoryTrait\n{\n public function getKey(): string\n {\n return parent::getKey().'-ldap';\n }\n\n public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, s", "middle": ";\nuse Symfony\\Component\\Ldap\\Security\\CheckLdapCredentialsListener;\nuse Symfony\\Component\\Ldap\\Security\\LdapAuthenticator;\n\n/**\n * A trait decorating the authenticator with LDAP functionality.\n *\n * @author Wouter de Jong <wouter", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LdapFactoryTrait.php", "language": "php", "file_size": 2440, "cut_index": 563, "middle_length": 229}} {"prefix": "curityBundle\\RememberMe\\DecoratedRememberMeHandler;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nuse Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface;\nuse Symfony\\C", "suffix": ";\n\n/**\n * @internal\n */\nclass RememberMeFactory implements AuthenticatorFactoryInterface, PrependExtensionInterface\n{\n public const PRIORITY = -50;\n\n protected array $options = [\n 'name' => 'REMEMBERME',\n 'lifetime' => 31536000,\n ", "middle": "omponent\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpFoundation\\Cookie;\nuse Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\CacheTokenVerifier", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/RememberMeFactory.php", "language": "php", "file_size": 11499, "cut_index": 921, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\DebugBundle\\DependencyInjection;\n\nuse Symfony\\Bridge\\Monolog\\Command\\ServerLogCommand;\nuse Symfony\\Bundle\\DebugBundle\\Command\\ServerDumpPlaceholderCommand;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exte", "suffix": "ork.com>\n */\nclass DebugExtension extends Extension\n{\n public function load(array $configs, ContainerBuilder $container): void\n {\n $configuration = new Configuration();\n $config = $this->processConfiguration($configuration, $configs);\n\n", "middle": "nsion\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\VarDumper\\Caster\\ReflectionCaster;\n\n/**\n * @author Nicolas Grekas <p@tchw", "meta": {"filepath": "src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php", "language": "php", "file_size": 3579, "cut_index": 614, "middle_length": 229}} {"prefix": "?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bridge\\Twig\\Extension\\FormExtension;\nuse Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine;\nuse Symfony\\Component\\Form\\FormRenderer;\n\nreturn static function (ContainerConfigurator $container) {\n $", "suffix": "('twig.form.resources'), service('twig')])\n ->tag('kernel.reset', ['method' => '?reset'])\n\n ->set('twig.form.renderer', FormRenderer::class)\n ->args([service('twig.form.engine'), service('security.csrf.token_manager')->nullOnIn", "middle": "container->services()\n ->set('twig.extension.form', FormExtension::class)\n ->args([service('translator')->nullOnInvalid()])\n\n ->set('twig.form.engine', TwigRendererEngine::class)\n ->args([param", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Resources/config/form.php", "language": "php", "file_size": 1051, "cut_index": 513, "middle_length": 229}} {"prefix": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Component\\DependencyInjection\\Loader\\Configurator;\n\nuse Symfony\\Bridge\\Twig\\Extension\\ImportMapExtension;\nuse Symfony\\Bridge\\Twig\\Extension\\ImportMapRuntime;\n\nreturn static function (ContainerConfigurator $container) {\n $container->services()\n\n -", "suffix": "time.importmap', ImportMapRuntime::class)\n ->args([service('asset_mapper.importmap.renderer')])\n ->tag('twig.runtime')\n\n ->set('twig.extension.importmap', ImportMapExtension::class)\n ->tag('twig.extension')\n ;\n};\n", "middle": ">set('twig.run", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Resources/config/importmap.php", "language": "php", "file_size": 782, "cut_index": 512, "middle_length": 14}} {"prefix": " This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\Command;\n\nuse Symfony\\Bridge\\Twig\\Command\\LintCommand as BaseLintCommand;\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\n\n/**\n * Command that will validate your template syntax and output encountered errors.\n *\n * @author Marc Weistroff <marc.wei", "suffix": " protected function configure(): void\n {\n parent::configure();\n\n $this\n ->setHelp(\n $this->getHelp().<<<'EOF'\n\n Or all template files in a bundle:\n\n <info>php %command.ful", "middle": "stroff@sensiolabs.com>\n * @author Jérôme Tamarelle <jerome@tamarelle.net>\n */\n#[AsCommand(name: 'lint:twig', description: 'Lint a Twig template and outputs encountered errors')]\nfinal class LintCommand extends BaseLintCommand\n{\n ", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/Command/LintCommand.php", "language": "php", "file_size": 1365, "cut_index": 524, "middle_length": 229}} {"prefix": "uilder;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Exception\\LogicException;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\Security\\Http\\Command\\OidcTokenGenerateCommand;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * Configures a token handler for decoding and validating an OIDC token.\n */\nclass OidcTokenHandlerFactory implements TokenHandlerFacto", "suffix": "ler.oidc'))\n ->replaceArgument(2, $config['audience'])\n ->replaceArgument(3, $config['issuers'])\n ->replaceArgument(4, $config['claim'])\n ->addTag('container.reversible')\n );\n\n if (!ContainerBuilder", "middle": "ryInterface\n{\n public function create(ContainerBuilder $container, string $id, array|string $config): void\n {\n $tokenHandlerDefinition = $container->setDefinition($id, (new ChildDefinition('security.access_token_hand", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.php", "language": "php", "file_size": 9326, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Referen", "suffix": "extends AbstractFactory\n{\n public const PRIORITY = -20;\n\n public function addConfiguration(NodeDefinition $node): void\n {\n /** @var NodeBuilder $builder */\n $builder = $node->children();\n\n $builder\n ->scalarNode('ch", "middle": "ce;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterface;\nuse Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface;\n\n/**\n * @internal\n */\nclass LoginLinkFactory ", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginLinkFactory.php", "language": "php", "file_size": 6864, "cut_index": 716, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\DebugBundle\\Command;\n\nuse Symfony\\Component\\Console\\Attribute\\AsCommand;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Style\\SymfonyStyle", "suffix": "er@gmail.com>\n *\n * @internal\n */\n#[AsCommand(name: 'server:dump', description: 'Start a dump server that collects and displays dumps in a single place')]\nclass ServerDumpPlaceholderCommand extends Command\n{\n private ServerDumpCommand $replacedCommand;\n", "middle": ";\nuse Symfony\\Component\\VarDumper\\Command\\ServerDumpCommand;\nuse Symfony\\Component\\VarDumper\\Server\\DumpServer;\n\n/**\n * A placeholder command easing VarDumper server discovery.\n *\n * @author Maxime Steinhausser <maxime.steinhauss", "meta": {"filepath": "src/Symfony/Bundle/DebugBundle/Command/ServerDumpPlaceholderCommand.php", "language": "php", "file_size": 1868, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle\\CacheWarmer;\n\nuse Psr\\Container\\ContainerInterface;\nuse Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerInterface;\nuse Symfony\\Contracts\\Service\\ServiceSubscriberInterface;\nuse Twig\\Cache\\CacheInterface;\nuse Twig\\Cache\\NullCache;\nuse Twig\\Environment;\nuse Twig\\Error\\Error;\n\n/**\n * Generates the Twig cache for all templates.\n *\n * @aut", "suffix": "cies should be lazy-loaded, that's why a container should be injected.\n */\n public function __construct(\n private ContainerInterface $container,\n private iterable $iterator,\n private ?CacheInterface $cache = null,\n ) {\n }\n", "middle": "hor Fabien Potencier <fabien@symfony.com>\n */\nfinal class TemplateCacheWarmer implements CacheWarmerInterface, ServiceSubscriberInterface\n{\n private Environment $twig;\n\n /**\n * As this cache warmer is optional, dependen", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheWarmer.php", "language": "php", "file_size": 3126, "cut_index": 614, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\DebugBundle\\Tests\\DependencyInjection\\Compiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\DebugBundle\\DependencyInjection\\Compiler\\DumpDataCollectorPass;\nuse Symfony\\Bundle\\WebProfilerBundle\\EventListener\\WebDebugToolbarListener;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\HttpFoundation\\RequestSt", "suffix": "ilder();\n $container->addCompilerPass(new DumpDataCollectorPass());\n\n $definition = new Definition(DumpDataCollector::class, [null, null, '%kernel.charset%', new Reference('.virtual_request_stack'), null, '%kernel.runtime_mode.web%']);\n ", "middle": "ack;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DumpDataCollector;\n\nclass DumpDataCollectorPassTest extends TestCase\n{\n public function testProcessWithoutFileLinkFormatParameter()\n {\n $container = new ContainerBu", "meta": {"filepath": "src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/Compiler/DumpDataCollectorPassTest.php", "language": "php", "file_size": 5395, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\Component\\DependencyInjection\\ChildDefinition;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * X5", "suffix": "\n\n public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProviderId): string\n {\n $authenticatorId = 'security.authenticator.x509.'.$firewallName;\n $container\n ->setD", "middle": "09Factory creates services for X509 certificate authentication.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @internal\n */\nclass X509Factory implements AuthenticatorFactoryInterface\n{\n public const PRIORITY = -10;", "meta": {"filepath": "src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/X509Factory.php", "language": "php", "file_size": 2064, "cut_index": 563, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\TwigBundle;\n\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\n\n/**\n * Iterator for all templates in bundles and in the application Resources directory.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @internal\n *\n * @implements \\IteratorAggregate<int, string>\n */\nclass TemplateIterator implements \\Iter", "suffix": " @param string[] $namePatterns Pattern of file names\n */\n public function __construct(\n private KernelInterface $kernel,\n private array $paths = [],\n private ?string $defaultPath = null,\n private array $namePatterns = ", "middle": "atorAggregate\n{\n private \\Traversable $templates;\n\n /**\n * @param array $paths Additional Twig paths to warm\n * @param string|null $defaultPath The directory where global templates can be stored\n *", "meta": {"filepath": "src/Symfony/Bundle/TwigBundle/TemplateIterator.php", "language": "php", "file_size": 3219, "cut_index": 614, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\WebProfilerBundle\\DependencyInjection\\Configuration;\nuse Symfony\\Component\\Config\\Definition\\Processor;\n\nclass ConfigurationTest extends TestCase\n{\n #[DataProvider('getDebugModes')]\n public function te", "suffix": " $this->assertEquals($expectedResult, $config);\n }\n\n public static function getDebugModes()\n {\n return [\n [\n 'options' => [],\n 'expectedResult' => [\n 'intercept_redirects' => fals", "middle": "stConfigTree(array $options, array $expectedResult)\n {\n $processor = new Processor();\n $configuration = new Configuration();\n $config = $processor->processConfiguration($configuration, [$options]);\n\n ", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/ConfigurationTest.php", "language": "php", "file_size": 4038, "cut_index": 614, "middle_length": 229}} {"prefix": "DumpDataCollector;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Twig\\Environment;\n\nclass WebDebugToolbarListenerTest extends TestCase\n{\n #[DataProvider('getInjectToolbarTests')]\n public function testInjectToolbar(string $content, string $expected)\n {\n $listener = new WebDebugToolbarListener($this->getTwigMock());\n ", "suffix": "tylo']);\n $this->assertEquals($expected, $response->getContent());\n }\n\n public static function getInjectToolbarTests()\n {\n return [\n ['<html><head></head><body></body></html>', \"<html><head></head><body>\\nWDT\\n</body></htm", "middle": " $m = new \\ReflectionMethod($listener, 'injectToolbar');\n\n $response = new Response($content);\n\n $m->invoke($listener, $response, Request::create('/'), ['csp_script_nonce' => 'scripto', 'csp_style_nonce' => 's", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php", "language": "php", "file_size": 21134, "cut_index": 1331, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Tests\\Twig;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension;\nuse Symfony\\Component\\VarDumper\\Cloner\\VarCloner;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;", "suffix": "twigEnvironment = new Environment(new ArrayLoader());\n $varCloner = new VarCloner();\n\n $webProfilerExtension = new WebProfilerExtension();\n\n $needle = 'window.Sfdump';\n\n $dump1 = $webProfilerExtension->dumpLog($twigEnvironment, ", "middle": "\n\nclass WebProfilerExtensionTest extends TestCase\n{\n #[DataProvider('provideMessages')]\n public function testDumpHeaderIsDisplayed(string $message, array $context, bool $dump1HasHeader, bool $dump2HasHeader)\n {\n $", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/Twig/WebProfilerExtensionTest.php", "language": "php", "file_size": 1713, "cut_index": 537, "middle_length": 229}} {"prefix": "\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Tests\\Profiler;\n\nuse Symfony\\Bundle\\WebProfilerBundle\\Profiler\\TemplateManager;\nuse Symfony\\Bundle\\WebProfilerBundle\\Tests\\TestCase;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpKernel\\Exception\\No", "suffix": ">\n */\nclass TemplateManagerTest extends TestCase\n{\n protected Environment $twigEnvironment;\n protected Profiler $profiler;\n protected TemplateManager $templateManager;\n\n protected function setUp(): void\n {\n $this->profiler = $this->cr", "middle": "tFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profile;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\nuse Twig\\Environment;\nuse Twig\\Loader\\LoaderInterface;\n\n/**\n * @author Artur Wielogórski <wodor@wodor.net", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php", "language": "php", "file_size": 3298, "cut_index": 614, "middle_length": 229}} {"prefix": "igFilter;\n\n/**\n * Twig extension related to PHP code and used by the profiler and the default exception templates.\n *\n * This extension should only be used for debugging tools code\n * that is never executed in a production environment.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nfinal class CodeExtension extends AbstractExtension\n{\n private string|FileLinkFormatter|array|false $fileLinkFormat;\n\n public function __construct(\n string|FileLinkFormatter $fileLinkFormat,\n private ", "suffix": "e('\\\\', '/', $projectDir).'/';\n }\n\n public function getFilters(): array\n {\n return [\n new TwigFilter('abbr_class', $this->abbrClass(...), ['is_safe' => ['html'], 'pre_escape' => 'html']),\n new TwigFilter('abbr_method',", "middle": "string $projectDir,\n private string $charset,\n ) {\n $this->fileLinkFormat = $fileLinkFormat ?: \\ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');\n $this->projectDir = str_replac", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Profiler/CodeExtension.php", "language": "php", "file_size": 10659, "cut_index": 921, "middle_length": 229}} {"prefix": " part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\n\n/**\n * This class contains the configuration information for the bundle.\n *\n * This information is solely re", "suffix": "nfiguration tree builder.\n */\n public function getConfigTreeBuilder(): TreeBuilder\n {\n $treeBuilder = new TreeBuilder('web_profiler');\n\n $treeBuilder\n ->getRootNode()\n ->docUrl('https://symfony.com/doc/{version", "middle": "sponsible for how the different configuration\n * sections are normalized, and merged.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass Configuration implements ConfigurationInterface\n{\n /**\n * Generates the co", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php", "language": "php", "file_size": 1826, "cut_index": 537, "middle_length": 229}} {"prefix": "ndle\\Profiler\\CodeExtension;\nuse Symfony\\Component\\ErrorHandler\\ErrorRenderer\\FileLinkFormatter;\nuse Twig\\Environment;\nuse Twig\\Loader\\ArrayLoader;\n\nclass CodeExtensionTest extends TestCase\n{\n public function testFormatFile()\n {\n $expected = \\sprintf('<a href=\"proto://foobar%s#&line=25\" title=\"Click to open this file\" class=\"file_link\">%s at line 25</a>', substr(__FILE__, 5), __FILE__);\n $this->assertEquals($expected, $this->getExtension()->formatFile(__FILE__, 25));\n }\n\n publi", "suffix": "Integration()\n {\n $data = [\n 'fqcn' => 'F\\Q\\N\\Foo',\n 'xss' => '<script>',\n ];\n\n $template = <<<'TWIG'\n {{ 'Bare'|abbr_class }}\n {{ fqcn|abbr_class }}\n {{ xss|abbr_class }}\n ", "middle": "c function testFileRelative()\n {\n $this->assertEquals('file.txt', $this->getExtension()->getFileRelative(\\DIRECTORY_SEPARATOR.'project'.\\DIRECTORY_SEPARATOR.'file.txt'));\n }\n\n public function testClassAbbreviation", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/CodeExtensionTest.php", "language": "php", "file_size": 10991, "cut_index": 921, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Tests\\DependencyInjection;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse Symfony\\Bundle\\WebProfilerBundle\\DependencyInjection\\WebProfilerExtension;\nuse Symfony\\Bundle\\WebProfilerBundle\\Tests\\TestCase;\nuse Symfony\\Component\\DependencyInjection\\Container;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symf", "suffix": "DataCollector\\DumpDataCollector;\nuse Symfony\\Component\\HttpKernel\\KernelInterface;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profile;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\nuse Symfony\\Component\\HttpKernel\\Profiler\\ProfilerStorageInterface;\nus", "middle": "ony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer;\nuse Symfony\\Component\\EventDispatcher\\DependencyInjection\\RegisterListenersPass;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\HttpKernel\\", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php", "language": "php", "file_size": 8670, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\DependencyInjection;\n\nuse Symfony\\Bundle\\WebProfilerBundle\\EventListener\\WebDebugToolbarListener;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\Argument\\ServiceClosureArgument;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Sym", "suffix": "bprofiler:config\n * toolbar=\"true\"\n * intercept-redirects=\"true\"\n * />\n *\n * @author Fabien Potencier <fabien@symfony.com>\n */\nclass WebProfilerExtension extends Extension\n{\n /**\n * Loads the web profiler configuration.\n *\n ", "middle": "fony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Loader\\PhpFileLoader;\nuse Symfony\\Component\\DependencyInjection\\Reference;\n\n/**\n * WebProfilerExtension.\n *\n * Usage:\n *\n * <we", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php", "language": "php", "file_size": 2343, "cut_index": 563, "middle_length": 229}} {"prefix": "buted with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Tests\\EventListener;\n\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Bundle\\WebProfilerBundle\\EventListener\\WebDebugToolbarListener;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpKernel\\Event\\ResponseEvent;\nuse Symfony\\Component\\HttpKernel\\HttpKernelInterface;\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symf", "suffix": "ntent, string $expected)\n {\n $listener = new WebDebugToolbarListener($this->getTwigStub());\n $m = new \\ReflectionMethod($listener, 'injectToolbar');\n\n $response = new StreamedResponse($this->createCallbackFromContent($content));\n\n ", "middle": "ony\\Component\\HttpKernel\\KernelEvents;\nuse Twig\\Environment;\n\nclass WebDebugToolbarStreamedResponseListenerTest extends TestCase\n{\n #[DataProvider('provideInjectedToolbarHtml')]\n public function testInjectToolbar(string $co", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarStreamedResponseListenerTest.php", "language": "php", "file_size": 7910, "cut_index": 716, "middle_length": 229}} {"prefix": "ge.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Symfony\\Bundle\\WebProfilerBundle\\Profiler;\n\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profile;\nuse Symfony\\Component\\HttpKernel\\Profiler\\Profiler;\nuse Twig\\Environment;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Artur Wielogórs", "suffix": "**\n * Gets the template name for a given panel.\n *\n * @throws NotFoundHttpException\n */\n public function getName(Profile $profile, string $panel): mixed\n {\n $templates = $this->getNames($profile);\n\n if (!isset($templates", "middle": "ki <wodor@wodor.net>\n *\n * @internal\n */\nclass TemplateManager\n{\n public function __construct(\n protected Profiler $profiler,\n protected Environment $twig,\n protected array $templates,\n ) {\n }\n\n /", "meta": {"filepath": "src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php", "language": "php", "file_size": 2299, "cut_index": 563, "middle_length": 229}}